@stainless-api/docs-ui 0.1.0-beta.1 → 0.1.0-beta.10
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 +11 -0
- package/dist/components/breadcrumbs.js +52 -0
- package/dist/components/breadcrumbs.js.map +1 -0
- package/dist/components/chat.d.ts +6 -0
- package/dist/components/chat.js +80 -0
- package/dist/components/chat.js.map +1 -0
- package/dist/components/dropdown.d.ts +17 -0
- package/dist/components/dropdown.js +18 -0
- package/dist/components/dropdown.js.map +1 -0
- package/dist/components/icons.d.ts +27 -0
- package/dist/components/icons.js +34 -0
- package/dist/components/icons.js.map +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +10 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/method.d.ts +41 -0
- package/dist/components/method.js +44 -0
- package/dist/components/method.js.map +1 -0
- package/dist/components/overview.d.ts +21 -0
- package/dist/components/overview.js +49 -0
- package/dist/components/overview.js.map +1 -0
- package/dist/components/primitives.d.ts +60 -0
- package/dist/components/primitives.js +117 -0
- package/dist/components/primitives.js.map +1 -0
- package/dist/components/properties.d.ts +24 -0
- package/dist/components/properties.js +24 -0
- package/dist/components/properties.js.map +1 -0
- package/dist/components/scripts/dropdown.d.ts +5 -0
- package/dist/components/scripts/dropdown.js +64 -0
- package/dist/components/scripts/dropdown.js.map +1 -0
- package/dist/components/sdk.d.ts +78 -0
- package/dist/components/sdk.js +153 -0
- package/dist/components/sdk.js.map +1 -0
- package/dist/components/sidebar.d.ts +22 -0
- package/dist/components/sidebar.js +30 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/snippets.d.ts +28 -0
- package/dist/components/snippets.js +76 -0
- package/dist/components/snippets.js.map +1 -0
- package/dist/contexts/component-generics.d.ts +25 -0
- package/dist/contexts/component-generics.js +24 -0
- package/dist/contexts/component-generics.js.map +1 -0
- package/dist/contexts/component-types.d.ts +4 -0
- package/dist/contexts/component-types.js +2 -0
- package/dist/contexts/component-types.js.map +1 -0
- package/dist/contexts/component.d.ts +14 -0
- package/dist/contexts/component.js +14 -0
- package/dist/contexts/component.js.map +1 -0
- package/dist/contexts/docs.d.ts +34 -0
- package/dist/contexts/docs.js +43 -0
- package/dist/contexts/docs.js.map +1 -0
- package/dist/contexts/index.d.ts +7 -0
- package/dist/contexts/index.js +15 -0
- package/dist/contexts/index.js.map +1 -0
- package/dist/contexts/markdown.d.ts +13 -0
- package/dist/contexts/markdown.js +29 -0
- package/dist/contexts/markdown.js.map +1 -0
- package/dist/contexts/navigation.d.ts +19 -0
- package/dist/contexts/navigation.js +14 -0
- package/dist/contexts/navigation.js.map +1 -0
- package/dist/contexts/search.d.ts +13 -0
- package/dist/contexts/search.js +15 -0
- package/dist/contexts/search.js.map +1 -0
- package/dist/contexts/use-components.d.ts +1 -0
- package/dist/contexts/use-components.js +3 -0
- package/dist/contexts/use-components.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -7542
- package/dist/index.js.map +1 -0
- package/dist/languages/go.d.ts +21 -0
- package/dist/languages/go.js +116 -0
- package/dist/languages/go.js.map +1 -0
- package/dist/languages/http.d.ts +25 -0
- package/dist/languages/http.js +130 -0
- package/dist/languages/http.js.map +1 -0
- package/dist/languages/index.d.ts +37 -0
- package/dist/languages/index.js +10 -0
- package/dist/languages/index.js.map +1 -0
- package/dist/languages/java.d.ts +23 -0
- package/dist/languages/java.js +120 -0
- package/dist/languages/java.js.map +1 -0
- package/dist/languages/python.d.ts +22 -0
- package/dist/languages/python.js +104 -0
- package/dist/languages/python.js.map +1 -0
- package/dist/languages/ruby.d.ts +22 -0
- package/dist/languages/ruby.js +125 -0
- package/dist/languages/ruby.js.map +1 -0
- package/dist/languages/typescript.d.ts +22 -0
- package/dist/languages/typescript.js +134 -0
- package/dist/languages/typescript.js.map +1 -0
- package/dist/markdown/index.d.ts +6 -0
- package/dist/markdown/index.js +80 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/markdown/md.d.ts +11 -0
- package/dist/markdown/md.js +34 -0
- package/dist/markdown/md.js.map +1 -0
- package/dist/markdown/utils.d.ts +17 -0
- package/dist/markdown/utils.js +30 -0
- package/dist/markdown/utils.js.map +1 -0
- package/dist/mcp.js +678 -576
- package/dist/routing.d.ts +44 -0
- package/dist/routing.js +149 -160
- package/dist/routing.js.map +1 -0
- package/dist/search/form.d.ts +13 -0
- package/dist/search/form.js +55 -0
- package/dist/search/form.js.map +1 -0
- package/dist/search/index.d.ts +1 -0
- package/dist/search/index.js +2 -0
- package/dist/search/index.js.map +1 -0
- package/dist/search/indexer.d.ts +31 -0
- package/dist/search/indexer.js +212 -0
- package/dist/search/indexer.js.map +1 -0
- package/dist/search/mcp.d.ts +8 -0
- package/dist/search/mcp.js +43 -0
- package/dist/search/mcp.js.map +1 -0
- package/dist/search/printer.d.ts +6 -0
- package/dist/search/printer.js +43 -0
- package/dist/search/printer.js.map +1 -0
- package/dist/search/providers/algolia.d.ts +8 -0
- package/dist/search/providers/algolia.js +64 -0
- package/dist/search/providers/algolia.js.map +1 -0
- package/dist/search/providers/fuse.d.ts +10 -0
- package/dist/search/providers/fuse.js +14 -0
- package/dist/search/providers/fuse.js.map +1 -0
- package/dist/search/providers/pagefind.d.ts +2 -0
- package/dist/search/providers/pagefind.js +19 -0
- package/dist/search/providers/pagefind.js.map +1 -0
- package/dist/search/providers/walker.d.ts +5 -0
- package/dist/search/providers/walker.js +23 -0
- package/dist/search/providers/walker.js.map +1 -0
- package/dist/search/results.d.ts +21 -0
- package/dist/search/results.js +58 -0
- package/dist/search/results.js.map +1 -0
- package/dist/search/state.d.ts +29 -0
- package/dist/search/state.js +38 -0
- package/dist/search/state.js.map +1 -0
- package/dist/search/types.d.ts +79 -0
- package/dist/search/types.js +24 -0
- package/dist/search/types.js.map +1 -0
- package/dist/style.d.ts +179 -0
- package/dist/style.js +179 -0
- package/dist/style.js.map +1 -0
- package/dist/styles/primitives.css +1 -0
- package/dist/types/sdkjson.d.ts +1 -0
- package/dist/types/sdkjson.js +2 -0
- package/dist/types/sdkjson.js.map +1 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/GoAST.d.ts +120 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/GoAST.js +2 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/GoAST.js.map +1 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/HttpAST.d.ts +100 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/HttpAST.js +3 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/HttpAST.js.map +1 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/JavaAST.d.ts +87 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/JavaAST.js +2 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/JavaAST.js.map +1 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/PythonAST.d.ts +110 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/PythonAST.js +3 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/PythonAST.js.map +1 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/RubyAST.d.ts +122 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/RubyAST.js +2 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/RubyAST.js.map +1 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/TSAST.d.ts +146 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/TSAST.js +3 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/TSAST.js.map +1 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/TerraformAST.d.ts +89 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/TerraformAST.js +3 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/TerraformAST.js.map +1 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/types.d.ts +190 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/types.js +105 -0
- package/dist/types/stainless-alias/lib/json-spec-v2/types.js.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +27 -0
- package/dist/utils.js.map +1 -0
- package/package.json +8 -7
- package/src/components/method.tsx +4 -2
- package/src/components/overview.tsx +1 -0
- package/src/components/sdk.tsx +3 -2
- package/src/components/snippets.tsx +3 -2
- package/src/search/results.tsx +1 -0
- package/src/style.ts +0 -1
- package/src/styles/main.css +739 -746
- package/src/styles/primitives.css +435 -427
- package/src/styles/resets.css +33 -41
- package/src/styles/search.css +247 -248
- package/src/styles/sidebar.css +58 -60
- package/src/styles/snippets.css +86 -88
- package/src/styles/variables.css +85 -89
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type * as SDKJSON from './types';
|
|
2
|
+
export type GoDeclaration = GoDeclFunction | GoDeclType | GoDeclProperty | GoDeclTypeAlias | GoDeclConst | GoDeclReference | SDKJSON.ErrorDecl;
|
|
3
|
+
export type GoDeclFunction = SDKJSON.BaseDeclaration & {
|
|
4
|
+
kind: 'GoDeclFunction';
|
|
5
|
+
ident: GoIdentifier;
|
|
6
|
+
qualified?: string;
|
|
7
|
+
docstring?: string;
|
|
8
|
+
async?: boolean;
|
|
9
|
+
generics?: GoGenericParameter[];
|
|
10
|
+
parameters: GoFunctionParameter[];
|
|
11
|
+
returnType: GoType[];
|
|
12
|
+
paramsChildren?: SDKJSON.ID[];
|
|
13
|
+
responseChildren?: SDKJSON.ID[];
|
|
14
|
+
};
|
|
15
|
+
export type GoFunctionParameter = {
|
|
16
|
+
kind: 'GoFunctionParameter';
|
|
17
|
+
optional?: boolean;
|
|
18
|
+
ident: GoIdentifier;
|
|
19
|
+
typeAnnotation: GoType;
|
|
20
|
+
};
|
|
21
|
+
export type GoGenericParameter = {
|
|
22
|
+
kind: 'GoTypeParameter';
|
|
23
|
+
name: string;
|
|
24
|
+
constraint?: GoType;
|
|
25
|
+
};
|
|
26
|
+
export type GoDeclType = SDKJSON.BaseDeclaration & {
|
|
27
|
+
kind: 'GoDeclType';
|
|
28
|
+
docstring?: string;
|
|
29
|
+
ident: GoIdentifier;
|
|
30
|
+
generics?: GoGenericParameter[];
|
|
31
|
+
type: GoType;
|
|
32
|
+
children?: SDKJSON.ID[];
|
|
33
|
+
};
|
|
34
|
+
export type GoDeclTypeAlias = SDKJSON.BaseDeclaration & {
|
|
35
|
+
kind: 'GoDeclTypeAlias';
|
|
36
|
+
docstring?: string;
|
|
37
|
+
ident: GoIdentifier;
|
|
38
|
+
type: GoType;
|
|
39
|
+
children?: SDKJSON.ID[];
|
|
40
|
+
};
|
|
41
|
+
export type GoDeclConst = SDKJSON.BaseDeclaration & {
|
|
42
|
+
kind: 'GoDeclConst';
|
|
43
|
+
docstring?: string;
|
|
44
|
+
ident: GoIdentifier;
|
|
45
|
+
type: GoType;
|
|
46
|
+
value: boolean | string | number;
|
|
47
|
+
children?: SDKJSON.ID[];
|
|
48
|
+
};
|
|
49
|
+
export type GoIdentifier = string;
|
|
50
|
+
export type GoDeclProperty = SDKJSON.BaseDeclaration & {
|
|
51
|
+
kind: 'GoDeclProperty';
|
|
52
|
+
docstring?: string;
|
|
53
|
+
ident: GoIdentifier;
|
|
54
|
+
type: GoType;
|
|
55
|
+
constraints?: SDKJSON.Constraints;
|
|
56
|
+
optional?: boolean;
|
|
57
|
+
default?: any;
|
|
58
|
+
schemaType?: SDKJSON.SchemaType;
|
|
59
|
+
modelPath?: string;
|
|
60
|
+
childrenParentSchema?: SDKJSON.SchemaType;
|
|
61
|
+
children?: SDKJSON.ID[];
|
|
62
|
+
};
|
|
63
|
+
export type GoDeclReference = SDKJSON.BaseDeclaration & {
|
|
64
|
+
kind: 'GoDeclReference';
|
|
65
|
+
docstring?: string;
|
|
66
|
+
type: GoType;
|
|
67
|
+
children?: SDKJSON.ID[];
|
|
68
|
+
};
|
|
69
|
+
export type GoType = GoTypeReference | GoTypeInterface | GoTypeStruct | GoTypeArray | GoTypeMap | GoTypeString | GoTypeFloat | GoTypeInt | GoTypeBool | GoTypeAny | GoTypeUnknown | GoTypeError | GoTypePointer;
|
|
70
|
+
export type GoTypeReference = SDKJSON.BaseType & {
|
|
71
|
+
kind: 'GoTypeReference';
|
|
72
|
+
typeName: GoIdentifier;
|
|
73
|
+
typeParameters?: GoType[];
|
|
74
|
+
schemaType?: SDKJSON.SchemaType;
|
|
75
|
+
$ref?: string;
|
|
76
|
+
};
|
|
77
|
+
export type GoTypeStruct = SDKJSON.BaseType & {
|
|
78
|
+
kind: 'GoTypeStruct';
|
|
79
|
+
};
|
|
80
|
+
export type GoTypeInterface = SDKJSON.BaseType & {
|
|
81
|
+
kind: 'GoTypeInterface';
|
|
82
|
+
docstring?: string;
|
|
83
|
+
typeName?: GoIdentifier;
|
|
84
|
+
generics?: GoGenericParameter[];
|
|
85
|
+
extends?: GoTypeReference[];
|
|
86
|
+
};
|
|
87
|
+
export type GoTypeArray = SDKJSON.BaseType & {
|
|
88
|
+
kind: 'GoTypeArray';
|
|
89
|
+
elementType: GoType;
|
|
90
|
+
};
|
|
91
|
+
export type GoTypeMap = SDKJSON.BaseType & {
|
|
92
|
+
kind: 'GoTypeMap';
|
|
93
|
+
indexType: GoType;
|
|
94
|
+
itemType: GoType;
|
|
95
|
+
};
|
|
96
|
+
export type GoTypeString = SDKJSON.BaseType & {
|
|
97
|
+
kind: 'GoTypeString';
|
|
98
|
+
};
|
|
99
|
+
export type GoTypeFloat = SDKJSON.BaseType & {
|
|
100
|
+
kind: 'GoTypeFloat';
|
|
101
|
+
};
|
|
102
|
+
export type GoTypeInt = SDKJSON.BaseType & {
|
|
103
|
+
kind: 'GoTypeInt';
|
|
104
|
+
};
|
|
105
|
+
export type GoTypeBool = SDKJSON.BaseType & {
|
|
106
|
+
kind: 'GoTypeBool';
|
|
107
|
+
};
|
|
108
|
+
export type GoTypeAny = SDKJSON.BaseType & {
|
|
109
|
+
kind: 'GoTypeAny';
|
|
110
|
+
};
|
|
111
|
+
export type GoTypeUnknown = SDKJSON.BaseType & {
|
|
112
|
+
kind: 'GoTypeUnknown';
|
|
113
|
+
};
|
|
114
|
+
export type GoTypeError = SDKJSON.BaseType & {
|
|
115
|
+
kind: 'GoTypeError';
|
|
116
|
+
};
|
|
117
|
+
export type GoTypePointer = SDKJSON.BaseType & {
|
|
118
|
+
kind: 'GoTypePointer';
|
|
119
|
+
inner: GoType;
|
|
120
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoAST.js","sourceRoot":"","sources":["../../../../../src/types/stainless-alias/lib/json-spec-v2/GoAST.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type * as SDKJSON from './types';
|
|
2
|
+
export type HttpDeclaration = HttpDeclFunction | HttpDeclProperty | HttpDeclTypeAlias | HttpDeclReference | SDKJSON.ErrorDecl;
|
|
3
|
+
export type HttpDeclFunction = SDKJSON.BaseDeclaration & {
|
|
4
|
+
kind: 'HttpDeclFunction';
|
|
5
|
+
ident: HttpIdentifier;
|
|
6
|
+
qualified?: string;
|
|
7
|
+
returns?: HttpType;
|
|
8
|
+
paramsChildren?: Record<string, SDKJSON.ID[]>;
|
|
9
|
+
bodyParamsChildren?: Record<string, SDKJSON.ID[]>;
|
|
10
|
+
responseChildren?: SDKJSON.ID[];
|
|
11
|
+
};
|
|
12
|
+
export type HttpDeclProperty = SDKJSON.BaseDeclaration & {
|
|
13
|
+
kind: 'HttpDeclProperty';
|
|
14
|
+
key: string;
|
|
15
|
+
docstring?: string;
|
|
16
|
+
location?: string;
|
|
17
|
+
type: HttpType;
|
|
18
|
+
constraints?: SDKJSON.Constraints;
|
|
19
|
+
default?: any;
|
|
20
|
+
optional?: boolean;
|
|
21
|
+
nullable?: boolean;
|
|
22
|
+
declare?: boolean;
|
|
23
|
+
schemaType?: SDKJSON.SchemaType;
|
|
24
|
+
modelPath?: string;
|
|
25
|
+
childrenParentSchema?: SDKJSON.SchemaType;
|
|
26
|
+
children?: SDKJSON.ID[];
|
|
27
|
+
};
|
|
28
|
+
export type HttpDeclTypeAlias = SDKJSON.BaseDeclaration & {
|
|
29
|
+
kind: 'HttpDeclTypeAlias';
|
|
30
|
+
docstring?: string;
|
|
31
|
+
ident: HttpIdentifier;
|
|
32
|
+
typeParameters?: HttpTypeParameter[];
|
|
33
|
+
type: HttpType;
|
|
34
|
+
children?: SDKJSON.ID[];
|
|
35
|
+
};
|
|
36
|
+
export type HttpTypeParameter = {
|
|
37
|
+
kind: 'HttpTypeParameter';
|
|
38
|
+
name: HttpIdentifier;
|
|
39
|
+
constraint?: HttpType;
|
|
40
|
+
default?: HttpType;
|
|
41
|
+
};
|
|
42
|
+
export type HttpIdentifier = string;
|
|
43
|
+
export type HttpDeclReference = SDKJSON.BaseDeclaration & {
|
|
44
|
+
kind: 'HttpDeclReference';
|
|
45
|
+
docstring?: string;
|
|
46
|
+
type: HttpType;
|
|
47
|
+
children?: SDKJSON.ID[];
|
|
48
|
+
};
|
|
49
|
+
export type HttpType = HttpTypeReference | HttpTypeObject | HttpTypeArray | HttpTypeString | HttpTypeNumber | HttpTypeBoolean | HttpTypeNull | HttpTypeUndefined | HttpTypeBinary | HttpTypeUnknown | HttpTypeLiteral | HttpTypeUnion | HttpTypeIntersection;
|
|
50
|
+
export type HttpTypeReference = SDKJSON.BaseType & {
|
|
51
|
+
kind: 'HttpTypeReference';
|
|
52
|
+
ident: HttpIdentifier;
|
|
53
|
+
typeParameters?: HttpType[];
|
|
54
|
+
$ref?: SDKJSON.ID;
|
|
55
|
+
};
|
|
56
|
+
export type HttpTypeObject = SDKJSON.BaseType & {
|
|
57
|
+
kind: 'HttpTypeObject';
|
|
58
|
+
members: {
|
|
59
|
+
ident: HttpIdentifier;
|
|
60
|
+
optional?: boolean;
|
|
61
|
+
}[];
|
|
62
|
+
};
|
|
63
|
+
export type HttpTypeArray = SDKJSON.BaseType & {
|
|
64
|
+
kind: 'HttpTypeArray';
|
|
65
|
+
elementType: HttpType;
|
|
66
|
+
};
|
|
67
|
+
export type HttpTypeUnion = SDKJSON.BaseType & {
|
|
68
|
+
kind: 'HttpTypeUnion';
|
|
69
|
+
types: HttpType[];
|
|
70
|
+
};
|
|
71
|
+
export type HttpTypeIntersection = SDKJSON.BaseType & {
|
|
72
|
+
kind: 'HttpTypeIntersection';
|
|
73
|
+
types: HttpType[];
|
|
74
|
+
};
|
|
75
|
+
export type HttpTypeLiteral = SDKJSON.BaseType & {
|
|
76
|
+
kind: 'HttpTypeLiteral';
|
|
77
|
+
literal: string | boolean | number;
|
|
78
|
+
};
|
|
79
|
+
export type HttpTypeString = SDKJSON.BaseType & {
|
|
80
|
+
kind: 'HttpTypeString';
|
|
81
|
+
};
|
|
82
|
+
export type HttpTypeNumber = SDKJSON.BaseType & {
|
|
83
|
+
kind: 'HttpTypeNumber';
|
|
84
|
+
};
|
|
85
|
+
export type HttpTypeBoolean = SDKJSON.BaseType & {
|
|
86
|
+
kind: 'HttpTypeBoolean';
|
|
87
|
+
};
|
|
88
|
+
export type HttpTypeNull = SDKJSON.BaseType & {
|
|
89
|
+
kind: 'HttpTypeNull';
|
|
90
|
+
};
|
|
91
|
+
export type HttpTypeUndefined = SDKJSON.BaseType & {
|
|
92
|
+
kind: 'HttpTypeUndefined';
|
|
93
|
+
};
|
|
94
|
+
export type HttpTypeBinary = SDKJSON.BaseType & {
|
|
95
|
+
kind: 'HttpTypeBinary';
|
|
96
|
+
contentType: string[];
|
|
97
|
+
};
|
|
98
|
+
export type HttpTypeUnknown = SDKJSON.BaseType & {
|
|
99
|
+
kind: 'HttpTypeUnknown';
|
|
100
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpAST.js","sourceRoot":"","sources":["../../../../../src/types/stainless-alias/lib/json-spec-v2/HttpAST.ts"],"names":[],"mappings":"AAAA,2DAA2D"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type * as SDKJSON from './types';
|
|
2
|
+
export type JavaDeclaration = JavaDeclFunction | JavaDeclType | JavaDeclProperty | JavaDeclConst | JavaDeclReference | SDKJSON.ErrorDecl;
|
|
3
|
+
export type JavaDeclFunction = SDKJSON.BaseDeclaration & {
|
|
4
|
+
kind: 'JavaDeclFunction';
|
|
5
|
+
ident: JavaIdentifier;
|
|
6
|
+
qualified?: string;
|
|
7
|
+
docstring?: string;
|
|
8
|
+
async?: boolean;
|
|
9
|
+
parameters: JavaFunctionParameter[];
|
|
10
|
+
returnType?: JavaType;
|
|
11
|
+
paramsChildren?: SDKJSON.ID[];
|
|
12
|
+
responseChildren?: SDKJSON.ID[];
|
|
13
|
+
};
|
|
14
|
+
export type JavaFunctionParameter = {
|
|
15
|
+
kind: 'JavaFunctionParameter';
|
|
16
|
+
ident: JavaIdentifier;
|
|
17
|
+
typeAnnotation: JavaType;
|
|
18
|
+
hasDefault: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type JavaDeclType = SDKJSON.BaseDeclaration & {
|
|
21
|
+
kind: 'JavaDeclType';
|
|
22
|
+
docstring?: string;
|
|
23
|
+
ident: JavaIdentifier;
|
|
24
|
+
type: JavaType;
|
|
25
|
+
children?: SDKJSON.ID[];
|
|
26
|
+
};
|
|
27
|
+
export type JavaIdentifier = string;
|
|
28
|
+
export type JavaDeclProperty = SDKJSON.BaseDeclaration & {
|
|
29
|
+
kind: 'JavaDeclProperty';
|
|
30
|
+
docstring?: string;
|
|
31
|
+
ident: JavaIdentifier;
|
|
32
|
+
type: JavaType;
|
|
33
|
+
optional?: boolean;
|
|
34
|
+
schemaType?: SDKJSON.SchemaType;
|
|
35
|
+
modelPath?: string;
|
|
36
|
+
childrenParentSchema?: SDKJSON.SchemaType;
|
|
37
|
+
children?: SDKJSON.ID[];
|
|
38
|
+
};
|
|
39
|
+
export type JavaDeclConst = SDKJSON.BaseDeclaration & {
|
|
40
|
+
kind: 'JavaDeclConst';
|
|
41
|
+
docstring?: string;
|
|
42
|
+
ident: JavaIdentifier;
|
|
43
|
+
type: JavaType;
|
|
44
|
+
value: boolean | string | number;
|
|
45
|
+
};
|
|
46
|
+
export type JavaDeclReference = SDKJSON.BaseDeclaration & {
|
|
47
|
+
kind: 'JavaDeclReference';
|
|
48
|
+
docstring?: string;
|
|
49
|
+
type: JavaType;
|
|
50
|
+
schemaType?: SDKJSON.SchemaType;
|
|
51
|
+
children?: SDKJSON.ID[];
|
|
52
|
+
};
|
|
53
|
+
export type JavaType = JavaTypeReference | JavaTypeClass | JavaTypeUnion | JavaTypeEnum | JavaTypeVoid | JavaTypeBoolean | JavaTypeDouble | JavaTypeLong | JavaTypeString | JavaTypeConstant;
|
|
54
|
+
export type JavaTypeReference = SDKJSON.BaseType & {
|
|
55
|
+
kind: 'JavaTypeReference';
|
|
56
|
+
typeName: JavaIdentifier;
|
|
57
|
+
typeParameters?: JavaType[];
|
|
58
|
+
$ref?: string;
|
|
59
|
+
};
|
|
60
|
+
export type JavaTypeClass = SDKJSON.BaseType & {
|
|
61
|
+
kind: 'JavaTypeClass';
|
|
62
|
+
};
|
|
63
|
+
export type JavaTypeUnion = SDKJSON.BaseType & {
|
|
64
|
+
kind: 'JavaTypeUnion';
|
|
65
|
+
};
|
|
66
|
+
export type JavaTypeEnum = SDKJSON.BaseType & {
|
|
67
|
+
kind: 'JavaTypeEnum';
|
|
68
|
+
};
|
|
69
|
+
export type JavaTypeVoid = SDKJSON.BaseType & {
|
|
70
|
+
kind: 'JavaTypeVoid';
|
|
71
|
+
};
|
|
72
|
+
export type JavaTypeBoolean = SDKJSON.BaseType & {
|
|
73
|
+
kind: 'JavaTypeBoolean';
|
|
74
|
+
};
|
|
75
|
+
export type JavaTypeDouble = SDKJSON.BaseType & {
|
|
76
|
+
kind: 'JavaTypeDouble';
|
|
77
|
+
};
|
|
78
|
+
export type JavaTypeLong = SDKJSON.BaseType & {
|
|
79
|
+
kind: 'JavaTypeLong';
|
|
80
|
+
};
|
|
81
|
+
export type JavaTypeString = SDKJSON.BaseType & {
|
|
82
|
+
kind: 'JavaTypeString';
|
|
83
|
+
};
|
|
84
|
+
export type JavaTypeConstant = SDKJSON.BaseType & {
|
|
85
|
+
kind: 'JavaTypeConstant';
|
|
86
|
+
value: string;
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JavaAST.js","sourceRoot":"","sources":["../../../../../src/types/stainless-alias/lib/json-spec-v2/JavaAST.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type * as SDKJSON from './types';
|
|
2
|
+
export type PythonDeclaration = PythonDeclFunction | PythonDeclClass | PythonDeclType | PythonDeclProperty | PythonDeclReference | SDKJSON.ErrorDecl;
|
|
3
|
+
export type PythonDeclFunction = SDKJSON.BaseDeclaration & {
|
|
4
|
+
kind: 'PythonDeclFunction';
|
|
5
|
+
ident: PythonIdentifier;
|
|
6
|
+
qualified?: string;
|
|
7
|
+
docstring?: string;
|
|
8
|
+
async?: boolean;
|
|
9
|
+
generics?: PythonGenericParameter[];
|
|
10
|
+
parameters: PythonFunctionParameter[];
|
|
11
|
+
returns?: PythonType;
|
|
12
|
+
paramsChildren?: SDKJSON.ID[];
|
|
13
|
+
responseChildren?: SDKJSON.ID[];
|
|
14
|
+
};
|
|
15
|
+
export type PythonFunctionParameter = {
|
|
16
|
+
kind: 'PythonFunctionParameter';
|
|
17
|
+
ident: PythonIdentifier;
|
|
18
|
+
type: PythonType;
|
|
19
|
+
optional?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type PythonGenericParameter = {
|
|
22
|
+
kind: 'PythonTypeParameter';
|
|
23
|
+
name: string;
|
|
24
|
+
constraint?: PythonType;
|
|
25
|
+
};
|
|
26
|
+
export type PythonDeclClass = SDKJSON.BaseDeclaration & {
|
|
27
|
+
kind: 'PythonDeclClass';
|
|
28
|
+
docstring?: string;
|
|
29
|
+
ident: PythonIdentifier;
|
|
30
|
+
generics?: PythonGenericParameter[];
|
|
31
|
+
children?: SDKJSON.ID[];
|
|
32
|
+
};
|
|
33
|
+
export type PythonDeclType = SDKJSON.BaseDeclaration & {
|
|
34
|
+
kind: 'PythonDeclType';
|
|
35
|
+
docstring?: string;
|
|
36
|
+
ident: PythonIdentifier;
|
|
37
|
+
generics?: PythonGenericParameter[];
|
|
38
|
+
type: PythonType;
|
|
39
|
+
children?: SDKJSON.ID[];
|
|
40
|
+
};
|
|
41
|
+
export type PythonIdentifier = string;
|
|
42
|
+
export type PythonLiteral = {
|
|
43
|
+
kind: 'PythonLiteral';
|
|
44
|
+
value: string | number | boolean;
|
|
45
|
+
};
|
|
46
|
+
export type PythonDeclProperty = SDKJSON.BaseDeclaration & {
|
|
47
|
+
kind: 'PythonDeclProperty';
|
|
48
|
+
docstring?: string;
|
|
49
|
+
ident: PythonIdentifier;
|
|
50
|
+
type: PythonType;
|
|
51
|
+
constraints?: SDKJSON.Constraints;
|
|
52
|
+
optional?: boolean;
|
|
53
|
+
default?: any;
|
|
54
|
+
schemaType?: SDKJSON.SchemaType;
|
|
55
|
+
modelPath?: string;
|
|
56
|
+
childrenParentSchema?: SDKJSON.SchemaType;
|
|
57
|
+
children?: SDKJSON.ID[];
|
|
58
|
+
};
|
|
59
|
+
export type PythonDeclReference = SDKJSON.BaseDeclaration & {
|
|
60
|
+
kind: 'PythonDeclReference';
|
|
61
|
+
docstring?: string;
|
|
62
|
+
type: PythonType;
|
|
63
|
+
children?: SDKJSON.ID[];
|
|
64
|
+
};
|
|
65
|
+
export type PythonType = PythonTypeReference | PythonTypeClass | PythonTypeArray | PythonTypeMap | PythonTypeString | PythonTypeFloat | PythonTypeInt | PythonTypeBool | PythonTypeAny | PythonTypeUnknown | PythonTypeLiteral;
|
|
66
|
+
export type PythonTypeReference = SDKJSON.BaseType & {
|
|
67
|
+
kind: 'PythonTypeReference';
|
|
68
|
+
typeName: PythonIdentifier;
|
|
69
|
+
typeParameters?: PythonType[];
|
|
70
|
+
schemaType?: SDKJSON.SchemaType;
|
|
71
|
+
$ref?: string;
|
|
72
|
+
};
|
|
73
|
+
export type PythonTypeClass = SDKJSON.BaseType & {
|
|
74
|
+
kind: 'PythonTypeClass';
|
|
75
|
+
body: {
|
|
76
|
+
ident: PythonIdentifier;
|
|
77
|
+
type: PythonType;
|
|
78
|
+
}[];
|
|
79
|
+
};
|
|
80
|
+
export type PythonTypeArray = SDKJSON.BaseType & {
|
|
81
|
+
kind: 'PythonTypeArray';
|
|
82
|
+
elementType: PythonType;
|
|
83
|
+
};
|
|
84
|
+
export type PythonTypeMap = SDKJSON.BaseType & {
|
|
85
|
+
kind: 'PythonTypeMap';
|
|
86
|
+
indexType: PythonType;
|
|
87
|
+
itemType: PythonType;
|
|
88
|
+
};
|
|
89
|
+
export type PythonTypeString = SDKJSON.BaseType & {
|
|
90
|
+
kind: 'PythonTypeString';
|
|
91
|
+
};
|
|
92
|
+
export type PythonTypeFloat = SDKJSON.BaseType & {
|
|
93
|
+
kind: 'PythonTypeFloat';
|
|
94
|
+
};
|
|
95
|
+
export type PythonTypeInt = SDKJSON.BaseType & {
|
|
96
|
+
kind: 'PythonTypeInt';
|
|
97
|
+
};
|
|
98
|
+
export type PythonTypeBool = SDKJSON.BaseType & {
|
|
99
|
+
kind: 'PythonTypeBool';
|
|
100
|
+
};
|
|
101
|
+
export type PythonTypeAny = SDKJSON.BaseType & {
|
|
102
|
+
kind: 'PythonTypeAny';
|
|
103
|
+
};
|
|
104
|
+
export type PythonTypeUnknown = SDKJSON.BaseType & {
|
|
105
|
+
kind: 'PythonTypeUnknown';
|
|
106
|
+
};
|
|
107
|
+
export type PythonTypeLiteral = SDKJSON.BaseType & {
|
|
108
|
+
kind: 'PythonTypeLiteral';
|
|
109
|
+
literal: PythonLiteral;
|
|
110
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PythonAST.js","sourceRoot":"","sources":["../../../../../src/types/stainless-alias/lib/json-spec-v2/PythonAST.ts"],"names":[],"mappings":"AAAA,2DAA2D"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type * as SDKJSON from './types';
|
|
2
|
+
export type RubyDeclaration = RubyDeclFunction | RubyDeclClass | RubyDeclProperty | RubyDeclTypeAlias | RubyDeclReference | SDKJSON.ErrorDecl;
|
|
3
|
+
export type RubyDeclFunction = SDKJSON.BaseDeclaration & {
|
|
4
|
+
kind: 'RubyDeclFunction';
|
|
5
|
+
ident: RubyIdentifier;
|
|
6
|
+
args: RubyFunctionArgument[];
|
|
7
|
+
qualified?: string;
|
|
8
|
+
returns?: RubyType;
|
|
9
|
+
paramsChildren?: SDKJSON.ID[];
|
|
10
|
+
bodyParamsChildren?: Record<string, SDKJSON.ID[]>;
|
|
11
|
+
responseChildren?: SDKJSON.ID[];
|
|
12
|
+
};
|
|
13
|
+
export type RubyFunctionArgument = {
|
|
14
|
+
kind: 'RubyFunctionArgument';
|
|
15
|
+
ident: RubyIdentifier;
|
|
16
|
+
optional: boolean;
|
|
17
|
+
type: RubyType;
|
|
18
|
+
};
|
|
19
|
+
export type RubyDeclProperty = SDKJSON.BaseDeclaration & {
|
|
20
|
+
kind: 'RubyDeclProperty';
|
|
21
|
+
ident: string;
|
|
22
|
+
docstring?: string;
|
|
23
|
+
location?: string;
|
|
24
|
+
type: RubyType;
|
|
25
|
+
constraints?: SDKJSON.Constraints;
|
|
26
|
+
optional?: boolean;
|
|
27
|
+
schemaType?: SDKJSON.SchemaType;
|
|
28
|
+
modelPath?: string;
|
|
29
|
+
childrenParentSchema?: SDKJSON.SchemaType;
|
|
30
|
+
children?: SDKJSON.ID[];
|
|
31
|
+
};
|
|
32
|
+
export type RubyDeclClass = SDKJSON.BaseDeclaration & {
|
|
33
|
+
kind: 'RubyDeclClass';
|
|
34
|
+
ident: string;
|
|
35
|
+
docstring?: string;
|
|
36
|
+
type: RubyType;
|
|
37
|
+
optional?: boolean;
|
|
38
|
+
children?: SDKJSON.ID[];
|
|
39
|
+
};
|
|
40
|
+
export type RubyDeclTypeAlias = SDKJSON.BaseDeclaration & {
|
|
41
|
+
kind: 'RubyDeclTypeAlias';
|
|
42
|
+
docstring?: string;
|
|
43
|
+
ident: RubyIdentifier;
|
|
44
|
+
typeParameters?: RubyTypeParameter[];
|
|
45
|
+
type: RubyType;
|
|
46
|
+
children?: SDKJSON.ID[];
|
|
47
|
+
};
|
|
48
|
+
export type RubyTypeParameter = {
|
|
49
|
+
kind: 'RubyTypeParameter';
|
|
50
|
+
name: RubyIdentifier;
|
|
51
|
+
constraint?: RubyType;
|
|
52
|
+
default?: RubyType;
|
|
53
|
+
};
|
|
54
|
+
export type RubyIdentifier = string;
|
|
55
|
+
export type RubyDeclReference = SDKJSON.BaseDeclaration & {
|
|
56
|
+
kind: 'RubyDeclReference';
|
|
57
|
+
docstring?: string;
|
|
58
|
+
type: RubyType;
|
|
59
|
+
children?: SDKJSON.ID[];
|
|
60
|
+
};
|
|
61
|
+
export type RubyType = RubyTypeReference | RubyTypeObject | RubyTypeArray | RubyTypeMap | RubyTypeString | RubyTypeInteger | RubyTypeFloat | RubyTypeBoolean | RubyTypeNull | RubyTypeBinary | RubyTypeUnknown | RubyTypeLiteral | RubyTypeUnion | RubyTypeIntersection | RubyTypeBuiltinClass;
|
|
62
|
+
export type RubyTypeReference = SDKJSON.BaseType & {
|
|
63
|
+
kind: 'RubyTypeReference';
|
|
64
|
+
ident: RubyIdentifier;
|
|
65
|
+
typeParameters?: RubyType[];
|
|
66
|
+
schemaType?: SDKJSON.SchemaType;
|
|
67
|
+
$ref?: SDKJSON.ID;
|
|
68
|
+
};
|
|
69
|
+
export type RubyTypeObject = SDKJSON.BaseType & {
|
|
70
|
+
kind: 'RubyTypeObject';
|
|
71
|
+
members: {
|
|
72
|
+
ident: RubyIdentifier;
|
|
73
|
+
optional?: boolean;
|
|
74
|
+
}[];
|
|
75
|
+
};
|
|
76
|
+
export type RubyTypeMap = SDKJSON.BaseType & {
|
|
77
|
+
kind: 'RubyTypeMap';
|
|
78
|
+
indexType: RubyType;
|
|
79
|
+
itemType: RubyType;
|
|
80
|
+
};
|
|
81
|
+
export type RubyTypeArray = SDKJSON.BaseType & {
|
|
82
|
+
kind: 'RubyTypeArray';
|
|
83
|
+
elementType: RubyType;
|
|
84
|
+
};
|
|
85
|
+
export type RubyTypeUnion = SDKJSON.BaseType & {
|
|
86
|
+
kind: 'RubyTypeUnion';
|
|
87
|
+
types: RubyType[];
|
|
88
|
+
};
|
|
89
|
+
export type RubyTypeIntersection = SDKJSON.BaseType & {
|
|
90
|
+
kind: 'RubyTypeIntersection';
|
|
91
|
+
types: RubyType[];
|
|
92
|
+
};
|
|
93
|
+
export type RubyTypeLiteral = SDKJSON.BaseType & {
|
|
94
|
+
kind: 'RubyTypeLiteral';
|
|
95
|
+
literal: string | boolean | number;
|
|
96
|
+
};
|
|
97
|
+
export type RubyTypeBuiltinClass = SDKJSON.BaseType & {
|
|
98
|
+
kind: 'RubyTypeBuiltinClass';
|
|
99
|
+
className: string;
|
|
100
|
+
};
|
|
101
|
+
export type RubyTypeString = SDKJSON.BaseType & {
|
|
102
|
+
kind: 'RubyTypeString';
|
|
103
|
+
};
|
|
104
|
+
export type RubyTypeInteger = SDKJSON.BaseType & {
|
|
105
|
+
kind: 'RubyTypeInteger';
|
|
106
|
+
};
|
|
107
|
+
export type RubyTypeFloat = SDKJSON.BaseType & {
|
|
108
|
+
kind: 'RubyTypeFloat';
|
|
109
|
+
};
|
|
110
|
+
export type RubyTypeBoolean = SDKJSON.BaseType & {
|
|
111
|
+
kind: 'RubyTypeBoolean';
|
|
112
|
+
};
|
|
113
|
+
export type RubyTypeNull = SDKJSON.BaseType & {
|
|
114
|
+
kind: 'RubyTypeNull';
|
|
115
|
+
};
|
|
116
|
+
export type RubyTypeBinary = SDKJSON.BaseType & {
|
|
117
|
+
kind: 'RubyTypeBinary';
|
|
118
|
+
contentType: string[];
|
|
119
|
+
};
|
|
120
|
+
export type RubyTypeUnknown = SDKJSON.BaseType & {
|
|
121
|
+
kind: 'RubyTypeUnknown';
|
|
122
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RubyAST.js","sourceRoot":"","sources":["../../../../../src/types/stainless-alias/lib/json-spec-v2/RubyAST.ts"],"names":[],"mappings":""}
|