@stainless-api/docs-ui 0.1.0-beta.60 → 0.1.0-beta.62

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 (150) hide show
  1. package/dist/{breadcrumbs-seA1JsK4.d.ts → breadcrumbs-C14t6IEW.d.ts} +3 -3
  2. package/dist/{breadcrumbs-BagP1oN2.d.ts → breadcrumbs-IxKxOsE0.d.ts} +1 -1
  3. package/dist/{breadcrumbs-85Y-pybq.js → breadcrumbs-Q76uwfdC.js} +3 -3
  4. package/dist/{cli-CoLvH9jq.js → cli-lM9nDBQl.js} +5 -5
  5. package/dist/{component-CF9lLzZX.js → component-D93BctHn.js} +3 -3
  6. package/dist/{component-generics-DS5pysMb.d.ts → component-generics-Bd4PJtTE.d.ts} +2 -2
  7. package/dist/{component-generics-BblkOh-y.d.ts → component-generics-BmJeLTNJ.d.ts} +2 -2
  8. package/dist/components/MaskedInput.d.ts +3 -3
  9. package/dist/components/MaskedInput.js +1 -1
  10. package/dist/components/breadcrumbs.d.ts +1 -1
  11. package/dist/components/breadcrumbs.js +7 -7
  12. package/dist/components/icons.d.ts +12 -12
  13. package/dist/components/icons.js +1 -1
  14. package/dist/components/index.d.ts +11 -10
  15. package/dist/components/index.js +18 -17
  16. package/dist/components/method.d.ts +1 -1
  17. package/dist/components/method.js +8 -8
  18. package/dist/components/overview.d.ts +1 -1
  19. package/dist/components/overview.js +9 -9
  20. package/dist/components/primitives.d.ts +1 -1
  21. package/dist/components/primitives.js +6 -6
  22. package/dist/components/properties.d.ts +1 -1
  23. package/dist/components/properties.js +7 -7
  24. package/dist/components/sdk-sidebar.d.ts +2 -0
  25. package/dist/components/sdk-sidebar.js +10 -0
  26. package/dist/components/sdk.d.ts +2 -2
  27. package/dist/components/sdk.js +9 -9
  28. package/dist/components/snippets.d.ts +2 -2
  29. package/dist/components/snippets.js +7 -7
  30. package/dist/components/stl-sidebar.d.ts +2 -0
  31. package/dist/components/stl-sidebar.js +5 -0
  32. package/dist/{components-Bz5h0Y4x.js → components-DmiarGZ9.js} +15 -14
  33. package/dist/contexts/component-generics.d.ts +1 -1
  34. package/dist/contexts/component-generics.js +1 -1
  35. package/dist/contexts/component-types.d.ts +11 -10
  36. package/dist/contexts/component.d.ts +14 -13
  37. package/dist/contexts/component.js +27 -26
  38. package/dist/contexts/docs.d.ts +2 -2
  39. package/dist/contexts/docs.js +2 -2
  40. package/dist/contexts/index.d.ts +17 -16
  41. package/dist/contexts/index.js +6 -6
  42. package/dist/contexts/markdown.d.ts +1 -1
  43. package/dist/contexts/markdown.js +2 -2
  44. package/dist/contexts/navigation.d.ts +1 -1
  45. package/dist/contexts/navigation.js +1 -1
  46. package/dist/contexts/use-components.d.ts +10 -9
  47. package/dist/contexts/use-components.js +2 -2
  48. package/dist/{contexts-DZfPd182.js → contexts-DMjqoc7S.js} +6 -5
  49. package/dist/{csharp-BbNnLZWW.js → csharp-BD37FKH6.js} +4 -4
  50. package/dist/{docs-Bw-eLYjA.js → docs-6PYi1eEV.js} +5 -1
  51. package/dist/{docs-DdWB4Wsv.d.ts → docs-Dzjz2m8E.d.ts} +6 -5
  52. package/dist/{docs-DFS6wkGm.d.ts → docs-cYeV7nR2.d.ts} +5 -4
  53. package/dist/{go-OFa_5xje.js → go-v-i4WDzK.js} +4 -4
  54. package/dist/{http-olFAYLFq.js → http-CXjSoAxs.js} +14 -10
  55. package/dist/{index-BdrPd64A.d.ts → index-6vTGbgXx.d.ts} +35 -35
  56. package/dist/index-C619u0I1.d.ts +16 -0
  57. package/dist/index-CiZUWHkc.d.ts +16 -0
  58. package/dist/{index-Ct7H30x1.d.ts → index-DuHyTVVD.d.ts} +1 -1
  59. package/dist/{index-CLMudlDX.d.ts → index-wOU588Um.d.ts} +35 -35
  60. package/dist/index.d.ts +16 -15
  61. package/dist/index.js +29 -28
  62. package/dist/{java-Bw0o13Wk.js → java-A6j1NMJ7.js} +5 -5
  63. package/dist/languages/cli.d.ts +11 -10
  64. package/dist/languages/cli.js +19 -18
  65. package/dist/languages/csharp.d.ts +11 -10
  66. package/dist/languages/csharp.js +7 -7
  67. package/dist/languages/go.d.ts +11 -10
  68. package/dist/languages/go.js +7 -7
  69. package/dist/languages/http.d.ts +11 -10
  70. package/dist/languages/http.js +18 -17
  71. package/dist/languages/index.d.ts +11 -10
  72. package/dist/languages/index.js +26 -25
  73. package/dist/languages/java.d.ts +11 -10
  74. package/dist/languages/java.js +7 -7
  75. package/dist/languages/python.d.ts +11 -10
  76. package/dist/languages/python.js +7 -7
  77. package/dist/languages/ruby.d.ts +11 -10
  78. package/dist/languages/ruby.js +7 -7
  79. package/dist/languages/typescript.d.ts +11 -10
  80. package/dist/languages/typescript.js +7 -7
  81. package/dist/languages-C6gLi0rP.js +28 -0
  82. package/dist/markdown/index.d.ts +2 -2
  83. package/dist/markdown/index.js +28 -27
  84. package/dist/markdown/printer.d.ts +2 -2
  85. package/dist/markdown/printer.js +29 -28
  86. package/dist/markdown/utils.d.ts +3 -3
  87. package/dist/markdown/utils.js +2 -2
  88. package/dist/{markdown-ZzVcn4kq.js → markdown-DHjcD13O.js} +1 -1
  89. package/dist/{markdown-Dyn0NA2f.d.ts → markdown-DkGIT8Kx.d.ts} +2 -2
  90. package/dist/{markdown-DtbgEdDt.d.ts → markdown-DmrCjnT8.d.ts} +2 -2
  91. package/dist/{method-CxjUvijp.d.ts → method-BlxcOrX4.d.ts} +6 -6
  92. package/dist/{method-Dktsfckf.js → method-mosT_h9v.js} +3 -3
  93. package/dist/{navigation-Dk55c7au.d.ts → navigation-865UcdP7.d.ts} +1 -1
  94. package/dist/{navigation-DLQvobDt.d.ts → navigation-CRKiHkwL.d.ts} +3 -3
  95. package/dist/{overview-rRsC-Yi_.d.ts → overview-CAxvIfWH.d.ts} +7 -7
  96. package/dist/{overview-EkRigi6e.js → overview-CDIg0UWY.js} +8 -8
  97. package/dist/{overview-DVu-9kpm.d.ts → overview-J95gyke9.d.ts} +7 -7
  98. package/dist/{primitives-DR4XbZ2t.d.ts → primitives-8XXs7qDy.d.ts} +12 -12
  99. package/dist/{primitives-BVaiiY63.js → primitives-CRiUE1em.js} +6 -6
  100. package/dist/{primitives-DP-cTr1W.d.ts → primitives-KIlfflF9.d.ts} +12 -12
  101. package/dist/{properties-Ll927UYJ.d.ts → properties-0U_JmHNb.d.ts} +5 -5
  102. package/dist/{properties-BHvUHbcf.js → properties-4w8hy0hf.js} +3 -3
  103. package/dist/{properties-lx53LZPl.d.ts → properties-hAqMR9G-.d.ts} +5 -5
  104. package/dist/{python-D8NWX7Cb.js → python-CtQJaLw5.js} +4 -4
  105. package/dist/{routing-Fzn1XfX_.js → routing-D6595ovf.js} +10 -2
  106. package/dist/{routing-sjrF8U7O.d.ts → routing-DmNHIb6b.d.ts} +13 -3
  107. package/dist/routing-Wb-T6WOm.d.ts +64 -0
  108. package/dist/routing.d.ts +2 -2
  109. package/dist/routing.js +2 -2
  110. package/dist/{ruby-DOUaLhKJ.js → ruby-DJqEHgOw.js} +5 -5
  111. package/dist/{sdk-Dhu_gfzq.d.ts → sdk-CoiDgyHc.d.ts} +20 -16
  112. package/dist/{sdk-DrK2bq-v.js → sdk-DXS8pW0X.js} +48 -18
  113. package/dist/sdk-sidebar-BoRTRjDJ.d.ts +15 -0
  114. package/dist/sdk-sidebar-CF3tb0Yl.js +36 -0
  115. package/dist/sdk-sidebar-CYjEwB-m.d.ts +15 -0
  116. package/dist/{sdk-DdW_-RBy.d.ts → sdk-swLaCpqB.d.ts} +20 -16
  117. package/dist/{snippets-Bi0ZADmt.d.ts → snippets-BPK_oVIf.d.ts} +9 -9
  118. package/dist/{snippets-CocIZMn0.d.ts → snippets-CaCkByky.d.ts} +9 -9
  119. package/dist/{snippets-D4VhtZIC.js → snippets-bh8lfniq.js} +4 -4
  120. package/dist/spec.d.ts +2 -2
  121. package/dist/spec.js +5 -5
  122. package/dist/stl-sidebar-BQvhLYPO.d.ts +45 -0
  123. package/dist/stl-sidebar-BSx0HI2z.d.ts +45 -0
  124. package/dist/stl-sidebar-DdxZx2KK.js +82 -0
  125. package/dist/{style-TeAZuiHh.js → style-Bxr5gqcM.js} +4 -4
  126. package/dist/style.d.ts +4 -4
  127. package/dist/style.js +1 -1
  128. package/dist/styles/primitives.css +6 -0
  129. package/dist/styles/resets.css +1 -1
  130. package/dist/styles/sidebar.css +219 -49
  131. package/dist/styles.css +231 -50
  132. package/dist/{typescript-DDa446mB.js → typescript-DA7mcN1t.js} +5 -5
  133. package/dist/{use-components-Dbin0y07.js → use-components-BUz3GbO4.js} +1 -1
  134. package/dist/{utils-BoRmEFRn.js → utils-BpKHeVMe.js} +2 -2
  135. package/dist/utils.d.ts +1 -1
  136. package/dist/utils.js +1 -1
  137. package/package.json +3 -3
  138. package/dist/components/sidebar.d.ts +0 -2
  139. package/dist/components/sidebar.js +0 -9
  140. package/dist/index-DTl8aUkb.d.ts +0 -15
  141. package/dist/index-Dp5biTf5.d.ts +0 -15
  142. package/dist/languages-DW_T-Th6.js +0 -28
  143. package/dist/sidebar-BLGIKgRI.js +0 -85
  144. package/dist/sidebar-CUaX1IBW.d.ts +0 -36
  145. package/dist/sidebar-DukWbBrE.d.ts +0 -36
  146. /package/dist/{chunk-Du3t87LU.js → chunk-BN_g-Awi.js} +0 -0
  147. /package/dist/{component-generics-CmIGbBLq.js → component-generics-POFirVVb.js} +0 -0
  148. /package/dist/{icons-DMkAA03z.js → icons-BYKn5X8E.js} +0 -0
  149. /package/dist/{method-C850sHPB.d.ts → method-DzUn_qWF.d.ts} +0 -0
  150. /package/dist/{navigation-By1sQl6M.js → navigation-aoYZ_tl4.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as __exportAll } from "./chunk-Du3t87LU.js";
1
+ import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
2
 
3
3
  //#region src/routing.ts
4
4
  var routing_exports = /* @__PURE__ */ __exportAll({
@@ -7,6 +7,7 @@ var routing_exports = /* @__PURE__ */ __exportAll({
7
7
  SupportedLanguageSyntaxes: () => SupportedLanguageSyntaxes,
8
8
  expandToElement: () => expandToElement,
9
9
  findNavigationPath: () => findNavigationPath,
10
+ generateMissingRouteList: () => generateMissingRouteList,
10
11
  generateRoute: () => generateRoute,
11
12
  generateRouteList: () => generateRouteList,
12
13
  getLanguageSnippet: () => getLanguageSnippet,
@@ -164,6 +165,13 @@ function generateRouteList({ spec, languages, excludeLanguages = [] }) {
164
165
  slug: (language === "http" ? path : [language, ...path]).join("/")
165
166
  })));
166
167
  }
168
+ function generateMissingRouteList({ spec, basePath }) {
169
+ const entries = Array.from(walkTree(spec));
170
+ return (spec.docs?.languages ?? ["http"]).filter((lang) => Languages.includes(lang) && lang !== "terraform").flatMap((language) => entries.map(({ path, data: { stainlessPath } }) => ({
171
+ stainlessPath,
172
+ slug: `${basePath.endsWith("/") ? basePath.slice(0, -1) : basePath}/${language === "http" ? path.join("/") : [language, ...path].join("/")}`
173
+ })).filter((entry) => spec.decls?.[language]?.[entry.stainlessPath] === void 0));
174
+ }
167
175
  function findNavigationPath(items, target) {
168
176
  for (const item of Object.values(items)) {
169
177
  if (item.stainlessPath === target) return [item.stainlessPath];
@@ -194,4 +202,4 @@ function updateHistory(basePath, language, stainlessPath) {
194
202
  }
195
203
 
196
204
  //#endregion
197
- export { walkTree as _, findNavigationPath as a, getLanguageSnippet as c, parseRoute as d, parseStainlessPath as f, updateHistory as g, trimStainlessPath as h, expandToElement as i, getResource as l, scrollToPath as m, Languages as n, generateRoute as o, routing_exports as p, SupportedLanguageSyntaxes as r, generateRouteList as s, LanguageNames as t, isSupportedLanguage as u };
205
+ export { updateHistory as _, findNavigationPath as a, generateRouteList as c, isSupportedLanguage as d, parseRoute as f, trimStainlessPath as g, scrollToPath as h, expandToElement as i, getLanguageSnippet as l, routing_exports as m, Languages as n, generateMissingRouteList as o, parseStainlessPath as p, SupportedLanguageSyntaxes as r, generateRoute as s, LanguageNames as t, getResource as u, walkTree as v };
@@ -1,8 +1,8 @@
1
- import { f as Resource, h as Spec, l as Method, u as Model } from "./index-Ct7H30x1.js";
1
+ import { d as Model, g as Spec, p as Resource, u as Method } from "./index-DuHyTVVD.js";
2
2
 
3
3
  //#region src/routing.d.ts
4
4
  declare namespace routing_d_exports {
5
- export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
5
+ export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
6
6
  }
7
7
  declare const Languages: readonly ["http", "node", "python", "go", "typescript", "terraform", "ruby", "java", "kotlin", "csharp", "php", "cli"];
8
8
  declare const SupportedLanguageSyntaxes: string[];
@@ -45,10 +45,20 @@ declare function generateRouteList({
45
45
  languages?: DocsLanguage[];
46
46
  excludeLanguages?: DocsLanguage[];
47
47
  }): RouteEntry[];
48
+ declare function generateMissingRouteList({
49
+ spec,
50
+ basePath
51
+ }: {
52
+ spec: Spec;
53
+ basePath: string;
54
+ }): {
55
+ stainlessPath: string;
56
+ slug: string;
57
+ }[];
48
58
  type ResourceOrMethod = Resource | Method;
49
59
  declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
50
60
  declare function expandToElement(el: HTMLElement | null): void;
51
61
  declare function scrollToPath(stainlessPath: string): void;
52
62
  declare function updateHistory(basePath: string, language: DocsLanguage, stainlessPath: string): void;
53
63
  //#endregion
54
- export { routing_d_exports as _, RouteEntry as a, updateHistory as b, expandToElement as c, generateRouteList as d, getLanguageSnippet as f, parseStainlessPath as g, parseRoute as h, ParsedStainlessPath as i, findNavigationPath as l, isSupportedLanguage as m, LanguageNames as n, SpecTreeEntry as o, getResource as p, Languages as r, SupportedLanguageSyntaxes as s, DocsLanguage as t, generateRoute as u, scrollToPath as v, walkTree as x, trimStainlessPath as y };
64
+ export { walkTree as S, parseStainlessPath as _, RouteEntry as a, trimStainlessPath as b, expandToElement as c, generateRoute as d, generateRouteList as f, parseRoute as g, isSupportedLanguage as h, ParsedStainlessPath as i, findNavigationPath as l, getResource as m, LanguageNames as n, SpecTreeEntry as o, getLanguageSnippet as p, Languages as r, SupportedLanguageSyntaxes as s, DocsLanguage as t, generateMissingRouteList as u, routing_d_exports as v, updateHistory as x, scrollToPath as y };
@@ -0,0 +1,64 @@
1
+ import { d as Model, g as Spec, p as Resource, u as Method } from "./index-DuHyTVVD.js";
2
+
3
+ //#region src/routing.d.ts
4
+ declare namespace routing_d_exports {
5
+ export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
6
+ }
7
+ declare const Languages: readonly ["http", "node", "python", "go", "typescript", "terraform", "ruby", "java", "kotlin", "csharp", "php", "cli"];
8
+ declare const SupportedLanguageSyntaxes: string[];
9
+ type DocsLanguage = (typeof Languages)[number];
10
+ declare const LanguageNames: Record<DocsLanguage, string>;
11
+ declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "cli.default" | "csharp.default" | "go.default" | "java.default" | "kotlin.default" | "node.default" | "php.default" | "python.default" | "ruby.default" | "terraform.default" | "typescript.default";
12
+ declare function isSupportedLanguage(language: string): language is DocsLanguage;
13
+ type ParsedStainlessPath = ReturnType<typeof parseStainlessPath>;
14
+ declare function parseStainlessPath(stainlessPath: string): {
15
+ resource: string[] | null;
16
+ method: string | null;
17
+ model: string | null;
18
+ routable: string | undefined;
19
+ } | null;
20
+ declare function trimStainlessPath(stainlessPath: string): string;
21
+ declare function getResource(stainlessPath: string): string | undefined;
22
+ declare function parseRoute(basePath: string, route: string): {
23
+ stainlessPath: string;
24
+ language: DocsLanguage;
25
+ };
26
+ declare function generateRoute(basePath: string, language: string, stainlessPath: string): string | null;
27
+ type SpecTreeEntry = {
28
+ data: Method | Resource | Model;
29
+ path: string[];
30
+ };
31
+ declare function walkTree(spec: Spec, includeModels?: boolean): Generator<SpecTreeEntry, void, any>;
32
+ type RouteEntry = {
33
+ title: string;
34
+ kind: SpecTreeEntry['data']['kind'];
35
+ language: DocsLanguage;
36
+ stainlessPath: string;
37
+ slug: string;
38
+ };
39
+ declare function generateRouteList({
40
+ spec,
41
+ languages,
42
+ excludeLanguages
43
+ }: {
44
+ spec: Spec;
45
+ languages?: DocsLanguage[];
46
+ excludeLanguages?: DocsLanguage[];
47
+ }): RouteEntry[];
48
+ declare function generateMissingRouteList({
49
+ spec,
50
+ basePath
51
+ }: {
52
+ spec: Spec;
53
+ basePath: string;
54
+ }): {
55
+ stainlessPath: string;
56
+ slug: string;
57
+ }[];
58
+ type ResourceOrMethod = Resource | Method;
59
+ declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
60
+ declare function expandToElement(el: HTMLElement | null): void;
61
+ declare function scrollToPath(stainlessPath: string): void;
62
+ declare function updateHistory(basePath: string, language: DocsLanguage, stainlessPath: string): void;
63
+ //#endregion
64
+ export { walkTree as S, parseStainlessPath as _, RouteEntry as a, trimStainlessPath as b, expandToElement as c, generateRoute as d, generateRouteList as f, parseRoute as g, isSupportedLanguage as h, ParsedStainlessPath as i, findNavigationPath as l, getResource as m, LanguageNames as n, SpecTreeEntry as o, getLanguageSnippet as p, Languages as r, SupportedLanguageSyntaxes as s, DocsLanguage as t, generateMissingRouteList as u, routing_d_exports as v, updateHistory as x, scrollToPath as y };
package/dist/routing.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as RouteEntry, b as updateHistory, c as expandToElement, d as generateRouteList, f as getLanguageSnippet, g as parseStainlessPath, h as parseRoute, i as ParsedStainlessPath, l as findNavigationPath, m as isSupportedLanguage, n as LanguageNames, o as SpecTreeEntry, p as getResource, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateRoute, v as scrollToPath, x as walkTree, y as trimStainlessPath } from "./routing-sjrF8U7O.js";
2
- export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
1
+ import { S as walkTree, _ as parseStainlessPath, a as RouteEntry, b as trimStainlessPath, c as expandToElement, d as generateRoute, f as generateRouteList, g as parseRoute, h as isSupportedLanguage, i as ParsedStainlessPath, l as findNavigationPath, m as getResource, n as LanguageNames, o as SpecTreeEntry, p as getLanguageSnippet, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateMissingRouteList, x as updateHistory, y as scrollToPath } from "./routing-Wb-T6WOm.js";
2
+ export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
package/dist/routing.js CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as walkTree, a as findNavigationPath, c as getLanguageSnippet, d as parseRoute, f as parseStainlessPath, g as updateHistory, h as trimStainlessPath, i as expandToElement, l as getResource, m as scrollToPath, n as Languages, o as generateRoute, r as SupportedLanguageSyntaxes, s as generateRouteList, t as LanguageNames, u as isSupportedLanguage } from "./routing-Fzn1XfX_.js";
1
+ import { _ as updateHistory, a as findNavigationPath, c as generateRouteList, d as isSupportedLanguage, f as parseRoute, g as trimStainlessPath, h as scrollToPath, i as expandToElement, l as getLanguageSnippet, n as Languages, o as generateMissingRouteList, p as parseStainlessPath, r as SupportedLanguageSyntaxes, s as generateRoute, t as LanguageNames, u as getResource, v as walkTree } from "./routing-D6595ovf.js";
2
2
 
3
- export { LanguageNames, Languages, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
3
+ export { LanguageNames, Languages, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
@@ -1,8 +1,8 @@
1
- import { t as __exportAll } from "./chunk-Du3t87LU.js";
2
- import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-Bw-eLYjA.js";
3
- import { n as useLanguageComponents } from "./contexts-DZfPd182.js";
4
- import { t as useComponents } from "./use-components-Dbin0y07.js";
5
- import { t as style_default } from "./style-TeAZuiHh.js";
1
+ import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
+ import { i as useDeclaration, o as useLanguage, u as useSpec } from "./docs-6PYi1eEV.js";
3
+ import { n as useLanguageComponents } from "./contexts-DMjqoc7S.js";
4
+ import { t as useComponents } from "./use-components-BUz3GbO4.js";
5
+ import { t as style_default } from "./style-Bxr5gqcM.js";
6
6
  import * as React$1 from "react";
7
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8
 
@@ -1,7 +1,7 @@
1
- import { l as Method, m as SnippetLanguage, o as ID, u as Model } from "./index-Ct7H30x1.js";
2
- import { t as DocsLanguage } from "./routing-sjrF8U7O.js";
1
+ import { d as Model, h as SnippetLanguage, s as ID, t as BaseDeclaration, u as Method } from "./index-DuHyTVVD.js";
2
+ import { t as DocsLanguage } from "./routing-DmNHIb6b.js";
3
3
  import * as React$1 from "react";
4
- import * as react_jsx_runtime36 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime43 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/sdk.d.ts
7
7
  type PropertyModelContextType = {
@@ -33,7 +33,7 @@ declare function SDKChildren({
33
33
  paths,
34
34
  expand,
35
35
  depth
36
- }: SDKChildrenProps): react_jsx_runtime36.JSX.Element;
36
+ }: SDKChildrenProps): react_jsx_runtime43.JSX.Element;
37
37
  type SDKDeclarationProps = {
38
38
  path: string;
39
39
  expand?: boolean;
@@ -43,26 +43,26 @@ declare function SDKDeclaration({
43
43
  path,
44
44
  expand,
45
45
  depth
46
- }: SDKDeclarationProps): react_jsx_runtime36.JSX.Element;
46
+ }: SDKDeclarationProps): react_jsx_runtime43.JSX.Element;
47
47
  type SDKConstraintsProps = {
48
48
  constraints?: Record<string, any>;
49
49
  };
50
50
  declare function SDKConstraints({
51
51
  constraints
52
- }: SDKConstraintsProps): react_jsx_runtime36.JSX.Element | undefined;
52
+ }: SDKConstraintsProps): react_jsx_runtime43.JSX.Element | undefined;
53
53
  type SDKIconProps = {
54
54
  language: SnippetLanguage;
55
55
  size?: number;
56
56
  };
57
57
  declare function SDKIcon({
58
58
  language
59
- }: SDKIconProps): react_jsx_runtime36.JSX.Element | null;
59
+ }: SDKIconProps): react_jsx_runtime43.JSX.Element | null;
60
60
  type SDKRequestTitleProps = {
61
61
  snippetLanguage: SnippetLanguage;
62
62
  };
63
63
  declare function SDKRequestTitle({
64
64
  snippetLanguage
65
- }: SDKRequestTitleProps): react_jsx_runtime36.JSX.Element;
65
+ }: SDKRequestTitleProps): react_jsx_runtime43.JSX.Element;
66
66
  type SDKExampleProps = {
67
67
  method: Method;
68
68
  transformRequestSnippet?: TransformRequestSnippetFn;
@@ -70,27 +70,31 @@ type SDKExampleProps = {
70
70
  declare function SDKExample({
71
71
  method,
72
72
  transformRequestSnippet
73
- }: SDKExampleProps): react_jsx_runtime36.JSX.Element;
73
+ }: SDKExampleProps): react_jsx_runtime43.JSX.Element;
74
74
  type SDKMethodProps = {
75
75
  method: Method;
76
76
  transformRequestSnippet?: TransformRequestSnippetFn;
77
77
  };
78
78
  declare function SDKMethodHeader({
79
79
  method
80
- }: SDKMethodProps): react_jsx_runtime36.JSX.Element;
80
+ }: SDKMethodProps): react_jsx_runtime43.JSX.Element;
81
+ declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
81
82
  declare function SDKMethodInfo({
82
83
  method
83
- }: SDKMethodProps): react_jsx_runtime36.JSX.Element;
84
+ }: SDKMethodProps): react_jsx_runtime43.JSX.Element;
85
+ declare function SDKMethodNotImplemented({
86
+ method
87
+ }: SDKMethodProps): react_jsx_runtime43.JSX.Element;
84
88
  declare function SDKMethod({
85
89
  method,
86
90
  transformRequestSnippet
87
- }: SDKMethodProps): react_jsx_runtime36.JSX.Element;
91
+ }: SDKMethodProps): react_jsx_runtime43.JSX.Element;
88
92
  type SDKModelProps = {
89
93
  model: Model;
90
94
  };
91
95
  declare function SDKModel({
92
96
  model
93
- }: SDKModelProps): react_jsx_runtime36.JSX.Element | null;
97
+ }: SDKModelProps): react_jsx_runtime43.JSX.Element | null;
94
98
  type SDKReferenceProps = {
95
99
  stainlessPath: string;
96
100
  children?: React$1.ReactNode;
@@ -98,7 +102,7 @@ type SDKReferenceProps = {
98
102
  declare function SDKReference({
99
103
  stainlessPath,
100
104
  children
101
- }: SDKReferenceProps): string | number | bigint | boolean | 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> | react_jsx_runtime36.JSX.Element | null | undefined;
105
+ }: SDKReferenceProps): string | number | bigint | boolean | 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> | react_jsx_runtime43.JSX.Element | null | undefined;
102
106
  type SDKLanguageBlockProps = {
103
107
  language: DocsLanguage;
104
108
  version: string;
@@ -113,6 +117,6 @@ declare function SDKLanguageBlock({
113
117
  version,
114
118
  install,
115
119
  links
116
- }: SDKLanguageBlockProps): react_jsx_runtime36.JSX.Element;
120
+ }: SDKLanguageBlockProps): react_jsx_runtime43.JSX.Element;
117
121
  //#endregion
118
- export { TransformRequestSnippetFn as C, SDKSnippetLanguagesType as S, useReferenceNesting as T, SDKModelProps as _, SDKChildren as a, SDKRequestTitleProps as b, SDKDeclaration as c, SDKLanguageBlock as d, SDKMethod as f, SDKModel as g, SDKMethodProps 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, SDKReference as v, usePropertyModel as w, SDKSnippetLanguages as x, SDKRequestTitle as y };
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 };
@@ -1,10 +1,10 @@
1
- import { a as useLanguage, l as useSpec, n as useContentPanelLayout, r as useDeclaration, s as useSettings } from "./docs-Bw-eLYjA.js";
2
- import { n as useNavigation } from "./navigation-By1sQl6M.js";
3
- import { n as useLanguageComponents } from "./contexts-DZfPd182.js";
4
- import { t as useComponents } from "./use-components-Dbin0y07.js";
5
- import { t as style_default } from "./style-TeAZuiHh.js";
6
- import { c as getLanguageSnippet, t as LanguageNames } from "./routing-Fzn1XfX_.js";
7
- import { a as JavaIcon, c as PythonIcon, d as TypescriptIcon, i as GoIcon, l as RubyIcon, n as CSharpIcon, o as KotlinIcon, r as CurlIcon, s as PowershellIcon, t as CLIIcon, u as TerraformIcon } from "./icons-DMkAA03z.js";
1
+ import { c as useSettings, i as useDeclaration, n as useAvailableLanguages, o as useLanguage, r as useContentPanelLayout, u as useSpec } from "./docs-6PYi1eEV.js";
2
+ import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
3
+ import { n as useLanguageComponents } from "./contexts-DMjqoc7S.js";
4
+ import { t as useComponents } from "./use-components-BUz3GbO4.js";
5
+ import { t as style_default } from "./style-Bxr5gqcM.js";
6
+ import { l as getLanguageSnippet, s as generateRoute, t as LanguageNames } from "./routing-D6595ovf.js";
7
+ import { a as JavaIcon, c as PythonIcon, d as TypescriptIcon, i as GoIcon, l as RubyIcon, n as CSharpIcon, o as KotlinIcon, r as CurlIcon, s as PowershellIcon, t as CLIIcon, u as TerraformIcon } from "./icons-BYKn5X8E.js";
8
8
  import * as React$1 from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
10
  import clsx from "clsx";
@@ -174,10 +174,20 @@ function SDKMethodHeader({ method }) {
174
174
  })
175
175
  });
176
176
  }
177
+ function useStreamingResponse(method) {
178
+ const tsDecl = useDeclaration(method.stainlessPath, false, "typescript");
179
+ if (tsDecl?.kind === "TSDeclFunction" && tsDecl.overloads) {
180
+ for (const e of tsDecl.overloads) if (e.returns.kind === "TSTypeReference" && (e.returns.$ref === "$.typescript.Stream" || e.returns.$ref === "$.node.Stream") && e.returns.typeParameters?.[0]?.kind === "TSTypeReference") {
181
+ const id = e.returns.typeParameters?.[0].$ref;
182
+ if (id) return id;
183
+ }
184
+ }
185
+ }
177
186
  function SDKMethodInfo({ method }) {
178
187
  const Docs = useComponents();
179
188
  const Lang = useLanguageComponents();
180
189
  const decl = useDeclaration(method.stainlessPath, true);
190
+ const streamingResponse = useStreamingResponse(method);
181
191
  const spec = useSpec();
182
192
  const language = useLanguage();
183
193
  if (Lang.MethodInfo) return /* @__PURE__ */ jsx(Lang.MethodInfo, { decl });
@@ -185,26 +195,35 @@ function SDKMethodInfo({ method }) {
185
195
  if (items.length > 1) return false;
186
196
  const item = items[0];
187
197
  if (!item) return false;
188
- const decl$1 = spec?.decls?.[language]?.[item];
189
- return decl$1 && "children" in decl$1 && decl$1.children && decl$1.children.length > 0;
198
+ const decl = spec?.decls?.[language]?.[item];
199
+ return decl && "children" in decl && decl.children && decl.children.length > 0;
190
200
  }
201
+ const responseChildren = "responseChildren" in decl && decl.responseChildren && decl.responseChildren.length > 0 ? [...decl.responseChildren] : [];
202
+ if (streamingResponse) responseChildren.push(streamingResponse);
191
203
  return /* @__PURE__ */ jsx(Docs.MethodInfo, {
192
204
  parameters: "paramsChildren" in decl && Array.isArray(decl.paramsChildren) && decl.paramsChildren.length > 0 && /* @__PURE__ */ jsx(Docs.SDKChildren, {
193
205
  expand: shouldExpand(decl.paramsChildren),
194
206
  paths: decl.paramsChildren
195
207
  }),
196
- returns: "responseChildren" in decl && decl.responseChildren && decl.responseChildren.length > 0 && /* @__PURE__ */ jsx(Docs.SDKChildren, {
197
- expand: shouldExpand(decl.responseChildren),
198
- paths: decl.responseChildren
208
+ returns: responseChildren.length > 0 && /* @__PURE__ */ jsx(Docs.SDKChildren, {
209
+ expand: shouldExpand(responseChildren),
210
+ paths: responseChildren
199
211
  })
200
212
  });
201
213
  }
202
- function SDKMethod({ method, transformRequestSnippet }) {
214
+ function SDKMethodNotImplemented({ method }) {
203
215
  const Docs = useComponents();
204
- const decl = useDeclaration(method?.stainlessPath, false);
205
- const layout = useContentPanelLayout();
216
+ const languages = useAvailableLanguages(method?.stainlessPath);
206
217
  const language = useLanguage();
207
- if (!decl) return /* @__PURE__ */ jsxs("div", {
218
+ const { basePath } = useNavigation();
219
+ const availableLanguageLinks = languages.flatMap((lang) => {
220
+ const url = generateRoute(basePath ?? "/", lang, method.stainlessPath);
221
+ return url ? [{
222
+ url,
223
+ label: LanguageNames[lang] ?? lang
224
+ }] : [];
225
+ });
226
+ return /* @__PURE__ */ jsxs("div", {
208
227
  className: style_default.Method,
209
228
  children: [/* @__PURE__ */ jsx(Docs.MethodHeader, {
210
229
  level: "h1",
@@ -220,10 +239,21 @@ function SDKMethod({ method, transformRequestSnippet }) {
220
239
  /* @__PURE__ */ jsx("code", { children: method.name }),
221
240
  " is not implemented in ",
222
241
  LanguageNames[language] ?? language,
223
- "."
242
+ basePath && availableLanguageLinks.length > 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [", but it is available in the following languages:", /* @__PURE__ */ jsx("ul", { children: availableLanguageLinks.map(({ url, label }) => {
243
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", {
244
+ href: url,
245
+ children: label
246
+ }) }, url);
247
+ }) })] }) : "."
224
248
  ]
225
249
  })]
226
250
  });
251
+ }
252
+ function SDKMethod({ method, transformRequestSnippet }) {
253
+ const Docs = useComponents();
254
+ const decl = useDeclaration(method?.stainlessPath, false);
255
+ const layout = useContentPanelLayout();
256
+ if (!decl) return /* @__PURE__ */ jsx(SDKMethodNotImplemented, { method });
227
257
  return /* @__PURE__ */ jsxs(Docs.Method, {
228
258
  id: method.stainlessPath,
229
259
  header: /* @__PURE__ */ jsx(Docs.SDKMethodHeader, { method }),
@@ -335,4 +365,4 @@ function SDKLanguageBlock({ language, version, install, links }) {
335
365
  }
336
366
 
337
367
  //#endregion
338
- export { useReferenceNesting as _, SDKDeclaration as a, SDKLanguageBlock as c, SDKMethodInfo as d, SDKModel as f, usePropertyModel as g, SDKSnippetLanguages as h, SDKConstraints as i, SDKMethod as l, SDKRequestTitle as m, ReferenceNestingContext as n, SDKExample as o, SDKReference as p, SDKChildren as r, SDKIcon as s, PropertyModelContext as t, SDKMethodHeader as u };
368
+ export { usePropertyModel as _, SDKDeclaration as a, SDKLanguageBlock as c, SDKMethodInfo as d, SDKMethodNotImplemented as f, SDKSnippetLanguages as g, SDKRequestTitle as h, SDKConstraints as i, SDKMethod as l, SDKReference as m, ReferenceNestingContext as n, SDKExample as o, SDKModel as p, SDKChildren as r, SDKIcon as s, PropertyModelContext as t, SDKMethodHeader as u, useReferenceNesting as v, useStreamingResponse as y };
@@ -0,0 +1,15 @@
1
+ import { p as Resource } from "./index-DuHyTVVD.js";
2
+ import * as react_jsx_runtime42 from "react/jsx-runtime";
3
+
4
+ //#region src/components/sdk-sidebar.d.ts
5
+ type SDKSidebarProps = {
6
+ resources: Resource[];
7
+ };
8
+ /**
9
+ * Given some SDKJSON.Resources, calls into StlSidebar with the appropriate sidebar entries.
10
+ */
11
+ declare function SDKSidebar({
12
+ resources
13
+ }: SDKSidebarProps): react_jsx_runtime42.JSX.Element;
14
+ //#endregion
15
+ export { SDKSidebarProps as n, SDKSidebar as t };
@@ -0,0 +1,36 @@
1
+ import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
2
+ import { r as isResourceEmpty } from "./utils-BpKHeVMe.js";
3
+ import { t as StlSidebar } from "./stl-sidebar-DdxZx2KK.js";
4
+ import * as React$1 from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ //#region src/components/sdk-sidebar.tsx
8
+ function resourceToEntry(resource, selectedPath) {
9
+ const result = {
10
+ type: "group",
11
+ collapsed: false,
12
+ label: resource.title,
13
+ entries: [],
14
+ stainlessPath: resource.stainlessPath,
15
+ isCurrent: selectedPath === resource.stainlessPath
16
+ };
17
+ for (const method of Object.values(resource.methods)) result.entries.push({
18
+ type: "link",
19
+ attrs: { "data-stldocs-method": method.httpMethod },
20
+ stainlessPath: method.stainlessPath,
21
+ label: method.title,
22
+ isCurrent: selectedPath === method.stainlessPath
23
+ });
24
+ for (const subresource of Object.values(resource.subresources ?? {})) result.entries.push(resourceToEntry(subresource, selectedPath));
25
+ return result;
26
+ }
27
+ /**
28
+ * Given some SDKJSON.Resources, calls into StlSidebar with the appropriate sidebar entries.
29
+ */
30
+ function SDKSidebar({ resources }) {
31
+ const { selectedPath } = useNavigation();
32
+ return /* @__PURE__ */ jsx(StlSidebar, { entries: React$1.useMemo(() => resources.filter((resource) => !isResourceEmpty(resource)).map((resource) => resourceToEntry(resource, selectedPath)), [resources, selectedPath]) });
33
+ }
34
+
35
+ //#endregion
36
+ export { SDKSidebar as t };
@@ -0,0 +1,15 @@
1
+ import { p as Resource } from "./index-DuHyTVVD.js";
2
+ import * as react_jsx_runtime80 from "react/jsx-runtime";
3
+
4
+ //#region src/components/sdk-sidebar.d.ts
5
+ type SDKSidebarProps = {
6
+ resources: Resource[];
7
+ };
8
+ /**
9
+ * Given some SDKJSON.Resources, calls into StlSidebar with the appropriate sidebar entries.
10
+ */
11
+ declare function SDKSidebar({
12
+ resources
13
+ }: SDKSidebarProps): react_jsx_runtime80.JSX.Element;
14
+ //#endregion
15
+ export { SDKSidebarProps as n, SDKSidebar as t };
@@ -1,7 +1,7 @@
1
- import { l as Method, m as SnippetLanguage, o as ID, u as Model } from "./index-Ct7H30x1.js";
2
- import { t as DocsLanguage } from "./routing-sjrF8U7O.js";
1
+ import { d as Model, h as SnippetLanguage, s as ID, t as BaseDeclaration, u as Method } from "./index-DuHyTVVD.js";
2
+ import { t as DocsLanguage } from "./routing-Wb-T6WOm.js";
3
3
  import * as React$1 from "react";
4
- import * as react_jsx_runtime59 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime81 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/sdk.d.ts
7
7
  type PropertyModelContextType = {
@@ -33,7 +33,7 @@ declare function SDKChildren({
33
33
  paths,
34
34
  expand,
35
35
  depth
36
- }: SDKChildrenProps): react_jsx_runtime59.JSX.Element;
36
+ }: SDKChildrenProps): react_jsx_runtime81.JSX.Element;
37
37
  type SDKDeclarationProps = {
38
38
  path: string;
39
39
  expand?: boolean;
@@ -43,26 +43,26 @@ declare function SDKDeclaration({
43
43
  path,
44
44
  expand,
45
45
  depth
46
- }: SDKDeclarationProps): react_jsx_runtime59.JSX.Element;
46
+ }: SDKDeclarationProps): react_jsx_runtime81.JSX.Element;
47
47
  type SDKConstraintsProps = {
48
48
  constraints?: Record<string, any>;
49
49
  };
50
50
  declare function SDKConstraints({
51
51
  constraints
52
- }: SDKConstraintsProps): react_jsx_runtime59.JSX.Element | undefined;
52
+ }: SDKConstraintsProps): react_jsx_runtime81.JSX.Element | undefined;
53
53
  type SDKIconProps = {
54
54
  language: SnippetLanguage;
55
55
  size?: number;
56
56
  };
57
57
  declare function SDKIcon({
58
58
  language
59
- }: SDKIconProps): react_jsx_runtime59.JSX.Element | null;
59
+ }: SDKIconProps): react_jsx_runtime81.JSX.Element | null;
60
60
  type SDKRequestTitleProps = {
61
61
  snippetLanguage: SnippetLanguage;
62
62
  };
63
63
  declare function SDKRequestTitle({
64
64
  snippetLanguage
65
- }: SDKRequestTitleProps): react_jsx_runtime59.JSX.Element;
65
+ }: SDKRequestTitleProps): react_jsx_runtime81.JSX.Element;
66
66
  type SDKExampleProps = {
67
67
  method: Method;
68
68
  transformRequestSnippet?: TransformRequestSnippetFn;
@@ -70,27 +70,31 @@ type SDKExampleProps = {
70
70
  declare function SDKExample({
71
71
  method,
72
72
  transformRequestSnippet
73
- }: SDKExampleProps): react_jsx_runtime59.JSX.Element;
73
+ }: SDKExampleProps): react_jsx_runtime81.JSX.Element;
74
74
  type SDKMethodProps = {
75
75
  method: Method;
76
76
  transformRequestSnippet?: TransformRequestSnippetFn;
77
77
  };
78
78
  declare function SDKMethodHeader({
79
79
  method
80
- }: SDKMethodProps): react_jsx_runtime59.JSX.Element;
80
+ }: SDKMethodProps): react_jsx_runtime81.JSX.Element;
81
+ declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
81
82
  declare function SDKMethodInfo({
82
83
  method
83
- }: SDKMethodProps): react_jsx_runtime59.JSX.Element;
84
+ }: SDKMethodProps): react_jsx_runtime81.JSX.Element;
85
+ declare function SDKMethodNotImplemented({
86
+ method
87
+ }: SDKMethodProps): react_jsx_runtime81.JSX.Element;
84
88
  declare function SDKMethod({
85
89
  method,
86
90
  transformRequestSnippet
87
- }: SDKMethodProps): react_jsx_runtime59.JSX.Element;
91
+ }: SDKMethodProps): react_jsx_runtime81.JSX.Element;
88
92
  type SDKModelProps = {
89
93
  model: Model;
90
94
  };
91
95
  declare function SDKModel({
92
96
  model
93
- }: SDKModelProps): react_jsx_runtime59.JSX.Element | null;
97
+ }: SDKModelProps): react_jsx_runtime81.JSX.Element | null;
94
98
  type SDKReferenceProps = {
95
99
  stainlessPath: string;
96
100
  children?: React$1.ReactNode;
@@ -98,7 +102,7 @@ type SDKReferenceProps = {
98
102
  declare function SDKReference({
99
103
  stainlessPath,
100
104
  children
101
- }: SDKReferenceProps): string | number | bigint | boolean | 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> | react_jsx_runtime59.JSX.Element | null | undefined;
105
+ }: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime81.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;
102
106
  type SDKLanguageBlockProps = {
103
107
  language: DocsLanguage;
104
108
  version: string;
@@ -113,6 +117,6 @@ declare function SDKLanguageBlock({
113
117
  version,
114
118
  install,
115
119
  links
116
- }: SDKLanguageBlockProps): react_jsx_runtime59.JSX.Element;
120
+ }: SDKLanguageBlockProps): react_jsx_runtime81.JSX.Element;
117
121
  //#endregion
118
- export { TransformRequestSnippetFn as C, SDKSnippetLanguagesType as S, useReferenceNesting as T, SDKModelProps as _, SDKChildren as a, SDKRequestTitleProps as b, SDKDeclaration as c, SDKLanguageBlock as d, SDKMethod as f, SDKModel as g, SDKMethodProps 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, SDKReference as v, usePropertyModel as w, SDKSnippetLanguages as x, SDKRequestTitle as y };
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 };
@@ -1,7 +1,7 @@
1
- import { l as Method } from "./index-Ct7H30x1.js";
2
- import { C as TransformRequestSnippetFn } from "./sdk-Dhu_gfzq.js";
1
+ import { u as Method } from "./index-DuHyTVVD.js";
2
+ import { w as TransformRequestSnippetFn } from "./sdk-swLaCpqB.js";
3
3
  import * as React$1 from "react";
4
- import * as react_jsx_runtime52 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime21 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/snippets.d.ts
7
7
  type SnippetCodeProps = {
@@ -12,7 +12,7 @@ type SnippetCodeProps = {
12
12
  declare function SnippetCode({
13
13
  content,
14
14
  language
15
- }: SnippetCodeProps): react_jsx_runtime52.JSX.Element;
15
+ }: SnippetCodeProps): react_jsx_runtime21.JSX.Element;
16
16
  type SnippetProps = {
17
17
  method: Method;
18
18
  requestTitle?: React$1.ReactNode;
@@ -25,29 +25,29 @@ type SnippetContainerProps = {
25
25
  };
26
26
  declare function SnippetContainer({
27
27
  children
28
- }: SnippetContainerProps): react_jsx_runtime52.JSX.Element;
28
+ }: SnippetContainerProps): react_jsx_runtime21.JSX.Element;
29
29
  type SnippetRequestContainerProps = {
30
30
  children?: React$1.ReactNode;
31
31
  signature?: string;
32
32
  };
33
33
  declare function SnippetRequestContainer({
34
34
  children
35
- }: SnippetRequestContainerProps): react_jsx_runtime52.JSX.Element;
35
+ }: SnippetRequestContainerProps): react_jsx_runtime21.JSX.Element;
36
36
  declare function Snippet({
37
37
  requestTitle,
38
38
  method,
39
39
  transformRequestSnippet
40
- }: SnippetProps): react_jsx_runtime52.JSX.Element | null;
40
+ }: SnippetProps): react_jsx_runtime21.JSX.Element | null;
41
41
  declare function SnippetButtons({
42
42
  content
43
43
  }: {
44
44
  content: string;
45
- }): react_jsx_runtime52.JSX.Element;
45
+ }): react_jsx_runtime21.JSX.Element;
46
46
  declare function SnippetFooter(): React$1.ReactNode;
47
47
  declare function SnippetResponse({
48
48
  responses
49
49
  }: {
50
50
  responses: Method['exampleResponses'];
51
- }): react_jsx_runtime52.JSX.Element | null;
51
+ }): react_jsx_runtime21.JSX.Element | null;
52
52
  //#endregion
53
53
  export { SnippetContainer as a, SnippetProps as c, SnippetResponse as d, SnippetCodeProps as i, SnippetRequestContainer as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetFooter as s, Snippet as t, SnippetRequestContainerProps as u };