@workos/openapi-spec 0.144.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/README.md +5 -1
- package/dist/open-api-spec.yaml +563 -224
- package/dist/policy.d.mts +0 -10
- package/dist/policy.mjs +5 -10
- package/dist/services.d.mts +1 -3
- package/dist/services.mjs +11 -2
- package/dist/types.d.ts +430 -147
- package/package.json +6 -6
package/dist/policy.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/policy/types.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Vendored type definitions for the policy module.
|
|
4
3
|
*
|
|
@@ -43,15 +42,11 @@ interface OperationHint {
|
|
|
43
42
|
*/
|
|
44
43
|
urlBuilder?: boolean;
|
|
45
44
|
}
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/policy/operation-hints.d.ts
|
|
48
45
|
/**
|
|
49
46
|
* Per-operation overrides for the operation resolver. Keyed by `"METHOD /path"`.
|
|
50
47
|
* Only operations that need overrides are listed; the algorithm handles the rest.
|
|
51
48
|
*/
|
|
52
49
|
export declare const operationHints: Record<string, OperationHint>;
|
|
53
|
-
//#endregion
|
|
54
|
-
//#region src/policy/mount-rules.d.ts
|
|
55
50
|
/**
|
|
56
51
|
* Service-level remounting. Maps IR service name → target service/namespace
|
|
57
52
|
* (PascalCase). All operations in the source service are mounted on the
|
|
@@ -66,16 +61,12 @@ export declare const operationHints: Record<string, OperationHint>;
|
|
|
66
61
|
* Pipes) needs its own exact entry here.
|
|
67
62
|
*/
|
|
68
63
|
export declare const mountRules: Record<string, string>;
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/policy/model-hints.d.ts
|
|
71
64
|
/**
|
|
72
65
|
* Model placement hints — used by emitters that call
|
|
73
66
|
* `assignModelsToServices` so hinted models land in the configured service
|
|
74
67
|
* instead of the default first-reference winner.
|
|
75
68
|
*/
|
|
76
69
|
export declare const modelHints: Record<string, string>;
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region src/policy/transforms.d.ts
|
|
79
70
|
/**
|
|
80
71
|
* NestJS-style operationId transform. Strips "Controller" and extracts the
|
|
81
72
|
* action after the first underscore: `FooController_bar` -> `bar`.
|
|
@@ -89,5 +80,4 @@ export declare function schemaNameTransform(name: string): string;
|
|
|
89
80
|
* fix can't land in time AND the change is genuinely additive.
|
|
90
81
|
*/
|
|
91
82
|
export declare function transformSpec(spec: OpenApiDocument): OpenApiDocument;
|
|
92
|
-
//#endregion
|
|
93
83
|
export type { OpenApiDocument, OperationHint, SplitHint };
|
package/dist/policy.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/policy/operation-hints.ts
|
|
2
2
|
/**
|
|
3
3
|
* Per-operation overrides for the operation resolver. Keyed by `"METHOD /path"`.
|
|
4
4
|
* Only operations that need overrides are listed; the algorithm handles the rest.
|
|
@@ -328,8 +328,7 @@ const operationHints = {
|
|
|
328
328
|
]
|
|
329
329
|
}] }
|
|
330
330
|
};
|
|
331
|
-
|
|
332
|
-
//#region src/policy/mount-rules.ts
|
|
331
|
+
// src/policy/mount-rules.ts
|
|
333
332
|
/**
|
|
334
333
|
* Service-level remounting. Maps IR service name → target service/namespace
|
|
335
334
|
* (PascalCase). All operations in the source service are mounted on the
|
|
@@ -366,8 +365,7 @@ const mountRules = {
|
|
|
366
365
|
UserManagementDataProviders: "Pipes",
|
|
367
366
|
UserManagementMultiFactorAuthentication: "MultiFactorAuth"
|
|
368
367
|
};
|
|
369
|
-
|
|
370
|
-
//#region src/policy/model-hints.ts
|
|
368
|
+
// src/policy/model-hints.ts
|
|
371
369
|
/**
|
|
372
370
|
* Model placement hints — used by emitters that call
|
|
373
371
|
* `assignModelsToServices` so hinted models land in the configured service
|
|
@@ -378,8 +376,7 @@ const modelHints = {
|
|
|
378
376
|
UserOrganizationMembershipBaseListData: "Groups",
|
|
379
377
|
UserApiKeyOwner: "UserManagementUsers"
|
|
380
378
|
};
|
|
381
|
-
|
|
382
|
-
//#region src/policy/naming.ts
|
|
379
|
+
// src/policy/naming.ts
|
|
383
380
|
/**
|
|
384
381
|
* Naming utilities inlined from `@workos/oagen` (`src/utils/naming.ts`), same
|
|
385
382
|
* as the types in `./types.ts`: the published `dist/policy.mjs` must have zero
|
|
@@ -453,8 +450,7 @@ function toCamelCase(s, acronyms) {
|
|
|
453
450
|
return w.charAt(0).toUpperCase() + w.slice(1).toLowerCase();
|
|
454
451
|
}).join("");
|
|
455
452
|
}
|
|
456
|
-
|
|
457
|
-
//#region src/policy/transforms.ts
|
|
453
|
+
// src/policy/transforms.ts
|
|
458
454
|
/**
|
|
459
455
|
* NestJS-style operationId transform. Strips "Controller" and extracts the
|
|
460
456
|
* action after the first underscore: `FooController_bar` -> `bar`.
|
|
@@ -595,5 +591,4 @@ function transformSpec(spec) {
|
|
|
595
591
|
}
|
|
596
592
|
return spec;
|
|
597
593
|
}
|
|
598
|
-
//#endregion
|
|
599
594
|
export { modelHints, mountRules, nestjsOperationIdTransform, operationHints, schemaNameTransform, transformSpec };
|
package/dist/services.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/policy/services.generated.d.ts
|
|
2
1
|
export declare const services: readonly ["AdminPortal", "Agents", "ApiKeys", "AuditLogs", "Authorization", "ClientApi", "Connect", "DirectorySync", "Events", "FeatureFlags", "Groups", "MultiFactorAuth", "OrganizationDomains", "OrganizationMembership", "Organizations", "Pipes", "PipesProvider", "PlatformTeams", "Radar", "SSO", "UserManagement", "Vault", "Webhooks", "Widgets"];
|
|
3
2
|
export type ServiceName = (typeof services)[number];
|
|
4
3
|
export interface ServiceEndpoint {
|
|
@@ -7,5 +6,4 @@ export interface ServiceEndpoint {
|
|
|
7
6
|
name?: string;
|
|
8
7
|
}
|
|
9
8
|
export declare const serviceEndpoints: Record<string, ServiceEndpoint[]>;
|
|
10
|
-
export declare const serviceAliases: Record<string, ServiceName>;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const serviceAliases: Record<string, ServiceName>;
|
package/dist/services.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/policy/services.generated.ts
|
|
2
2
|
const services = [
|
|
3
3
|
"AdminPortal",
|
|
4
4
|
"Agents",
|
|
@@ -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",
|
|
@@ -850,6 +855,11 @@ const serviceEndpoints = {
|
|
|
850
855
|
"path": "/data-integrations/{slug}/organization",
|
|
851
856
|
"name": "update_data_integration_organization"
|
|
852
857
|
},
|
|
858
|
+
{
|
|
859
|
+
"method": "POST",
|
|
860
|
+
"path": "/data-integrations/finish",
|
|
861
|
+
"name": "create_finish"
|
|
862
|
+
},
|
|
853
863
|
{
|
|
854
864
|
"method": "DELETE",
|
|
855
865
|
"path": "/organizations/{organization_id}/connected_accounts/{slug}",
|
|
@@ -1434,5 +1444,4 @@ const serviceAliases = {
|
|
|
1434
1444
|
"UserManagementWaitlists": "UserManagement",
|
|
1435
1445
|
"WorkosConnect": "Connect"
|
|
1436
1446
|
};
|
|
1437
|
-
//#endregion
|
|
1438
1447
|
export { serviceAliases, serviceEndpoints, services };
|