@workos/openapi-spec 0.166.0 → 0.168.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/open-api-spec.yaml +180 -3
- package/dist/services.mjs +5 -0
- package/dist/types.d.ts +148 -5
- package/package.json +1 -1
package/dist/open-api-spec.yaml
CHANGED
|
@@ -3258,6 +3258,75 @@ paths:
|
|
|
3258
3258
|
by_external_id:
|
|
3259
3259
|
- resource_external_id
|
|
3260
3260
|
- resource_type_slug
|
|
3261
|
+
patch:
|
|
3262
|
+
description: >-
|
|
3263
|
+
Add and remove role assignments for an organization membership in a
|
|
3264
|
+
single atomic operation. Each entry identifies a role and a resource,
|
|
3265
|
+
either by `resource_id` or by `resource_type_slug` and
|
|
3266
|
+
`resource_external_id`; to change an organization-level role, target the
|
|
3267
|
+
organization resource. Additions that already exist and removals that
|
|
3268
|
+
match no assignment are skipped. An assignment in both lists is
|
|
3269
|
+
rejected, as is a removal of a role granted only through a group. `add`
|
|
3270
|
+
and `remove` must contain between 1 and 100 entries combined.
|
|
3271
|
+
operationId: AuthorizationRoleAssignmentsController_patchRoleAssignments
|
|
3272
|
+
parameters:
|
|
3273
|
+
- name: organization_membership_id
|
|
3274
|
+
required: true
|
|
3275
|
+
in: path
|
|
3276
|
+
description: The ID of the organization membership.
|
|
3277
|
+
schema:
|
|
3278
|
+
type: string
|
|
3279
|
+
example: om_01HXYZ123456789ABCDEFGHIJ
|
|
3280
|
+
requestBody:
|
|
3281
|
+
required: true
|
|
3282
|
+
content:
|
|
3283
|
+
application/json:
|
|
3284
|
+
schema:
|
|
3285
|
+
$ref: '#/components/schemas/PatchRoleAssignmentsDto'
|
|
3286
|
+
responses:
|
|
3287
|
+
'204':
|
|
3288
|
+
description: No Content
|
|
3289
|
+
'400':
|
|
3290
|
+
description: Bad Request
|
|
3291
|
+
content:
|
|
3292
|
+
application/json:
|
|
3293
|
+
schema:
|
|
3294
|
+
anyOf:
|
|
3295
|
+
- $ref: '#/components/schemas/RoleAssignmentUpdateOverlapErrorBody'
|
|
3296
|
+
- $ref: '#/components/schemas/ErrorBodyWithError'
|
|
3297
|
+
'402':
|
|
3298
|
+
description: ''
|
|
3299
|
+
content:
|
|
3300
|
+
application/json:
|
|
3301
|
+
schema:
|
|
3302
|
+
$ref: '#/components/schemas/ErrorBodyWithCode'
|
|
3303
|
+
'403':
|
|
3304
|
+
description: Forbidden
|
|
3305
|
+
content:
|
|
3306
|
+
application/json:
|
|
3307
|
+
schema:
|
|
3308
|
+
$ref: '#/components/schemas/ErrorBody'
|
|
3309
|
+
'404':
|
|
3310
|
+
description: Not Found
|
|
3311
|
+
content:
|
|
3312
|
+
application/json:
|
|
3313
|
+
schema:
|
|
3314
|
+
$ref: '#/components/schemas/ErrorBody'
|
|
3315
|
+
'409':
|
|
3316
|
+
description: ''
|
|
3317
|
+
content:
|
|
3318
|
+
application/json:
|
|
3319
|
+
schema:
|
|
3320
|
+
$ref: '#/components/schemas/ErrorBodyWithCode'
|
|
3321
|
+
'422':
|
|
3322
|
+
description: Unprocessable Entity
|
|
3323
|
+
content:
|
|
3324
|
+
application/json:
|
|
3325
|
+
schema:
|
|
3326
|
+
$ref: '#/components/schemas/ErrorBody'
|
|
3327
|
+
summary: Update role assignments for an organization membership
|
|
3328
|
+
tags:
|
|
3329
|
+
- authorization
|
|
3261
3330
|
delete:
|
|
3262
3331
|
description: Remove a role assignment by role slug and resource.
|
|
3263
3332
|
operationId: AuthorizationRoleAssignmentsController_removeRoleByCriteria
|
|
@@ -20198,7 +20267,10 @@ components:
|
|
|
20198
20267
|
example: user.signed_in
|
|
20199
20268
|
occurred_at:
|
|
20200
20269
|
type: string
|
|
20201
|
-
description:
|
|
20270
|
+
description: >-
|
|
20271
|
+
ISO-8601 timestamp of when the action occurred. When omitted,
|
|
20272
|
+
defaults to the time WorkOS receives the event. Explicit JSON null
|
|
20273
|
+
is rejected.
|
|
20202
20274
|
example: '2026-02-02T16:35:39.317Z'
|
|
20203
20275
|
format: date-time
|
|
20204
20276
|
actor:
|
|
@@ -20226,7 +20298,6 @@ components:
|
|
|
20226
20298
|
example: 1
|
|
20227
20299
|
required:
|
|
20228
20300
|
- action
|
|
20229
|
-
- occurred_at
|
|
20230
20301
|
- actor
|
|
20231
20302
|
- targets
|
|
20232
20303
|
- context
|
|
@@ -20659,6 +20730,100 @@ components:
|
|
|
20659
20730
|
required:
|
|
20660
20731
|
- resource_id
|
|
20661
20732
|
x-mutually-exclusive-body-groups: *ref_6
|
|
20733
|
+
PatchRoleAssignmentEntryDto:
|
|
20734
|
+
allOf:
|
|
20735
|
+
- type: object
|
|
20736
|
+
properties:
|
|
20737
|
+
role_slug:
|
|
20738
|
+
type: string
|
|
20739
|
+
description: The slug of the role.
|
|
20740
|
+
example: editor
|
|
20741
|
+
required:
|
|
20742
|
+
- role_slug
|
|
20743
|
+
- oneOf:
|
|
20744
|
+
- type: object
|
|
20745
|
+
properties:
|
|
20746
|
+
resource_id:
|
|
20747
|
+
type: string
|
|
20748
|
+
description: >-
|
|
20749
|
+
The ID of the resource. Mutually exclusive with
|
|
20750
|
+
`resource_external_id` and `resource_type_slug`.
|
|
20751
|
+
example: authz_resource_01HXYZ123456789ABCDEFGH
|
|
20752
|
+
required:
|
|
20753
|
+
- resource_id
|
|
20754
|
+
not:
|
|
20755
|
+
anyOf:
|
|
20756
|
+
- properties:
|
|
20757
|
+
resource_external_id:
|
|
20758
|
+
x-exclude-from-lint: true
|
|
20759
|
+
required:
|
|
20760
|
+
- resource_external_id
|
|
20761
|
+
- properties:
|
|
20762
|
+
resource_type_slug:
|
|
20763
|
+
x-exclude-from-lint: true
|
|
20764
|
+
required:
|
|
20765
|
+
- resource_type_slug
|
|
20766
|
+
- type: object
|
|
20767
|
+
properties:
|
|
20768
|
+
resource_external_id:
|
|
20769
|
+
type: string
|
|
20770
|
+
description: >-
|
|
20771
|
+
The external ID of the resource. Required with
|
|
20772
|
+
`resource_type_slug`. Mutually exclusive with `resource_id`.
|
|
20773
|
+
example: project-ext-456
|
|
20774
|
+
resource_type_slug:
|
|
20775
|
+
type: string
|
|
20776
|
+
description: >-
|
|
20777
|
+
The resource type slug. Required with
|
|
20778
|
+
`resource_external_id`. Mutually exclusive with
|
|
20779
|
+
`resource_id`.
|
|
20780
|
+
example: project
|
|
20781
|
+
required:
|
|
20782
|
+
- resource_external_id
|
|
20783
|
+
- resource_type_slug
|
|
20784
|
+
not:
|
|
20785
|
+
anyOf:
|
|
20786
|
+
- properties:
|
|
20787
|
+
resource_id:
|
|
20788
|
+
x-exclude-from-lint: true
|
|
20789
|
+
required:
|
|
20790
|
+
- resource_id
|
|
20791
|
+
x-mutually-exclusive-body-groups:
|
|
20792
|
+
resource_target:
|
|
20793
|
+
optional: false
|
|
20794
|
+
variants:
|
|
20795
|
+
by_id:
|
|
20796
|
+
- resource_id
|
|
20797
|
+
by_external_id:
|
|
20798
|
+
- resource_external_id
|
|
20799
|
+
- resource_type_slug
|
|
20800
|
+
PatchRoleAssignmentsDto:
|
|
20801
|
+
type: object
|
|
20802
|
+
properties:
|
|
20803
|
+
add:
|
|
20804
|
+
default: []
|
|
20805
|
+
description: >-
|
|
20806
|
+
Role assignments to add to the organization membership. Assignments
|
|
20807
|
+
that already exist are skipped.
|
|
20808
|
+
example:
|
|
20809
|
+
- role_slug: editor
|
|
20810
|
+
resource_id: authz_resource_01HXYZ123456789ABCDEFGH
|
|
20811
|
+
type: array
|
|
20812
|
+
items:
|
|
20813
|
+
$ref: '#/components/schemas/PatchRoleAssignmentEntryDto'
|
|
20814
|
+
remove:
|
|
20815
|
+
default: []
|
|
20816
|
+
description: >-
|
|
20817
|
+
Role assignments to remove from the organization membership. Entries
|
|
20818
|
+
that match no assignment are skipped. Roles granted through a group
|
|
20819
|
+
cannot be removed.
|
|
20820
|
+
example:
|
|
20821
|
+
- role_slug: viewer
|
|
20822
|
+
resource_type_slug: project
|
|
20823
|
+
resource_external_id: project-ext-456
|
|
20824
|
+
type: array
|
|
20825
|
+
items:
|
|
20826
|
+
$ref: '#/components/schemas/PatchRoleAssignmentEntryDto'
|
|
20662
20827
|
RemoveRoleDto:
|
|
20663
20828
|
allOf:
|
|
20664
20829
|
- type: object
|
|
@@ -24250,6 +24415,7 @@ components:
|
|
|
24250
24415
|
- cannot_deactivate_pending_organization_membership
|
|
24251
24416
|
- cannot_delete_last_certificate
|
|
24252
24417
|
- cannot_reactivate_pending_organization_membership
|
|
24418
|
+
- cannot_remove_group_sourced_role
|
|
24253
24419
|
- certificate_expired
|
|
24254
24420
|
- chain_depth_exceeded
|
|
24255
24421
|
- claim_denied
|
|
@@ -24377,6 +24543,7 @@ components:
|
|
|
24377
24543
|
- resource_has_dependents
|
|
24378
24544
|
- resource_limit_exceeded
|
|
24379
24545
|
- resource_type_update_in_progress
|
|
24546
|
+
- role_assignment_update_overlap
|
|
24380
24547
|
- role_has_assignments
|
|
24381
24548
|
- role_has_group_role_mappings
|
|
24382
24549
|
- role_not_found
|
|
@@ -24430,7 +24597,7 @@ components:
|
|
|
24430
24597
|
message:
|
|
24431
24598
|
type: string
|
|
24432
24599
|
description: A human-readable description of the error.
|
|
24433
|
-
example:
|
|
24600
|
+
example: Request could not be processed.
|
|
24434
24601
|
required:
|
|
24435
24602
|
- error
|
|
24436
24603
|
- message
|
|
@@ -25018,6 +25185,16 @@ components:
|
|
|
25018
25185
|
const: sms_challenge_quota_reached
|
|
25019
25186
|
message: *ref_29
|
|
25020
25187
|
required: *ref_30
|
|
25188
|
+
RoleAssignmentUpdateOverlapErrorBody:
|
|
25189
|
+
type: object
|
|
25190
|
+
properties:
|
|
25191
|
+
code:
|
|
25192
|
+
type: string
|
|
25193
|
+
description: The error code identifying the type of error.
|
|
25194
|
+
example: role_assignment_update_overlap
|
|
25195
|
+
const: role_assignment_update_overlap
|
|
25196
|
+
message: *ref_29
|
|
25197
|
+
required: *ref_30
|
|
25021
25198
|
IdpMetadataFetchFailedErrorBody:
|
|
25022
25199
|
type: object
|
|
25023
25200
|
properties:
|
package/dist/services.mjs
CHANGED
|
@@ -257,6 +257,11 @@ const serviceEndpoints = {
|
|
|
257
257
|
"path": "/authorization/organization_memberships/{organization_membership_id}/role_assignments",
|
|
258
258
|
"name": "list_role_assignments"
|
|
259
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"method": "PATCH",
|
|
262
|
+
"path": "/authorization/organization_memberships/{organization_membership_id}/role_assignments",
|
|
263
|
+
"name": "update_role_assignments"
|
|
264
|
+
},
|
|
260
265
|
{
|
|
261
266
|
"method": "POST",
|
|
262
267
|
"path": "/authorization/organization_memberships/{organization_membership_id}/role_assignments",
|
package/dist/types.d.ts
CHANGED
|
@@ -725,7 +725,11 @@ export interface paths {
|
|
|
725
725
|
delete: operations["AuthorizationRoleAssignmentsController_removeRoleByCriteria"];
|
|
726
726
|
options?: never;
|
|
727
727
|
head?: never;
|
|
728
|
-
|
|
728
|
+
/**
|
|
729
|
+
* Update role assignments for an organization membership
|
|
730
|
+
* @description Add and remove role assignments for an organization membership in a single atomic operation. Each entry identifies a role and a resource, either by `resource_id` or by `resource_type_slug` and `resource_external_id`; to change an organization-level role, target the organization resource. Additions that already exist and removals that match no assignment are skipped. An assignment in both lists is rejected, as is a removal of a role granted only through a group. `add` and `remove` must contain between 1 and 100 entries combined.
|
|
731
|
+
*/
|
|
732
|
+
patch: operations["AuthorizationRoleAssignmentsController_patchRoleAssignments"];
|
|
729
733
|
trace?: never;
|
|
730
734
|
};
|
|
731
735
|
"/authorization/organization_memberships/{organization_membership_id}/role_assignments/{role_assignment_id}": {
|
|
@@ -4461,10 +4465,10 @@ export interface components {
|
|
|
4461
4465
|
action: string;
|
|
4462
4466
|
/**
|
|
4463
4467
|
* Format: date-time
|
|
4464
|
-
* @description ISO-8601
|
|
4468
|
+
* @description ISO-8601 timestamp of when the action occurred. When omitted, defaults to the time WorkOS receives the event. Explicit JSON null is rejected.
|
|
4465
4469
|
* @example 2026-02-02T16:35:39.317Z
|
|
4466
4470
|
*/
|
|
4467
|
-
occurred_at
|
|
4471
|
+
occurred_at?: string;
|
|
4468
4472
|
/** @description The entity that performed the action. */
|
|
4469
4473
|
actor: components["schemas"]["AuditLogEventActorDto"];
|
|
4470
4474
|
/** @description The resources affected by the action. */
|
|
@@ -4769,6 +4773,55 @@ export interface components {
|
|
|
4769
4773
|
*/
|
|
4770
4774
|
resource_type_slug: string;
|
|
4771
4775
|
});
|
|
4776
|
+
PatchRoleAssignmentEntryDto: {
|
|
4777
|
+
/**
|
|
4778
|
+
* @description The slug of the role.
|
|
4779
|
+
* @example editor
|
|
4780
|
+
*/
|
|
4781
|
+
role_slug: string;
|
|
4782
|
+
} & ({
|
|
4783
|
+
/**
|
|
4784
|
+
* @description The ID of the resource. Mutually exclusive with `resource_external_id` and `resource_type_slug`.
|
|
4785
|
+
* @example authz_resource_01HXYZ123456789ABCDEFGH
|
|
4786
|
+
*/
|
|
4787
|
+
resource_id: string;
|
|
4788
|
+
} | {
|
|
4789
|
+
/**
|
|
4790
|
+
* @description The external ID of the resource. Required with `resource_type_slug`. Mutually exclusive with `resource_id`.
|
|
4791
|
+
* @example project-ext-456
|
|
4792
|
+
*/
|
|
4793
|
+
resource_external_id: string;
|
|
4794
|
+
/**
|
|
4795
|
+
* @description The resource type slug. Required with `resource_external_id`. Mutually exclusive with `resource_id`.
|
|
4796
|
+
* @example project
|
|
4797
|
+
*/
|
|
4798
|
+
resource_type_slug: string;
|
|
4799
|
+
});
|
|
4800
|
+
PatchRoleAssignmentsDto: {
|
|
4801
|
+
/**
|
|
4802
|
+
* @description Role assignments to add to the organization membership. Assignments that already exist are skipped.
|
|
4803
|
+
* @default []
|
|
4804
|
+
* @example [
|
|
4805
|
+
* {
|
|
4806
|
+
* "role_slug": "editor",
|
|
4807
|
+
* "resource_id": "authz_resource_01HXYZ123456789ABCDEFGH"
|
|
4808
|
+
* }
|
|
4809
|
+
* ]
|
|
4810
|
+
*/
|
|
4811
|
+
add: components["schemas"]["PatchRoleAssignmentEntryDto"][];
|
|
4812
|
+
/**
|
|
4813
|
+
* @description Role assignments to remove from the organization membership. Entries that match no assignment are skipped. Roles granted through a group cannot be removed.
|
|
4814
|
+
* @default []
|
|
4815
|
+
* @example [
|
|
4816
|
+
* {
|
|
4817
|
+
* "role_slug": "viewer",
|
|
4818
|
+
* "resource_type_slug": "project",
|
|
4819
|
+
* "resource_external_id": "project-ext-456"
|
|
4820
|
+
* }
|
|
4821
|
+
* ]
|
|
4822
|
+
*/
|
|
4823
|
+
remove: components["schemas"]["PatchRoleAssignmentEntryDto"][];
|
|
4824
|
+
};
|
|
4772
4825
|
RemoveRoleDto: {
|
|
4773
4826
|
/**
|
|
4774
4827
|
* @description The slug of the role to remove.
|
|
@@ -6649,7 +6702,7 @@ export interface components {
|
|
|
6649
6702
|
* @description A machine-readable error code; additional values may be added over time.
|
|
6650
6703
|
* @enum {string}
|
|
6651
6704
|
*/
|
|
6652
|
-
ErrorBodyCode: "account_selection_required" | "action_denied" | "already_claimed" | "ambiguous_saml_options" | "api_key_already_expired" | "application_consent_required" | "auth_method_disabled" | "auth_method_mismatch" | "authentication_method_not_allowed" | "authorization_resource_external_id_conflict" | "bad_request" | "both_saml_and_oidc_options_provided" | "cannot_deactivate_pending_organization_membership" | "cannot_delete_last_certificate" | "cannot_reactivate_pending_organization_membership" | "certificate_expired" | "chain_depth_exceeded" | "claim_denied" | "claim_expired" | "client_secret_not_accepted" | "client_secret_required" | "code_challenge_not_found" | "concurrent_flag_target_update" | "concurrent_request" | "connected_account_limit_reached" | "connection_could_not_be_verified" | "connection_deletion_in_progress" | "connection_is_not_saml" | "connection_type_conflicts_with_options" | "connection_type_not_supported" | "connection_type_not_updatable" | "connection_type_or_options_required" | "daily_quota_exceeded" | "directory_sync_disabled" | "directory_sync_in_progress" | "directory_sync_rate_limited" | "directory_sync_unsupported" | "discovery_endpoint_must_use_https" | "domain_already_exists" | "domain_already_verified" | "duplicate_endpoint" | "duplicate_group_role_assignment" | "email_already_in_use" | "email_already_invited" | "email_already_invited_to_organization" | "email_already_verified" | "email_change_code_expired" | "email_change_code_incorrect" | "email_change_code_previously_used" | "email_change_not_allowed" | "email_change_not_needed" | "email_change_too_many_attempts" | "email_completion_required" | "email_domain_not_deliverable" | "email_mismatch" | "email_not_available" | "email_password_auth_disabled" | "email_previously_verified" | "email_verification_code_expired" | "email_verification_code_incorrect" | "email_verification_code_previously_used" | "email_verification_required" | "entity_not_found" | "expires_in_days_too_long" | "expires_in_days_too_short" | "external_auth_session_already_completed" | "external_id_already_in_use" | "external_id_already_used" | "group_membership_limit_exceeded" | "group_membership_update_overlap" | "group_role_assignment_update_overlap" | "id_token_signature_algorithm_not_supported" | "idp_metadata_fetch_failed" | "incomplete_saml_options" | "invalid_agent_access_token" | "invalid_certificate" | "invalid_claim" | "invalid_credentials" | "invalid_email" | "invalid_idp_sso_url" | "invalid_invite" | "invalid_locale" | "invalid_metadata" | "invalid_one_time_code" | "invalid_organization" | "invalid_organization_id" | "invalid_password_hash" | "invalid_pending_authentication_token" | "invalid_refresh_token" | "invalid_request" | "invalid_request_parameters" | "invalid_role" | "invalid_state" | "invalid_url" | "invalid_user_access_token" | "invitation_email_not_sent" | "invite_accepted" | "invite_expired" | "invite_has_accepted_user_id" | "invite_not_pending" | "invite_revoked" | "ip_address_required" | "it_contact_already_exists" | "it_contact_invitation_already_active" | "key_pair_not_accepted" | "lock_timeout" | "max_age_exceeded" | "mfa_challenge" | "mfa_enrollment" | "missing_organization_id_or_resource_type_slug" | "missing_user_id_or_organization_id" | "multiple_roles_not_enabled" | "name_already_in_use" | "no_pending_email_change" | "oidc_options_required" | "one_time_code_expired" | "one_time_code_previously_used" | "one_time_code_too_many_attempts" | "organization_blocked_from_sending_invites" | "organization_membership_directory_managed" | "organization_not_found" | "organization_not_invocable" | "organization_role_slug_conflict" | "organization_selection_required" | "passkey_progressive_enrollment" | "password_and_password_hash_provided" | "password_and_password_hash_type_provided" | "password_reset_error" | "password_reset_not_allowed" | "password_salt_position_requires_password_hash" | "password_strength_error" | "permission_not_found" | "permission_slug_conflict" | "phone_number_required" | "production_feature_requires_billing" | "radar_challenge" | "radar_sign_up_challenge" | "radar_sms_sign_in_challenge" | "rate_limit_exceeded" | "resource_has_dependents" | "resource_limit_exceeded" | "resource_type_update_in_progress" | "role_has_assignments" | "role_has_group_role_mappings" | "role_not_found" | "role_not_invocable" | "role_slug_conflict" | "saml_options_required" | "session_expired" | "session_revoked" | "session_settings_not_found" | "sms_challenge_quota_reached" | "sms_challenge_rate_limited" | "sp_signing_cert_already_exists" | "stripe_customer_id_already_used" | "sub_resource_scoped_role_not_allowed" | "team_not_found" | "token_authentication_method_not_supported" | "too_many_failed_verification_attempts" | "too_many_sp_encryption_certs" | "unsupported_invocation_type" | "user_already_exists" | "user_already_organization_member" | "user_code_expired" | "user_consent_options_not_supported" | "user_creation_error" | "user_mismatch" | "user_not_member_of_organization" | "user_session_ended" | "verification_id_required" | "wrong_account";
|
|
6705
|
+
ErrorBodyCode: "account_selection_required" | "action_denied" | "already_claimed" | "ambiguous_saml_options" | "api_key_already_expired" | "application_consent_required" | "auth_method_disabled" | "auth_method_mismatch" | "authentication_method_not_allowed" | "authorization_resource_external_id_conflict" | "bad_request" | "both_saml_and_oidc_options_provided" | "cannot_deactivate_pending_organization_membership" | "cannot_delete_last_certificate" | "cannot_reactivate_pending_organization_membership" | "cannot_remove_group_sourced_role" | "certificate_expired" | "chain_depth_exceeded" | "claim_denied" | "claim_expired" | "client_secret_not_accepted" | "client_secret_required" | "code_challenge_not_found" | "concurrent_flag_target_update" | "concurrent_request" | "connected_account_limit_reached" | "connection_could_not_be_verified" | "connection_deletion_in_progress" | "connection_is_not_saml" | "connection_type_conflicts_with_options" | "connection_type_not_supported" | "connection_type_not_updatable" | "connection_type_or_options_required" | "daily_quota_exceeded" | "directory_sync_disabled" | "directory_sync_in_progress" | "directory_sync_rate_limited" | "directory_sync_unsupported" | "discovery_endpoint_must_use_https" | "domain_already_exists" | "domain_already_verified" | "duplicate_endpoint" | "duplicate_group_role_assignment" | "email_already_in_use" | "email_already_invited" | "email_already_invited_to_organization" | "email_already_verified" | "email_change_code_expired" | "email_change_code_incorrect" | "email_change_code_previously_used" | "email_change_not_allowed" | "email_change_not_needed" | "email_change_too_many_attempts" | "email_completion_required" | "email_domain_not_deliverable" | "email_mismatch" | "email_not_available" | "email_password_auth_disabled" | "email_previously_verified" | "email_verification_code_expired" | "email_verification_code_incorrect" | "email_verification_code_previously_used" | "email_verification_required" | "entity_not_found" | "expires_in_days_too_long" | "expires_in_days_too_short" | "external_auth_session_already_completed" | "external_id_already_in_use" | "external_id_already_used" | "group_membership_limit_exceeded" | "group_membership_update_overlap" | "group_role_assignment_update_overlap" | "id_token_signature_algorithm_not_supported" | "idp_metadata_fetch_failed" | "incomplete_saml_options" | "invalid_agent_access_token" | "invalid_certificate" | "invalid_claim" | "invalid_credentials" | "invalid_email" | "invalid_idp_sso_url" | "invalid_invite" | "invalid_locale" | "invalid_metadata" | "invalid_one_time_code" | "invalid_organization" | "invalid_organization_id" | "invalid_password_hash" | "invalid_pending_authentication_token" | "invalid_refresh_token" | "invalid_request" | "invalid_request_parameters" | "invalid_role" | "invalid_state" | "invalid_url" | "invalid_user_access_token" | "invitation_email_not_sent" | "invite_accepted" | "invite_expired" | "invite_has_accepted_user_id" | "invite_not_pending" | "invite_revoked" | "ip_address_required" | "it_contact_already_exists" | "it_contact_invitation_already_active" | "key_pair_not_accepted" | "lock_timeout" | "max_age_exceeded" | "mfa_challenge" | "mfa_enrollment" | "missing_organization_id_or_resource_type_slug" | "missing_user_id_or_organization_id" | "multiple_roles_not_enabled" | "name_already_in_use" | "no_pending_email_change" | "oidc_options_required" | "one_time_code_expired" | "one_time_code_previously_used" | "one_time_code_too_many_attempts" | "organization_blocked_from_sending_invites" | "organization_membership_directory_managed" | "organization_not_found" | "organization_not_invocable" | "organization_role_slug_conflict" | "organization_selection_required" | "passkey_progressive_enrollment" | "password_and_password_hash_provided" | "password_and_password_hash_type_provided" | "password_reset_error" | "password_reset_not_allowed" | "password_salt_position_requires_password_hash" | "password_strength_error" | "permission_not_found" | "permission_slug_conflict" | "phone_number_required" | "production_feature_requires_billing" | "radar_challenge" | "radar_sign_up_challenge" | "radar_sms_sign_in_challenge" | "rate_limit_exceeded" | "resource_has_dependents" | "resource_limit_exceeded" | "resource_type_update_in_progress" | "role_assignment_update_overlap" | "role_has_assignments" | "role_has_group_role_mappings" | "role_not_found" | "role_not_invocable" | "role_slug_conflict" | "saml_options_required" | "session_expired" | "session_revoked" | "session_settings_not_found" | "sms_challenge_quota_reached" | "sms_challenge_rate_limited" | "sp_signing_cert_already_exists" | "stripe_customer_id_already_used" | "sub_resource_scoped_role_not_allowed" | "team_not_found" | "token_authentication_method_not_supported" | "too_many_failed_verification_attempts" | "too_many_sp_encryption_certs" | "unsupported_invocation_type" | "user_already_exists" | "user_already_organization_member" | "user_code_expired" | "user_consent_options_not_supported" | "user_creation_error" | "user_mismatch" | "user_not_member_of_organization" | "user_session_ended" | "verification_id_required" | "wrong_account";
|
|
6653
6706
|
ErrorBodyWithCode: {
|
|
6654
6707
|
/**
|
|
6655
6708
|
* @description The error code identifying the type of error.
|
|
@@ -6670,7 +6723,7 @@ export interface components {
|
|
|
6670
6723
|
error: string;
|
|
6671
6724
|
/**
|
|
6672
6725
|
* @description A human-readable description of the error.
|
|
6673
|
-
* @example
|
|
6726
|
+
* @example Request could not be processed.
|
|
6674
6727
|
*/
|
|
6675
6728
|
message: string;
|
|
6676
6729
|
};
|
|
@@ -7151,6 +7204,19 @@ export interface components {
|
|
|
7151
7204
|
*/
|
|
7152
7205
|
message: string;
|
|
7153
7206
|
};
|
|
7207
|
+
RoleAssignmentUpdateOverlapErrorBody: {
|
|
7208
|
+
/**
|
|
7209
|
+
* @description The error code identifying the type of error.
|
|
7210
|
+
* @example role_assignment_update_overlap
|
|
7211
|
+
* @constant
|
|
7212
|
+
*/
|
|
7213
|
+
code: "role_assignment_update_overlap";
|
|
7214
|
+
/**
|
|
7215
|
+
* @description A human-readable description of the error.
|
|
7216
|
+
* @example Request could not be processed.
|
|
7217
|
+
*/
|
|
7218
|
+
message: string;
|
|
7219
|
+
};
|
|
7154
7220
|
IdpMetadataFetchFailedErrorBody: {
|
|
7155
7221
|
/**
|
|
7156
7222
|
* @description The error code identifying the type of error.
|
|
@@ -25924,6 +25990,83 @@ export interface operations {
|
|
|
25924
25990
|
};
|
|
25925
25991
|
};
|
|
25926
25992
|
};
|
|
25993
|
+
AuthorizationRoleAssignmentsController_patchRoleAssignments: {
|
|
25994
|
+
parameters: {
|
|
25995
|
+
query?: never;
|
|
25996
|
+
header?: never;
|
|
25997
|
+
path: {
|
|
25998
|
+
/** @description The ID of the organization membership. */
|
|
25999
|
+
organization_membership_id: string;
|
|
26000
|
+
};
|
|
26001
|
+
cookie?: never;
|
|
26002
|
+
};
|
|
26003
|
+
requestBody: {
|
|
26004
|
+
content: {
|
|
26005
|
+
"application/json": components["schemas"]["PatchRoleAssignmentsDto"];
|
|
26006
|
+
};
|
|
26007
|
+
};
|
|
26008
|
+
responses: {
|
|
26009
|
+
/** @description No Content */
|
|
26010
|
+
204: {
|
|
26011
|
+
headers: {
|
|
26012
|
+
[name: string]: unknown;
|
|
26013
|
+
};
|
|
26014
|
+
content?: never;
|
|
26015
|
+
};
|
|
26016
|
+
/** @description Bad Request */
|
|
26017
|
+
400: {
|
|
26018
|
+
headers: {
|
|
26019
|
+
[name: string]: unknown;
|
|
26020
|
+
};
|
|
26021
|
+
content: {
|
|
26022
|
+
"application/json": components["schemas"]["RoleAssignmentUpdateOverlapErrorBody"] | components["schemas"]["ErrorBodyWithError"];
|
|
26023
|
+
};
|
|
26024
|
+
};
|
|
26025
|
+
402: {
|
|
26026
|
+
headers: {
|
|
26027
|
+
[name: string]: unknown;
|
|
26028
|
+
};
|
|
26029
|
+
content: {
|
|
26030
|
+
"application/json": components["schemas"]["ErrorBodyWithCode"];
|
|
26031
|
+
};
|
|
26032
|
+
};
|
|
26033
|
+
/** @description Forbidden */
|
|
26034
|
+
403: {
|
|
26035
|
+
headers: {
|
|
26036
|
+
[name: string]: unknown;
|
|
26037
|
+
};
|
|
26038
|
+
content: {
|
|
26039
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
26040
|
+
};
|
|
26041
|
+
};
|
|
26042
|
+
/** @description Not Found */
|
|
26043
|
+
404: {
|
|
26044
|
+
headers: {
|
|
26045
|
+
[name: string]: unknown;
|
|
26046
|
+
};
|
|
26047
|
+
content: {
|
|
26048
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
26049
|
+
};
|
|
26050
|
+
};
|
|
26051
|
+
409: {
|
|
26052
|
+
headers: {
|
|
26053
|
+
[name: string]: unknown;
|
|
26054
|
+
};
|
|
26055
|
+
content: {
|
|
26056
|
+
"application/json": components["schemas"]["ErrorBodyWithCode"];
|
|
26057
|
+
};
|
|
26058
|
+
};
|
|
26059
|
+
/** @description Unprocessable Entity */
|
|
26060
|
+
422: {
|
|
26061
|
+
headers: {
|
|
26062
|
+
[name: string]: unknown;
|
|
26063
|
+
};
|
|
26064
|
+
content: {
|
|
26065
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
26066
|
+
};
|
|
26067
|
+
};
|
|
26068
|
+
};
|
|
26069
|
+
};
|
|
25927
26070
|
AuthorizationRoleAssignmentsController_removeRoleById: {
|
|
25928
26071
|
parameters: {
|
|
25929
26072
|
query?: never;
|