@stainless-api/docs-ui 0.1.0-beta.57 → 0.1.0-beta.59
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-CCViAnPI.js → breadcrumbs-85Y-pybq.js} +3 -3
- package/dist/{breadcrumbs-BFCcsaL5.d.ts → breadcrumbs-D1pqkQVq.d.ts} +4 -4
- package/dist/cli-CoLvH9jq.js +157 -0
- package/dist/{component-2IFa97aV.js → component-CF9lLzZX.js} +3 -3
- package/dist/{component-generics-Dbwqv7EL.d.ts → component-generics-CIV4pVmh.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 +7 -7
- package/dist/components/icons.d.ts +17 -12
- package/dist/components/icons.js +2 -2
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +17 -17
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +8 -8
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +9 -9
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +6 -6
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +7 -7
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +8 -8
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +7 -7
- package/dist/components/snippets.d.ts +3 -3
- package/dist/components/snippets.js +8 -8
- package/dist/{components-B6opXKh2.js → components-Bz5h0Y4x.js} +10 -9
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-generics.js +1 -1
- package/dist/contexts/component-types.d.ts +10 -10
- package/dist/contexts/component.d.ts +13 -13
- package/dist/contexts/component.js +26 -25
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +1 -1
- package/dist/contexts/index.d.ts +16 -16
- package/dist/contexts/index.js +5 -5
- 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/navigation.js +1 -1
- package/dist/contexts/use-components.d.ts +9 -9
- package/dist/contexts/use-components.js +2 -2
- package/dist/{contexts-CLpvBI91.js → contexts-DZfPd182.js} +5 -5
- package/dist/{csharp-Cs2V5Q49.js → csharp-BbNnLZWW.js} +10 -10
- package/dist/{docs-BQbH-a6R.d.ts → docs-BVs5MLfL.d.ts} +6 -7
- package/dist/{go-jtKybF5f.js → go-OFa_5xje.js} +4 -4
- package/dist/{http-ByTnZCdl.js → http-olFAYLFq.js} +8 -7
- package/dist/{icons-Ckod9aod.js → icons-DMkAA03z.js} +17 -1
- package/dist/index-BHy63Zur.d.ts +302 -0
- package/dist/index-Ct7H30x1.d.ts +1691 -0
- package/dist/{index-CxTvYsqI.d.ts → index-JJET_1EX.d.ts} +9 -9
- package/dist/index.d.ts +15 -15
- package/dist/index.js +28 -27
- package/dist/{java-CSfLt_jp.js → java-Bw0o13Wk.js} +5 -5
- package/dist/languages/cli.d.ts +11 -0
- package/dist/languages/cli.js +20 -0
- package/dist/languages/csharp.d.ts +10 -10
- package/dist/languages/csharp.js +7 -7
- package/dist/languages/go.d.ts +10 -10
- package/dist/languages/go.js +7 -7
- package/dist/languages/http.d.ts +10 -10
- package/dist/languages/http.js +17 -17
- package/dist/languages/index.d.ts +11 -11
- package/dist/languages/index.js +26 -25
- package/dist/languages/java.d.ts +10 -10
- package/dist/languages/java.js +7 -7
- package/dist/languages/python.d.ts +10 -10
- package/dist/languages/python.js +7 -7
- package/dist/languages/ruby.d.ts +10 -10
- package/dist/languages/ruby.js +7 -7
- package/dist/languages/typescript.d.ts +10 -10
- package/dist/languages/typescript.js +7 -7
- package/dist/languages-DW_T-Th6.js +28 -0
- package/dist/markdown/index.d.ts +5 -5
- package/dist/markdown/index.js +26 -25
- package/dist/markdown/md.js +2 -2
- package/dist/markdown/printer.d.ts +6 -6
- package/dist/markdown/printer.js +42 -40
- package/dist/markdown/utils.d.ts +5 -5
- package/dist/{markdown-V_bNKjle.d.ts → markdown-BXDwR9bo.d.ts} +2 -2
- package/dist/{markdown-CxdeWgjV.js → markdown-ZzVcn4kq.js} +3 -2
- package/dist/{method-CD_dwBsB.d.ts → method-B-AEMp1G.d.ts} +6 -6
- package/dist/{method-BPsNdtwS.js → method-Dktsfckf.js} +3 -3
- package/dist/{navigation-BlOvTCTX.d.ts → navigation-CEMwVe3s.d.ts} +3 -3
- package/dist/{overview-CVTaIlP6.d.ts → overview-BzJqrxc6.d.ts} +11 -11
- package/dist/{overview-BslKVsRE.js → overview-EkRigi6e.js} +11 -11
- package/dist/{primitives-CCj2Pn-o.js → primitives-BVaiiY63.js} +7 -7
- package/dist/{primitives-Da9sUCQo.d.ts → primitives-CDxnkX_O.d.ts} +12 -11
- package/dist/{properties-DhttBLpf.js → properties-BHvUHbcf.js} +3 -3
- package/dist/{properties-CEjSSMRr.d.ts → properties-fAurDGW2.d.ts} +5 -5
- package/dist/{python-BU7eaJMy.js → python-D8NWX7Cb.js} +4 -4
- package/dist/{routing-CUnVDpU-.d.ts → routing-BifRCZt4.d.ts} +7 -7
- package/dist/{routing-Dl0FprK1.js → routing-Fzn1XfX_.js} +7 -4
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{ruby-LiJ6VW-R.js → ruby-DOUaLhKJ.js} +5 -5
- package/dist/{sdk-CbNqFzOI.js → sdk-DrK2bq-v.js} +11 -9
- package/dist/{sdk-CenwRRXT.d.ts → sdk-DwyhWkhn.d.ts} +22 -22
- package/dist/{sidebar-ZNWRDHyv.js → sidebar-BLGIKgRI.js} +5 -5
- package/dist/{sidebar-CcX4PdH0.d.ts → sidebar-BbCq6Ibl.d.ts} +9 -9
- package/dist/{snippets-CO4kIovz.js → snippets-D4VhtZIC.js} +38 -36
- package/dist/snippets-VclrBnJJ.d.ts +53 -0
- package/dist/spec.d.ts +26 -26
- package/dist/spec.js +2 -2
- package/dist/{style-Vk87Pfuy.js → style-TeAZuiHh.js} +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/style.js +1 -1
- package/dist/styles/main.css +34 -15
- package/dist/styles/primitives.css +2 -1
- package/dist/styles/resets.css +1 -1
- package/dist/styles.css +37 -17
- package/dist/{typescript-C8J1uyak.js → typescript-DDa446mB.js} +6 -6
- package/dist/{use-components-DBx5LZk0.js → use-components-Dbin0y07.js} +1 -1
- package/dist/{utils-C12Fme2N.js → utils-BoRmEFRn.js} +2 -2
- package/dist/utils.d.ts +6 -6
- package/dist/utils.js +1 -1
- package/package.json +4 -4
- package/dist/breadcrumbs-DTHE6aca.d.ts +0 -25
- package/dist/component-generics-CXfH4VNh.d.ts +0 -30
- package/dist/docs-AUJrRqst.d.ts +0 -47
- package/dist/index-Bk5AWxiZ.d.ts +0 -274
- package/dist/index-CBfCrZxK.d.ts +0 -15
- package/dist/index-DUvl24AZ.d.ts +0 -274
- package/dist/languages-X8bJZjuW.js +0 -26
- package/dist/markdown-CqEZJJrZ.d.ts +0 -22
- package/dist/method-CkGKALRi.d.ts +0 -59
- package/dist/navigation-CXQA2RZo.d.ts +0 -29
- package/dist/overview-DFrenwhf.d.ts +0 -39
- package/dist/primitives-DiDzLHoK.d.ts +0 -104
- package/dist/properties-CXDSYNGL.d.ts +0 -54
- package/dist/sdk-CL6r5JlK.d.ts +0 -118
- package/dist/sidebar-BDwx6h14.d.ts +0 -36
- package/dist/snippets-DePfv2T6.d.ts +0 -51
- package/dist/snippets-ykHHsG1B.d.ts +0 -51
- /package/dist/{chunk-CAbhIZi1.js → chunk-Du3t87LU.js} +0 -0
- /package/dist/{component-generics-B6Fn47Mz.js → component-generics-CmIGbBLq.js} +0 -0
- /package/dist/{docs-CXqi26jB.js → docs-Bw-eLYjA.js} +0 -0
- /package/dist/{navigation-C5TN0SgC.js → navigation-By1sQl6M.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { f as Resource, h as Spec, l as Method, u as Model } from "./index-Ct7H30x1.js";
|
|
2
2
|
|
|
3
3
|
//#region src/routing.d.ts
|
|
4
4
|
declare namespace routing_d_exports {
|
|
5
5
|
export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
|
|
6
6
|
}
|
|
7
|
-
declare const Languages: readonly ["http", "node", "python", "go", "typescript", "terraform", "ruby", "java", "kotlin", "csharp", "php"];
|
|
7
|
+
declare const Languages: readonly ["http", "node", "python", "go", "typescript", "terraform", "ruby", "java", "kotlin", "csharp", "php", "cli"];
|
|
8
8
|
declare const SupportedLanguageSyntaxes: string[];
|
|
9
9
|
type DocsLanguage = (typeof Languages)[number];
|
|
10
10
|
declare const LanguageNames: Record<DocsLanguage, string>;
|
|
11
|
-
declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "
|
|
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
12
|
declare function isSupportedLanguage(language: string): language is DocsLanguage;
|
|
13
13
|
type ParsedStainlessPath = ReturnType<typeof parseStainlessPath>;
|
|
14
14
|
declare function parseStainlessPath(stainlessPath: string): {
|
|
@@ -25,10 +25,10 @@ declare function parseRoute(basePath: string, route: string): {
|
|
|
25
25
|
};
|
|
26
26
|
declare function generateRoute(basePath: string, language: string, stainlessPath: string): string | null;
|
|
27
27
|
type SpecTreeEntry = {
|
|
28
|
-
data:
|
|
28
|
+
data: Method | Resource | Model;
|
|
29
29
|
path: string[];
|
|
30
30
|
};
|
|
31
|
-
declare function walkTree(spec:
|
|
31
|
+
declare function walkTree(spec: Spec, includeModels?: boolean): Generator<SpecTreeEntry, void, any>;
|
|
32
32
|
type RouteEntry = {
|
|
33
33
|
title: string;
|
|
34
34
|
kind: SpecTreeEntry['data']['kind'];
|
|
@@ -41,11 +41,11 @@ declare function generateRouteList({
|
|
|
41
41
|
languages,
|
|
42
42
|
excludeLanguages
|
|
43
43
|
}: {
|
|
44
|
-
spec:
|
|
44
|
+
spec: Spec;
|
|
45
45
|
languages?: DocsLanguage[];
|
|
46
46
|
excludeLanguages?: DocsLanguage[];
|
|
47
47
|
}): RouteEntry[];
|
|
48
|
-
type ResourceOrMethod =
|
|
48
|
+
type ResourceOrMethod = Resource | Method;
|
|
49
49
|
declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
|
|
50
50
|
declare function expandToElement(el: HTMLElement | null): void;
|
|
51
51
|
declare function scrollToPath(stainlessPath: string): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
1
|
+
import { t as __exportAll } from "./chunk-Du3t87LU.js";
|
|
2
2
|
|
|
3
3
|
//#region src/routing.ts
|
|
4
4
|
var routing_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -30,7 +30,8 @@ const Languages = [
|
|
|
30
30
|
"java",
|
|
31
31
|
"kotlin",
|
|
32
32
|
"csharp",
|
|
33
|
-
"php"
|
|
33
|
+
"php",
|
|
34
|
+
"cli"
|
|
34
35
|
];
|
|
35
36
|
const SupportedLanguageSyntaxes = [
|
|
36
37
|
"http",
|
|
@@ -42,7 +43,8 @@ const SupportedLanguageSyntaxes = [
|
|
|
42
43
|
"ruby",
|
|
43
44
|
"java",
|
|
44
45
|
"kotlin",
|
|
45
|
-
"csharp"
|
|
46
|
+
"csharp",
|
|
47
|
+
"bash"
|
|
46
48
|
];
|
|
47
49
|
const LanguageNames = {
|
|
48
50
|
http: "HTTP",
|
|
@@ -55,7 +57,8 @@ const LanguageNames = {
|
|
|
55
57
|
kotlin: "Kotlin",
|
|
56
58
|
terraform: "Terraform",
|
|
57
59
|
csharp: "C#",
|
|
58
|
-
php: "PHP"
|
|
60
|
+
php: "PHP",
|
|
61
|
+
cli: "CLI Tool"
|
|
59
62
|
};
|
|
60
63
|
function getLanguageSnippet(language) {
|
|
61
64
|
return language === "http" ? "http.curl" : `${language}.default`;
|
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-
|
|
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-BifRCZt4.js";
|
|
2
2
|
export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, 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-
|
|
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";
|
|
2
2
|
|
|
3
3
|
export { LanguageNames, Languages, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
2
|
-
import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-
|
|
3
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
4
|
-
import { t as useComponents } from "./use-components-
|
|
5
|
-
import { t as style_default } from "./style-
|
|
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";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as useLanguage, l as useSpec, n as useContentPanelLayout, r as useDeclaration, s as useSettings } from "./docs-
|
|
2
|
-
import { n as useNavigation } from "./navigation-
|
|
3
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
4
|
-
import { t as useComponents } from "./use-components-
|
|
5
|
-
import { t as style_default } from "./style-
|
|
6
|
-
import { c as getLanguageSnippet, t as LanguageNames } from "./routing-
|
|
7
|
-
import { a as
|
|
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";
|
|
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";
|
|
@@ -32,7 +32,8 @@ const SDKSnippetLanguages = {
|
|
|
32
32
|
"terraform.default": { name: "Terraform" },
|
|
33
33
|
"ruby.default": { name: "Ruby" },
|
|
34
34
|
"csharp.default": { name: "C#" },
|
|
35
|
-
"php.default": { name: "PHP" }
|
|
35
|
+
"php.default": { name: "PHP" },
|
|
36
|
+
"cli.default": { name: "CLI tool" }
|
|
36
37
|
};
|
|
37
38
|
function SDKChildren({ paths, expand, depth }) {
|
|
38
39
|
const Docs = useComponents();
|
|
@@ -54,7 +55,7 @@ function SDKDeclaration({ path, expand, depth = 0 }) {
|
|
|
54
55
|
const nesting = useReferenceNesting();
|
|
55
56
|
const { selectedPath } = useNavigation();
|
|
56
57
|
if (decl.kind.endsWith("Reference")) {
|
|
57
|
-
const refId = "type" in decl && typeof decl.type !== "string" && "$ref" in decl.type ? decl.type["$ref"] : void 0;
|
|
58
|
+
const refId = "type" in decl && decl.type !== void 0 && typeof decl.type !== "string" && "$ref" in decl.type ? decl.type["$ref"] : void 0;
|
|
58
59
|
if (refId && refId !== path && !nesting.includes(refId)) return /* @__PURE__ */ jsx(ReferenceNestingContext.Provider, {
|
|
59
60
|
value: [...nesting, refId],
|
|
60
61
|
children: /* @__PURE__ */ jsx(SDKDeclaration, {
|
|
@@ -127,6 +128,7 @@ const snippetIcons = {
|
|
|
127
128
|
"java.default": JavaIcon,
|
|
128
129
|
"kotlin.default": KotlinIcon,
|
|
129
130
|
"csharp.default": CSharpIcon,
|
|
131
|
+
"cli.default": CLIIcon,
|
|
130
132
|
"php.default": CSharpIcon
|
|
131
133
|
};
|
|
132
134
|
function SDKIcon({ language }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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-BifRCZt4.js";
|
|
2
3
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import * as SDKJSON from "@stainless/sdk-json";
|
|
4
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/sdk.d.ts
|
|
7
7
|
type PropertyModelContextType = {
|
|
@@ -13,7 +13,7 @@ declare function usePropertyModel(): PropertyModelContextType;
|
|
|
13
13
|
type ReferenceNestingContextType = string[];
|
|
14
14
|
declare const ReferenceNestingContext: React$1.Context<ReferenceNestingContextType>;
|
|
15
15
|
declare function useReferenceNesting(): ReferenceNestingContextType;
|
|
16
|
-
type SDKSnippetLanguagesType = Record<
|
|
16
|
+
type SDKSnippetLanguagesType = Record<SnippetLanguage, {
|
|
17
17
|
name: string;
|
|
18
18
|
}>;
|
|
19
19
|
declare const SDKSnippetLanguages: SDKSnippetLanguagesType;
|
|
@@ -25,7 +25,7 @@ type TransformRequestSnippetFn = ({
|
|
|
25
25
|
language: DocsLanguage;
|
|
26
26
|
}) => string;
|
|
27
27
|
type SDKChildrenProps = {
|
|
28
|
-
paths:
|
|
28
|
+
paths: ID[];
|
|
29
29
|
expand?: boolean;
|
|
30
30
|
depth?: number;
|
|
31
31
|
};
|
|
@@ -33,7 +33,7 @@ declare function SDKChildren({
|
|
|
33
33
|
paths,
|
|
34
34
|
expand,
|
|
35
35
|
depth
|
|
36
|
-
}: SDKChildrenProps):
|
|
36
|
+
}: SDKChildrenProps): react_jsx_runtime49.JSX.Element;
|
|
37
37
|
type SDKDeclarationProps = {
|
|
38
38
|
path: string;
|
|
39
39
|
expand?: boolean;
|
|
@@ -43,54 +43,54 @@ declare function SDKDeclaration({
|
|
|
43
43
|
path,
|
|
44
44
|
expand,
|
|
45
45
|
depth
|
|
46
|
-
}: SDKDeclarationProps):
|
|
46
|
+
}: SDKDeclarationProps): react_jsx_runtime49.JSX.Element;
|
|
47
47
|
type SDKConstraintsProps = {
|
|
48
48
|
constraints?: Record<string, any>;
|
|
49
49
|
};
|
|
50
50
|
declare function SDKConstraints({
|
|
51
51
|
constraints
|
|
52
|
-
}: SDKConstraintsProps):
|
|
52
|
+
}: SDKConstraintsProps): react_jsx_runtime49.JSX.Element | undefined;
|
|
53
53
|
type SDKIconProps = {
|
|
54
|
-
language:
|
|
54
|
+
language: SnippetLanguage;
|
|
55
55
|
size?: number;
|
|
56
56
|
};
|
|
57
57
|
declare function SDKIcon({
|
|
58
58
|
language
|
|
59
|
-
}: SDKIconProps):
|
|
59
|
+
}: SDKIconProps): react_jsx_runtime49.JSX.Element | null;
|
|
60
60
|
type SDKRequestTitleProps = {
|
|
61
|
-
snippetLanguage:
|
|
61
|
+
snippetLanguage: SnippetLanguage;
|
|
62
62
|
};
|
|
63
63
|
declare function SDKRequestTitle({
|
|
64
64
|
snippetLanguage
|
|
65
|
-
}: SDKRequestTitleProps):
|
|
65
|
+
}: SDKRequestTitleProps): react_jsx_runtime49.JSX.Element;
|
|
66
66
|
type SDKExampleProps = {
|
|
67
|
-
method:
|
|
67
|
+
method: Method;
|
|
68
68
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
69
69
|
};
|
|
70
70
|
declare function SDKExample({
|
|
71
71
|
method,
|
|
72
72
|
transformRequestSnippet
|
|
73
|
-
}: SDKExampleProps):
|
|
73
|
+
}: SDKExampleProps): react_jsx_runtime49.JSX.Element;
|
|
74
74
|
type SDKMethodProps = {
|
|
75
|
-
method:
|
|
75
|
+
method: Method;
|
|
76
76
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
77
77
|
};
|
|
78
78
|
declare function SDKMethodHeader({
|
|
79
79
|
method
|
|
80
|
-
}: SDKMethodProps):
|
|
80
|
+
}: SDKMethodProps): react_jsx_runtime49.JSX.Element;
|
|
81
81
|
declare function SDKMethodInfo({
|
|
82
82
|
method
|
|
83
|
-
}: SDKMethodProps):
|
|
83
|
+
}: SDKMethodProps): react_jsx_runtime49.JSX.Element;
|
|
84
84
|
declare function SDKMethod({
|
|
85
85
|
method,
|
|
86
86
|
transformRequestSnippet
|
|
87
|
-
}: SDKMethodProps):
|
|
87
|
+
}: SDKMethodProps): react_jsx_runtime49.JSX.Element;
|
|
88
88
|
type SDKModelProps = {
|
|
89
|
-
model:
|
|
89
|
+
model: Model;
|
|
90
90
|
};
|
|
91
91
|
declare function SDKModel({
|
|
92
92
|
model
|
|
93
|
-
}: SDKModelProps):
|
|
93
|
+
}: SDKModelProps): react_jsx_runtime49.JSX.Element | null;
|
|
94
94
|
type SDKReferenceProps = {
|
|
95
95
|
stainlessPath: string;
|
|
96
96
|
children?: React$1.ReactNode;
|
|
@@ -98,7 +98,7 @@ type SDKReferenceProps = {
|
|
|
98
98
|
declare function SDKReference({
|
|
99
99
|
stainlessPath,
|
|
100
100
|
children
|
|
101
|
-
}: SDKReferenceProps): string | number | bigint | boolean |
|
|
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_runtime49.JSX.Element | null | undefined;
|
|
102
102
|
type SDKLanguageBlockProps = {
|
|
103
103
|
language: DocsLanguage;
|
|
104
104
|
version: string;
|
|
@@ -113,6 +113,6 @@ declare function SDKLanguageBlock({
|
|
|
113
113
|
version,
|
|
114
114
|
install,
|
|
115
115
|
links
|
|
116
|
-
}: SDKLanguageBlockProps):
|
|
116
|
+
}: SDKLanguageBlockProps): react_jsx_runtime49.JSX.Element;
|
|
117
117
|
//#endregion
|
|
118
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as useNavigation } from "./navigation-
|
|
2
|
-
import { t as useComponents } from "./use-components-
|
|
3
|
-
import { t as style_default } from "./style-
|
|
4
|
-
import { r as isResourceEmpty } from "./utils-
|
|
1
|
+
import { n as useNavigation } from "./navigation-By1sQl6M.js";
|
|
2
|
+
import { t as useComponents } from "./use-components-Dbin0y07.js";
|
|
3
|
+
import { t as style_default } from "./style-TeAZuiHh.js";
|
|
4
|
+
import { r as isResourceEmpty } from "./utils-BoRmEFRn.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
@@ -47,7 +47,7 @@ function SidebarMethod({ method }) {
|
|
|
47
47
|
iconOnly: true
|
|
48
48
|
}), /* @__PURE__ */ jsx(Docs.Link, {
|
|
49
49
|
stainlessPath: method.stainlessPath,
|
|
50
|
-
children: method.
|
|
50
|
+
children: method.title
|
|
51
51
|
})]
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { f as Resource, l as Method } from "./index-Ct7H30x1.js";
|
|
1
2
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import * as SDKJSON from "@stainless/sdk-json";
|
|
3
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/sidebar.d.ts
|
|
6
6
|
type SidebarExpanderProps = {
|
|
@@ -12,25 +12,25 @@ declare function SidebarExpander({
|
|
|
12
12
|
open,
|
|
13
13
|
summary,
|
|
14
14
|
children
|
|
15
|
-
}: SidebarExpanderProps):
|
|
15
|
+
}: SidebarExpanderProps): react_jsx_runtime61.JSX.Element;
|
|
16
16
|
type SidebarMethodProps = {
|
|
17
|
-
method:
|
|
17
|
+
method: Method;
|
|
18
18
|
};
|
|
19
19
|
declare function SidebarMethod({
|
|
20
20
|
method
|
|
21
|
-
}: SidebarMethodProps):
|
|
21
|
+
}: SidebarMethodProps): react_jsx_runtime61.JSX.Element;
|
|
22
22
|
type SidebarResourceProps = {
|
|
23
|
-
resource:
|
|
23
|
+
resource: Resource;
|
|
24
24
|
};
|
|
25
25
|
declare function SidebarResource({
|
|
26
26
|
resource
|
|
27
|
-
}: SidebarResourceProps):
|
|
27
|
+
}: SidebarResourceProps): react_jsx_runtime61.JSX.Element;
|
|
28
28
|
type SidebarProps = {
|
|
29
|
-
resources:
|
|
29
|
+
resources: Resource[];
|
|
30
30
|
selectedPath?: string;
|
|
31
31
|
};
|
|
32
32
|
declare function Sidebar({
|
|
33
33
|
resources
|
|
34
|
-
}: SidebarProps):
|
|
34
|
+
}: SidebarProps): react_jsx_runtime61.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as useLanguage, c as useSnippet, r as useDeclaration } from "./docs-
|
|
2
|
-
import { r as useHighlight } from "./markdown-
|
|
3
|
-
import { t as useComponents } from "./use-components-
|
|
4
|
-
import { t as style_default } from "./style-
|
|
1
|
+
import { a as useLanguage, c as useSnippet, r as useDeclaration } from "./docs-Bw-eLYjA.js";
|
|
2
|
+
import { r as useHighlight } from "./markdown-ZzVcn4kq.js";
|
|
3
|
+
import { t as useComponents } from "./use-components-Dbin0y07.js";
|
|
4
|
+
import { t as style_default } from "./style-TeAZuiHh.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import clsx from "clsx";
|
|
@@ -14,14 +14,8 @@ function SnippetCode({ content, language }) {
|
|
|
14
14
|
const highlighted = useHighlight(content, language || lang);
|
|
15
15
|
return /* @__PURE__ */ jsx("div", {
|
|
16
16
|
className: style_default.SnippetCode,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"data-stldocs-copy-content": true,
|
|
20
|
-
children: /* @__PURE__ */ jsx("code", {
|
|
21
|
-
className: language === "json" ? "snippet-json" : "snippet",
|
|
22
|
-
dangerouslySetInnerHTML: { __html: highlighted }
|
|
23
|
-
})
|
|
24
|
-
})
|
|
17
|
+
"data-stldocs-copy-content": true,
|
|
18
|
+
dangerouslySetInnerHTML: { __html: highlighted }
|
|
25
19
|
});
|
|
26
20
|
}
|
|
27
21
|
function SnippetContainer({ children }) {
|
|
@@ -51,31 +45,36 @@ function Snippet({ requestTitle, method, transformRequestSnippet }) {
|
|
|
51
45
|
const httpMethod = getHttpMethod(method.httpMethod);
|
|
52
46
|
return /* @__PURE__ */ jsxs(Docs.SnippetContainer, {
|
|
53
47
|
signature,
|
|
48
|
+
method,
|
|
54
49
|
children: [snippet && /* @__PURE__ */ jsx(Docs.SnippetRequestContainer, {
|
|
55
50
|
signature,
|
|
56
51
|
children: /* @__PURE__ */ jsxs("div", {
|
|
57
52
|
className: style_default.SnippetRequest,
|
|
58
53
|
"data-stldocs-copy-parent": true,
|
|
59
|
-
children: [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ jsxs("div", {
|
|
56
|
+
className: style_default.SnippetRequestTitle,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsxs("div", {
|
|
59
|
+
className: style_default.SnippetRequestTitleMethod,
|
|
60
|
+
children: [httpMethod && /* @__PURE__ */ jsx(Badge.HTTP, {
|
|
61
|
+
method: httpMethod,
|
|
62
|
+
iconOnly: true
|
|
63
|
+
}), /* @__PURE__ */ jsx("h3", { children: method.summary ?? method.title })]
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ jsx("div", {
|
|
66
|
+
className: style_default.SnippetRequestTitleContent,
|
|
67
|
+
children: requestTitle
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ jsx(Docs.SnippetButtons, { content: snippet })
|
|
70
|
+
]
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ jsx(Docs.SnippetCode, {
|
|
73
|
+
content: snippet,
|
|
74
|
+
signature
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ jsx(Docs.SnippetFooter, {})
|
|
77
|
+
]
|
|
79
78
|
})
|
|
80
79
|
}), responses && /* @__PURE__ */ jsx(Docs.SnippetResponse, { responses })]
|
|
81
80
|
});
|
|
@@ -92,7 +91,7 @@ function SnippetButtons({ content }) {
|
|
|
92
91
|
setTimeout(() => setCopyIcon(CopyIcon), 1e3);
|
|
93
92
|
}
|
|
94
93
|
return /* @__PURE__ */ jsx(Button, {
|
|
95
|
-
variant: "
|
|
94
|
+
variant: "outline",
|
|
96
95
|
"data-stldocs-snippet-copy": true,
|
|
97
96
|
children: /* @__PURE__ */ jsx(CopyButtonIcon, {
|
|
98
97
|
size: 16,
|
|
@@ -101,8 +100,11 @@ function SnippetButtons({ content }) {
|
|
|
101
100
|
})
|
|
102
101
|
});
|
|
103
102
|
}
|
|
103
|
+
function SnippetFooter() {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
104
106
|
function SnippetResponse({ responses }) {
|
|
105
|
-
const { SnippetCode
|
|
107
|
+
const { SnippetCode } = useComponents();
|
|
106
108
|
if (!responses) return null;
|
|
107
109
|
const mappedResponses = Object.keys(responses).map((key) => {
|
|
108
110
|
const responseContent = responses[key];
|
|
@@ -148,7 +150,7 @@ function SnippetResponse({ responses }) {
|
|
|
148
150
|
return /* @__PURE__ */ jsx("div", {
|
|
149
151
|
className: clsx(style_default.SnippetResponsePane, index === 0 && style_default.SnippetResponsePaneActive),
|
|
150
152
|
"data-snippet-response-pane-id": `snippet-response-tab-${responseCode}-${index}`,
|
|
151
|
-
children: /* @__PURE__ */ jsx(SnippetCode
|
|
153
|
+
children: /* @__PURE__ */ jsx(SnippetCode, {
|
|
152
154
|
content,
|
|
153
155
|
language
|
|
154
156
|
})
|
|
@@ -159,4 +161,4 @@ function SnippetResponse({ responses }) {
|
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
//#endregion
|
|
162
|
-
export {
|
|
164
|
+
export { SnippetFooter as a, SnippetContainer as i, SnippetButtons as n, SnippetRequestContainer as o, SnippetCode as r, SnippetResponse as s, Snippet as t };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { l as Method } from "./index-Ct7H30x1.js";
|
|
2
|
+
import { C as TransformRequestSnippetFn } from "./sdk-DwyhWkhn.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import * as react_jsx_runtime65 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/snippets.d.ts
|
|
7
|
+
type SnippetCodeProps = {
|
|
8
|
+
content: string;
|
|
9
|
+
signature?: string;
|
|
10
|
+
language?: string;
|
|
11
|
+
};
|
|
12
|
+
declare function SnippetCode({
|
|
13
|
+
content,
|
|
14
|
+
language
|
|
15
|
+
}: SnippetCodeProps): react_jsx_runtime65.JSX.Element;
|
|
16
|
+
type SnippetProps = {
|
|
17
|
+
method: Method;
|
|
18
|
+
requestTitle?: React$1.ReactNode;
|
|
19
|
+
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
20
|
+
};
|
|
21
|
+
type SnippetContainerProps = {
|
|
22
|
+
method: Method;
|
|
23
|
+
children: React$1.ReactNode;
|
|
24
|
+
signature?: string;
|
|
25
|
+
};
|
|
26
|
+
declare function SnippetContainer({
|
|
27
|
+
children
|
|
28
|
+
}: SnippetContainerProps): react_jsx_runtime65.JSX.Element;
|
|
29
|
+
type SnippetRequestContainerProps = {
|
|
30
|
+
children?: React$1.ReactNode;
|
|
31
|
+
signature?: string;
|
|
32
|
+
};
|
|
33
|
+
declare function SnippetRequestContainer({
|
|
34
|
+
children
|
|
35
|
+
}: SnippetRequestContainerProps): react_jsx_runtime65.JSX.Element;
|
|
36
|
+
declare function Snippet({
|
|
37
|
+
requestTitle,
|
|
38
|
+
method,
|
|
39
|
+
transformRequestSnippet
|
|
40
|
+
}: SnippetProps): react_jsx_runtime65.JSX.Element | null;
|
|
41
|
+
declare function SnippetButtons({
|
|
42
|
+
content
|
|
43
|
+
}: {
|
|
44
|
+
content: string;
|
|
45
|
+
}): react_jsx_runtime65.JSX.Element;
|
|
46
|
+
declare function SnippetFooter(): React$1.ReactNode;
|
|
47
|
+
declare function SnippetResponse({
|
|
48
|
+
responses
|
|
49
|
+
}: {
|
|
50
|
+
responses: Method['exampleResponses'];
|
|
51
|
+
}): react_jsx_runtime65.JSX.Element | null;
|
|
52
|
+
//#endregion
|
|
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 };
|
package/dist/spec.d.ts
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { f as Resource, g as SpecLanguage, h as Spec, l as Method, r as DeclarationNode, u as Model } from "./index-Ct7H30x1.js";
|
|
2
|
+
import { t as DocsLanguage } from "./routing-BifRCZt4.js";
|
|
3
3
|
|
|
4
4
|
//#region src/spec.d.ts
|
|
5
|
-
type SecurityScheme =
|
|
5
|
+
type SecurityScheme = Spec['security_schemes'][number];
|
|
6
6
|
interface SpecTransforms {
|
|
7
|
-
resource(resource:
|
|
8
|
-
method(method:
|
|
9
|
-
model(model:
|
|
10
|
-
declaration(decl:
|
|
7
|
+
resource(resource: Resource): Resource;
|
|
8
|
+
method(method: Method): Method;
|
|
9
|
+
model(model: Model): Model;
|
|
10
|
+
declaration(decl: DeclarationNode, language: SpecLanguage): DeclarationNode;
|
|
11
11
|
securityScheme(scheme: SecurityScheme): SecurityScheme;
|
|
12
12
|
snippet(snippet: string, language: string): string;
|
|
13
13
|
markdown(content?: string): string | undefined;
|
|
14
14
|
}
|
|
15
15
|
declare function defineTransforms(transforms?: Partial<SpecTransforms>): {
|
|
16
|
-
resource: (resource:
|
|
17
|
-
method: (method:
|
|
18
|
-
model: (model:
|
|
19
|
-
declaration: (decl:
|
|
16
|
+
resource: (resource: Resource) => Resource;
|
|
17
|
+
method: (method: Method) => Method;
|
|
18
|
+
model: (model: Model) => Model;
|
|
19
|
+
declaration: (decl: DeclarationNode, language: SpecLanguage) => DeclarationNode;
|
|
20
20
|
securityScheme: (scheme: SecurityScheme) => SecurityScheme;
|
|
21
21
|
snippet: (snippet: string, language: string) => string;
|
|
22
22
|
markdown: (content?: string) => string | undefined;
|
|
23
23
|
};
|
|
24
|
-
declare function generateNavigation(resource: Partial<
|
|
24
|
+
declare function generateNavigation(resource: Partial<Resource>): {
|
|
25
25
|
title: string | undefined;
|
|
26
26
|
name: string | undefined;
|
|
27
|
-
subresources: Record<string, Partial<
|
|
28
|
-
methods: Record<string, Partial<
|
|
29
|
-
models: Record<string, Partial<
|
|
27
|
+
subresources: Record<string, Partial<Resource>> | undefined;
|
|
28
|
+
methods: Record<string, Partial<Method>> | undefined;
|
|
29
|
+
models: Record<string, Partial<Model>> | undefined;
|
|
30
30
|
stainlessPath: string | undefined;
|
|
31
31
|
terraform: {
|
|
32
32
|
Name: string;
|
|
33
33
|
QualifiedName: string;
|
|
34
34
|
} | undefined;
|
|
35
35
|
};
|
|
36
|
-
declare function generateSpecForResource(spec:
|
|
37
|
-
declare function transform(spec:
|
|
36
|
+
declare function generateSpecForResource(spec: Spec, name: string, lang: DocsLanguage, transforms: SpecTransforms): Partial<Spec>;
|
|
37
|
+
declare function transform(spec: Spec, transforms: SpecTransforms): {
|
|
38
38
|
name: string;
|
|
39
|
-
lang: "
|
|
40
|
-
spec: Partial<
|
|
39
|
+
lang: "cli" | "csharp" | "go" | "http" | "java" | "kotlin" | "node" | "php" | "python" | "ruby" | "terraform" | "typescript";
|
|
40
|
+
spec: Partial<Spec>;
|
|
41
41
|
}[];
|
|
42
|
-
declare function split(spec:
|
|
42
|
+
declare function split(spec: Spec, transforms?: SpecTransforms): {
|
|
43
43
|
resources: ReturnType<typeof transform>;
|
|
44
44
|
navigation: {
|
|
45
|
-
languages: ("
|
|
45
|
+
languages: ("go" | "http" | "java" | "kotlin" | "node" | "python" | "ruby" | "terraform" | "typescript")[] | undefined;
|
|
46
46
|
resources: {
|
|
47
47
|
[k: string]: {
|
|
48
48
|
title: string | undefined;
|
|
49
49
|
name: string | undefined;
|
|
50
|
-
subresources: Record<string, Partial<
|
|
51
|
-
methods: Record<string, Partial<
|
|
52
|
-
models: Record<string, Partial<
|
|
50
|
+
subresources: Record<string, Partial<Resource>> | undefined;
|
|
51
|
+
methods: Record<string, Partial<Method>> | undefined;
|
|
52
|
+
models: Record<string, Partial<Model>> | undefined;
|
|
53
53
|
stainlessPath: string | undefined;
|
|
54
54
|
terraform: {
|
|
55
55
|
Name: string;
|
|
@@ -59,7 +59,7 @@ declare function split(spec: SDKJSON.Spec, transforms?: SpecTransforms): {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
-
declare function parseSpec(content: string):
|
|
63
|
-
declare function retrieve(apiKey: string, project: string, revision: string): Promise<
|
|
62
|
+
declare function parseSpec(content: string): Spec | undefined;
|
|
63
|
+
declare function retrieve(apiKey: string, project: string, revision: string): Promise<Spec | undefined>;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { SecurityScheme, SpecTransforms, defineTransforms, generateNavigation, generateSpecForResource, parseSpec, retrieve, split, transform };
|
package/dist/spec.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Languages } from "./routing-
|
|
2
|
-
import { r as isResourceEmpty } from "./utils-
|
|
1
|
+
import { n as Languages } from "./routing-Fzn1XfX_.js";
|
|
2
|
+
import { r as isResourceEmpty } from "./utils-BoRmEFRn.js";
|
|
3
3
|
|
|
4
4
|
//#region src/spec.ts
|
|
5
5
|
const defaultTransforms = {
|
|
@@ -48,7 +48,7 @@ var style_default = {
|
|
|
48
48
|
LiteralBoolean: "stldocs-literal-boolean",
|
|
49
49
|
Snippet: "stldocs-snippet",
|
|
50
50
|
SnippetCode: "stldocs-snippet-code",
|
|
51
|
-
|
|
51
|
+
SnippetFooter: "stldocs-snippet-footer",
|
|
52
52
|
SnippetRequest: "stldocs-snippet-request",
|
|
53
53
|
SnippetRequestTitle: "stldocs-snippet-request-title",
|
|
54
54
|
SnippetRequestTitleContent: "stldocs-snippet-request-title-content",
|
package/dist/style.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare const _default: {
|
|
|
48
48
|
readonly LiteralBoolean: "stldocs-literal-boolean";
|
|
49
49
|
readonly Snippet: "stldocs-snippet";
|
|
50
50
|
readonly SnippetCode: "stldocs-snippet-code";
|
|
51
|
-
readonly
|
|
51
|
+
readonly SnippetFooter: "stldocs-snippet-footer";
|
|
52
52
|
readonly SnippetRequest: "stldocs-snippet-request";
|
|
53
53
|
readonly SnippetRequestTitle: "stldocs-snippet-request-title";
|
|
54
54
|
readonly SnippetRequestTitleContent: "stldocs-snippet-request-title-content";
|
package/dist/style.js
CHANGED