@workos/openapi-spec 0.145.0 → 0.147.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 +131 -0
- package/dist/services.mjs +5 -0
- package/dist/types.d.ts +128 -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.
|
|
@@ -20206,6 +20300,20 @@ paths:
|
|
|
20206
20300
|
required:
|
|
20207
20301
|
- code
|
|
20208
20302
|
- message
|
|
20303
|
+
- type: object
|
|
20304
|
+
properties:
|
|
20305
|
+
code:
|
|
20306
|
+
type: string
|
|
20307
|
+
description: The error code identifying the type of error.
|
|
20308
|
+
example: action_denied
|
|
20309
|
+
const: action_denied
|
|
20310
|
+
message:
|
|
20311
|
+
type: string
|
|
20312
|
+
description: A human-readable description of the error.
|
|
20313
|
+
example: Request could not be processed.
|
|
20314
|
+
required:
|
|
20315
|
+
- code
|
|
20316
|
+
- message
|
|
20209
20317
|
'404':
|
|
20210
20318
|
description: Not Found
|
|
20211
20319
|
content:
|
|
@@ -29936,6 +30044,29 @@ components:
|
|
|
29936
30044
|
example: om_01HXYZ123456789ABCDEFGHIJ
|
|
29937
30045
|
required:
|
|
29938
30046
|
- organization_membership_id
|
|
30047
|
+
PatchGroupMembershipsDto:
|
|
30048
|
+
type: object
|
|
30049
|
+
properties:
|
|
30050
|
+
add:
|
|
30051
|
+
default: []
|
|
30052
|
+
description: >-
|
|
30053
|
+
The IDs of the organization memberships to add to the group. Adding
|
|
30054
|
+
a membership that's already in the group has no effect.
|
|
30055
|
+
example:
|
|
30056
|
+
- om_01HXYZ123456789ABCDEFGHIJ
|
|
30057
|
+
type: array
|
|
30058
|
+
items:
|
|
30059
|
+
type: string
|
|
30060
|
+
remove:
|
|
30061
|
+
default: []
|
|
30062
|
+
description: >-
|
|
30063
|
+
The IDs of the organization memberships to remove from the group.
|
|
30064
|
+
Removing a membership that isn't in the group has no effect.
|
|
30065
|
+
example:
|
|
30066
|
+
- om_01HXYZ987654321ABCDEFGHIJ
|
|
30067
|
+
type: array
|
|
30068
|
+
items:
|
|
30069
|
+
type: string
|
|
29939
30070
|
CreateGroupDto:
|
|
29940
30071
|
type: object
|
|
29941
30072
|
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;
|
|
@@ -38555,6 +38670,18 @@ export interface operations {
|
|
|
38555
38670
|
* @example Request could not be processed.
|
|
38556
38671
|
*/
|
|
38557
38672
|
message: string;
|
|
38673
|
+
} | {
|
|
38674
|
+
/**
|
|
38675
|
+
* @description The error code identifying the type of error.
|
|
38676
|
+
* @example action_denied
|
|
38677
|
+
* @constant
|
|
38678
|
+
*/
|
|
38679
|
+
code: "action_denied";
|
|
38680
|
+
/**
|
|
38681
|
+
* @description A human-readable description of the error.
|
|
38682
|
+
* @example Request could not be processed.
|
|
38683
|
+
*/
|
|
38684
|
+
message: string;
|
|
38558
38685
|
};
|
|
38559
38686
|
};
|
|
38560
38687
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workos/openapi-spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.147.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",
|