@workos/openapi-spec 0.139.0 → 0.141.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.
@@ -16278,96 +16278,6 @@ paths:
16278
16278
  summary: List Group members
16279
16279
  tags:
16280
16280
  - groups
16281
- put:
16282
- description: >-
16283
- Replace the members of a group with the given organization memberships.
16284
- Members not in the list are removed. An empty list removes every member.
16285
- operationId: GroupMembershipsController_replaceMembers
16286
- parameters:
16287
- - name: organizationId
16288
- required: true
16289
- in: path
16290
- description: Unique identifier of the Organization.
16291
- schema:
16292
- type: string
16293
- example: org_01EHWNCE74X7JSDV0X3SZ3KJNY
16294
- - name: groupId
16295
- required: true
16296
- in: path
16297
- description: Unique identifier of the Group.
16298
- schema:
16299
- type: string
16300
- example: group_01HXYZ123456789ABCDEFGHIJ
16301
- requestBody:
16302
- required: true
16303
- content:
16304
- application/json:
16305
- schema:
16306
- $ref: '#/components/schemas/ReplaceGroupMembershipsDto'
16307
- responses:
16308
- '204':
16309
- description: No Content
16310
- '400':
16311
- description: Bad Request
16312
- content:
16313
- application/json:
16314
- schema:
16315
- type: object
16316
- properties:
16317
- code:
16318
- type: string
16319
- description: The error code identifying the type of error.
16320
- example: group_membership_limit_exceeded
16321
- const: group_membership_limit_exceeded
16322
- message:
16323
- type: string
16324
- description: A human-readable description of the error.
16325
- example: Request could not be processed.
16326
- required:
16327
- - code
16328
- - message
16329
- '403':
16330
- description: Forbidden
16331
- content:
16332
- application/json:
16333
- schema:
16334
- type: object
16335
- properties:
16336
- message:
16337
- type: string
16338
- description: A human-readable description of the error.
16339
- example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
16340
- required:
16341
- - message
16342
- '404':
16343
- description: Not Found
16344
- content:
16345
- application/json:
16346
- schema:
16347
- type: object
16348
- properties:
16349
- message:
16350
- type: string
16351
- description: A human-readable description of the error.
16352
- example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
16353
- required:
16354
- - message
16355
- '422':
16356
- description: Unprocessable Entity
16357
- content:
16358
- application/json:
16359
- schema:
16360
- type: object
16361
- properties:
16362
- message:
16363
- type: string
16364
- description: A human-readable description of the error.
16365
- example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
16366
- required:
16367
- - message
16368
- summary: Replace Group members
16369
- tags:
16370
- - groups
16371
16281
  /organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}:
16372
16282
  delete:
16373
16283
  description: Remove an organization membership from a group.
@@ -29863,22 +29773,6 @@ components:
29863
29773
  example: om_01HXYZ123456789ABCDEFGHIJ
29864
29774
  required:
29865
29775
  - organization_membership_id
29866
- ReplaceGroupMembershipsDto:
29867
- type: object
29868
- properties:
29869
- organization_membership_ids:
29870
- maxItems: 500
29871
- description: >-
29872
- The complete list of organization membership IDs the group should
29873
- contain, up to 500. Any current members not included are removed
29874
- from the group.
29875
- example:
29876
- - om_01HXYZ123456789ABCDEFGHIJ
29877
- type: array
29878
- items:
29879
- type: string
29880
- required:
29881
- - organization_membership_ids
29882
29776
  CreateGroupDto:
29883
29777
  type: object
29884
29778
  properties:
package/dist/policy.mjs CHANGED
@@ -87,7 +87,6 @@ const operationHints = {
87
87
  "POST /user_management/cors_origins": { name: "create_cors_origin" },
88
88
  "POST /user_management/redirect_uris": { name: "create_redirect_uri" },
89
89
  "POST /organizations": { name: "create_organization" },
90
- "PUT /organizations/{organizationId}/groups/{groupId}/organization-memberships": { name: "set_group_organization_memberships" },
91
90
  "GET /directory_groups": { name: "list_groups" },
92
91
  "GET /directory_groups/{id}": { name: "get_group" },
93
92
  "GET /directory_users": { name: "list_users" },
package/dist/services.mjs CHANGED
@@ -600,11 +600,6 @@ const serviceEndpoints = {
600
600
  "path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships",
601
601
  "name": "create_group_organization_membership"
602
602
  },
603
- {
604
- "method": "PUT",
605
- "path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships",
606
- "name": "set_group_organization_memberships"
607
- },
608
603
  {
609
604
  "method": "DELETE",
610
605
  "path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}",
package/dist/types.d.ts CHANGED
@@ -2215,11 +2215,7 @@ export interface paths {
2215
2215
  * @description Get a list of organization memberships in a group.
2216
2216
  */
2217
2217
  get: operations["GroupMembershipsController_listMembers"];
2218
- /**
2219
- * Replace Group members
2220
- * @description Replace the members of a group with the given organization memberships. Members not in the list are removed. An empty list removes every member.
2221
- */
2222
- put: operations["GroupMembershipsController_replaceMembers"];
2218
+ put?: never;
2223
2219
  /**
2224
2220
  * Add a member to a Group
2225
2221
  * @description Add an organization membership to a group.
@@ -5229,15 +5225,6 @@ export interface components {
5229
5225
  */
5230
5226
  organization_membership_id: string;
5231
5227
  };
5232
- ReplaceGroupMembershipsDto: {
5233
- /**
5234
- * @description The complete list of organization membership IDs the group should contain, up to 500. Any current members not included are removed from the group.
5235
- * @example [
5236
- * "om_01HXYZ123456789ABCDEFGHIJ"
5237
- * ]
5238
- */
5239
- organization_membership_ids: string[];
5240
- };
5241
5228
  CreateGroupDto: {
5242
5229
  /**
5243
5230
  * @description The name of the Group.
@@ -35038,99 +35025,6 @@ export interface operations {
35038
35025
  };
35039
35026
  };
35040
35027
  };
35041
- GroupMembershipsController_replaceMembers: {
35042
- parameters: {
35043
- query?: never;
35044
- header?: never;
35045
- path: {
35046
- /** @description Unique identifier of the Organization. */
35047
- organizationId: string;
35048
- /** @description Unique identifier of the Group. */
35049
- groupId: string;
35050
- };
35051
- cookie?: never;
35052
- };
35053
- requestBody: {
35054
- content: {
35055
- "application/json": components["schemas"]["ReplaceGroupMembershipsDto"];
35056
- };
35057
- };
35058
- responses: {
35059
- /** @description No Content */
35060
- 204: {
35061
- headers: {
35062
- [name: string]: unknown;
35063
- };
35064
- content?: never;
35065
- };
35066
- /** @description Bad Request */
35067
- 400: {
35068
- headers: {
35069
- [name: string]: unknown;
35070
- };
35071
- content: {
35072
- "application/json": {
35073
- /**
35074
- * @description The error code identifying the type of error.
35075
- * @example group_membership_limit_exceeded
35076
- * @constant
35077
- */
35078
- code: "group_membership_limit_exceeded";
35079
- /**
35080
- * @description A human-readable description of the error.
35081
- * @example Request could not be processed.
35082
- */
35083
- message: string;
35084
- };
35085
- };
35086
- };
35087
- /** @description Forbidden */
35088
- 403: {
35089
- headers: {
35090
- [name: string]: unknown;
35091
- };
35092
- content: {
35093
- "application/json": {
35094
- /**
35095
- * @description A human-readable description of the error.
35096
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
35097
- */
35098
- message: string;
35099
- };
35100
- };
35101
- };
35102
- /** @description Not Found */
35103
- 404: {
35104
- headers: {
35105
- [name: string]: unknown;
35106
- };
35107
- content: {
35108
- "application/json": {
35109
- /**
35110
- * @description A human-readable description of the error.
35111
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
35112
- */
35113
- message: string;
35114
- };
35115
- };
35116
- };
35117
- /** @description Unprocessable Entity */
35118
- 422: {
35119
- headers: {
35120
- [name: string]: unknown;
35121
- };
35122
- content: {
35123
- "application/json": {
35124
- /**
35125
- * @description A human-readable description of the error.
35126
- * @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
35127
- */
35128
- message: string;
35129
- };
35130
- };
35131
- };
35132
- };
35133
- };
35134
35028
  GroupMembershipsController_addMember: {
35135
35029
  parameters: {
35136
35030
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.139.0",
3
+ "version": "0.141.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",