@workos/openapi-spec 0.2.0 → 0.3.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.
@@ -1635,6 +1635,27 @@ paths:
1635
1635
  `after` fetches newer records). Defaults to descending.
1636
1636
  schema:
1637
1637
  $ref: '#/components/schemas/PaginationOrder'
1638
+ - name: resource_id
1639
+ required: false
1640
+ in: query
1641
+ description: Filter assignments by the ID of the resource.
1642
+ schema:
1643
+ example: authz_resource_01HXYZ123456789ABCDEFGH
1644
+ type: string
1645
+ - name: resource_external_id
1646
+ required: false
1647
+ in: query
1648
+ description: Filter assignments by the external ID of the resource.
1649
+ schema:
1650
+ example: project-ext-456
1651
+ type: string
1652
+ - name: resource_type_slug
1653
+ required: false
1654
+ in: query
1655
+ description: Filter assignments by the slug of the resource type.
1656
+ schema:
1657
+ example: project
1658
+ type: string
1638
1659
  responses:
1639
1660
  '200':
1640
1661
  description: OK
@@ -3474,6 +3495,13 @@ paths:
3474
3495
  `after` fetches newer records). Defaults to descending.
3475
3496
  schema:
3476
3497
  $ref: '#/components/schemas/PaginationOrder'
3498
+ - name: role_slug
3499
+ required: false
3500
+ in: query
3501
+ description: Filter assignments by the slug of the role.
3502
+ schema:
3503
+ example: editor
3504
+ type: string
3477
3505
  responses:
3478
3506
  '200':
3479
3507
  description: OK
@@ -3984,13 +4012,6 @@ paths:
3984
4012
  schema:
3985
4013
  type: string
3986
4014
  example: ext-workspace-123
3987
- - name: search
3988
- required: false
3989
- in: query
3990
- description: Search resources by name.
3991
- schema:
3992
- type: string
3993
- example: Website Redesign
3994
4015
  responses:
3995
4016
  '200':
3996
4017
  description: OK
@@ -4778,6 +4799,13 @@ paths:
4778
4799
  `after` fetches newer records). Defaults to descending.
4779
4800
  schema:
4780
4801
  $ref: '#/components/schemas/PaginationOrder'
4802
+ - name: role_slug
4803
+ required: false
4804
+ in: query
4805
+ description: Filter assignments by the slug of the role.
4806
+ schema:
4807
+ example: editor
4808
+ type: string
4781
4809
  responses:
4782
4810
  '200':
4783
4811
  description: OK
@@ -8963,6 +8991,25 @@ paths:
8963
8991
  application/json:
8964
8992
  schema:
8965
8993
  $ref: '#/components/schemas/Group'
8994
+ '400':
8995
+ description: Bad Request
8996
+ content:
8997
+ application/json:
8998
+ schema:
8999
+ type: object
9000
+ properties:
9001
+ code:
9002
+ type: string
9003
+ description: The error code identifying the type of error.
9004
+ example: group_membership_limit_exceeded
9005
+ const: group_membership_limit_exceeded
9006
+ message:
9007
+ type: string
9008
+ description: A human-readable description of the error.
9009
+ example: Request could not be processed.
9010
+ required:
9011
+ - code
9012
+ - message
8966
9013
  '403':
8967
9014
  description: Forbidden
8968
9015
  content:
@@ -9708,8 +9755,8 @@ paths:
9708
9755
  description: >-
9709
9756
  Can be used to pre-fill the username/email address field of the IdP
9710
9757
  sign-in page for the user, if you know their username ahead of time.
9711
- Currently supported for OAuth, OpenID Connect, Okta, and Entra ID
9712
- connections.
9758
+ Currently supported for OAuth, OpenID Connect, Okta, Entra ID, and
9759
+ custom SAML connections.
9713
9760
  - name: nonce
9714
9761
  required: false
9715
9762
  in: query
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "WorkOS OpenAPI specification and TypeScript types",
5
5
  "license": "MIT",
6
6
  "repository": {
package/types.d.ts CHANGED
@@ -15216,6 +15216,12 @@ export interface operations {
15216
15216
  limit?: number;
15217
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. */
15218
15218
  order?: components["schemas"]["PaginationOrder"];
15219
+ /** @description Filter assignments by the ID of the resource. */
15220
+ resource_id?: string;
15221
+ /** @description Filter assignments by the external ID of the resource. */
15222
+ resource_external_id?: string;
15223
+ /** @description Filter assignments by the slug of the resource type. */
15224
+ resource_type_slug?: string;
15219
15225
  };
15220
15226
  header?: never;
15221
15227
  path: {
@@ -16873,6 +16879,8 @@ export interface operations {
16873
16879
  limit?: number;
16874
16880
  /** @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
16881
  order?: components["schemas"]["PaginationOrder"];
16882
+ /** @description Filter assignments by the slug of the role. */
16883
+ role_slug?: string;
16876
16884
  };
16877
16885
  header?: never;
16878
16886
  path: {
@@ -17299,8 +17307,6 @@ export interface operations {
17299
17307
  parent_resource_type_slug?: string;
17300
17308
  /** @description Filter resources by parent external ID. Required with `parent_resource_type_slug`. Mutually exclusive with `parent_resource_id`. */
17301
17309
  parent_external_id?: string;
17302
- /** @description Search resources by name. */
17303
- search?: string;
17304
17310
  };
17305
17311
  header?: never;
17306
17312
  path?: never;
@@ -17990,6 +17996,8 @@ export interface operations {
17990
17996
  limit?: number;
17991
17997
  /** @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
17998
  order?: components["schemas"]["PaginationOrder"];
17999
+ /** @description Filter assignments by the slug of the role. */
18000
+ role_slug?: string;
17993
18001
  };
17994
18002
  header?: never;
17995
18003
  path: {
@@ -21908,6 +21916,27 @@ export interface operations {
21908
21916
  "application/json": components["schemas"]["Group"];
21909
21917
  };
21910
21918
  };
21919
+ /** @description Bad Request */
21920
+ 400: {
21921
+ headers: {
21922
+ [name: string]: unknown;
21923
+ };
21924
+ content: {
21925
+ "application/json": {
21926
+ /**
21927
+ * @description The error code identifying the type of error.
21928
+ * @example group_membership_limit_exceeded
21929
+ * @constant
21930
+ */
21931
+ code: "group_membership_limit_exceeded";
21932
+ /**
21933
+ * @description A human-readable description of the error.
21934
+ * @example Request could not be processed.
21935
+ */
21936
+ message: string;
21937
+ };
21938
+ };
21939
+ };
21911
21940
  /** @description Forbidden */
21912
21941
  403: {
21913
21942
  headers: {
@@ -22409,7 +22438,7 @@ export interface operations {
22409
22438
  organization?: string;
22410
22439
  /** @description Can be used to pre-fill the domain field when initiating authentication with Microsoft OAuth or with a Google SAML connection type. */
22411
22440
  domain_hint?: string;
22412
- /** @description Can be used to pre-fill the username/email address field of the IdP sign-in page for the user, if you know their username ahead of time. Currently supported for OAuth, OpenID Connect, Okta, and Entra ID connections. */
22441
+ /** @description Can be used to pre-fill the username/email address field of the IdP sign-in page for the user, if you know their username ahead of time. Currently supported for OAuth, OpenID Connect, Okta, Entra ID, and custom SAML connections. */
22413
22442
  login_hint?: string;
22414
22443
  /** @description A random string generated by the client that is used to mitigate replay attacks. */
22415
22444
  nonce?: string;