@workos/openapi-spec 0.7.0 → 0.9.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 +1196 -134
- package/dist/policy.mjs +6 -0
- package/dist/services.d.mts +5 -0
- package/dist/services.mjs +27 -0
- package/dist/types.d.ts +1150 -111
- package/package.json +8 -3
package/dist/policy.mjs
CHANGED
|
@@ -281,6 +281,7 @@ const operationHints = {
|
|
|
281
281
|
* target unless overridden per-operation in {@link operationHints}.
|
|
282
282
|
*/
|
|
283
283
|
const mountRules = {
|
|
284
|
+
Client: "ClientApi",
|
|
284
285
|
MultiFactorAuthChallenges: "MultiFactorAuth",
|
|
285
286
|
Permissions: "Authorization",
|
|
286
287
|
WorkosConnect: "Connect",
|
|
@@ -413,6 +414,11 @@ function transformSpec(spec) {
|
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
416
|
}
|
|
417
|
+
if (schemas["ListMetadata"]) {
|
|
418
|
+
const groupRoleList = schemas["GroupRoleAssignmentList"];
|
|
419
|
+
const listMetadata = groupRoleList?.properties?.list_metadata;
|
|
420
|
+
if (listMetadata && !listMetadata.$ref && listMetadata.properties) groupRoleList.properties.list_metadata = { $ref: "#/components/schemas/ListMetadata" };
|
|
421
|
+
}
|
|
416
422
|
return spec;
|
|
417
423
|
}
|
|
418
424
|
//#endregion
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/policy/services.generated.d.ts
|
|
2
|
+
declare const services: readonly ["AdminPortal", "ApiKeys", "AuditLogs", "Authorization", "ClientApi", "Connect", "DirectorySync", "Events", "FeatureFlags", "Groups", "MultiFactorAuth", "OrganizationDomains", "OrganizationMembership", "Organizations", "Pipes", "PipesProvider", "Radar", "SSO", "UserManagement", "Vault", "Webhooks", "Widgets"];
|
|
3
|
+
type ServiceName = (typeof services)[number];
|
|
4
|
+
//#endregion
|
|
5
|
+
export { ServiceName, services };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/policy/services.generated.ts
|
|
2
|
+
const services = [
|
|
3
|
+
"AdminPortal",
|
|
4
|
+
"ApiKeys",
|
|
5
|
+
"AuditLogs",
|
|
6
|
+
"Authorization",
|
|
7
|
+
"ClientApi",
|
|
8
|
+
"Connect",
|
|
9
|
+
"DirectorySync",
|
|
10
|
+
"Events",
|
|
11
|
+
"FeatureFlags",
|
|
12
|
+
"Groups",
|
|
13
|
+
"MultiFactorAuth",
|
|
14
|
+
"OrganizationDomains",
|
|
15
|
+
"OrganizationMembership",
|
|
16
|
+
"Organizations",
|
|
17
|
+
"Pipes",
|
|
18
|
+
"PipesProvider",
|
|
19
|
+
"Radar",
|
|
20
|
+
"SSO",
|
|
21
|
+
"UserManagement",
|
|
22
|
+
"Vault",
|
|
23
|
+
"Webhooks",
|
|
24
|
+
"Widgets"
|
|
25
|
+
];
|
|
26
|
+
//#endregion
|
|
27
|
+
export { services };
|