@stainless-api/docs-ui 0.1.0-beta.44 → 0.1.0-beta.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/{component-generics-ofm2M82q.d.ts → component-generics-CDshlns_.d.ts} +2 -2
  2. package/dist/components/MaskedInput.d.ts +14 -0
  3. package/dist/components/MaskedInput.js +76 -0
  4. package/dist/components/breadcrumbs.d.ts +1 -1
  5. package/dist/components/breadcrumbs.js +13 -13
  6. package/dist/components/icons.d.ts +16 -11
  7. package/dist/components/icons.js +2 -2
  8. package/dist/components/index.d.ts +11 -11
  9. package/dist/components/index.js +14 -14
  10. package/dist/components/method.d.ts +1 -1
  11. package/dist/components/method.js +13 -13
  12. package/dist/components/overview.d.ts +1 -1
  13. package/dist/components/overview.js +13 -13
  14. package/dist/components/primitives.d.ts +1 -1
  15. package/dist/components/primitives.js +13 -13
  16. package/dist/components/properties.d.ts +2 -2
  17. package/dist/components/properties.js +14 -14
  18. package/dist/components/sdk.d.ts +2 -2
  19. package/dist/components/sdk.js +13 -13
  20. package/dist/components/sidebar.d.ts +1 -1
  21. package/dist/components/sidebar.js +13 -13
  22. package/dist/components/snippets.d.ts +4 -4
  23. package/dist/components/snippets.js +14 -14
  24. package/dist/contexts/component-generics.d.ts +1 -1
  25. package/dist/contexts/component-generics.js +1 -1
  26. package/dist/contexts/component-types.d.ts +11 -11
  27. package/dist/contexts/component.d.ts +14 -14
  28. package/dist/contexts/component.js +13 -13
  29. package/dist/contexts/docs.d.ts +1 -1
  30. package/dist/contexts/docs.js +1 -1
  31. package/dist/contexts/index.d.ts +18 -18
  32. package/dist/contexts/index.js +13 -13
  33. package/dist/contexts/markdown.d.ts +1 -1
  34. package/dist/contexts/markdown.js +2 -2
  35. package/dist/contexts/navigation.d.ts +2 -2
  36. package/dist/contexts/navigation.js +1 -1
  37. package/dist/contexts/search.d.ts +3 -3
  38. package/dist/contexts/search.js +13 -13
  39. package/dist/contexts/use-components.d.ts +10 -10
  40. package/dist/contexts/use-components.js +2 -2
  41. package/dist/{contexts-2HSNy-rE.js → contexts-HUUrbJAJ.js} +83 -91
  42. package/dist/{docs-BvahWQ28.d.ts → docs-OpxXmURB.d.ts} +4 -3
  43. package/dist/{icons-yb-Jhkmg.js → icons-Ckod9aod.js} +117 -1
  44. package/dist/{index-BYYbjUs7.d.ts → index-BhNE0nV0.d.ts} +9 -9
  45. package/dist/{index--xwumGAy.d.ts → index-Ck2YxPj3.d.ts} +6 -6
  46. package/dist/{index-C6aGoMyw.d.ts → index-CkgJvy8B.d.ts} +26 -26
  47. package/dist/index.d.ts +20 -20
  48. package/dist/index.js +13 -13
  49. package/dist/languages/go.d.ts +11 -11
  50. package/dist/languages/go.js +13 -13
  51. package/dist/languages/http.d.ts +11 -11
  52. package/dist/languages/http.js +13 -13
  53. package/dist/languages/index.d.ts +11 -11
  54. package/dist/languages/index.js +13 -13
  55. package/dist/languages/java.d.ts +11 -11
  56. package/dist/languages/java.js +13 -13
  57. package/dist/languages/python.d.ts +11 -11
  58. package/dist/languages/python.js +13 -13
  59. package/dist/languages/ruby.d.ts +11 -11
  60. package/dist/languages/ruby.js +13 -13
  61. package/dist/languages/typescript.d.ts +11 -11
  62. package/dist/languages/typescript.js +13 -13
  63. package/dist/markdown/index.d.ts +3 -3
  64. package/dist/markdown/index.js +13 -13
  65. package/dist/markdown/md.js +1 -1
  66. package/dist/markdown/utils.d.ts +3 -3
  67. package/dist/markdown/utils.js +1 -1
  68. package/dist/{markdown-R3kFvQtF.d.ts → markdown-Ck30kC3p.d.ts} +2 -2
  69. package/dist/{markdown-Diyg-eof.js → markdown-sJ2VePdG.js} +1 -1
  70. package/dist/{method-DigRMq69.d.ts → method-BpjXzDDH.d.ts} +7 -7
  71. package/dist/{navigation-qVV3i91K.d.ts → navigation-D4bzWy1c.d.ts} +3 -3
  72. package/dist/{overview-CAseV8q5.d.ts → overview-B24Fc4cH.d.ts} +6 -6
  73. package/dist/{primitives-DKSwbXPi.d.ts → primitives-DwXr-yo5.d.ts} +11 -13
  74. package/dist/{properties-CqXos0BH.d.ts → properties-wSrkbEk2.d.ts} +13 -5
  75. package/dist/{routing-DNN8R6bZ.d.ts → routing-Bcos-Z2q.d.ts} +2 -2
  76. package/dist/{routing-qs2YNG9o.js → routing-GrDalgAW.js} +7 -3
  77. package/dist/routing.d.ts +1 -1
  78. package/dist/routing.js +1 -1
  79. package/dist/{sdk-Rlr-Kw5_.d.ts → sdk-CDNNOl31.d.ts} +14 -15
  80. package/dist/search/index.d.ts +6 -6
  81. package/dist/search/index.js +15 -15
  82. package/dist/search/mcp.d.ts +13 -0
  83. package/dist/search/mcp.js +45 -0
  84. package/dist/search/providers/algolia.d.ts +2 -2
  85. package/dist/search/providers/algolia.js +13 -13
  86. package/dist/search/providers/fuse.d.ts +2 -2
  87. package/dist/search/providers/fuse.js +13 -13
  88. package/dist/search/providers/pagefind.d.ts +2 -2
  89. package/dist/search/providers/pagefind.js +1 -1
  90. package/dist/search/providers/walker.d.ts +2 -2
  91. package/dist/search/providers/walker.js +13 -13
  92. package/dist/search/types.d.ts +2 -2
  93. package/dist/search/types.js +1 -1
  94. package/dist/{search-1-mboDcE.d.ts → search-Dbhp1LKw.d.ts} +3 -3
  95. package/dist/{sidebar-C1v1VnyN.d.ts → sidebar-BzEJezB8.d.ts} +5 -5
  96. package/dist/{snippets-CmrvrMkn.d.ts → snippets-BFLGJy-C.d.ts} +13 -8
  97. package/dist/spec.d.ts +3 -3
  98. package/dist/spec.js +2 -2
  99. package/dist/{style-BhhgPVF6.js → style-B-5NIls4.js} +4 -0
  100. package/dist/{style-p4qTfnmO.d.ts → style-BJCwZ-Wf.d.ts} +4 -0
  101. package/dist/style.d.ts +1 -1
  102. package/dist/style.js +1 -1
  103. package/dist/styles/main.css +11 -8
  104. package/dist/styles/primitives.css +37 -2
  105. package/dist/styles.css +48 -10
  106. package/dist/{types-BSnSUlkN.d.ts → types-1rnoIVpZ.d.ts} +1 -1
  107. package/dist/{use-components-BHEwm0mE.js → use-components-DG6NAdUT.js} +1 -1
  108. package/dist/{utils-FnJ4tyuN.js → utils-CqR0JQ5q.js} +2 -2
  109. package/dist/{utils-C5oXAzyN.d.ts → utils-gEMvF6KH.d.ts} +2 -2
  110. package/dist/utils.d.ts +1 -1
  111. package/dist/utils.js +2 -2
  112. package/package.json +4 -4
  113. /package/dist/{breadcrumbs-BWIz-BrA.d.ts → breadcrumbs-ChGb9Ckx.d.ts} +0 -0
  114. /package/dist/{chunk-Bf_Gc_jT.js → chunk-KfF3XP4c.js} +0 -0
  115. /package/dist/{component-generics-D3ybuN5r.js → component-generics-4gg5TFK4.js} +0 -0
  116. /package/dist/{docs-CopwX9a7.js → docs-C2xNNHgT.js} +0 -0
  117. /package/dist/{md-DxiV1_vy.js → md-Ce-Zhp9O.js} +0 -0
  118. /package/dist/{navigation-CGr5_w6z.js → navigation-BrIapKIN.js} +0 -0
  119. /package/dist/{pagefind-BaK1krMe.js → pagefind-CKBforii.js} +0 -0
  120. /package/dist/{types-u0fUIalc.js → types-Ci-27DYJ.js} +0 -0
  121. /package/dist/{utils-D43p_yTd.d.ts → utils-CI9byvCc.d.ts} +0 -0
  122. /package/dist/{utils-Jo_o4DX9.js → utils-jPbBiaDE.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
1
+ import { t as DocsLanguage } from "./routing-Bcos-Z2q.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime21 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime28 from "react/jsx-runtime";
4
4
  import * as SDKJSON from "@stainless/sdk-json";
5
5
 
6
6
  //#region src/components/sdk.d.ts
@@ -15,7 +15,6 @@ declare const ReferenceNestingContext: React$1.Context<ReferenceNestingContextTy
15
15
  declare function useReferenceNesting(): ReferenceNestingContextType;
16
16
  type SDKSnippetLanguagesType = Record<SDKJSON.SnippetLanguage, {
17
17
  name: string;
18
- icon: string;
19
18
  }>;
20
19
  declare const SDKSnippetLanguages: SDKSnippetLanguagesType;
21
20
  type TransformRequestSnippetFn = ({
@@ -34,7 +33,7 @@ declare function SDKChildren({
34
33
  paths,
35
34
  expand,
36
35
  depth
37
- }: SDKChildrenProps): react_jsx_runtime21.JSX.Element;
36
+ }: SDKChildrenProps): react_jsx_runtime28.JSX.Element;
38
37
  type SDKDeclarationProps = {
39
38
  path: string;
40
39
  expand?: boolean;
@@ -44,26 +43,26 @@ declare function SDKDeclaration({
44
43
  path,
45
44
  expand,
46
45
  depth
47
- }: SDKDeclarationProps): react_jsx_runtime21.JSX.Element;
46
+ }: SDKDeclarationProps): react_jsx_runtime28.JSX.Element;
48
47
  type SDKConstraintsProps = {
49
48
  constraints?: Record<string, any>;
50
49
  };
51
50
  declare function SDKConstraints({
52
51
  constraints
53
- }: SDKConstraintsProps): react_jsx_runtime21.JSX.Element | undefined;
52
+ }: SDKConstraintsProps): react_jsx_runtime28.JSX.Element | undefined;
54
53
  type SDKIconProps = {
55
54
  language: SDKJSON.SnippetLanguage;
56
55
  size?: number;
57
56
  };
58
57
  declare function SDKIcon({
59
58
  language
60
- }: SDKIconProps): react_jsx_runtime21.JSX.Element | null;
59
+ }: SDKIconProps): react_jsx_runtime28.JSX.Element | null;
61
60
  type SDKRequestTitleProps = {
62
61
  snippetLanguage: SDKJSON.SnippetLanguage;
63
62
  };
64
63
  declare function SDKRequestTitle({
65
64
  snippetLanguage
66
- }: SDKRequestTitleProps): react_jsx_runtime21.JSX.Element;
65
+ }: SDKRequestTitleProps): react_jsx_runtime28.JSX.Element;
67
66
  type SDKExampleProps = {
68
67
  method: SDKJSON.Method;
69
68
  transformRequestSnippet?: TransformRequestSnippetFn;
@@ -71,27 +70,27 @@ type SDKExampleProps = {
71
70
  declare function SDKExample({
72
71
  method,
73
72
  transformRequestSnippet
74
- }: SDKExampleProps): react_jsx_runtime21.JSX.Element;
73
+ }: SDKExampleProps): react_jsx_runtime28.JSX.Element;
75
74
  type SDKMethodProps = {
76
75
  method: SDKJSON.Method;
77
76
  transformRequestSnippet?: TransformRequestSnippetFn;
78
77
  };
79
78
  declare function SDKMethodHeader({
80
79
  method
81
- }: SDKMethodProps): react_jsx_runtime21.JSX.Element;
80
+ }: SDKMethodProps): react_jsx_runtime28.JSX.Element;
82
81
  declare function SDKMethodInfo({
83
82
  method
84
- }: SDKMethodProps): react_jsx_runtime21.JSX.Element;
83
+ }: SDKMethodProps): react_jsx_runtime28.JSX.Element;
85
84
  declare function SDKMethod({
86
85
  method,
87
86
  transformRequestSnippet
88
- }: SDKMethodProps): react_jsx_runtime21.JSX.Element;
87
+ }: SDKMethodProps): react_jsx_runtime28.JSX.Element;
89
88
  type SDKModelProps = {
90
89
  model: SDKJSON.Model;
91
90
  };
92
91
  declare function SDKModel({
93
92
  model
94
- }: SDKModelProps): react_jsx_runtime21.JSX.Element | null;
93
+ }: SDKModelProps): react_jsx_runtime28.JSX.Element | null;
95
94
  type SDKReferenceProps = {
96
95
  stainlessPath: string;
97
96
  children?: React$1.ReactNode;
@@ -99,7 +98,7 @@ type SDKReferenceProps = {
99
98
  declare function SDKReference({
100
99
  stainlessPath,
101
100
  children
102
- }: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime21.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;
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_runtime28.JSX.Element | null | undefined;
103
102
  type SDKLanguageBlockProps = {
104
103
  language: DocsLanguage;
105
104
  version: string;
@@ -114,6 +113,6 @@ declare function SDKLanguageBlock({
114
113
  version,
115
114
  install,
116
115
  links
117
- }: SDKLanguageBlockProps): react_jsx_runtime21.JSX.Element;
116
+ }: SDKLanguageBlockProps): react_jsx_runtime28.JSX.Element;
118
117
  //#endregion
119
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,9 +1,9 @@
1
- import "../routing-DNN8R6bZ.js";
2
- import { l as QueryKindsType, u as ResultData } from "../types-BSnSUlkN.js";
3
- import * as react_jsx_runtime82 from "react/jsx-runtime";
1
+ import "../routing-Bcos-Z2q.js";
2
+ import { l as QueryKindsType, u as ResultData } from "../types-1rnoIVpZ.js";
3
+ import * as react_jsx_runtime86 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/search/form.d.ts
6
- declare function SearchForm(): react_jsx_runtime82.JSX.Element;
6
+ declare function SearchForm(): react_jsx_runtime86.JSX.Element;
7
7
  type SearchFilterProps = {
8
8
  results: ResultData;
9
9
  filterKind: QueryKindsType;
@@ -13,7 +13,7 @@ declare function SearchFilter({
13
13
  results,
14
14
  filterKind,
15
15
  onChange
16
- }: SearchFilterProps): react_jsx_runtime82.JSX.Element;
16
+ }: SearchFilterProps): react_jsx_runtime86.JSX.Element;
17
17
  type SearchModalProps = {
18
18
  id?: string;
19
19
  open?: boolean;
@@ -21,6 +21,6 @@ type SearchModalProps = {
21
21
  declare function SearchModal({
22
22
  id,
23
23
  open: isOpen
24
- }: SearchModalProps): react_jsx_runtime82.JSX.Element;
24
+ }: SearchModalProps): react_jsx_runtime86.JSX.Element;
25
25
  //#endregion
26
26
  export { SearchFilter, SearchFilterProps, SearchForm, SearchModal, SearchModalProps };
@@ -1,17 +1,17 @@
1
- import { a as useLanguage } from "../docs-CopwX9a7.js";
2
- import "../component-generics-D3ybuN5r.js";
3
- import "../navigation-CGr5_w6z.js";
4
- import "../markdown-Diyg-eof.js";
5
- import "../routing-qs2YNG9o.js";
6
- import { t as style_default } from "../style-BhhgPVF6.js";
7
- import { t as useComponents } from "../use-components-BHEwm0mE.js";
8
- import { a as useSearchContext, i as useSearch } from "../contexts-2HSNy-rE.js";
9
- import "../icons-yb-Jhkmg.js";
10
- import "../utils-FnJ4tyuN.js";
11
- import "../md-DxiV1_vy.js";
12
- import "../utils-Jo_o4DX9.js";
13
- import { t as QueryKinds } from "../types-u0fUIalc.js";
14
- import { t as guideSearch } from "../pagefind-BaK1krMe.js";
1
+ import { a as useLanguage } from "../docs-C2xNNHgT.js";
2
+ import "../component-generics-4gg5TFK4.js";
3
+ import "../navigation-BrIapKIN.js";
4
+ import "../markdown-sJ2VePdG.js";
5
+ import "../routing-GrDalgAW.js";
6
+ import { t as style_default } from "../style-B-5NIls4.js";
7
+ import { t as useComponents } from "../use-components-DG6NAdUT.js";
8
+ import { a as useSearchContext, i as useSearch } from "../contexts-HUUrbJAJ.js";
9
+ import "../icons-Ckod9aod.js";
10
+ import "../utils-CqR0JQ5q.js";
11
+ import "../md-Ce-Zhp9O.js";
12
+ import "../utils-jPbBiaDE.js";
13
+ import { t as QueryKinds } from "../types-Ci-27DYJ.js";
14
+ import { t as guideSearch } from "../pagefind-CKBforii.js";
15
15
  import * as React$1 from "react";
16
16
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
17
17
  import { BookOpenText, Box, Code, Folder, Search, Wrench, X } from "lucide-react";
@@ -242,7 +242,7 @@ function SearchForm() {
242
242
  language
243
243
  })]);
244
244
  setResults({
245
- items: filterKind === "guide" ? guideResults : [...guideResults, ...apiResults?.hits ?? []],
245
+ items: filterKind === "guide" ? guideResults : filterKind === "all" ? [...guideResults.slice(0, 5), ...apiResults?.hits ?? []] : apiResults?.hits ?? [],
246
246
  counts: {
247
247
  ...apiResults?.facets?.["kind"],
248
248
  guide: guideResults.length,
@@ -0,0 +1,13 @@
1
+ import { t as DocsLanguage } from "../routing-Bcos-Z2q.js";
2
+ import { n as IndexEntry, r as IndexMethod } from "../types-1rnoIVpZ.js";
3
+ import * as SDKJSON from "@stainless/sdk-json";
4
+
5
+ //#region src/search/indexer.d.ts
6
+
7
+ declare function generateIndex(spec: SDKJSON.Spec, renderMarkdownFn?: (_: string) => string | null, includeTypes?: boolean): Generator<IndexEntry>;
8
+ //#endregion
9
+ //#region src/search/mcp.d.ts
10
+ type Item = IndexEntry & IndexMethod;
11
+ declare function render(spec: SDKJSON.Spec, language: DocsLanguage, items: Item[], includeModelProperties: boolean): any;
12
+ //#endregion
13
+ export { generateIndex, render };
@@ -0,0 +1,45 @@
1
+ import "../docs-C2xNNHgT.js";
2
+ import "../component-generics-4gg5TFK4.js";
3
+ import "../navigation-BrIapKIN.js";
4
+ import "../markdown-sJ2VePdG.js";
5
+ import { f as parseStainlessPath } from "../routing-GrDalgAW.js";
6
+ import "../style-B-5NIls4.js";
7
+ import "../use-components-DG6NAdUT.js";
8
+ import { p as renderMarkdown, u as generateIndex } from "../contexts-HUUrbJAJ.js";
9
+ import "../icons-Ckod9aod.js";
10
+ import { n as getResourceFromSpec } from "../utils-CqR0JQ5q.js";
11
+ import "../md-Ce-Zhp9O.js";
12
+ import "../utils-jPbBiaDE.js";
13
+ import "../types-Ci-27DYJ.js";
14
+
15
+ //#region src/search/mcp.ts
16
+ function consolidate(results) {
17
+ const resources = /* @__PURE__ */ new Set();
18
+ const methods = /* @__PURE__ */ new Set();
19
+ for (const entry of results) {
20
+ const parsed = parseStainlessPath(entry.stainlessPath);
21
+ if (parsed.method) methods.add(parsed.routable);
22
+ else resources.add(parsed.routable);
23
+ }
24
+ const filtered = Array.from(methods).filter((path) => !resources.has(path.split(" >").at(0)));
25
+ return [...resources, ...filtered];
26
+ }
27
+ function render(spec, language, items, includeModelProperties) {
28
+ const env = {
29
+ spec,
30
+ language,
31
+ options: {
32
+ renderNestedResources: false,
33
+ includeModelProperties
34
+ }
35
+ };
36
+ const output = consolidate(items).map((entry) => {
37
+ const parsed = parseStainlessPath(entry);
38
+ const resource = getResourceFromSpec(parsed.resource, spec);
39
+ return [entry, renderMarkdown(env, parsed.method ? resource.methods[parsed.method] : resource)];
40
+ });
41
+ return Object.fromEntries(output);
42
+ }
43
+
44
+ //#endregion
45
+ export { generateIndex, render };
@@ -1,5 +1,5 @@
1
- import "../../routing-DNN8R6bZ.js";
2
- import { f as ResultType, g as SearchSettings, h as SearchParams, s as ProseIndexEntry } from "../../types-BSnSUlkN.js";
1
+ import "../../routing-Bcos-Z2q.js";
2
+ import { f as ResultType, g as SearchSettings, h as SearchParams, s as ProseIndexEntry } from "../../types-1rnoIVpZ.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/search/providers/algolia.d.ts
@@ -1,15 +1,15 @@
1
- import "../../docs-CopwX9a7.js";
2
- import "../../component-generics-D3ybuN5r.js";
3
- import "../../navigation-CGr5_w6z.js";
4
- import "../../markdown-Diyg-eof.js";
5
- import "../../routing-qs2YNG9o.js";
6
- import "../../style-BhhgPVF6.js";
7
- import "../../use-components-BHEwm0mE.js";
8
- import { c as buildProseIndex, l as search, o as buildChatIndex, s as buildIndex } from "../../contexts-2HSNy-rE.js";
9
- import "../../icons-yb-Jhkmg.js";
10
- import "../../utils-FnJ4tyuN.js";
11
- import "../../md-DxiV1_vy.js";
12
- import "../../utils-Jo_o4DX9.js";
13
- import "../../types-u0fUIalc.js";
1
+ import "../../docs-C2xNNHgT.js";
2
+ import "../../component-generics-4gg5TFK4.js";
3
+ import "../../navigation-BrIapKIN.js";
4
+ import "../../markdown-sJ2VePdG.js";
5
+ import "../../routing-GrDalgAW.js";
6
+ import "../../style-B-5NIls4.js";
7
+ import "../../use-components-DG6NAdUT.js";
8
+ import { c as buildProseIndex, l as search, o as buildChatIndex, s as buildIndex } from "../../contexts-HUUrbJAJ.js";
9
+ import "../../icons-Ckod9aod.js";
10
+ import "../../utils-CqR0JQ5q.js";
11
+ import "../../md-Ce-Zhp9O.js";
12
+ import "../../utils-jPbBiaDE.js";
13
+ import "../../types-Ci-27DYJ.js";
14
14
 
15
15
  export { buildChatIndex, buildIndex, buildProseIndex, search };
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "../../routing-DNN8R6bZ.js";
2
- import { n as IndexEntry } from "../../types-BSnSUlkN.js";
1
+ import { t as DocsLanguage } from "../../routing-Bcos-Z2q.js";
2
+ import { n as IndexEntry } from "../../types-1rnoIVpZ.js";
3
3
  import * as fuse_js0 from "fuse.js";
4
4
  import { FuseIndex } from "fuse.js";
5
5
  import * as SDKJSON from "@stainless/sdk-json";
@@ -1,16 +1,16 @@
1
- import "../../docs-CopwX9a7.js";
2
- import "../../component-generics-D3ybuN5r.js";
3
- import "../../navigation-CGr5_w6z.js";
4
- import "../../markdown-Diyg-eof.js";
5
- import "../../routing-qs2YNG9o.js";
6
- import "../../style-BhhgPVF6.js";
7
- import "../../use-components-BHEwm0mE.js";
8
- import { u as generateIndex } from "../../contexts-2HSNy-rE.js";
9
- import "../../icons-yb-Jhkmg.js";
10
- import "../../utils-FnJ4tyuN.js";
11
- import "../../md-DxiV1_vy.js";
12
- import "../../utils-Jo_o4DX9.js";
13
- import { n as SearchableAttributes } from "../../types-u0fUIalc.js";
1
+ import "../../docs-C2xNNHgT.js";
2
+ import "../../component-generics-4gg5TFK4.js";
3
+ import "../../navigation-BrIapKIN.js";
4
+ import "../../markdown-sJ2VePdG.js";
5
+ import "../../routing-GrDalgAW.js";
6
+ import "../../style-B-5NIls4.js";
7
+ import "../../use-components-DG6NAdUT.js";
8
+ import { u as generateIndex } from "../../contexts-HUUrbJAJ.js";
9
+ import "../../icons-Ckod9aod.js";
10
+ import "../../utils-CqR0JQ5q.js";
11
+ import "../../md-Ce-Zhp9O.js";
12
+ import "../../utils-jPbBiaDE.js";
13
+ import { n as SearchableAttributes } from "../../types-Ci-27DYJ.js";
14
14
  import Fuse from "fuse.js";
15
15
 
16
16
  //#region src/search/providers/fuse.ts
@@ -1,5 +1,5 @@
1
- import "../../routing-DNN8R6bZ.js";
2
- import { t as GuideResultType } from "../../types-BSnSUlkN.js";
1
+ import "../../routing-Bcos-Z2q.js";
2
+ import { t as GuideResultType } from "../../types-1rnoIVpZ.js";
3
3
 
4
4
  //#region src/search/providers/pagefind.d.ts
5
5
  declare function guideSearch(loadPath: string, query: string, limit?: number): Promise<GuideResultType[]>;
@@ -1,3 +1,3 @@
1
- import { t as guideSearch } from "../../pagefind-BaK1krMe.js";
1
+ import { t as guideSearch } from "../../pagefind-CKBforii.js";
2
2
 
3
3
  export { guideSearch };
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "../../routing-DNN8R6bZ.js";
2
- import { n as IndexEntry } from "../../types-BSnSUlkN.js";
1
+ import { t as DocsLanguage } from "../../routing-Bcos-Z2q.js";
2
+ import { n as IndexEntry } from "../../types-1rnoIVpZ.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/search/providers/walker.d.ts
@@ -1,16 +1,16 @@
1
- import "../../docs-CopwX9a7.js";
2
- import "../../component-generics-D3ybuN5r.js";
3
- import "../../navigation-CGr5_w6z.js";
4
- import "../../markdown-Diyg-eof.js";
5
- import "../../routing-qs2YNG9o.js";
6
- import "../../style-BhhgPVF6.js";
7
- import "../../use-components-BHEwm0mE.js";
8
- import { u as generateIndex } from "../../contexts-2HSNy-rE.js";
9
- import "../../icons-yb-Jhkmg.js";
10
- import "../../utils-FnJ4tyuN.js";
11
- import "../../md-DxiV1_vy.js";
12
- import "../../utils-Jo_o4DX9.js";
13
- import { n as SearchableAttributes } from "../../types-u0fUIalc.js";
1
+ import "../../docs-C2xNNHgT.js";
2
+ import "../../component-generics-4gg5TFK4.js";
3
+ import "../../navigation-BrIapKIN.js";
4
+ import "../../markdown-sJ2VePdG.js";
5
+ import "../../routing-GrDalgAW.js";
6
+ import "../../style-B-5NIls4.js";
7
+ import "../../use-components-DG6NAdUT.js";
8
+ import { u as generateIndex } from "../../contexts-HUUrbJAJ.js";
9
+ import "../../icons-Ckod9aod.js";
10
+ import "../../utils-CqR0JQ5q.js";
11
+ import "../../md-Ce-Zhp9O.js";
12
+ import "../../utils-jPbBiaDE.js";
13
+ import { n as SearchableAttributes } from "../../types-Ci-27DYJ.js";
14
14
 
15
15
  //#region src/search/providers/walker.ts
16
16
  function buildIndex(spec) {
@@ -1,3 +1,3 @@
1
- import "../routing-DNN8R6bZ.js";
2
- import { _ as SearchableAttributes, a as IndexProperty, c as QueryKinds, d as ResultRecordType, f as ResultType, g as SearchSettings, h as SearchParams, i as IndexModel, l as QueryKindsType, m as SearchAttributeNames, n as IndexEntry, o as IndexResource, p as RoutableJsonNode, r as IndexMethod, s as ProseIndexEntry, t as GuideResultType, u as ResultData, v as SearchableAttributesChat, y as SearchableAttributesProse } from "../types-BSnSUlkN.js";
1
+ import "../routing-Bcos-Z2q.js";
2
+ import { _ as SearchableAttributes, a as IndexProperty, c as QueryKinds, d as ResultRecordType, f as ResultType, g as SearchSettings, h as SearchParams, i as IndexModel, l as QueryKindsType, m as SearchAttributeNames, n as IndexEntry, o as IndexResource, p as RoutableJsonNode, r as IndexMethod, s as ProseIndexEntry, t as GuideResultType, u as ResultData, v as SearchableAttributesChat, y as SearchableAttributesProse } from "../types-1rnoIVpZ.js";
3
3
  export { GuideResultType, IndexEntry, IndexMethod, IndexModel, IndexProperty, IndexResource, ProseIndexEntry, QueryKinds, QueryKindsType, ResultData, ResultRecordType, ResultType, RoutableJsonNode, SearchAttributeNames, SearchParams, SearchSettings, SearchableAttributes, SearchableAttributesChat, SearchableAttributesProse };
@@ -1,3 +1,3 @@
1
- import { i as SearchableAttributesProse, n as SearchableAttributes, r as SearchableAttributesChat, t as QueryKinds } from "../types-u0fUIalc.js";
1
+ import { i as SearchableAttributesProse, n as SearchableAttributes, r as SearchableAttributesChat, t as QueryKinds } from "../types-Ci-27DYJ.js";
2
2
 
3
3
  export { QueryKinds, SearchableAttributes, SearchableAttributesChat, SearchableAttributesProse };
@@ -1,6 +1,6 @@
1
- import { f as ResultType, g as SearchSettings, h as SearchParams } from "./types-BSnSUlkN.js";
1
+ import { f as ResultType, g as SearchSettings, h as SearchParams } from "./types-1rnoIVpZ.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime15 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime59 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/contexts/search.d.ts
6
6
  type SearchContextType = {
@@ -16,6 +16,6 @@ type SearchProviderProps = SearchContextType & {
16
16
  declare function SearchProvider({
17
17
  children,
18
18
  ...props
19
- }: SearchProviderProps): react_jsx_runtime15.JSX.Element;
19
+ }: SearchProviderProps): react_jsx_runtime59.JSX.Element;
20
20
  //#endregion
21
21
  export { useSearchContext as a, useSearch as i, SearchProvider as n, SearchProviderProps as r, SearchContextType as t };
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime35 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime40 from "react/jsx-runtime";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/components/sidebar.d.ts
@@ -12,25 +12,25 @@ declare function SidebarExpander({
12
12
  open,
13
13
  summary,
14
14
  children
15
- }: SidebarExpanderProps): react_jsx_runtime35.JSX.Element;
15
+ }: SidebarExpanderProps): react_jsx_runtime40.JSX.Element;
16
16
  type SidebarMethodProps = {
17
17
  method: SDKJSON.Method;
18
18
  };
19
19
  declare function SidebarMethod({
20
20
  method
21
- }: SidebarMethodProps): react_jsx_runtime35.JSX.Element;
21
+ }: SidebarMethodProps): react_jsx_runtime40.JSX.Element;
22
22
  type SidebarResourceProps = {
23
23
  resource: SDKJSON.Resource;
24
24
  };
25
25
  declare function SidebarResource({
26
26
  resource
27
- }: SidebarResourceProps): react_jsx_runtime35.JSX.Element;
27
+ }: SidebarResourceProps): react_jsx_runtime40.JSX.Element;
28
28
  type SidebarProps = {
29
29
  resources: SDKJSON.Resource[];
30
30
  selectedPath?: string;
31
31
  };
32
32
  declare function Sidebar({
33
33
  resources
34
- }: SidebarProps): react_jsx_runtime35.JSX.Element;
34
+ }: SidebarProps): react_jsx_runtime40.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,6 +1,6 @@
1
- import { C as TransformRequestSnippetFn } from "./sdk-Rlr-Kw5_.js";
1
+ import { C as TransformRequestSnippetFn } from "./sdk-CDNNOl31.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime76 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime44 from "react/jsx-runtime";
4
4
  import * as SDKJSON from "@stainless/sdk-json";
5
5
 
6
6
  //#region src/components/snippets.d.ts
@@ -12,7 +12,7 @@ type SnippetCodeProps = {
12
12
  declare function SnippetCode({
13
13
  content,
14
14
  language
15
- }: SnippetCodeProps): react_jsx_runtime76.JSX.Element;
15
+ }: SnippetCodeProps): react_jsx_runtime44.JSX.Element;
16
16
  type SnippetProps = {
17
17
  method: SDKJSON.Method;
18
18
  requestTitle?: React$1.ReactNode;
@@ -24,23 +24,28 @@ type SnippetContainerProps = {
24
24
  };
25
25
  declare function SnippetContainer({
26
26
  children
27
- }: SnippetContainerProps): react_jsx_runtime76.JSX.Element;
27
+ }: SnippetContainerProps): react_jsx_runtime44.JSX.Element;
28
28
  type SnippetRequestContainerProps = {
29
29
  children?: React$1.ReactNode;
30
30
  signature?: string;
31
31
  };
32
32
  declare function SnippetRequestContainer({
33
33
  children
34
- }: SnippetRequestContainerProps): react_jsx_runtime76.JSX.Element;
34
+ }: SnippetRequestContainerProps): react_jsx_runtime44.JSX.Element;
35
35
  declare function Snippet({
36
36
  requestTitle,
37
37
  method,
38
38
  transformRequestSnippet
39
- }: SnippetProps): react_jsx_runtime76.JSX.Element | null;
39
+ }: SnippetProps): react_jsx_runtime44.JSX.Element | null;
40
+ declare function SnippetButtons({
41
+ content
42
+ }: {
43
+ content: string;
44
+ }): react_jsx_runtime44.JSX.Element;
40
45
  declare function SnippetResponse({
41
46
  responses
42
47
  }: {
43
48
  responses: SDKJSON.Method['exampleResponses'];
44
- }): react_jsx_runtime76.JSX.Element | null;
49
+ }): react_jsx_runtime44.JSX.Element | null;
45
50
  //#endregion
46
- export { SnippetContainerProps as a, SnippetRequestContainerProps as c, SnippetContainer as i, SnippetResponse as l, SnippetCode as n, SnippetProps as o, SnippetCodeProps as r, SnippetRequestContainer as s, Snippet as t };
51
+ export { SnippetContainer as a, SnippetRequestContainer as c, SnippetCodeProps as i, SnippetRequestContainerProps as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetProps as s, Snippet as t, SnippetResponse as u };
package/dist/spec.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
1
+ import { t as DocsLanguage } from "./routing-Bcos-Z2q.js";
2
2
  import * as SDKJSON from "@stainless/sdk-json";
3
3
 
4
4
  //#region src/spec.d.ts
@@ -36,13 +36,13 @@ declare function generateNavigation(resource: Partial<SDKJSON.Resource>): {
36
36
  declare function generateSpecForResource(spec: SDKJSON.Spec, name: string, lang: DocsLanguage, transforms: SpecTransforms): Partial<SDKJSON.Spec>;
37
37
  declare function transform(spec: SDKJSON.Spec, transforms: SpecTransforms): {
38
38
  name: string;
39
- lang: "node" | "go" | "python" | "terraform" | "http" | "typescript" | "ruby" | "java" | "kotlin";
39
+ lang: "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php";
40
40
  spec: Partial<SDKJSON.Spec>;
41
41
  }[];
42
42
  declare function split(spec: SDKJSON.Spec, transforms?: SpecTransforms): {
43
43
  resources: ReturnType<typeof transform>;
44
44
  navigation: {
45
- languages: ("node" | "go" | "python" | "terraform" | "http" | "typescript" | "ruby" | "java" | "kotlin")[] | undefined;
45
+ languages: ("http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin")[] | undefined;
46
46
  resources: {
47
47
  [k: string]: {
48
48
  title: string | undefined;
package/dist/spec.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as Languages } from "./routing-qs2YNG9o.js";
2
- import { r as isResourceEmpty } from "./utils-FnJ4tyuN.js";
1
+ import { n as Languages } from "./routing-GrDalgAW.js";
2
+ import { r as isResourceEmpty } from "./utils-CqR0JQ5q.js";
3
3
 
4
4
  //#region src/spec.ts
5
5
  const defaultTransforms = {
@@ -21,6 +21,9 @@ var style_default = {
21
21
  TooltipContent: "stldocs-tooltip-content",
22
22
  Input: "stldocs-input",
23
23
  InputTextField: "stldocs-input-textfield",
24
+ MaskedInputWrapper: "stldocs-masked-input-wrapper",
25
+ MaskedInputDisplay: "stldocs-masked-input-display",
26
+ MaskedInputObscured: "stldocs-masked-input-obscured",
24
27
  ToggleButton: "stldocs-togglebutton",
25
28
  ListView: "stldocs-listview",
26
29
  ListViewItem: "stldocs-listview-item",
@@ -103,6 +106,7 @@ var style_default = {
103
106
  PropertyConstraintValue: "stldocs-property-constraint-value",
104
107
  PropertyDefault: "stldocs-property-default",
105
108
  PropertyDescription: "stldocs-property-description",
109
+ PropertyTitle: "stldocs-property-title",
106
110
  PropertyAnnotation: "stldocs-property-annotation",
107
111
  PropertyName: "stldocs-property-name",
108
112
  PropertyBadges: "stldocs-property-badges",
@@ -21,6 +21,9 @@ declare const _default: {
21
21
  readonly TooltipContent: "stldocs-tooltip-content";
22
22
  readonly Input: "stldocs-input";
23
23
  readonly InputTextField: "stldocs-input-textfield";
24
+ readonly MaskedInputWrapper: "stldocs-masked-input-wrapper";
25
+ readonly MaskedInputDisplay: "stldocs-masked-input-display";
26
+ readonly MaskedInputObscured: "stldocs-masked-input-obscured";
24
27
  readonly ToggleButton: "stldocs-togglebutton";
25
28
  readonly ListView: "stldocs-listview";
26
29
  readonly ListViewItem: "stldocs-listview-item";
@@ -103,6 +106,7 @@ declare const _default: {
103
106
  readonly PropertyConstraintValue: "stldocs-property-constraint-value";
104
107
  readonly PropertyDefault: "stldocs-property-default";
105
108
  readonly PropertyDescription: "stldocs-property-description";
109
+ readonly PropertyTitle: "stldocs-property-title";
106
110
  readonly PropertyAnnotation: "stldocs-property-annotation";
107
111
  readonly PropertyName: "stldocs-property-name";
108
112
  readonly PropertyBadges: "stldocs-property-badges";
package/dist/style.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./style-p4qTfnmO.js";
1
+ import { t as _default } from "./style-BJCwZ-Wf.js";
2
2
  export { _default as default };
package/dist/style.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as style_default } from "./style-BhhgPVF6.js";
1
+ import { t as style_default } from "./style-B-5NIls4.js";
2
2
 
3
3
  export { style_default as default };