@workos/openapi-spec 0.119.0 → 0.121.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.
@@ -12231,7 +12231,8 @@ paths:
12231
12231
  '403':
12232
12232
  description: >-
12233
12233
  The user is not an active member of the organization named for an
12234
- organization connection.
12234
+ organization connection or an organization-scoped personal
12235
+ connection.
12235
12236
  content:
12236
12237
  application/json:
12237
12238
  schema:
@@ -12629,7 +12630,8 @@ paths:
12629
12630
  '403':
12630
12631
  description: >-
12631
12632
  The user is not an active member of the organization named for an
12632
- organization connection.
12633
+ organization connection or an organization-scoped personal
12634
+ connection.
12633
12635
  content:
12634
12636
  application/json:
12635
12637
  schema:
@@ -21579,6 +21581,28 @@ paths:
21579
21581
  example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
21580
21582
  required:
21581
21583
  - message
21584
+ '422':
21585
+ description: Unprocessable Entity
21586
+ content:
21587
+ application/json:
21588
+ schema:
21589
+ type: object
21590
+ properties:
21591
+ message:
21592
+ type: string
21593
+ description: A human-readable description of the error.
21594
+ example: >-
21595
+ This organization membership is managed by a directory and
21596
+ cannot be deleted. Remove the user from the directory in
21597
+ the identity provider instead.
21598
+ code:
21599
+ type: string
21600
+ description: The error code identifying the type of error.
21601
+ example: organization_membership_directory_managed
21602
+ const: organization_membership_directory_managed
21603
+ required:
21604
+ - message
21605
+ - code
21582
21606
  summary: Delete an organization membership
21583
21607
  tags:
21584
21608
  - user-management.organization-membership
package/dist/types.d.ts CHANGED
@@ -30958,7 +30958,7 @@ export interface operations {
30958
30958
  };
30959
30959
  content?: never;
30960
30960
  };
30961
- /** @description The user is not an active member of the organization named for an organization connection. */
30961
+ /** @description The user is not an active member of the organization named for an organization connection or an organization-scoped personal connection. */
30962
30962
  403: {
30963
30963
  headers: {
30964
30964
  [name: string]: unknown;
@@ -31376,7 +31376,7 @@ export interface operations {
31376
31376
  };
31377
31377
  content?: never;
31378
31378
  };
31379
- /** @description The user is not an active member of the organization named for an organization connection. */
31379
+ /** @description The user is not an active member of the organization named for an organization connection or an organization-scoped personal connection. */
31380
31380
  403: {
31381
31381
  headers: {
31382
31382
  [name: string]: unknown;
@@ -39287,6 +39287,27 @@ export interface operations {
39287
39287
  };
39288
39288
  };
39289
39289
  };
39290
+ /** @description Unprocessable Entity */
39291
+ 422: {
39292
+ headers: {
39293
+ [name: string]: unknown;
39294
+ };
39295
+ content: {
39296
+ "application/json": {
39297
+ /**
39298
+ * @description A human-readable description of the error.
39299
+ * @example This organization membership is managed by a directory and cannot be deleted. Remove the user from the directory in the identity provider instead.
39300
+ */
39301
+ message: string;
39302
+ /**
39303
+ * @description The error code identifying the type of error.
39304
+ * @example organization_membership_directory_managed
39305
+ * @constant
39306
+ */
39307
+ code: "organization_membership_directory_managed";
39308
+ };
39309
+ };
39310
+ };
39290
39311
  };
39291
39312
  };
39292
39313
  UserlandUserOrganizationMembershipsController_deactivate: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.119.0",
3
+ "version": "0.121.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",