@workos/openapi-spec 0.143.0 → 0.145.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
@@ -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
- //#region src/policy/operation-hints.ts
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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 };
@@ -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
- //#region src/policy/services.generated.ts
1
+ // src/policy/services.generated.ts
2
2
  const services = [
3
3
  "AdminPortal",
4
4
  "Agents",
@@ -850,6 +850,11 @@ const serviceEndpoints = {
850
850
  "path": "/data-integrations/{slug}/organization",
851
851
  "name": "update_data_integration_organization"
852
852
  },
853
+ {
854
+ "method": "POST",
855
+ "path": "/data-integrations/finish",
856
+ "name": "create_finish"
857
+ },
853
858
  {
854
859
  "method": "DELETE",
855
860
  "path": "/organizations/{organization_id}/connected_accounts/{slug}",
@@ -1434,5 +1439,4 @@ const serviceAliases = {
1434
1439
  "UserManagementWaitlists": "UserManagement",
1435
1440
  "WorkosConnect": "Connect"
1436
1441
  };
1437
- //#endregion
1438
1442
  export { serviceAliases, serviceEndpoints, services };