@workos/openapi-spec 0.1.0 → 0.2.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.
Files changed (3) hide show
  1. package/open-api-spec.yaml +638 -599
  2. package/package.json +1 -1
  3. package/types.d.ts +253 -72
package/types.d.ts CHANGED
@@ -541,6 +541,26 @@ export interface paths {
541
541
  patch?: never;
542
542
  trace?: never;
543
543
  };
544
+ "/authorization/organizations/{organization_id}/resources/{resource_type_slug}/{external_id}/role_assignments": {
545
+ parameters: {
546
+ query?: never;
547
+ header?: never;
548
+ path?: never;
549
+ cookie?: never;
550
+ };
551
+ /**
552
+ * List role assignments for a resource by external ID
553
+ * @description List all role assignments granted on a resource, identified by its external ID. Each assignment includes the organization membership it was granted to.
554
+ */
555
+ get: operations["AuthorizationRoleAssignmentsController_listRoleAssignmentsForResourceByExternalId"];
556
+ put?: never;
557
+ post?: never;
558
+ delete?: never;
559
+ options?: never;
560
+ head?: never;
561
+ patch?: never;
562
+ trace?: never;
563
+ };
544
564
  "/authorization/permissions": {
545
565
  parameters: {
546
566
  query?: never;
@@ -665,6 +685,26 @@ export interface paths {
665
685
  patch?: never;
666
686
  trace?: never;
667
687
  };
688
+ "/authorization/resources/{resource_id}/role_assignments": {
689
+ parameters: {
690
+ query?: never;
691
+ header?: never;
692
+ path?: never;
693
+ cookie?: never;
694
+ };
695
+ /**
696
+ * List role assignments for a resource
697
+ * @description List all role assignments granted on a specific resource instance. Each assignment includes the organization membership it was granted to.
698
+ */
699
+ get: operations["AuthorizationRoleAssignmentsController_listRoleAssignmentsForResource"];
700
+ put?: never;
701
+ post?: never;
702
+ delete?: never;
703
+ options?: never;
704
+ head?: never;
705
+ patch?: never;
706
+ trace?: never;
707
+ };
668
708
  "/authorization/roles": {
669
709
  parameters: {
670
710
  query?: never;
@@ -1704,7 +1744,7 @@ export interface paths {
1704
1744
  * Authenticate
1705
1745
  * @description Authenticate a user with a specified [authentication method](/reference/authkit/authentication).
1706
1746
  */
1707
- post: operations["UserlandSessionsController_authenticate"];
1747
+ post: operations["UserlandSessionsController_authenticate[0]"];
1708
1748
  delete?: never;
1709
1749
  options?: never;
1710
1750
  head?: never;
@@ -2136,7 +2176,7 @@ export interface paths {
2136
2176
  * Reset the password
2137
2177
  * @description Sets a new password using the `token` query parameter from the link that the user received. Successfully resetting the password will verify a user's email, if it hasn't been verified yet.
2138
2178
  */
2139
- post: operations["UserlandUsersController_resetPassword"];
2179
+ post: operations["UserlandUsersController_resetPassword[0]"];
2140
2180
  delete?: never;
2141
2181
  options?: never;
2142
2182
  head?: never;
@@ -2234,13 +2274,13 @@ export interface paths {
2234
2274
  * List users
2235
2275
  * @description Get a list of all of your existing users matching the criteria specified.
2236
2276
  */
2237
- get: operations["UserlandUsersController_list"];
2277
+ get: operations["UserlandUsersController_list[0]"];
2238
2278
  put?: never;
2239
2279
  /**
2240
2280
  * Create a user
2241
2281
  * @description Create a new user in the current environment.
2242
2282
  */
2243
- post: operations["UserlandUsersController_create"];
2283
+ post: operations["UserlandUsersController_create[0]"];
2244
2284
  delete?: never;
2245
2285
  options?: never;
2246
2286
  head?: never;
@@ -2278,18 +2318,18 @@ export interface paths {
2278
2318
  * Get a user
2279
2319
  * @description Get the details of an existing user.
2280
2320
  */
2281
- get: operations["UserlandUsersController_get"];
2321
+ get: operations["UserlandUsersController_get[0]"];
2282
2322
  /**
2283
2323
  * Update a user
2284
2324
  * @description Updates properties of a user. The omitted properties will be left unchanged.
2285
2325
  */
2286
- put: operations["UserlandUsersController_update"];
2326
+ put: operations["UserlandUsersController_update[0]"];
2287
2327
  post?: never;
2288
2328
  /**
2289
2329
  * Delete a user
2290
2330
  * @description Permanently deletes a user in the current environment. It cannot be undone.
2291
2331
  */
2292
- delete: operations["UserlandUsersController_delete"];
2332
+ delete: operations["UserlandUsersController_delete[0]"];
2293
2333
  options?: never;
2294
2334
  head?: never;
2295
2335
  patch?: never;
@@ -2348,7 +2388,7 @@ export interface paths {
2348
2388
  * Verify email
2349
2389
  * @description Verifies an email address using the one-time code received by the user.
2350
2390
  */
2351
- post: operations["UserlandUsersController_emailVerification"];
2391
+ post: operations["UserlandUsersController_emailVerification[0]"];
2352
2392
  delete?: never;
2353
2393
  options?: never;
2354
2394
  head?: never;
@@ -2368,7 +2408,7 @@ export interface paths {
2368
2408
  * Send verification email
2369
2409
  * @description Sends an email that contains a one-time code used to verify a user’s email address.
2370
2410
  */
2371
- post: operations["UserlandUsersController_sendVerificationEmail"];
2411
+ post: operations["UserlandUsersController_sendVerificationEmail[0]"];
2372
2412
  delete?: never;
2373
2413
  options?: never;
2374
2414
  head?: never;
@@ -2554,13 +2594,13 @@ export interface paths {
2554
2594
  * List authentication factors
2555
2595
  * @description Lists the [authentication factors](/reference/authkit/mfa/authentication-factor) for a user.
2556
2596
  */
2557
- get: operations["UserlandUserAuthenticationFactorsController_list"];
2597
+ get: operations["UserlandUserAuthenticationFactorsController_list[0]"];
2558
2598
  put?: never;
2559
2599
  /**
2560
2600
  * Enroll an authentication factor
2561
2601
  * @description Enrolls a user in a new [authentication factor](/reference/authkit/mfa/authentication-factor).
2562
2602
  */
2563
- post: operations["UserlandUserAuthenticationFactorsController_create"];
2603
+ post: operations["UserlandUserAuthenticationFactorsController_create[0]"];
2564
2604
  delete?: never;
2565
2605
  options?: never;
2566
2606
  head?: never;
@@ -2727,6 +2767,12 @@ export interface components {
2727
2767
  */
2728
2768
  value: string;
2729
2769
  };
2770
+ /**
2771
+ * @default desc
2772
+ * @example desc
2773
+ * @enum {string}
2774
+ */
2775
+ PaginationOrder: "normal" | "desc" | "asc";
2730
2776
  RedirectUriDto: {
2731
2777
  /**
2732
2778
  * @description The redirect URI.
@@ -3601,6 +3647,7 @@ export interface components {
3601
3647
  };
3602
3648
  CreateUserlandMagicCodeAndReturnDto: {
3603
3649
  /**
3650
+ * Format: email
3604
3651
  * @description The email address to send the magic code to.
3605
3652
  * @example marcelina.davis@example.com
3606
3653
  */
@@ -3613,6 +3660,7 @@ export interface components {
3613
3660
  };
3614
3661
  CreateUserlandUserInviteOptionsDto: {
3615
3662
  /**
3663
+ * Format: email
3616
3664
  * @description The email address of the recipient.
3617
3665
  * @example marcelina.davis@example.com
3618
3666
  */
@@ -3715,6 +3763,7 @@ export interface components {
3715
3763
  };
3716
3764
  CreateUserlandUserDto: {
3717
3765
  /**
3766
+ * Format: email
3718
3767
  * @description The email address of the user.
3719
3768
  * @example marcelina.davis@example.com
3720
3769
  */
@@ -3769,6 +3818,7 @@ export interface components {
3769
3818
  });
3770
3819
  UpdateUserlandUserDto: {
3771
3820
  /**
3821
+ * Format: email
3772
3822
  * @description The email address of the user.
3773
3823
  * @example marcelina.davis@example.com
3774
3824
  */
@@ -3835,6 +3885,7 @@ export interface components {
3835
3885
  };
3836
3886
  CreatePasswordResetTokenDto: {
3837
3887
  /**
3888
+ * Format: email
3838
3889
  * @description The email address of the user requesting a password reset.
3839
3890
  * @example marcelina.davis@example.com
3840
3891
  */
@@ -4788,7 +4839,7 @@ export interface components {
4788
4839
  */
4789
4840
  slug: string;
4790
4841
  };
4791
- RoleAssignment: {
4842
+ UserRoleAssignment: {
4792
4843
  /**
4793
4844
  * @description Distinguishes the role assignment object.
4794
4845
  * @constant
@@ -4799,9 +4850,14 @@ export interface components {
4799
4850
  * @example role_assignment_01HXYZ123456789ABCDEFGH
4800
4851
  */
4801
4852
  id: string;
4853
+ /**
4854
+ * @description The ID of the organization membership the role is assigned to.
4855
+ * @example om_01HXYZ123456789ABCDEFGHIJ
4856
+ */
4857
+ organization_membership_id: string;
4802
4858
  /** @description The role included in the assignment. */
4803
4859
  role: components["schemas"]["SlimRole"];
4804
- /** @description The resource to which the role is assigned. */
4860
+ /** @description The resource the role is assigned on. */
4805
4861
  resource: {
4806
4862
  /**
4807
4863
  * @description The unique ID of the Resource.
@@ -4832,14 +4888,14 @@ export interface components {
4832
4888
  */
4833
4889
  updated_at: string;
4834
4890
  };
4835
- RoleAssignmentList: {
4891
+ UserRoleAssignmentList: {
4836
4892
  /**
4837
4893
  * @description Indicates this is a list response.
4838
4894
  * @constant
4839
4895
  */
4840
4896
  object: "list";
4841
4897
  /** @description The list of records for the current page. */
4842
- data: components["schemas"]["RoleAssignment"][];
4898
+ data: components["schemas"]["UserRoleAssignment"][];
4843
4899
  /** @description Pagination cursors for navigating between pages of results. */
4844
4900
  list_metadata: {
4845
4901
  /**
@@ -5847,6 +5903,12 @@ export interface components {
5847
5903
  */
5848
5904
  updated_at: string;
5849
5905
  };
5906
+ /**
5907
+ * @description The external key provider used for BYOK.
5908
+ * @example AWS_KMS
5909
+ * @enum {string}
5910
+ */
5911
+ VaultByokKeyProvider: "AWS_KMS" | "GCP_KMS" | "AZURE_KEY_VAULT";
5850
5912
  WaitlistUser: {
5851
5913
  /**
5852
5914
  * @description Distinguishes the Waitlist User object.
@@ -11488,12 +11550,7 @@ export interface components {
11488
11550
  * @example org_01EHT88Z8J8795GZNQ4ZP1J81T
11489
11551
  */
11490
11552
  organization_id: string;
11491
- /**
11492
- * @description The external key provider used for BYOK.
11493
- * @example AWS_KMS
11494
- * @enum {string}
11495
- */
11496
- key_provider: "AWS_KMS" | "GCP_KMS" | "AZURE_KEY_VAULT";
11553
+ key_provider: components["schemas"]["VaultByokKeyProvider"];
11497
11554
  };
11498
11555
  /**
11499
11556
  * Format: date-time
@@ -11522,12 +11579,7 @@ export interface components {
11522
11579
  * @example org_01EHT88Z8J8795GZNQ4ZP1J81T
11523
11580
  */
11524
11581
  organization_id: string;
11525
- /**
11526
- * @description The external key provider used for BYOK.
11527
- * @example AWS_KMS
11528
- * @enum {string}
11529
- */
11530
- key_provider: "AWS_KMS" | "GCP_KMS" | "AZURE_KEY_VAULT";
11582
+ key_provider: components["schemas"]["VaultByokKeyProvider"];
11531
11583
  /**
11532
11584
  * @description Whether the BYOK key verification completed successfully.
11533
11585
  * @example true
@@ -13913,7 +13965,7 @@ export interface operations {
13913
13965
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
13914
13966
  limit?: number;
13915
13967
  /** @description Order the results by the creation time. */
13916
- order?: "normal" | "desc" | "asc";
13968
+ order?: components["schemas"]["PaginationOrder"];
13917
13969
  };
13918
13970
  header?: never;
13919
13971
  path?: never;
@@ -13994,7 +14046,7 @@ export interface operations {
13994
14046
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
13995
14047
  limit?: number;
13996
14048
  /** @description Order the results by the creation time. */
13997
- order?: "normal" | "desc" | "asc";
14049
+ order?: components["schemas"]["PaginationOrder"];
13998
14050
  };
13999
14051
  header?: never;
14000
14052
  path: {
@@ -14897,7 +14949,7 @@ export interface operations {
14897
14949
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
14898
14950
  limit?: number;
14899
14951
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
14900
- order?: "normal" | "desc" | "asc";
14952
+ order?: components["schemas"]["PaginationOrder"];
14901
14953
  /** @description The permission slug to filter by. Only child resources where the organization membership has this permission are returned. */
14902
14954
  permission_slug: string;
14903
14955
  /** @description The WorkOS ID of the parent resource. Provide this or both `parent_resource_external_id` and `parent_resource_type_slug`, but not both. Mutually exclusive with `parent_resource_type_slug` and `parent_resource_external_id`. */
@@ -15003,7 +15055,7 @@ export interface operations {
15003
15055
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
15004
15056
  limit?: number;
15005
15057
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
15006
- order?: "normal" | "desc" | "asc";
15058
+ order?: components["schemas"]["PaginationOrder"];
15007
15059
  };
15008
15060
  header?: never;
15009
15061
  path: {
@@ -15082,7 +15134,7 @@ export interface operations {
15082
15134
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
15083
15135
  limit?: number;
15084
15136
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
15085
- order?: "normal" | "desc" | "asc";
15137
+ order?: components["schemas"]["PaginationOrder"];
15086
15138
  };
15087
15139
  header?: never;
15088
15140
  path: {
@@ -15163,7 +15215,7 @@ export interface operations {
15163
15215
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
15164
15216
  limit?: number;
15165
15217
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
15166
- order?: "normal" | "desc" | "asc";
15218
+ order?: components["schemas"]["PaginationOrder"];
15167
15219
  };
15168
15220
  header?: never;
15169
15221
  path: {
@@ -15180,7 +15232,7 @@ export interface operations {
15180
15232
  [name: string]: unknown;
15181
15233
  };
15182
15234
  content: {
15183
- "application/json": components["schemas"]["RoleAssignmentList"];
15235
+ "application/json": components["schemas"]["UserRoleAssignmentList"];
15184
15236
  };
15185
15237
  };
15186
15238
  /** @description Forbidden */
@@ -15241,6 +15293,7 @@ export interface operations {
15241
15293
  * @example {
15242
15294
  * "object": "role_assignment",
15243
15295
  * "id": "role_assignment_01HXYZ123456789ABCDEFGH",
15296
+ * "organization_membership_id": "om_01HXYZ123456789ABCDEFGHIJ",
15244
15297
  * "role": {
15245
15298
  * "slug": "editor"
15246
15299
  * },
@@ -15253,7 +15306,7 @@ export interface operations {
15253
15306
  * "updated_at": "2026-01-15T12:00:00.000Z"
15254
15307
  * }
15255
15308
  */
15256
- "application/json": components["schemas"]["RoleAssignment"];
15309
+ "application/json": components["schemas"]["UserRoleAssignment"];
15257
15310
  };
15258
15311
  };
15259
15312
  /** @description Forbidden */
@@ -16713,7 +16766,7 @@ export interface operations {
16713
16766
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
16714
16767
  limit?: number;
16715
16768
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
16716
- order?: "normal" | "desc" | "asc";
16769
+ order?: components["schemas"]["PaginationOrder"];
16717
16770
  /** @description The permission slug to filter by. Only users with this permission on the resource are returned. */
16718
16771
  permission_slug: string;
16719
16772
  /** @description Filter by assignment type. Use "direct" for direct assignments only, or "indirect" to include inherited assignments. */
@@ -16809,6 +16862,72 @@ export interface operations {
16809
16862
  };
16810
16863
  };
16811
16864
  };
16865
+ AuthorizationRoleAssignmentsController_listRoleAssignmentsForResourceByExternalId: {
16866
+ parameters: {
16867
+ query?: {
16868
+ /** @description An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. */
16869
+ before?: string;
16870
+ /** @description An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. */
16871
+ after?: string;
16872
+ /** @description Upper limit on the number of objects to return, between `1` and `100`. */
16873
+ limit?: number;
16874
+ /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
16875
+ order?: components["schemas"]["PaginationOrder"];
16876
+ };
16877
+ header?: never;
16878
+ path: {
16879
+ /** @description The ID of the organization that owns the resource. */
16880
+ organization_id: string;
16881
+ /** @description The slug of the resource type. */
16882
+ resource_type_slug: string;
16883
+ /** @description An identifier you provide to reference the resource in your system. */
16884
+ external_id: string;
16885
+ };
16886
+ cookie?: never;
16887
+ };
16888
+ requestBody?: never;
16889
+ responses: {
16890
+ /** @description OK */
16891
+ 200: {
16892
+ headers: {
16893
+ [name: string]: unknown;
16894
+ };
16895
+ content: {
16896
+ "application/json": components["schemas"]["UserRoleAssignmentList"];
16897
+ };
16898
+ };
16899
+ /** @description Forbidden */
16900
+ 403: {
16901
+ headers: {
16902
+ [name: string]: unknown;
16903
+ };
16904
+ content: {
16905
+ "application/json": {
16906
+ /**
16907
+ * @description A human-readable description of the error.
16908
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
16909
+ */
16910
+ message: string;
16911
+ };
16912
+ };
16913
+ };
16914
+ /** @description Not Found */
16915
+ 404: {
16916
+ headers: {
16917
+ [name: string]: unknown;
16918
+ };
16919
+ content: {
16920
+ "application/json": {
16921
+ /**
16922
+ * @description A human-readable description of the error.
16923
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
16924
+ */
16925
+ message: string;
16926
+ };
16927
+ };
16928
+ };
16929
+ };
16930
+ };
16812
16931
  AuthorizationPermissionsController_list: {
16813
16932
  parameters: {
16814
16933
  query?: {
@@ -16819,7 +16938,7 @@ export interface operations {
16819
16938
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
16820
16939
  limit?: number;
16821
16940
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
16822
- order?: "normal" | "desc" | "asc";
16941
+ order?: components["schemas"]["PaginationOrder"];
16823
16942
  };
16824
16943
  header?: never;
16825
16944
  path?: never;
@@ -17167,7 +17286,7 @@ export interface operations {
17167
17286
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
17168
17287
  limit?: number;
17169
17288
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
17170
- order?: "normal" | "desc" | "asc";
17289
+ order?: components["schemas"]["PaginationOrder"];
17171
17290
  /** @description Filter resources by organization ID. */
17172
17291
  organization_id?: string;
17173
17292
  /** @description Filter resources by resource type slug. */
@@ -17768,7 +17887,7 @@ export interface operations {
17768
17887
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
17769
17888
  limit?: number;
17770
17889
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
17771
- order?: "normal" | "desc" | "asc";
17890
+ order?: components["schemas"]["PaginationOrder"];
17772
17891
  /** @description The permission slug to filter by. Only users with this permission on the resource are returned. */
17773
17892
  permission_slug: string;
17774
17893
  /** @description Filter by assignment type. Use `direct` for direct assignments only, or `indirect` to include inherited assignments. */
@@ -17860,6 +17979,68 @@ export interface operations {
17860
17979
  };
17861
17980
  };
17862
17981
  };
17982
+ AuthorizationRoleAssignmentsController_listRoleAssignmentsForResource: {
17983
+ parameters: {
17984
+ query?: {
17985
+ /** @description An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. */
17986
+ before?: string;
17987
+ /** @description An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`. */
17988
+ after?: string;
17989
+ /** @description Upper limit on the number of objects to return, between `1` and `100`. */
17990
+ limit?: number;
17991
+ /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
17992
+ order?: components["schemas"]["PaginationOrder"];
17993
+ };
17994
+ header?: never;
17995
+ path: {
17996
+ /** @description The ID of the authorization resource. */
17997
+ resource_id: string;
17998
+ };
17999
+ cookie?: never;
18000
+ };
18001
+ requestBody?: never;
18002
+ responses: {
18003
+ /** @description OK */
18004
+ 200: {
18005
+ headers: {
18006
+ [name: string]: unknown;
18007
+ };
18008
+ content: {
18009
+ "application/json": components["schemas"]["UserRoleAssignmentList"];
18010
+ };
18011
+ };
18012
+ /** @description Forbidden */
18013
+ 403: {
18014
+ headers: {
18015
+ [name: string]: unknown;
18016
+ };
18017
+ content: {
18018
+ "application/json": {
18019
+ /**
18020
+ * @description A human-readable description of the error.
18021
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
18022
+ */
18023
+ message: string;
18024
+ };
18025
+ };
18026
+ };
18027
+ /** @description Not Found */
18028
+ 404: {
18029
+ headers: {
18030
+ [name: string]: unknown;
18031
+ };
18032
+ content: {
18033
+ "application/json": {
18034
+ /**
18035
+ * @description A human-readable description of the error.
18036
+ * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
18037
+ */
18038
+ message: string;
18039
+ };
18040
+ };
18041
+ };
18042
+ };
18043
+ };
17863
18044
  AuthorizationRolesController_list: {
17864
18045
  parameters: {
17865
18046
  query?: never;
@@ -18580,7 +18761,7 @@ export interface operations {
18580
18761
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
18581
18762
  limit?: number;
18582
18763
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
18583
- order?: "normal" | "desc" | "asc";
18764
+ order?: components["schemas"]["PaginationOrder"];
18584
18765
  /** @description Filter Connect Applications by organization ID. */
18585
18766
  organization_id?: string;
18586
18767
  };
@@ -18975,7 +19156,7 @@ export interface operations {
18975
19156
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
18976
19157
  limit?: number;
18977
19158
  /** @description Order the results by the creation time. */
18978
- order?: "normal" | "desc" | "asc";
19159
+ order?: components["schemas"]["PaginationOrder"];
18979
19160
  /** @description Filter Connections by their type. */
18980
19161
  connection_type?: "ADFSSAML" | "AdpOidc" | "AppleOAuth" | "Auth0SAML" | "AzureSAML" | "BitbucketOAuth" | "CasSAML" | "CloudflareSAML" | "ClassLinkSAML" | "CleverOIDC" | "CyberArkSAML" | "DiscordOAuth" | "DuoSAML" | "EntraIdOIDC" | "GenericOIDC" | "GenericSAML" | "GithubOAuth" | "GitLabOAuth" | "GoogleOAuth" | "GoogleOIDC" | "GoogleSAML" | "IntuitOAuth" | "JumpCloudSAML" | "KeycloakSAML" | "LastPassSAML" | "LinkedInOAuth" | "LoginGovOidc" | "MagicLink" | "MicrosoftOAuth" | "MiniOrangeSAML" | "NetIqSAML" | "OktaOIDC" | "OktaSAML" | "OneLoginSAML" | "OracleSAML" | "PingFederateSAML" | "PingOneSAML" | "RipplingSAML" | "SalesforceSAML" | "ShibbolethGenericSAML" | "ShibbolethSAML" | "SimpleSamlPhpSAML" | "SalesforceOAuth" | "SlackOAuth" | "VercelMarketplaceOAuth" | "VercelOAuth" | "VMwareSAML" | "XeroOAuth";
18981
19162
  /** @description Filter Connections by their associated domain. */
@@ -19324,7 +19505,7 @@ export interface operations {
19324
19505
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
19325
19506
  limit?: number;
19326
19507
  /** @description Order the results by the creation time. */
19327
- order?: "normal" | "desc" | "asc";
19508
+ order?: components["schemas"]["PaginationOrder"];
19328
19509
  /** @description Filter Directories by their associated organization. */
19329
19510
  organization_id?: string;
19330
19511
  /** @description Searchable text to match against Directory names. */
@@ -19489,7 +19670,7 @@ export interface operations {
19489
19670
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
19490
19671
  limit?: number;
19491
19672
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
19492
- order?: "normal" | "desc" | "asc";
19673
+ order?: components["schemas"]["PaginationOrder"];
19493
19674
  /** @description Unique identifier of the WorkOS Directory. This value can be obtained from the WorkOS dashboard or from the WorkOS API. */
19494
19675
  directory?: string;
19495
19676
  /** @description Unique identifier of the WorkOS Directory User. This value can be obtained from the WorkOS API. */
@@ -19620,7 +19801,7 @@ export interface operations {
19620
19801
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
19621
19802
  limit?: number;
19622
19803
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
19623
- order?: "normal" | "desc" | "asc";
19804
+ order?: components["schemas"]["PaginationOrder"];
19624
19805
  /** @description Unique identifier of the WorkOS Directory. This value can be obtained from the WorkOS dashboard or from the WorkOS API. */
19625
19806
  directory?: string;
19626
19807
  /** @description Unique identifier of the WorkOS Directory Group. This value can be obtained from the WorkOS API. */
@@ -19759,7 +19940,7 @@ export interface operations {
19759
19940
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
19760
19941
  limit?: number;
19761
19942
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
19762
- order?: "normal" | "desc" | "asc";
19943
+ order?: components["schemas"]["PaginationOrder"];
19763
19944
  /** @description Filter events by one or more event types (e.g. `dsync.user.created`). */
19764
19945
  events?: string[];
19765
19946
  /** @description ISO-8601 date string to filter events created after this date. */
@@ -19839,7 +20020,7 @@ export interface operations {
19839
20020
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
19840
20021
  limit?: number;
19841
20022
  /** @description Order the results by the creation time. */
19842
- order?: "normal" | "desc" | "asc";
20023
+ order?: components["schemas"]["PaginationOrder"];
19843
20024
  };
19844
20025
  header?: never;
19845
20026
  path?: never;
@@ -20550,7 +20731,7 @@ export interface operations {
20550
20731
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
20551
20732
  limit?: number;
20552
20733
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
20553
- order?: "normal" | "desc" | "asc";
20734
+ order?: components["schemas"]["PaginationOrder"];
20554
20735
  /** @description The domains of an Organization. Any Organization with a matching domain will be returned. */
20555
20736
  domains?: string[];
20556
20737
  /** @description Searchable text for an Organization. Matches against the organization name. */
@@ -21124,7 +21305,7 @@ export interface operations {
21124
21305
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
21125
21306
  limit?: number;
21126
21307
  /** @description Order the results by the creation time. */
21127
- order?: "normal" | "desc" | "asc";
21308
+ order?: components["schemas"]["PaginationOrder"];
21128
21309
  };
21129
21310
  header?: never;
21130
21311
  path: {
@@ -21241,7 +21422,7 @@ export interface operations {
21241
21422
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
21242
21423
  limit?: number;
21243
21424
  /** @description Order the results by the creation time. */
21244
- order?: "normal" | "desc" | "asc";
21425
+ order?: components["schemas"]["PaginationOrder"];
21245
21426
  };
21246
21427
  header?: never;
21247
21428
  path: {
@@ -21288,7 +21469,7 @@ export interface operations {
21288
21469
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
21289
21470
  limit?: number;
21290
21471
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
21291
- order?: "normal" | "desc" | "asc";
21472
+ order?: components["schemas"]["PaginationOrder"];
21292
21473
  };
21293
21474
  header?: never;
21294
21475
  path: {
@@ -21646,7 +21827,7 @@ export interface operations {
21646
21827
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
21647
21828
  limit?: number;
21648
21829
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
21649
- order?: "normal" | "desc" | "asc";
21830
+ order?: components["schemas"]["PaginationOrder"];
21650
21831
  };
21651
21832
  header?: never;
21652
21833
  path: {
@@ -22573,7 +22754,7 @@ export interface operations {
22573
22754
  };
22574
22755
  };
22575
22756
  };
22576
- UserlandSessionsController_authenticate: {
22757
+ "UserlandSessionsController_authenticate[0]": {
22577
22758
  parameters: {
22578
22759
  query?: never;
22579
22760
  header?: never;
@@ -23747,7 +23928,7 @@ export interface operations {
23747
23928
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
23748
23929
  limit?: number;
23749
23930
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
23750
- order?: "normal" | "desc" | "asc";
23931
+ order?: components["schemas"]["PaginationOrder"];
23751
23932
  /** @description The ID of the [organization](/reference/organization) that the recipient will join. */
23752
23933
  organization_id?: string;
23753
23934
  /** @description The email address of the recipient. */
@@ -24633,7 +24814,7 @@ export interface operations {
24633
24814
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
24634
24815
  limit?: number;
24635
24816
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
24636
- order?: "normal" | "desc" | "asc";
24817
+ order?: components["schemas"]["PaginationOrder"];
24637
24818
  /** @description The ID of the [organization](/reference/organization) which the user belongs to. */
24638
24819
  organization_id?: string;
24639
24820
  /** @description Filter by the status of the organization membership. Array including any of `active`, `inactive`, or `pending`. */
@@ -25341,7 +25522,7 @@ export interface operations {
25341
25522
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
25342
25523
  limit?: number;
25343
25524
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
25344
- order?: "normal" | "desc" | "asc";
25525
+ order?: components["schemas"]["PaginationOrder"];
25345
25526
  };
25346
25527
  header?: never;
25347
25528
  path: {
@@ -25491,7 +25672,7 @@ export interface operations {
25491
25672
  };
25492
25673
  };
25493
25674
  };
25494
- UserlandUsersController_resetPassword: {
25675
+ "UserlandUsersController_resetPassword[0]": {
25495
25676
  parameters: {
25496
25677
  query?: never;
25497
25678
  header?: never;
@@ -25821,7 +26002,7 @@ export interface operations {
25821
26002
  };
25822
26003
  };
25823
26004
  };
25824
- UserlandUsersController_list: {
26005
+ "UserlandUsersController_list[0]": {
25825
26006
  parameters: {
25826
26007
  query?: {
25827
26008
  /** @description An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`. */
@@ -25831,7 +26012,7 @@ export interface operations {
25831
26012
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
25832
26013
  limit?: number;
25833
26014
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
25834
- order?: "normal" | "desc" | "asc";
26015
+ order?: components["schemas"]["PaginationOrder"];
25835
26016
  /**
25836
26017
  * @deprecated
25837
26018
  * @description Filter users by the organization they are a member of. Deprecated in favor of `organization_id`.
@@ -25874,7 +26055,7 @@ export interface operations {
25874
26055
  };
25875
26056
  };
25876
26057
  };
25877
- UserlandUsersController_create: {
26058
+ "UserlandUsersController_create[0]": {
25878
26059
  parameters: {
25879
26060
  query?: never;
25880
26061
  header?: never;
@@ -26079,7 +26260,7 @@ export interface operations {
26079
26260
  };
26080
26261
  };
26081
26262
  };
26082
- UserlandUsersController_get: {
26263
+ "UserlandUsersController_get[0]": {
26083
26264
  parameters: {
26084
26265
  query?: never;
26085
26266
  header?: never;
@@ -26117,7 +26298,7 @@ export interface operations {
26117
26298
  };
26118
26299
  };
26119
26300
  };
26120
- UserlandUsersController_update: {
26301
+ "UserlandUsersController_update[0]": {
26121
26302
  parameters: {
26122
26303
  query?: never;
26123
26304
  header?: never;
@@ -26319,7 +26500,7 @@ export interface operations {
26319
26500
  };
26320
26501
  };
26321
26502
  };
26322
- UserlandUsersController_delete: {
26503
+ "UserlandUsersController_delete[0]": {
26323
26504
  parameters: {
26324
26505
  query?: never;
26325
26506
  header?: never;
@@ -26759,7 +26940,7 @@ export interface operations {
26759
26940
  };
26760
26941
  };
26761
26942
  };
26762
- UserlandUsersController_emailVerification: {
26943
+ "UserlandUsersController_emailVerification[0]": {
26763
26944
  parameters: {
26764
26945
  query?: never;
26765
26946
  header?: never;
@@ -26879,7 +27060,7 @@ export interface operations {
26879
27060
  };
26880
27061
  };
26881
27062
  };
26882
- UserlandUsersController_sendVerificationEmail: {
27063
+ "UserlandUsersController_sendVerificationEmail[0]": {
26883
27064
  parameters: {
26884
27065
  query?: never;
26885
27066
  header?: never;
@@ -27023,7 +27204,7 @@ export interface operations {
27023
27204
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
27024
27205
  limit?: number;
27025
27206
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
27026
- order?: "normal" | "desc" | "asc";
27207
+ order?: components["schemas"]["PaginationOrder"];
27027
27208
  };
27028
27209
  header?: never;
27029
27210
  path: {
@@ -27193,7 +27374,7 @@ export interface operations {
27193
27374
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
27194
27375
  limit?: number;
27195
27376
  /** @description Order the results by the creation time. */
27196
- order?: "normal" | "desc" | "asc";
27377
+ order?: components["schemas"]["PaginationOrder"];
27197
27378
  /** @description The ID of the organization to filter user API keys by. When provided, only API keys created against that organization membership are returned. */
27198
27379
  organization_id?: string;
27199
27380
  };
@@ -27327,7 +27508,7 @@ export interface operations {
27327
27508
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
27328
27509
  limit?: number;
27329
27510
  /** @description Order the results by the creation time. */
27330
- order?: "normal" | "desc" | "asc";
27511
+ order?: components["schemas"]["PaginationOrder"];
27331
27512
  };
27332
27513
  header?: never;
27333
27514
  path: {
@@ -27374,7 +27555,7 @@ export interface operations {
27374
27555
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
27375
27556
  limit?: number;
27376
27557
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
27377
- order?: "normal" | "desc" | "asc";
27558
+ order?: components["schemas"]["PaginationOrder"];
27378
27559
  };
27379
27560
  header?: never;
27380
27561
  path: {
@@ -27610,7 +27791,7 @@ export interface operations {
27610
27791
  };
27611
27792
  };
27612
27793
  };
27613
- UserlandUserAuthenticationFactorsController_list: {
27794
+ "UserlandUserAuthenticationFactorsController_list[0]": {
27614
27795
  parameters: {
27615
27796
  query?: {
27616
27797
  /** @description An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. */
@@ -27620,7 +27801,7 @@ export interface operations {
27620
27801
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
27621
27802
  limit?: number;
27622
27803
  /** @description Order the results by the creation time. */
27623
- order?: "normal" | "desc" | "asc";
27804
+ order?: components["schemas"]["PaginationOrder"];
27624
27805
  };
27625
27806
  header?: never;
27626
27807
  path: {
@@ -27657,7 +27838,7 @@ export interface operations {
27657
27838
  };
27658
27839
  };
27659
27840
  };
27660
- UserlandUserAuthenticationFactorsController_create: {
27841
+ "UserlandUserAuthenticationFactorsController_create[0]": {
27661
27842
  parameters: {
27662
27843
  query?: never;
27663
27844
  header?: never;
@@ -27709,7 +27890,7 @@ export interface operations {
27709
27890
  /** @description Upper limit on the number of objects to return, between `1` and `100`. */
27710
27891
  limit?: number;
27711
27892
  /** @description Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records). Defaults to descending. */
27712
- order?: "normal" | "desc" | "asc";
27893
+ order?: components["schemas"]["PaginationOrder"];
27713
27894
  };
27714
27895
  header?: never;
27715
27896
  path?: never;