@workos/openapi-spec 0.145.0 → 0.146.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.
- package/dist/open-api-spec.yaml +117 -0
- package/dist/services.mjs +5 -0
- package/dist/types.d.ts +116 -1
- package/package.json +3 -3
package/dist/open-api-spec.yaml
CHANGED
|
@@ -16453,6 +16453,100 @@ paths:
|
|
|
16453
16453
|
summary: List Group members
|
|
16454
16454
|
tags:
|
|
16455
16455
|
- groups
|
|
16456
|
+
patch:
|
|
16457
|
+
description: >-
|
|
16458
|
+
Adds and removes organization memberships for a group in a single atomic
|
|
16459
|
+
operation. Organization memberships not listed in `add` or `remove` are
|
|
16460
|
+
left unchanged. Adding a member that is already in the group or removing
|
|
16461
|
+
a member that isn't in the group has no effect. A membership listed in
|
|
16462
|
+
both `add` and `remove` is rejected. `add` and `remove` must contain
|
|
16463
|
+
between 1 and 100 entries combined.
|
|
16464
|
+
operationId: GroupMembershipsController_updateMembers
|
|
16465
|
+
parameters:
|
|
16466
|
+
- name: organizationId
|
|
16467
|
+
required: true
|
|
16468
|
+
in: path
|
|
16469
|
+
description: Unique identifier of the Organization.
|
|
16470
|
+
schema:
|
|
16471
|
+
type: string
|
|
16472
|
+
example: org_01EHWNCE74X7JSDV0X3SZ3KJNY
|
|
16473
|
+
- name: groupId
|
|
16474
|
+
required: true
|
|
16475
|
+
in: path
|
|
16476
|
+
description: Unique identifier of the Group.
|
|
16477
|
+
schema:
|
|
16478
|
+
type: string
|
|
16479
|
+
example: group_01HXYZ123456789ABCDEFGHIJ
|
|
16480
|
+
requestBody:
|
|
16481
|
+
required: true
|
|
16482
|
+
content:
|
|
16483
|
+
application/json:
|
|
16484
|
+
schema:
|
|
16485
|
+
$ref: '#/components/schemas/PatchGroupMembershipsDto'
|
|
16486
|
+
responses:
|
|
16487
|
+
'204':
|
|
16488
|
+
description: No Content
|
|
16489
|
+
'400':
|
|
16490
|
+
description: Bad Request
|
|
16491
|
+
content:
|
|
16492
|
+
application/json:
|
|
16493
|
+
schema:
|
|
16494
|
+
type: object
|
|
16495
|
+
properties:
|
|
16496
|
+
code:
|
|
16497
|
+
type: string
|
|
16498
|
+
description: The error code identifying the type of error.
|
|
16499
|
+
example: group_membership_update_overlap
|
|
16500
|
+
const: group_membership_update_overlap
|
|
16501
|
+
message:
|
|
16502
|
+
type: string
|
|
16503
|
+
description: A human-readable description of the error.
|
|
16504
|
+
example: Request could not be processed.
|
|
16505
|
+
required:
|
|
16506
|
+
- code
|
|
16507
|
+
- message
|
|
16508
|
+
'403':
|
|
16509
|
+
description: Forbidden
|
|
16510
|
+
content:
|
|
16511
|
+
application/json:
|
|
16512
|
+
schema:
|
|
16513
|
+
type: object
|
|
16514
|
+
properties:
|
|
16515
|
+
message:
|
|
16516
|
+
type: string
|
|
16517
|
+
description: A human-readable description of the error.
|
|
16518
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
16519
|
+
required:
|
|
16520
|
+
- message
|
|
16521
|
+
'404':
|
|
16522
|
+
description: Not Found
|
|
16523
|
+
content:
|
|
16524
|
+
application/json:
|
|
16525
|
+
schema:
|
|
16526
|
+
type: object
|
|
16527
|
+
properties:
|
|
16528
|
+
message:
|
|
16529
|
+
type: string
|
|
16530
|
+
description: A human-readable description of the error.
|
|
16531
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
16532
|
+
required:
|
|
16533
|
+
- message
|
|
16534
|
+
'422':
|
|
16535
|
+
description: Unprocessable Entity
|
|
16536
|
+
content:
|
|
16537
|
+
application/json:
|
|
16538
|
+
schema:
|
|
16539
|
+
type: object
|
|
16540
|
+
properties:
|
|
16541
|
+
message:
|
|
16542
|
+
type: string
|
|
16543
|
+
description: A human-readable description of the error.
|
|
16544
|
+
example: 'Organization not found: ''org_01EHQMYV6MBK39QC5PZXHY59C3''.'
|
|
16545
|
+
required:
|
|
16546
|
+
- message
|
|
16547
|
+
summary: Update Group members
|
|
16548
|
+
tags:
|
|
16549
|
+
- groups
|
|
16456
16550
|
/organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}:
|
|
16457
16551
|
delete:
|
|
16458
16552
|
description: Remove an organization membership from a group.
|
|
@@ -29936,6 +30030,29 @@ components:
|
|
|
29936
30030
|
example: om_01HXYZ123456789ABCDEFGHIJ
|
|
29937
30031
|
required:
|
|
29938
30032
|
- organization_membership_id
|
|
30033
|
+
PatchGroupMembershipsDto:
|
|
30034
|
+
type: object
|
|
30035
|
+
properties:
|
|
30036
|
+
add:
|
|
30037
|
+
default: []
|
|
30038
|
+
description: >-
|
|
30039
|
+
The IDs of the organization memberships to add to the group. Adding
|
|
30040
|
+
a membership that's already in the group has no effect.
|
|
30041
|
+
example:
|
|
30042
|
+
- om_01HXYZ123456789ABCDEFGHIJ
|
|
30043
|
+
type: array
|
|
30044
|
+
items:
|
|
30045
|
+
type: string
|
|
30046
|
+
remove:
|
|
30047
|
+
default: []
|
|
30048
|
+
description: >-
|
|
30049
|
+
The IDs of the organization memberships to remove from the group.
|
|
30050
|
+
Removing a membership that isn't in the group has no effect.
|
|
30051
|
+
example:
|
|
30052
|
+
- om_01HXYZ987654321ABCDEFGHIJ
|
|
30053
|
+
type: array
|
|
30054
|
+
items:
|
|
30055
|
+
type: string
|
|
29939
30056
|
CreateGroupDto:
|
|
29940
30057
|
type: object
|
|
29941
30058
|
properties:
|
package/dist/services.mjs
CHANGED
|
@@ -595,6 +595,11 @@ const serviceEndpoints = {
|
|
|
595
595
|
"path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships",
|
|
596
596
|
"name": "list_group_organization_memberships"
|
|
597
597
|
},
|
|
598
|
+
{
|
|
599
|
+
"method": "PATCH",
|
|
600
|
+
"path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships",
|
|
601
|
+
"name": "update_group_organization_memberships"
|
|
602
|
+
},
|
|
598
603
|
{
|
|
599
604
|
"method": "POST",
|
|
600
605
|
"path": "/organizations/{organizationId}/groups/{groupId}/organization-memberships",
|
package/dist/types.d.ts
CHANGED
|
@@ -2244,7 +2244,11 @@ export interface paths {
|
|
|
2244
2244
|
delete?: never;
|
|
2245
2245
|
options?: never;
|
|
2246
2246
|
head?: never;
|
|
2247
|
-
|
|
2247
|
+
/**
|
|
2248
|
+
* Update Group members
|
|
2249
|
+
* @description Adds and removes organization memberships for a group in a single atomic operation. Organization memberships not listed in `add` or `remove` are left unchanged. Adding a member that is already in the group or removing a member that isn't in the group has no effect. A membership listed in both `add` and `remove` is rejected. `add` and `remove` must contain between 1 and 100 entries combined.
|
|
2250
|
+
*/
|
|
2251
|
+
patch: operations["GroupMembershipsController_updateMembers"];
|
|
2248
2252
|
trace?: never;
|
|
2249
2253
|
};
|
|
2250
2254
|
"/organizations/{organizationId}/groups/{groupId}/organization-memberships/{omId}": {
|
|
@@ -5245,6 +5249,24 @@ export interface components {
|
|
|
5245
5249
|
*/
|
|
5246
5250
|
organization_membership_id: string;
|
|
5247
5251
|
};
|
|
5252
|
+
PatchGroupMembershipsDto: {
|
|
5253
|
+
/**
|
|
5254
|
+
* @description The IDs of the organization memberships to add to the group. Adding a membership that's already in the group has no effect.
|
|
5255
|
+
* @default []
|
|
5256
|
+
* @example [
|
|
5257
|
+
* "om_01HXYZ123456789ABCDEFGHIJ"
|
|
5258
|
+
* ]
|
|
5259
|
+
*/
|
|
5260
|
+
add: string[];
|
|
5261
|
+
/**
|
|
5262
|
+
* @description The IDs of the organization memberships to remove from the group. Removing a membership that isn't in the group has no effect.
|
|
5263
|
+
* @default []
|
|
5264
|
+
* @example [
|
|
5265
|
+
* "om_01HXYZ987654321ABCDEFGHIJ"
|
|
5266
|
+
* ]
|
|
5267
|
+
*/
|
|
5268
|
+
remove: string[];
|
|
5269
|
+
};
|
|
5248
5270
|
CreateGroupDto: {
|
|
5249
5271
|
/**
|
|
5250
5272
|
* @description The name of the Group.
|
|
@@ -35230,6 +35252,99 @@ export interface operations {
|
|
|
35230
35252
|
};
|
|
35231
35253
|
};
|
|
35232
35254
|
};
|
|
35255
|
+
GroupMembershipsController_updateMembers: {
|
|
35256
|
+
parameters: {
|
|
35257
|
+
query?: never;
|
|
35258
|
+
header?: never;
|
|
35259
|
+
path: {
|
|
35260
|
+
/** @description Unique identifier of the Organization. */
|
|
35261
|
+
organizationId: string;
|
|
35262
|
+
/** @description Unique identifier of the Group. */
|
|
35263
|
+
groupId: string;
|
|
35264
|
+
};
|
|
35265
|
+
cookie?: never;
|
|
35266
|
+
};
|
|
35267
|
+
requestBody: {
|
|
35268
|
+
content: {
|
|
35269
|
+
"application/json": components["schemas"]["PatchGroupMembershipsDto"];
|
|
35270
|
+
};
|
|
35271
|
+
};
|
|
35272
|
+
responses: {
|
|
35273
|
+
/** @description No Content */
|
|
35274
|
+
204: {
|
|
35275
|
+
headers: {
|
|
35276
|
+
[name: string]: unknown;
|
|
35277
|
+
};
|
|
35278
|
+
content?: never;
|
|
35279
|
+
};
|
|
35280
|
+
/** @description Bad Request */
|
|
35281
|
+
400: {
|
|
35282
|
+
headers: {
|
|
35283
|
+
[name: string]: unknown;
|
|
35284
|
+
};
|
|
35285
|
+
content: {
|
|
35286
|
+
"application/json": {
|
|
35287
|
+
/**
|
|
35288
|
+
* @description The error code identifying the type of error.
|
|
35289
|
+
* @example group_membership_update_overlap
|
|
35290
|
+
* @constant
|
|
35291
|
+
*/
|
|
35292
|
+
code: "group_membership_update_overlap";
|
|
35293
|
+
/**
|
|
35294
|
+
* @description A human-readable description of the error.
|
|
35295
|
+
* @example Request could not be processed.
|
|
35296
|
+
*/
|
|
35297
|
+
message: string;
|
|
35298
|
+
};
|
|
35299
|
+
};
|
|
35300
|
+
};
|
|
35301
|
+
/** @description Forbidden */
|
|
35302
|
+
403: {
|
|
35303
|
+
headers: {
|
|
35304
|
+
[name: string]: unknown;
|
|
35305
|
+
};
|
|
35306
|
+
content: {
|
|
35307
|
+
"application/json": {
|
|
35308
|
+
/**
|
|
35309
|
+
* @description A human-readable description of the error.
|
|
35310
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
35311
|
+
*/
|
|
35312
|
+
message: string;
|
|
35313
|
+
};
|
|
35314
|
+
};
|
|
35315
|
+
};
|
|
35316
|
+
/** @description Not Found */
|
|
35317
|
+
404: {
|
|
35318
|
+
headers: {
|
|
35319
|
+
[name: string]: unknown;
|
|
35320
|
+
};
|
|
35321
|
+
content: {
|
|
35322
|
+
"application/json": {
|
|
35323
|
+
/**
|
|
35324
|
+
* @description A human-readable description of the error.
|
|
35325
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
35326
|
+
*/
|
|
35327
|
+
message: string;
|
|
35328
|
+
};
|
|
35329
|
+
};
|
|
35330
|
+
};
|
|
35331
|
+
/** @description Unprocessable Entity */
|
|
35332
|
+
422: {
|
|
35333
|
+
headers: {
|
|
35334
|
+
[name: string]: unknown;
|
|
35335
|
+
};
|
|
35336
|
+
content: {
|
|
35337
|
+
"application/json": {
|
|
35338
|
+
/**
|
|
35339
|
+
* @description A human-readable description of the error.
|
|
35340
|
+
* @example Organization not found: 'org_01EHQMYV6MBK39QC5PZXHY59C3'.
|
|
35341
|
+
*/
|
|
35342
|
+
message: string;
|
|
35343
|
+
};
|
|
35344
|
+
};
|
|
35345
|
+
};
|
|
35346
|
+
};
|
|
35347
|
+
};
|
|
35233
35348
|
GroupMembershipsController_removeMember: {
|
|
35234
35349
|
parameters: {
|
|
35235
35350
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workos/openapi-spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.146.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "^26.6.6",
|
|
60
|
-
"@workos/oagen": "^0.
|
|
61
|
-
"@workos/oagen-emitters": "^0.25.
|
|
60
|
+
"@workos/oagen": "^0.34.0",
|
|
61
|
+
"@workos/oagen-emitters": "^0.25.4",
|
|
62
62
|
"diff2html": "^3.4.56",
|
|
63
63
|
"husky": "^9.1.7",
|
|
64
64
|
"js-yaml": "^5.5.0",
|