@workos/openapi-spec 0.8.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.
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",
@@ -22,6 +22,10 @@
22
22
  "types": "./dist/policy.d.mts",
23
23
  "import": "./dist/policy.mjs"
24
24
  },
25
+ "./services": {
26
+ "types": "./dist/services.d.mts",
27
+ "import": "./dist/services.mjs"
28
+ },
25
29
  "./operation-overrides/node": "./dist/operationOverrides.node.json",
26
30
  "./package.json": "./package.json"
27
31
  },
@@ -29,7 +33,8 @@
29
33
  "@workos/oagen": "^0.22.6"
30
34
  },
31
35
  "scripts": {
32
- "build:policy": "tsdown",
36
+ "generate:services": "node scripts/generate-services.mjs",
37
+ "build:policy": "npm run generate:services && tsdown",
33
38
  "generate:postman": "tsx scripts/postman/generate.ts",
34
39
  "generate:postman:local": "tsx scripts/postman/generate.ts --local",
35
40
  "sdk:resolve": "npx oagen resolve --spec spec/open-api-spec.yaml",