@scalar/oas-utils 0.4.33 → 0.5.0
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/CHANGELOG.md +25 -0
- package/dist/entities/cookie/cookie.d.ts +2 -17
- package/dist/entities/cookie/cookie.d.ts.map +1 -1
- package/dist/entities/environment/environment.d.ts +2 -14
- package/dist/entities/environment/environment.d.ts.map +1 -1
- package/dist/entities/shared/utility.d.ts +1 -1
- package/dist/entities/shared/utility.d.ts.map +1 -1
- package/dist/entities/spec/collection.d.ts +76 -501
- package/dist/entities/spec/collection.d.ts.map +1 -1
- package/dist/entities/spec/operation.d.ts +60 -290
- package/dist/entities/spec/operation.d.ts.map +1 -1
- package/dist/entities/spec/parameters.d.ts +33 -50
- package/dist/entities/spec/parameters.d.ts.map +1 -1
- package/dist/entities/spec/request-examples.d.ts +161 -998
- package/dist/entities/spec/request-examples.d.ts.map +1 -1
- package/dist/entities/spec/request-examples.js +11 -6
- package/dist/entities/spec/request-examples.js.map +2 -2
- package/dist/entities/spec/requests.d.ts +102 -595
- package/dist/entities/spec/requests.d.ts.map +1 -1
- package/dist/entities/spec/server.d.ts +12 -156
- package/dist/entities/spec/server.d.ts.map +1 -1
- package/dist/entities/spec/spec-objects.d.ts +37 -229
- package/dist/entities/spec/spec-objects.d.ts.map +1 -1
- package/dist/entities/spec/x-scalar-environments.d.ts +8 -56
- package/dist/entities/spec/x-scalar-environments.d.ts.map +1 -1
- package/dist/entities/spec/x-scalar-secrets.d.ts +2 -14
- package/dist/entities/spec/x-scalar-secrets.d.ts.map +1 -1
- package/dist/entities/workspace/workspace.d.ts +218 -98
- package/dist/entities/workspace/workspace.d.ts.map +1 -1
- package/dist/entities/workspace/workspace.js +4 -5
- package/dist/entities/workspace/workspace.js.map +2 -2
- package/dist/helpers/parse.js +1 -1
- package/dist/helpers/parse.js.map +2 -2
- package/dist/helpers/schema-model.d.ts +3 -3
- package/dist/helpers/schema-model.d.ts.map +1 -1
- package/dist/helpers/schema-model.js.map +1 -1
- package/dist/helpers/security/get-schemes.d.ts +27 -27
- package/dist/helpers/security/get-schemes.d.ts.map +1 -1
- package/dist/migrations/v-2.5.0/migration.d.ts.map +1 -1
- package/dist/migrations/v-2.5.0/migration.js.map +2 -2
- package/dist/spec-getters/get-example-from-schema.d.ts +26 -23
- package/dist/spec-getters/get-example-from-schema.d.ts.map +1 -1
- package/dist/spec-getters/get-example-from-schema.js +330 -174
- package/dist/spec-getters/get-example-from-schema.js.map +2 -2
- package/package.json +9 -9
- package/dist/helpers/operation-to-har/index.d.ts +0 -2
- package/dist/helpers/operation-to-har/index.d.ts.map +0 -1
- package/dist/helpers/operation-to-har/index.js +0 -5
- package/dist/helpers/operation-to-har/index.js.map +0 -7
- package/dist/helpers/operation-to-har/operation-to-har.d.ts +0 -49
- package/dist/helpers/operation-to-har/operation-to-har.d.ts.map +0 -1
- package/dist/helpers/operation-to-har/operation-to-har.js +0 -68
- package/dist/helpers/operation-to-har/operation-to-har.js.map +0 -7
- package/dist/helpers/operation-to-har/process-body.d.ts +0 -12
- package/dist/helpers/operation-to-har/process-body.d.ts.map +0 -1
- package/dist/helpers/operation-to-har/process-body.js +0 -80
- package/dist/helpers/operation-to-har/process-body.js.map +0 -7
- package/dist/helpers/operation-to-har/process-parameters.d.ts +0 -19
- package/dist/helpers/operation-to-har/process-parameters.d.ts.map +0 -1
- package/dist/helpers/operation-to-har/process-parameters.js +0 -261
- package/dist/helpers/operation-to-har/process-parameters.js.map +0 -7
- package/dist/helpers/operation-to-har/process-security-schemes.d.ts +0 -15
- package/dist/helpers/operation-to-har/process-security-schemes.d.ts.map +0 -1
- package/dist/helpers/operation-to-har/process-security-schemes.js +0 -62
- package/dist/helpers/operation-to-har/process-security-schemes.js.map +0 -7
- package/dist/helpers/operation-to-har/process-server-url.d.ts +0 -6
- package/dist/helpers/operation-to-har/process-server-url.d.ts.map +0 -1
- package/dist/helpers/operation-to-har/process-server-url.js +0 -27
- package/dist/helpers/operation-to-har/process-server-url.js.map +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/collection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/collection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwC9B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;iBA8CnC,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAsD,CAAA;AACnF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -5,326 +5,96 @@
|
|
|
5
5
|
import { type RequestPayload, type Request as RequestType } from './requests.js';
|
|
6
6
|
export type Operation = RequestType;
|
|
7
7
|
export type OperationPayload = RequestPayload;
|
|
8
|
-
export declare const operationSchema: import("zod").ZodObject<
|
|
9
|
-
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
10
|
-
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
+
export declare const operationSchema: import("zod").ZodObject<{
|
|
11
9
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
externalDocs: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodObject<{
|
|
12
|
+
description: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
13
|
+
url: import("zod").ZodString;
|
|
14
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
|
|
15
|
+
url: string;
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
url: string;
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
}>>>;
|
|
21
|
+
'x-internal': import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
22
|
+
'x-scalar-ignore': import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
23
|
+
security: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>>>>;
|
|
24
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
25
|
+
deprecated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
12
26
|
operationId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
-
security: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>>, "many">>;
|
|
14
27
|
requestBody: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
15
28
|
parameters: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
16
|
-
in: import("zod").ZodEnum<
|
|
29
|
+
in: import("zod").ZodEnum<{
|
|
30
|
+
cookie: "cookie";
|
|
31
|
+
path: "path";
|
|
32
|
+
query: "query";
|
|
33
|
+
header: "header";
|
|
34
|
+
}>;
|
|
17
35
|
name: import("zod").ZodString;
|
|
18
36
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
37
|
required: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
20
38
|
deprecated: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
21
39
|
schema: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
22
40
|
content: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
23
|
-
style: import("zod").ZodOptional<import("zod").ZodEnum<
|
|
41
|
+
style: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
42
|
+
matrix: "matrix";
|
|
43
|
+
simple: "simple";
|
|
44
|
+
form: "form";
|
|
45
|
+
label: "label";
|
|
46
|
+
spaceDelimited: "spaceDelimited";
|
|
47
|
+
pipeDelimited: "pipeDelimited";
|
|
48
|
+
deepObject: "deepObject";
|
|
49
|
+
}>>;
|
|
24
50
|
explode: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
25
51
|
example: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
26
|
-
examples: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
52
|
+
examples: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
27
53
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
28
54
|
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
55
|
externalValue: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
-
}, "strip
|
|
31
|
-
|
|
32
|
-
summary?: string | undefined;
|
|
33
|
-
externalValue?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
value?: unknown;
|
|
36
|
-
summary?: string | undefined;
|
|
37
|
-
externalValue?: string | undefined;
|
|
38
|
-
}>>, import("zod").ZodArray<import("zod").ZodUnknown, "many">]>>;
|
|
39
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
40
|
-
name: string;
|
|
41
|
-
required: boolean;
|
|
42
|
-
deprecated: boolean;
|
|
43
|
-
in: "cookie" | "path" | "query" | "header";
|
|
44
|
-
description?: string | undefined;
|
|
45
|
-
example?: unknown;
|
|
46
|
-
content?: unknown;
|
|
47
|
-
schema?: unknown;
|
|
48
|
-
examples?: unknown[] | Record<string, {
|
|
49
|
-
value?: unknown;
|
|
50
|
-
summary?: string | undefined;
|
|
51
|
-
externalValue?: string | undefined;
|
|
52
|
-
}> | undefined;
|
|
53
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
54
|
-
explode?: boolean | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
name: string;
|
|
57
|
-
in: "cookie" | "path" | "query" | "header";
|
|
58
|
-
description?: string | undefined;
|
|
59
|
-
required?: boolean | undefined;
|
|
60
|
-
example?: unknown;
|
|
61
|
-
content?: unknown;
|
|
62
|
-
schema?: unknown;
|
|
63
|
-
examples?: unknown[] | Record<string, {
|
|
64
|
-
value?: unknown;
|
|
65
|
-
summary?: string | undefined;
|
|
66
|
-
externalValue?: string | undefined;
|
|
67
|
-
}> | undefined;
|
|
68
|
-
deprecated?: boolean | undefined;
|
|
69
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
70
|
-
explode?: boolean | undefined;
|
|
71
|
-
}>, "many">>;
|
|
72
|
-
externalDocs: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodObject<{
|
|
73
|
-
description: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
74
|
-
url: import("zod").ZodString;
|
|
75
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
76
|
-
url: string;
|
|
77
|
-
description?: string | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
url: string;
|
|
80
|
-
description?: unknown;
|
|
81
|
-
}>, {
|
|
82
|
-
url: string;
|
|
83
|
-
description?: string | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
url: string;
|
|
86
|
-
description?: unknown;
|
|
87
|
-
}>>;
|
|
88
|
-
deprecated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
56
|
+
}, import("zod/v4/core").$strip>>, import("zod").ZodArray<import("zod").ZodUnknown>]>>;
|
|
57
|
+
}, import("zod/v4/core").$strip>>>;
|
|
89
58
|
responses: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
90
59
|
callbacks: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>>>;
|
|
91
|
-
'x-scalar-examples': import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
92
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
-
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
94
|
-
encoding: import("zod").ZodEnum<["application/json", "text/plain", "text/html", "application/javascript", "application/xml", "application/yaml", "application/edn", "application/octet-stream", "application/x-www-form-urlencoded", "multipart/form-data", "binary"]>;
|
|
95
|
-
content: import("zod").ZodUnion<[import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, import("zod").ZodString]>;
|
|
96
|
-
file: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
97
|
-
url: import("zod").ZodString;
|
|
98
|
-
base64: import("zod").ZodOptional<import("zod").ZodString>;
|
|
99
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
100
|
-
url: string;
|
|
101
|
-
base64?: string | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
url: string;
|
|
104
|
-
base64?: string | undefined;
|
|
105
|
-
}>>>;
|
|
106
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
107
|
-
content: string | Record<string, any>;
|
|
108
|
-
encoding: "binary" | "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data";
|
|
109
|
-
file?: {
|
|
110
|
-
url: string;
|
|
111
|
-
base64?: string | undefined;
|
|
112
|
-
} | null | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
content: string | Record<string, any>;
|
|
115
|
-
encoding: "binary" | "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data";
|
|
116
|
-
file?: {
|
|
117
|
-
url: string;
|
|
118
|
-
base64?: string | undefined;
|
|
119
|
-
} | null | undefined;
|
|
120
|
-
}>>;
|
|
121
|
-
parameters: import("zod").ZodObject<{
|
|
122
|
-
path: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
123
|
-
query: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
124
|
-
headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
125
|
-
cookies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
126
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
127
|
-
path?: Record<string, string> | undefined;
|
|
128
|
-
headers?: Record<string, string> | undefined;
|
|
129
|
-
query?: Record<string, string> | undefined;
|
|
130
|
-
cookies?: Record<string, string> | undefined;
|
|
131
|
-
}, {
|
|
132
|
-
path?: Record<string, string> | undefined;
|
|
133
|
-
headers?: Record<string, string> | undefined;
|
|
134
|
-
query?: Record<string, string> | undefined;
|
|
135
|
-
cookies?: Record<string, string> | undefined;
|
|
136
|
-
}>;
|
|
137
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
138
|
-
parameters: {
|
|
139
|
-
path?: Record<string, string> | undefined;
|
|
140
|
-
headers?: Record<string, string> | undefined;
|
|
141
|
-
query?: Record<string, string> | undefined;
|
|
142
|
-
cookies?: Record<string, string> | undefined;
|
|
143
|
-
};
|
|
144
|
-
name?: string | undefined;
|
|
145
|
-
body?: {
|
|
146
|
-
content: string | Record<string, any>;
|
|
147
|
-
encoding: "binary" | "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data";
|
|
148
|
-
file?: {
|
|
149
|
-
url: string;
|
|
150
|
-
base64?: string | undefined;
|
|
151
|
-
} | null | undefined;
|
|
152
|
-
} | undefined;
|
|
153
|
-
}, {
|
|
154
|
-
parameters: {
|
|
155
|
-
path?: Record<string, string> | undefined;
|
|
156
|
-
headers?: Record<string, string> | undefined;
|
|
157
|
-
query?: Record<string, string> | undefined;
|
|
158
|
-
cookies?: Record<string, string> | undefined;
|
|
159
|
-
};
|
|
160
|
-
name?: string | undefined;
|
|
161
|
-
body?: {
|
|
162
|
-
content: string | Record<string, any>;
|
|
163
|
-
encoding: "binary" | "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data";
|
|
164
|
-
file?: {
|
|
165
|
-
url: string;
|
|
166
|
-
base64?: string | undefined;
|
|
167
|
-
} | null | undefined;
|
|
168
|
-
} | undefined;
|
|
169
|
-
}>>>;
|
|
170
|
-
'x-internal': import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
171
|
-
'x-scalar-ignore': import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
172
|
-
}, "x-scalar-examples">, {
|
|
173
60
|
'x-codeSamples': import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
174
61
|
lang: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
175
62
|
label: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
176
63
|
source: import("zod").ZodString;
|
|
177
|
-
},
|
|
178
|
-
source: string;
|
|
179
|
-
label?: string | undefined;
|
|
180
|
-
lang?: string | undefined;
|
|
181
|
-
}, {
|
|
182
|
-
source: string;
|
|
183
|
-
label?: unknown;
|
|
184
|
-
lang?: unknown;
|
|
185
|
-
}>, "many">>>;
|
|
64
|
+
}, import("zod/v4/core").$strip>>>>;
|
|
186
65
|
'x-code-samples': import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
187
66
|
lang: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
188
67
|
label: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
189
68
|
source: import("zod").ZodString;
|
|
190
|
-
},
|
|
191
|
-
source: string;
|
|
192
|
-
label?: string | undefined;
|
|
193
|
-
lang?: string | undefined;
|
|
194
|
-
}, {
|
|
195
|
-
source: string;
|
|
196
|
-
label?: unknown;
|
|
197
|
-
lang?: unknown;
|
|
198
|
-
}>, "many">>>;
|
|
69
|
+
}, import("zod/v4/core").$strip>>>>;
|
|
199
70
|
'x-custom-examples': import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
200
71
|
lang: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
201
72
|
label: import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
202
73
|
source: import("zod").ZodString;
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
label?: unknown;
|
|
210
|
-
lang?: unknown;
|
|
211
|
-
}>, "many">>>;
|
|
212
|
-
}>, {
|
|
213
|
-
'x-scalar-stability': import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodEnum<[import("@scalar/types").XScalarStability.Deprecated, import("@scalar/types").XScalarStability.Experimental, import("@scalar/types").XScalarStability.Stable]>>>;
|
|
214
|
-
}>, {
|
|
74
|
+
}, import("zod/v4/core").$strip>>>>;
|
|
75
|
+
'x-scalar-stability': import("zod").ZodCatch<import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
76
|
+
deprecated: import("@scalar/types").XScalarStability.Deprecated;
|
|
77
|
+
experimental: import("@scalar/types").XScalarStability.Experimental;
|
|
78
|
+
stable: import("@scalar/types").XScalarStability.Stable;
|
|
79
|
+
}>>>;
|
|
215
80
|
type: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodLiteral<"request">>>;
|
|
216
|
-
uid: import("zod")
|
|
81
|
+
uid: import("zod/v4/core").$ZodBranded<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>, "operation">;
|
|
217
82
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
218
|
-
method: import("zod").ZodDefault<import("zod").ZodEnum<
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
83
|
+
method: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
84
|
+
connect: "connect";
|
|
85
|
+
delete: "delete";
|
|
86
|
+
get: "get";
|
|
87
|
+
head: "head";
|
|
88
|
+
options: "options";
|
|
89
|
+
patch: "patch";
|
|
90
|
+
post: "post";
|
|
91
|
+
put: "put";
|
|
92
|
+
trace: "trace";
|
|
93
|
+
}>>;
|
|
94
|
+
servers: import("zod").ZodDefault<import("zod").ZodArray<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "server">>>;
|
|
95
|
+
selectedServerUid: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "server">>>>;
|
|
96
|
+
examples: import("zod").ZodDefault<import("zod").ZodArray<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "example">>>;
|
|
97
|
+
selectedSecuritySchemeUids: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod/v4/core").$ZodBranded<import("zod").ZodString, "securityScheme">, import("zod").ZodArray<import("zod/v4/core").$ZodBranded<import("zod").ZodString, "securityScheme">>]>>>;
|
|
224
98
|
'x-post-response': import("zod").ZodOptional<import("zod").ZodString>;
|
|
225
|
-
}
|
|
226
|
-
uid: string & import("zod").BRAND<"operation">;
|
|
227
|
-
path: string;
|
|
228
|
-
type: "request";
|
|
229
|
-
selectedSecuritySchemeUids: ((string & import("zod").BRAND<"securityScheme">) | (string & import("zod").BRAND<"securityScheme">)[])[];
|
|
230
|
-
selectedServerUid: (string & import("zod").BRAND<"server">) | null;
|
|
231
|
-
servers: (string & import("zod").BRAND<"server">)[];
|
|
232
|
-
examples: (string & import("zod").BRAND<"example">)[];
|
|
233
|
-
method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
|
|
234
|
-
description?: string | undefined;
|
|
235
|
-
summary?: string | undefined;
|
|
236
|
-
externalDocs?: {
|
|
237
|
-
url: string;
|
|
238
|
-
description?: string | undefined;
|
|
239
|
-
} | undefined;
|
|
240
|
-
'x-internal'?: boolean | undefined;
|
|
241
|
-
'x-scalar-ignore'?: boolean | undefined;
|
|
242
|
-
security?: Record<string, string[]>[] | undefined;
|
|
243
|
-
tags?: string[] | undefined;
|
|
244
|
-
deprecated?: boolean | undefined;
|
|
245
|
-
operationId?: string | undefined;
|
|
246
|
-
requestBody?: any;
|
|
247
|
-
parameters?: {
|
|
248
|
-
name: string;
|
|
249
|
-
required: boolean;
|
|
250
|
-
deprecated: boolean;
|
|
251
|
-
in: "cookie" | "path" | "query" | "header";
|
|
252
|
-
description?: string | undefined;
|
|
253
|
-
example?: unknown;
|
|
254
|
-
content?: unknown;
|
|
255
|
-
schema?: unknown;
|
|
256
|
-
examples?: unknown[] | Record<string, {
|
|
257
|
-
value?: unknown;
|
|
258
|
-
summary?: string | undefined;
|
|
259
|
-
externalValue?: string | undefined;
|
|
260
|
-
}> | undefined;
|
|
261
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
262
|
-
explode?: boolean | undefined;
|
|
263
|
-
}[] | undefined;
|
|
264
|
-
responses?: Record<string, any> | undefined;
|
|
265
|
-
callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
|
|
266
|
-
'x-codeSamples'?: {
|
|
267
|
-
source: string;
|
|
268
|
-
label?: string | undefined;
|
|
269
|
-
lang?: string | undefined;
|
|
270
|
-
}[] | undefined;
|
|
271
|
-
'x-code-samples'?: {
|
|
272
|
-
source: string;
|
|
273
|
-
label?: string | undefined;
|
|
274
|
-
lang?: string | undefined;
|
|
275
|
-
}[] | undefined;
|
|
276
|
-
'x-custom-examples'?: {
|
|
277
|
-
source: string;
|
|
278
|
-
label?: string | undefined;
|
|
279
|
-
lang?: string | undefined;
|
|
280
|
-
}[] | undefined;
|
|
281
|
-
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
282
|
-
'x-post-response'?: string | undefined;
|
|
283
|
-
}, {
|
|
284
|
-
uid?: string | undefined;
|
|
285
|
-
path?: string | undefined;
|
|
286
|
-
type?: "request" | undefined;
|
|
287
|
-
description?: string | undefined;
|
|
288
|
-
summary?: string | undefined;
|
|
289
|
-
externalDocs?: {
|
|
290
|
-
url: string;
|
|
291
|
-
description?: unknown;
|
|
292
|
-
} | undefined;
|
|
293
|
-
'x-internal'?: boolean | undefined;
|
|
294
|
-
'x-scalar-ignore'?: boolean | undefined;
|
|
295
|
-
security?: Record<string, string[] | undefined>[] | undefined;
|
|
296
|
-
selectedSecuritySchemeUids?: (string | string[])[] | undefined;
|
|
297
|
-
selectedServerUid?: string | null | undefined;
|
|
298
|
-
servers?: string[] | undefined;
|
|
299
|
-
tags?: string[] | undefined;
|
|
300
|
-
examples?: string[] | undefined;
|
|
301
|
-
deprecated?: boolean | undefined;
|
|
302
|
-
operationId?: string | undefined;
|
|
303
|
-
requestBody?: any;
|
|
304
|
-
parameters?: {
|
|
305
|
-
name: string;
|
|
306
|
-
in: "cookie" | "path" | "query" | "header";
|
|
307
|
-
description?: string | undefined;
|
|
308
|
-
required?: boolean | undefined;
|
|
309
|
-
example?: unknown;
|
|
310
|
-
content?: unknown;
|
|
311
|
-
schema?: unknown;
|
|
312
|
-
examples?: unknown[] | Record<string, {
|
|
313
|
-
value?: unknown;
|
|
314
|
-
summary?: string | undefined;
|
|
315
|
-
externalValue?: string | undefined;
|
|
316
|
-
}> | undefined;
|
|
317
|
-
deprecated?: boolean | undefined;
|
|
318
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
319
|
-
explode?: boolean | undefined;
|
|
320
|
-
}[] | undefined;
|
|
321
|
-
responses?: Record<string, any> | undefined;
|
|
322
|
-
callbacks?: Record<string, Record<string, Record<string, any>>> | undefined;
|
|
323
|
-
'x-codeSamples'?: unknown;
|
|
324
|
-
'x-code-samples'?: unknown;
|
|
325
|
-
'x-custom-examples'?: unknown;
|
|
326
|
-
'x-scalar-stability'?: unknown;
|
|
327
|
-
method?: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace" | undefined;
|
|
328
|
-
'x-post-response'?: string | undefined;
|
|
329
|
-
}>;
|
|
99
|
+
}, import("zod/v4/core").$strip>;
|
|
330
100
|
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/operation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,IAAI,WAAW,EAAiB,MAAM,YAAY,CAAA;AAE5F,MAAM,MAAM,SAAS,GAAG,WAAW,CAAA;AACnC,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAC7C,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/operation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,OAAO,IAAI,WAAW,EAAiB,MAAM,YAAY,CAAA;AAE5F,MAAM,MAAM,SAAS,GAAG,WAAW,CAAA;AACnC,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAC7C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAgB,CAAA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
3
|
import type { RequestExampleParameter } from './request-examples.js';
|
|
4
|
-
export declare const parameterTypeSchema: z.ZodEnum<
|
|
4
|
+
export declare const parameterTypeSchema: z.ZodEnum<{
|
|
5
|
+
cookie: "cookie";
|
|
6
|
+
path: "path";
|
|
7
|
+
query: "query";
|
|
8
|
+
header: "header";
|
|
9
|
+
}>;
|
|
5
10
|
export type ParamType = z.infer<typeof parameterTypeSchema>;
|
|
6
|
-
export declare const parameterStyleSchema: z.ZodEnum<
|
|
11
|
+
export declare const parameterStyleSchema: z.ZodEnum<{
|
|
12
|
+
matrix: "matrix";
|
|
13
|
+
simple: "simple";
|
|
14
|
+
form: "form";
|
|
15
|
+
label: "label";
|
|
16
|
+
spaceDelimited: "spaceDelimited";
|
|
17
|
+
pipeDelimited: "pipeDelimited";
|
|
18
|
+
deepObject: "deepObject";
|
|
19
|
+
}>;
|
|
7
20
|
export type ParameterStyle = z.infer<typeof parameterStyleSchema>;
|
|
8
21
|
export type ParameterContent = Record<string, {
|
|
9
22
|
schema?: OpenAPIV3_1.Document;
|
|
@@ -15,65 +28,35 @@ export declare const parameterExampleSchema: z.ZodUnknown;
|
|
|
15
28
|
* OpenAPI compliant parameters object
|
|
16
29
|
*/
|
|
17
30
|
export declare const oasParameterSchema: z.ZodObject<{
|
|
18
|
-
in: z.ZodEnum<
|
|
31
|
+
in: z.ZodEnum<{
|
|
32
|
+
cookie: "cookie";
|
|
33
|
+
path: "path";
|
|
34
|
+
query: "query";
|
|
35
|
+
header: "header";
|
|
36
|
+
}>;
|
|
19
37
|
name: z.ZodString;
|
|
20
38
|
description: z.ZodOptional<z.ZodString>;
|
|
21
|
-
/** Defaulted to false */
|
|
22
39
|
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
23
|
-
/** Defaulted to false */
|
|
24
40
|
deprecated: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
25
41
|
schema: z.ZodOptional<z.ZodUnknown>;
|
|
26
42
|
content: z.ZodOptional<z.ZodUnknown>;
|
|
27
|
-
|
|
28
|
-
|
|
43
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
matrix: "matrix";
|
|
45
|
+
simple: "simple";
|
|
46
|
+
form: "form";
|
|
47
|
+
label: "label";
|
|
48
|
+
spaceDelimited: "spaceDelimited";
|
|
49
|
+
pipeDelimited: "pipeDelimited";
|
|
50
|
+
deepObject: "deepObject";
|
|
51
|
+
}>>;
|
|
29
52
|
explode: z.ZodOptional<z.ZodBoolean>;
|
|
30
53
|
example: z.ZodOptional<z.ZodUnknown>;
|
|
31
|
-
examples: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
|
+
examples: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
32
55
|
value: z.ZodOptional<z.ZodUnknown>;
|
|
33
56
|
summary: z.ZodOptional<z.ZodString>;
|
|
34
57
|
externalValue: z.ZodOptional<z.ZodString>;
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
summary?: string | undefined;
|
|
38
|
-
externalValue?: string | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
value?: unknown;
|
|
41
|
-
summary?: string | undefined;
|
|
42
|
-
externalValue?: string | undefined;
|
|
43
|
-
}>>, z.ZodArray<z.ZodUnknown, "many">]>>;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
name: string;
|
|
46
|
-
required: boolean;
|
|
47
|
-
deprecated: boolean;
|
|
48
|
-
in: "cookie" | "path" | "query" | "header";
|
|
49
|
-
description?: string | undefined;
|
|
50
|
-
example?: unknown;
|
|
51
|
-
content?: unknown;
|
|
52
|
-
schema?: unknown;
|
|
53
|
-
examples?: unknown[] | Record<string, {
|
|
54
|
-
value?: unknown;
|
|
55
|
-
summary?: string | undefined;
|
|
56
|
-
externalValue?: string | undefined;
|
|
57
|
-
}> | undefined;
|
|
58
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
59
|
-
explode?: boolean | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
name: string;
|
|
62
|
-
in: "cookie" | "path" | "query" | "header";
|
|
63
|
-
description?: string | undefined;
|
|
64
|
-
required?: boolean | undefined;
|
|
65
|
-
example?: unknown;
|
|
66
|
-
content?: unknown;
|
|
67
|
-
schema?: unknown;
|
|
68
|
-
examples?: unknown[] | Record<string, {
|
|
69
|
-
value?: unknown;
|
|
70
|
-
summary?: string | undefined;
|
|
71
|
-
externalValue?: string | undefined;
|
|
72
|
-
}> | undefined;
|
|
73
|
-
deprecated?: boolean | undefined;
|
|
74
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
75
|
-
explode?: boolean | undefined;
|
|
76
|
-
}>;
|
|
58
|
+
}, z.core.$strip>>, z.ZodArray<z.ZodUnknown>]>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
77
60
|
export type RequestParameter = z.infer<typeof oasParameterSchema>;
|
|
78
61
|
export type RequestParameterPayload = z.input<typeof oasParameterSchema>;
|
|
79
62
|
//# sourceMappingURL=parameters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/parameters.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAEjE,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/parameters.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAEjE,eAAO,MAAM,mBAAmB;;;;;EAAgD,CAAA;AAChF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE3D,eAAO,MAAM,oBAAoB;;;;;;;;EAQ/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACjE,MAAM,MAAM,gBAAgB,GAAG,MAAM,CACnC,MAAM,EACN;IACE,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAA;IAClD,OAAO,CAAC,EAAE,uBAAuB,CAAA;CAClC,CACF,CAAA;AACD,eAAO,MAAM,sBAAsB,cAAc,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BU,CAAA;AAEzC,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACjE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
|