@workos/openapi-spec 0.167.0 → 0.169.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.
@@ -3183,7 +3183,10 @@ paths:
3183
3183
  tags:
3184
3184
  - authorization
3185
3185
  post:
3186
- description: Assign a role to an organization membership on a specific resource.
3186
+ description: >-
3187
+ Assign a role to an organization membership on a specific resource. If
3188
+ the role is already assigned to the membership on that resource, the
3189
+ existing role assignment is returned and no changes are made.
3187
3190
  operationId: AuthorizationRoleAssignmentsController_assignRole
3188
3191
  parameters:
3189
3192
  - name: organization_membership_id
@@ -3258,6 +3261,75 @@ paths:
3258
3261
  by_external_id:
3259
3262
  - resource_external_id
3260
3263
  - resource_type_slug
3264
+ patch:
3265
+ description: >-
3266
+ Add and remove role assignments for an organization membership in a
3267
+ single atomic operation. Each entry identifies a role and a resource,
3268
+ either by `resource_id` or by `resource_type_slug` and
3269
+ `resource_external_id`; to change an organization-level role, target the
3270
+ organization resource. Additions that already exist and removals that
3271
+ match no assignment are skipped. An assignment in both lists is
3272
+ rejected, as is a removal of a role granted only through a group. `add`
3273
+ and `remove` must contain between 1 and 100 entries combined.
3274
+ operationId: AuthorizationRoleAssignmentsController_patchRoleAssignments
3275
+ parameters:
3276
+ - name: organization_membership_id
3277
+ required: true
3278
+ in: path
3279
+ description: The ID of the organization membership.
3280
+ schema:
3281
+ type: string
3282
+ example: om_01HXYZ123456789ABCDEFGHIJ
3283
+ requestBody:
3284
+ required: true
3285
+ content:
3286
+ application/json:
3287
+ schema:
3288
+ $ref: '#/components/schemas/PatchRoleAssignmentsDto'
3289
+ responses:
3290
+ '204':
3291
+ description: No Content
3292
+ '400':
3293
+ description: Bad Request
3294
+ content:
3295
+ application/json:
3296
+ schema:
3297
+ anyOf:
3298
+ - $ref: '#/components/schemas/RoleAssignmentUpdateOverlapErrorBody'
3299
+ - $ref: '#/components/schemas/ErrorBodyWithError'
3300
+ '402':
3301
+ description: ''
3302
+ content:
3303
+ application/json:
3304
+ schema:
3305
+ $ref: '#/components/schemas/ErrorBodyWithCode'
3306
+ '403':
3307
+ description: Forbidden
3308
+ content:
3309
+ application/json:
3310
+ schema:
3311
+ $ref: '#/components/schemas/ErrorBody'
3312
+ '404':
3313
+ description: Not Found
3314
+ content:
3315
+ application/json:
3316
+ schema:
3317
+ $ref: '#/components/schemas/ErrorBody'
3318
+ '409':
3319
+ description: ''
3320
+ content:
3321
+ application/json:
3322
+ schema:
3323
+ $ref: '#/components/schemas/ErrorBodyWithCode'
3324
+ '422':
3325
+ description: Unprocessable Entity
3326
+ content:
3327
+ application/json:
3328
+ schema:
3329
+ $ref: '#/components/schemas/ErrorBody'
3330
+ summary: Update role assignments for an organization membership
3331
+ tags:
3332
+ - authorization
3261
3333
  delete:
3262
3334
  description: Remove a role assignment by role slug and resource.
3263
3335
  operationId: AuthorizationRoleAssignmentsController_removeRoleByCriteria
@@ -20661,6 +20733,100 @@ components:
20661
20733
  required:
20662
20734
  - resource_id
20663
20735
  x-mutually-exclusive-body-groups: *ref_6
20736
+ PatchRoleAssignmentEntryDto:
20737
+ allOf:
20738
+ - type: object
20739
+ properties:
20740
+ role_slug:
20741
+ type: string
20742
+ description: The slug of the role.
20743
+ example: editor
20744
+ required:
20745
+ - role_slug
20746
+ - oneOf:
20747
+ - type: object
20748
+ properties:
20749
+ resource_id:
20750
+ type: string
20751
+ description: >-
20752
+ The ID of the resource. Mutually exclusive with
20753
+ `resource_external_id` and `resource_type_slug`.
20754
+ example: authz_resource_01HXYZ123456789ABCDEFGH
20755
+ required:
20756
+ - resource_id
20757
+ not:
20758
+ anyOf:
20759
+ - properties:
20760
+ resource_external_id:
20761
+ x-exclude-from-lint: true
20762
+ required:
20763
+ - resource_external_id
20764
+ - properties:
20765
+ resource_type_slug:
20766
+ x-exclude-from-lint: true
20767
+ required:
20768
+ - resource_type_slug
20769
+ - type: object
20770
+ properties:
20771
+ resource_external_id:
20772
+ type: string
20773
+ description: >-
20774
+ The external ID of the resource. Required with
20775
+ `resource_type_slug`. Mutually exclusive with `resource_id`.
20776
+ example: project-ext-456
20777
+ resource_type_slug:
20778
+ type: string
20779
+ description: >-
20780
+ The resource type slug. Required with
20781
+ `resource_external_id`. Mutually exclusive with
20782
+ `resource_id`.
20783
+ example: project
20784
+ required:
20785
+ - resource_external_id
20786
+ - resource_type_slug
20787
+ not:
20788
+ anyOf:
20789
+ - properties:
20790
+ resource_id:
20791
+ x-exclude-from-lint: true
20792
+ required:
20793
+ - resource_id
20794
+ x-mutually-exclusive-body-groups:
20795
+ resource_target:
20796
+ optional: false
20797
+ variants:
20798
+ by_id:
20799
+ - resource_id
20800
+ by_external_id:
20801
+ - resource_external_id
20802
+ - resource_type_slug
20803
+ PatchRoleAssignmentsDto:
20804
+ type: object
20805
+ properties:
20806
+ add:
20807
+ default: []
20808
+ description: >-
20809
+ Role assignments to add to the organization membership. Assignments
20810
+ that already exist are skipped.
20811
+ example:
20812
+ - role_slug: editor
20813
+ resource_id: authz_resource_01HXYZ123456789ABCDEFGH
20814
+ type: array
20815
+ items:
20816
+ $ref: '#/components/schemas/PatchRoleAssignmentEntryDto'
20817
+ remove:
20818
+ default: []
20819
+ description: >-
20820
+ Role assignments to remove from the organization membership. Entries
20821
+ that match no assignment are skipped. Roles granted through a group
20822
+ cannot be removed.
20823
+ example:
20824
+ - role_slug: viewer
20825
+ resource_type_slug: project
20826
+ resource_external_id: project-ext-456
20827
+ type: array
20828
+ items:
20829
+ $ref: '#/components/schemas/PatchRoleAssignmentEntryDto'
20664
20830
  RemoveRoleDto:
20665
20831
  allOf:
20666
20832
  - type: object
@@ -24252,6 +24418,7 @@ components:
24252
24418
  - cannot_deactivate_pending_organization_membership
24253
24419
  - cannot_delete_last_certificate
24254
24420
  - cannot_reactivate_pending_organization_membership
24421
+ - cannot_remove_group_sourced_role
24255
24422
  - certificate_expired
24256
24423
  - chain_depth_exceeded
24257
24424
  - claim_denied
@@ -24379,6 +24546,7 @@ components:
24379
24546
  - resource_has_dependents
24380
24547
  - resource_limit_exceeded
24381
24548
  - resource_type_update_in_progress
24549
+ - role_assignment_update_overlap
24382
24550
  - role_has_assignments
24383
24551
  - role_has_group_role_mappings
24384
24552
  - role_not_found
@@ -24432,7 +24600,7 @@ components:
24432
24600
  message:
24433
24601
  type: string
24434
24602
  description: A human-readable description of the error.
24435
- example: Claim "sub" is reserved and cannot be used.
24603
+ example: Request could not be processed.
24436
24604
  required:
24437
24605
  - error
24438
24606
  - message
@@ -25020,6 +25188,16 @@ components:
25020
25188
  const: sms_challenge_quota_reached
25021
25189
  message: *ref_29
25022
25190
  required: *ref_30
25191
+ RoleAssignmentUpdateOverlapErrorBody:
25192
+ type: object
25193
+ properties:
25194
+ code:
25195
+ type: string
25196
+ description: The error code identifying the type of error.
25197
+ example: role_assignment_update_overlap
25198
+ const: role_assignment_update_overlap
25199
+ message: *ref_29
25200
+ required: *ref_30
25023
25201
  IdpMetadataFetchFailedErrorBody:
25024
25202
  type: object
25025
25203
  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
@@ -715,7 +715,7 @@ export interface paths {
715
715
  put?: never;
716
716
  /**
717
717
  * Assign a role
718
- * @description Assign a role to an organization membership on a specific resource.
718
+ * @description Assign a role to an organization membership on a specific resource. If the role is already assigned to the membership on that resource, the existing role assignment is returned and no changes are made.
719
719
  */
720
720
  post: operations["AuthorizationRoleAssignmentsController_assignRole"];
721
721
  /**
@@ -725,7 +725,11 @@ export interface paths {
725
725
  delete: operations["AuthorizationRoleAssignmentsController_removeRoleByCriteria"];
726
726
  options?: never;
727
727
  head?: never;
728
- patch?: never;
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}": {
@@ -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 Claim "sub" is reserved and cannot be used.
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.167.0",
3
+ "version": "0.169.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",