@stainless-api/docs-ui 0.1.0-beta.71 → 0.1.0-beta.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{breadcrumbs-Cvm5Ifm7.d.ts → breadcrumbs-Dei_5sHd.d.ts} +3 -3
- package/dist/{breadcrumbs-DA4WgDhR.js → breadcrumbs-oUp-6oJK.js} +3 -3
- package/dist/{cli-DhMMZoiU.js → cli-BX9ofVCR.js} +3 -3
- package/dist/{component-Drp93QK-.js → component-Dl5ZEHxB.js} +2 -2
- package/dist/{component-generics-t_S0Wc9i.d.ts → component-generics-C9ALAcZI.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +3 -3
- package/dist/components/MaskedInput.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +5 -5
- package/dist/components/icons.d.ts +12 -12
- package/dist/components/index.d.ts +14 -11
- package/dist/components/index.js +14 -14
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +5 -5
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +6 -6
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +4 -4
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +4 -4
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk-sidebar.js +5 -5
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +4 -4
- package/dist/components/snippets.d.ts +14 -3
- package/dist/components/snippets.js +5 -5
- package/dist/components/stl-sidebar.d.ts +1 -1
- package/dist/components/stl-sidebar.js +1 -1
- package/dist/{components-BbJAAdUU.js → components-DQPlXEwE.js} +10 -9
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +13 -11
- package/dist/contexts/component.d.ts +15 -14
- package/dist/contexts/component.js +24 -24
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +2 -2
- package/dist/contexts/index.d.ts +14 -23
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +13 -10
- package/dist/{contexts-CVj20VV4.js → contexts-_NNW5yqC.js} +5 -2
- package/dist/{csharp-D6_jlynY.js → csharp-sn5CJu9t.js} +2 -2
- package/dist/docs-YgoQ3bzY.js +81 -0
- package/dist/{docs-CceV-0oK.d.ts → docs-x-kfjRMc.d.ts} +24 -6
- package/dist/{go-COaHV3Hc.js → go-BoaAVmP0.js} +2 -2
- package/dist/{http-DVyJ-D6t.js → http-Ccj1dOvE.js} +7 -7
- package/dist/{index-CwjGm9zX.d.ts → index-HDt5wRiR.d.ts} +47 -32
- package/dist/index-OCM-LZIo.d.ts +428 -0
- package/dist/index.d.ts +14 -17
- package/dist/index.js +26 -26
- package/dist/{java-CxGSJVvv.js → java-BiLRuLuD.js} +3 -3
- package/dist/languages/cli.d.ts +13 -11
- package/dist/languages/cli.js +15 -15
- package/dist/languages/csharp.d.ts +13 -11
- package/dist/languages/csharp.js +4 -4
- package/dist/languages/go.d.ts +13 -11
- package/dist/languages/go.js +4 -4
- package/dist/languages/http.d.ts +13 -11
- package/dist/languages/http.js +14 -14
- package/dist/languages/index.d.ts +13 -11
- package/dist/languages/index.js +23 -23
- package/dist/languages/java.d.ts +13 -11
- package/dist/languages/java.js +4 -4
- package/dist/languages/python.d.ts +13 -11
- package/dist/languages/python.js +4 -4
- package/dist/languages/ruby.d.ts +13 -11
- package/dist/languages/ruby.js +4 -4
- package/dist/languages/terraform.d.ts +13 -11
- package/dist/languages/terraform.js +4 -4
- package/dist/languages/typescript.d.ts +13 -11
- package/dist/languages/typescript.js +4 -4
- package/dist/languages-COjc0Nwx.js +30 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +24 -24
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +25 -25
- package/dist/markdown/utils.d.ts +4 -4
- package/dist/markdown/utils.js +3 -3
- package/dist/{markdown-HJXGh2Yn.d.ts → markdown-BszOPZhh.d.ts} +2 -2
- package/dist/{markdown-CTKHMLVr.js → markdown-Cq3XEhrR.js} +1 -1
- package/dist/{method-iAV6cZjF.js → method-DjzVBzZe.js} +2 -2
- package/dist/{method-DPnfsySL.d.ts → method-KkWyhvKa.d.ts} +6 -6
- package/dist/{navigation-QXH2ufM3.d.ts → navigation-BZjwfN2P.d.ts} +3 -3
- package/dist/{overview-BR3WhCoz.d.ts → overview-BNmMeDUE.d.ts} +7 -7
- package/dist/{overview-DQIrvYJr.js → overview-Clq5psZe.js} +7 -7
- package/dist/{primitives-D0h4FgbU.d.ts → primitives-B8OnSXRP.d.ts} +11 -11
- package/dist/{primitives-DJEqe_r1.js → primitives-BBUs_flm.js} +4 -4
- package/dist/{properties-CjUi1Cjx.d.ts → properties-BhlRtWo4.d.ts} +5 -5
- package/dist/{properties-PNuJPLqP.js → properties-DQU0NBzb.js} +2 -2
- package/dist/{python-DsTuWCKE.js → python-nqOBH7GS.js} +2 -2
- package/dist/{routing-C64k4fmX.js → routing-GvhEMw6E.js} +1 -1
- package/dist/{routing-utiR5mY3.d.ts → routing-qJMPICGo.d.ts} +2 -2
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{ruby-BncKp6hd.js → ruby-BBc8HdIt.js} +3 -3
- package/dist/{sdk-D3U444dU.d.ts → sdk-C8C6IRQp.d.ts} +17 -17
- package/dist/{sdk-Bw99eXxA.js → sdk-DzCHhEoX.js} +14 -8
- package/dist/{sdk-sidebar-V_MTkVw8.js → sdk-sidebar-CkjSLggl.js} +2 -2
- package/dist/{sdk-sidebar-f7SS4xxq.d.ts → sdk-sidebar-lgNmf-ns.d.ts} +3 -3
- package/dist/snippets-CLpNVNlA.js +181 -0
- package/dist/spec.d.ts +4 -4
- package/dist/spec.js +3 -3
- package/dist/{stl-sidebar-CItXFC3n.d.ts → stl-sidebar-8jF9cdnn.d.ts} +2 -2
- package/dist/{stl-sidebar-WtimNrk1.js → stl-sidebar-DC5UOJiT.js} +1 -1
- package/dist/{style-HpXpcJ9v.js → style-DJIYkFhO.js} +6 -0
- package/dist/style.d.ts +6 -0
- package/dist/style.js +1 -1
- package/dist/styles/main.css +53 -14
- package/dist/styles.css +53 -14
- package/dist/{terraform-B95X4rNK.js → terraform-DVx2ea2h.js} +3 -3
- package/dist/{typescript-n46M9OtL.js → typescript-Cmk-jBBw.js} +3 -3
- package/dist/{utils-DPbkW1Tz.js → utils-D6zJxUZ9.js} +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/breadcrumbs-7G1MoVzo.d.ts +0 -25
- package/dist/component-generics-5cSjFCLn.d.ts +0 -30
- package/dist/docs---kdT2w-.d.ts +0 -48
- package/dist/docs-BmOB2f-I.js +0 -61
- package/dist/index-Bc1tYWPC.d.ts +0 -347
- package/dist/index-Cuw1pZs8.d.ts +0 -16
- package/dist/index-DIchpgQZ.d.ts +0 -16
- package/dist/index-DSeLOs29.d.ts +0 -347
- package/dist/languages-C8iNdbjN.js +0 -30
- package/dist/markdown-Cdh0TSHp.d.ts +0 -22
- package/dist/method-R97dH39J.d.ts +0 -59
- package/dist/navigation-dh0gX_lm.d.ts +0 -29
- package/dist/overview-Ddh84S6_.d.ts +0 -39
- package/dist/primitives-xbTKYFgQ.d.ts +0 -105
- package/dist/properties-q3XaAaRo.d.ts +0 -54
- package/dist/sdk-CSKStkB5.d.ts +0 -122
- package/dist/sdk-sidebar-Cf04O8rR.d.ts +0 -15
- package/dist/snippets-BehbU3rt.js +0 -164
- package/dist/snippets-CMtWGDSE.d.ts +0 -53
- package/dist/snippets-DZAozdda.d.ts +0 -53
- package/dist/stl-sidebar-DpnXVa_V.d.ts +0 -58
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import "../docs-
|
|
1
|
+
import "../docs-YgoQ3bzY.js";
|
|
2
2
|
import "../component-generics-POFirVVb.js";
|
|
3
3
|
import "../navigation-aoYZ_tl4.js";
|
|
4
|
-
import "../markdown-
|
|
5
|
-
import "../contexts-
|
|
4
|
+
import "../markdown-Cq3XEhrR.js";
|
|
5
|
+
import "../contexts-_NNW5yqC.js";
|
|
6
6
|
import "../use-components-BUz3GbO4.js";
|
|
7
|
-
import "../properties-
|
|
8
|
-
import "../method-
|
|
9
|
-
import "../primitives-
|
|
7
|
+
import "../properties-DQU0NBzb.js";
|
|
8
|
+
import "../method-DjzVBzZe.js";
|
|
9
|
+
import "../primitives-BBUs_flm.js";
|
|
10
10
|
import "../icons-BYKn5X8E.js";
|
|
11
|
-
import "../sdk-
|
|
12
|
-
import "../snippets-
|
|
13
|
-
import "../overview-
|
|
14
|
-
import "../breadcrumbs-
|
|
15
|
-
import "../stl-sidebar-
|
|
16
|
-
import "../sdk-sidebar-
|
|
17
|
-
import "../components-
|
|
18
|
-
import "../typescript-
|
|
19
|
-
import "../java-
|
|
20
|
-
import "../go-
|
|
21
|
-
import "../python-
|
|
22
|
-
import "../ruby-
|
|
23
|
-
import "../http-
|
|
24
|
-
import "../csharp-
|
|
25
|
-
import "../cli-
|
|
26
|
-
import "../terraform-
|
|
27
|
-
import "../languages-
|
|
28
|
-
import { n as defaultContextValue, t as ComponentProvider } from "../component-
|
|
11
|
+
import "../sdk-DzCHhEoX.js";
|
|
12
|
+
import "../snippets-CLpNVNlA.js";
|
|
13
|
+
import "../overview-Clq5psZe.js";
|
|
14
|
+
import "../breadcrumbs-oUp-6oJK.js";
|
|
15
|
+
import "../stl-sidebar-DC5UOJiT.js";
|
|
16
|
+
import "../sdk-sidebar-CkjSLggl.js";
|
|
17
|
+
import "../components-DQPlXEwE.js";
|
|
18
|
+
import "../typescript-Cmk-jBBw.js";
|
|
19
|
+
import "../java-BiLRuLuD.js";
|
|
20
|
+
import "../go-BoaAVmP0.js";
|
|
21
|
+
import "../python-nqOBH7GS.js";
|
|
22
|
+
import "../ruby-BBc8HdIt.js";
|
|
23
|
+
import "../http-Ccj1dOvE.js";
|
|
24
|
+
import "../csharp-sn5CJu9t.js";
|
|
25
|
+
import "../cli-BX9ofVCR.js";
|
|
26
|
+
import "../terraform-DVx2ea2h.js";
|
|
27
|
+
import "../languages-COjc0Nwx.js";
|
|
28
|
+
import { n as defaultContextValue, t as ComponentProvider } from "../component-Dl5ZEHxB.js";
|
|
29
29
|
|
|
30
30
|
export { ComponentProvider, defaultContextValue };
|
package/dist/contexts/docs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DocsProviderProps, c as useContentPanelLayout, d as useIgnoredResources, f as useLanguage, g as
|
|
2
|
-
export { ContentPanelLayout, Declaration, DocsContextType, DocsProvider, DocsProviderProps, PropertySettingsType, useAvailableLanguages, useContentPanelLayout, useDeclaration, useDocs, useIgnoredResources, useLanguage, useResource, useSettings, useSnippet, useSpec };
|
|
1
|
+
import { _ as useSnippetResponse, a as DocsProviderProps, c as useContentPanelLayout, d as useIgnoredResources, f as useLanguage, g as useSnippetIds, h as useSnippet, i as DocsProvider, l as useDeclaration, m as useSettings, n as Declaration, o as PropertySettingsType, p as useResource, r as DocsContextType, s as useAvailableLanguages, t as ContentPanelLayout, u as useDocs, v as useSnippets, y as useSpec } from "../docs-x-kfjRMc.js";
|
|
2
|
+
export { ContentPanelLayout, Declaration, DocsContextType, DocsProvider, DocsProviderProps, PropertySettingsType, useAvailableLanguages, useContentPanelLayout, useDeclaration, useDocs, useIgnoredResources, useLanguage, useResource, useSettings, useSnippet, useSnippetIds, useSnippetResponse, useSnippets, useSpec };
|
package/dist/contexts/docs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as useDocs, c as useResource, d as
|
|
1
|
+
import { a as useDocs, c as useResource, d as useSnippetIds, f as useSnippetResponse, i as useDeclaration, l as useSettings, m as useSpec, n as useAvailableLanguages, o as useIgnoredResources, p as useSnippets, r as useContentPanelLayout, s as useLanguage, t as DocsProvider, u as useSnippet } from "../docs-YgoQ3bzY.js";
|
|
2
2
|
|
|
3
|
-
export { DocsProvider, useAvailableLanguages, useContentPanelLayout, useDeclaration, useDocs, useIgnoredResources, useLanguage, useResource, useSettings, useSnippet, useSpec };
|
|
3
|
+
export { DocsProvider, useAvailableLanguages, useContentPanelLayout, useDeclaration, useDocs, useIgnoredResources, useLanguage, useResource, useSettings, useSnippet, useSnippetIds, useSnippetResponse, useSnippets, useSpec };
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import "../primitives-
|
|
2
|
-
import "../breadcrumbs-
|
|
3
|
-
import "../method-
|
|
4
|
-
import "../properties-
|
|
5
|
-
import "../sdk-
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import "../
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
import { a as useMarkdownContext, i as useHighlight, n as MarkdownProvider, o as useRenderMarkdown, r as MarkdownProviderProps, t as MarkdownContext } from "../markdown-Cdh0TSHp.js";
|
|
16
|
-
|
|
17
|
-
//#region src/contexts/index.d.ts
|
|
18
|
-
declare namespace index_d_exports {
|
|
19
|
-
export { ComponentProvider, ComponentsContextType, ContentPanelLayout, Declaration, DocsContextType, DocsProvider, DocsProviderProps, MarkdownContext, MarkdownProvider, MarkdownProviderProps, NavigationContextType, NavigationHandler, NavigationProvider, NavigationProviderProps, PropertySettingsType, customizeComponents, useAvailableLanguages, useComponentContext, useComponents, useContentPanelLayout, useDeclaration, useDocs, useHighlight, useIgnoredResources, useLanguage, useLanguageComponents, useMarkdownContext, useNavigation, useRenderMarkdown, useResource, useSettings, useSnippet, useSpec };
|
|
20
|
-
}
|
|
21
|
-
declare function useLanguageComponents(): LanguageComponentDefinition;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { ComponentProvider, ComponentsContextType, ContentPanelLayout, Declaration, DocsContextType, DocsProvider, DocsProviderProps, MarkdownContext, MarkdownProvider, MarkdownProviderProps, NavigationContextType, NavigationHandler, NavigationProvider, NavigationProviderProps, PropertySettingsType, customizeComponents, index_d_exports as t, useAvailableLanguages, useComponentContext, useComponents, useContentPanelLayout, useDeclaration, useDocs, useHighlight, useIgnoredResources, useLanguage, useLanguageComponents, useMarkdownContext, useNavigation, useRenderMarkdown, useResource, useSettings, useSnippet, useSpec };
|
|
1
|
+
import "../primitives-B8OnSXRP.js";
|
|
2
|
+
import "../breadcrumbs-Dei_5sHd.js";
|
|
3
|
+
import "../method-KkWyhvKa.js";
|
|
4
|
+
import "../properties-BhlRtWo4.js";
|
|
5
|
+
import "../sdk-C8C6IRQp.js";
|
|
6
|
+
import { g as useLanguageComponents } from "../index-OCM-LZIo.js";
|
|
7
|
+
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-BZjwfN2P.js";
|
|
8
|
+
import { a as useMarkdownContext, i as useHighlight, n as MarkdownProvider, o as useRenderMarkdown, r as MarkdownProviderProps, t as MarkdownContext } from "../markdown-BszOPZhh.js";
|
|
9
|
+
import { a as useComponents, i as useComponentContext, n as ComponentsContextType, r as customizeComponents, t as ComponentProvider } from "../component-generics-C9ALAcZI.js";
|
|
10
|
+
import { _ as useSnippetResponse, a as DocsProviderProps, c as useContentPanelLayout, d as useIgnoredResources, f as useLanguage, g as useSnippetIds, h as useSnippet, i as DocsProvider, l as useDeclaration, m as useSettings, n as Declaration, o as PropertySettingsType, p as useResource, r as DocsContextType, s as useAvailableLanguages, t as ContentPanelLayout, u as useDocs, v as useSnippets, y as useSpec } from "../docs-x-kfjRMc.js";
|
|
11
|
+
import "../overview-BNmMeDUE.js";
|
|
12
|
+
import "../sdk-sidebar-lgNmf-ns.js";
|
|
13
|
+
import "../stl-sidebar-8jF9cdnn.js";
|
|
14
|
+
export { ComponentProvider, ComponentsContextType, ContentPanelLayout, Declaration, DocsContextType, DocsProvider, DocsProviderProps, MarkdownContext, MarkdownProvider, MarkdownProviderProps, NavigationContextType, NavigationHandler, NavigationProvider, NavigationProviderProps, PropertySettingsType, customizeComponents, useAvailableLanguages, useComponentContext, useComponents, useContentPanelLayout, useDeclaration, useDocs, useHighlight, useIgnoredResources, useLanguage, useLanguageComponents, useMarkdownContext, useNavigation, useRenderMarkdown, useResource, useSettings, useSnippet, useSnippetIds, useSnippetResponse, useSnippets, useSpec };
|
package/dist/contexts/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as useDocs, c as useResource, d as
|
|
1
|
+
import { a as useDocs, c as useResource, d as useSnippetIds, f as useSnippetResponse, i as useDeclaration, l as useSettings, m as useSpec, n as useAvailableLanguages, o as useIgnoredResources, p as useSnippets, r as useContentPanelLayout, s as useLanguage, t as DocsProvider, u as useSnippet } from "../docs-YgoQ3bzY.js";
|
|
2
2
|
import { i as useComponents, n as customizeComponents, r as useComponentContext, t as ComponentProvider } from "../component-generics-POFirVVb.js";
|
|
3
3
|
import { n as useNavigation, t as NavigationProvider } from "../navigation-aoYZ_tl4.js";
|
|
4
|
-
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "../markdown-
|
|
5
|
-
import { n as useLanguageComponents } from "../contexts-
|
|
4
|
+
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "../markdown-Cq3XEhrR.js";
|
|
5
|
+
import { n as useLanguageComponents } from "../contexts-_NNW5yqC.js";
|
|
6
6
|
|
|
7
|
-
export { ComponentProvider, DocsProvider, MarkdownContext, MarkdownProvider, NavigationProvider, customizeComponents, useAvailableLanguages, useComponentContext, useComponents, useContentPanelLayout, useDeclaration, useDocs, useHighlight, useIgnoredResources, useLanguage, useLanguageComponents, useMarkdownContext, useNavigation, useRenderMarkdown, useResource, useSettings, useSnippet, useSpec };
|
|
7
|
+
export { ComponentProvider, DocsProvider, MarkdownContext, MarkdownProvider, NavigationProvider, customizeComponents, useAvailableLanguages, useComponentContext, useComponents, useContentPanelLayout, useDeclaration, useDocs, useHighlight, useIgnoredResources, useLanguage, useLanguageComponents, useMarkdownContext, useNavigation, useRenderMarkdown, useResource, useSettings, useSnippet, useSnippetIds, useSnippetResponse, useSnippets, useSpec };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useMarkdownContext, i as useHighlight, n as MarkdownProvider, o as useRenderMarkdown, r as MarkdownProviderProps, t as MarkdownContext } from "../markdown-
|
|
1
|
+
import { a as useMarkdownContext, i as useHighlight, n as MarkdownProvider, o as useRenderMarkdown, r as MarkdownProviderProps, t as MarkdownContext } from "../markdown-BszOPZhh.js";
|
|
2
2
|
export { MarkdownContext, MarkdownProvider, MarkdownProviderProps, useHighlight, useMarkdownContext, useRenderMarkdown };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../docs-
|
|
2
|
-
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "../markdown-
|
|
1
|
+
import "../docs-YgoQ3bzY.js";
|
|
2
|
+
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "../markdown-Cq3XEhrR.js";
|
|
3
3
|
|
|
4
4
|
export { MarkdownContext, MarkdownProvider, useHighlight, useMarkdownContext, useRenderMarkdown };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-
|
|
1
|
+
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-BZjwfN2P.js";
|
|
2
2
|
export { NavigationContextType, NavigationHandler, NavigationProvider, NavigationProviderProps, useNavigation };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import "../primitives-
|
|
2
|
-
import "../breadcrumbs-
|
|
3
|
-
import "../method-
|
|
4
|
-
import "../properties-
|
|
5
|
-
import "../sdk-
|
|
6
|
-
import "../
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import
|
|
1
|
+
import "../primitives-B8OnSXRP.js";
|
|
2
|
+
import "../breadcrumbs-Dei_5sHd.js";
|
|
3
|
+
import "../method-KkWyhvKa.js";
|
|
4
|
+
import "../properties-BhlRtWo4.js";
|
|
5
|
+
import "../sdk-C8C6IRQp.js";
|
|
6
|
+
import { t as index_d_exports } from "../index-OCM-LZIo.js";
|
|
7
|
+
import "../navigation-BZjwfN2P.js";
|
|
8
|
+
import "../markdown-BszOPZhh.js";
|
|
9
|
+
import "../component-generics-C9ALAcZI.js";
|
|
10
|
+
import "../docs-x-kfjRMc.js";
|
|
11
|
+
import "../overview-BNmMeDUE.js";
|
|
12
|
+
import "../sdk-sidebar-lgNmf-ns.js";
|
|
13
|
+
import "../stl-sidebar-8jF9cdnn.js";
|
|
11
14
|
|
|
12
15
|
//#region src/contexts/use-components.d.ts
|
|
13
16
|
declare const useComponents: () => typeof index_d_exports;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import { a as useDocs, c as useResource, d as
|
|
2
|
+
import { a as useDocs, c as useResource, d as useSnippetIds, f as useSnippetResponse, i as useDeclaration, l as useSettings, m as useSpec, n as useAvailableLanguages, o as useIgnoredResources, p as useSnippets, r as useContentPanelLayout, s as useLanguage, t as DocsProvider, u as useSnippet } from "./docs-YgoQ3bzY.js";
|
|
3
3
|
import { i as useComponents, n as customizeComponents, r as useComponentContext, t as ComponentProvider } from "./component-generics-POFirVVb.js";
|
|
4
4
|
import { n as useNavigation, t as NavigationProvider } from "./navigation-aoYZ_tl4.js";
|
|
5
|
-
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "./markdown-
|
|
5
|
+
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "./markdown-Cq3XEhrR.js";
|
|
6
6
|
|
|
7
7
|
//#region src/contexts/index.tsx
|
|
8
8
|
var contexts_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -28,6 +28,9 @@ var contexts_exports = /* @__PURE__ */ __exportAll({
|
|
|
28
28
|
useResource: () => useResource,
|
|
29
29
|
useSettings: () => useSettings,
|
|
30
30
|
useSnippet: () => useSnippet,
|
|
31
|
+
useSnippetIds: () => useSnippetIds,
|
|
32
|
+
useSnippetResponse: () => useSnippetResponse,
|
|
33
|
+
useSnippets: () => useSnippets,
|
|
31
34
|
useSpec: () => useSpec
|
|
32
35
|
});
|
|
33
36
|
function useLanguageComponents() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
2
|
+
import { n as useLanguageComponents } from "./contexts-_NNW5yqC.js";
|
|
3
3
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
4
|
-
import { t as style_default } from "./style-
|
|
4
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/contexts/docs.tsx
|
|
5
|
+
const DocsContextDefaults = {
|
|
6
|
+
settings: {},
|
|
7
|
+
language: "node",
|
|
8
|
+
spec: null
|
|
9
|
+
};
|
|
10
|
+
const DocsContext = React$1.createContext(DocsContextDefaults);
|
|
11
|
+
function useDocs() {
|
|
12
|
+
return React$1.use(DocsContext);
|
|
13
|
+
}
|
|
14
|
+
function useSpec() {
|
|
15
|
+
return useDocs().spec;
|
|
16
|
+
}
|
|
17
|
+
function useSettings() {
|
|
18
|
+
return useDocs().settings;
|
|
19
|
+
}
|
|
20
|
+
function useSnippets(stainlessPath, language) {
|
|
21
|
+
const defaultLanguage = useLanguage();
|
|
22
|
+
const lang = language ?? defaultLanguage;
|
|
23
|
+
const snippetLanguage = lang === "http" ? "http.curl" : `${lang}.default`;
|
|
24
|
+
return useSpec()?.snippets?.[snippetLanguage]?.[stainlessPath];
|
|
25
|
+
}
|
|
26
|
+
function useSnippetIds(stainlessPath, language) {
|
|
27
|
+
const snippets = useSnippets(stainlessPath, language);
|
|
28
|
+
if (!snippets) return void 0;
|
|
29
|
+
return Object.keys(snippets).flatMap((key) => {
|
|
30
|
+
const customPrefix = "custom:";
|
|
31
|
+
if (key.startsWith(customPrefix)) return `${customPrefix}${key.slice(7)}`;
|
|
32
|
+
if (key === "default") return "default";
|
|
33
|
+
return [];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function useSnippet(stainlessPath, language, snippetId = "default") {
|
|
37
|
+
return useSnippets(stainlessPath, language)?.[snippetId]?.content;
|
|
38
|
+
}
|
|
39
|
+
function useSnippetResponse(stainlessPath, snippetId = "default") {
|
|
40
|
+
return useSpec()?.snippetResponses.http[stainlessPath]?.[snippetId];
|
|
41
|
+
}
|
|
42
|
+
function useDeclaration(stainlessPath, required, language) {
|
|
43
|
+
const defaultLanguage = useLanguage();
|
|
44
|
+
const decl = useSpec()?.decls?.[language ?? defaultLanguage]?.[stainlessPath];
|
|
45
|
+
if (required && !decl) throw new Error(`Declaration not found for '${stainlessPath}'`);
|
|
46
|
+
return decl;
|
|
47
|
+
}
|
|
48
|
+
function useAvailableLanguages(stainlessPath) {
|
|
49
|
+
const spec = useSpec();
|
|
50
|
+
return Object.keys(spec?.decls ?? {}).filter((lang) => spec?.decls?.[lang]?.[stainlessPath] !== void 0);
|
|
51
|
+
}
|
|
52
|
+
function useIgnoredResources() {
|
|
53
|
+
return ["(resource) webhooks > (model) unwrap_webhook_event > (schema)"];
|
|
54
|
+
}
|
|
55
|
+
function useResource(name) {
|
|
56
|
+
return useSpec()?.resources?.[name];
|
|
57
|
+
}
|
|
58
|
+
function useLanguage() {
|
|
59
|
+
return useDocs().language;
|
|
60
|
+
}
|
|
61
|
+
function useContentPanelLayout() {
|
|
62
|
+
return useDocs().settings?.contentPanelLayout ?? "double-pane";
|
|
63
|
+
}
|
|
64
|
+
function DocsProvider({ spec, language, settings, children }) {
|
|
65
|
+
return /* @__PURE__ */ jsx(DocsContext, {
|
|
66
|
+
value: React$1.useMemo(() => ({
|
|
67
|
+
...DocsContextDefaults,
|
|
68
|
+
spec,
|
|
69
|
+
settings: settings ?? DocsContextDefaults.settings,
|
|
70
|
+
language: language ?? DocsContextDefaults.language
|
|
71
|
+
}), [
|
|
72
|
+
spec,
|
|
73
|
+
language,
|
|
74
|
+
settings
|
|
75
|
+
]),
|
|
76
|
+
children
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
export { useDocs as a, useResource as c, useSnippetIds as d, useSnippetResponse as f, useDeclaration as i, useSettings as l, useSpec as m, useAvailableLanguages as n, useIgnoredResources as o, useSnippets as p, useContentPanelLayout as r, useLanguage as s, DocsProvider as t, useSnippet as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as Spec, m as Resource, u as LanguageDeclNodes, v as SpecLanguage } from "./index-
|
|
1
|
+
import { _ as Spec, m as Resource, u as LanguageDeclNodes, v as SpecLanguage } from "./index-HDt5wRiR.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/contexts/docs.d.ts
|
|
6
6
|
type ContentPanelLayout = 'double-pane' | 'single-pane';
|
|
@@ -27,13 +27,31 @@ declare function useSettings(): {
|
|
|
27
27
|
contentPanelLayout?: ContentPanelLayout;
|
|
28
28
|
virtualExpanders?: boolean;
|
|
29
29
|
} | undefined;
|
|
30
|
-
declare function
|
|
30
|
+
declare function useSnippets(stainlessPath: string, language?: SpecLanguage): {
|
|
31
|
+
[key: `custom:${string}`]: {
|
|
32
|
+
content: string;
|
|
33
|
+
};
|
|
34
|
+
default: {
|
|
35
|
+
content: string;
|
|
36
|
+
};
|
|
37
|
+
} | undefined;
|
|
38
|
+
declare function useSnippetIds(stainlessPath: string, language?: SpecLanguage): SnippetId[] | undefined;
|
|
39
|
+
type SnippetId = keyof NonNullable<ReturnType<typeof useSnippets>>;
|
|
40
|
+
declare function useSnippet(stainlessPath: string, language?: SpecLanguage, snippetId?: SnippetId): string | undefined;
|
|
41
|
+
declare function useSnippetResponse(stainlessPath: string, snippetId?: SnippetId): {
|
|
42
|
+
status?: string;
|
|
43
|
+
content: string;
|
|
44
|
+
}[] | {
|
|
45
|
+
status: string;
|
|
46
|
+
content: string;
|
|
47
|
+
contentType?: string;
|
|
48
|
+
}[] | undefined;
|
|
31
49
|
type Declaration = LanguageDeclNodes[SpecLanguage];
|
|
32
50
|
declare function useDeclaration<Required extends boolean>(stainlessPath: string, required: Required, language?: SpecLanguage): (Required extends true ? never : undefined) | Declaration;
|
|
33
51
|
declare function useAvailableLanguages(stainlessPath: string): SpecLanguage[];
|
|
34
52
|
declare function useIgnoredResources(): string[];
|
|
35
53
|
declare function useResource(name: string): Resource | undefined;
|
|
36
|
-
declare function useLanguage(): "
|
|
54
|
+
declare function useLanguage(): "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php" | "cli";
|
|
37
55
|
declare function useContentPanelLayout(): ContentPanelLayout;
|
|
38
56
|
type DocsProviderProps = DocsContextType & {
|
|
39
57
|
children: React$1.ReactNode;
|
|
@@ -43,6 +61,6 @@ declare function DocsProvider({
|
|
|
43
61
|
language,
|
|
44
62
|
settings,
|
|
45
63
|
children
|
|
46
|
-
}: DocsProviderProps):
|
|
64
|
+
}: DocsProviderProps): react_jsx_runtime2.JSX.Element;
|
|
47
65
|
//#endregion
|
|
48
|
-
export { DocsProviderProps as a, useContentPanelLayout as c, useIgnoredResources as d, useLanguage as f,
|
|
66
|
+
export { useSnippetResponse as _, DocsProviderProps as a, useContentPanelLayout as c, useIgnoredResources as d, useLanguage as f, useSnippetIds as g, useSnippet as h, DocsProvider as i, useDeclaration as l, useSettings as m, Declaration as n, PropertySettingsType as o, useResource as p, DocsContextType as r, useAvailableLanguages as s, ContentPanelLayout as t, useDocs as u, useSnippets as v, useSpec as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
2
|
+
import { n as useLanguageComponents } from "./contexts-_NNW5yqC.js";
|
|
3
3
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
4
|
-
import { t as style_default } from "./style-
|
|
4
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as useDeclaration, m as useSpec, n as useAvailableLanguages, s as useLanguage } from "./docs-YgoQ3bzY.js";
|
|
3
3
|
import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
|
|
4
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
4
|
+
import { n as useLanguageComponents } from "./contexts-_NNW5yqC.js";
|
|
5
5
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
6
|
-
import { t as style_default } from "./style-
|
|
7
|
-
import { i as PropertyToggle } from "./properties-
|
|
8
|
-
import { s as generateRoute, t as LanguageNames } from "./routing-
|
|
9
|
-
import { y as useStreamingResponse } from "./sdk-
|
|
10
|
-
import { n as getBodyParams } from "./utils-
|
|
6
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
7
|
+
import { i as PropertyToggle } from "./properties-DQU0NBzb.js";
|
|
8
|
+
import { s as generateRoute, t as LanguageNames } from "./routing-GvhEMw6E.js";
|
|
9
|
+
import { y as useStreamingResponse } from "./sdk-DzCHhEoX.js";
|
|
10
|
+
import { n as getBodyParams } from "./utils-D6zJxUZ9.js";
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import clsx from "clsx";
|
|
@@ -110,7 +110,7 @@ type DiscriminatorObject = {
|
|
|
110
110
|
type ExampleObject = {
|
|
111
111
|
summary?: string;
|
|
112
112
|
description?: string;
|
|
113
|
-
value?:
|
|
113
|
+
value?: unknown;
|
|
114
114
|
externalValue?: string;
|
|
115
115
|
};
|
|
116
116
|
type EncodingsObject = {
|
|
@@ -138,7 +138,7 @@ type ResponseContentObject = {
|
|
|
138
138
|
type HeadersObject = {
|
|
139
139
|
[key: string]: HeaderObject;
|
|
140
140
|
};
|
|
141
|
-
type SupportedLanguage = 'node' | 'typescript' | 'python' | 'go' | 'java' | 'kotlin' | 'ruby' | 'terraform' | 'cli' | 'php' | 'csharp' | 'http';
|
|
141
|
+
type SupportedLanguage = 'node' | 'typescript' | 'python' | 'go' | 'java' | 'kotlin' | 'ruby' | 'terraform' | 'cli' | 'php' | 'csharp' | 'sql' | 'http' | 'openapi';
|
|
142
142
|
interface Config {
|
|
143
143
|
docs: {
|
|
144
144
|
title?: string | undefined;
|
|
@@ -152,29 +152,14 @@ interface Config {
|
|
|
152
152
|
} | undefined;
|
|
153
153
|
} | undefined;
|
|
154
154
|
description?: string | undefined;
|
|
155
|
-
languages?:
|
|
155
|
+
languages?: SupportedLanguage[] | undefined;
|
|
156
156
|
snippets?: {
|
|
157
157
|
exclude_languages?: string[] | undefined;
|
|
158
158
|
} | undefined;
|
|
159
159
|
show_security?: boolean | undefined;
|
|
160
160
|
show_readme?: boolean | undefined;
|
|
161
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;
|
|
162
|
+
navigation?: unknown;
|
|
178
163
|
pages?: Record<string, string> | undefined;
|
|
179
164
|
resources?: {
|
|
180
165
|
title: string;
|
|
@@ -224,7 +209,8 @@ type HttpDeclProperty = BaseDeclaration & {
|
|
|
224
209
|
location?: string;
|
|
225
210
|
type: HttpType;
|
|
226
211
|
constraints?: Constraints;
|
|
227
|
-
default?:
|
|
212
|
+
default?: unknown;
|
|
213
|
+
examples?: unknown[];
|
|
228
214
|
optional?: boolean;
|
|
229
215
|
nullable?: boolean;
|
|
230
216
|
declare?: boolean;
|
|
@@ -356,6 +342,7 @@ type RubyDeclProperty = BaseDeclaration & {
|
|
|
356
342
|
type: RubyType;
|
|
357
343
|
constraints?: Constraints;
|
|
358
344
|
optional?: boolean;
|
|
345
|
+
examples?: unknown[];
|
|
359
346
|
schemaType?: SchemaType;
|
|
360
347
|
modelPath?: string;
|
|
361
348
|
childrenParentSchema?: SchemaType;
|
|
@@ -481,7 +468,7 @@ declare namespace RubyAST {
|
|
|
481
468
|
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
469
|
}
|
|
483
470
|
type SDKSchemaReference = never;
|
|
484
|
-
type SDKSchemaType =
|
|
471
|
+
type SDKSchemaType = string;
|
|
485
472
|
type SDKPropertySchemaReference<T = never> = never;
|
|
486
473
|
/**
|
|
487
474
|
* Base declaration types for CLI command AST
|
|
@@ -506,7 +493,7 @@ type CLICommand = BaseDeclaration & {
|
|
|
506
493
|
ident: string;
|
|
507
494
|
qualified?: string;
|
|
508
495
|
docstring?: string;
|
|
509
|
-
parameters?:
|
|
496
|
+
parameters?: unknown[];
|
|
510
497
|
responseType?: HttpType;
|
|
511
498
|
};
|
|
512
499
|
/**
|
|
@@ -534,10 +521,10 @@ type CLIFlag = BaseDeclaration & {
|
|
|
534
521
|
docstring?: string;
|
|
535
522
|
optional?: boolean;
|
|
536
523
|
type?: HttpType;
|
|
537
|
-
constraints?:
|
|
524
|
+
constraints?: unknown;
|
|
538
525
|
schemaType?: string;
|
|
539
526
|
modelPath?: string;
|
|
540
|
-
childrenParentSchema?:
|
|
527
|
+
childrenParentSchema?: unknown;
|
|
541
528
|
children?: ID[];
|
|
542
529
|
};
|
|
543
530
|
/**
|
|
@@ -550,10 +537,10 @@ type CLISchemaProperty = BaseDeclaration & {
|
|
|
550
537
|
type?: HttpType;
|
|
551
538
|
docstring?: string;
|
|
552
539
|
optional?: boolean;
|
|
553
|
-
constraints?:
|
|
540
|
+
constraints?: unknown;
|
|
554
541
|
schemaType?: string;
|
|
555
542
|
children?: ID[];
|
|
556
|
-
childrenParentSchema?:
|
|
543
|
+
childrenParentSchema?: unknown;
|
|
557
544
|
};
|
|
558
545
|
/**
|
|
559
546
|
* Represents data piped in to stdin
|
|
@@ -618,6 +605,7 @@ type CSharpDeclProperty = BaseDeclaration & {
|
|
|
618
605
|
type: CSharpType;
|
|
619
606
|
optional?: boolean;
|
|
620
607
|
nullable?: boolean;
|
|
608
|
+
examples?: unknown[];
|
|
621
609
|
schemaType?: SchemaType;
|
|
622
610
|
modelPath?: string;
|
|
623
611
|
childrenParentSchema?: SchemaType;
|
|
@@ -732,6 +720,7 @@ type JavaDeclProperty = BaseDeclaration & {
|
|
|
732
720
|
ident: JavaIdentifier;
|
|
733
721
|
type: JavaType;
|
|
734
722
|
optional?: boolean;
|
|
723
|
+
examples?: unknown[];
|
|
735
724
|
schemaType?: SchemaType;
|
|
736
725
|
modelPath?: string;
|
|
737
726
|
childrenParentSchema?: SchemaType;
|
|
@@ -841,6 +830,7 @@ type PhpDeclParam = BaseDeclaration & {
|
|
|
841
830
|
optional: boolean;
|
|
842
831
|
isPositional: boolean;
|
|
843
832
|
default?: unknown;
|
|
833
|
+
examples?: unknown[];
|
|
844
834
|
oasRef?: string;
|
|
845
835
|
modelPath?: string;
|
|
846
836
|
docstring?: string;
|
|
@@ -866,6 +856,7 @@ type PhpDeclClassProperty = BaseDeclaration & {
|
|
|
866
856
|
nullable: boolean;
|
|
867
857
|
docstring?: string;
|
|
868
858
|
default?: string;
|
|
859
|
+
examples?: unknown[];
|
|
869
860
|
deprecated?: string | boolean;
|
|
870
861
|
modelPath?: string;
|
|
871
862
|
children?: ID[];
|
|
@@ -994,7 +985,8 @@ type PythonDeclProperty = BaseDeclaration & {
|
|
|
994
985
|
type: PythonType;
|
|
995
986
|
constraints?: Constraints;
|
|
996
987
|
optional?: boolean;
|
|
997
|
-
default?:
|
|
988
|
+
default?: unknown;
|
|
989
|
+
examples?: unknown[];
|
|
998
990
|
schemaType?: SchemaType;
|
|
999
991
|
modelPath?: string;
|
|
1000
992
|
childrenParentSchema?: SchemaType;
|
|
@@ -1163,7 +1155,8 @@ type TerraformAttribute = {
|
|
|
1163
1155
|
isBodyRootParam?: boolean;
|
|
1164
1156
|
syntheticType?: 'id' | 'find-by' | 'max-items' | 'items' | 'timeout';
|
|
1165
1157
|
schemaType: TerraformSchemaType;
|
|
1166
|
-
pathExpr: PathExpression$1;
|
|
1158
|
+
pathExpr: PathExpression$1; /** whether this attribute is immediately nested inside a computed (or computed_optional) collection/object */
|
|
1159
|
+
nestedInComputedAttribute?: boolean;
|
|
1167
1160
|
};
|
|
1168
1161
|
declare const TerraformPathValidations: readonly ['requiredTogether', 'atLeastOneOf', 'exactlyOneOf', 'conflicting'];
|
|
1169
1162
|
type PathValidators = Record<(typeof TerraformPathValidations)[number], PathExpression$1[][]>;
|
|
@@ -1310,7 +1303,8 @@ type TSDeclProperty = BaseDeclaration & {
|
|
|
1310
1303
|
constraints?: Constraints;
|
|
1311
1304
|
optional?: boolean;
|
|
1312
1305
|
declare?: boolean;
|
|
1313
|
-
default?:
|
|
1306
|
+
default?: unknown;
|
|
1307
|
+
examples?: unknown[];
|
|
1314
1308
|
schemaType?: SchemaType;
|
|
1315
1309
|
modelPath?: string;
|
|
1316
1310
|
childrenParentSchema?: SchemaType;
|
|
@@ -1498,7 +1492,27 @@ type Spec = {
|
|
|
1498
1492
|
} };
|
|
1499
1493
|
readme: { [lang in SpecLanguage]?: string };
|
|
1500
1494
|
decls: { [lang in SpecLanguage]?: Record<string, LanguageDeclNodes[lang]> };
|
|
1501
|
-
snippets: { [key in SnippetLanguage]?: Record<string,
|
|
1495
|
+
snippets: { [key in SnippetLanguage]?: Record<string, {
|
|
1496
|
+
default: {
|
|
1497
|
+
content: string;
|
|
1498
|
+
};
|
|
1499
|
+
[key: `custom:${string}`]: {
|
|
1500
|
+
content: string;
|
|
1501
|
+
};
|
|
1502
|
+
}> };
|
|
1503
|
+
snippetResponses: {
|
|
1504
|
+
http: Record<string, {
|
|
1505
|
+
default?: {
|
|
1506
|
+
status: string;
|
|
1507
|
+
content: string;
|
|
1508
|
+
contentType?: string;
|
|
1509
|
+
}[];
|
|
1510
|
+
[key: `custom:${string}`]: {
|
|
1511
|
+
status?: string;
|
|
1512
|
+
content: string;
|
|
1513
|
+
}[];
|
|
1514
|
+
}>;
|
|
1515
|
+
};
|
|
1502
1516
|
};
|
|
1503
1517
|
type Resource = (HasConfigRef & HasStainlessPath) & {
|
|
1504
1518
|
kind: 'resource';
|
|
@@ -1522,7 +1536,7 @@ type Method = (HasStainlessPath & HasOASRef) & {
|
|
|
1522
1536
|
summary?: string;
|
|
1523
1537
|
httpMethod: string;
|
|
1524
1538
|
endpoint: string;
|
|
1525
|
-
deprecated?: string | boolean;
|
|
1539
|
+
deprecated?: string | boolean; /** @deprecated - use snippetResponses at the top level */
|
|
1526
1540
|
exampleResponses?: Record<string, ResponseContentObject>;
|
|
1527
1541
|
security: Record<string, string[]>[] | undefined;
|
|
1528
1542
|
'x-api-token-group'?: string[];
|
|
@@ -1627,7 +1641,8 @@ type GoDeclProperty = BaseDeclaration & {
|
|
|
1627
1641
|
type: GoType;
|
|
1628
1642
|
constraints?: Constraints;
|
|
1629
1643
|
optional?: boolean;
|
|
1630
|
-
default?:
|
|
1644
|
+
default?: unknown;
|
|
1645
|
+
examples?: unknown[];
|
|
1631
1646
|
schemaType?: SchemaType;
|
|
1632
1647
|
modelPath?: string;
|
|
1633
1648
|
childrenParentSchema?: SchemaType;
|