@workos/oagen 0.1.1 → 0.3.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.
Files changed (47) hide show
  1. package/dist/cli/index.d.mts +2 -0
  2. package/dist/cli/index.mjs +6233 -0
  3. package/dist/cli/index.mjs.map +1 -0
  4. package/dist/compat/{index.d.ts → index.d.mts} +43 -114
  5. package/dist/compat/index.d.mts.map +1 -0
  6. package/dist/compat/index.mjs +4562 -0
  7. package/dist/compat/index.mjs.map +1 -0
  8. package/dist/diff-Cn6S74vV.mjs +2432 -0
  9. package/dist/diff-Cn6S74vV.mjs.map +1 -0
  10. package/dist/differ-B6472Yef.mjs +1100 -0
  11. package/dist/differ-B6472Yef.mjs.map +1 -0
  12. package/dist/index.d.mts +324 -0
  13. package/dist/index.d.mts.map +1 -0
  14. package/dist/index.mjs +1553 -0
  15. package/dist/index.mjs.map +1 -0
  16. package/dist/scripts/smoke/baseline.d.mts +1 -0
  17. package/dist/scripts/smoke/baseline.mjs +1951 -0
  18. package/dist/scripts/smoke/baseline.mjs.map +1 -0
  19. package/dist/scripts/smoke/sdk-test.d.mts +1 -0
  20. package/dist/scripts/smoke/sdk-test.mjs +111 -0
  21. package/dist/scripts/smoke/sdk-test.mjs.map +1 -0
  22. package/dist/smoke.d.mts +331 -0
  23. package/dist/smoke.d.mts.map +1 -0
  24. package/dist/smoke.mjs +2119 -0
  25. package/dist/smoke.mjs.map +1 -0
  26. package/dist/tree-sitter-DFRXfWg9.mjs +394 -0
  27. package/dist/tree-sitter-DFRXfWg9.mjs.map +1 -0
  28. package/dist/types-O25qZxMl.d.mts +397 -0
  29. package/dist/types-O25qZxMl.d.mts.map +1 -0
  30. package/dist/verify/index.d.mts +82 -0
  31. package/dist/verify/index.d.mts.map +1 -0
  32. package/dist/verify/index.mjs +327 -0
  33. package/dist/verify/index.mjs.map +1 -0
  34. package/package.json +19 -16
  35. package/dist/chunk-2JXFTDTO.js +0 -1669
  36. package/dist/chunk-CIX5NOBF.js +0 -263
  37. package/dist/chunk-IJ5E5AE7.js +0 -1040
  38. package/dist/cli/index.js +0 -5322
  39. package/dist/compat/index.js +0 -4491
  40. package/dist/index.d.ts +0 -277
  41. package/dist/index.js +0 -1565
  42. package/dist/scripts/smoke/baseline.js +0 -1813
  43. package/dist/scripts/smoke/sdk-test.js +0 -93
  44. package/dist/smoke.js +0 -2025
  45. package/dist/types-B5t9O9Wm.d.ts +0 -367
  46. package/dist/verify/index.d.ts +0 -76
  47. package/dist/verify/index.js +0 -336
@@ -1,21 +1,22 @@
1
- import { c as Extractor, a as ApiSurface, A as ApiSpec, r as LanguageHints, O as OverlayLookup, V as Violation, D as DiffResult } from '../types-B5t9O9Wm.js';
2
- export { s as Addition, t as ApiClass, u as ApiEnum, v as ApiField, x as ApiInterface, y as ApiMethod, z as ApiParam, B as ApiProperty, C as ApiTypeAlias, G as MethodOverlay, I as ViolationCategory, J as ViolationSeverity } from '../types-B5t9O9Wm.js';
1
+ import { B as ApiProperty, F as ApiEnum, G as LanguageHints, H as ApiTypeAlias, I as ApiField, J as Violation, K as MethodOverlay, L as ApiInterface, N as Addition, P as ApiClass, R as ApiMethod, U as DiffResult, V as ApiSurface, W as Extractor, X as ViolationSeverity, Y as ViolationCategory, q as OverlayLookup, t as ApiSpec, z as ApiParam } from "../types-O25qZxMl.mjs";
3
2
 
3
+ //#region src/compat/extractor-registry.d.ts
4
4
  declare function registerExtractor(extractor: Extractor): void;
5
5
  declare function getExtractor(language: string): Extractor;
6
-
6
+ //#endregion
7
+ //#region src/compat/overlay.d.ts
7
8
  interface ManifestEntry {
8
- operationId: string;
9
- sdkResourceProperty: string;
10
- sdkMethodName: string;
11
- httpMethod: string;
12
- path: string;
13
- pathParams: string[];
14
- bodyFields: string[];
15
- queryFields: string[];
9
+ operationId: string;
10
+ sdkResourceProperty: string;
11
+ sdkMethodName: string;
12
+ httpMethod: string;
13
+ path: string;
14
+ pathParams: string[];
15
+ bodyFields: string[];
16
+ queryFields: string[];
16
17
  }
17
18
  declare function buildOverlayLookup(surface: ApiSurface, manifest?: ManifestEntry[], spec?: ApiSpec, hints?: LanguageHints, options?: {
18
- strictModelMatch?: boolean;
19
+ strictModelMatch?: boolean;
19
20
  }): OverlayLookup;
20
21
  /**
21
22
  * Patch overlay with violations from a failed verification.
@@ -23,7 +24,8 @@ declare function buildOverlayLookup(surface: ApiSurface, manifest?: ManifestEntr
23
24
  * Returns a new OverlayLookup (immutable).
24
25
  */
25
26
  declare function patchOverlay(overlay: OverlayLookup, violations: Violation[], baseline: ApiSurface): OverlayLookup;
26
-
27
+ //#endregion
28
+ //#region src/compat/spec-filter.d.ts
27
29
  /**
28
30
  * Compute the set of symbol names that are derivable from the OpenAPI spec.
29
31
  * Only these names should be compared during compat verification — everything
@@ -68,119 +70,45 @@ declare function specDerivedHttpKeys(spec: ApiSpec): Set<string>;
68
70
  * also filtered: only UPPER_CASE constants that are spec-derivable are kept.
69
71
  */
70
72
  declare function filterSurface(surface: ApiSurface, allowedNames: Set<string>, opts?: {
71
- fieldPaths?: Set<string>;
72
- methodPaths?: Set<string>;
73
- enumValues?: Map<string, Set<string | number>>;
73
+ fieldPaths?: Set<string>;
74
+ methodPaths?: Set<string>;
75
+ enumValues?: Map<string, Set<string | number>>;
74
76
  }): ApiSurface;
75
-
77
+ //#endregion
78
+ //#region src/compat/differ.d.ts
76
79
  declare function diffSurfaces(baseline: ApiSurface, candidate: ApiSurface, hints: LanguageHints): DiffResult;
77
-
80
+ //#endregion
81
+ //#region src/compat/extractors/node.d.ts
78
82
  declare const nodeExtractor: Extractor;
79
-
80
- /**
81
- * PHP API surface extractor.
82
- *
83
- * Walks `.php` files under `lib/` (or `src/`), parses classes, interfaces,
84
- * methods, properties, and constants, then builds an `ApiSurface`.
85
- *
86
- * Parser: `php-parser.ts` — tree-sitter-based PHP source analysis
87
- * Surface: `php-surface.ts` — ApiSurface construction
88
- */
89
-
83
+ //#endregion
84
+ //#region src/compat/extractors/php.d.ts
90
85
  /** Default PHP extractor with generic language hints (no SDK-specific bases). */
91
86
  declare const phpExtractor: Extractor;
92
-
93
- /**
94
- * Python API surface extractor.
95
- *
96
- * Walks `.py` files under `src/` (fallback to top-level package dirs),
97
- * parses classes, type aliases, and module exports, then builds an
98
- * `ApiSurface` with Protocol-based services, Pydantic model interfaces,
99
- * Literal type enums, and exception classes.
100
- *
101
- * Parser: `python-parser.ts` — tree-sitter-based Python source analysis
102
- * Surface: `python-surface.ts` — ApiSurface construction
103
- */
104
-
87
+ //#endregion
88
+ //#region src/compat/extractors/python.d.ts
105
89
  /** Default Python extractor with generic language hints (no SDK-specific bases). */
106
90
  declare const pythonExtractor: Extractor;
107
-
108
- /**
109
- * Ruby API surface extractor.
110
- *
111
- * Walks `.rb` files under `lib/`, parses class/module declarations,
112
- * and builds an `ApiSurface` with classes, service modules, and enum modules.
113
- *
114
- * Parser: `ruby-parser.ts` — tree-sitter-based class/module/enum extraction
115
- */
116
-
91
+ //#endregion
92
+ //#region src/compat/extractors/ruby.d.ts
117
93
  declare const rubyExtractor: Extractor;
118
-
119
- /**
120
- * Go API surface extractor.
121
- *
122
- * Walks `.go` files (excluding `_test.go` and `internal/`), parses exported
123
- * structs, functions, type declarations, and const blocks, then builds an
124
- * `ApiSurface` with package-qualified names to avoid collisions when
125
- * multiple packages define the same symbol (e.g., `Client`).
126
- *
127
- * Parser: `go-parser.ts` — regex-based Go source analysis
128
- * Surface: `go-surface.ts` — ApiSurface construction & name qualification
129
- */
130
-
94
+ //#endregion
95
+ //#region src/compat/extractors/go.d.ts
131
96
  declare const goExtractor: Extractor;
132
-
133
- /**
134
- * Rust API surface extractor.
135
- *
136
- * Walks `.rs` files under `src/`, parses pub structs, enums, impl blocks,
137
- * traits, and type aliases, then builds an ApiSurface.
138
- *
139
- * Parser: `rust-parser.ts` — tree-sitter-based Rust source analysis
140
- * Surface: `rust-surface.ts` — ApiSurface construction
141
- */
142
-
97
+ //#endregion
98
+ //#region src/compat/extractors/rust.d.ts
143
99
  declare const rustExtractor: Extractor;
144
-
145
- /**
146
- * Kotlin API surface extractor.
147
- *
148
- * Walks `.kt` files (excluding test files and build directories), parses
149
- * data classes, classes, enum classes, and type aliases, then builds an
150
- * `ApiSurface`.
151
- *
152
- * Parser: `kotlin-parser.ts` — regex-based Kotlin source analysis
153
- * Surface: `kotlin-surface.ts` — ApiSurface construction
154
- */
155
-
100
+ //#endregion
101
+ //#region src/compat/extractors/kotlin.d.ts
156
102
  declare const kotlinExtractor: Extractor;
157
-
158
- /**
159
- * DotNet (C#) API surface extractor.
160
- *
161
- * Walks `.cs` files (excluding test, bin, and obj directories), parses
162
- * classes, enums, properties, and methods, then builds an `ApiSurface`.
163
- *
164
- * Parser: `dotnet-parser.ts` — regex-based C# source analysis
165
- * Surface: `dotnet-surface.ts` — ApiSurface construction
166
- */
167
-
103
+ //#endregion
104
+ //#region src/compat/extractors/dotnet.d.ts
168
105
  /** Default DotNet extractor with generic language hints. */
169
106
  declare const dotnetExtractor: Extractor;
170
-
171
- /**
172
- * Elixir API surface extractor.
173
- *
174
- * Walks `.ex` files under `lib/` (the standard Elixir source directory),
175
- * parses modules, structs, functions, and type specs, then builds an
176
- * `ApiSurface`.
177
- *
178
- * Parser: `elixir-parser.ts` — regex-based Elixir source analysis
179
- * Surface: `elixir-surface.ts` — ApiSurface construction
180
- */
181
-
107
+ //#endregion
108
+ //#region src/compat/extractors/elixir.d.ts
182
109
  declare const elixirExtractor: Extractor;
183
-
110
+ //#endregion
111
+ //#region src/compat/language-hints.d.ts
184
112
  /**
185
113
  * Node/TypeScript language hints — reference implementation.
186
114
  * Extracted from the hardcoded logic previously in differ.ts and overlay.ts.
@@ -191,5 +119,6 @@ declare const nodeHints: LanguageHints;
191
119
  * Any hint not provided falls back to the Node/TypeScript implementation.
192
120
  */
193
121
  declare function resolveHints(overrides: Partial<LanguageHints>): LanguageHints;
194
-
195
- export { ApiSurface, DiffResult, Extractor, LanguageHints, OverlayLookup, Violation, buildOverlayLookup, diffSurfaces, dotnetExtractor, elixirExtractor, filterSurface, getExtractor, goExtractor, kotlinExtractor, nodeExtractor, nodeHints, patchOverlay, phpExtractor, pythonExtractor, registerExtractor, resolveHints, rubyExtractor, rustExtractor, specDerivedEnumValues, specDerivedFieldPaths, specDerivedHttpKeys, specDerivedMethodPaths, specDerivedNames };
122
+ //#endregion
123
+ export { type Addition, type ApiClass, type ApiEnum, type ApiField, type ApiInterface, type ApiMethod, type ApiParam, type ApiProperty, type ApiSurface, type ApiTypeAlias, type DiffResult, type Extractor, type LanguageHints, type MethodOverlay, type OverlayLookup, type Violation, type ViolationCategory, type ViolationSeverity, buildOverlayLookup, diffSurfaces, dotnetExtractor, elixirExtractor, filterSurface, getExtractor, goExtractor, kotlinExtractor, nodeExtractor, nodeHints, patchOverlay, phpExtractor, pythonExtractor, registerExtractor, resolveHints, rubyExtractor, rustExtractor, specDerivedEnumValues, specDerivedFieldPaths, specDerivedHttpKeys, specDerivedMethodPaths, specDerivedNames };
124
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/compat/extractor-registry.ts","../../src/compat/overlay.ts","../../src/compat/spec-filter.ts","../../src/compat/differ.ts","../../src/compat/extractors/node.ts","../../src/compat/extractors/php.ts","../../src/compat/extractors/python.ts","../../src/compat/extractors/ruby.ts","../../src/compat/extractors/go.ts","../../src/compat/extractors/rust.ts","../../src/compat/extractors/kotlin.ts","../../src/compat/extractors/dotnet.ts","../../src/compat/extractors/elixir.ts","../../src/compat/language-hints.ts"],"mappings":";;;iBAKgB,iBAAA,CAAkB,SAAA,EAAW,SAAA;AAAA,iBAI7B,YAAA,CAAa,QAAA,WAAmB,SAAA;;;UCF/B,aAAA;EACf,WAAA;EACA,mBAAA;EACA,aAAA;EACA,UAAA;EACA,IAAA;EACA,UAAA;EACA,UAAA;EACA,WAAA;AAAA;AAAA,iBAoDc,kBAAA,CACd,OAAA,EAAS,UAAA,EACT,QAA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