@workos/openapi-spec 0.33.0 → 0.35.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/policy.d.mts CHANGED
@@ -56,6 +56,14 @@ declare const operationHints: Record<string, OperationHint>;
56
56
  * Service-level remounting. Maps IR service name → target service/namespace
57
57
  * (PascalCase). All operations in the source service are mounted on the
58
58
  * target unless overridden per-operation in {@link operationHints}.
59
+ *
60
+ * Keys may be exact service names or trailing-`*` prefix patterns
61
+ * (requires @workos/oagen >= 0.25.0). Precedence: an exact key always wins;
62
+ * among wildcards the longest prefix wins. Matching is plain `startsWith` —
63
+ * no regex. Note that a wildcard also absorbs future spec tags under its
64
+ * prefix, so review `oagen diff` output when tags are added: a new tag that
65
+ * does not belong to its prefix family (cf. UserManagementDataProviders →
66
+ * Pipes) needs its own exact entry here.
59
67
  */
60
68
  declare const mountRules: Record<string, string>;
61
69
  //#endregion
package/dist/policy.mjs CHANGED
@@ -38,6 +38,7 @@ const operationHints = {
38
38
  "POST /portal/generate_link": { name: "generate_link" },
39
39
  "GET /organizations/{organizationId}/feature-flags": { name: "list_organization_feature_flags" },
40
40
  "GET /user_management/users/{userId}/feature-flags": { name: "list_user_feature_flags" },
41
+ "GET /organizations/{organization_id}/authorized_applications": { name: "list_authorized_applications" },
41
42
  "GET /organizations/external_id/{external_id}": { name: "get_organization_by_external_id" },
42
43
  "GET /user_management/users/external_id/{external_id}": { name: "get_user_by_external_id" },
43
44
  "GET /authorization/roles": { name: "list_environment_roles" },
@@ -326,6 +327,14 @@ const operationHints = {
326
327
  * Service-level remounting. Maps IR service name → target service/namespace
327
328
  * (PascalCase). All operations in the source service are mounted on the
328
329
  * target unless overridden per-operation in {@link operationHints}.
330
+ *
331
+ * Keys may be exact service names or trailing-`*` prefix patterns
332
+ * (requires @workos/oagen >= 0.25.0). Precedence: an exact key always wins;
333
+ * among wildcards the longest prefix wins. Matching is plain `startsWith` —
334
+ * no regex. Note that a wildcard also absorbs future spec tags under its
335
+ * prefix, so review `oagen diff` output when tags are added: a new tag that
336
+ * does not belong to its prefix family (cf. UserManagementDataProviders →
337
+ * Pipes) needs its own exact entry here.
329
338
  */
330
339
  const mountRules = {
331
340
  Client: "ClientApi",
@@ -335,24 +344,14 @@ const mountRules = {
335
344
  Applications: "Connect",
336
345
  ApplicationClientSecrets: "Connect",
337
346
  Connections: "SSO",
338
- Directories: "DirectorySync",
339
- DirectoryGroups: "DirectorySync",
340
- DirectoryUsers: "DirectorySync",
347
+ "Director*": "DirectorySync",
341
348
  FeatureFlagsTargets: "FeatureFlags",
342
349
  OrganizationsFeatureFlags: "FeatureFlags",
343
350
  UserManagementUsersFeatureFlags: "FeatureFlags",
344
351
  OrganizationsApiKeys: "ApiKeys",
345
- UserManagementSessionTokens: "UserManagement",
346
- UserManagementAuthentication: "UserManagement",
347
- UserManagementCorsOrigins: "UserManagement",
348
- UserManagementUsers: "UserManagement",
349
- UserManagementInvitations: "UserManagement",
350
- UserManagementJWTTemplate: "UserManagement",
351
- UserManagementMagicAuth: "UserManagement",
352
- UserManagementOrganizationMembership: "OrganizationMembership",
353
- UserManagementOrganizationMembershipGroups: "OrganizationMembership",
354
- UserManagementRedirectUris: "UserManagement",
355
- UserManagementUsersAuthorizedApplications: "UserManagement",
352
+ OrganizationsAuthorizedApplications: "Organizations",
353
+ "UserManagement*": "UserManagement",
354
+ "UserManagementOrganizationMembership*": "OrganizationMembership",
356
355
  UserManagementDataProviders: "Pipes",
357
356
  UserManagementMultiFactorAuthentication: "MultiFactorAuth"
358
357
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workos/openapi-spec",
3
- "version": "0.33.0",
3
+ "version": "0.35.0",
4
4
  "type": "module",
5
5
  "description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "./package.json": "./package.json"
31
31
  },
32
32
  "dependencies": {
33
- "@workos/oagen": "^0.24.6"
33
+ "@workos/oagen": "^0.25.0"
34
34
  },
35
35
  "scripts": {
36
36
  "generate:services": "node scripts/generate-services.mjs",
@@ -60,8 +60,8 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/js-yaml": "^4.0.9",
63
- "@types/node": "^26.1.0",
64
- "@workos/oagen-emitters": "^0.19.9",
63
+ "@types/node": "^26.1.1",
64
+ "@workos/oagen-emitters": "^0.19.10",
65
65
  "diff2html": "^3.4.56",
66
66
  "husky": "^9.1.7",
67
67
  "js-yaml": "^4.1.1",