@workos/openapi-spec 0.134.0 → 0.136.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.
@@ -2394,9 +2394,11 @@ paths:
2394
2394
  /audit_logs/actions/{actionName}/schemas:
2395
2395
  post:
2396
2396
  description: >-
2397
- Creates a new Audit Log schema used to validate the payload of incoming
2398
- Audit Log Events. If the `action` does not exist, it will also be
2399
- created.
2397
+ Creates an Audit Log schema used to validate incoming Audit Log events,
2398
+ or returns the latest version if the submitted schema matches it. If the
2399
+ schema differs from the latest version, creates and returns a new
2400
+ version. If the action does not exist, creates the action and its first
2401
+ schema version.
2400
2402
  operationId: AuditLogValidatorVersionsController_create
2401
2403
  parameters:
2402
2404
  - name: actionName
@@ -3649,6 +3651,110 @@ paths:
3649
3651
  summary: Assign a role to a group
3650
3652
  tags:
3651
3653
  - authorization
3654
+ patch:
3655
+ description: >-
3656
+ Add and remove role assignments for a group in a single atomic
3657
+ operation. Additions that already exist and removals that match no
3658
+ assignment are skipped. An assignment in both lists is rejected. `add`
3659
+ and `remove` must contain between 1 and 100 entries combined.
3660
+ operationId: AuthorizationGroupRoleAssignmentsController_patchGroupRoleAssignments
3661
+ parameters:
3662
+ - name: group_id
3663
+ required: true
3664
+ in: path
3665
+ description: The ID of the group.
3666
+ schema:
3667
+ type: string
3668
+ example: group_01HXYZ123456789ABCDEFGHIJ
3669
+ requestBody:
3670
+ required: true
3671
+ content:
3672
+ application/json:
3673
+ schema:
3674
+ $ref: '#/components/schemas/PatchGroupRoleAssignmentsDto'
3675
+ responses:
3676
+ '204':
3677
+ description: No Content
3678
+ '400':
3679
+ description: Bad Request
3680
+ content:
3681
+ application/json:
3682
+ schema:
3683
+ type: object
3684
+ properties:
3685
+ code:
3686
+ type: string
3687
+ description: The error code identifying the type of error.
3688
+ example: group_role_assignment_update_overlap
3689
+ const: group_role_assignment_update_overlap
3690
+ message:
3691
+ type: string
3692
+ description: A human-readable description of the error.
3693
+ example: Request could not be processed.
3694
+ required:
3695
+ - code
3696
+ - message
3697
+ '402':
3698
+ description: ''
3699
+ content:
3700
+ application/json:
3701
+ schema:
3702
+ type: object
3703
+ properties:
3704
+ code:
3705
+ type: string
3706
+ description: The error code identifying the type of error.
3707
+ example: production_feature_requires_billing
3708
+ const: production_feature_requires_billing
3709
+ message:
3710
+ type: string
3711
+ description: A human-readable description of the error.
3712
+ example: Request could not be processed.
3713
+ required:
3714
+ - code
3715
+ - message
3716
+ '403':
3717
+ description: Forbidden
3718
+ content:
3719
+ application/json:
3720
+ schema:
3721
+ type: object
3722
+ properties:
3723
+ message:
3724
+ type: string
3725
+ description: A human-readable description of the error.
3726
+ example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
3727
+ required:
3728
+ - message
3729
+ '404':
3730
+ description: Not Found
3731
+ content:
3732
+ application/json:
3733
+ schema:
3734
+ type: object
3735
+ properties:
3736
+ message:
3737
+ type: string
3738
+ description: A human-readable description of the error.
3739
+ example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
3740
+ required:
3741
+ - message
3742
+ '422':
3743
+ description: Unprocessable Entity
3744
+ content:
3745
+ application/json:
3746
+ schema:
3747
+ type: object
3748
+ properties:
3749
+ message:
3750
+ type: string
3751
+ description: A human-readable description of the error.
3752
+ example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
3753
+ required:
3754
+ - message
3755
+ summary: Update role assignments for a group
3756
+ tags:
3757
+ - authorization
3652
3758
  put:
3653
3759
  description: >-
3654
3760
  Replace all role assignments for a group with the provided list.
@@ -25064,6 +25170,12 @@ paths:
25064
25170
  schema:
25065
25171
  type: string
25066
25172
  example: user_01E4ZCR3C56J083X43JQXF3JK5
25173
+ requestBody:
25174
+ required: false
25175
+ content:
25176
+ application/json:
25177
+ schema:
25178
+ $ref: '#/components/schemas/SendVerificationEmailDto'
25067
25179
  responses:
25068
25180
  '200':
25069
25181
  description: OK
@@ -25103,6 +25215,25 @@ paths:
25103
25215
  example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
25104
25216
  required:
25105
25217
  - message
25218
+ '422':
25219
+ description: Unprocessable Entity
25220
+ content:
25221
+ application/json:
25222
+ schema:
25223
+ type: object
25224
+ properties:
25225
+ code:
25226
+ type: string
25227
+ description: The error code identifying the type of error.
25228
+ example: invalid_request_parameters
25229
+ const: invalid_request_parameters
25230
+ message:
25231
+ type: string
25232
+ description: A human-readable description of the error.
25233
+ example: Validation failed.
25234
+ required:
25235
+ - code
25236
+ - message
25106
25237
  '429':
25107
25238
  description: ''
25108
25239
  content:
@@ -28974,6 +29105,33 @@ components:
28974
29105
  example: project
28975
29106
  required:
28976
29107
  - role_slug
29108
+ PatchGroupRoleAssignmentsDto:
29109
+ type: object
29110
+ properties:
29111
+ add:
29112
+ default: []
29113
+ description: >-
29114
+ Role assignments to add to the group. Assignments that already exist
29115
+ are skipped.
29116
+ example:
29117
+ - role_slug: admin
29118
+ - role_slug: member
29119
+ resource_id: authz_resource_01HXYZ123456789ABCDEFGH
29120
+ type: array
29121
+ items:
29122
+ $ref: '#/components/schemas/ReplaceGroupRoleAssignmentEntryDto'
29123
+ remove:
29124
+ default: []
29125
+ description: >-
29126
+ Role assignments to remove from the group. Entries that match no
29127
+ assignment are skipped.
29128
+ example:
29129
+ - role_slug: editor
29130
+ resource_type_slug: project
29131
+ resource_external_id: proj-789
29132
+ type: array
29133
+ items:
29134
+ $ref: '#/components/schemas/ReplaceGroupRoleAssignmentEntryDto'
28977
29135
  ReplaceGroupRoleAssignmentsDto:
28978
29136
  type: object
28979
29137
  properties:
@@ -31040,6 +31198,104 @@ components:
31040
31198
  An optional Radar signals ID to correlate client-side signals with
31041
31199
  this request.
31042
31200
  example: 01JBS0GN92GC2RJQS4X9DBPQ2A
31201
+ locale:
31202
+ type: string
31203
+ description: >-
31204
+ The locale to use when rendering the Magic Auth email. Defaults to
31205
+ the environment's default locale. See [supported
31206
+ locales](/authkit/hosted-ui#localization).
31207
+ enum:
31208
+ - af
31209
+ - am
31210
+ - ar
31211
+ - bg
31212
+ - bn
31213
+ - bs
31214
+ - ca
31215
+ - cs
31216
+ - da
31217
+ - de
31218
+ - de-DE
31219
+ - el
31220
+ - en
31221
+ - en-AU
31222
+ - en-CA
31223
+ - en-GB
31224
+ - en-US
31225
+ - es
31226
+ - es-419
31227
+ - es-ES
31228
+ - es-US
31229
+ - et
31230
+ - fa
31231
+ - fi
31232
+ - fil
31233
+ - fr
31234
+ - fr-BE
31235
+ - fr-CA
31236
+ - fr-FR
31237
+ - fy
31238
+ - gl
31239
+ - gu
31240
+ - ha
31241
+ - he
31242
+ - hi
31243
+ - hr
31244
+ - hu
31245
+ - hy
31246
+ - id
31247
+ - is
31248
+ - it
31249
+ - it-IT
31250
+ - ja
31251
+ - jv
31252
+ - ka
31253
+ - kk
31254
+ - km
31255
+ - kn
31256
+ - ko
31257
+ - lt
31258
+ - lv
31259
+ - mk
31260
+ - ml
31261
+ - mn
31262
+ - mr
31263
+ - ms
31264
+ - my
31265
+ - nb
31266
+ - ne
31267
+ - nl
31268
+ - nl-BE
31269
+ - nl-NL
31270
+ - nn
31271
+ - 'no'
31272
+ - pa
31273
+ - pl
31274
+ - pt
31275
+ - pt-BR
31276
+ - pt-PT
31277
+ - ro
31278
+ - ru
31279
+ - sk
31280
+ - sl
31281
+ - sq
31282
+ - sr
31283
+ - sv
31284
+ - sw
31285
+ - ta
31286
+ - te
31287
+ - th
31288
+ - tr
31289
+ - uk
31290
+ - ur
31291
+ - uz
31292
+ - vi
31293
+ - zh
31294
+ - zh-CN
31295
+ - zh-HK
31296
+ - zh-TW
31297
+ - zu
31298
+ example: en
31043
31299
  required:
31044
31300
  - email
31045
31301
  CreateUserlandUserInviteOptionsDto:
@@ -31076,6 +31332,10 @@ components:
31076
31332
  example: user_01HYGBX8ZGD19949T3BM4FW1C3
31077
31333
  locale:
31078
31334
  type: string
31335
+ description: >-
31336
+ The locale to use when rendering the invitation email. Defaults to
31337
+ the environment's default locale. See [supported
31338
+ locales](/authkit/hosted-ui#localization).
31079
31339
  enum:
31080
31340
  - af
31081
31341
  - am
@@ -31167,9 +31427,6 @@ components:
31167
31427
  - zh-HK
31168
31428
  - zh-TW
31169
31429
  - zu
31170
- description: >-
31171
- The locale to use when rendering the invitation email. See
31172
- [supported locales](/authkit/hosted-ui/localization).
31173
31430
  example: en
31174
31431
  required:
31175
31432
  - email
@@ -31178,6 +31435,10 @@ components:
31178
31435
  properties:
31179
31436
  locale:
31180
31437
  type: string
31438
+ description: >-
31439
+ The locale to use when rendering the invitation email. Defaults to
31440
+ the environment's default locale. See [supported
31441
+ locales](/authkit/hosted-ui#localization).
31181
31442
  enum:
31182
31443
  - af
31183
31444
  - am
@@ -31269,9 +31530,6 @@ components:
31269
31530
  - zh-HK
31270
31531
  - zh-TW
31271
31532
  - zu
31272
- description: >-
31273
- The locale to use when rendering the invitation email. See
31274
- [supported locales](/authkit/hosted-ui/localization).
31275
31533
  example: en
31276
31534
  CreateUserlandUserOrganizationMembershipDto:
31277
31535
  allOf:
@@ -31747,34 +32005,233 @@ components:
31747
32005
  required:
31748
32006
  - password
31749
32007
  x-mutually-exclusive-body-groups: *ref_26
31750
- VerifyEmailAddressDto:
31751
- type: object
31752
- properties:
31753
- code:
31754
- type: string
31755
- description: The one-time email verification code.
31756
- example: '123456'
31757
- format: password
31758
- required:
31759
- - code
31760
- CreatePasswordResetTokenDto:
31761
- type: object
31762
- properties:
31763
- email:
31764
- type: string
31765
- format: email
31766
- description: The email address of the user requesting a password reset.
31767
- example: marcelina.davis@example.com
31768
- required:
31769
- - email
31770
- CreatePasswordResetDto:
32008
+ SendVerificationEmailDto:
31771
32009
  type: object
31772
32010
  properties:
31773
- token:
32011
+ locale:
31774
32012
  type: string
31775
- description: The password reset token.
31776
- example: Z1Y2X3W4V5U6T7S8R9Q0P1O2N3
31777
- new_password:
32013
+ description: >-
32014
+ The locale to use when rendering the verification email. Defaults to
32015
+ the environment's default locale. See [supported
32016
+ locales](/authkit/hosted-ui#localization).
32017
+ enum:
32018
+ - af
32019
+ - am
32020
+ - ar
32021
+ - bg
32022
+ - bn
32023
+ - bs
32024
+ - ca
32025
+ - cs
32026
+ - da
32027
+ - de
32028
+ - de-DE
32029
+ - el
32030
+ - en
32031
+ - en-AU
32032
+ - en-CA
32033
+ - en-GB
32034
+ - en-US
32035
+ - es
32036
+ - es-419
32037
+ - es-ES
32038
+ - es-US
32039
+ - et
32040
+ - fa
32041
+ - fi
32042
+ - fil
32043
+ - fr
32044
+ - fr-BE
32045
+ - fr-CA
32046
+ - fr-FR
32047
+ - fy
32048
+ - gl
32049
+ - gu
32050
+ - ha
32051
+ - he
32052
+ - hi
32053
+ - hr
32054
+ - hu
32055
+ - hy
32056
+ - id
32057
+ - is
32058
+ - it
32059
+ - it-IT
32060
+ - ja
32061
+ - jv
32062
+ - ka
32063
+ - kk
32064
+ - km
32065
+ - kn
32066
+ - ko
32067
+ - lt
32068
+ - lv
32069
+ - mk
32070
+ - ml
32071
+ - mn
32072
+ - mr
32073
+ - ms
32074
+ - my
32075
+ - nb
32076
+ - ne
32077
+ - nl
32078
+ - nl-BE
32079
+ - nl-NL
32080
+ - nn
32081
+ - 'no'
32082
+ - pa
32083
+ - pl
32084
+ - pt
32085
+ - pt-BR
32086
+ - pt-PT
32087
+ - ro
32088
+ - ru
32089
+ - sk
32090
+ - sl
32091
+ - sq
32092
+ - sr
32093
+ - sv
32094
+ - sw
32095
+ - ta
32096
+ - te
32097
+ - th
32098
+ - tr
32099
+ - uk
32100
+ - ur
32101
+ - uz
32102
+ - vi
32103
+ - zh
32104
+ - zh-CN
32105
+ - zh-HK
32106
+ - zh-TW
32107
+ - zu
32108
+ example: en
32109
+ VerifyEmailAddressDto:
32110
+ type: object
32111
+ properties:
32112
+ code:
32113
+ type: string
32114
+ description: The one-time email verification code.
32115
+ example: '123456'
32116
+ format: password
32117
+ required:
32118
+ - code
32119
+ CreatePasswordResetTokenDto:
32120
+ type: object
32121
+ properties:
32122
+ email:
32123
+ type: string
32124
+ format: email
32125
+ description: The email address of the user requesting a password reset.
32126
+ example: marcelina.davis@example.com
32127
+ locale:
32128
+ type: string
32129
+ description: >-
32130
+ The locale to use when rendering the password reset email. Defaults
32131
+ to the environment's default locale. See [supported
32132
+ locales](/authkit/hosted-ui#localization).
32133
+ enum:
32134
+ - af
32135
+ - am
32136
+ - ar
32137
+ - bg
32138
+ - bn
32139
+ - bs
32140
+ - ca
32141
+ - cs
32142
+ - da
32143
+ - de
32144
+ - de-DE
32145
+ - el
32146
+ - en
32147
+ - en-AU
32148
+ - en-CA
32149
+ - en-GB
32150
+ - en-US
32151
+ - es
32152
+ - es-419
32153
+ - es-ES
32154
+ - es-US
32155
+ - et
32156
+ - fa
32157
+ - fi
32158
+ - fil
32159
+ - fr
32160
+ - fr-BE
32161
+ - fr-CA
32162
+ - fr-FR
32163
+ - fy
32164
+ - gl
32165
+ - gu
32166
+ - ha
32167
+ - he
32168
+ - hi
32169
+ - hr
32170
+ - hu
32171
+ - hy
32172
+ - id
32173
+ - is
32174
+ - it
32175
+ - it-IT
32176
+ - ja
32177
+ - jv
32178
+ - ka
32179
+ - kk
32180
+ - km
32181
+ - kn
32182
+ - ko
32183
+ - lt
32184
+ - lv
32185
+ - mk
32186
+ - ml
32187
+ - mn
32188
+ - mr
32189
+ - ms
32190
+ - my
32191
+ - nb
32192
+ - ne
32193
+ - nl
32194
+ - nl-BE
32195
+ - nl-NL
32196
+ - nn
32197
+ - 'no'
32198
+ - pa
32199
+ - pl
32200
+ - pt
32201
+ - pt-BR
32202
+ - pt-PT
32203
+ - ro
32204
+ - ru
32205
+ - sk
32206
+ - sl
32207
+ - sq
32208
+ - sr
32209
+ - sv
32210
+ - sw
32211
+ - ta
32212
+ - te
32213
+ - th
32214
+ - tr
32215
+ - uk
32216
+ - ur
32217
+ - uz
32218
+ - vi
32219
+ - zh
32220
+ - zh-CN
32221
+ - zh-HK
32222
+ - zh-TW
32223
+ - zu
32224
+ example: en
32225
+ required:
32226
+ - email
32227
+ CreatePasswordResetDto:
32228
+ type: object
32229
+ properties:
32230
+ token:
32231
+ type: string
32232
+ description: The password reset token.
32233
+ example: Z1Y2X3W4V5U6T7S8R9Q0P1O2N3
32234
+ new_password:
31778
32235
  type: string
31779
32236
  description: The new password to set for the user.
31780
32237
  example: strong_password_123!
@@ -31788,6 +32245,104 @@ components:
31788
32245
  type: string
31789
32246
  description: The new email address to change to.
31790
32247
  example: new.email@example.com
32248
+ locale:
32249
+ type: string
32250
+ description: >-
32251
+ The locale to use when rendering the email change email. Defaults to
32252
+ the environment's default locale. See [supported
32253
+ locales](/authkit/hosted-ui#localization).
32254
+ enum:
32255
+ - af
32256
+ - am
32257
+ - ar
32258
+ - bg
32259
+ - bn
32260
+ - bs
32261
+ - ca
32262
+ - cs
32263
+ - da
32264
+ - de
32265
+ - de-DE
32266
+ - el
32267
+ - en
32268
+ - en-AU
32269
+ - en-CA
32270
+ - en-GB
32271
+ - en-US
32272
+ - es
32273
+ - es-419
32274
+ - es-ES
32275
+ - es-US
32276
+ - et
32277
+ - fa
32278
+ - fi
32279
+ - fil
32280
+ - fr
32281
+ - fr-BE
32282
+ - fr-CA
32283
+ - fr-FR
32284
+ - fy
32285
+ - gl
32286
+ - gu
32287
+ - ha
32288
+ - he
32289
+ - hi
32290
+ - hr
32291
+ - hu
32292
+ - hy
32293
+ - id
32294
+ - is
32295
+ - it
32296
+ - it-IT
32297
+ - ja
32298
+ - jv
32299
+ - ka
32300
+ - kk
32301
+ - km
32302
+ - kn
32303
+ - ko
32304
+ - lt
32305
+ - lv
32306
+ - mk
32307
+ - ml
32308
+ - mn
32309
+ - mr
32310
+ - ms
32311
+ - my
32312
+ - nb
32313
+ - ne
32314
+ - nl
32315
+ - nl-BE
32316
+ - nl-NL
32317
+ - nn
32318
+ - 'no'
32319
+ - pa
32320
+ - pl
32321
+ - pt
32322
+ - pt-BR
32323
+ - pt-PT
32324
+ - ro
32325
+ - ru
32326
+ - sk
32327
+ - sl
32328
+ - sq
32329
+ - sr
32330
+ - sv
32331
+ - sw
32332
+ - ta
32333
+ - te
32334
+ - th
32335
+ - tr
32336
+ - uk
32337
+ - ur
32338
+ - uz
32339
+ - vi
32340
+ - zh
32341
+ - zh-CN
32342
+ - zh-HK
32343
+ - zh-TW
32344
+ - zu
32345
+ example: en
31791
32346
  required:
31792
32347
  - new_email
31793
32348
  ConfirmEmailChangeDto:
package/dist/policy.mjs CHANGED
@@ -63,6 +63,7 @@ const operationHints = {
63
63
  "POST /authorization/organization_memberships/{organization_membership_id}/role_assignments": { name: "assign_role" },
64
64
  "DELETE /authorization/organization_memberships/{organization_membership_id}/role_assignments": { name: "remove_role" },
65
65
  "DELETE /authorization/organization_memberships/{organization_membership_id}/role_assignments/{role_assignment_id}": { name: "remove_role_assignment" },
66
+ "PATCH /authorization/groups/{group_id}/role_assignments": { name: "patch_group_role_assignments" },
66
67
  "POST /authorization/organizations/{organizationId}/roles": { name: "create_organization_role" },
67
68
  "PUT /authorization/organizations/{organizationId}/roles/{slug}/permissions": { name: "set_organization_role_permissions" },
68
69
  "POST /authorization/organizations/{organizationId}/roles/{slug}/permissions": { name: "add_organization_role_permission" },
package/dist/services.mjs CHANGED
@@ -202,6 +202,11 @@ const serviceEndpoints = {
202
202
  "path": "/authorization/groups/{group_id}/role_assignments",
203
203
  "name": "list_group_role_assignments"
204
204
  },
205
+ {
206
+ "method": "PATCH",
207
+ "path": "/authorization/groups/{group_id}/role_assignments",
208
+ "name": "patch_group_role_assignments"
209
+ },
205
210
  {
206
211
  "method": "POST",
207
212
  "path": "/authorization/groups/{group_id}/role_assignments",
package/dist/types.d.ts CHANGED
@@ -375,7 +375,7 @@ export interface paths {
375
375
  put?: never;
376
376
  /**
377
377
  * Create Schema
378
- * @description Creates a new Audit Log schema used to validate the payload of incoming Audit Log Events. If the `action` does not exist, it will also be created.
378
+ * @description Creates an Audit Log schema used to validate incoming Audit Log events, or returns the latest version if the submitted schema matches it. If the schema differs from the latest version, creates and returns a new version. If the action does not exist, creates the action and its first schema version.
379
379
  */
380
380
  post: operations["AuditLogValidatorVersionsController_create"];
381
381
  delete?: never;
@@ -590,7 +590,11 @@ export interface paths {
590
590
  delete: operations["AuthorizationGroupRoleAssignmentsController_removeGroupRoleAssignments"];
591
591
  options?: never;
592
592
  head?: never;
593
- patch?: never;
593
+ /**
594
+ * Update role assignments for a group
595
+ * @description Add and remove role assignments for a group in a single atomic operation. Additions that already exist and removals that match no assignment are skipped. An assignment in both lists is rejected. `add` and `remove` must contain between 1 and 100 entries combined.
596
+ */
597
+ patch: operations["AuthorizationGroupRoleAssignmentsController_patchGroupRoleAssignments"];
594
598
  trace?: never;
595
599
  };
596
600
  "/authorization/groups/{group_id}/role_assignments/{role_assignment_id}": {
@@ -4582,6 +4586,34 @@ export interface components {
4582
4586
  */
4583
4587
  resource_type_slug?: string;
4584
4588
  };
4589
+ PatchGroupRoleAssignmentsDto: {
4590
+ /**
4591
+ * @description Role assignments to add to the group. Assignments that already exist are skipped.
4592
+ * @default []
4593
+ * @example [
4594
+ * {
4595
+ * "role_slug": "admin"
4596
+ * },
4597
+ * {
4598
+ * "role_slug": "member",
4599
+ * "resource_id": "authz_resource_01HXYZ123456789ABCDEFGH"
4600
+ * }
4601
+ * ]
4602
+ */
4603
+ add: components["schemas"]["ReplaceGroupRoleAssignmentEntryDto"][];
4604
+ /**
4605
+ * @description Role assignments to remove from the group. Entries that match no assignment are skipped.
4606
+ * @default []
4607
+ * @example [
4608
+ * {
4609
+ * "role_slug": "editor",
4610
+ * "resource_type_slug": "project",
4611
+ * "resource_external_id": "proj-789"
4612
+ * }
4613
+ * ]
4614
+ */
4615
+ remove: components["schemas"]["ReplaceGroupRoleAssignmentEntryDto"][];
4616
+ };
4585
4617
  ReplaceGroupRoleAssignmentsDto: {
4586
4618
  /** @description The list of role assignments that should exist for the group. All existing assignments will be replaced. */
4587
4619
  role_assignments: components["schemas"]["ReplaceGroupRoleAssignmentEntryDto"][];
@@ -5974,6 +6006,12 @@ export interface components {
5974
6006
  * @example 01JBS0GN92GC2RJQS4X9DBPQ2A
5975
6007
  */
5976
6008
  signals_id?: string;
6009
+ /**
6010
+ * @description The locale to use when rendering the Magic Auth email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization).
6011
+ * @example en
6012
+ * @enum {string}
6013
+ */
6014
+ locale?: "af" | "am" | "ar" | "bg" | "bn" | "bs" | "ca" | "cs" | "da" | "de" | "de-DE" | "el" | "en" | "en-AU" | "en-CA" | "en-GB" | "en-US" | "es" | "es-419" | "es-ES" | "es-US" | "et" | "fa" | "fi" | "fil" | "fr" | "fr-BE" | "fr-CA" | "fr-FR" | "fy" | "gl" | "gu" | "ha" | "he" | "hi" | "hr" | "hu" | "hy" | "id" | "is" | "it" | "it-IT" | "ja" | "jv" | "ka" | "kk" | "km" | "kn" | "ko" | "lt" | "lv" | "mk" | "ml" | "mn" | "mr" | "ms" | "my" | "nb" | "ne" | "nl" | "nl-BE" | "nl-NL" | "nn" | "no" | "pa" | "pl" | "pt" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sq" | "sr" | "sv" | "sw" | "ta" | "te" | "th" | "tr" | "uk" | "ur" | "uz" | "vi" | "zh" | "zh-CN" | "zh-HK" | "zh-TW" | "zu";
5977
6015
  };
5978
6016
  CreateUserlandUserInviteOptionsDto: {
5979
6017
  /**
@@ -6003,7 +6041,7 @@ export interface components {
6003
6041
  */
6004
6042
  inviter_user_id?: string;
6005
6043
  /**
6006
- * @description The locale to use when rendering the invitation email. See [supported locales](/authkit/hosted-ui/localization).
6044
+ * @description The locale to use when rendering the invitation email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization).
6007
6045
  * @example en
6008
6046
  * @enum {string}
6009
6047
  */
@@ -6011,7 +6049,7 @@ export interface components {
6011
6049
  };
6012
6050
  ResendUserlandUserInviteOptionsDto: {
6013
6051
  /**
6014
- * @description The locale to use when rendering the invitation email. See [supported locales](/authkit/hosted-ui/localization).
6052
+ * @description The locale to use when rendering the invitation email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization).
6015
6053
  * @example en
6016
6054
  * @enum {string}
6017
6055
  */
@@ -6236,6 +6274,14 @@ export interface components {
6236
6274
  */
6237
6275
  password_salt_position?: "prefix" | "suffix";
6238
6276
  });
6277
+ SendVerificationEmailDto: {
6278
+ /**
6279
+ * @description The locale to use when rendering the verification email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization).
6280
+ * @example en
6281
+ * @enum {string}
6282
+ */
6283
+ locale?: "af" | "am" | "ar" | "bg" | "bn" | "bs" | "ca" | "cs" | "da" | "de" | "de-DE" | "el" | "en" | "en-AU" | "en-CA" | "en-GB" | "en-US" | "es" | "es-419" | "es-ES" | "es-US" | "et" | "fa" | "fi" | "fil" | "fr" | "fr-BE" | "fr-CA" | "fr-FR" | "fy" | "gl" | "gu" | "ha" | "he" | "hi" | "hr" | "hu" | "hy" | "id" | "is" | "it" | "it-IT" | "ja" | "jv" | "ka" | "kk" | "km" | "kn" | "ko" | "lt" | "lv" | "mk" | "ml" | "mn" | "mr" | "ms" | "my" | "nb" | "ne" | "nl" | "nl-BE" | "nl-NL" | "nn" | "no" | "pa" | "pl" | "pt" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sq" | "sr" | "sv" | "sw" | "ta" | "te" | "th" | "tr" | "uk" | "ur" | "uz" | "vi" | "zh" | "zh-CN" | "zh-HK" | "zh-TW" | "zu";
6284
+ };
6239
6285
  VerifyEmailAddressDto: {
6240
6286
  /**
6241
6287
  * Format: password
@@ -6251,6 +6297,12 @@ export interface components {
6251
6297
  * @example marcelina.davis@example.com
6252
6298
  */
6253
6299
  email: string;
6300
+ /**
6301
+ * @description The locale to use when rendering the password reset email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization).
6302
+ * @example en
6303
+ * @enum {string}
6304
+ */
6305
+ locale?: "af" | "am" | "ar" | "bg" | "bn" | "bs" | "ca" | "cs" | "da" | "de" | "de-DE" | "el" | "en" | "en-AU" | "en-CA" | "en-GB" | "en-US" | "es" | "es-419" | "es-ES" | "es-US" | "et" | "fa" | "fi" | "fil" | "fr" | "fr-BE" | "fr-CA" | "fr-FR" | "fy" | "gl" | "gu" | "ha" | "he" | "hi" | "hr" | "hu" | "hy" | "id" | "is" | "it" | "it-IT" | "ja" | "jv" | "ka" | "kk" | "km" | "kn" | "ko" | "lt" | "lv" | "mk" | "ml" | "mn" | "mr" | "ms" | "my" | "nb" | "ne" | "nl" | "nl-BE" | "nl-NL" | "nn" | "no" | "pa" | "pl" | "pt" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sq" | "sr" | "sv" | "sw" | "ta" | "te" | "th" | "tr" | "uk" | "ur" | "uz" | "vi" | "zh" | "zh-CN" | "zh-HK" | "zh-TW" | "zu";
6254
6306
  };
6255
6307
  CreatePasswordResetDto: {
6256
6308
  /**
@@ -6270,6 +6322,12 @@ export interface components {
6270
6322
  * @example new.email@example.com
6271
6323
  */
6272
6324
  new_email: string;
6325
+ /**
6326
+ * @description The locale to use when rendering the email change email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization).
6327
+ * @example en
6328
+ * @enum {string}
6329
+ */
6330
+ locale?: "af" | "am" | "ar" | "bg" | "bn" | "bs" | "ca" | "cs" | "da" | "de" | "de-DE" | "el" | "en" | "en-AU" | "en-CA" | "en-GB" | "en-US" | "es" | "es-419" | "es-ES" | "es-US" | "et" | "fa" | "fi" | "fil" | "fr" | "fr-BE" | "fr-CA" | "fr-FR" | "fy" | "gl" | "gu" | "ha" | "he" | "hi" | "hr" | "hu" | "hy" | "id" | "is" | "it" | "it-IT" | "ja" | "jv" | "ka" | "kk" | "km" | "kn" | "ko" | "lt" | "lv" | "mk" | "ml" | "mn" | "mr" | "ms" | "my" | "nb" | "ne" | "nl" | "nl-BE" | "nl-NL" | "nn" | "no" | "pa" | "pl" | "pt" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sq" | "sr" | "sv" | "sw" | "ta" | "te" | "th" | "tr" | "uk" | "ur" | "uz" | "vi" | "zh" | "zh-CN" | "zh-HK" | "zh-TW" | "zu";
6273
6331
  };
6274
6332
  ConfirmEmailChangeDto: {
6275
6333
  /**
@@ -23888,6 +23946,117 @@ export interface operations {
23888
23946
  };
23889
23947
  };
23890
23948
  };
23949
+ AuthorizationGroupRoleAssignmentsController_patchGroupRoleAssignments: {
23950
+ parameters: {
23951
+ query?: never;
23952
+ header?: never;
23953
+ path: {
23954
+ /** @description The ID of the group. */
23955
+ group_id: string;
23956
+ };
23957
+ cookie?: never;
23958
+ };
23959
+ requestBody: {
23960
+ content: {
23961
+ "application/json": components["schemas"]["PatchGroupRoleAssignmentsDto"];
23962
+ };
23963
+ };
23964
+ responses: {
23965
+ /** @description No Content */
23966
+ 204: {
23967
+ headers: {
23968
+ [name: string]: unknown;
23969
+ };
23970
+ content?: never;
23971
+ };
23972
+ /** @description Bad Request */
23973
+ 400: {
23974
+ headers: {
23975
+ [name: string]: unknown;
23976
+ };
23977
+ content: {
23978
+ "application/json": {
23979
+ /**
23980
+ * @description The error code identifying the type of error.
23981
+ * @example group_role_assignment_update_overlap
23982
+ * @constant
23983
+ */
23984
+ code: "group_role_assignment_update_overlap";
23985
+ /**
23986
+ * @description A human-readable description of the error.
23987
+ * @example Request could not be processed.
23988
+ */
23989
+ message: string;
23990
+ };
23991
+ };
23992
+ };
23993
+ 402: {
23994
+ headers: {
23995
+ [name: string]: unknown;
23996
+ };
23997
+ content: {
23998
+ "application/json": {
23999
+ /**
24000
+ * @description The error code identifying the type of error.
24001
+ * @example production_feature_requires_billing
24002
+ * @constant
24003
+ */
24004
+ code: "production_feature_requires_billing";
24005
+ /**
24006
+ * @description A human-readable description of the error.
24007
+ * @example Request could not be processed.
24008
+ */
24009
+ message: string;
24010
+ };
24011
+ };
24012
+ };
24013
+ /** @description Forbidden */
24014
+ 403: {
24015
+ headers: {
24016
+ [name: string]: unknown;
24017
+ };
24018
+ content: {
24019
+ "application/json": {
24020
+ /**
24021
+ * @description A human-readable description of the error.
24022
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
24023
+ */
24024
+ message: string;
24025
+ };
24026
+ };
24027
+ };
24028
+ /** @description Not Found */
24029
+ 404: {
24030
+ headers: {
24031
+ [name: string]: unknown;
24032
+ };
24033
+ content: {
24034
+ "application/json": {
24035
+ /**
24036
+ * @description A human-readable description of the error.
24037
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
24038
+ */
24039
+ message: string;
24040
+ };
24041
+ };
24042
+ };
24043
+ /** @description Unprocessable Entity */
24044
+ 422: {
24045
+ headers: {
24046
+ [name: string]: unknown;
24047
+ };
24048
+ content: {
24049
+ "application/json": {
24050
+ /**
24051
+ * @description A human-readable description of the error.
24052
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
24053
+ */
24054
+ message: string;
24055
+ };
24056
+ };
24057
+ };
24058
+ };
24059
+ };
23891
24060
  AuthorizationGroupRoleAssignmentsController_get: {
23892
24061
  parameters: {
23893
24062
  query?: never;
@@ -42627,7 +42796,11 @@ export interface operations {
42627
42796
  };
42628
42797
  cookie?: never;
42629
42798
  };
42630
- requestBody?: never;
42799
+ requestBody?: {
42800
+ content: {
42801
+ "application/json": components["schemas"]["SendVerificationEmailDto"];
42802
+ };
42803
+ };
42631
42804
  responses: {
42632
42805
  /** @description OK */
42633
42806
  200: {
@@ -42674,6 +42847,27 @@ export interface operations {
42674
42847
  };
42675
42848
  };
42676
42849
  };
42850
+ /** @description Unprocessable Entity */
42851
+ 422: {
42852
+ headers: {
42853
+ [name: string]: unknown;
42854
+ };
42855
+ content: {
42856
+ "application/json": {
42857
+ /**
42858
+ * @description The error code identifying the type of error.
42859
+ * @example invalid_request_parameters
42860
+ * @constant
42861
+ */
42862
+ code: "invalid_request_parameters";
42863
+ /**
42864
+ * @description A human-readable description of the error.
42865
+ * @example Validation failed.
42866
+ */
42867
+ message: string;
42868
+ };
42869
+ };
42870
+ };
42677
42871
  429: {
42678
42872
  headers: {
42679
42873
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.134.0",
3
+ "version": "0.136.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",