@stainless-api/docs-ui 0.1.0-beta.6 → 0.1.0-beta.61

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 (206) hide show
  1. package/dist/breadcrumbs-BVskoBYz.d.ts +25 -0
  2. package/dist/breadcrumbs-C9LLJyuJ.d.ts +25 -0
  3. package/dist/breadcrumbs-CqA6kow2.js +63 -0
  4. package/dist/chunk-BN_g-Awi.js +18 -0
  5. package/dist/cli-0bJ66S1r.js +157 -0
  6. package/dist/component-CjJJYIxG.js +23 -0
  7. package/dist/component-generics-BC_P155r.d.ts +30 -0
  8. package/dist/component-generics-BkwbbxJF.d.ts +30 -0
  9. package/dist/component-generics-POFirVVb.js +45 -0
  10. package/dist/components/MaskedInput.d.ts +14 -0
  11. package/dist/components/MaskedInput.js +76 -0
  12. package/dist/components/breadcrumbs.d.ts +2 -0
  13. package/dist/components/breadcrumbs.js +9 -0
  14. package/dist/components/icons.d.ts +60 -0
  15. package/dist/components/icons.js +3 -0
  16. package/dist/components/index.d.ts +10 -0
  17. package/dist/components/index.js +18 -0
  18. package/dist/components/method.d.ts +2 -0
  19. package/dist/components/method.js +10 -0
  20. package/dist/components/overview.d.ts +2 -0
  21. package/dist/components/overview.js +11 -0
  22. package/dist/components/primitives.d.ts +2 -0
  23. package/dist/components/primitives.js +8 -0
  24. package/dist/components/properties.d.ts +2 -0
  25. package/dist/components/properties.js +9 -0
  26. package/dist/components/sdk.d.ts +2 -0
  27. package/dist/components/sdk.js +10 -0
  28. package/dist/components/sidebar.d.ts +2 -0
  29. package/dist/components/sidebar.js +9 -0
  30. package/dist/components/snippets.d.ts +3 -0
  31. package/dist/components/snippets.js +9 -0
  32. package/dist/components-FEHnQBJC.js +70 -0
  33. package/dist/contexts/component-generics.d.ts +2 -0
  34. package/dist/contexts/component-generics.js +3 -0
  35. package/dist/contexts/component-types.d.ts +16 -0
  36. package/dist/contexts/component-types.js +0 -0
  37. package/dist/contexts/component.d.ts +29 -0
  38. package/dist/contexts/component.js +28 -0
  39. package/dist/contexts/docs.d.ts +2 -0
  40. package/dist/contexts/docs.js +3 -0
  41. package/dist/contexts/index.d.ts +22 -0
  42. package/dist/contexts/index.js +7 -0
  43. package/dist/contexts/markdown.d.ts +2 -0
  44. package/dist/contexts/markdown.js +4 -0
  45. package/dist/contexts/navigation.d.ts +2 -0
  46. package/dist/contexts/navigation.js +3 -0
  47. package/dist/contexts/use-components.d.ts +14 -0
  48. package/dist/contexts/use-components.js +4 -0
  49. package/dist/contexts-CeV_L_Iy.js +39 -0
  50. package/dist/csharp-Dl2RIiYP.js +283 -0
  51. package/dist/docs--qWFuJCM.d.ts +46 -0
  52. package/dist/docs-DSFRsmbQ.d.ts +46 -0
  53. package/dist/docs-Di94viZV.js +54 -0
  54. package/dist/go-DuKdRGqU.js +303 -0
  55. package/dist/http-C7bu4oCl.js +331 -0
  56. package/dist/icons-BYKn5X8E.js +885 -0
  57. package/dist/index-C0qvL4yP.d.ts +15 -0
  58. package/dist/index-DE1vA8T2.d.ts +302 -0
  59. package/dist/index-DsFyACw9.d.ts +15 -0
  60. package/dist/index-FDM-j9s-.d.ts +302 -0
  61. package/dist/index-zNpvNvtN.d.ts +1691 -0
  62. package/dist/index.d.ts +19 -0
  63. package/dist/index.js +30 -7542
  64. package/dist/java-DSyzO-6F.js +403 -0
  65. package/dist/languages/cli.d.ts +11 -0
  66. package/dist/languages/cli.js +20 -0
  67. package/dist/languages/csharp.d.ts +11 -0
  68. package/dist/languages/csharp.js +9 -0
  69. package/dist/languages/go.d.ts +11 -0
  70. package/dist/languages/go.js +9 -0
  71. package/dist/languages/http.d.ts +11 -0
  72. package/dist/languages/http.js +19 -0
  73. package/dist/languages/index.d.ts +11 -0
  74. package/dist/languages/index.js +27 -0
  75. package/dist/languages/java.d.ts +11 -0
  76. package/dist/languages/java.js +9 -0
  77. package/dist/languages/python.d.ts +11 -0
  78. package/dist/languages/python.js +9 -0
  79. package/dist/languages/ruby.d.ts +11 -0
  80. package/dist/languages/ruby.js +9 -0
  81. package/dist/languages/typescript.d.ts +11 -0
  82. package/dist/languages/typescript.js +9 -0
  83. package/dist/languages-BO5YJ6cy.js +28 -0
  84. package/dist/markdown/index.d.ts +12 -0
  85. package/dist/markdown/index.js +105 -0
  86. package/dist/markdown/md.d.ts +15 -0
  87. package/dist/markdown/md.js +41 -0
  88. package/dist/markdown/printer.d.ts +13 -0
  89. package/dist/markdown/printer.js +98 -0
  90. package/dist/markdown/utils.d.ts +21 -0
  91. package/dist/markdown/utils.js +31 -0
  92. package/dist/markdown-B517MrZh.d.ts +22 -0
  93. package/dist/markdown-C7Tb41LZ.d.ts +22 -0
  94. package/dist/markdown-D2JWyRws.js +49 -0
  95. package/dist/method-BaQEZVlw.d.ts +59 -0
  96. package/dist/method-Dln4ZTIB.d.ts +59 -0
  97. package/dist/method-jTnA0G8m.js +90 -0
  98. package/dist/navigation-XhIgqXwM.d.ts +29 -0
  99. package/dist/navigation-aoYZ_tl4.js +24 -0
  100. package/dist/navigation-rKdts-BR.d.ts +29 -0
  101. package/dist/overview-B3kgyac2.d.ts +39 -0
  102. package/dist/overview-BnagZfH1.js +139 -0
  103. package/dist/overview-Dp-gGl3v.d.ts +39 -0
  104. package/dist/primitives-B6zu2rrx.d.ts +105 -0
  105. package/dist/primitives-DQLc9kN7.js +250 -0
  106. package/dist/primitives-VtUGoYwX.d.ts +105 -0
  107. package/dist/properties-Bun4nfUE.d.ts +54 -0
  108. package/dist/properties-DGL2J11L.js +131 -0
  109. package/dist/properties-ZOIqpkET.d.ts +54 -0
  110. package/dist/python-D8ABqtn1.js +269 -0
  111. package/dist/routing-Ce0_tBW6.js +197 -0
  112. package/dist/routing-CtbZJru_.d.ts +54 -0
  113. package/dist/routing.d.ts +2 -0
  114. package/dist/routing.js +3 -180
  115. package/dist/ruby-261jvCjl.js +387 -0
  116. package/dist/sdk-BebFnWYL.d.ts +118 -0
  117. package/dist/sdk-CIxaNoAs.d.ts +118 -0
  118. package/dist/sdk-GGpyGTao.js +338 -0
  119. package/dist/sidebar-BWno0E4w.js +85 -0
  120. package/dist/sidebar-CLsIJZZf.d.ts +36 -0
  121. package/dist/sidebar-D4m_pVpS.d.ts +36 -0
  122. package/dist/snippets-CwVjwsAo.d.ts +53 -0
  123. package/dist/snippets-Ym3mnHO3.d.ts +53 -0
  124. package/dist/snippets-kI8eNs1F.js +164 -0
  125. package/dist/spec.d.ts +65 -0
  126. package/dist/spec.js +167 -0
  127. package/dist/style-LwfvXElj.js +170 -0
  128. package/dist/style.d.ts +169 -0
  129. package/dist/style.js +3 -0
  130. package/dist/styles/main.css +722 -755
  131. package/dist/styles/main.js +0 -0
  132. package/dist/styles/primitives.css +322 -459
  133. package/dist/styles/primitives.js +0 -0
  134. package/dist/styles/resets.css +32 -41
  135. package/dist/styles/resets.js +0 -0
  136. package/dist/styles/search.css +192 -270
  137. package/dist/styles/search.js +0 -0
  138. package/dist/styles/sidebar.css +56 -61
  139. package/dist/styles/sidebar.js +0 -0
  140. package/dist/styles/variables.css +26 -89
  141. package/dist/styles/variables.js +0 -0
  142. package/dist/styles.css +3145 -0
  143. package/dist/styles.mjs +1 -0
  144. package/dist/typescript-D924WidI.js +449 -0
  145. package/dist/use-components-BUz3GbO4.js +7 -0
  146. package/dist/utils-D01mAUfQ.js +32 -0
  147. package/dist/utils.d.ts +14 -0
  148. package/dist/utils.js +3 -0
  149. package/package.json +73 -21
  150. package/dist/mcp.js +0 -16003
  151. package/dist/styles/snippets.css +0 -132
  152. package/src/components/breadcrumbs.tsx +0 -94
  153. package/src/components/chat.tsx +0 -154
  154. package/src/components/dropdown.tsx +0 -91
  155. package/src/components/icons.tsx +0 -584
  156. package/src/components/index.ts +0 -9
  157. package/src/components/method.tsx +0 -144
  158. package/src/components/overview.tsx +0 -159
  159. package/src/components/primitives.tsx +0 -284
  160. package/src/components/properties.tsx +0 -130
  161. package/src/components/scripts/dropdown.ts +0 -78
  162. package/src/components/sdk.tsx +0 -402
  163. package/src/components/sidebar.tsx +0 -99
  164. package/src/components/snippets.tsx +0 -179
  165. package/src/contexts/component-generics.tsx +0 -48
  166. package/src/contexts/component-types.tsx +0 -5
  167. package/src/contexts/component.tsx +0 -32
  168. package/src/contexts/docs.tsx +0 -75
  169. package/src/contexts/index.tsx +0 -17
  170. package/src/contexts/markdown.tsx +0 -43
  171. package/src/contexts/navigation.tsx +0 -44
  172. package/src/contexts/search.tsx +0 -28
  173. package/src/contexts/use-components.tsx +0 -4
  174. package/src/index.ts +0 -6
  175. package/src/languages/go.tsx +0 -281
  176. package/src/languages/http.tsx +0 -321
  177. package/src/languages/index.ts +0 -26
  178. package/src/languages/java.tsx +0 -358
  179. package/src/languages/python.tsx +0 -255
  180. package/src/languages/ruby.tsx +0 -320
  181. package/src/languages/typescript.tsx +0 -393
  182. package/src/markdown/index.ts +0 -107
  183. package/src/markdown/md.ts +0 -45
  184. package/src/markdown/utils.ts +0 -49
  185. package/src/routing.ts +0 -238
  186. package/src/search/form.tsx +0 -127
  187. package/src/search/index.tsx +0 -1
  188. package/src/search/indexer.ts +0 -246
  189. package/src/search/mcp.ts +0 -61
  190. package/src/search/printer.tsx +0 -86
  191. package/src/search/providers/algolia.ts +0 -88
  192. package/src/search/providers/fuse.ts +0 -19
  193. package/src/search/providers/pagefind.ts +0 -17
  194. package/src/search/providers/walker.ts +0 -30
  195. package/src/search/results.tsx +0 -181
  196. package/src/search/state.ts +0 -64
  197. package/src/search/types.ts +0 -116
  198. package/src/style.ts +0 -197
  199. package/src/styles/main.css +0 -993
  200. package/src/styles/primitives.css +0 -573
  201. package/src/styles/resets.css +0 -47
  202. package/src/styles/search.css +0 -342
  203. package/src/styles/sidebar.css +0 -87
  204. package/src/styles/snippets.css +0 -132
  205. package/src/styles/variables.css +0 -90
  206. package/src/utils.ts +0 -41
@@ -0,0 +1,1691 @@
1
+ import { Code } from "@pkg/plada/src/core";
2
+
3
+ //#region ../sdk-json/index.d.ts
4
+ declare type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
5
+ interface BaseOperation {
6
+ path: string;
7
+ }
8
+ interface AddOperation<T> extends BaseOperation {
9
+ op: 'add';
10
+ value: T;
11
+ }
12
+ interface RemoveOperation extends BaseOperation {
13
+ op: 'remove';
14
+ }
15
+ interface ReplaceOperation<T> extends BaseOperation {
16
+ op: 'replace';
17
+ value: T;
18
+ }
19
+ interface MoveOperation extends BaseOperation {
20
+ op: 'move';
21
+ from: string;
22
+ }
23
+ interface CopyOperation extends BaseOperation {
24
+ op: 'copy';
25
+ from: string;
26
+ }
27
+ interface TestOperation<T> extends BaseOperation {
28
+ op: 'test';
29
+ value: T;
30
+ }
31
+ interface GetOperation<T> extends BaseOperation {
32
+ op: '_get';
33
+ value: T;
34
+ }
35
+ type Primitive$2 = null | undefined | string | number | boolean | symbol | bigint;
36
+ type BuiltIns = Primitive$2 | void | Date | RegExp;
37
+ type NonRecursiveType = BuiltIns | Function | (new (...arguments_: any[]) => unknown);
38
+ type SimplifyDeep<Type, ExcludeType = never> = ConditionalSimplifyDeep<Type, ExcludeType | NonRecursiveType | Set<unknown> | Map<unknown, unknown>, object>;
39
+ type ConditionalSimplifyDeep<Type, ExcludeType = never, IncludeType = unknown> = Type extends ExcludeType ? Type : Type extends IncludeType ? { [TypeKey in keyof Type]: ConditionalSimplifyDeep<Type[TypeKey], ExcludeType, IncludeType> } : Type;
40
+ type HeaderObject = ParameterBaseObject;
41
+ type ParameterBaseObject = {
42
+ description?: string;
43
+ required?: boolean;
44
+ deprecated?: boolean;
45
+ allowEmptyValue?: boolean;
46
+ style?: string;
47
+ explode?: boolean;
48
+ allowReserved?: boolean;
49
+ schema?: SchemaObject;
50
+ example?: unknown;
51
+ examples?: {
52
+ [media: string]: ExampleObject;
53
+ };
54
+ content?: {
55
+ [media: string]: MediaTypeObject;
56
+ };
57
+ };
58
+ type PropertiesObject = {
59
+ [name: string]: SchemaObject;
60
+ };
61
+ type SchemaListObject = Array< /* ReferenceObject | */SchemaObject>;
62
+ type SchemaPrimitiveType = 'null' | 'boolean' | 'number' | 'string' | 'integer';
63
+ type NonArraySchemaObjectType = SchemaPrimitiveType | 'object' | 'binary-response' | 'unknown';
64
+ type SchemaObjectType = NonArraySchemaObjectType | 'array';
65
+ interface SchemaObject {
66
+ type?: SchemaObjectType | Array<SchemaObjectType>;
67
+ title?: string;
68
+ description?: string;
69
+ format?: string;
70
+ default?: any;
71
+ multipleOf?: number;
72
+ maximum?: number;
73
+ exclusiveMaximum?: boolean | number;
74
+ minimum?: number;
75
+ exclusiveMinimum?: boolean | number;
76
+ maxLength?: number;
77
+ minLength?: number;
78
+ pattern?: string;
79
+ additionalProperties?: boolean | /* ReferenceObject | */SchemaObject;
80
+ maxItems?: number;
81
+ minItems?: number;
82
+ uniqueItems?: boolean;
83
+ maxProperties?: number;
84
+ minProperties?: number;
85
+ required?: string[];
86
+ enum?: unknown[];
87
+ const?: any;
88
+ properties?: PropertiesObject;
89
+ allOf?: SchemaListObject;
90
+ anyOf?: SchemaListObject;
91
+ oneOf?: SchemaListObject;
92
+ items?: SchemaObject;
93
+ nullable?: boolean;
94
+ discriminator?: DiscriminatorObject;
95
+ readOnly?: boolean;
96
+ writeOnly?: boolean;
97
+ example?: any;
98
+ examples?: any[];
99
+ deprecated?: boolean;
100
+ $ref?: string;
101
+ [key: `x-${string}`]: unknown;
102
+ [key: `_x-${string}`]: unknown;
103
+ }
104
+ type DiscriminatorObject = {
105
+ propertyName: string;
106
+ mapping?: {
107
+ [value: string]: string;
108
+ };
109
+ };
110
+ type ExampleObject = {
111
+ summary?: string;
112
+ description?: string;
113
+ value?: any;
114
+ externalValue?: string;
115
+ };
116
+ type EncodingsObject = {
117
+ [media: string]: EncodingObject;
118
+ };
119
+ interface MediaTypeObject {
120
+ schema?: SchemaObject;
121
+ nullable?: boolean;
122
+ example?: any;
123
+ examples?: {
124
+ [media: string]: ExampleObject;
125
+ };
126
+ encoding?: EncodingsObject;
127
+ }
128
+ type EncodingObject = {
129
+ contentType?: string;
130
+ headers?: HeadersObject;
131
+ style?: string;
132
+ explode?: boolean;
133
+ allowReserved?: boolean;
134
+ };
135
+ type ResponseContentObject = {
136
+ [media: string]: MediaTypeObject;
137
+ };
138
+ type HeadersObject = {
139
+ [key: string]: HeaderObject;
140
+ };
141
+ type SupportedLanguage = 'node' | 'typescript' | 'python' | 'go' | 'java' | 'kotlin' | 'ruby' | 'terraform' | 'cli' | 'php' | 'csharp' | 'http';
142
+ interface Config {
143
+ docs: {
144
+ title?: string | undefined;
145
+ favicon?: string | undefined;
146
+ logo_icon?: string | undefined;
147
+ search?: {
148
+ algolia?: {
149
+ app_id: string;
150
+ index_name: string;
151
+ search_key: string;
152
+ } | undefined;
153
+ } | undefined;
154
+ description?: string | undefined;
155
+ languages?: ('node' | 'typescript' | 'python' | 'java' | 'kotlin' | 'go' | 'ruby' | 'terraform' | 'http')[] | undefined;
156
+ snippets?: {
157
+ exclude_languages?: string[] | undefined;
158
+ } | undefined;
159
+ show_security?: boolean | undefined;
160
+ show_readme?: boolean | undefined;
161
+ base_path?: string | undefined;
162
+ navigation?: {
163
+ menubar?: {
164
+ title: string;
165
+ icon?: 'Github' | 'BookOpen' | 'Code' | 'Folder' | 'Mail' | 'NPM' | 'Search' | 'Package' | 'User' | 'Pen' | 'Pencil' | 'Wrench' | 'Bot' | 'FileText' | 'Lightbulb' | 'Sparkles' | 'Menu' | 'History' | undefined;
166
+ variant?: 'ghost-muted' | 'outline-muted' | 'outline' | undefined;
167
+ href?: string | undefined;
168
+ page?: string | undefined;
169
+ }[] | undefined;
170
+ sidebar?: {
171
+ title: string;
172
+ icon?: 'Github' | 'BookOpen' | 'Code' | 'Folder' | 'Mail' | 'NPM' | 'Search' | 'Package' | 'User' | 'Pen' | 'Pencil' | 'Wrench' | 'Bot' | 'FileText' | 'Lightbulb' | 'Sparkles' | 'Menu' | 'History' | undefined;
173
+ variant?: 'ghost-muted' | 'outline-muted' | 'outline' | undefined;
174
+ href?: string | undefined;
175
+ page?: string | undefined;
176
+ }[] | undefined;
177
+ } | undefined;
178
+ pages?: Record<string, string> | undefined;
179
+ resources?: {
180
+ title: string;
181
+ children: string[];
182
+ }[] | undefined;
183
+ } | undefined;
184
+ }
185
+ type DiagnosticLevel = 'fatal' | 'error' | 'warning' | 'note';
186
+ type AutoFixOp = SimplifyDeep<{
187
+ file: 'config';
188
+ } & Operation>;
189
+ type DiagnosticExport = {
190
+ code: string;
191
+ level: DiagnosticLevel;
192
+ ignored: boolean;
193
+ message: string;
194
+ messageHtml: string;
195
+ more: string | {
196
+ raw: string;
197
+ } | null;
198
+ link: string;
199
+ endpoint: string | null;
200
+ language: SupportedLanguage | null;
201
+ customer: string | null;
202
+ location: string | null;
203
+ stainlessPath: string | null;
204
+ oasRef: string | null;
205
+ configRef: string | null;
206
+ autoFixPlan: AutoFixOp[] | null;
207
+ trace?: string;
208
+ };
209
+ type HttpDeclaration = HttpDeclFunction | HttpDeclProperty | HttpDeclTypeAlias | HttpDeclReference | ErrorDecl;
210
+ type HttpDeclFunction = BaseDeclaration & {
211
+ kind: 'HttpDeclFunction';
212
+ ident: HttpIdentifier;
213
+ qualified?: string;
214
+ returns?: HttpType;
215
+ paramsChildren?: Record<string, ID[]>;
216
+ bodyParamsChildren?: Record<string, ID[]>;
217
+ responseChildren?: ID[];
218
+ };
219
+ type HttpDeclProperty = BaseDeclaration & {
220
+ kind: 'HttpDeclProperty';
221
+ key: string;
222
+ docstring?: string;
223
+ title?: string;
224
+ location?: string;
225
+ type: HttpType;
226
+ constraints?: Constraints;
227
+ default?: any;
228
+ optional?: boolean;
229
+ nullable?: boolean;
230
+ declare?: boolean;
231
+ schemaType?: SchemaType;
232
+ modelPath?: string;
233
+ childrenParentSchema?: SchemaType;
234
+ children?: ID[];
235
+ };
236
+ type HttpDeclTypeAlias = BaseDeclaration & {
237
+ kind: 'HttpDeclTypeAlias';
238
+ docstring?: string;
239
+ ident: HttpIdentifier;
240
+ typeParameters?: HttpTypeParameter[];
241
+ type: HttpType;
242
+ children?: ID[];
243
+ };
244
+ type HttpTypeParameter = {
245
+ kind: 'HttpTypeParameter';
246
+ name: HttpIdentifier;
247
+ constraint?: HttpType;
248
+ default?: HttpType;
249
+ };
250
+ type HttpIdentifier = string;
251
+ type HttpDeclReference = BaseDeclaration & {
252
+ kind: 'HttpDeclReference';
253
+ docstring?: string;
254
+ type: HttpType;
255
+ children?: ID[];
256
+ };
257
+ type HttpType = HttpTypeReference | HttpTypeObject | HttpTypeArray | HttpTypeString | HttpTypeNumber | HttpTypeBoolean | HttpTypeNull | HttpTypeUndefined | HttpTypeBinary | HttpTypeUnknown | HttpTypeLiteral | HttpTypeUnion | HttpTypeIntersection;
258
+ type HttpTypeReference = BaseType & {
259
+ kind: 'HttpTypeReference';
260
+ ident: HttpIdentifier;
261
+ typeParameters?: HttpType[];
262
+ $ref?: ID;
263
+ };
264
+ type HttpTypeObject = BaseType & {
265
+ kind: 'HttpTypeObject';
266
+ members: {
267
+ ident: HttpIdentifier;
268
+ optional?: boolean;
269
+ }[];
270
+ };
271
+ type HttpTypeArray = BaseType & {
272
+ kind: 'HttpTypeArray';
273
+ elementType: HttpType;
274
+ };
275
+ type HttpTypeUnion = BaseType & {
276
+ kind: 'HttpTypeUnion';
277
+ types: HttpType[];
278
+ };
279
+ type HttpTypeIntersection = BaseType & {
280
+ kind: 'HttpTypeIntersection';
281
+ types: HttpType[];
282
+ };
283
+ type HttpTypeLiteral = BaseType & {
284
+ kind: 'HttpTypeLiteral';
285
+ literal: string | boolean | number;
286
+ };
287
+ type HttpTypeString = BaseType & {
288
+ kind: 'HttpTypeString';
289
+ };
290
+ type HttpTypeNumber = BaseType & {
291
+ kind: 'HttpTypeNumber';
292
+ };
293
+ type HttpTypeBoolean = BaseType & {
294
+ kind: 'HttpTypeBoolean';
295
+ };
296
+ type HttpTypeNull = BaseType & {
297
+ kind: 'HttpTypeNull';
298
+ };
299
+ type HttpTypeUndefined = BaseType & {
300
+ kind: 'HttpTypeUndefined';
301
+ };
302
+ type HttpTypeBinary = BaseType & {
303
+ kind: 'HttpTypeBinary';
304
+ contentType: string[];
305
+ };
306
+ type HttpTypeUnknown = BaseType & {
307
+ kind: 'HttpTypeUnknown';
308
+ };
309
+ type HttpAST_HttpDeclFunction = HttpDeclFunction;
310
+ type HttpAST_HttpDeclProperty = HttpDeclProperty;
311
+ type HttpAST_HttpDeclReference = HttpDeclReference;
312
+ type HttpAST_HttpDeclTypeAlias = HttpDeclTypeAlias;
313
+ type HttpAST_HttpDeclaration = HttpDeclaration;
314
+ type HttpAST_HttpIdentifier = HttpIdentifier;
315
+ type HttpAST_HttpType = HttpType;
316
+ type HttpAST_HttpTypeArray = HttpTypeArray;
317
+ type HttpAST_HttpTypeBinary = HttpTypeBinary;
318
+ type HttpAST_HttpTypeBoolean = HttpTypeBoolean;
319
+ type HttpAST_HttpTypeIntersection = HttpTypeIntersection;
320
+ type HttpAST_HttpTypeLiteral = HttpTypeLiteral;
321
+ type HttpAST_HttpTypeNull = HttpTypeNull;
322
+ type HttpAST_HttpTypeNumber = HttpTypeNumber;
323
+ type HttpAST_HttpTypeObject = HttpTypeObject;
324
+ type HttpAST_HttpTypeParameter = HttpTypeParameter;
325
+ type HttpAST_HttpTypeReference = HttpTypeReference;
326
+ type HttpAST_HttpTypeString = HttpTypeString;
327
+ type HttpAST_HttpTypeUndefined = HttpTypeUndefined;
328
+ type HttpAST_HttpTypeUnion = HttpTypeUnion;
329
+ type HttpAST_HttpTypeUnknown = HttpTypeUnknown;
330
+ declare namespace HttpAST {
331
+ export type { HttpAST_HttpDeclFunction as HttpDeclFunction, HttpAST_HttpDeclProperty as HttpDeclProperty, HttpAST_HttpDeclReference as HttpDeclReference, HttpAST_HttpDeclTypeAlias as HttpDeclTypeAlias, HttpAST_HttpDeclaration as HttpDeclaration, HttpAST_HttpIdentifier as HttpIdentifier, HttpAST_HttpType as HttpType, HttpAST_HttpTypeArray as HttpTypeArray, HttpAST_HttpTypeBinary as HttpTypeBinary, HttpAST_HttpTypeBoolean as HttpTypeBoolean, HttpAST_HttpTypeIntersection as HttpTypeIntersection, HttpAST_HttpTypeLiteral as HttpTypeLiteral, HttpAST_HttpTypeNull as HttpTypeNull, HttpAST_HttpTypeNumber as HttpTypeNumber, HttpAST_HttpTypeObject as HttpTypeObject, HttpAST_HttpTypeParameter as HttpTypeParameter, HttpAST_HttpTypeReference as HttpTypeReference, HttpAST_HttpTypeString as HttpTypeString, HttpAST_HttpTypeUndefined as HttpTypeUndefined, HttpAST_HttpTypeUnion as HttpTypeUnion, HttpAST_HttpTypeUnknown as HttpTypeUnknown };
332
+ }
333
+ type RubyDeclaration = RubyDeclFunction | RubyDeclClass | RubyDeclProperty | RubyDeclTypeAlias | RubyDeclReference | ErrorDecl;
334
+ type RubyDeclFunction = BaseDeclaration & {
335
+ kind: 'RubyDeclFunction';
336
+ ident: RubyIdentifier;
337
+ args: RubyFunctionArgument[];
338
+ qualified?: string;
339
+ returns?: RubyType;
340
+ paramsChildren?: ID[];
341
+ bodyParamsChildren?: Record<string, ID[]>;
342
+ responseChildren?: ID[];
343
+ };
344
+ type RubyFunctionArgument = {
345
+ kind: 'RubyFunctionArgument';
346
+ ident: RubyIdentifier;
347
+ optional: boolean;
348
+ type: RubyType;
349
+ };
350
+ type RubyDeclProperty = BaseDeclaration & {
351
+ kind: 'RubyDeclProperty';
352
+ ident: string;
353
+ docstring?: string;
354
+ title?: string;
355
+ location?: string;
356
+ type: RubyType;
357
+ constraints?: Constraints;
358
+ optional?: boolean;
359
+ schemaType?: SchemaType;
360
+ modelPath?: string;
361
+ childrenParentSchema?: SchemaType;
362
+ children?: ID[];
363
+ };
364
+ type RubyDeclClass = BaseDeclaration & {
365
+ kind: 'RubyDeclClass';
366
+ ident: string;
367
+ docstring?: string;
368
+ type: RubyType;
369
+ optional?: boolean;
370
+ children?: ID[];
371
+ };
372
+ type RubyDeclTypeAlias = BaseDeclaration & {
373
+ kind: 'RubyDeclTypeAlias';
374
+ docstring?: string;
375
+ ident: RubyIdentifier;
376
+ typeParameters?: RubyTypeParameter[];
377
+ type: RubyType;
378
+ children?: ID[];
379
+ };
380
+ type RubyTypeParameter = {
381
+ kind: 'RubyTypeParameter';
382
+ name: RubyIdentifier;
383
+ constraint?: RubyType;
384
+ default?: RubyType;
385
+ };
386
+ type RubyIdentifier = string;
387
+ type RubyDeclReference = BaseDeclaration & {
388
+ kind: 'RubyDeclReference';
389
+ docstring?: string;
390
+ type: RubyType;
391
+ children?: ID[];
392
+ };
393
+ type RubyType = RubyTypeReference | RubyTypeObject | RubyTypeArray | RubyTypeMap | RubyTypeString | RubyTypeInteger | RubyTypeFloat | RubyTypeBoolean | RubyTypeNull | RubyTypeBinary | RubyTypeUnknown | RubyTypeLiteral | RubyTypeUnion | RubyTypeIntersection | RubyTypeBuiltinClass;
394
+ type RubyTypeReference = BaseType & {
395
+ kind: 'RubyTypeReference';
396
+ ident: RubyIdentifier;
397
+ typeParameters?: RubyType[];
398
+ schemaType?: SchemaType;
399
+ $ref?: ID;
400
+ };
401
+ type RubyTypeObject = BaseType & {
402
+ kind: 'RubyTypeObject';
403
+ members: {
404
+ ident: RubyIdentifier;
405
+ optional?: boolean;
406
+ }[];
407
+ };
408
+ type RubyTypeMap = BaseType & {
409
+ kind: 'RubyTypeMap';
410
+ indexType: RubyType;
411
+ itemType: RubyType;
412
+ };
413
+ type RubyTypeArray = BaseType & {
414
+ kind: 'RubyTypeArray';
415
+ elementType: RubyType;
416
+ };
417
+ type RubyTypeUnion = BaseType & {
418
+ kind: 'RubyTypeUnion';
419
+ types: RubyType[];
420
+ };
421
+ type RubyTypeIntersection = BaseType & {
422
+ kind: 'RubyTypeIntersection';
423
+ types: RubyType[];
424
+ };
425
+ type RubyTypeLiteral = BaseType & {
426
+ kind: 'RubyTypeLiteral';
427
+ literal: string | boolean | number;
428
+ };
429
+ type RubyTypeBuiltinClass = BaseType & {
430
+ kind: 'RubyTypeBuiltinClass';
431
+ className: string;
432
+ };
433
+ type RubyTypeString = BaseType & {
434
+ kind: 'RubyTypeString';
435
+ };
436
+ type RubyTypeInteger = BaseType & {
437
+ kind: 'RubyTypeInteger';
438
+ };
439
+ type RubyTypeFloat = BaseType & {
440
+ kind: 'RubyTypeFloat';
441
+ };
442
+ type RubyTypeBoolean = BaseType & {
443
+ kind: 'RubyTypeBoolean';
444
+ };
445
+ type RubyTypeNull = BaseType & {
446
+ kind: 'RubyTypeNull';
447
+ };
448
+ type RubyTypeBinary = BaseType & {
449
+ kind: 'RubyTypeBinary';
450
+ contentType: string[];
451
+ };
452
+ type RubyTypeUnknown = BaseType & {
453
+ kind: 'RubyTypeUnknown';
454
+ };
455
+ type RubyAST_RubyDeclClass = RubyDeclClass;
456
+ type RubyAST_RubyDeclFunction = RubyDeclFunction;
457
+ type RubyAST_RubyDeclProperty = RubyDeclProperty;
458
+ type RubyAST_RubyDeclReference = RubyDeclReference;
459
+ type RubyAST_RubyDeclTypeAlias = RubyDeclTypeAlias;
460
+ type RubyAST_RubyDeclaration = RubyDeclaration;
461
+ type RubyAST_RubyFunctionArgument = RubyFunctionArgument;
462
+ type RubyAST_RubyIdentifier = RubyIdentifier;
463
+ type RubyAST_RubyType = RubyType;
464
+ type RubyAST_RubyTypeArray = RubyTypeArray;
465
+ type RubyAST_RubyTypeBinary = RubyTypeBinary;
466
+ type RubyAST_RubyTypeBoolean = RubyTypeBoolean;
467
+ type RubyAST_RubyTypeBuiltinClass = RubyTypeBuiltinClass;
468
+ type RubyAST_RubyTypeFloat = RubyTypeFloat;
469
+ type RubyAST_RubyTypeInteger = RubyTypeInteger;
470
+ type RubyAST_RubyTypeIntersection = RubyTypeIntersection;
471
+ type RubyAST_RubyTypeLiteral = RubyTypeLiteral;
472
+ type RubyAST_RubyTypeMap = RubyTypeMap;
473
+ type RubyAST_RubyTypeNull = RubyTypeNull;
474
+ type RubyAST_RubyTypeObject = RubyTypeObject;
475
+ type RubyAST_RubyTypeParameter = RubyTypeParameter;
476
+ type RubyAST_RubyTypeReference = RubyTypeReference;
477
+ type RubyAST_RubyTypeString = RubyTypeString;
478
+ type RubyAST_RubyTypeUnion = RubyTypeUnion;
479
+ type RubyAST_RubyTypeUnknown = RubyTypeUnknown;
480
+ declare namespace RubyAST {
481
+ export type { RubyAST_RubyDeclClass as RubyDeclClass, RubyAST_RubyDeclFunction as RubyDeclFunction, RubyAST_RubyDeclProperty as RubyDeclProperty, RubyAST_RubyDeclReference as RubyDeclReference, RubyAST_RubyDeclTypeAlias as RubyDeclTypeAlias, RubyAST_RubyDeclaration as RubyDeclaration, RubyAST_RubyFunctionArgument as RubyFunctionArgument, RubyAST_RubyIdentifier as RubyIdentifier, RubyAST_RubyType as RubyType, RubyAST_RubyTypeArray as RubyTypeArray, RubyAST_RubyTypeBinary as RubyTypeBinary, RubyAST_RubyTypeBoolean as RubyTypeBoolean, RubyAST_RubyTypeBuiltinClass as RubyTypeBuiltinClass, RubyAST_RubyTypeFloat as RubyTypeFloat, RubyAST_RubyTypeInteger as RubyTypeInteger, RubyAST_RubyTypeIntersection as RubyTypeIntersection, RubyAST_RubyTypeLiteral as RubyTypeLiteral, RubyAST_RubyTypeMap as RubyTypeMap, RubyAST_RubyTypeNull as RubyTypeNull, RubyAST_RubyTypeObject as RubyTypeObject, RubyAST_RubyTypeParameter as RubyTypeParameter, RubyAST_RubyTypeReference as RubyTypeReference, RubyAST_RubyTypeString as RubyTypeString, RubyAST_RubyTypeUnion as RubyTypeUnion, RubyAST_RubyTypeUnknown as RubyTypeUnknown };
482
+ }
483
+ type SDKSchemaReference = never;
484
+ type SDKSchemaType = never;
485
+ type SDKPropertySchemaReference<T = never> = never;
486
+ /**
487
+ * Base declaration types for CLI command AST
488
+ */
489
+ type CLIDeclaration = CLICommand | CLIFlag | CLISchemaProperty | CLIStdin | CLIFunction | ErrorDecl;
490
+ /**
491
+ * Represents a command in a CLI environment
492
+ */
493
+ type CLICommand = BaseDeclaration & {
494
+ kind: 'CLICommand';
495
+ invocation: string[];
496
+ name: string;
497
+ arguments?: CLIArgument[];
498
+ options?: CLIFlag[];
499
+ stdin?: CLIStdin;
500
+ background?: boolean;
501
+ subshell?: boolean;
502
+ workingDir?: string;
503
+ children?: ID[];
504
+ paramsChildren?: ID[];
505
+ responseChildren?: ID[];
506
+ ident: string;
507
+ qualified?: string;
508
+ docstring?: string;
509
+ parameters?: any[];
510
+ responseType?: HttpType;
511
+ };
512
+ /**
513
+ * Represents a command argument
514
+ */
515
+ type CLIArgument = {
516
+ kind: 'CLIArgument';
517
+ value: string;
518
+ quoted?: boolean;
519
+ docstring?: string;
520
+ quoteType?: 'single' | 'double' | 'backtick';
521
+ };
522
+ /**
523
+ * Represents a command line flag --foo
524
+ */
525
+ type CLIFlag = BaseDeclaration & {
526
+ kind: 'CLIFlag';
527
+ name?: string;
528
+ enabled?: boolean;
529
+ ident: string;
530
+ flag?: string | {
531
+ name: string;
532
+ };
533
+ title?: string;
534
+ docstring?: string;
535
+ optional?: boolean;
536
+ type?: HttpType;
537
+ constraints?: any;
538
+ schemaType?: string;
539
+ modelPath?: string;
540
+ childrenParentSchema?: any;
541
+ children?: ID[];
542
+ };
543
+ /**
544
+ * Represents a CLI property (for return values/response fields)
545
+ */
546
+ type CLISchemaProperty = BaseDeclaration & {
547
+ kind: 'CLISchemaProperty';
548
+ name: string;
549
+ ident: string;
550
+ type?: HttpType;
551
+ docstring?: string;
552
+ optional?: boolean;
553
+ constraints?: any;
554
+ schemaType?: string;
555
+ children?: ID[];
556
+ childrenParentSchema?: any;
557
+ };
558
+ /**
559
+ * Represents data piped in to stdin
560
+ */
561
+ type CLIStdin = BaseDeclaration & {
562
+ kind: 'CLIStdin';
563
+ text: string;
564
+ };
565
+ /**
566
+ * Represents a shell function
567
+ */
568
+ type CLIFunction = BaseDeclaration & {
569
+ kind: 'CLIFunction';
570
+ name: string;
571
+ body: CLICommand[];
572
+ parameters?: string[];
573
+ description?: string;
574
+ docstring?: string;
575
+ children?: ID[];
576
+ };
577
+ type CLIAST_CLIArgument = CLIArgument;
578
+ type CLIAST_CLICommand = CLICommand;
579
+ type CLIAST_CLIDeclaration = CLIDeclaration;
580
+ type CLIAST_CLIFlag = CLIFlag;
581
+ type CLIAST_CLIFunction = CLIFunction;
582
+ type CLIAST_CLISchemaProperty = CLISchemaProperty;
583
+ type CLIAST_CLIStdin = CLIStdin;
584
+ declare namespace CLIAST {
585
+ export type { CLIAST_CLIArgument as CLIArgument, CLIAST_CLICommand as CLICommand, CLIAST_CLIDeclaration as CLIDeclaration, CLIAST_CLIFlag as CLIFlag, CLIAST_CLIFunction as CLIFunction, CLIAST_CLISchemaProperty as CLISchemaProperty, CLIAST_CLIStdin as CLIStdin };
586
+ }
587
+ type CSharpDeclaration = CSharpDeclFunction | CSharpDeclType | CSharpDeclProperty | CSharpDeclConst | CSharpDeclReference | ErrorDecl;
588
+ type CSharpDeclFunction = BaseDeclaration & {
589
+ kind: 'CSharpDeclFunction';
590
+ ident: CSharpIdentifier;
591
+ qualified?: string;
592
+ docstring?: string;
593
+ async?: boolean;
594
+ parameters: CSharpFunctionParameter[];
595
+ returnType?: CSharpType;
596
+ paramsChildren?: ID[];
597
+ responseChildren?: ID[];
598
+ };
599
+ type CSharpFunctionParameter = {
600
+ kind: 'CSharpFunctionParameter';
601
+ ident: CSharpIdentifier;
602
+ typeAnnotation: CSharpType;
603
+ hasDefault: boolean;
604
+ };
605
+ type CSharpDeclType = BaseDeclaration & {
606
+ kind: 'CSharpDeclType';
607
+ docstring?: string;
608
+ ident: CSharpIdentifier;
609
+ type: CSharpType;
610
+ children?: ID[];
611
+ };
612
+ type CSharpIdentifier = string;
613
+ type CSharpDeclProperty = BaseDeclaration & {
614
+ kind: 'CSharpDeclProperty';
615
+ docstring?: string;
616
+ title?: string;
617
+ ident: CSharpIdentifier;
618
+ type: CSharpType;
619
+ optional?: boolean;
620
+ nullable?: boolean;
621
+ schemaType?: SchemaType;
622
+ modelPath?: string;
623
+ childrenParentSchema?: SchemaType;
624
+ children?: ID[];
625
+ };
626
+ type CSharpDeclConst = BaseDeclaration & {
627
+ kind: 'CSharpDeclConst';
628
+ docstring?: string;
629
+ ident: CSharpIdentifier;
630
+ type: CSharpType;
631
+ value: boolean | string | number;
632
+ };
633
+ type CSharpDeclReference = BaseDeclaration & {
634
+ kind: 'CSharpDeclReference';
635
+ docstring?: string;
636
+ type: CSharpType;
637
+ schemaType?: SchemaType;
638
+ children?: ID[];
639
+ };
640
+ type CSharpType = CSharpTypeReference | CSharpTypeClass | CSharpTypeUnion | CSharpTypeEnum | CSharpTypeBoolean | CSharpTypeFloat | CSharpTypeDouble | CSharpTypeInt | CSharpTypeLong | CSharpTypeString | CSharpTypeConstant;
641
+ type CSharpTypeReference = BaseType & {
642
+ kind: 'CSharpTypeReference';
643
+ typeName: CSharpIdentifier;
644
+ typeParameters?: CSharpType[];
645
+ nullable?: boolean;
646
+ $ref?: string;
647
+ };
648
+ type CSharpTypeClass = BaseType & {
649
+ kind: 'CSharpTypeClass';
650
+ };
651
+ type CSharpTypeUnion = BaseType & {
652
+ kind: 'CSharpTypeUnion';
653
+ };
654
+ type CSharpTypeEnum = BaseType & {
655
+ kind: 'CSharpTypeEnum';
656
+ };
657
+ type CSharpTypeBoolean = BaseType & {
658
+ kind: 'CSharpTypeBoolean';
659
+ };
660
+ type CSharpTypeFloat = BaseType & {
661
+ kind: 'CSharpTypeFloat';
662
+ };
663
+ type CSharpTypeDouble = BaseType & {
664
+ kind: 'CSharpTypeDouble';
665
+ };
666
+ type CSharpTypeInt = BaseType & {
667
+ kind: 'CSharpTypeInt';
668
+ };
669
+ type CSharpTypeLong = BaseType & {
670
+ kind: 'CSharpTypeLong';
671
+ };
672
+ type CSharpTypeString = BaseType & {
673
+ kind: 'CSharpTypeString';
674
+ };
675
+ type CSharpTypeConstant = BaseType & {
676
+ kind: 'CSharpTypeConstant';
677
+ value: string;
678
+ };
679
+ type CSharpAST_CSharpDeclConst = CSharpDeclConst;
680
+ type CSharpAST_CSharpDeclFunction = CSharpDeclFunction;
681
+ type CSharpAST_CSharpDeclProperty = CSharpDeclProperty;
682
+ type CSharpAST_CSharpDeclReference = CSharpDeclReference;
683
+ type CSharpAST_CSharpDeclType = CSharpDeclType;
684
+ type CSharpAST_CSharpDeclaration = CSharpDeclaration;
685
+ type CSharpAST_CSharpFunctionParameter = CSharpFunctionParameter;
686
+ type CSharpAST_CSharpIdentifier = CSharpIdentifier;
687
+ type CSharpAST_CSharpType = CSharpType;
688
+ type CSharpAST_CSharpTypeBoolean = CSharpTypeBoolean;
689
+ type CSharpAST_CSharpTypeClass = CSharpTypeClass;
690
+ type CSharpAST_CSharpTypeConstant = CSharpTypeConstant;
691
+ type CSharpAST_CSharpTypeDouble = CSharpTypeDouble;
692
+ type CSharpAST_CSharpTypeEnum = CSharpTypeEnum;
693
+ type CSharpAST_CSharpTypeFloat = CSharpTypeFloat;
694
+ type CSharpAST_CSharpTypeInt = CSharpTypeInt;
695
+ type CSharpAST_CSharpTypeLong = CSharpTypeLong;
696
+ type CSharpAST_CSharpTypeReference = CSharpTypeReference;
697
+ type CSharpAST_CSharpTypeString = CSharpTypeString;
698
+ type CSharpAST_CSharpTypeUnion = CSharpTypeUnion;
699
+ declare namespace CSharpAST {
700
+ export type { CSharpAST_CSharpDeclConst as CSharpDeclConst, CSharpAST_CSharpDeclFunction as CSharpDeclFunction, CSharpAST_CSharpDeclProperty as CSharpDeclProperty, CSharpAST_CSharpDeclReference as CSharpDeclReference, CSharpAST_CSharpDeclType as CSharpDeclType, CSharpAST_CSharpDeclaration as CSharpDeclaration, CSharpAST_CSharpFunctionParameter as CSharpFunctionParameter, CSharpAST_CSharpIdentifier as CSharpIdentifier, CSharpAST_CSharpType as CSharpType, CSharpAST_CSharpTypeBoolean as CSharpTypeBoolean, CSharpAST_CSharpTypeClass as CSharpTypeClass, CSharpAST_CSharpTypeConstant as CSharpTypeConstant, CSharpAST_CSharpTypeDouble as CSharpTypeDouble, CSharpAST_CSharpTypeEnum as CSharpTypeEnum, CSharpAST_CSharpTypeFloat as CSharpTypeFloat, CSharpAST_CSharpTypeInt as CSharpTypeInt, CSharpAST_CSharpTypeLong as CSharpTypeLong, CSharpAST_CSharpTypeReference as CSharpTypeReference, CSharpAST_CSharpTypeString as CSharpTypeString, CSharpAST_CSharpTypeUnion as CSharpTypeUnion };
701
+ }
702
+ type JavaDeclaration = JavaDeclFunction | JavaDeclType | JavaDeclProperty | JavaDeclConst | JavaDeclReference | ErrorDecl;
703
+ type JavaDeclFunction = BaseDeclaration & {
704
+ kind: 'JavaDeclFunction';
705
+ ident: JavaIdentifier;
706
+ qualified?: string;
707
+ docstring?: string;
708
+ async?: boolean;
709
+ parameters: JavaFunctionParameter[];
710
+ returnType?: JavaType;
711
+ paramsChildren?: ID[];
712
+ responseChildren?: ID[];
713
+ };
714
+ type JavaFunctionParameter = {
715
+ kind: 'JavaFunctionParameter';
716
+ ident: JavaIdentifier;
717
+ typeAnnotation: JavaType;
718
+ hasDefault: boolean;
719
+ };
720
+ type JavaDeclType = BaseDeclaration & {
721
+ kind: 'JavaDeclType';
722
+ docstring?: string;
723
+ ident: JavaIdentifier;
724
+ type: JavaType;
725
+ children?: ID[];
726
+ };
727
+ type JavaIdentifier = string;
728
+ type JavaDeclProperty = BaseDeclaration & {
729
+ kind: 'JavaDeclProperty';
730
+ docstring?: string;
731
+ title?: string;
732
+ ident: JavaIdentifier;
733
+ type: JavaType;
734
+ optional?: boolean;
735
+ schemaType?: SchemaType;
736
+ modelPath?: string;
737
+ childrenParentSchema?: SchemaType;
738
+ children?: ID[];
739
+ };
740
+ type JavaDeclConst = BaseDeclaration & {
741
+ kind: 'JavaDeclConst';
742
+ docstring?: string;
743
+ ident: JavaIdentifier;
744
+ type: JavaType;
745
+ value: boolean | string | number;
746
+ };
747
+ type JavaDeclReference = BaseDeclaration & {
748
+ kind: 'JavaDeclReference';
749
+ docstring?: string;
750
+ type: JavaType;
751
+ schemaType?: SchemaType;
752
+ children?: ID[];
753
+ };
754
+ type JavaType = JavaTypeReference | JavaTypeClass | JavaTypeUnion | JavaTypeEnum | JavaTypeVoid | JavaTypeBoolean | JavaTypeDouble | JavaTypeLong | JavaTypeString | JavaTypeConstant;
755
+ type JavaTypeReference = BaseType & {
756
+ kind: 'JavaTypeReference';
757
+ typeName: JavaIdentifier;
758
+ typeParameters?: JavaType[];
759
+ $ref?: string;
760
+ };
761
+ type JavaTypeClass = BaseType & {
762
+ kind: 'JavaTypeClass';
763
+ };
764
+ type JavaTypeUnion = BaseType & {
765
+ kind: 'JavaTypeUnion';
766
+ };
767
+ type JavaTypeEnum = BaseType & {
768
+ kind: 'JavaTypeEnum';
769
+ };
770
+ type JavaTypeVoid = BaseType & {
771
+ kind: 'JavaTypeVoid';
772
+ };
773
+ type JavaTypeBoolean = BaseType & {
774
+ kind: 'JavaTypeBoolean';
775
+ };
776
+ type JavaTypeDouble = BaseType & {
777
+ kind: 'JavaTypeDouble';
778
+ };
779
+ type JavaTypeLong = BaseType & {
780
+ kind: 'JavaTypeLong';
781
+ };
782
+ type JavaTypeString = BaseType & {
783
+ kind: 'JavaTypeString';
784
+ };
785
+ type JavaTypeConstant = BaseType & {
786
+ kind: 'JavaTypeConstant';
787
+ value: string;
788
+ };
789
+ type JavaAST_JavaDeclConst = JavaDeclConst;
790
+ type JavaAST_JavaDeclFunction = JavaDeclFunction;
791
+ type JavaAST_JavaDeclProperty = JavaDeclProperty;
792
+ type JavaAST_JavaDeclReference = JavaDeclReference;
793
+ type JavaAST_JavaDeclType = JavaDeclType;
794
+ type JavaAST_JavaDeclaration = JavaDeclaration;
795
+ type JavaAST_JavaFunctionParameter = JavaFunctionParameter;
796
+ type JavaAST_JavaIdentifier = JavaIdentifier;
797
+ type JavaAST_JavaType = JavaType;
798
+ type JavaAST_JavaTypeBoolean = JavaTypeBoolean;
799
+ type JavaAST_JavaTypeClass = JavaTypeClass;
800
+ type JavaAST_JavaTypeConstant = JavaTypeConstant;
801
+ type JavaAST_JavaTypeDouble = JavaTypeDouble;
802
+ type JavaAST_JavaTypeEnum = JavaTypeEnum;
803
+ type JavaAST_JavaTypeLong = JavaTypeLong;
804
+ type JavaAST_JavaTypeReference = JavaTypeReference;
805
+ type JavaAST_JavaTypeString = JavaTypeString;
806
+ type JavaAST_JavaTypeUnion = JavaTypeUnion;
807
+ type JavaAST_JavaTypeVoid = JavaTypeVoid;
808
+ declare namespace JavaAST {
809
+ export type { JavaAST_JavaDeclConst as JavaDeclConst, JavaAST_JavaDeclFunction as JavaDeclFunction, JavaAST_JavaDeclProperty as JavaDeclProperty, JavaAST_JavaDeclReference as JavaDeclReference, JavaAST_JavaDeclType as JavaDeclType, JavaAST_JavaDeclaration as JavaDeclaration, JavaAST_JavaFunctionParameter as JavaFunctionParameter, JavaAST_JavaIdentifier as JavaIdentifier, JavaAST_JavaType as JavaType, JavaAST_JavaTypeBoolean as JavaTypeBoolean, JavaAST_JavaTypeClass as JavaTypeClass, JavaAST_JavaTypeConstant as JavaTypeConstant, JavaAST_JavaTypeDouble as JavaTypeDouble, JavaAST_JavaTypeEnum as JavaTypeEnum, JavaAST_JavaTypeLong as JavaTypeLong, JavaAST_JavaTypeReference as JavaTypeReference, JavaAST_JavaTypeString as JavaTypeString, JavaAST_JavaTypeUnion as JavaTypeUnion, JavaAST_JavaTypeVoid as JavaTypeVoid };
810
+ }
811
+ type PhpIdentifier = string;
812
+ type PhpDeclaration = PhpDeclMethod | PhpDeclParam | PhpDeclClass | PhpDeclClassProperty | PhpDeclAssocArray | PhpDeclAssocArrayProperty | PhpDeclEnum | PhpDeclReference | ErrorDecl;
813
+ type PhpDeclMethod = BaseDeclaration & {
814
+ kind: 'PhpDeclMethod';
815
+ ident: PhpIdentifier;
816
+ parameters: PhpMethodParameter[];
817
+ returnType?: PhpType;
818
+ qualified?: string;
819
+ docstring?: string;
820
+ paramsChildren?: ID[];
821
+ responseChildren?: ID[];
822
+ };
823
+ type PhpMethodParameter = {
824
+ kind: 'PhpMethodParameter';
825
+ ident: PhpIdentifier;
826
+ typeAnnotation: PhpType;
827
+ optional: boolean;
828
+ hasDefault?: boolean;
829
+ };
830
+ type PhpDeclReference = BaseDeclaration & {
831
+ kind: 'PhpDeclReference';
832
+ docstring?: string;
833
+ type: PhpType;
834
+ scope?: 'class' | '@phpstan-type';
835
+ children?: ID[];
836
+ };
837
+ type PhpDeclParam = BaseDeclaration & {
838
+ kind: 'PhpDeclParam';
839
+ ident: PhpIdentifier;
840
+ type: PhpType;
841
+ optional: boolean;
842
+ isPositional: boolean;
843
+ default?: unknown;
844
+ oasRef?: string;
845
+ modelPath?: string;
846
+ docstring?: string;
847
+ deprecated?: string | boolean;
848
+ children?: ID[];
849
+ };
850
+ /** For PHPStan array definitions. */
851
+ type PhpDeclAssocArrayProperty = BaseDeclaration & {
852
+ kind: 'PhpDeclAssocArrayProperty';
853
+ ident: PhpIdentifier;
854
+ type: PhpType;
855
+ optional: boolean;
856
+ oasRef?: string;
857
+ modelPath?: string;
858
+ docstring?: string;
859
+ deprecated?: string | boolean;
860
+ children?: ID[];
861
+ };
862
+ type PhpDeclClassProperty = BaseDeclaration & {
863
+ kind: 'PhpDeclClassProperty';
864
+ ident: PhpIdentifier;
865
+ type: PhpType;
866
+ nullable: boolean;
867
+ docstring?: string;
868
+ default?: string;
869
+ deprecated?: string | boolean;
870
+ modelPath?: string;
871
+ children?: ID[];
872
+ };
873
+ type PhpDeclEnum = BaseDeclaration & {
874
+ kind: 'PhpDeclEnum';
875
+ ident: PhpIdentifier;
876
+ members: {
877
+ case: PhpIdentifier;
878
+ backingType?: 'string' | 'int';
879
+ value?: string | number;
880
+ }[];
881
+ };
882
+ type PhpDeclClass = BaseDeclaration & {
883
+ kind: 'PhpDeclClass';
884
+ ident: PhpIdentifier;
885
+ docstring?: string;
886
+ children?: ID[];
887
+ };
888
+ type PhpDeclAssocArray = BaseDeclaration & {
889
+ kind: 'PhpDeclAssocArray';
890
+ ident: PhpIdentifier;
891
+ type: PhpType;
892
+ children?: ID[];
893
+ };
894
+ type PhpType = SDKJSONPhpType<string>;
895
+ type SDKJSONPhpIdentifier<T extends Code = string> = T;
896
+ type SDKJSONPhpType<T extends Code = string> = PhpTypeReference<T> | PhpTypeMapArray<T> | PhpTypeListArray<T> | PhpTypeUnion<T> | PhpTypeLiteral | PhpTypeString | PhpTypeFloat | PhpTypeInt | PhpTypeBool | PhpTypeNull | PhpTypeMixed | PhpTypeDatetime | PhpTypeComplexBuiltin;
897
+ type PhpTypeReference<T extends Code = string> = BaseType & {
898
+ kind: 'PhpTypeReference';
899
+ typeName: SDKJSONPhpIdentifier<T>;
900
+ $ref?: ID | string;
901
+ typeParameters?: PhpType[];
902
+ };
903
+ type PhpTypeMapArray<T extends Code = string> = BaseType & {
904
+ kind: 'PhpTypeMapArray';
905
+ elementType: SDKJSONPhpType<T>;
906
+ };
907
+ type PhpTypeListArray<T extends Code = string> = BaseType & {
908
+ kind: 'PhpTypeListArray';
909
+ elementType: SDKJSONPhpType<T>;
910
+ };
911
+ type PhpTypeUnion<T extends Code = string> = BaseType & {
912
+ kind: 'PhpTypeUnion';
913
+ types: SDKJSONPhpType<T>[];
914
+ };
915
+ type PhpTypeLiteral = BaseType & {
916
+ kind: 'PhpTypeLiteral';
917
+ literal: string | boolean | number;
918
+ };
919
+ type PhpTypeString = BaseType & {
920
+ kind: 'PhpTypeString';
921
+ };
922
+ type PhpTypeFloat = BaseType & {
923
+ kind: 'PhpTypeFloat';
924
+ };
925
+ type PhpTypeInt = BaseType & {
926
+ kind: 'PhpTypeInt';
927
+ };
928
+ type PhpTypeBool = BaseType & {
929
+ kind: 'PhpTypeBool';
930
+ };
931
+ type PhpTypeNull = BaseType & {
932
+ kind: 'PhpTypeNull';
933
+ };
934
+ type PhpTypeMixed = BaseType & {
935
+ kind: 'PhpTypeMixed';
936
+ };
937
+ type PhpTypeDatetime = BaseType & {
938
+ kind: 'PhpTypeDatetime';
939
+ };
940
+ type PhpTypeComplexBuiltin = BaseType & {
941
+ kind: 'PhpTypeComplexBuiltin';
942
+ typeName: 'resource' | 'callable' | 'class-string' | 'array' | 'object';
943
+ };
944
+ type PythonDeclaration = PythonDeclFunction | PythonDeclClass | PythonDeclType | PythonDeclProperty | PythonDeclReference | ErrorDecl;
945
+ type PythonDeclFunction = BaseDeclaration & {
946
+ kind: 'PythonDeclFunction';
947
+ ident: PythonIdentifier;
948
+ qualified?: string;
949
+ docstring?: string;
950
+ async?: boolean;
951
+ generics?: PythonGenericParameter[];
952
+ parameters: PythonFunctionParameter[];
953
+ returns?: PythonType;
954
+ paramsChildren?: ID[];
955
+ responseChildren?: ID[];
956
+ };
957
+ type PythonFunctionParameter = {
958
+ kind: 'PythonFunctionParameter';
959
+ ident: PythonIdentifier;
960
+ type: PythonType;
961
+ optional?: boolean;
962
+ };
963
+ type PythonGenericParameter = {
964
+ kind: 'PythonTypeParameter';
965
+ name: string;
966
+ constraint?: PythonType;
967
+ };
968
+ type PythonDeclClass = BaseDeclaration & {
969
+ kind: 'PythonDeclClass';
970
+ docstring?: string;
971
+ ident: PythonIdentifier;
972
+ generics?: PythonGenericParameter[];
973
+ children?: ID[];
974
+ };
975
+ type PythonDeclType = BaseDeclaration & {
976
+ kind: 'PythonDeclType';
977
+ docstring?: string;
978
+ ident: PythonIdentifier;
979
+ generics?: PythonGenericParameter[];
980
+ type: PythonType;
981
+ childrenParentSchema?: SchemaType;
982
+ children?: ID[];
983
+ };
984
+ type PythonIdentifier = string;
985
+ type PythonLiteral = {
986
+ kind: 'PythonLiteral';
987
+ value: string | number | boolean;
988
+ };
989
+ type PythonDeclProperty = BaseDeclaration & {
990
+ kind: 'PythonDeclProperty';
991
+ docstring?: string;
992
+ title?: string;
993
+ ident: PythonIdentifier;
994
+ type: PythonType;
995
+ constraints?: Constraints;
996
+ optional?: boolean;
997
+ default?: any;
998
+ schemaType?: SchemaType;
999
+ modelPath?: string;
1000
+ childrenParentSchema?: SchemaType;
1001
+ children?: ID[];
1002
+ };
1003
+ type PythonDeclReference = BaseDeclaration & {
1004
+ kind: 'PythonDeclReference';
1005
+ docstring?: string;
1006
+ type: PythonType;
1007
+ children?: ID[];
1008
+ };
1009
+ type PythonType = PythonTypeReference | PythonTypeClass | PythonTypeArray | PythonTypeMap | PythonTypeString | PythonTypeFloat | PythonTypeInt | PythonTypeBool | PythonTypeAny | PythonTypeUnknown | PythonTypeLiteral;
1010
+ type PythonTypeReference = BaseType & {
1011
+ kind: 'PythonTypeReference';
1012
+ typeName: PythonIdentifier;
1013
+ typeParameters?: PythonType[];
1014
+ schemaType?: SchemaType;
1015
+ $ref?: string;
1016
+ };
1017
+ type PythonTypeClass = BaseType & {
1018
+ kind: 'PythonTypeClass';
1019
+ body: {
1020
+ ident: PythonIdentifier;
1021
+ type: PythonType;
1022
+ }[];
1023
+ };
1024
+ type PythonTypeArray = BaseType & {
1025
+ kind: 'PythonTypeArray';
1026
+ elementType: PythonType;
1027
+ };
1028
+ type PythonTypeMap = BaseType & {
1029
+ kind: 'PythonTypeMap';
1030
+ indexType: PythonType;
1031
+ itemType: PythonType;
1032
+ };
1033
+ type PythonTypeString = BaseType & {
1034
+ kind: 'PythonTypeString';
1035
+ };
1036
+ type PythonTypeFloat = BaseType & {
1037
+ kind: 'PythonTypeFloat';
1038
+ };
1039
+ type PythonTypeInt = BaseType & {
1040
+ kind: 'PythonTypeInt';
1041
+ };
1042
+ type PythonTypeBool = BaseType & {
1043
+ kind: 'PythonTypeBool';
1044
+ };
1045
+ type PythonTypeAny = BaseType & {
1046
+ kind: 'PythonTypeAny';
1047
+ };
1048
+ type PythonTypeUnknown = BaseType & {
1049
+ kind: 'PythonTypeUnknown';
1050
+ };
1051
+ type PythonTypeLiteral = BaseType & {
1052
+ kind: 'PythonTypeLiteral';
1053
+ literal: PythonLiteral;
1054
+ };
1055
+ type PythonAST_PythonDeclClass = PythonDeclClass;
1056
+ type PythonAST_PythonDeclFunction = PythonDeclFunction;
1057
+ type PythonAST_PythonDeclProperty = PythonDeclProperty;
1058
+ type PythonAST_PythonDeclReference = PythonDeclReference;
1059
+ type PythonAST_PythonDeclType = PythonDeclType;
1060
+ type PythonAST_PythonDeclaration = PythonDeclaration;
1061
+ type PythonAST_PythonFunctionParameter = PythonFunctionParameter;
1062
+ type PythonAST_PythonGenericParameter = PythonGenericParameter;
1063
+ type PythonAST_PythonIdentifier = PythonIdentifier;
1064
+ type PythonAST_PythonLiteral = PythonLiteral;
1065
+ type PythonAST_PythonType = PythonType;
1066
+ type PythonAST_PythonTypeAny = PythonTypeAny;
1067
+ type PythonAST_PythonTypeArray = PythonTypeArray;
1068
+ type PythonAST_PythonTypeBool = PythonTypeBool;
1069
+ type PythonAST_PythonTypeClass = PythonTypeClass;
1070
+ type PythonAST_PythonTypeFloat = PythonTypeFloat;
1071
+ type PythonAST_PythonTypeInt = PythonTypeInt;
1072
+ type PythonAST_PythonTypeLiteral = PythonTypeLiteral;
1073
+ type PythonAST_PythonTypeMap = PythonTypeMap;
1074
+ type PythonAST_PythonTypeReference = PythonTypeReference;
1075
+ type PythonAST_PythonTypeString = PythonTypeString;
1076
+ type PythonAST_PythonTypeUnknown = PythonTypeUnknown;
1077
+ declare namespace PythonAST {
1078
+ export type { PythonAST_PythonDeclClass as PythonDeclClass, PythonAST_PythonDeclFunction as PythonDeclFunction, PythonAST_PythonDeclProperty as PythonDeclProperty, PythonAST_PythonDeclReference as PythonDeclReference, PythonAST_PythonDeclType as PythonDeclType, PythonAST_PythonDeclaration as PythonDeclaration, PythonAST_PythonFunctionParameter as PythonFunctionParameter, PythonAST_PythonGenericParameter as PythonGenericParameter, PythonAST_PythonIdentifier as PythonIdentifier, PythonAST_PythonLiteral as PythonLiteral, PythonAST_PythonType as PythonType, PythonAST_PythonTypeAny as PythonTypeAny, PythonAST_PythonTypeArray as PythonTypeArray, PythonAST_PythonTypeBool as PythonTypeBool, PythonAST_PythonTypeClass as PythonTypeClass, PythonAST_PythonTypeFloat as PythonTypeFloat, PythonAST_PythonTypeInt as PythonTypeInt, PythonAST_PythonTypeLiteral as PythonTypeLiteral, PythonAST_PythonTypeMap as PythonTypeMap, PythonAST_PythonTypeReference as PythonTypeReference, PythonAST_PythonTypeString as PythonTypeString, PythonAST_PythonTypeUnknown as PythonTypeUnknown };
1079
+ }
1080
+ type PrimitiveNumberProps$1 = {
1081
+ oneof?: (number | bigint)[];
1082
+ default: number | bigint | null;
1083
+ minimum: number | bigint | null;
1084
+ maximum: number | bigint | null;
1085
+ };
1086
+ type Primitive$1 = {
1087
+ category: 'primitive';
1088
+ schemaRef?: SDKSchemaReference;
1089
+ } & ({
1090
+ type: 'Bool';
1091
+ default: boolean | null;
1092
+ } | ({
1093
+ type: 'Float64';
1094
+ } & PrimitiveNumberProps$1) | ({
1095
+ type: 'Int64';
1096
+ } & PrimitiveNumberProps$1) | ({
1097
+ type: 'Number';
1098
+ } & PrimitiveNumberProps$1) | {
1099
+ type: 'Time';
1100
+ default: string | null;
1101
+ } | {
1102
+ type: 'String';
1103
+ oneof?: string[];
1104
+ default: string | null;
1105
+ });
1106
+ type Dynamic$1 = {
1107
+ category: 'dynamic';
1108
+ type: 'Dynamic';
1109
+ schemaRef?: SDKSchemaReference;
1110
+ allowedSubtypes: Primitive$1['type'][];
1111
+ };
1112
+ type Unknown$1 = {
1113
+ category: 'unknown';
1114
+ type: 'unknown';
1115
+ schemaRef?: SDKSchemaReference;
1116
+ };
1117
+ type Collection$1 = {
1118
+ category: 'collection';
1119
+ type: 'List' | 'Map' | 'Set';
1120
+ elementType: AttributeType$1;
1121
+ schemaRef?: SDKSchemaReference;
1122
+ };
1123
+ type Nested$1 = {
1124
+ category: 'nested';
1125
+ type: 'ListNested' | 'MapNested' | 'SetNested' | 'SingleNested';
1126
+ attributes: TerraformAttribute[];
1127
+ schemaRef?: SDKSchemaReference;
1128
+ modelTypeName: string;
1129
+ validators: TerraformValidators;
1130
+ };
1131
+ type AttributeType$1 = Nested$1 | Collection$1 | Dynamic$1 | Primitive$1 | Unknown$1;
1132
+ /**
1133
+ * required: The value must be practitioner configured to an eventually known value (not null),
1134
+ * otherwise the framework will automatically raise an error diagnostic for the missing value.
1135
+ *
1136
+ * optional: The value may be practitioner configured to a known value or null.
1137
+ *
1138
+ * computed: The value will be set in provider logic and any practitioner configuration causes
1139
+ * the framework to automatically raise an error diagnostic for the unexpected configuration value.
1140
+ *
1141
+ * computed_optional: The value may be practitioner configured or the value may be set in
1142
+ * provider logic when the practitioner configuration is null.
1143
+ */
1144
+ type Configurability = 'required' | 'optional' | 'computed' | 'computed_optional';
1145
+ type TerraformSchemaType = 'resource' | 'provider' | 'datasource';
1146
+ type PathExpr$1 = Readonly<{
1147
+ path: string;
1148
+ container?: Collection$1['type'] | Nested$1['type'];
1149
+ }>;
1150
+ type PathExpression$1 = readonly PathExpr$1[];
1151
+ type TerraformAttribute = {
1152
+ name: string;
1153
+ description?: string;
1154
+ configurability: Configurability;
1155
+ configurabilityOverride: boolean;
1156
+ property?: SDKPropertySchemaReference;
1157
+ type: AttributeType$1;
1158
+ idProperty?: boolean;
1159
+ requiresReplace?: boolean;
1160
+ sensitive?: boolean;
1161
+ deprecated?: string | boolean;
1162
+ noRefresh?: boolean;
1163
+ isBodyRootParam?: boolean;
1164
+ syntheticType?: 'id' | 'find-by' | 'max-items' | 'items' | 'timeout';
1165
+ schemaType: TerraformSchemaType;
1166
+ pathExpr: PathExpression$1;
1167
+ };
1168
+ declare const TerraformPathValidations: readonly ['requiredTogether', 'atLeastOneOf', 'exactlyOneOf', 'conflicting'];
1169
+ type PathValidators = Record<(typeof TerraformPathValidations)[number], PathExpression$1[][]>;
1170
+ type TerraformValidators = {
1171
+ path: PathValidators;
1172
+ any: never[];
1173
+ all: never[];
1174
+ };
1175
+ type TerraformDeclaration = TerraformDeclServiceNode | TerraformDeclSource | TerraformDeclAttribute | ErrorDecl;
1176
+ type TerraformDeclServiceNode = BaseDeclaration & {
1177
+ kind: 'TerraformDeclServiceNode';
1178
+ resource?: ID;
1179
+ dataSource?: ID;
1180
+ listDataSource?: ID;
1181
+ };
1182
+ type TerraformDeclSource = BaseDeclaration & {
1183
+ kind: 'TerraformDeclSource';
1184
+ name: string;
1185
+ type: 'resource' | 'datasource-plural' | 'datasource-single';
1186
+ methodName: string;
1187
+ required: ID[];
1188
+ optional: ID[];
1189
+ computed: ID[];
1190
+ };
1191
+ type PrimitiveNumberProps = {
1192
+ oneof?: number[];
1193
+ default: number | null;
1194
+ minimum: number | null;
1195
+ maximum: number | null;
1196
+ };
1197
+ type Primitive = {
1198
+ category: 'primitive';
1199
+ } & ({
1200
+ type: 'Bool';
1201
+ default: boolean | null;
1202
+ } | ({
1203
+ type: 'Float64';
1204
+ } & PrimitiveNumberProps) | ({
1205
+ type: 'Int64';
1206
+ } & PrimitiveNumberProps) | ({
1207
+ type: 'Number';
1208
+ } & PrimitiveNumberProps) | {
1209
+ type: 'Time';
1210
+ default: string | null;
1211
+ } | {
1212
+ type: 'String';
1213
+ oneof?: string[];
1214
+ default: string | null;
1215
+ });
1216
+ type Dynamic = {
1217
+ category: 'dynamic';
1218
+ type: 'Dynamic';
1219
+ allowedSubtypes: Primitive['type'][];
1220
+ };
1221
+ type Unknown = {
1222
+ category: 'unknown';
1223
+ type: 'unknown';
1224
+ };
1225
+ type Collection = {
1226
+ category: 'collection';
1227
+ type: 'List' | 'Map' | 'Set';
1228
+ elementType: AttributeType;
1229
+ };
1230
+ type Nested = {
1231
+ category: 'nested';
1232
+ type: 'ListNested' | 'MapNested' | 'SetNested' | 'SingleNested';
1233
+ modelTypeName: string;
1234
+ validators: TerraformValidators;
1235
+ };
1236
+ type AttributeType = Nested | Collection | Dynamic | Primitive | Unknown;
1237
+ type TerraformDeclAttribute = BaseDeclaration & {
1238
+ kind: 'TerraformDeclAttribute';
1239
+ name: string;
1240
+ docstring?: string;
1241
+ type: AttributeType;
1242
+ children: ID[];
1243
+ configurability: Configurability;
1244
+ requiresReplace?: boolean;
1245
+ };
1246
+ type TSDeclaration = TSDeclFunction | TSDeclClass | TSDeclInterface | TSDeclProperty | TSDeclTypeAlias | TSDeclReference | ErrorDecl;
1247
+ type TSDeclFunction = BaseDeclaration & {
1248
+ kind: 'TSDeclFunction';
1249
+ ident: TSIdentifier;
1250
+ qualified?: string;
1251
+ signature: TSFunctionSignature;
1252
+ overloads?: TSFunctionSignature[];
1253
+ paramsChildren?: ID[];
1254
+ responseChildren?: ID[];
1255
+ };
1256
+ type TSDeclClass = BaseDeclaration & {
1257
+ kind: 'TSDeclClass';
1258
+ ident: TSIdentifier;
1259
+ docstring?: string;
1260
+ typeParameters?: TSTypeParameter[];
1261
+ superClass?: TSTypeReference;
1262
+ implements?: TSTypeReference[];
1263
+ children: ID[];
1264
+ };
1265
+ type TSDeclInterface = BaseDeclaration & {
1266
+ kind: 'TSDeclInterface';
1267
+ ident: TSIdentifier;
1268
+ docstring?: string;
1269
+ typeParameters?: TSTypeParameter[];
1270
+ extends?: TSType[];
1271
+ children: ID[];
1272
+ };
1273
+ type TSDeclProperty = BaseDeclaration & {
1274
+ kind: 'TSDeclProperty';
1275
+ key: string;
1276
+ docstring?: string;
1277
+ title?: string;
1278
+ type: TSType;
1279
+ constraints?: Constraints;
1280
+ optional?: boolean;
1281
+ declare?: boolean;
1282
+ default?: any;
1283
+ schemaType?: SchemaType;
1284
+ modelPath?: string;
1285
+ childrenParentSchema?: SchemaType;
1286
+ children?: ID[];
1287
+ };
1288
+ type TSDeclTypeAlias = BaseDeclaration & {
1289
+ kind: 'TSDeclTypeAlias';
1290
+ docstring?: string;
1291
+ ident: TSIdentifier;
1292
+ typeParameters?: TSTypeParameter[];
1293
+ type: TSType;
1294
+ children?: ID[];
1295
+ };
1296
+ type TSDeclReference = BaseDeclaration & {
1297
+ kind: 'TSDeclReference';
1298
+ docstring?: string;
1299
+ type: TSType;
1300
+ children?: ID[];
1301
+ };
1302
+ type TSFunctionSignature = {
1303
+ kind: 'TSFunctionSignature';
1304
+ parameters: TSFunctionParameter[];
1305
+ returns: TSType;
1306
+ async?: boolean;
1307
+ typeParameters?: TSTypeParameter[];
1308
+ docstring?: string;
1309
+ };
1310
+ type TSFunctionParameter = {
1311
+ kind: 'TSFunctionParameter';
1312
+ ident: TSIdentifier;
1313
+ type: TSType;
1314
+ optional?: boolean;
1315
+ };
1316
+ type TSTypeParameter = {
1317
+ kind: 'TSTypeParameter';
1318
+ name: TSIdentifier;
1319
+ constraint?: TSType;
1320
+ default?: TSType;
1321
+ };
1322
+ type TSPropertyKey = TSIdentifier;
1323
+ type TSIdentifier = string;
1324
+ type TSType = TSTypeReference | TSTypeObject | TSTypeArray | TSTypeString | TSTypeNumber | TSTypeBoolean | TSTypeNull | TSTypeUndefined | TSTypeVoid | TSTypeAny | TSTypeUnknown | TSTypeNever | TSTypeLiteral | TSTypeUnion | TSTypeIntersection | TSTypeInterface;
1325
+ type TSTypeReference = BaseType & {
1326
+ kind: 'TSTypeReference';
1327
+ ident: TSIdentifier;
1328
+ typeParameters?: TSType[];
1329
+ schemaType?: SchemaType;
1330
+ $ref?: ID;
1331
+ };
1332
+ type TSTypeObject = BaseType & {
1333
+ kind: 'TSTypeObject';
1334
+ members: {
1335
+ ident: TSIdentifier;
1336
+ type: TSType;
1337
+ optional?: boolean;
1338
+ }[];
1339
+ };
1340
+ type TSTypeArray = BaseType & {
1341
+ kind: 'TSTypeArray';
1342
+ elementType: TSType;
1343
+ };
1344
+ type TSTypeUnion = BaseType & {
1345
+ kind: 'TSTypeUnion';
1346
+ types: TSType[];
1347
+ };
1348
+ type TSTypeIntersection = BaseType & {
1349
+ kind: 'TSTypeIntersection';
1350
+ types: TSType[];
1351
+ };
1352
+ type TSTypeInterface = BaseType & {
1353
+ kind: 'TSTypeInterface';
1354
+ members: {
1355
+ ident: TSIdentifier;
1356
+ type: TSType;
1357
+ optional?: boolean;
1358
+ }[];
1359
+ extends?: TSTypeReference[];
1360
+ };
1361
+ type TSTypeLiteral = BaseType & {
1362
+ kind: 'TSTypeLiteral';
1363
+ literal: string | boolean | number;
1364
+ };
1365
+ type TSTypeString = BaseType & {
1366
+ kind: 'TSTypeString';
1367
+ };
1368
+ type TSTypeNumber = BaseType & {
1369
+ kind: 'TSTypeNumber';
1370
+ };
1371
+ type TSTypeBoolean = BaseType & {
1372
+ kind: 'TSTypeBoolean';
1373
+ };
1374
+ type TSTypeNull = BaseType & {
1375
+ kind: 'TSTypeNull';
1376
+ };
1377
+ type TSTypeUndefined = BaseType & {
1378
+ kind: 'TSTypeUndefined';
1379
+ };
1380
+ type TSTypeVoid = BaseType & {
1381
+ kind: 'TSTypeVoid';
1382
+ };
1383
+ type TSTypeAny = BaseType & {
1384
+ kind: 'TSTypeAny';
1385
+ };
1386
+ type TSTypeUnknown = BaseType & {
1387
+ kind: 'TSTypeUnknown';
1388
+ };
1389
+ type TSTypeNever = BaseType & {
1390
+ kind: 'TSTypeNever';
1391
+ };
1392
+ type TSAST_TSDeclClass = TSDeclClass;
1393
+ type TSAST_TSDeclFunction = TSDeclFunction;
1394
+ type TSAST_TSDeclInterface = TSDeclInterface;
1395
+ type TSAST_TSDeclProperty = TSDeclProperty;
1396
+ type TSAST_TSDeclReference = TSDeclReference;
1397
+ type TSAST_TSDeclTypeAlias = TSDeclTypeAlias;
1398
+ type TSAST_TSDeclaration = TSDeclaration;
1399
+ type TSAST_TSFunctionParameter = TSFunctionParameter;
1400
+ type TSAST_TSFunctionSignature = TSFunctionSignature;
1401
+ type TSAST_TSIdentifier = TSIdentifier;
1402
+ type TSAST_TSPropertyKey = TSPropertyKey;
1403
+ type TSAST_TSType = TSType;
1404
+ type TSAST_TSTypeAny = TSTypeAny;
1405
+ type TSAST_TSTypeArray = TSTypeArray;
1406
+ type TSAST_TSTypeBoolean = TSTypeBoolean;
1407
+ type TSAST_TSTypeInterface = TSTypeInterface;
1408
+ type TSAST_TSTypeIntersection = TSTypeIntersection;
1409
+ type TSAST_TSTypeLiteral = TSTypeLiteral;
1410
+ type TSAST_TSTypeNever = TSTypeNever;
1411
+ type TSAST_TSTypeNull = TSTypeNull;
1412
+ type TSAST_TSTypeNumber = TSTypeNumber;
1413
+ type TSAST_TSTypeObject = TSTypeObject;
1414
+ type TSAST_TSTypeParameter = TSTypeParameter;
1415
+ type TSAST_TSTypeReference = TSTypeReference;
1416
+ type TSAST_TSTypeString = TSTypeString;
1417
+ type TSAST_TSTypeUndefined = TSTypeUndefined;
1418
+ type TSAST_TSTypeUnion = TSTypeUnion;
1419
+ type TSAST_TSTypeUnknown = TSTypeUnknown;
1420
+ type TSAST_TSTypeVoid = TSTypeVoid;
1421
+ declare namespace TSAST {
1422
+ export type { TSAST_TSDeclClass as TSDeclClass, TSAST_TSDeclFunction as TSDeclFunction, TSAST_TSDeclInterface as TSDeclInterface, TSAST_TSDeclProperty as TSDeclProperty, TSAST_TSDeclReference as TSDeclReference, TSAST_TSDeclTypeAlias as TSDeclTypeAlias, TSAST_TSDeclaration as TSDeclaration, TSAST_TSFunctionParameter as TSFunctionParameter, TSAST_TSFunctionSignature as TSFunctionSignature, TSAST_TSIdentifier as TSIdentifier, TSAST_TSPropertyKey as TSPropertyKey, TSAST_TSType as TSType, TSAST_TSTypeAny as TSTypeAny, TSAST_TSTypeArray as TSTypeArray, TSAST_TSTypeBoolean as TSTypeBoolean, TSAST_TSTypeInterface as TSTypeInterface, TSAST_TSTypeIntersection as TSTypeIntersection, TSAST_TSTypeLiteral as TSTypeLiteral, TSAST_TSTypeNever as TSTypeNever, TSAST_TSTypeNull as TSTypeNull, TSAST_TSTypeNumber as TSTypeNumber, TSAST_TSTypeObject as TSTypeObject, TSAST_TSTypeParameter as TSTypeParameter, TSAST_TSTypeReference as TSTypeReference, TSAST_TSTypeString as TSTypeString, TSAST_TSTypeUndefined as TSTypeUndefined, TSAST_TSTypeUnion as TSTypeUnion, TSAST_TSTypeUnknown as TSTypeUnknown, TSAST_TSTypeVoid as TSTypeVoid };
1423
+ }
1424
+ type HasOASRef = {
1425
+ oasRef?: string;
1426
+ };
1427
+ type HasConfigRef = {
1428
+ configRef: string;
1429
+ };
1430
+ type HasStainlessPath = {
1431
+ stainlessPath: string;
1432
+ };
1433
+ type ID = string & {
1434
+ _isId: null;
1435
+ };
1436
+ type SchemaType = SDKSchemaType;
1437
+ declare const constraints: readonly ['minLength', 'maxLength', 'format', 'minimum', 'exclusiveMinimum', 'maximum', 'exclusiveMaximum', 'multipleOf'];
1438
+ type Constraints = Pick<SchemaObject, (typeof constraints)[number]>;
1439
+ declare const SpecLanguages: readonly ['cli', 'csharp', 'go', 'http', 'java', 'kotlin', 'node', 'php', 'python', 'ruby', 'terraform', 'typescript'];
1440
+ type SpecLanguage = (typeof SpecLanguages)[number];
1441
+ declare const SnippetLanguages: readonly ['cli.default', 'csharp.default', 'go.default', 'http.curl', 'http.powershell', 'java.default', 'kotlin.default', 'node.default', 'php.default', 'python.default', 'ruby.default', 'terraform.default', 'typescript.default'];
1442
+ type SnippetLanguage<lang extends SpecLanguage = SpecLanguage> = (typeof SnippetLanguages)[number] & `${lang}.${string}`;
1443
+ /**
1444
+ * A literal property path from Spec down to a given node
1445
+ */
1446
+ type Type = HttpType | TSType | PythonType | GoType | RubyType | JavaType | CSharpType;
1447
+ type Spec = {
1448
+ name: string;
1449
+ kind: 'spec';
1450
+ security_schemes: {
1451
+ type: 'http_bearer' | 'query' | 'header' | 'oauth2' | 'http_basic' | 'http_digest';
1452
+ description?: string;
1453
+ name: string;
1454
+ title: string;
1455
+ header: string | undefined;
1456
+ example: string | undefined;
1457
+ }[];
1458
+ resources: Record<string, Resource>;
1459
+ diagnostics: Diagnostics;
1460
+ docs?: Config['docs'];
1461
+ metadata: { [lang in SpecLanguage]?: {
1462
+ repo_url?: string;
1463
+ code_url?: string;
1464
+ package_title?: string;
1465
+ version?: string;
1466
+ install?: string;
1467
+ } };
1468
+ readme: { [lang in SpecLanguage]?: string };
1469
+ decls: { [lang in SpecLanguage]?: Record<string, LanguageDeclNodes[lang]> };
1470
+ snippets: { [key in SnippetLanguage]?: Record<string, string> };
1471
+ };
1472
+ type Resource = (HasConfigRef & HasStainlessPath) & {
1473
+ kind: 'resource';
1474
+ name: string;
1475
+ title: string;
1476
+ configRef: string;
1477
+ description?: string;
1478
+ models: Record<string, Model>;
1479
+ methods: Record<string, Method>;
1480
+ subresources?: Record<string, Resource>;
1481
+ } & { [key in SpecLanguage]?: {
1482
+ Name: string;
1483
+ QualifiedName: string;
1484
+ } };
1485
+ type Method = (HasStainlessPath & HasOASRef) & {
1486
+ kind: 'http_method';
1487
+ name: string;
1488
+ title: string;
1489
+ configRef: string | undefined;
1490
+ description?: string;
1491
+ summary?: string;
1492
+ httpMethod: string;
1493
+ endpoint: string;
1494
+ deprecated?: string | boolean;
1495
+ exampleResponses?: Record<string, ResponseContentObject>;
1496
+ security: Record<string, string[]>[] | undefined;
1497
+ 'x-api-token-group'?: string[];
1498
+ } & { [key in SpecLanguage]?: {
1499
+ Name: string;
1500
+ QualifiedName: string;
1501
+ } };
1502
+ type Model = (HasOASRef & HasConfigRef & HasStainlessPath) & {
1503
+ kind: 'model';
1504
+ name: string;
1505
+ title: string;
1506
+ isImplicit: boolean;
1507
+ stainlessPath: string;
1508
+ configRef: string;
1509
+ loading?: boolean;
1510
+ };
1511
+ type BaseDeclaration = {
1512
+ stainlessPath: string;
1513
+ oasRef?: string;
1514
+ configRef?: string;
1515
+ loading?: boolean;
1516
+ deprecated?: boolean | string;
1517
+ snippet?: string;
1518
+ };
1519
+ type BaseType = {
1520
+ oasRef?: string;
1521
+ };
1522
+ type Diagnostics = Record<string, DiagnosticExport[]>;
1523
+ type LanguageDeclNodes = {
1524
+ cli: CLIDeclaration;
1525
+ csharp: CSharpDeclaration;
1526
+ go: GoDeclaration;
1527
+ http: HttpDeclaration;
1528
+ java: JavaDeclaration;
1529
+ kotlin: JavaDeclaration;
1530
+ node: TSDeclaration;
1531
+ php: PhpDeclaration;
1532
+ python: PythonDeclaration;
1533
+ ruby: RubyDeclaration;
1534
+ terraform: TerraformDeclaration;
1535
+ typescript: TSDeclaration;
1536
+ };
1537
+ type ErrorDecl = BaseDeclaration & {
1538
+ kind: 'ErrorDecl';
1539
+ error: Error;
1540
+ message: string;
1541
+ };
1542
+ type DeclarationNode = LanguageDeclNodes[SpecLanguage];
1543
+ type GoDeclaration = GoDeclFunction | GoDeclType | GoDeclProperty | GoDeclTypeAlias | GoDeclConst | GoDeclReference | ErrorDecl;
1544
+ type GoDeclFunction = BaseDeclaration & {
1545
+ kind: 'GoDeclFunction';
1546
+ ident: GoIdentifier;
1547
+ qualified?: string;
1548
+ docstring?: string;
1549
+ async?: boolean;
1550
+ generics?: GoGenericParameter[];
1551
+ parameters: GoFunctionParameter[];
1552
+ returnType: GoType[];
1553
+ paramsChildren?: ID[];
1554
+ responseChildren?: ID[];
1555
+ };
1556
+ type GoFunctionParameter = {
1557
+ kind: 'GoFunctionParameter';
1558
+ optional?: boolean;
1559
+ ident: GoIdentifier;
1560
+ typeAnnotation: GoType;
1561
+ };
1562
+ type GoGenericParameter = {
1563
+ kind: 'GoTypeParameter';
1564
+ name: string;
1565
+ constraint?: GoType;
1566
+ };
1567
+ type GoDeclType = BaseDeclaration & {
1568
+ kind: 'GoDeclType';
1569
+ docstring?: string;
1570
+ ident: GoIdentifier;
1571
+ generics?: GoGenericParameter[];
1572
+ type: GoType;
1573
+ children?: ID[];
1574
+ };
1575
+ type GoDeclTypeAlias = BaseDeclaration & {
1576
+ kind: 'GoDeclTypeAlias';
1577
+ docstring?: string;
1578
+ ident: GoIdentifier;
1579
+ type: GoType;
1580
+ children?: ID[];
1581
+ };
1582
+ type GoDeclConst = BaseDeclaration & {
1583
+ kind: 'GoDeclConst';
1584
+ docstring?: string;
1585
+ ident: GoIdentifier;
1586
+ type: GoType;
1587
+ value: boolean | string | number;
1588
+ children?: ID[];
1589
+ };
1590
+ type GoIdentifier = string;
1591
+ type GoDeclProperty = BaseDeclaration & {
1592
+ kind: 'GoDeclProperty';
1593
+ docstring?: string;
1594
+ title?: string;
1595
+ ident: GoIdentifier;
1596
+ type: GoType;
1597
+ constraints?: Constraints;
1598
+ optional?: boolean;
1599
+ default?: any;
1600
+ schemaType?: SchemaType;
1601
+ modelPath?: string;
1602
+ childrenParentSchema?: SchemaType;
1603
+ children?: ID[];
1604
+ };
1605
+ type GoDeclReference = BaseDeclaration & {
1606
+ kind: 'GoDeclReference';
1607
+ docstring?: string;
1608
+ type: GoType;
1609
+ children?: ID[];
1610
+ };
1611
+ type GoType = GoTypeReference | GoTypeInterface | GoTypeStruct | GoTypeArray | GoTypeMap | GoTypeString | GoTypeFloat | GoTypeInt | GoTypeBool | GoTypeAny | GoTypeUnknown | GoTypeError | GoTypePointer;
1612
+ type GoTypeReference = BaseType & {
1613
+ kind: 'GoTypeReference';
1614
+ typeName: GoIdentifier;
1615
+ typeParameters?: GoType[];
1616
+ schemaType?: SchemaType;
1617
+ $ref?: string;
1618
+ };
1619
+ type GoTypeStruct = BaseType & {
1620
+ kind: 'GoTypeStruct';
1621
+ };
1622
+ type GoTypeInterface = BaseType & {
1623
+ kind: 'GoTypeInterface';
1624
+ docstring?: string;
1625
+ typeName?: GoIdentifier;
1626
+ generics?: GoGenericParameter[];
1627
+ extends?: GoTypeReference[];
1628
+ };
1629
+ type GoTypeArray = BaseType & {
1630
+ kind: 'GoTypeArray';
1631
+ elementType: GoType;
1632
+ };
1633
+ type GoTypeMap = BaseType & {
1634
+ kind: 'GoTypeMap';
1635
+ indexType: GoType;
1636
+ itemType: GoType;
1637
+ };
1638
+ type GoTypeString = BaseType & {
1639
+ kind: 'GoTypeString';
1640
+ };
1641
+ type GoTypeFloat = BaseType & {
1642
+ kind: 'GoTypeFloat';
1643
+ };
1644
+ type GoTypeInt = BaseType & {
1645
+ kind: 'GoTypeInt';
1646
+ };
1647
+ type GoTypeBool = BaseType & {
1648
+ kind: 'GoTypeBool';
1649
+ };
1650
+ type GoTypeAny = BaseType & {
1651
+ kind: 'GoTypeAny';
1652
+ };
1653
+ type GoTypeUnknown = BaseType & {
1654
+ kind: 'GoTypeUnknown';
1655
+ };
1656
+ type GoTypeError = BaseType & {
1657
+ kind: 'GoTypeError';
1658
+ };
1659
+ type GoTypePointer = BaseType & {
1660
+ kind: 'GoTypePointer';
1661
+ inner: GoType;
1662
+ };
1663
+ type GoAST_GoDeclConst = GoDeclConst;
1664
+ type GoAST_GoDeclFunction = GoDeclFunction;
1665
+ type GoAST_GoDeclProperty = GoDeclProperty;
1666
+ type GoAST_GoDeclReference = GoDeclReference;
1667
+ type GoAST_GoDeclType = GoDeclType;
1668
+ type GoAST_GoDeclTypeAlias = GoDeclTypeAlias;
1669
+ type GoAST_GoDeclaration = GoDeclaration;
1670
+ type GoAST_GoFunctionParameter = GoFunctionParameter;
1671
+ type GoAST_GoGenericParameter = GoGenericParameter;
1672
+ type GoAST_GoIdentifier = GoIdentifier;
1673
+ type GoAST_GoType = GoType;
1674
+ type GoAST_GoTypeAny = GoTypeAny;
1675
+ type GoAST_GoTypeArray = GoTypeArray;
1676
+ type GoAST_GoTypeBool = GoTypeBool;
1677
+ type GoAST_GoTypeError = GoTypeError;
1678
+ type GoAST_GoTypeFloat = GoTypeFloat;
1679
+ type GoAST_GoTypeInt = GoTypeInt;
1680
+ type GoAST_GoTypeInterface = GoTypeInterface;
1681
+ type GoAST_GoTypeMap = GoTypeMap;
1682
+ type GoAST_GoTypePointer = GoTypePointer;
1683
+ type GoAST_GoTypeReference = GoTypeReference;
1684
+ type GoAST_GoTypeString = GoTypeString;
1685
+ type GoAST_GoTypeStruct = GoTypeStruct;
1686
+ type GoAST_GoTypeUnknown = GoTypeUnknown;
1687
+ declare namespace GoAST {
1688
+ export type { GoAST_GoDeclConst as GoDeclConst, GoAST_GoDeclFunction as GoDeclFunction, GoAST_GoDeclProperty as GoDeclProperty, GoAST_GoDeclReference as GoDeclReference, GoAST_GoDeclType as GoDeclType, GoAST_GoDeclTypeAlias as GoDeclTypeAlias, GoAST_GoDeclaration as GoDeclaration, GoAST_GoFunctionParameter as GoFunctionParameter, GoAST_GoGenericParameter as GoGenericParameter, GoAST_GoIdentifier as GoIdentifier, GoAST_GoType as GoType, GoAST_GoTypeAny as GoTypeAny, GoAST_GoTypeArray as GoTypeArray, GoAST_GoTypeBool as GoTypeBool, GoAST_GoTypeError as GoTypeError, GoAST_GoTypeFloat as GoTypeFloat, GoAST_GoTypeInt as GoTypeInt, GoAST_GoTypeInterface as GoTypeInterface, GoAST_GoTypeMap as GoTypeMap, GoAST_GoTypePointer as GoTypePointer, GoAST_GoTypeReference as GoTypeReference, GoAST_GoTypeString as GoTypeString, GoAST_GoTypeStruct as GoTypeStruct, GoAST_GoTypeUnknown as GoTypeUnknown };
1689
+ }
1690
+ //#endregion
1691
+ export { TSAST as _, HttpAST as a, LanguageDeclNodes as c, PythonAST as d, Resource as f, SpecLanguage as g, Spec as h, GoAST as i, Method as l, SnippetLanguage as m, CSharpAST as n, ID as o, RubyAST as p, DeclarationNode as r, JavaAST as s, CLIAST as t, Model as u, Type as v };