@stainless-api/docs-ui 0.1.0-beta.79 → 0.1.0-beta.80
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/components/breadcrumbs.d.ts +1 -1
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +3 -2
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/primitives.d.ts +5 -3
- package/dist/components/primitives.js +2 -1
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk.d.ts +9 -5
- package/dist/components/sdk.js +15 -5
- package/dist/components/snippets.d.ts +1 -1
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/{index-BQHpxMul.d.ts → index-pvh-w1xa.d.ts} +151 -151
- package/dist/languages/cli.d.ts +1 -1
- package/dist/languages/csharp.d.ts +1 -1
- package/dist/languages/go.d.ts +1 -1
- package/dist/languages/http.d.ts +1 -1
- package/dist/languages/index.d.ts +1 -1
- package/dist/languages/java.d.ts +1 -1
- package/dist/languages/php.d.ts +1 -1
- package/dist/languages/python.d.ts +1 -1
- package/dist/languages/ruby.d.ts +1 -1
- package/dist/languages/terraform.d.ts +1 -1
- package/dist/languages/typescript.d.ts +1 -1
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/printer.d.ts +1 -1
- package/dist/markdown/utils.d.ts +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/spec.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { Badge, Expander, Input, InputProps, Join, Link, ListView, ListViewProps
|
|
|
2
2
|
import { SDKBreadcrumbs, generateApiBreadcrumbs } from "./breadcrumbs.js";
|
|
3
3
|
import { Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps } from "./method.js";
|
|
4
4
|
import { Property, PropertyDescription, PropertyDescriptionProps, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps } from "./properties.js";
|
|
5
|
-
import { DeclarationParentsContextType, PropertyModelContext, PropertyModelContextType, ReferenceNestingContext, ReferenceNestingContextType, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodNotImplemented, SDKMethodProps, SDKModel, SDKModelProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKSnippetLanguages, SDKSnippetLanguagesType, TransformRequestSnippetFn, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse } from "./sdk.js";
|
|
5
|
+
import { DeclarationParentsContextType, PropertyModelContext, PropertyModelContextType, ReferenceNestingContext, ReferenceNestingContextType, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKModel, SDKModelProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKSnippetLanguages, SDKSnippetLanguagesType, TransformRequestSnippetFn, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse } from "./sdk.js";
|
|
6
6
|
import { MultiSnippets, MultiSnippetsProps, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse } from "./snippets.js";
|
|
7
7
|
import { SDKMethodSummary, SDKMethodSummaryProps, SDKOverview, SDKOverviewProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps } from "./overview.js";
|
|
8
8
|
import { SDKSidebar, SDKSidebarProps } from "./sdk-sidebar.js";
|
|
@@ -10,7 +10,7 @@ import { StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSideba
|
|
|
10
10
|
|
|
11
11
|
//#region src/components/index.d.ts
|
|
12
12
|
declare namespace index_d_exports {
|
|
13
|
-
export { Badge, DeclarationParentsContextType, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, MultiSnippets, MultiSnippetsProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
13
|
+
export { Badge, DeclarationParentsContextType, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, MultiSnippets, MultiSnippetsProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
-
export { Badge, DeclarationParentsContextType, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, MultiSnippets, MultiSnippetsProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, index_d_exports as t, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
16
|
+
export { Badge, DeclarationParentsContextType, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, MultiSnippets, MultiSnippetsProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, index_d_exports as t, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
package/dist/components/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "../use-strict-context-L0c8JKg4.js";
|
|
|
3
3
|
import { Property, PropertyDescription, PropertyTitle, PropertyToggle } from "./properties.js";
|
|
4
4
|
import { Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute } from "./method.js";
|
|
5
5
|
import { Badge, Expander, Input, Join, Link, ListView, Markdown, ToggleButton, Tooltip, VirtualExpander } from "./primitives.js";
|
|
6
|
-
import { PropertyModelContext, ReferenceNestingContext, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodNotImplemented, SDKModel, SDKReference, SDKRequestTitle, SDKSnippetLanguages, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse } from "./sdk.js";
|
|
6
|
+
import { PropertyModelContext, ReferenceNestingContext, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKModel, SDKReference, SDKRequestTitle, SDKSnippetLanguages, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse } from "./sdk.js";
|
|
7
7
|
import { MultiSnippets, Snippet, SnippetButtons, SnippetCode, SnippetContainer, SnippetFooter, SnippetRequestContainer, SnippetResponse } from "./snippets.js";
|
|
8
8
|
import { SDKMethodSummary, SDKOverview, SDKResource, SDKResourceHeader, SDKRoot } from "./overview.js";
|
|
9
9
|
import { SDKBreadcrumbs, generateApiBreadcrumbs } from "./breadcrumbs.js";
|
|
@@ -41,6 +41,7 @@ var components_exports = /* @__PURE__ */ __exportAll({
|
|
|
41
41
|
SDKMethod: () => SDKMethod,
|
|
42
42
|
SDKMethodHeader: () => SDKMethodHeader,
|
|
43
43
|
SDKMethodInfo: () => SDKMethodInfo,
|
|
44
|
+
SDKMethodInfoContent: () => SDKMethodInfoContent,
|
|
44
45
|
SDKMethodNotImplemented: () => SDKMethodNotImplemented,
|
|
45
46
|
SDKMethodSummary: () => SDKMethodSummary,
|
|
46
47
|
SDKModel: () => SDKModel,
|
|
@@ -71,4 +72,4 @@ var components_exports = /* @__PURE__ */ __exportAll({
|
|
|
71
72
|
});
|
|
72
73
|
|
|
73
74
|
//#endregion
|
|
74
|
-
export { Badge, Expander, Input, Join, Link, ListView, Markdown, Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute, MultiSnippets, Property, PropertyDescription, PropertyModelContext, PropertyTitle, PropertyToggle, ReferenceNestingContext, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodNotImplemented, SDKMethodSummary, SDKModel, SDKOverview, SDKReference, SDKRequestTitle, SDKResource, SDKResourceHeader, SDKRoot, SDKSidebar, SDKSnippetLanguages, Snippet, SnippetButtons, SnippetCode, SnippetContainer, SnippetFooter, SnippetRequestContainer, SnippetResponse, StlSidebar, ToggleButton, Tooltip, VirtualExpander, generateApiBreadcrumbs, components_exports as t, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
75
|
+
export { Badge, Expander, Input, Join, Link, ListView, Markdown, Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute, MultiSnippets, Property, PropertyDescription, PropertyModelContext, PropertyTitle, PropertyToggle, ReferenceNestingContext, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodSummary, SDKModel, SDKOverview, SDKReference, SDKRequestTitle, SDKResource, SDKResourceHeader, SDKRoot, SDKSidebar, SDKSnippetLanguages, Snippet, SnippetButtons, SnippetCode, SnippetContainer, SnippetFooter, SnippetRequestContainer, SnippetResponse, StlSidebar, ToggleButton, Tooltip, VirtualExpander, generateApiBreadcrumbs, components_exports as t, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
@@ -37,9 +37,11 @@ declare function VirtualExpander({
|
|
|
37
37
|
children
|
|
38
38
|
}: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime0.JSX.Element;
|
|
39
39
|
declare function Markdown({
|
|
40
|
-
content
|
|
40
|
+
content,
|
|
41
|
+
style: cssStyle
|
|
41
42
|
}: {
|
|
42
43
|
content: string;
|
|
44
|
+
style?: React.CSSProperties;
|
|
43
45
|
}): "" | react_jsx_runtime0.JSX.Element | undefined;
|
|
44
46
|
type BadgeProps = {
|
|
45
47
|
id: string;
|
|
@@ -56,7 +58,7 @@ type TooltipProps = {
|
|
|
56
58
|
declare function Tooltip({
|
|
57
59
|
content,
|
|
58
60
|
children
|
|
59
|
-
}: TooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> |
|
|
61
|
+
}: TooltipProps): string | number | bigint | boolean | react_jsx_runtime0.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
60
62
|
type LinkProps = {
|
|
61
63
|
stainlessPath?: string;
|
|
62
64
|
scroll?: boolean;
|
|
@@ -67,7 +69,7 @@ declare function Link({
|
|
|
67
69
|
scroll,
|
|
68
70
|
children,
|
|
69
71
|
...props
|
|
70
|
-
}: LinkProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> |
|
|
72
|
+
}: LinkProps): string | number | bigint | boolean | react_jsx_runtime0.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
71
73
|
type InputProps = {
|
|
72
74
|
left?: ReactNode;
|
|
73
75
|
right?: ReactNode;
|
|
@@ -85,9 +85,10 @@ function VirtualExpander({ id, open: isOpen, muted, summary, children }) {
|
|
|
85
85
|
})]
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
function Markdown({ content }) {
|
|
88
|
+
function Markdown({ content, style: cssStyle }) {
|
|
89
89
|
const rendered = useRenderMarkdown(content);
|
|
90
90
|
return rendered && /* @__PURE__ */ jsx("div", {
|
|
91
|
+
style: cssStyle,
|
|
91
92
|
className: clsx(style_default.Markdown, style_default.Content, "stl-ui-prose"),
|
|
92
93
|
dangerouslySetInnerHTML: { __html: rendered }
|
|
93
94
|
});
|
package/dist/components/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as SnippetLanguage, c as ID, d as Method, f as Model, o as HasStainlessPath, t as BaseDeclaration } from "../index-
|
|
1
|
+
import { _ as SnippetLanguage, c as ID, d as Method, f as Model, o as HasStainlessPath, t as BaseDeclaration } from "../index-pvh-w1xa.js";
|
|
2
2
|
import { DocsLanguage } from "../routing.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -82,11 +82,15 @@ declare function SDKMethodHeader({
|
|
|
82
82
|
}: SDKMethodProps): react_jsx_runtime0.JSX.Element;
|
|
83
83
|
declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
|
|
84
84
|
declare function SDKMethodInfo({
|
|
85
|
-
method
|
|
86
|
-
|
|
85
|
+
method,
|
|
86
|
+
children
|
|
87
|
+
}: SDKMethodProps & {
|
|
88
|
+
children?: React$1.ReactNode;
|
|
89
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
87
90
|
declare function SDKMethodNotImplemented({
|
|
88
91
|
method
|
|
89
92
|
}: SDKMethodProps): react_jsx_runtime0.JSX.Element;
|
|
93
|
+
declare function SDKMethodInfoContent(_props: SDKMethodProps): React$1.ReactNode;
|
|
90
94
|
declare function SDKMethod({
|
|
91
95
|
method,
|
|
92
96
|
transformRequestSnippet
|
|
@@ -104,7 +108,7 @@ type SDKReferenceProps = {
|
|
|
104
108
|
declare function SDKReference({
|
|
105
109
|
stainlessPath,
|
|
106
110
|
children
|
|
107
|
-
}: 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> |
|
|
111
|
+
}: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime0.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;
|
|
108
112
|
type SDKLanguageBlockProps = {
|
|
109
113
|
language: DocsLanguage;
|
|
110
114
|
version: string;
|
|
@@ -121,4 +125,4 @@ declare function SDKLanguageBlock({
|
|
|
121
125
|
links
|
|
122
126
|
}: SDKLanguageBlockProps): react_jsx_runtime0.JSX.Element;
|
|
123
127
|
//#endregion
|
|
124
|
-
export { DeclarationParentsContextType, PropertyModelContext, PropertyModelContextType, ReferenceNestingContext, ReferenceNestingContextType, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodNotImplemented, SDKMethodProps, SDKModel, SDKModelProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKSnippetLanguages, SDKSnippetLanguagesType, TransformRequestSnippetFn, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
128
|
+
export { DeclarationParentsContextType, PropertyModelContext, PropertyModelContextType, ReferenceNestingContext, ReferenceNestingContextType, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKModel, SDKModelProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKSnippetLanguages, SDKSnippetLanguagesType, TransformRequestSnippetFn, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
package/dist/components/sdk.js
CHANGED
|
@@ -293,7 +293,7 @@ function useStreamingResponse(method) {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
function SDKMethodInfo({ method }) {
|
|
296
|
+
function SDKMethodInfo({ method, children }) {
|
|
297
297
|
const Docs = useComponents();
|
|
298
298
|
const Lang = useLanguageComponents();
|
|
299
299
|
const decl = useDeclaration(method.stainlessPath, true);
|
|
@@ -301,7 +301,10 @@ function SDKMethodInfo({ method }) {
|
|
|
301
301
|
const streamingResponseDecl = useDeclaration(streamingResponseID ?? "", false);
|
|
302
302
|
const spec = useSpec();
|
|
303
303
|
const language = useLanguage();
|
|
304
|
-
if (Lang.MethodInfo) return /* @__PURE__ */ jsx(Lang.MethodInfo, {
|
|
304
|
+
if (Lang.MethodInfo) return /* @__PURE__ */ jsx(Lang.MethodInfo, {
|
|
305
|
+
decl,
|
|
306
|
+
children
|
|
307
|
+
});
|
|
305
308
|
function shouldExpand(items) {
|
|
306
309
|
if (items.length > 1) return false;
|
|
307
310
|
const item = items[0];
|
|
@@ -319,7 +322,8 @@ function SDKMethodInfo({ method }) {
|
|
|
319
322
|
returns: responseChildren.length > 0 && /* @__PURE__ */ jsx(Docs.SDKChildren, {
|
|
320
323
|
expand: shouldExpand(responseChildren),
|
|
321
324
|
paths: responseChildren
|
|
322
|
-
})
|
|
325
|
+
}),
|
|
326
|
+
children
|
|
323
327
|
});
|
|
324
328
|
}
|
|
325
329
|
function SDKMethodNotImplemented({ method }) {
|
|
@@ -360,6 +364,9 @@ function SDKMethodNotImplemented({ method }) {
|
|
|
360
364
|
})]
|
|
361
365
|
});
|
|
362
366
|
}
|
|
367
|
+
function SDKMethodInfoContent(_props) {
|
|
368
|
+
return null;
|
|
369
|
+
}
|
|
363
370
|
function SDKMethod({ method, transformRequestSnippet }) {
|
|
364
371
|
const Docs = useComponents();
|
|
365
372
|
const decl = useDeclaration(method?.stainlessPath, false);
|
|
@@ -376,7 +383,10 @@ function SDKMethod({ method, transformRequestSnippet }) {
|
|
|
376
383
|
children: [
|
|
377
384
|
/* @__PURE__ */ jsxs("div", {
|
|
378
385
|
className: style_default.MethodContentColumn,
|
|
379
|
-
children: [/* @__PURE__ */ jsx(Docs.MethodDescription, { description: method.description }), /* @__PURE__ */ jsx(Docs.SDKMethodInfo, {
|
|
386
|
+
children: [/* @__PURE__ */ jsx(Docs.MethodDescription, { description: method.description }), /* @__PURE__ */ jsx(Docs.SDKMethodInfo, {
|
|
387
|
+
method,
|
|
388
|
+
children: /* @__PURE__ */ jsx(Docs.SDKMethodInfoContent, { method })
|
|
389
|
+
})]
|
|
380
390
|
}),
|
|
381
391
|
/* @__PURE__ */ jsx("div", {
|
|
382
392
|
className: clsx(style_default.MethodExample, "not-content", "stl-ui-not-prose"),
|
|
@@ -477,4 +487,4 @@ function SDKLanguageBlock({ language, version, install, links }) {
|
|
|
477
487
|
}
|
|
478
488
|
|
|
479
489
|
//#endregion
|
|
480
|
-
export { PropertyModelContext, ReferenceNestingContext, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodNotImplemented, SDKModel, SDKReference, SDKRequestTitle, SDKSnippetLanguages, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
490
|
+
export { PropertyModelContext, ReferenceNestingContext, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKModel, SDKReference, SDKRequestTitle, SDKSnippetLanguages, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Method, o as HasStainlessPath } from "../index-
|
|
1
|
+
import { d as Method, o as HasStainlessPath } from "../index-pvh-w1xa.js";
|
|
2
2
|
import { TransformRequestSnippetFn } from "./sdk.js";
|
|
3
3
|
import { useSnippet } from "../contexts/docs.js";
|
|
4
4
|
import "../contexts/index.js";
|
package/dist/contexts/docs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as Resource, u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-
|
|
1
|
+
import { h as Resource, u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-pvh-w1xa.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -323,157 +323,6 @@ type HttpAST_HttpTypeUnknown = HttpTypeUnknown;
|
|
|
323
323
|
declare namespace HttpAST {
|
|
324
324
|
export type { HttpAST_HttpDeclFunction as HttpDeclFunction, HttpAST_HttpDeclProperty as HttpDeclProperty, HttpAST_HttpDeclReference as HttpDeclReference, HttpAST_HttpDeclTypeAlias as HttpDeclTypeAlias, HttpAST_HttpDeclaration as HttpDeclaration, HttpAST_HttpIdentifier as HttpIdentifier, HttpAST_HttpType as HttpType, HttpAST_HttpTypeArray as HttpTypeArray, HttpAST_HttpTypeBinary as HttpTypeBinary, HttpAST_HttpTypeBoolean as HttpTypeBoolean, HttpAST_HttpTypeIntersection as HttpTypeIntersection, HttpAST_HttpTypeLiteral as HttpTypeLiteral, HttpAST_HttpTypeNull as HttpTypeNull, HttpAST_HttpTypeNumber as HttpTypeNumber, HttpAST_HttpTypeObject as HttpTypeObject, HttpAST_HttpTypeParameter as HttpTypeParameter, HttpAST_HttpTypeReference as HttpTypeReference, HttpAST_HttpTypeString as HttpTypeString, HttpAST_HttpTypeUndefined as HttpTypeUndefined, HttpAST_HttpTypeUnion as HttpTypeUnion, HttpAST_HttpTypeUnknown as HttpTypeUnknown };
|
|
325
325
|
}
|
|
326
|
-
type RubyDeclaration = RubyDeclFunction | RubyDeclClass | RubyDeclProperty | RubyDeclTypeAlias | RubyDeclReference | ErrorDecl;
|
|
327
|
-
type RubyDeclFunction = BaseDeclaration & {
|
|
328
|
-
kind: 'RubyDeclFunction';
|
|
329
|
-
ident: RubyIdentifier;
|
|
330
|
-
args: RubyFunctionArgument[];
|
|
331
|
-
qualified?: string;
|
|
332
|
-
returns?: RubyType;
|
|
333
|
-
paramsChildren?: ID[];
|
|
334
|
-
bodyParamsChildren?: Record<string, ID[]>;
|
|
335
|
-
responseChildren?: ID[];
|
|
336
|
-
};
|
|
337
|
-
type RubyFunctionArgument = {
|
|
338
|
-
kind: 'RubyFunctionArgument';
|
|
339
|
-
ident: RubyIdentifier;
|
|
340
|
-
optional: boolean;
|
|
341
|
-
type: RubyType;
|
|
342
|
-
};
|
|
343
|
-
type RubyDeclProperty = BaseDeclaration & {
|
|
344
|
-
kind: 'RubyDeclProperty';
|
|
345
|
-
ident: string;
|
|
346
|
-
docstring?: string;
|
|
347
|
-
title?: string;
|
|
348
|
-
location?: string;
|
|
349
|
-
type: RubyType;
|
|
350
|
-
constraints?: Constraints;
|
|
351
|
-
optional?: boolean;
|
|
352
|
-
examples?: unknown[];
|
|
353
|
-
schemaType?: SchemaType;
|
|
354
|
-
modelPath?: string;
|
|
355
|
-
childrenParentSchema?: SchemaType;
|
|
356
|
-
children?: ID[];
|
|
357
|
-
};
|
|
358
|
-
type RubyDeclClass = BaseDeclaration & {
|
|
359
|
-
kind: 'RubyDeclClass';
|
|
360
|
-
ident: string;
|
|
361
|
-
docstring?: string;
|
|
362
|
-
type: RubyType;
|
|
363
|
-
optional?: boolean;
|
|
364
|
-
children?: ID[];
|
|
365
|
-
};
|
|
366
|
-
type RubyDeclTypeAlias = BaseDeclaration & {
|
|
367
|
-
kind: 'RubyDeclTypeAlias';
|
|
368
|
-
docstring?: string;
|
|
369
|
-
ident: RubyIdentifier;
|
|
370
|
-
typeParameters?: RubyTypeParameter[];
|
|
371
|
-
type: RubyType;
|
|
372
|
-
children?: ID[];
|
|
373
|
-
};
|
|
374
|
-
type RubyTypeParameter = {
|
|
375
|
-
kind: 'RubyTypeParameter';
|
|
376
|
-
name: RubyIdentifier;
|
|
377
|
-
constraint?: RubyType;
|
|
378
|
-
default?: RubyType;
|
|
379
|
-
};
|
|
380
|
-
type RubyIdentifier = string;
|
|
381
|
-
type RubyDeclReference = BaseDeclaration & {
|
|
382
|
-
kind: 'RubyDeclReference';
|
|
383
|
-
docstring?: string;
|
|
384
|
-
type: RubyType;
|
|
385
|
-
children?: ID[];
|
|
386
|
-
};
|
|
387
|
-
type RubyType = RubyTypeReference | RubyTypeObject | RubyTypeArray | RubyTypeMap | RubyTypeString | RubyTypeInteger | RubyTypeFloat | RubyTypeBoolean | RubyTypeNull | RubyTypeBinary | RubyTypeUnknown | RubyTypeLiteral | RubyTypeUnion | RubyTypeIntersection | RubyTypeBuiltinClass;
|
|
388
|
-
type RubyTypeReference = BaseType & {
|
|
389
|
-
kind: 'RubyTypeReference';
|
|
390
|
-
ident: RubyIdentifier;
|
|
391
|
-
typeParameters?: RubyType[];
|
|
392
|
-
schemaType?: SchemaType;
|
|
393
|
-
$ref?: ID;
|
|
394
|
-
};
|
|
395
|
-
type RubyTypeObject = BaseType & {
|
|
396
|
-
kind: 'RubyTypeObject';
|
|
397
|
-
members: {
|
|
398
|
-
ident: RubyIdentifier;
|
|
399
|
-
optional?: boolean;
|
|
400
|
-
}[];
|
|
401
|
-
};
|
|
402
|
-
type RubyTypeMap = BaseType & {
|
|
403
|
-
kind: 'RubyTypeMap';
|
|
404
|
-
indexType: RubyType;
|
|
405
|
-
itemType: RubyType;
|
|
406
|
-
};
|
|
407
|
-
type RubyTypeArray = BaseType & {
|
|
408
|
-
kind: 'RubyTypeArray';
|
|
409
|
-
elementType: RubyType;
|
|
410
|
-
};
|
|
411
|
-
type RubyTypeUnion = BaseType & {
|
|
412
|
-
kind: 'RubyTypeUnion';
|
|
413
|
-
types: RubyType[];
|
|
414
|
-
};
|
|
415
|
-
type RubyTypeIntersection = BaseType & {
|
|
416
|
-
kind: 'RubyTypeIntersection';
|
|
417
|
-
types: RubyType[];
|
|
418
|
-
};
|
|
419
|
-
type RubyTypeLiteral = BaseType & {
|
|
420
|
-
kind: 'RubyTypeLiteral';
|
|
421
|
-
literal: string | boolean | number;
|
|
422
|
-
};
|
|
423
|
-
type RubyTypeBuiltinClass = BaseType & {
|
|
424
|
-
kind: 'RubyTypeBuiltinClass';
|
|
425
|
-
className: string;
|
|
426
|
-
};
|
|
427
|
-
type RubyTypeString = BaseType & {
|
|
428
|
-
kind: 'RubyTypeString';
|
|
429
|
-
};
|
|
430
|
-
type RubyTypeInteger = BaseType & {
|
|
431
|
-
kind: 'RubyTypeInteger';
|
|
432
|
-
};
|
|
433
|
-
type RubyTypeFloat = BaseType & {
|
|
434
|
-
kind: 'RubyTypeFloat';
|
|
435
|
-
};
|
|
436
|
-
type RubyTypeBoolean = BaseType & {
|
|
437
|
-
kind: 'RubyTypeBoolean';
|
|
438
|
-
};
|
|
439
|
-
type RubyTypeNull = BaseType & {
|
|
440
|
-
kind: 'RubyTypeNull';
|
|
441
|
-
};
|
|
442
|
-
type RubyTypeBinary = BaseType & {
|
|
443
|
-
kind: 'RubyTypeBinary';
|
|
444
|
-
contentType: string[];
|
|
445
|
-
};
|
|
446
|
-
type RubyTypeUnknown = BaseType & {
|
|
447
|
-
kind: 'RubyTypeUnknown';
|
|
448
|
-
};
|
|
449
|
-
type RubyAST_RubyDeclClass = RubyDeclClass;
|
|
450
|
-
type RubyAST_RubyDeclFunction = RubyDeclFunction;
|
|
451
|
-
type RubyAST_RubyDeclProperty = RubyDeclProperty;
|
|
452
|
-
type RubyAST_RubyDeclReference = RubyDeclReference;
|
|
453
|
-
type RubyAST_RubyDeclTypeAlias = RubyDeclTypeAlias;
|
|
454
|
-
type RubyAST_RubyDeclaration = RubyDeclaration;
|
|
455
|
-
type RubyAST_RubyFunctionArgument = RubyFunctionArgument;
|
|
456
|
-
type RubyAST_RubyIdentifier = RubyIdentifier;
|
|
457
|
-
type RubyAST_RubyType = RubyType;
|
|
458
|
-
type RubyAST_RubyTypeArray = RubyTypeArray;
|
|
459
|
-
type RubyAST_RubyTypeBinary = RubyTypeBinary;
|
|
460
|
-
type RubyAST_RubyTypeBoolean = RubyTypeBoolean;
|
|
461
|
-
type RubyAST_RubyTypeBuiltinClass = RubyTypeBuiltinClass;
|
|
462
|
-
type RubyAST_RubyTypeFloat = RubyTypeFloat;
|
|
463
|
-
type RubyAST_RubyTypeInteger = RubyTypeInteger;
|
|
464
|
-
type RubyAST_RubyTypeIntersection = RubyTypeIntersection;
|
|
465
|
-
type RubyAST_RubyTypeLiteral = RubyTypeLiteral;
|
|
466
|
-
type RubyAST_RubyTypeMap = RubyTypeMap;
|
|
467
|
-
type RubyAST_RubyTypeNull = RubyTypeNull;
|
|
468
|
-
type RubyAST_RubyTypeObject = RubyTypeObject;
|
|
469
|
-
type RubyAST_RubyTypeParameter = RubyTypeParameter;
|
|
470
|
-
type RubyAST_RubyTypeReference = RubyTypeReference;
|
|
471
|
-
type RubyAST_RubyTypeString = RubyTypeString;
|
|
472
|
-
type RubyAST_RubyTypeUnion = RubyTypeUnion;
|
|
473
|
-
type RubyAST_RubyTypeUnknown = RubyTypeUnknown;
|
|
474
|
-
declare namespace RubyAST {
|
|
475
|
-
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 };
|
|
476
|
-
}
|
|
477
326
|
/**
|
|
478
327
|
* Base declaration types for CLI command AST
|
|
479
328
|
*/
|
|
@@ -1108,6 +957,157 @@ type PythonAST_PythonTypeUnknown = PythonTypeUnknown;
|
|
|
1108
957
|
declare namespace PythonAST {
|
|
1109
958
|
export type { PythonAST_PythonDeclClass as PythonDeclClass, PythonAST_PythonDeclFunction as PythonDeclFunction, PythonAST_PythonDeclProperty as PythonDeclProperty, PythonAST_PythonDeclReference as PythonDeclReference, PythonAST_PythonDeclType as PythonDeclType, PythonAST_PythonDeclaration as PythonDeclaration, PythonAST_PythonFunctionParameter as PythonFunctionParameter, PythonAST_PythonGenericParameter as PythonGenericParameter, PythonAST_PythonIdentifier as PythonIdentifier, PythonAST_PythonLiteral as PythonLiteral, PythonAST_PythonType as PythonType, PythonAST_PythonTypeAny as PythonTypeAny, PythonAST_PythonTypeArray as PythonTypeArray, PythonAST_PythonTypeBool as PythonTypeBool, PythonAST_PythonTypeClass as PythonTypeClass, PythonAST_PythonTypeFloat as PythonTypeFloat, PythonAST_PythonTypeInt as PythonTypeInt, PythonAST_PythonTypeLiteral as PythonTypeLiteral, PythonAST_PythonTypeMap as PythonTypeMap, PythonAST_PythonTypeReference as PythonTypeReference, PythonAST_PythonTypeString as PythonTypeString, PythonAST_PythonTypeUnknown as PythonTypeUnknown };
|
|
1110
959
|
}
|
|
960
|
+
type RubyDeclaration = RubyDeclFunction | RubyDeclClass | RubyDeclProperty | RubyDeclTypeAlias | RubyDeclReference | ErrorDecl;
|
|
961
|
+
type RubyDeclFunction = BaseDeclaration & {
|
|
962
|
+
kind: 'RubyDeclFunction';
|
|
963
|
+
ident: RubyIdentifier;
|
|
964
|
+
args: RubyFunctionArgument[];
|
|
965
|
+
qualified?: string;
|
|
966
|
+
returns?: RubyType;
|
|
967
|
+
paramsChildren?: ID[];
|
|
968
|
+
bodyParamsChildren?: Record<string, ID[]>;
|
|
969
|
+
responseChildren?: ID[];
|
|
970
|
+
};
|
|
971
|
+
type RubyFunctionArgument = {
|
|
972
|
+
kind: 'RubyFunctionArgument';
|
|
973
|
+
ident: RubyIdentifier;
|
|
974
|
+
optional: boolean;
|
|
975
|
+
type: RubyType;
|
|
976
|
+
};
|
|
977
|
+
type RubyDeclProperty = BaseDeclaration & {
|
|
978
|
+
kind: 'RubyDeclProperty';
|
|
979
|
+
ident: string;
|
|
980
|
+
docstring?: string;
|
|
981
|
+
title?: string;
|
|
982
|
+
location?: string;
|
|
983
|
+
type: RubyType;
|
|
984
|
+
constraints?: Constraints;
|
|
985
|
+
optional?: boolean;
|
|
986
|
+
examples?: unknown[];
|
|
987
|
+
schemaType?: SchemaType;
|
|
988
|
+
modelPath?: string;
|
|
989
|
+
childrenParentSchema?: SchemaType;
|
|
990
|
+
children?: ID[];
|
|
991
|
+
};
|
|
992
|
+
type RubyDeclClass = BaseDeclaration & {
|
|
993
|
+
kind: 'RubyDeclClass';
|
|
994
|
+
ident: string;
|
|
995
|
+
docstring?: string;
|
|
996
|
+
type: RubyType;
|
|
997
|
+
optional?: boolean;
|
|
998
|
+
children?: ID[];
|
|
999
|
+
};
|
|
1000
|
+
type RubyDeclTypeAlias = BaseDeclaration & {
|
|
1001
|
+
kind: 'RubyDeclTypeAlias';
|
|
1002
|
+
docstring?: string;
|
|
1003
|
+
ident: RubyIdentifier;
|
|
1004
|
+
typeParameters?: RubyTypeParameter[];
|
|
1005
|
+
type: RubyType;
|
|
1006
|
+
children?: ID[];
|
|
1007
|
+
};
|
|
1008
|
+
type RubyTypeParameter = {
|
|
1009
|
+
kind: 'RubyTypeParameter';
|
|
1010
|
+
name: RubyIdentifier;
|
|
1011
|
+
constraint?: RubyType;
|
|
1012
|
+
default?: RubyType;
|
|
1013
|
+
};
|
|
1014
|
+
type RubyIdentifier = string;
|
|
1015
|
+
type RubyDeclReference = BaseDeclaration & {
|
|
1016
|
+
kind: 'RubyDeclReference';
|
|
1017
|
+
docstring?: string;
|
|
1018
|
+
type: RubyType;
|
|
1019
|
+
children?: ID[];
|
|
1020
|
+
};
|
|
1021
|
+
type RubyType = RubyTypeReference | RubyTypeObject | RubyTypeArray | RubyTypeMap | RubyTypeString | RubyTypeInteger | RubyTypeFloat | RubyTypeBoolean | RubyTypeNull | RubyTypeBinary | RubyTypeUnknown | RubyTypeLiteral | RubyTypeUnion | RubyTypeIntersection | RubyTypeBuiltinClass;
|
|
1022
|
+
type RubyTypeReference = BaseType & {
|
|
1023
|
+
kind: 'RubyTypeReference';
|
|
1024
|
+
ident: RubyIdentifier;
|
|
1025
|
+
typeParameters?: RubyType[];
|
|
1026
|
+
schemaType?: SchemaType;
|
|
1027
|
+
$ref?: ID;
|
|
1028
|
+
};
|
|
1029
|
+
type RubyTypeObject = BaseType & {
|
|
1030
|
+
kind: 'RubyTypeObject';
|
|
1031
|
+
members: {
|
|
1032
|
+
ident: RubyIdentifier;
|
|
1033
|
+
optional?: boolean;
|
|
1034
|
+
}[];
|
|
1035
|
+
};
|
|
1036
|
+
type RubyTypeMap = BaseType & {
|
|
1037
|
+
kind: 'RubyTypeMap';
|
|
1038
|
+
indexType: RubyType;
|
|
1039
|
+
itemType: RubyType;
|
|
1040
|
+
};
|
|
1041
|
+
type RubyTypeArray = BaseType & {
|
|
1042
|
+
kind: 'RubyTypeArray';
|
|
1043
|
+
elementType: RubyType;
|
|
1044
|
+
};
|
|
1045
|
+
type RubyTypeUnion = BaseType & {
|
|
1046
|
+
kind: 'RubyTypeUnion';
|
|
1047
|
+
types: RubyType[];
|
|
1048
|
+
};
|
|
1049
|
+
type RubyTypeIntersection = BaseType & {
|
|
1050
|
+
kind: 'RubyTypeIntersection';
|
|
1051
|
+
types: RubyType[];
|
|
1052
|
+
};
|
|
1053
|
+
type RubyTypeLiteral = BaseType & {
|
|
1054
|
+
kind: 'RubyTypeLiteral';
|
|
1055
|
+
literal: string | boolean | number;
|
|
1056
|
+
};
|
|
1057
|
+
type RubyTypeBuiltinClass = BaseType & {
|
|
1058
|
+
kind: 'RubyTypeBuiltinClass';
|
|
1059
|
+
className: string;
|
|
1060
|
+
};
|
|
1061
|
+
type RubyTypeString = BaseType & {
|
|
1062
|
+
kind: 'RubyTypeString';
|
|
1063
|
+
};
|
|
1064
|
+
type RubyTypeInteger = BaseType & {
|
|
1065
|
+
kind: 'RubyTypeInteger';
|
|
1066
|
+
};
|
|
1067
|
+
type RubyTypeFloat = BaseType & {
|
|
1068
|
+
kind: 'RubyTypeFloat';
|
|
1069
|
+
};
|
|
1070
|
+
type RubyTypeBoolean = BaseType & {
|
|
1071
|
+
kind: 'RubyTypeBoolean';
|
|
1072
|
+
};
|
|
1073
|
+
type RubyTypeNull = BaseType & {
|
|
1074
|
+
kind: 'RubyTypeNull';
|
|
1075
|
+
};
|
|
1076
|
+
type RubyTypeBinary = BaseType & {
|
|
1077
|
+
kind: 'RubyTypeBinary';
|
|
1078
|
+
contentType: string[];
|
|
1079
|
+
};
|
|
1080
|
+
type RubyTypeUnknown = BaseType & {
|
|
1081
|
+
kind: 'RubyTypeUnknown';
|
|
1082
|
+
};
|
|
1083
|
+
type RubyAST_RubyDeclClass = RubyDeclClass;
|
|
1084
|
+
type RubyAST_RubyDeclFunction = RubyDeclFunction;
|
|
1085
|
+
type RubyAST_RubyDeclProperty = RubyDeclProperty;
|
|
1086
|
+
type RubyAST_RubyDeclReference = RubyDeclReference;
|
|
1087
|
+
type RubyAST_RubyDeclTypeAlias = RubyDeclTypeAlias;
|
|
1088
|
+
type RubyAST_RubyDeclaration = RubyDeclaration;
|
|
1089
|
+
type RubyAST_RubyFunctionArgument = RubyFunctionArgument;
|
|
1090
|
+
type RubyAST_RubyIdentifier = RubyIdentifier;
|
|
1091
|
+
type RubyAST_RubyType = RubyType;
|
|
1092
|
+
type RubyAST_RubyTypeArray = RubyTypeArray;
|
|
1093
|
+
type RubyAST_RubyTypeBinary = RubyTypeBinary;
|
|
1094
|
+
type RubyAST_RubyTypeBoolean = RubyTypeBoolean;
|
|
1095
|
+
type RubyAST_RubyTypeBuiltinClass = RubyTypeBuiltinClass;
|
|
1096
|
+
type RubyAST_RubyTypeFloat = RubyTypeFloat;
|
|
1097
|
+
type RubyAST_RubyTypeInteger = RubyTypeInteger;
|
|
1098
|
+
type RubyAST_RubyTypeIntersection = RubyTypeIntersection;
|
|
1099
|
+
type RubyAST_RubyTypeLiteral = RubyTypeLiteral;
|
|
1100
|
+
type RubyAST_RubyTypeMap = RubyTypeMap;
|
|
1101
|
+
type RubyAST_RubyTypeNull = RubyTypeNull;
|
|
1102
|
+
type RubyAST_RubyTypeObject = RubyTypeObject;
|
|
1103
|
+
type RubyAST_RubyTypeParameter = RubyTypeParameter;
|
|
1104
|
+
type RubyAST_RubyTypeReference = RubyTypeReference;
|
|
1105
|
+
type RubyAST_RubyTypeString = RubyTypeString;
|
|
1106
|
+
type RubyAST_RubyTypeUnion = RubyTypeUnion;
|
|
1107
|
+
type RubyAST_RubyTypeUnknown = RubyTypeUnknown;
|
|
1108
|
+
declare namespace RubyAST {
|
|
1109
|
+
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 };
|
|
1110
|
+
}
|
|
1111
1111
|
type PrimitiveNumberProps$1 = {
|
|
1112
1112
|
oneof?: (number | bigint)[];
|
|
1113
1113
|
default: number | bigint | null;
|
package/dist/languages/cli.d.ts
CHANGED
package/dist/languages/go.d.ts
CHANGED
package/dist/languages/http.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Type, h as Resource, i as DeclarationNode } from "../index-
|
|
1
|
+
import { S as Type, h as Resource, i as DeclarationNode } from "../index-pvh-w1xa.js";
|
|
2
2
|
import { PropertyProps } from "../components/properties.js";
|
|
3
3
|
import { t as typescript_d_exports } from "./typescript.js";
|
|
4
4
|
import { t as java_d_exports } from "./java.js";
|
package/dist/languages/java.d.ts
CHANGED
package/dist/languages/php.d.ts
CHANGED
package/dist/languages/ruby.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as Resource$1, x as TerraformAST } from "../index-
|
|
1
|
+
import { h as Resource$1, x as TerraformAST } from "../index-pvh-w1xa.js";
|
|
2
2
|
import { PropertyFn } from "./index.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
package/dist/markdown/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Method, f as Model, h as Resource, i as DeclarationNode } from "../index-
|
|
1
|
+
import { d as Method, f as Model, h as Resource, i as DeclarationNode } from "../index-pvh-w1xa.js";
|
|
2
2
|
import { EnvironmentType } from "./utils.js";
|
|
3
3
|
import { t as printer_d_exports } from "./printer.js";
|
|
4
4
|
import { Node } from "@markdoc/markdoc";
|
package/dist/markdown/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-
|
|
1
|
+
import { u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-pvh-w1xa.js";
|
|
2
2
|
import { DocsLanguage } from "../routing.js";
|
|
3
3
|
import { TransformRequestSnippetFn } from "../components/sdk.js";
|
|
4
4
|
|
package/dist/routing.d.ts
CHANGED
package/dist/spec.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Method, f as Model, h as Resource, i as DeclarationNode, v as Spec, y as SpecLanguage } from "./index-
|
|
1
|
+
import { d as Method, f as Model, h as Resource, i as DeclarationNode, v as Spec, y as SpecLanguage } from "./index-pvh-w1xa.js";
|
|
2
2
|
import { DocsLanguage } from "./routing.js";
|
|
3
3
|
|
|
4
4
|
//#region src/spec.d.ts
|
package/dist/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stainless-api/docs-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.80",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsdown": "^0.20.3",
|
|
31
31
|
"typescript": "5.9.3",
|
|
32
32
|
"@stainless/eslint-config": "0.1.0-beta.1",
|
|
33
|
-
"@stainless/sdk-json": "^0.1.0-beta.
|
|
33
|
+
"@stainless/sdk-json": "^0.1.0-beta.9"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|