@workos/openapi-spec 0.138.0 → 0.139.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,6 +16278,96 @@ 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
16281
16371
  /organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}:
16282
16372
  delete:
16283
16373
  description: Remove an organization membership from a group.
@@ -29773,6 +29863,22 @@ components:
29773
29863
  example: om_01HXYZ123456789ABCDEFGHIJ
29774
29864
  required:
29775
29865
  - 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
29776
29882
  CreateGroupDto:
29777
29883
  type: object
29778
29884
  properties:
package/dist/services.mjs CHANGED
@@ -600,6 +600,11 @@ 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
+ },
603
608
  {
604
609
  "method": "DELETE",
605
610
  "path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}",
package/dist/types.d.ts CHANGED
@@ -2215,7 +2215,11 @@ export interface paths {
2215
2215
  * @description Get a list of organization memberships in a group.
2216
2216
  */
2217
2217
  get: operations["GroupMembershipsController_listMembers"];
2218
- put?: never;
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"];
2219
2223
  /**
2220
2224
  * Add a member to a Group
2221
2225
  * @description Add an organization membership to a group.
@@ -5225,6 +5229,15 @@ export interface components {
5225
5229
  */
5226
5230
  organization_membership_id: string;
5227
5231
  };
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
+ };
5228
5241
  CreateGroupDto: {
5229
5242
  /**
5230
5243
  * @description The name of the Group.
@@ -35025,6 +35038,99 @@ export interface operations {
35025
35038
  };
35026
35039
  };
35027
35040
  };
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
+ };
35028
35134
  GroupMembershipsController_addMember: {
35029
35135
  parameters: {
35030
35136
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.138.0",
3
+ "version": "0.139.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",