@stainless-api/docs-ui 0.1.0-beta.73 → 0.1.0-beta.75

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 (124) hide show
  1. package/dist/{chunk-BN_g-Awi.js → chunk-BYypO7fO.js} +3 -3
  2. package/dist/components/MaskedInput.d.ts +3 -3
  3. package/dist/components/MaskedInput.js +1 -1
  4. package/dist/components/breadcrumbs.d.ts +24 -1
  5. package/dist/components/breadcrumbs.js +62 -7
  6. package/dist/components/icons.d.ts +18 -13
  7. package/dist/components/icons.js +940 -2
  8. package/dist/components/index.d.ts +16 -14
  9. package/dist/components/index.js +72 -18
  10. package/dist/components/method.d.ts +58 -1
  11. package/dist/components/method.js +95 -8
  12. package/dist/components/overview.d.ts +38 -1
  13. package/dist/components/overview.js +137 -9
  14. package/dist/components/primitives.d.ts +104 -1
  15. package/dist/components/primitives.js +250 -6
  16. package/dist/components/properties.d.ts +53 -1
  17. package/dist/components/properties.js +138 -7
  18. package/dist/components/sdk-sidebar.d.ts +14 -1
  19. package/dist/components/sdk-sidebar.js +50 -8
  20. package/dist/components/sdk.d.ts +121 -1
  21. package/dist/components/sdk.js +405 -8
  22. package/dist/components/snippets.d.ts +70 -13
  23. package/dist/components/snippets.js +182 -7
  24. package/dist/components/stl-sidebar.d.ts +57 -1
  25. package/dist/components/stl-sidebar.js +105 -3
  26. package/dist/contexts/component-generics.d.ts +29 -1
  27. package/dist/contexts/component-generics.js +31 -1
  28. package/dist/contexts/component-types.d.ts +4 -15
  29. package/dist/contexts/component.d.ts +7 -17
  30. package/dist/contexts/component.js +22 -28
  31. package/dist/contexts/docs.d.ts +61 -1
  32. package/dist/contexts/docs.js +89 -1
  33. package/dist/contexts/index.d.ts +13 -14
  34. package/dist/contexts/index.js +44 -6
  35. package/dist/contexts/markdown.d.ts +21 -1
  36. package/dist/contexts/markdown.js +47 -2
  37. package/dist/contexts/navigation.d.ts +28 -1
  38. package/dist/contexts/navigation.js +22 -1
  39. package/dist/contexts/use-components.d.ts +1 -13
  40. package/dist/contexts/use-components.js +6 -2
  41. package/dist/{index-HDt5wRiR.d.ts → index-Cl6Gny0o.d.ts} +37 -2
  42. package/dist/index.d.ts +4 -14
  43. package/dist/index.js +7 -30
  44. package/dist/languages/cli.d.ts +38 -14
  45. package/dist/languages/cli.js +166 -20
  46. package/dist/languages/csharp.d.ts +42 -14
  47. package/dist/languages/csharp.js +283 -8
  48. package/dist/languages/go.d.ts +40 -14
  49. package/dist/languages/go.js +303 -8
  50. package/dist/languages/http.d.ts +46 -14
  51. package/dist/languages/http.js +390 -19
  52. package/dist/languages/index.d.ts +51 -14
  53. package/dist/languages/index.js +32 -28
  54. package/dist/languages/java.d.ts +43 -14
  55. package/dist/languages/java.js +403 -8
  56. package/dist/languages/php.d.ts +40 -0
  57. package/dist/languages/php.js +313 -0
  58. package/dist/languages/python.d.ts +40 -14
  59. package/dist/languages/python.js +269 -8
  60. package/dist/languages/ruby.d.ts +40 -14
  61. package/dist/languages/ruby.js +387 -8
  62. package/dist/languages/terraform.d.ts +48 -14
  63. package/dist/languages/terraform.js +243 -8
  64. package/dist/languages/typescript.d.ts +40 -14
  65. package/dist/languages/typescript.js +449 -8
  66. package/dist/markdown/index.d.ts +1 -2
  67. package/dist/markdown/index.js +1 -28
  68. package/dist/markdown/printer.d.ts +2 -2
  69. package/dist/markdown/printer.js +6 -30
  70. package/dist/markdown/utils.d.ts +3 -3
  71. package/dist/routing.d.ts +61 -2
  72. package/dist/routing.js +205 -2
  73. package/dist/spec.d.ts +2 -2
  74. package/dist/spec.js +2 -2
  75. package/dist/style.js +176 -1
  76. package/dist/use-strict-context-L0c8JKg4.js +16 -0
  77. package/dist/utils.d.ts +1 -1
  78. package/dist/utils.js +53 -2
  79. package/package.json +3 -3
  80. package/dist/breadcrumbs-Dei_5sHd.d.ts +0 -25
  81. package/dist/breadcrumbs-oUp-6oJK.js +0 -63
  82. package/dist/cli-BX9ofVCR.js +0 -166
  83. package/dist/component-Dl5ZEHxB.js +0 -23
  84. package/dist/component-generics-C9ALAcZI.d.ts +0 -30
  85. package/dist/component-generics-POFirVVb.js +0 -45
  86. package/dist/components-DQPlXEwE.js +0 -72
  87. package/dist/contexts-_NNW5yqC.js +0 -44
  88. package/dist/csharp-sn5CJu9t.js +0 -283
  89. package/dist/docs-YgoQ3bzY.js +0 -81
  90. package/dist/docs-x-kfjRMc.d.ts +0 -66
  91. package/dist/go-BoaAVmP0.js +0 -303
  92. package/dist/http-Ccj1dOvE.js +0 -389
  93. package/dist/icons-BYKn5X8E.js +0 -885
  94. package/dist/index-OCM-LZIo.d.ts +0 -428
  95. package/dist/java-BiLRuLuD.js +0 -403
  96. package/dist/languages-COjc0Nwx.js +0 -30
  97. package/dist/markdown-BszOPZhh.d.ts +0 -22
  98. package/dist/markdown-Cq3XEhrR.js +0 -49
  99. package/dist/method-DjzVBzZe.js +0 -96
  100. package/dist/method-KkWyhvKa.d.ts +0 -59
  101. package/dist/navigation-BZjwfN2P.d.ts +0 -29
  102. package/dist/navigation-aoYZ_tl4.js +0 -24
  103. package/dist/overview-BNmMeDUE.d.ts +0 -39
  104. package/dist/overview-Clq5psZe.js +0 -138
  105. package/dist/primitives-B8OnSXRP.d.ts +0 -105
  106. package/dist/primitives-BBUs_flm.js +0 -250
  107. package/dist/properties-BhlRtWo4.d.ts +0 -54
  108. package/dist/properties-DQU0NBzb.js +0 -138
  109. package/dist/python-nqOBH7GS.js +0 -269
  110. package/dist/routing-GvhEMw6E.js +0 -205
  111. package/dist/routing-qJMPICGo.d.ts +0 -61
  112. package/dist/ruby-BBc8HdIt.js +0 -387
  113. package/dist/sdk-C8C6IRQp.d.ts +0 -122
  114. package/dist/sdk-DzCHhEoX.js +0 -405
  115. package/dist/sdk-sidebar-CkjSLggl.js +0 -50
  116. package/dist/sdk-sidebar-lgNmf-ns.d.ts +0 -15
  117. package/dist/snippets-CLpNVNlA.js +0 -181
  118. package/dist/stl-sidebar-8jF9cdnn.d.ts +0 -58
  119. package/dist/stl-sidebar-DC5UOJiT.js +0 -106
  120. package/dist/style-DJIYkFhO.js +0 -178
  121. package/dist/terraform-DVx2ea2h.js +0 -243
  122. package/dist/typescript-Cmk-jBBw.js +0 -449
  123. package/dist/use-components-BUz3GbO4.js +0 -7
  124. package/dist/utils-D6zJxUZ9.js +0 -54
@@ -1,387 +0,0 @@
1
- import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
- import { i as useDeclaration, m as useSpec, s as useLanguage } from "./docs-YgoQ3bzY.js";
3
- import { n as useLanguageComponents } from "./contexts-_NNW5yqC.js";
4
- import { t as useComponents } from "./use-components-BUz3GbO4.js";
5
- import { t as style_default } from "./style-DJIYkFhO.js";
6
- import * as React$1 from "react";
7
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
-
9
- //#region src/languages/ruby.tsx
10
- var ruby_exports = /* @__PURE__ */ __exportAll({
11
- Declaration: () => Declaration,
12
- MethodSignature: () => MethodSignature,
13
- Property: () => Property,
14
- Type: () => Type,
15
- TypeName: () => TypeName
16
- });
17
- const ComplexTypes = {
18
- RubyTypeObject: "object",
19
- RubyTypeUnion: "union",
20
- RubyTypeIntersection: "intersection",
21
- RubyTypeArray: "array",
22
- RubyTypeMap: "hash"
23
- };
24
- const Keywords = {
25
- RubyTypeBinary: "FileInput",
26
- RubyTypeUnknown: "untyped",
27
- RubyTypeNull: "nil",
28
- RubyTypeInteger: "Integer",
29
- RubyTypeFloat: "Float",
30
- RubyTypeBoolean: "bool"
31
- };
32
- function TypeName({ type }) {
33
- const Lang = useLanguageComponents();
34
- return ComplexTypes[type.kind] ?? /* @__PURE__ */ jsx(Lang.Type, { type });
35
- }
36
- const VALID_IDENTIFIER = /^[_A-Za-z][_A-Za-z0-9]*$/;
37
- function TypePreview({ path }) {
38
- const spec = useSpec();
39
- const language = useLanguage();
40
- const decl = useDeclaration(path, false);
41
- const { Join } = useComponents();
42
- if (!(decl && "children" in decl && decl.children && decl.children.length > 0) || "type" in decl && decl["type"] && "kind" in decl["type"] && decl["type"]?.["kind"] === "RubyTypeUnion") return;
43
- const items = decl.children.map((prop, key) => {
44
- const p = spec?.decls?.[language]?.[prop];
45
- return /* @__PURE__ */ jsx("span", {
46
- className: style_default.TypePropertyName,
47
- children: /* @__PURE__ */ jsx("span", {
48
- className: style_default.TextIdentifier,
49
- children: p && "ident" in p ? p["ident"] : null
50
- })
51
- }, key);
52
- });
53
- return /* @__PURE__ */ jsxs("span", {
54
- className: style_default.TypePreview,
55
- "data-stldocs-type-preview": "properties",
56
- children: [
57
- /* @__PURE__ */ jsx("span", {
58
- className: style_default.TypeBrace,
59
- children: " {"
60
- }),
61
- /* @__PURE__ */ jsxs("span", {
62
- className: style_default.TypePreviewContent,
63
- children: [
64
- " ",
65
- /* @__PURE__ */ jsx(Join, {
66
- items,
67
- limit: 3,
68
- children: /* @__PURE__ */ jsx("span", {
69
- className: style_default.TextOperator,
70
- children: ", "
71
- })
72
- }),
73
- " "
74
- ]
75
- }),
76
- /* @__PURE__ */ jsx("span", {
77
- className: style_default.TypeBrace,
78
- children: "} "
79
- })
80
- ]
81
- });
82
- }
83
- function Type({ type }) {
84
- const Lang = useLanguageComponents();
85
- const { SDKReference, Join } = useComponents();
86
- switch (type.kind) {
87
- case "RubyTypeBinary":
88
- case "RubyTypeUnknown":
89
- case "RubyTypeNull":
90
- case "RubyTypeInteger":
91
- case "RubyTypeFloat":
92
- case "RubyTypeBoolean": return /* @__PURE__ */ jsx("span", {
93
- className: style_default.Type,
94
- children: /* @__PURE__ */ jsx("span", {
95
- className: style_default.TypeKeyword,
96
- children: Keywords[type.kind]
97
- })
98
- });
99
- case "RubyTypeString": return /* @__PURE__ */ jsx("span", {
100
- className: style_default.Type,
101
- children: /* @__PURE__ */ jsx("span", {
102
- className: style_default.TypeString,
103
- children: "String"
104
- })
105
- });
106
- case "RubyTypeLiteral":
107
- switch (typeof type.literal) {
108
- case "string": return /* @__PURE__ */ jsx("span", {
109
- className: style_default.Type,
110
- children: /* @__PURE__ */ jsxs("span", {
111
- className: style_default.LiteralString,
112
- children: [":", type.literal.match(VALID_IDENTIFIER) ? type.literal : JSON.stringify(type.literal)]
113
- })
114
- });
115
- case "number": return /* @__PURE__ */ jsx("span", {
116
- className: style_default.Type,
117
- children: /* @__PURE__ */ jsx("span", {
118
- className: style_default.LiteralNumeric,
119
- children: JSON.stringify(type.literal)
120
- })
121
- });
122
- case "boolean": return /* @__PURE__ */ jsx("span", {
123
- className: style_default.Type,
124
- children: /* @__PURE__ */ jsx("span", {
125
- className: style_default.LiteralBoolean,
126
- children: JSON.stringify(type.literal)
127
- })
128
- });
129
- }
130
- break;
131
- case "RubyTypeArray": return /* @__PURE__ */ jsxs("span", {
132
- className: style_default.Type,
133
- children: [
134
- /* @__PURE__ */ jsx("span", {
135
- className: style_default.TypeArray,
136
- children: "Array["
137
- }),
138
- /* @__PURE__ */ jsx(Lang.Type, { type: type.elementType }),
139
- /* @__PURE__ */ jsx("span", {
140
- className: style_default.TypeArray,
141
- children: "]"
142
- })
143
- ]
144
- });
145
- case "RubyTypeMap": return /* @__PURE__ */ jsxs("span", {
146
- className: style_default.Type,
147
- children: [
148
- /* @__PURE__ */ jsx("span", {
149
- className: style_default.TypeArray,
150
- children: "Hash["
151
- }),
152
- type.indexType.kind === "RubyTypeString" ? /* @__PURE__ */ jsx("span", {
153
- className: style_default.TypeString,
154
- children: "Symbol"
155
- }) : /* @__PURE__ */ jsx(Lang.Type, { type: type.indexType }),
156
- ", ",
157
- /* @__PURE__ */ jsx(Lang.Type, { type: type.itemType }),
158
- /* @__PURE__ */ jsx("span", {
159
- className: style_default.TypeArray,
160
- children: "]"
161
- })
162
- ]
163
- });
164
- case "RubyTypeReference": {
165
- const name = type.ident.split(".").at(-1);
166
- if (!type.typeParameters || type.typeParameters.length === 0) return /* @__PURE__ */ jsxs("span", {
167
- className: style_default.Type,
168
- children: [/* @__PURE__ */ jsx(SDKReference, {
169
- stainlessPath: type.$ref,
170
- children: name
171
- }), /* @__PURE__ */ jsx(TypePreview, { path: type.$ref })]
172
- });
173
- const typeParameters = type.typeParameters.map((t, i) => /* @__PURE__ */ jsx(Lang.Type, { type: t }, i));
174
- return /* @__PURE__ */ jsxs("span", {
175
- className: style_default.Type,
176
- children: [
177
- /* @__PURE__ */ jsx(SDKReference, {
178
- stainlessPath: type.$ref,
179
- children: name
180
- }),
181
- /* @__PURE__ */ jsx("span", {
182
- className: style_default.TypeBracket,
183
- children: "<"
184
- }),
185
- /* @__PURE__ */ jsx(Join, {
186
- items: typeParameters,
187
- children: /* @__PURE__ */ jsx("span", {
188
- className: style_default.TextOperator,
189
- children: ", "
190
- })
191
- }),
192
- /* @__PURE__ */ jsx("span", {
193
- className: style_default.TypeBracket,
194
- children: ">"
195
- }),
196
- /* @__PURE__ */ jsx(TypePreview, { path: type.$ref })
197
- ]
198
- });
199
- }
200
- case "RubyTypeIntersection":
201
- case "RubyTypeUnion": {
202
- const items = type.types.map((t, key) => /* @__PURE__ */ jsx(Lang.Type, { type: t }, key));
203
- const delimiter = type.kind === "RubyTypeUnion" ? "|" : "&";
204
- return /* @__PURE__ */ jsx("span", {
205
- className: style_default.Type,
206
- children: /* @__PURE__ */ jsx("span", {
207
- className: style_default.TypePreview,
208
- "data-stldocs-type-preview": "union",
209
- children: /* @__PURE__ */ jsx("span", {
210
- className: style_default.TypePreviewContent,
211
- children: /* @__PURE__ */ jsx(Join, {
212
- items,
213
- limit: 3,
214
- children: /* @__PURE__ */ jsxs("span", {
215
- className: style_default.TextOperator,
216
- children: [
217
- " ",
218
- delimiter,
219
- " "
220
- ]
221
- })
222
- })
223
- })
224
- })
225
- });
226
- }
227
- case "RubyTypeBuiltinClass": return /* @__PURE__ */ jsx("span", {
228
- className: style_default.TypeReference,
229
- children: type.className
230
- });
231
- case "RubyTypeObject": {
232
- const items = type.members.map((prop, key) => /* @__PURE__ */ jsx("span", {
233
- className: style_default.TextIdentifier,
234
- children: prop.ident
235
- }, key));
236
- return /* @__PURE__ */ jsx("span", {
237
- className: style_default.Type,
238
- children: /* @__PURE__ */ jsx("span", {
239
- className: style_default.TypePreview,
240
- "data-stldocs-type-preview": "properties",
241
- children: /* @__PURE__ */ jsxs("span", {
242
- className: style_default.TypePreviewContent,
243
- children: [
244
- /* @__PURE__ */ jsx("span", {
245
- className: style_default.TypeBrace,
246
- children: "{ "
247
- }),
248
- /* @__PURE__ */ jsx(Join, {
249
- items,
250
- limit: 3,
251
- children: /* @__PURE__ */ jsx("span", {
252
- className: style_default.TextOperator,
253
- children: ", "
254
- })
255
- }),
256
- /* @__PURE__ */ jsx("span", {
257
- className: style_default.TypeBrace,
258
- children: "}"
259
- })
260
- ]
261
- })
262
- })
263
- });
264
- }
265
- }
266
- }
267
- function MethodSignature({ decl }) {
268
- const Lang = useLanguageComponents();
269
- const { Join } = useComponents();
270
- const params = decl.args.map((param, i) => /* @__PURE__ */ jsx(React$1.Fragment, { children: /* @__PURE__ */ jsx("span", {
271
- className: style_default.TextIdentifier,
272
- children: param.ident
273
- }) }, i));
274
- return /* @__PURE__ */ jsx("div", {
275
- className: style_default.MethodSignature,
276
- children: /* @__PURE__ */ jsxs("span", {
277
- className: style_default.SignatureTitle,
278
- children: [
279
- /* @__PURE__ */ jsx("span", {
280
- className: style_default.SignatureQualified,
281
- children: /* @__PURE__ */ jsx("span", {
282
- className: style_default.TextIdentifier,
283
- children: decl.qualified?.slice(0, -decl.ident.length)
284
- })
285
- }),
286
- /* @__PURE__ */ jsx("span", {
287
- className: style_default.SignatureName,
288
- children: /* @__PURE__ */ jsx("span", {
289
- className: style_default.TextIdentifier,
290
- children: decl.ident
291
- })
292
- }),
293
- /* @__PURE__ */ jsxs("span", {
294
- className: style_default.MethodSignature,
295
- children: [
296
- /* @__PURE__ */ jsx("span", {
297
- className: style_default.SignatureParen,
298
- children: "("
299
- }),
300
- /* @__PURE__ */ jsx("span", {
301
- className: style_default.SignatureParams,
302
- children: /* @__PURE__ */ jsx(Join, {
303
- items: params,
304
- children: /* @__PURE__ */ jsx("span", {
305
- className: style_default.TextOperator,
306
- children: ", "
307
- })
308
- })
309
- }),
310
- /* @__PURE__ */ jsx("span", {
311
- className: style_default.SignatureParen,
312
- children: ")"
313
- }),
314
- " -> ",
315
- decl.returns ? /* @__PURE__ */ jsx(Lang.Type, { type: decl.returns }) : "void"
316
- ]
317
- })
318
- ]
319
- })
320
- });
321
- }
322
- function Property({ decl, children }) {
323
- const Lang = useLanguageComponents();
324
- switch (decl.kind) {
325
- case "RubyDeclProperty": return children({
326
- name: decl.ident,
327
- typeName: /* @__PURE__ */ jsx(Lang.TypeName, { type: decl.type }),
328
- type: decl.type.kind in ComplexTypes && /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
329
- });
330
- case "RubyDeclTypeAlias": return children({
331
- name: decl.ident,
332
- typeName: "alias",
333
- type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
334
- });
335
- case "RubyDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
336
- case "RubyDeclClass": return children({
337
- name: decl.ident,
338
- typeName: "class"
339
- });
340
- }
341
- }
342
- function Declaration({ decl }) {
343
- const Lang = useLanguageComponents();
344
- if (!decl) return;
345
- switch (decl.kind) {
346
- case "RubyDeclProperty": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
347
- /* @__PURE__ */ jsx("span", {
348
- className: style_default.TypePropertyName,
349
- children: /* @__PURE__ */ jsx("span", {
350
- className: style_default.TextIdentifier,
351
- children: decl.ident
352
- })
353
- }),
354
- /* @__PURE__ */ jsx("span", {
355
- className: style_default.TextPunctuation,
356
- children: ": "
357
- }),
358
- /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
359
- ] });
360
- case "RubyDeclTypeAlias": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
361
- /* @__PURE__ */ jsx("span", {
362
- className: style_default.TextIdentifier,
363
- children: decl.ident
364
- }),
365
- /* @__PURE__ */ jsx("span", {
366
- className: style_default.TextOperator,
367
- children: " = "
368
- }),
369
- /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
370
- ] });
371
- case "RubyDeclClass": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
372
- /* @__PURE__ */ jsx("span", {
373
- className: style_default.TextKeyword,
374
- children: "class "
375
- }),
376
- /* @__PURE__ */ jsx("span", {
377
- className: style_default.TextIdentifier,
378
- children: decl.ident
379
- }),
380
- /* @__PURE__ */ jsx(TypePreview, { path: decl.stainlessPath })
381
- ] });
382
- case "RubyDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
383
- }
384
- }
385
-
386
- //#endregion
387
- export { TypeName as a, Type as i, MethodSignature as n, ruby_exports as o, Property as r, Declaration as t };
@@ -1,122 +0,0 @@
1
- import { c as ID, d as Method, f as Model, g as SnippetLanguage, o as HasStainlessPath, t as BaseDeclaration } from "./index-HDt5wRiR.js";
2
- import { t as DocsLanguage } from "./routing-qJMPICGo.js";
3
- import * as React$1 from "react";
4
- import * as react_jsx_runtime51 from "react/jsx-runtime";
5
-
6
- //#region src/components/sdk.d.ts
7
- type PropertyModelContextType = {
8
- modelPath?: string;
9
- propertyPath?: string;
10
- };
11
- declare const PropertyModelContext: React$1.Context<PropertyModelContextType>;
12
- declare function usePropertyModel(): PropertyModelContextType;
13
- type ReferenceNestingContextType = string[];
14
- declare const ReferenceNestingContext: React$1.Context<ReferenceNestingContextType>;
15
- declare function useReferenceNesting(): ReferenceNestingContextType;
16
- type SDKSnippetLanguagesType = Record<SnippetLanguage, {
17
- name: string;
18
- }>;
19
- declare const SDKSnippetLanguages: SDKSnippetLanguagesType;
20
- type TransformRequestSnippetFn = ({
21
- snippet,
22
- language
23
- }: {
24
- snippet: string;
25
- language: DocsLanguage;
26
- }) => string;
27
- type SDKChildrenProps = {
28
- paths: ID[];
29
- expand?: boolean;
30
- depth?: number;
31
- };
32
- declare function SDKChildren({
33
- paths,
34
- expand,
35
- depth
36
- }: SDKChildrenProps): react_jsx_runtime51.JSX.Element;
37
- type SDKDeclarationProps = {
38
- path: string;
39
- expand?: boolean;
40
- depth?: number;
41
- };
42
- declare function SDKDeclaration({
43
- path,
44
- expand,
45
- depth
46
- }: SDKDeclarationProps): react_jsx_runtime51.JSX.Element;
47
- type SDKConstraintsProps = {
48
- constraints?: Record<string, unknown>;
49
- };
50
- declare function SDKConstraints({
51
- constraints
52
- }: SDKConstraintsProps): react_jsx_runtime51.JSX.Element | undefined;
53
- type SDKIconProps = {
54
- language: SnippetLanguage;
55
- size?: number;
56
- };
57
- declare function SDKIcon({
58
- language
59
- }: SDKIconProps): react_jsx_runtime51.JSX.Element | null;
60
- type SDKRequestTitleProps = {
61
- snippetLanguage: SnippetLanguage;
62
- };
63
- declare function SDKRequestTitle({
64
- snippetLanguage
65
- }: SDKRequestTitleProps): react_jsx_runtime51.JSX.Element;
66
- type SDKExampleProps = {
67
- method: Partial<Method> & HasStainlessPath;
68
- transformRequestSnippet?: TransformRequestSnippetFn;
69
- };
70
- declare function SDKExample({
71
- method,
72
- transformRequestSnippet
73
- }: SDKExampleProps): react_jsx_runtime51.JSX.Element;
74
- type SDKMethodProps = {
75
- method: Method;
76
- transformRequestSnippet?: TransformRequestSnippetFn;
77
- };
78
- declare function SDKMethodHeader({
79
- method
80
- }: SDKMethodProps): react_jsx_runtime51.JSX.Element;
81
- declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
82
- declare function SDKMethodInfo({
83
- method
84
- }: SDKMethodProps): react_jsx_runtime51.JSX.Element;
85
- declare function SDKMethodNotImplemented({
86
- method
87
- }: SDKMethodProps): react_jsx_runtime51.JSX.Element;
88
- declare function SDKMethod({
89
- method,
90
- transformRequestSnippet
91
- }: SDKMethodProps): react_jsx_runtime51.JSX.Element;
92
- type SDKModelProps = {
93
- model: Model;
94
- };
95
- declare function SDKModel({
96
- model
97
- }: SDKModelProps): react_jsx_runtime51.JSX.Element | null;
98
- type SDKReferenceProps = {
99
- stainlessPath: string;
100
- children?: React$1.ReactNode;
101
- };
102
- declare function SDKReference({
103
- stainlessPath,
104
- children
105
- }: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime51.JSX.Element | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | null | undefined;
106
- type SDKLanguageBlockProps = {
107
- language: DocsLanguage;
108
- version: string;
109
- install: string;
110
- links: {
111
- repo: string;
112
- docs: string;
113
- };
114
- };
115
- declare function SDKLanguageBlock({
116
- language,
117
- version,
118
- install,
119
- links
120
- }: SDKLanguageBlockProps): react_jsx_runtime51.JSX.Element;
121
- //#endregion
122
- export { SDKSnippetLanguagesType as C, useStreamingResponse as D, useReferenceNesting as E, SDKSnippetLanguages as S, usePropertyModel as T, SDKModel as _, SDKChildren as a, SDKRequestTitle as b, SDKDeclaration as c, SDKLanguageBlock as d, SDKMethod as f, SDKMethodProps as g, SDKMethodNotImplemented as h, ReferenceNestingContextType as i, SDKExample as l, SDKMethodInfo as m, PropertyModelContextType as n, SDKConstraints as o, SDKMethodHeader as p, ReferenceNestingContext as r, SDKConstraintsProps as s, PropertyModelContext as t, SDKIcon as u, SDKModelProps as v, TransformRequestSnippetFn as w, SDKRequestTitleProps as x, SDKReference as y };