Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .last-synced-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a10d9ecb766d2dd996aecb19aa9c801d78bb7c26
13aaa9a125fc87d1ed23acd5ef740382510296be
2 changes: 1 addition & 1 deletion .oagen-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"language": "python",
"generatedAt": "2026-05-11T15:56:51.952Z",
"generatedAt": "2026-05-18T17:54:41.865Z",
"files": [
"src/workos/_client.py",
"src/workos/admin_portal/__init__.py",
Expand Down
36 changes: 30 additions & 6 deletions src/workos/authorization/_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ def list_role_assignments(
before: Optional[str] = None,
after: Optional[str] = None,
order: Optional[Union[PaginationOrder, str]] = "desc",
resource_id: Optional[str] = None,
resource_external_id: Optional[str] = None,
resource_type_slug: Optional[str] = None,
request_options: Optional[RequestOptions] = None,
) -> SyncPage[UserRoleAssignment]:
"""List role assignments
Expand All @@ -343,6 +346,9 @@ def list_role_assignments(
before: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
after: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
order: Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. Defaults to `desc`.
resource_id: Filter assignments by the ID of the resource.
resource_external_id: Filter assignments by the external ID of the resource.
resource_type_slug: Filter assignments by the slug of the resource type.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Returns:
Expand All @@ -362,6 +368,9 @@ def list_role_assignments(
"before": before,
"after": after,
"order": enum_value(order) if order is not None else None,
"resource_id": resource_id,
"resource_external_id": resource_external_id,
"resource_type_slug": resource_type_slug,
}.items()
if v is not None
}
Expand Down Expand Up @@ -1103,6 +1112,7 @@ def list_role_assignments_for_resource_by_external_id(
before: Optional[str] = None,
after: Optional[str] = None,
order: Optional[Union[PaginationOrder, str]] = "desc",
role_slug: Optional[str] = None,
request_options: Optional[RequestOptions] = None,
) -> SyncPage[UserRoleAssignment]:
"""List role assignments for a resource by external ID
Expand All @@ -1117,6 +1127,7 @@ def list_role_assignments_for_resource_by_external_id(
before: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
after: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
order: Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. Defaults to `desc`.
role_slug: Filter assignments by the slug of the role.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Returns:
Expand All @@ -1136,6 +1147,7 @@ def list_role_assignments_for_resource_by_external_id(
"before": before,
"after": after,
"order": enum_value(order) if order is not None else None,
"role_slug": role_slug,
}.items()
if v is not None
}
Expand Down Expand Up @@ -1165,7 +1177,6 @@ def list_resources(
organization_id: Optional[str] = None,
resource_type_slug: Optional[str] = None,
resource_external_id: Optional[str] = None,
search: Optional[str] = None,
parent: Optional[Union[ParentById, ParentByExternalId]] = None,
request_options: Optional[RequestOptions] = None,
) -> SyncPage[AuthorizationResource]:
Expand All @@ -1181,7 +1192,6 @@ def list_resources(
organization_id: Filter resources by organization ID.
resource_type_slug: Filter resources by resource type slug.
resource_external_id: Filter resources by external ID.
search: Search resources by name.
parent: Identifies the parent. One of: ParentById, ParentByExternalId.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Expand All @@ -1205,7 +1215,6 @@ def list_resources(
"organization_id": organization_id,
"resource_type_slug": resource_type_slug,
"resource_external_id": resource_external_id,
"search": search,
}.items()
if v is not None
}
Expand Down Expand Up @@ -1496,6 +1505,7 @@ def list_role_assignments_for_resource(
before: Optional[str] = None,
after: Optional[str] = None,
order: Optional[Union[PaginationOrder, str]] = "desc",
role_slug: Optional[str] = None,
request_options: Optional[RequestOptions] = None,
) -> SyncPage[UserRoleAssignment]:
"""List role assignments for a resource
Expand All @@ -1508,6 +1518,7 @@ def list_role_assignments_for_resource(
before: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
after: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
order: Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. Defaults to `desc`.
role_slug: Filter assignments by the slug of the role.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Returns:
Expand All @@ -1527,6 +1538,7 @@ def list_role_assignments_for_resource(
"before": before,
"after": after,
"order": enum_value(order) if order is not None else None,
"role_slug": role_slug,
}.items()
if v is not None
}
Expand Down Expand Up @@ -2229,6 +2241,9 @@ async def list_role_assignments(
before: Optional[str] = None,
after: Optional[str] = None,
order: Optional[Union[PaginationOrder, str]] = "desc",
resource_id: Optional[str] = None,
resource_external_id: Optional[str] = None,
resource_type_slug: Optional[str] = None,
request_options: Optional[RequestOptions] = None,
) -> AsyncPage[UserRoleAssignment]:
"""List role assignments
Expand All @@ -2241,6 +2256,9 @@ async def list_role_assignments(
before: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
after: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
order: Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. Defaults to `desc`.
resource_id: Filter assignments by the ID of the resource.
resource_external_id: Filter assignments by the external ID of the resource.
resource_type_slug: Filter assignments by the slug of the resource type.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Returns:
Expand All @@ -2260,6 +2278,9 @@ async def list_role_assignments(
"before": before,
"after": after,
"order": enum_value(order) if order is not None else None,
"resource_id": resource_id,
"resource_external_id": resource_external_id,
"resource_type_slug": resource_type_slug,
}.items()
if v is not None
}
Expand Down Expand Up @@ -3001,6 +3022,7 @@ async def list_role_assignments_for_resource_by_external_id(
before: Optional[str] = None,
after: Optional[str] = None,
order: Optional[Union[PaginationOrder, str]] = "desc",
role_slug: Optional[str] = None,
request_options: Optional[RequestOptions] = None,
) -> AsyncPage[UserRoleAssignment]:
"""List role assignments for a resource by external ID
Expand All @@ -3015,6 +3037,7 @@ async def list_role_assignments_for_resource_by_external_id(
before: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
after: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
order: Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. Defaults to `desc`.
role_slug: Filter assignments by the slug of the role.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Returns:
Expand All @@ -3034,6 +3057,7 @@ async def list_role_assignments_for_resource_by_external_id(
"before": before,
"after": after,
"order": enum_value(order) if order is not None else None,
"role_slug": role_slug,
}.items()
if v is not None
}
Expand Down Expand Up @@ -3063,7 +3087,6 @@ async def list_resources(
organization_id: Optional[str] = None,
resource_type_slug: Optional[str] = None,
resource_external_id: Optional[str] = None,
search: Optional[str] = None,
parent: Optional[Union[ParentById, ParentByExternalId]] = None,
request_options: Optional[RequestOptions] = None,
) -> AsyncPage[AuthorizationResource]:
Expand All @@ -3079,7 +3102,6 @@ async def list_resources(
organization_id: Filter resources by organization ID.
resource_type_slug: Filter resources by resource type slug.
resource_external_id: Filter resources by external ID.
search: Search resources by name.
parent: Identifies the parent. One of: ParentById, ParentByExternalId.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Expand All @@ -3103,7 +3125,6 @@ async def list_resources(
"organization_id": organization_id,
"resource_type_slug": resource_type_slug,
"resource_external_id": resource_external_id,
"search": search,
}.items()
if v is not None
}
Expand Down Expand Up @@ -3394,6 +3415,7 @@ async def list_role_assignments_for_resource(
before: Optional[str] = None,
after: Optional[str] = None,
order: Optional[Union[PaginationOrder, str]] = "desc",
role_slug: Optional[str] = None,
request_options: Optional[RequestOptions] = None,
) -> AsyncPage[UserRoleAssignment]:
"""List role assignments for a resource
Expand All @@ -3406,6 +3428,7 @@ async def list_role_assignments_for_resource(
before: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
after: An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
order: Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. Defaults to `desc`.
role_slug: Filter assignments by the slug of the role.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Returns:
Expand All @@ -3425,6 +3448,7 @@ async def list_role_assignments_for_resource(
"before": before,
"after": after,
"order": enum_value(order) if order is not None else None,
"role_slug": role_slug,
}.items()
if v is not None
}
Expand Down
2 changes: 2 additions & 0 deletions src/workos/groups/_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def create_group_organization_membership(
Group

Raises:
BadRequestError: If the request is malformed (400).
AuthorizationError: If the request is forbidden (403).
NotFoundError: If the resource is not found (404).
UnprocessableEntityError: If the request data is unprocessable (422).
Expand Down Expand Up @@ -663,6 +664,7 @@ async def create_group_organization_membership(
Group

Raises:
BadRequestError: If the request is malformed (400).
AuthorizationError: If the request is forbidden (403).
NotFoundError: If the resource is not found (404).
UnprocessableEntityError: If the request data is unprocessable (422).
Expand Down
4 changes: 2 additions & 2 deletions src/workos/sso/_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def get_authorization_url(
organization: Used to initiate SSO for an organization. The value should be a WorkOS organization ID.
You can persist the WorkOS organization ID with application user or team identifiers. WorkOS will use the organization ID to determine the appropriate connection and the IdP to direct the user to for authentication.
domain_hint: Can be used to pre-fill the domain field when initiating authentication with Microsoft OAuth or with a Google SAML connection type.
login_hint: Can be used to pre-fill the username/email address field of the IdP sign-in page for the user, if you know their username ahead of time. Currently supported for OAuth, OpenID Connect, Okta, and Entra ID connections.
login_hint: Can be used to pre-fill the username/email address field of the IdP sign-in page for the user, if you know their username ahead of time. Currently supported for OAuth, OpenID Connect, Okta, Entra ID, and custom SAML connections.
nonce: A random string generated by the client that is used to mitigate replay attacks.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Expand Down Expand Up @@ -589,7 +589,7 @@ def get_authorization_url(
organization: Used to initiate SSO for an organization. The value should be a WorkOS organization ID.
You can persist the WorkOS organization ID with application user or team identifiers. WorkOS will use the organization ID to determine the appropriate connection and the IdP to direct the user to for authentication.
domain_hint: Can be used to pre-fill the domain field when initiating authentication with Microsoft OAuth or with a Google SAML connection type.
login_hint: Can be used to pre-fill the username/email address field of the IdP sign-in page for the user, if you know their username ahead of time. Currently supported for OAuth, OpenID Connect, Okta, and Entra ID connections.
login_hint: Can be used to pre-fill the username/email address field of the IdP sign-in page for the user, if you know their username ahead of time. Currently supported for OAuth, OpenID Connect, Okta, Entra ID, and custom SAML connections.
nonce: A random string generated by the client that is used to mitigate replay attacks.
request_options: Per-request options. Supports extra_headers, timeout, max_retries, and base_url override.

Expand Down
Loading