@workos/openapi-spec 0.134.0 → 0.135.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.
@@ -25064,6 +25064,12 @@ paths:
25064
25064
  schema:
25065
25065
  type: string
25066
25066
  example: user_01E4ZCR3C56J083X43JQXF3JK5
25067
+ requestBody:
25068
+ required: false
25069
+ content:
25070
+ application/json:
25071
+ schema:
25072
+ $ref: '#/components/schemas/SendVerificationEmailDto'
25067
25073
  responses:
25068
25074
  '200':
25069
25075
  description: OK
@@ -25103,6 +25109,25 @@ paths:
25103
25109
  example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
25104
25110
  required:
25105
25111
  - message
25112
+ '422':
25113
+ description: Unprocessable Entity
25114
+ content:
25115
+ application/json:
25116
+ schema:
25117
+ type: object
25118
+ properties:
25119
+ code:
25120
+ type: string
25121
+ description: The error code identifying the type of error.
25122
+ example: invalid_request_parameters
25123
+ const: invalid_request_parameters
25124
+ message:
25125
+ type: string
25126
+ description: A human-readable description of the error.
25127
+ example: Validation failed.
25128
+ required:
25129
+ - code
25130
+ - message
25106
25131
  '429':
25107
25132
  description: ''
25108
25133
  content:
@@ -31040,6 +31065,104 @@ components:
31040
31065
  An optional Radar signals ID to correlate client-side signals with
31041
31066
  this request.
31042
31067
  example: 01JBS0GN92GC2RJQS4X9DBPQ2A
31068
+ locale:
31069
+ type: string
31070
+ description: >-
31071
+ The locale to use when rendering the Magic Auth email. Defaults to
31072
+ the environment's default locale. See [supported
31073
+ locales](/authkit/hosted-ui#localization).
31074
+ enum:
31075
+ - af
31076
+ - am
31077
+ - ar
31078
+ - bg
31079
+ - bn
31080
+ - bs
31081
+ - ca
31082
+ - cs
31083
+ - da
31084
+ - de
31085
+ - de-DE
31086
+ - el
31087
+ - en
31088
+ - en-AU
31089
+ - en-CA
31090
+ - en-GB
31091
+ - en-US
31092
+ - es
31093
+ - es-419
31094
+ - es-ES
31095
+ - es-US
31096
+ - et
31097
+ - fa
31098
+ - fi
31099
+ - fil
31100
+ - fr
31101
+ - fr-BE
31102
+ - fr-CA
31103
+ - fr-FR
31104
+ - fy
31105
+ - gl
31106
+ - gu
31107
+ - ha
31108
+ - he
31109
+ - hi
31110
+ - hr
31111
+ - hu
31112
+ - hy
31113
+ - id
31114
+ - is
31115
+ - it
31116
+ - it-IT
31117
+ - ja
31118
+ - jv
31119
+ - ka
31120
+ - kk
31121
+ - km
31122
+ - kn
31123
+ - ko
31124
+ - lt
31125
+ - lv
31126
+ - mk
31127
+ - ml
31128
+ - mn
31129
+ - mr
31130
+ - ms
31131
+ - my
31132
+ - nb
31133
+ - ne
31134
+ - nl
31135
+ - nl-BE
31136
+ - nl-NL
31137
+ - nn
31138
+ - 'no'
31139
+ - pa
31140
+ - pl
31141
+ - pt
31142
+ - pt-BR
31143
+ - pt-PT
31144
+ - ro
31145
+ - ru
31146
+ - sk
31147
+ - sl
31148
+ - sq
31149
+ - sr
31150
+ - sv
31151
+ - sw
31152
+ - ta
31153
+ - te
31154
+ - th
31155
+ - tr
31156
+ - uk
31157
+ - ur
31158
+ - uz
31159
+ - vi
31160
+ - zh
31161
+ - zh-CN
31162
+ - zh-HK
31163
+ - zh-TW
31164
+ - zu
31165
+ example: en
31043
31166
  required:
31044
31167
  - email
31045
31168
  CreateUserlandUserInviteOptionsDto:
@@ -31076,6 +31199,10 @@ components:
31076
31199
  example: user_01HYGBX8ZGD19949T3BM4FW1C3
31077
31200
  locale:
31078
31201
  type: string
31202
+ description: >-
31203
+ The locale to use when rendering the invitation email. Defaults to
31204
+ the environment's default locale. See [supported
31205
+ locales](/authkit/hosted-ui#localization).
31079
31206
  enum:
31080
31207
  - af
31081
31208
  - am
@@ -31167,9 +31294,6 @@ components:
31167
31294
  - zh-HK
31168
31295
  - zh-TW
31169
31296
  - zu
31170
- description: >-
31171
- The locale to use when rendering the invitation email. See
31172
- [supported locales](/authkit/hosted-ui/localization).
31173
31297
  example: en
31174
31298
  required:
31175
31299
  - email
@@ -31178,6 +31302,10 @@ components:
31178
31302
  properties:
31179
31303
  locale:
31180
31304
  type: string
31305
+ description: >-
31306
+ The locale to use when rendering the invitation email. Defaults to
31307
+ the environment's default locale. See [supported
31308
+ locales](/authkit/hosted-ui#localization).
31181
31309
  enum:
31182
31310
  - af
31183
31311
  - am
@@ -31269,9 +31397,6 @@ components:
31269
31397
  - zh-HK
31270
31398
  - zh-TW
31271
31399
  - zu
31272
- description: >-
31273
- The locale to use when rendering the invitation email. See
31274
- [supported locales](/authkit/hosted-ui/localization).
31275
31400
  example: en
31276
31401
  CreateUserlandUserOrganizationMembershipDto:
31277
31402
  allOf:
@@ -31747,6 +31872,107 @@ components:
31747
31872
  required:
31748
31873
  - password
31749
31874
  x-mutually-exclusive-body-groups: *ref_26
31875
+ SendVerificationEmailDto:
31876
+ type: object
31877
+ properties:
31878
+ locale:
31879
+ type: string
31880
+ description: >-
31881
+ The locale to use when rendering the verification email. Defaults to
31882
+ the environment's default locale. See [supported
31883
+ locales](/authkit/hosted-ui#localization).
31884
+ enum:
31885
+ - af
31886
+ - am
31887
+ - ar
31888
+ - bg
31889
+ - bn
31890
+ - bs
31891
+ - ca
31892
+ - cs
31893
+ - da
31894
+ - de
31895
+ - de-DE
31896
+ - el
31897
+ - en
31898
+ - en-AU
31899
+ - en-CA
31900
+ - en-GB
31901
+ - en-US
31902
+ - es
31903
+ - es-419
31904
+ - es-ES
31905
+ - es-US
31906
+ - et
31907
+ - fa
31908
+ - fi
31909
+ - fil
31910
+ - fr
31911
+ - fr-BE
31912
+ - fr-CA
31913
+ - fr-FR
31914
+ - fy
31915
+ - gl
31916
+ - gu
31917
+ - ha
31918
+ - he
31919
+ - hi
31920
+ - hr
31921
+ - hu
31922
+ - hy
31923
+ - id
31924
+ - is
31925
+ - it
31926
+ - it-IT
31927
+ - ja
31928
+ - jv
31929
+ - ka
31930
+ - kk
31931
+ - km
31932
+ - kn
31933
+ - ko
31934
+ - lt
31935
+ - lv
31936
+ - mk
31937
+ - ml
31938
+ - mn
31939
+ - mr
31940
+ - ms
31941
+ - my
31942
+ - nb
31943
+ - ne
31944
+ - nl
31945
+ - nl-BE
31946
+ - nl-NL
31947
+ - nn
31948
+ - 'no'
31949
+ - pa
31950
+ - pl
31951
+ - pt
31952
+ - pt-BR
31953
+ - pt-PT
31954
+ - ro
31955
+ - ru
31956
+ - sk
31957
+ - sl
31958
+ - sq
31959
+ - sr
31960
+ - sv
31961
+ - sw
31962
+ - ta
31963
+ - te
31964
+ - th
31965
+ - tr
31966
+ - uk
31967
+ - ur
31968
+ - uz
31969
+ - vi
31970
+ - zh
31971
+ - zh-CN
31972
+ - zh-HK
31973
+ - zh-TW
31974
+ - zu
31975
+ example: en
31750
31976
  VerifyEmailAddressDto:
31751
31977
  type: object
31752
31978
  properties:
@@ -31765,6 +31991,104 @@ components:
31765
31991
  format: email
31766
31992
  description: The email address of the user requesting a password reset.
31767
31993
  example: marcelina.davis@example.com
31994
+ locale:
31995
+ type: string
31996
+ description: >-
31997
+ The locale to use when rendering the password reset email. Defaults
31998
+ to the environment's default locale. See [supported
31999
+ locales](/authkit/hosted-ui#localization).
32000
+ enum:
32001
+ - af
32002
+ - am
32003
+ - ar
32004
+ - bg
32005
+ - bn
32006
+ - bs
32007
+ - ca
32008
+ - cs
32009
+ - da
32010
+ - de
32011
+ - de-DE
32012
+ - el
32013
+ - en
32014
+ - en-AU
32015
+ - en-CA
32016
+ - en-GB
32017
+ - en-US
32018
+ - es
32019
+ - es-419
32020
+ - es-ES
32021
+ - es-US
32022
+ - et
32023
+ - fa
32024
+ - fi
32025
+ - fil
32026
+ - fr
32027
+ - fr-BE
32028
+ - fr-CA
32029
+ - fr-FR
32030
+ - fy
32031
+ - gl
32032
+ - gu
32033
+ - ha
32034
+ - he
32035
+ - hi
32036
+ - hr
32037
+ - hu
32038
+ - hy
32039
+ - id
32040
+ - is
32041
+ - it
32042
+ - it-IT
32043
+ - ja
32044
+ - jv
32045
+ - ka
32046
+ - kk
32047
+ - km
32048
+ - kn
32049
+ - ko
32050
+ - lt
32051
+ - lv
32052
+ - mk
32053
+ - ml
32054
+ - mn
32055
+ - mr
32056
+ - ms
32057
+ - my
32058
+ - nb
32059
+ - ne
32060
+ - nl
32061
+ - nl-BE
32062
+ - nl-NL
32063
+ - nn
32064
+ - 'no'
32065
+ - pa
32066
+ - pl
32067
+ - pt
32068
+ - pt-BR
32069
+ - pt-PT
32070
+ - ro
32071
+ - ru
32072
+ - sk
32073
+ - sl
32074
+ - sq
32075
+ - sr
32076
+ - sv
32077
+ - sw
32078
+ - ta
32079
+ - te
32080
+ - th
32081
+ - tr
32082
+ - uk
32083
+ - ur
32084
+ - uz
32085
+ - vi
32086
+ - zh
32087
+ - zh-CN
32088
+ - zh-HK
32089
+ - zh-TW
32090
+ - zu
32091
+ example: en
31768
32092
  required:
31769
32093
  - email
31770
32094
  CreatePasswordResetDto:
@@ -31788,6 +32112,104 @@ components:
31788
32112
  type: string
31789
32113
  description: The new email address to change to.
31790
32114
  example: new.email@example.com
32115
+ locale:
32116
+ type: string
32117
+ description: >-
32118
+ The locale to use when rendering the email change email. Defaults to
32119
+ the environment's default locale. See [supported
32120
+ locales](/authkit/hosted-ui#localization).
32121
+ enum:
32122
+ - af
32123
+ - am
32124
+ - ar
32125
+ - bg
32126
+ - bn
32127
+ - bs
32128
+ - ca
32129
+ - cs
32130
+ - da
32131
+ - de
32132
+ - de-DE
32133
+ - el
32134
+ - en
32135
+ - en-AU
32136
+ - en-CA
32137
+ - en-GB
32138
+ - en-US
32139
+ - es
32140
+ - es-419
32141
+ - es-ES
32142
+ - es-US
32143
+ - et
32144
+ - fa
32145
+ - fi
32146
+ - fil
32147
+ - fr
32148
+ - fr-BE
32149
+ - fr-CA
32150
+ - fr-FR
32151
+ - fy
32152
+ - gl
32153
+ - gu
32154
+ - ha
32155
+ - he
32156
+ - hi
32157
+ - hr
32158
+ - hu
32159
+ - hy
32160
+ - id
32161
+ - is
32162
+ - it
32163
+ - it-IT
32164
+ - ja
32165
+ - jv
32166
+ - ka
32167
+ - kk
32168
+ - km
32169
+ - kn
32170
+ - ko
32171
+ - lt
32172
+ - lv
32173
+ - mk
32174
+ - ml
32175
+ - mn
32176
+ - mr
32177
+ - ms
32178
+ - my
32179
+ - nb
32180
+ - ne
32181
+ - nl
32182
+ - nl-BE
32183
+ - nl-NL
32184
+ - nn
32185
+ - 'no'
32186
+ - pa
32187
+ - pl
32188
+ - pt
32189
+ - pt-BR
32190
+ - pt-PT
32191
+ - ro
32192
+ - ru
32193
+ - sk
32194
+ - sl
32195
+ - sq
32196
+ - sr
32197
+ - sv
32198
+ - sw
32199
+ - ta
32200
+ - te
32201
+ - th
32202
+ - tr
32203
+ - uk
32204
+ - ur
32205
+ - uz
32206
+ - vi
32207
+ - zh
32208
+ - zh-CN
32209
+ - zh-HK
32210
+ - zh-TW
32211
+ - zu
32212
+ example: en
31791
32213
  required:
31792
32214
  - new_email
31793
32215
  ConfirmEmailChangeDto:
package/dist/types.d.ts CHANGED
@@ -5974,6 +5974,12 @@ export interface components {
5974
5974
  * @example 01JBS0GN92GC2RJQS4X9DBPQ2A
5975
5975
  */
5976
5976
  signals_id?: string;
5977
+ /**
5978
+ * @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).
5979
+ * @example en
5980
+ * @enum {string}
5981
+ */
5982
+ 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
5983
  };
5978
5984
  CreateUserlandUserInviteOptionsDto: {
5979
5985
  /**
@@ -6003,7 +6009,7 @@ export interface components {
6003
6009
  */
6004
6010
  inviter_user_id?: string;
6005
6011
  /**
6006
- * @description The locale to use when rendering the invitation email. See [supported locales](/authkit/hosted-ui/localization).
6012
+ * @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
6013
  * @example en
6008
6014
  * @enum {string}
6009
6015
  */
@@ -6011,7 +6017,7 @@ export interface components {
6011
6017
  };
6012
6018
  ResendUserlandUserInviteOptionsDto: {
6013
6019
  /**
6014
- * @description The locale to use when rendering the invitation email. See [supported locales](/authkit/hosted-ui/localization).
6020
+ * @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
6021
  * @example en
6016
6022
  * @enum {string}
6017
6023
  */
@@ -6236,6 +6242,14 @@ export interface components {
6236
6242
  */
6237
6243
  password_salt_position?: "prefix" | "suffix";
6238
6244
  });
6245
+ SendVerificationEmailDto: {
6246
+ /**
6247
+ * @description The locale to use when rendering the verification email. Defaults to the environment's default locale. See [supported locales](/authkit/hosted-ui#localization).
6248
+ * @example en
6249
+ * @enum {string}
6250
+ */
6251
+ 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";
6252
+ };
6239
6253
  VerifyEmailAddressDto: {
6240
6254
  /**
6241
6255
  * Format: password
@@ -6251,6 +6265,12 @@ export interface components {
6251
6265
  * @example marcelina.davis@example.com
6252
6266
  */
6253
6267
  email: string;
6268
+ /**
6269
+ * @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).
6270
+ * @example en
6271
+ * @enum {string}
6272
+ */
6273
+ 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
6274
  };
6255
6275
  CreatePasswordResetDto: {
6256
6276
  /**
@@ -6270,6 +6290,12 @@ export interface components {
6270
6290
  * @example new.email@example.com
6271
6291
  */
6272
6292
  new_email: string;
6293
+ /**
6294
+ * @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).
6295
+ * @example en
6296
+ * @enum {string}
6297
+ */
6298
+ 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
6299
  };
6274
6300
  ConfirmEmailChangeDto: {
6275
6301
  /**
@@ -42627,7 +42653,11 @@ export interface operations {
42627
42653
  };
42628
42654
  cookie?: never;
42629
42655
  };
42630
- requestBody?: never;
42656
+ requestBody?: {
42657
+ content: {
42658
+ "application/json": components["schemas"]["SendVerificationEmailDto"];
42659
+ };
42660
+ };
42631
42661
  responses: {
42632
42662
  /** @description OK */
42633
42663
  200: {
@@ -42674,6 +42704,27 @@ export interface operations {
42674
42704
  };
42675
42705
  };
42676
42706
  };
42707
+ /** @description Unprocessable Entity */
42708
+ 422: {
42709
+ headers: {
42710
+ [name: string]: unknown;
42711
+ };
42712
+ content: {
42713
+ "application/json": {
42714
+ /**
42715
+ * @description The error code identifying the type of error.
42716
+ * @example invalid_request_parameters
42717
+ * @constant
42718
+ */
42719
+ code: "invalid_request_parameters";
42720
+ /**
42721
+ * @description A human-readable description of the error.
42722
+ * @example Validation failed.
42723
+ */
42724
+ message: string;
42725
+ };
42726
+ };
42727
+ };
42677
42728
  429: {
42678
42729
  headers: {
42679
42730
  [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.135.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",