@stainless-api/docs-ui 0.1.0-beta.10 → 0.1.0-beta.11
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-Z-hEqjcp.d.ts +19 -0
- package/dist/chunk-Bp6m_JJh.js +13 -0
- package/dist/component-generics-DzI21jRn.js +35 -0
- package/dist/component-generics-q5Dqiu2D.d.ts +30 -0
- package/dist/components/breadcrumbs.d.ts +2 -11
- package/dist/components/breadcrumbs.js +16 -52
- package/dist/components/chat.d.ts +13 -5
- package/dist/components/chat.js +138 -74
- package/dist/components/dropdown.d.ts +2 -17
- package/dist/components/dropdown.js +4 -18
- package/dist/components/icons.d.ts +50 -27
- package/dist/components/icons.js +3 -34
- package/dist/components/index.d.ts +12 -9
- package/dist/components/index.js +16 -10
- package/dist/components/method.d.ts +2 -41
- package/dist/components/method.js +16 -44
- package/dist/components/overview.d.ts +2 -21
- package/dist/components/overview.js +16 -49
- package/dist/components/primitives.d.ts +2 -60
- package/dist/components/primitives.js +16 -117
- package/dist/components/properties.d.ts +2 -24
- package/dist/components/properties.js +16 -24
- package/dist/components/scripts/dropdown.d.ts +11 -4
- package/dist/components/scripts/dropdown.js +49 -63
- package/dist/components/sdk.d.ts +3 -78
- package/dist/components/sdk.js +16 -153
- package/dist/components/sidebar.d.ts +2 -22
- package/dist/components/sidebar.js +16 -30
- package/dist/components/snippets.d.ts +4 -28
- package/dist/components/snippets.js +16 -76
- package/dist/contexts/component-generics.d.ts +2 -25
- package/dist/contexts/component-generics.js +3 -24
- package/dist/contexts/component-types.d.ts +18 -4
- package/dist/contexts/component-types.js +1 -2
- package/dist/contexts/component.d.ts +31 -14
- package/dist/contexts/component.js +16 -14
- package/dist/contexts/docs.d.ts +2 -34
- package/dist/contexts/docs.js +3 -43
- package/dist/contexts/index.d.ts +20 -7
- package/dist/contexts/index.js +16 -15
- package/dist/contexts/markdown.d.ts +2 -13
- package/dist/contexts/markdown.js +4 -29
- package/dist/contexts/navigation.d.ts +3 -19
- package/dist/contexts/navigation.js +3 -14
- package/dist/contexts/search.d.ts +4 -13
- package/dist/contexts/search.js +16 -15
- package/dist/contexts/use-components.d.ts +16 -1
- package/dist/contexts/use-components.js +4 -3
- package/dist/contexts-DRxRO-xO.js +3747 -0
- package/dist/docs-Dh8kE1va.js +50 -0
- package/dist/docs-EUy-wfbA.d.ts +43 -0
- package/dist/dropdown-B7VyGMOw.d.ts +43 -0
- package/dist/dropdown-DtgAi6lb.js +62 -0
- package/dist/icons-DdKM-01E.js +753 -0
- package/dist/index-AicgPYKB.d.ts +239 -0
- package/dist/index-BhwLhiWk.d.ts +14 -0
- package/dist/index-YnpUtXLB.d.ts +16 -0
- package/dist/index.d.ts +22 -6
- package/dist/index.js +16 -7
- package/dist/languages/go.d.ts +13 -21
- package/dist/languages/go.js +16 -116
- package/dist/languages/http.d.ts +13 -25
- package/dist/languages/http.js +16 -130
- package/dist/languages/index.d.ts +13 -37
- package/dist/languages/index.js +16 -10
- package/dist/languages/java.d.ts +13 -23
- package/dist/languages/java.js +16 -120
- package/dist/languages/python.d.ts +13 -22
- package/dist/languages/python.js +16 -104
- package/dist/languages/ruby.d.ts +13 -22
- package/dist/languages/ruby.js +16 -125
- package/dist/languages/typescript.d.ts +13 -22
- package/dist/languages/typescript.js +16 -134
- package/dist/markdown/index.d.ts +11 -6
- package/dist/markdown/index.js +16 -80
- package/dist/markdown/md.d.ts +15 -11
- package/dist/markdown/md.js +3 -34
- package/dist/markdown/utils.d.ts +4 -17
- package/dist/markdown/utils.js +3 -30
- package/dist/markdown-BXfX1D7C.js +42 -0
- package/dist/markdown-nFyAEX_K.d.ts +22 -0
- package/dist/md-Dg8aOyMA.js +41 -0
- package/dist/method-DpsVuzZW.d.ts +71 -0
- package/dist/navigation-aoYZ_tl4.js +24 -0
- package/dist/navigation-nyXBY-75.d.ts +29 -0
- package/dist/overview-C8e-6jGr.d.ts +38 -0
- package/dist/pagefind-ChrPfuVv.js +15 -0
- package/dist/primitives-DWz23_Ub.d.ts +99 -0
- package/dist/properties-CF71V58d.d.ts +46 -0
- package/dist/routing-DQjbRxdJ.js +189 -0
- package/dist/routing-qc0V00-j.d.ts +51 -0
- package/dist/routing.d.ts +2 -44
- package/dist/routing.js +3 -169
- package/dist/sdk-Zg3Rggk3.d.ts +118 -0
- package/dist/search/index.d.ts +26 -1
- package/dist/search/index.js +332 -2
- package/dist/search/providers/algolia.d.ts +22 -7
- package/dist/search/providers/algolia.js +16 -64
- package/dist/search/providers/fuse.d.ts +16 -9
- package/dist/search/providers/fuse.js +29 -12
- package/dist/search/providers/pagefind.d.ts +7 -2
- package/dist/search/providers/pagefind.js +3 -19
- package/dist/search/providers/walker.d.ts +8 -5
- package/dist/search/providers/walker.js +28 -19
- package/dist/search/types.d.ts +3 -79
- package/dist/search/types.js +3 -24
- package/dist/search-B6loAGmB.d.ts +21 -0
- package/dist/sidebar-C8KirYjg.d.ts +35 -0
- package/dist/snippets-EUzM4fRO.d.ts +45 -0
- package/dist/style-pN9hCoec.d.ts +181 -0
- package/dist/style-rYbbxIR_.js +182 -0
- package/dist/style.d.ts +2 -179
- package/dist/style.js +3 -179
- package/dist/styles/main.css +740 -746
- package/dist/styles/main.js +1 -0
- package/dist/styles/primitives.css +436 -428
- package/dist/styles/primitives.js +1 -0
- package/dist/styles/resets.css +34 -41
- package/dist/styles/resets.js +1 -0
- package/dist/styles/search.css +248 -248
- package/dist/styles/search.js +1 -0
- package/dist/styles/sidebar.css +59 -60
- package/dist/styles/sidebar.js +1 -0
- package/dist/styles/snippets.css +87 -88
- package/dist/styles/snippets.js +1 -0
- package/dist/styles/variables.css +86 -89
- package/dist/styles/variables.js +1 -0
- package/dist/types-CTBDtD34.d.ts +82 -0
- package/dist/types-DFN4M1Sp.js +34 -0
- package/dist/use-components-D9E85p5x.js +7 -0
- package/dist/utils-BHwvUDKn.js +30 -0
- package/dist/utils-CJfFBNgT.js +32 -0
- package/dist/utils-DQhEbvUC.d.ts +20 -0
- package/dist/utils-nDazhti8.d.ts +11 -0
- package/dist/utils.d.ts +2 -7
- package/dist/utils.js +4 -27
- package/package.json +2 -2
- package/dist/components/breadcrumbs.js.map +0 -1
- package/dist/components/chat.js.map +0 -1
- package/dist/components/dropdown.js.map +0 -1
- package/dist/components/icons.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/method.js.map +0 -1
- package/dist/components/overview.js.map +0 -1
- package/dist/components/primitives.js.map +0 -1
- package/dist/components/properties.js.map +0 -1
- package/dist/components/scripts/dropdown.js.map +0 -1
- package/dist/components/sdk.js.map +0 -1
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/snippets.js.map +0 -1
- package/dist/contexts/component-generics.js.map +0 -1
- package/dist/contexts/component-types.js.map +0 -1
- package/dist/contexts/component.js.map +0 -1
- package/dist/contexts/docs.js.map +0 -1
- package/dist/contexts/index.js.map +0 -1
- package/dist/contexts/markdown.js.map +0 -1
- package/dist/contexts/navigation.js.map +0 -1
- package/dist/contexts/search.js.map +0 -1
- package/dist/contexts/use-components.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/languages/go.js.map +0 -1
- package/dist/languages/http.js.map +0 -1
- package/dist/languages/index.js.map +0 -1
- package/dist/languages/java.js.map +0 -1
- package/dist/languages/python.js.map +0 -1
- package/dist/languages/ruby.js.map +0 -1
- package/dist/languages/typescript.js.map +0 -1
- package/dist/markdown/index.js.map +0 -1
- package/dist/markdown/md.js.map +0 -1
- package/dist/markdown/utils.js.map +0 -1
- package/dist/mcp.js +0 -16105
- package/dist/routing.js.map +0 -1
- package/dist/search/form.d.ts +0 -13
- package/dist/search/form.js +0 -55
- package/dist/search/form.js.map +0 -1
- package/dist/search/index.js.map +0 -1
- package/dist/search/indexer.d.ts +0 -31
- package/dist/search/indexer.js +0 -212
- package/dist/search/indexer.js.map +0 -1
- package/dist/search/mcp.d.ts +0 -8
- package/dist/search/mcp.js +0 -43
- package/dist/search/mcp.js.map +0 -1
- package/dist/search/printer.d.ts +0 -6
- package/dist/search/printer.js +0 -43
- package/dist/search/printer.js.map +0 -1
- package/dist/search/providers/algolia.js.map +0 -1
- package/dist/search/providers/fuse.js.map +0 -1
- package/dist/search/providers/pagefind.js.map +0 -1
- package/dist/search/providers/walker.js.map +0 -1
- package/dist/search/results.d.ts +0 -21
- package/dist/search/results.js +0 -58
- package/dist/search/results.js.map +0 -1
- package/dist/search/state.d.ts +0 -29
- package/dist/search/state.js +0 -38
- package/dist/search/state.js.map +0 -1
- package/dist/search/types.js.map +0 -1
- package/dist/style.js.map +0 -1
- package/dist/types/sdkjson.d.ts +0 -1
- package/dist/types/sdkjson.js +0 -2
- package/dist/types/sdkjson.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/GoAST.d.ts +0 -120
- package/dist/types/stainless-alias/lib/json-spec-v2/GoAST.js +0 -2
- package/dist/types/stainless-alias/lib/json-spec-v2/GoAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/HttpAST.d.ts +0 -100
- package/dist/types/stainless-alias/lib/json-spec-v2/HttpAST.js +0 -3
- package/dist/types/stainless-alias/lib/json-spec-v2/HttpAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/JavaAST.d.ts +0 -87
- package/dist/types/stainless-alias/lib/json-spec-v2/JavaAST.js +0 -2
- package/dist/types/stainless-alias/lib/json-spec-v2/JavaAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/PythonAST.d.ts +0 -110
- package/dist/types/stainless-alias/lib/json-spec-v2/PythonAST.js +0 -3
- package/dist/types/stainless-alias/lib/json-spec-v2/PythonAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/RubyAST.d.ts +0 -122
- package/dist/types/stainless-alias/lib/json-spec-v2/RubyAST.js +0 -2
- package/dist/types/stainless-alias/lib/json-spec-v2/RubyAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/TSAST.d.ts +0 -146
- package/dist/types/stainless-alias/lib/json-spec-v2/TSAST.js +0 -3
- package/dist/types/stainless-alias/lib/json-spec-v2/TSAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/TerraformAST.d.ts +0 -89
- package/dist/types/stainless-alias/lib/json-spec-v2/TerraformAST.js +0 -3
- package/dist/types/stainless-alias/lib/json-spec-v2/TerraformAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/types.d.ts +0 -190
- package/dist/types/stainless-alias/lib/json-spec-v2/types.js +0 -105
- package/dist/types/stainless-alias/lib/json-spec-v2/types.js.map +0 -1
- package/dist/utils.js.map +0 -1
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import type * as SDKJSON from './types';
|
|
2
|
-
export type TSDeclaration = TSDeclFunction | TSDeclClass | TSDeclInterface | TSDeclProperty | TSDeclTypeAlias | TSDeclReference | SDKJSON.ErrorDecl;
|
|
3
|
-
export type TSDeclFunction = SDKJSON.BaseDeclaration & {
|
|
4
|
-
kind: 'TSDeclFunction';
|
|
5
|
-
ident: TSIdentifier;
|
|
6
|
-
qualified?: string;
|
|
7
|
-
signature: TSFunctionSignature;
|
|
8
|
-
overloads?: TSFunctionSignature[];
|
|
9
|
-
paramsChildren?: SDKJSON.ID[];
|
|
10
|
-
responseChildren?: SDKJSON.ID[];
|
|
11
|
-
};
|
|
12
|
-
export type TSDeclClass = SDKJSON.BaseDeclaration & {
|
|
13
|
-
kind: 'TSDeclClass';
|
|
14
|
-
ident: TSIdentifier;
|
|
15
|
-
docstring?: string;
|
|
16
|
-
typeParameters?: TSTypeParameter[];
|
|
17
|
-
superClass?: TSTypeReference;
|
|
18
|
-
implements?: TSTypeReference[];
|
|
19
|
-
children: SDKJSON.ID[];
|
|
20
|
-
};
|
|
21
|
-
export type TSDeclInterface = SDKJSON.BaseDeclaration & {
|
|
22
|
-
kind: 'TSDeclInterface';
|
|
23
|
-
ident: TSIdentifier;
|
|
24
|
-
docstring?: string;
|
|
25
|
-
typeParameters?: TSTypeParameter[];
|
|
26
|
-
extends?: TSType[];
|
|
27
|
-
children: SDKJSON.ID[];
|
|
28
|
-
};
|
|
29
|
-
export type TSDeclProperty = SDKJSON.BaseDeclaration & {
|
|
30
|
-
kind: 'TSDeclProperty';
|
|
31
|
-
key: string;
|
|
32
|
-
docstring?: string;
|
|
33
|
-
type: TSType;
|
|
34
|
-
constraints?: SDKJSON.Constraints;
|
|
35
|
-
optional?: boolean;
|
|
36
|
-
declare?: boolean;
|
|
37
|
-
default?: any;
|
|
38
|
-
schemaType?: SDKJSON.SchemaType;
|
|
39
|
-
modelPath?: string;
|
|
40
|
-
childrenParentSchema?: SDKJSON.SchemaType;
|
|
41
|
-
children?: SDKJSON.ID[];
|
|
42
|
-
};
|
|
43
|
-
export type TSDeclTypeAlias = SDKJSON.BaseDeclaration & {
|
|
44
|
-
kind: 'TSDeclTypeAlias';
|
|
45
|
-
docstring?: string;
|
|
46
|
-
ident: TSIdentifier;
|
|
47
|
-
typeParameters?: TSTypeParameter[];
|
|
48
|
-
type: TSType;
|
|
49
|
-
children?: SDKJSON.ID[];
|
|
50
|
-
};
|
|
51
|
-
export type TSDeclReference = SDKJSON.BaseDeclaration & {
|
|
52
|
-
kind: 'TSDeclReference';
|
|
53
|
-
docstring?: string;
|
|
54
|
-
type: TSType;
|
|
55
|
-
children?: SDKJSON.ID[];
|
|
56
|
-
};
|
|
57
|
-
export type TSFunctionSignature = {
|
|
58
|
-
kind: 'TSFunctionSignature';
|
|
59
|
-
parameters: TSFunctionParameter[];
|
|
60
|
-
returns: TSType;
|
|
61
|
-
async?: boolean;
|
|
62
|
-
typeParameters?: TSTypeParameter[];
|
|
63
|
-
docstring?: string;
|
|
64
|
-
};
|
|
65
|
-
export type TSFunctionParameter = {
|
|
66
|
-
kind: 'TSFunctionParameter';
|
|
67
|
-
ident: TSIdentifier;
|
|
68
|
-
type: TSType;
|
|
69
|
-
optional?: boolean;
|
|
70
|
-
};
|
|
71
|
-
export type TSTypeParameter = {
|
|
72
|
-
kind: 'TSTypeParameter';
|
|
73
|
-
name: TSIdentifier;
|
|
74
|
-
constraint?: TSType;
|
|
75
|
-
default?: TSType;
|
|
76
|
-
};
|
|
77
|
-
export type TSPropertyKey = TSIdentifier;
|
|
78
|
-
export type TSIdentifier = string;
|
|
79
|
-
export type TSType = TSTypeReference | TSTypeObject | TSTypeArray | TSTypeString | TSTypeNumber | TSTypeBoolean | TSTypeNull | TSTypeUndefined | TSTypeVoid | TSTypeAny | TSTypeUnknown | TSTypeNever | TSTypeLiteral | TSTypeUnion | TSTypeIntersection | TSTypeInterface;
|
|
80
|
-
export type TSTypeReference = SDKJSON.BaseType & {
|
|
81
|
-
kind: 'TSTypeReference';
|
|
82
|
-
ident: TSIdentifier;
|
|
83
|
-
typeParameters?: TSType[];
|
|
84
|
-
schemaType?: SDKJSON.SchemaType;
|
|
85
|
-
$ref?: SDKJSON.ID;
|
|
86
|
-
};
|
|
87
|
-
export type TSTypeObject = SDKJSON.BaseType & {
|
|
88
|
-
kind: 'TSTypeObject';
|
|
89
|
-
members: {
|
|
90
|
-
ident: TSIdentifier;
|
|
91
|
-
type: TSType;
|
|
92
|
-
optional?: boolean;
|
|
93
|
-
}[];
|
|
94
|
-
};
|
|
95
|
-
export type TSTypeArray = SDKJSON.BaseType & {
|
|
96
|
-
kind: 'TSTypeArray';
|
|
97
|
-
elementType: TSType;
|
|
98
|
-
};
|
|
99
|
-
export type TSTypeUnion = SDKJSON.BaseType & {
|
|
100
|
-
kind: 'TSTypeUnion';
|
|
101
|
-
types: TSType[];
|
|
102
|
-
};
|
|
103
|
-
export type TSTypeIntersection = SDKJSON.BaseType & {
|
|
104
|
-
kind: 'TSTypeIntersection';
|
|
105
|
-
types: TSType[];
|
|
106
|
-
};
|
|
107
|
-
export type TSTypeInterface = SDKJSON.BaseType & {
|
|
108
|
-
kind: 'TSTypeInterface';
|
|
109
|
-
members: {
|
|
110
|
-
ident: TSIdentifier;
|
|
111
|
-
type: TSType;
|
|
112
|
-
optional?: boolean;
|
|
113
|
-
}[];
|
|
114
|
-
extends?: TSTypeReference[];
|
|
115
|
-
};
|
|
116
|
-
export type TSTypeLiteral = SDKJSON.BaseType & {
|
|
117
|
-
kind: 'TSTypeLiteral';
|
|
118
|
-
literal: string | boolean | number;
|
|
119
|
-
};
|
|
120
|
-
export type TSTypeString = SDKJSON.BaseType & {
|
|
121
|
-
kind: 'TSTypeString';
|
|
122
|
-
};
|
|
123
|
-
export type TSTypeNumber = SDKJSON.BaseType & {
|
|
124
|
-
kind: 'TSTypeNumber';
|
|
125
|
-
};
|
|
126
|
-
export type TSTypeBoolean = SDKJSON.BaseType & {
|
|
127
|
-
kind: 'TSTypeBoolean';
|
|
128
|
-
};
|
|
129
|
-
export type TSTypeNull = SDKJSON.BaseType & {
|
|
130
|
-
kind: 'TSTypeNull';
|
|
131
|
-
};
|
|
132
|
-
export type TSTypeUndefined = SDKJSON.BaseType & {
|
|
133
|
-
kind: 'TSTypeUndefined';
|
|
134
|
-
};
|
|
135
|
-
export type TSTypeVoid = SDKJSON.BaseType & {
|
|
136
|
-
kind: 'TSTypeVoid';
|
|
137
|
-
};
|
|
138
|
-
export type TSTypeAny = SDKJSON.BaseType & {
|
|
139
|
-
kind: 'TSTypeAny';
|
|
140
|
-
};
|
|
141
|
-
export type TSTypeUnknown = SDKJSON.BaseType & {
|
|
142
|
-
kind: 'TSTypeUnknown';
|
|
143
|
-
};
|
|
144
|
-
export type TSTypeNever = SDKJSON.BaseType & {
|
|
145
|
-
kind: 'TSTypeNever';
|
|
146
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TSAST.js","sourceRoot":"","sources":["../../../../../src/types/stainless-alias/lib/json-spec-v2/TSAST.ts"],"names":[],"mappings":"AAAA,2DAA2D"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { Configurability, TerraformValidators } from '~/templates/TerraformSDK/terraform-types';
|
|
2
|
-
import type * as SDKJSON from './types';
|
|
3
|
-
export type TerraformNode = TerraformDeclaration;
|
|
4
|
-
export type TerraformDeclaration = TerraformDeclServiceNode | TerraformDeclSource | TerraformDeclAttribute | SDKJSON.ErrorDecl;
|
|
5
|
-
export type TerraformDeclServiceNode = SDKJSON.BaseDeclaration & {
|
|
6
|
-
kind: 'TerraformDeclServiceNode';
|
|
7
|
-
resource?: SDKJSON.ID;
|
|
8
|
-
dataSource?: SDKJSON.ID;
|
|
9
|
-
listDataSource?: SDKJSON.ID;
|
|
10
|
-
};
|
|
11
|
-
export type TerraformDeclSource = SDKJSON.BaseDeclaration & {
|
|
12
|
-
kind: 'TerraformDeclSource';
|
|
13
|
-
name: string;
|
|
14
|
-
type: 'resource' | 'datasource-plural' | 'datasource-single';
|
|
15
|
-
methodName: string;
|
|
16
|
-
required: SDKJSON.ID[];
|
|
17
|
-
optional: SDKJSON.ID[];
|
|
18
|
-
computed: SDKJSON.ID[];
|
|
19
|
-
};
|
|
20
|
-
export type PrimitiveNumberProps = {
|
|
21
|
-
oneof?: number[];
|
|
22
|
-
default: number | null;
|
|
23
|
-
minimum: number | null;
|
|
24
|
-
maximum: number | null;
|
|
25
|
-
};
|
|
26
|
-
export type Primitive = {
|
|
27
|
-
category: 'primitive';
|
|
28
|
-
} & ({
|
|
29
|
-
type: 'Bool';
|
|
30
|
-
default: boolean | null;
|
|
31
|
-
} | ({
|
|
32
|
-
type: 'Float64';
|
|
33
|
-
} & PrimitiveNumberProps) | ({
|
|
34
|
-
type: 'Int64';
|
|
35
|
-
} & PrimitiveNumberProps) | ({
|
|
36
|
-
type: 'Number';
|
|
37
|
-
} & PrimitiveNumberProps) | {
|
|
38
|
-
type: 'Time';
|
|
39
|
-
default: string | null;
|
|
40
|
-
} | {
|
|
41
|
-
type: 'String';
|
|
42
|
-
oneof?: string[];
|
|
43
|
-
default: string | null;
|
|
44
|
-
});
|
|
45
|
-
export type Dynamic = {
|
|
46
|
-
category: 'dynamic';
|
|
47
|
-
type: 'Dynamic';
|
|
48
|
-
allowedSubtypes: Primitive['type'][];
|
|
49
|
-
};
|
|
50
|
-
export type Unknown = {
|
|
51
|
-
category: 'unknown';
|
|
52
|
-
type: 'unknown';
|
|
53
|
-
};
|
|
54
|
-
export type Collection = {
|
|
55
|
-
category: 'collection';
|
|
56
|
-
type: 'List' | 'Map' | 'Set';
|
|
57
|
-
elementType: AttributeType;
|
|
58
|
-
};
|
|
59
|
-
export type Nested = {
|
|
60
|
-
category: 'nested';
|
|
61
|
-
type: 'ListNested' | 'MapNested' | 'SetNested' | 'SingleNested';
|
|
62
|
-
modelTypeName: string;
|
|
63
|
-
validators: TerraformValidators;
|
|
64
|
-
};
|
|
65
|
-
type MethodNames = 'create' | 'read' | 'list' | 'update' | 'delete';
|
|
66
|
-
export type Timeouts = {
|
|
67
|
-
propertyName: string;
|
|
68
|
-
block: boolean;
|
|
69
|
-
type: 'resource' | 'datasource';
|
|
70
|
-
timeouts: {
|
|
71
|
-
[key in MethodNames]: number | undefined;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
export type AttributeType = Nested | Collection | Dynamic | Primitive | Unknown;
|
|
75
|
-
export type PathExpr = Readonly<{
|
|
76
|
-
path: string;
|
|
77
|
-
container?: Collection['type'] | Nested['type'];
|
|
78
|
-
}>;
|
|
79
|
-
export type PathExpression = readonly PathExpr[];
|
|
80
|
-
export type TerraformDeclAttribute = SDKJSON.BaseDeclaration & {
|
|
81
|
-
kind: 'TerraformDeclAttribute';
|
|
82
|
-
name: string;
|
|
83
|
-
docstring?: string;
|
|
84
|
-
type: AttributeType;
|
|
85
|
-
children: SDKJSON.ID[];
|
|
86
|
-
configurability: Configurability;
|
|
87
|
-
requiresReplace?: boolean;
|
|
88
|
-
};
|
|
89
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TerraformAST.js","sourceRoot":"","sources":["../../../../../src/types/stainless-alias/lib/json-spec-v2/TerraformAST.ts"],"names":[],"mappings":"AAAA,sBAAsB"}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import type { DiagnosticExport } from '@pkg/diagnostics/src/base';
|
|
2
|
-
import type { ResponseContentObject, SchemaObject } from '@pkg/openapi';
|
|
3
|
-
import type { Config, SupportedLanguage } from '@pkg/stainless-config';
|
|
4
|
-
import type { HTTPMethod } from '@pkg/stainless-config/src/util';
|
|
5
|
-
import type { HttpDeclaration, HttpDeclProperty, HttpDeclReference, HttpType } from '~/lib/json-spec-v2/HttpAST';
|
|
6
|
-
import type { RubyDeclaration, RubyDeclProperty, RubyDeclReference, RubyType } from '~/lib/json-spec-v2/RubyAST';
|
|
7
|
-
import type { SDKSchema, SDKSchemaType } from '~/lib/sdk-spec/generic-sdk-wrappers';
|
|
8
|
-
import type { GoDeclaration, GoDeclConst, GoDeclProperty, GoDeclReference, GoType } from './GoAST';
|
|
9
|
-
import type { JavaDeclaration, JavaDeclProperty, JavaDeclReference, JavaType } from './JavaAST';
|
|
10
|
-
import type { PythonDeclaration, PythonDeclProperty, PythonDeclReference, PythonType } from './PythonAST';
|
|
11
|
-
import type { TerraformDeclaration } from './TerraformAST';
|
|
12
|
-
import type { TSDeclaration, TSDeclProperty, TSDeclReference, TSType } from './TSAST';
|
|
13
|
-
export type HasOASRef = {
|
|
14
|
-
oasRef?: string;
|
|
15
|
-
};
|
|
16
|
-
export type HasConfigRef = {
|
|
17
|
-
configRef: string;
|
|
18
|
-
};
|
|
19
|
-
export type HasStainlessPath = {
|
|
20
|
-
stainlessPath: string;
|
|
21
|
-
};
|
|
22
|
-
export type ID = string & {
|
|
23
|
-
_isId: null;
|
|
24
|
-
};
|
|
25
|
-
export type SchemaType = SDKSchemaType;
|
|
26
|
-
export declare const constraints: readonly ["minLength", "maxLength", "format", "minimum", "exclusiveMinimum", "maximum", "exclusiveMaximum", "multipleOf"];
|
|
27
|
-
export type Constraints = Pick<SchemaObject, (typeof constraints)[number]>;
|
|
28
|
-
export declare function constraintsFromSchema(rawSchema: SchemaObject): {
|
|
29
|
-
[k: string]: any;
|
|
30
|
-
} | undefined;
|
|
31
|
-
export declare const SpecLanguages: readonly ["node", "go", "python", "terraform", "http", "typescript", "ruby", "java", "kotlin"];
|
|
32
|
-
export type SpecLanguage = (typeof SpecLanguages)[number];
|
|
33
|
-
export declare function isSpecLanguage(language: string): language is SpecLanguage;
|
|
34
|
-
export declare const SnippetLanguages: readonly ["node.default", "go.default", "python.default", "terraform.default", "http.curl", "http.powershell", "typescript.default", "ruby.default", "java.default", "kotlin.default"];
|
|
35
|
-
export type SnippetLanguage<lang extends SpecLanguage = SpecLanguage> = (typeof SnippetLanguages)[number] & `${lang}.${string}`;
|
|
36
|
-
/**
|
|
37
|
-
* A literal property path from Spec down to a given node
|
|
38
|
-
*/
|
|
39
|
-
export type Path = (string | number)[];
|
|
40
|
-
/**
|
|
41
|
-
* A literal property path from Spec down to a given node
|
|
42
|
-
*/
|
|
43
|
-
export type PathLike = string | (string | number)[];
|
|
44
|
-
export type Node = Spec | Resource | Method | Model;
|
|
45
|
-
/**
|
|
46
|
-
* Checks if thing is an Node.
|
|
47
|
-
* Not a sound check, it should only be called on values within an
|
|
48
|
-
* tree, and it only works because no node has a property
|
|
49
|
-
* of type Record<string, string>.
|
|
50
|
-
*/
|
|
51
|
-
export declare function isNode(thing: any): thing is Node;
|
|
52
|
-
export type DeclRefType = HttpDeclReference | TSDeclReference | PythonDeclReference | GoDeclReference | GoDeclConst | RubyDeclReference | JavaDeclReference;
|
|
53
|
-
export type Type = HttpType | TSType | PythonType | GoType | RubyType | JavaType;
|
|
54
|
-
export type PropertyType = HttpDeclProperty | TSDeclProperty | PythonDeclProperty | GoDeclProperty | RubyDeclProperty | JavaDeclProperty;
|
|
55
|
-
export type Spec = {
|
|
56
|
-
name: string;
|
|
57
|
-
kind: 'spec';
|
|
58
|
-
security_schemes: {
|
|
59
|
-
type: 'http_bearer' | 'query' | 'header' | 'oauth2' | 'http_basic' | 'http_digest';
|
|
60
|
-
description?: string;
|
|
61
|
-
name: string;
|
|
62
|
-
title: string;
|
|
63
|
-
header: string | undefined;
|
|
64
|
-
example: string | undefined;
|
|
65
|
-
}[];
|
|
66
|
-
resources: Record<string, Resource>;
|
|
67
|
-
diagnostics: Diagnostics;
|
|
68
|
-
docs?: Config['docs'];
|
|
69
|
-
metadata: {
|
|
70
|
-
[lang in SpecLanguage]?: {
|
|
71
|
-
repo_url?: string;
|
|
72
|
-
code_url?: string;
|
|
73
|
-
package_title?: string;
|
|
74
|
-
version?: string;
|
|
75
|
-
install?: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
readme: {
|
|
79
|
-
[lang in SpecLanguage]?: string;
|
|
80
|
-
};
|
|
81
|
-
decls: {
|
|
82
|
-
[lang in SpecLanguage]?: Record<string, LanguageDeclNodes[lang]>;
|
|
83
|
-
};
|
|
84
|
-
snippets: {
|
|
85
|
-
[key in SnippetLanguage]?: Record<string, string>;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
export type Resource = (HasConfigRef & HasStainlessPath) & {
|
|
89
|
-
kind: 'resource';
|
|
90
|
-
name: string;
|
|
91
|
-
title: string;
|
|
92
|
-
configRef: string;
|
|
93
|
-
description?: string;
|
|
94
|
-
models: Record<string, Model>;
|
|
95
|
-
methods: Record<string, Method>;
|
|
96
|
-
subresources?: Record<string, Resource>;
|
|
97
|
-
} & {
|
|
98
|
-
[key in SpecLanguage]?: {
|
|
99
|
-
Name: string;
|
|
100
|
-
QualifiedName: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
export type Method = (HasStainlessPath & HasOASRef) & {
|
|
104
|
-
kind: 'http_method';
|
|
105
|
-
name: string;
|
|
106
|
-
title: string;
|
|
107
|
-
configRef: string | undefined;
|
|
108
|
-
description?: string;
|
|
109
|
-
summary?: string;
|
|
110
|
-
httpMethod: string;
|
|
111
|
-
endpoint: string;
|
|
112
|
-
deprecated?: string | boolean;
|
|
113
|
-
exampleResponses?: Record<string, ResponseContentObject>;
|
|
114
|
-
security: Record<string, string[]>[] | undefined;
|
|
115
|
-
'x-api-token-group'?: string[];
|
|
116
|
-
} & {
|
|
117
|
-
[key in SpecLanguage]?: {
|
|
118
|
-
Name: string;
|
|
119
|
-
QualifiedName: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
export type StainlessMethodInfo = StainlessHttpMethodInfo | StainlessAliasMethodInfo | StainlessWebhookUnwrapMethodInfo;
|
|
123
|
-
export type StainlessHttpMethodInfo = {
|
|
124
|
-
kind: 'http_method_info';
|
|
125
|
-
httpMethod: HTTPMethod;
|
|
126
|
-
path: string;
|
|
127
|
-
};
|
|
128
|
-
export type StainlessAliasMethodInfo = {
|
|
129
|
-
kind: 'alias_method_info';
|
|
130
|
-
httpMethod: HTTPMethod;
|
|
131
|
-
path: string;
|
|
132
|
-
};
|
|
133
|
-
export type StainlessWebhookUnwrapMethodInfo = {
|
|
134
|
-
kind: 'webhook_unwrap_method_info';
|
|
135
|
-
};
|
|
136
|
-
export type Parameter = (HasOASRef & HasStainlessPath) & {
|
|
137
|
-
kind: 'parameter';
|
|
138
|
-
key: string;
|
|
139
|
-
name: string;
|
|
140
|
-
location: string;
|
|
141
|
-
description?: string;
|
|
142
|
-
isRequired?: boolean;
|
|
143
|
-
isPositional: boolean;
|
|
144
|
-
};
|
|
145
|
-
export type Model = (HasOASRef & HasConfigRef & HasStainlessPath) & {
|
|
146
|
-
kind: 'model';
|
|
147
|
-
name: string;
|
|
148
|
-
title: string;
|
|
149
|
-
isImplicit: boolean;
|
|
150
|
-
stainlessPath: string;
|
|
151
|
-
configRef: string;
|
|
152
|
-
loading?: boolean;
|
|
153
|
-
};
|
|
154
|
-
export type BaseDeclaration = {
|
|
155
|
-
stainlessPath: string;
|
|
156
|
-
oasRef?: string;
|
|
157
|
-
configRef?: string;
|
|
158
|
-
loading?: boolean;
|
|
159
|
-
deprecated?: boolean | string;
|
|
160
|
-
snippet?: string;
|
|
161
|
-
};
|
|
162
|
-
export type BaseType = {
|
|
163
|
-
oasRef?: string;
|
|
164
|
-
};
|
|
165
|
-
export type Diagnostics = Record<string, DiagnosticExport[]>;
|
|
166
|
-
export type Diagnostic = DiagnosticExport;
|
|
167
|
-
export type LanguageDeclNodes = {
|
|
168
|
-
node: TSDeclaration;
|
|
169
|
-
typescript: TSDeclaration;
|
|
170
|
-
go: GoDeclaration;
|
|
171
|
-
python: PythonDeclaration;
|
|
172
|
-
terraform: TerraformDeclaration;
|
|
173
|
-
java: JavaDeclaration;
|
|
174
|
-
kotlin: JavaDeclaration;
|
|
175
|
-
ruby: RubyDeclaration;
|
|
176
|
-
http: HttpDeclaration;
|
|
177
|
-
};
|
|
178
|
-
export type ErrorDecl = BaseDeclaration & {
|
|
179
|
-
kind: 'ErrorDecl';
|
|
180
|
-
error: Error;
|
|
181
|
-
message: string;
|
|
182
|
-
};
|
|
183
|
-
export type DeclarationNode = LanguageDeclNodes[SpecLanguage];
|
|
184
|
-
export declare function declare<T extends BaseDeclaration>(map: Map<string, T>, stainlessPath: string, generator: () => Omit<T, 'stainlessPath'>): ID;
|
|
185
|
-
export declare function declareAll<T extends BaseDeclaration>(map: Map<string, T>, items: Array<{
|
|
186
|
-
stainlessPath: string;
|
|
187
|
-
generator: () => Omit<T, 'stainlessPath'>;
|
|
188
|
-
}>): ID[];
|
|
189
|
-
export declare function schemaChildrenParent(schema: SDKSchema): SDKSchemaType | undefined;
|
|
190
|
-
export declare function processReadme(content: string, language: SupportedLanguage, languageSnippets: Record<string, any>): any;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { getLogger } from '@pkg/logger';
|
|
2
|
-
import * as GlobalSnippets from '~/templates/common/docs';
|
|
3
|
-
import { ctx } from '~/templates/context';
|
|
4
|
-
export const constraints = [
|
|
5
|
-
'minLength',
|
|
6
|
-
'maxLength',
|
|
7
|
-
'format',
|
|
8
|
-
'minimum',
|
|
9
|
-
'exclusiveMinimum',
|
|
10
|
-
'maximum',
|
|
11
|
-
'exclusiveMaximum',
|
|
12
|
-
'multipleOf',
|
|
13
|
-
];
|
|
14
|
-
export function constraintsFromSchema(rawSchema) {
|
|
15
|
-
const items = Object.entries(rawSchema).filter(([name]) => constraints.includes(name));
|
|
16
|
-
return items.length ? Object.fromEntries(items) : undefined;
|
|
17
|
-
}
|
|
18
|
-
export const SpecLanguages = [
|
|
19
|
-
'node',
|
|
20
|
-
'go',
|
|
21
|
-
'python',
|
|
22
|
-
'terraform',
|
|
23
|
-
'http',
|
|
24
|
-
'typescript',
|
|
25
|
-
'ruby',
|
|
26
|
-
'java',
|
|
27
|
-
'kotlin',
|
|
28
|
-
];
|
|
29
|
-
export function isSpecLanguage(language) {
|
|
30
|
-
return SpecLanguages.includes(language);
|
|
31
|
-
}
|
|
32
|
-
export const SnippetLanguages = [
|
|
33
|
-
'node.default',
|
|
34
|
-
'go.default',
|
|
35
|
-
'python.default',
|
|
36
|
-
'terraform.default',
|
|
37
|
-
'http.curl',
|
|
38
|
-
'http.powershell',
|
|
39
|
-
'typescript.default',
|
|
40
|
-
'ruby.default',
|
|
41
|
-
'java.default',
|
|
42
|
-
'kotlin.default',
|
|
43
|
-
];
|
|
44
|
-
/**
|
|
45
|
-
* Checks if thing is an Node.
|
|
46
|
-
* Not a sound check, it should only be called on values within an
|
|
47
|
-
* tree, and it only works because no node has a property
|
|
48
|
-
* of type Record<string, string>.
|
|
49
|
-
*/
|
|
50
|
-
export function isNode(thing) {
|
|
51
|
-
return typeof thing?.kind === 'string';
|
|
52
|
-
}
|
|
53
|
-
export function declare(map, stainlessPath, generator) {
|
|
54
|
-
if (map.has(stainlessPath)) {
|
|
55
|
-
return stainlessPath;
|
|
56
|
-
}
|
|
57
|
-
try {
|
|
58
|
-
const decl = generator();
|
|
59
|
-
decl.stainlessPath = stainlessPath;
|
|
60
|
-
map.set(stainlessPath, decl);
|
|
61
|
-
return stainlessPath;
|
|
62
|
-
}
|
|
63
|
-
catch (error) {
|
|
64
|
-
const errorDecl = {
|
|
65
|
-
kind: 'ErrorDecl',
|
|
66
|
-
stainlessPath,
|
|
67
|
-
error: error instanceof Error ? error : new Error(String(error)),
|
|
68
|
-
message: `Error generating declaration: ${error instanceof Error ? error.message : String(error)}`,
|
|
69
|
-
};
|
|
70
|
-
map.set(stainlessPath, errorDecl);
|
|
71
|
-
getLogger().error(`Error generating declaration for ${stainlessPath}:`, error);
|
|
72
|
-
return stainlessPath;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
export function declareAll(map, items) {
|
|
76
|
-
if (items.length === 0) {
|
|
77
|
-
return [];
|
|
78
|
-
}
|
|
79
|
-
return items.map(({ stainlessPath, generator }) => declare(map, stainlessPath, generator));
|
|
80
|
-
}
|
|
81
|
-
// Populates the `childrenParentSchema` property on property declarations, used in the API Docs product
|
|
82
|
-
// for e.g. determining if children are members of a union. This is a temporary hack and we should
|
|
83
|
-
// instead have a richer intermediate metadata object that includes this and other data.
|
|
84
|
-
export function schemaChildrenParent(schema) {
|
|
85
|
-
switch (schema.type) {
|
|
86
|
-
case 'array':
|
|
87
|
-
case 'map':
|
|
88
|
-
return schemaChildrenParent(schema.items.schema);
|
|
89
|
-
case 'object':
|
|
90
|
-
case 'intersection':
|
|
91
|
-
case 'union':
|
|
92
|
-
case 'enum':
|
|
93
|
-
return schema.type;
|
|
94
|
-
default:
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export function processReadme(content, language, languageSnippets) {
|
|
99
|
-
const snippets = {
|
|
100
|
-
...languageSnippets,
|
|
101
|
-
...GlobalSnippets,
|
|
102
|
-
};
|
|
103
|
-
return ctx.withLanguage(language, () => content.replace(/SDK_(\w+)/g, (_, key) => snippets[key]?.() ?? `SDK_${key}`));
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/types/stainless-alias/lib/json-spec-v2/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,a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