@scalar/oas-utils 0.4.32 → 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 +32 -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
|
@@ -8,82 +8,52 @@ import type { Server } from './server.js';
|
|
|
8
8
|
* The request schema should be stored in the request and any
|
|
9
9
|
* parameters should be validated against that
|
|
10
10
|
*/
|
|
11
|
-
export declare const requestExampleParametersSchema: z.
|
|
11
|
+
export declare const requestExampleParametersSchema: z.ZodPipe<z.ZodObject<{
|
|
12
12
|
key: z.ZodDefault<z.ZodString>;
|
|
13
|
-
value: z.ZodDefault<z.
|
|
13
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
14
14
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
15
15
|
file: z.ZodOptional<z.ZodAny>;
|
|
16
16
|
description: z.ZodOptional<z.ZodString>;
|
|
17
17
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString
|
|
19
|
-
examples: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
20
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
18
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
20
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
21
21
|
format: z.ZodOptional<z.ZodString>;
|
|
22
22
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
23
23
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
24
24
|
default: z.ZodOptional<z.ZodAny>;
|
|
25
25
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
-
},
|
|
27
|
-
value: string;
|
|
26
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
28
27
|
key: string;
|
|
28
|
+
value: string;
|
|
29
29
|
enabled: boolean;
|
|
30
|
-
|
|
31
|
-
type?: string | string[] | undefined;
|
|
32
|
-
maximum?: number | undefined;
|
|
30
|
+
file?: any;
|
|
33
31
|
description?: string | undefined;
|
|
34
|
-
default?: any;
|
|
35
32
|
required?: boolean | undefined;
|
|
36
33
|
enum?: string[] | undefined;
|
|
37
34
|
examples?: any[] | undefined;
|
|
38
|
-
|
|
35
|
+
type?: string | string[] | undefined;
|
|
39
36
|
format?: string | undefined;
|
|
40
|
-
file?: any;
|
|
41
|
-
}, {
|
|
42
|
-
value?: string | undefined;
|
|
43
37
|
minimum?: number | undefined;
|
|
44
|
-
type?: string | string[] | undefined;
|
|
45
38
|
maximum?: number | undefined;
|
|
46
|
-
description?: string | undefined;
|
|
47
39
|
default?: any;
|
|
48
|
-
required?: boolean | undefined;
|
|
49
|
-
enum?: string[] | undefined;
|
|
50
|
-
key?: string | undefined;
|
|
51
|
-
examples?: any[] | undefined;
|
|
52
40
|
nullable?: boolean | undefined;
|
|
53
|
-
|
|
54
|
-
file?: any;
|
|
55
|
-
enabled?: boolean | undefined;
|
|
56
|
-
}>, {
|
|
57
|
-
value: string;
|
|
41
|
+
}, {
|
|
58
42
|
key: string;
|
|
43
|
+
value: string;
|
|
59
44
|
enabled: boolean;
|
|
60
|
-
|
|
61
|
-
type?: string | string[] | undefined;
|
|
62
|
-
maximum?: number | undefined;
|
|
45
|
+
file?: any;
|
|
63
46
|
description?: string | undefined;
|
|
64
|
-
default?: any;
|
|
65
47
|
required?: boolean | undefined;
|
|
66
48
|
enum?: string[] | undefined;
|
|
67
49
|
examples?: any[] | undefined;
|
|
68
|
-
|
|
50
|
+
type?: string | string[] | undefined;
|
|
69
51
|
format?: string | undefined;
|
|
70
|
-
file?: any;
|
|
71
|
-
}, {
|
|
72
|
-
value?: string | undefined;
|
|
73
52
|
minimum?: number | undefined;
|
|
74
|
-
type?: string | string[] | undefined;
|
|
75
53
|
maximum?: number | undefined;
|
|
76
|
-
description?: string | undefined;
|
|
77
54
|
default?: any;
|
|
78
|
-
required?: boolean | undefined;
|
|
79
|
-
enum?: string[] | undefined;
|
|
80
|
-
key?: string | undefined;
|
|
81
|
-
examples?: any[] | undefined;
|
|
82
55
|
nullable?: boolean | undefined;
|
|
83
|
-
|
|
84
|
-
file?: any;
|
|
85
|
-
enabled?: boolean | undefined;
|
|
86
|
-
}>;
|
|
56
|
+
}>>;
|
|
87
57
|
/** Convert the array of parameters to an object keyed by the parameter name */
|
|
88
58
|
export declare const parameterArrayToObject: (params: RequestExampleParameter[]) => Record<string, string>;
|
|
89
59
|
/** Request examples - formerly known as instances - are "children" of requests */
|
|
@@ -91,13 +61,7 @@ export type RequestExampleParameter = z.infer<typeof requestExampleParametersSch
|
|
|
91
61
|
export declare const xScalarFileValueSchema: z.ZodNullable<z.ZodObject<{
|
|
92
62
|
url: z.ZodString;
|
|
93
63
|
base64: z.ZodOptional<z.ZodString>;
|
|
94
|
-
},
|
|
95
|
-
url: string;
|
|
96
|
-
base64?: string | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
url: string;
|
|
99
|
-
base64?: string | undefined;
|
|
100
|
-
}>>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
101
65
|
/**
|
|
102
66
|
* When files are required for an example we provide the options
|
|
103
67
|
* to provide a public URL or a base64 encoded string
|
|
@@ -108,40 +72,16 @@ export type XScalarFileValue = z.infer<typeof xScalarFileValueSchema>;
|
|
|
108
72
|
*
|
|
109
73
|
* File values can be optionally fetched on import OR inserted as a base64 encoded string
|
|
110
74
|
*/
|
|
111
|
-
export declare const xScalarFormDataValue: z.ZodUnion<[z.ZodObject<{
|
|
75
|
+
export declare const xScalarFormDataValue: z.ZodUnion<readonly [z.ZodObject<{
|
|
112
76
|
type: z.ZodLiteral<"string">;
|
|
113
77
|
value: z.ZodString;
|
|
114
|
-
},
|
|
115
|
-
value: string;
|
|
116
|
-
type: "string";
|
|
117
|
-
}, {
|
|
118
|
-
value: string;
|
|
119
|
-
type: "string";
|
|
120
|
-
}>, z.ZodObject<{
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
79
|
type: z.ZodLiteral<"file">;
|
|
122
80
|
file: z.ZodNullable<z.ZodObject<{
|
|
123
81
|
url: z.ZodString;
|
|
124
82
|
base64: z.ZodOptional<z.ZodString>;
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
base64?: string | undefined;
|
|
128
|
-
}, {
|
|
129
|
-
url: string;
|
|
130
|
-
base64?: string | undefined;
|
|
131
|
-
}>>;
|
|
132
|
-
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
type: "file";
|
|
134
|
-
file: {
|
|
135
|
-
url: string;
|
|
136
|
-
base64?: string | undefined;
|
|
137
|
-
} | null;
|
|
138
|
-
}, {
|
|
139
|
-
type: "file";
|
|
140
|
-
file: {
|
|
141
|
-
url: string;
|
|
142
|
-
base64?: string | undefined;
|
|
143
|
-
} | null;
|
|
144
|
-
}>]>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>]>;
|
|
145
85
|
export type XScalarFormDataValue = z.infer<typeof xScalarFormDataValue>;
|
|
146
86
|
/**
|
|
147
87
|
* Possible encodings for example request bodies when using text formats
|
|
@@ -159,1145 +99,383 @@ export type BodyMime = (typeof exampleBodyMime)[number];
|
|
|
159
99
|
*/
|
|
160
100
|
export declare const exampleRequestBodySchema: z.ZodObject<{
|
|
161
101
|
raw: z.ZodOptional<z.ZodObject<{
|
|
162
|
-
encoding: z.ZodEnum<
|
|
102
|
+
encoding: z.ZodEnum<{
|
|
103
|
+
xml: "xml";
|
|
104
|
+
json: "json";
|
|
105
|
+
html: "html";
|
|
106
|
+
text: "text";
|
|
107
|
+
javascript: "javascript";
|
|
108
|
+
yaml: "yaml";
|
|
109
|
+
edn: "edn";
|
|
110
|
+
}>;
|
|
163
111
|
value: z.ZodDefault<z.ZodString>;
|
|
164
112
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
165
|
-
},
|
|
166
|
-
value: string;
|
|
167
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
168
|
-
mimeType?: string | undefined;
|
|
169
|
-
}, {
|
|
170
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
171
|
-
value?: string | undefined;
|
|
172
|
-
mimeType?: string | undefined;
|
|
173
|
-
}>>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
174
114
|
formData: z.ZodOptional<z.ZodObject<{
|
|
175
|
-
encoding: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"form-data">, z.ZodLiteral<"urlencoded">]>>;
|
|
176
|
-
value: z.ZodDefault<z.ZodArray<z.
|
|
115
|
+
encoding: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"form-data">, z.ZodLiteral<"urlencoded">]>>;
|
|
116
|
+
value: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
177
117
|
key: z.ZodDefault<z.ZodString>;
|
|
178
|
-
value: z.ZodDefault<z.
|
|
118
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
179
119
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
180
120
|
file: z.ZodOptional<z.ZodAny>;
|
|
181
121
|
description: z.ZodOptional<z.ZodString>;
|
|
182
122
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString
|
|
184
|
-
examples: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
185
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
123
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
125
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
186
126
|
format: z.ZodOptional<z.ZodString>;
|
|
187
127
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
188
128
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
189
129
|
default: z.ZodOptional<z.ZodAny>;
|
|
190
130
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
-
},
|
|
192
|
-
value: string;
|
|
131
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
193
132
|
key: string;
|
|
133
|
+
value: string;
|
|
194
134
|
enabled: boolean;
|
|
195
|
-
minimum?: number | undefined;
|
|
196
|
-
type?: string | string[] | undefined;
|
|
197
|
-
maximum?: number | undefined;
|
|
198
|
-
description?: string | undefined;
|
|
199
|
-
default?: any;
|
|
200
|
-
required?: boolean | undefined;
|
|
201
|
-
enum?: string[] | undefined;
|
|
202
|
-
examples?: any[] | undefined;
|
|
203
|
-
nullable?: boolean | undefined;
|
|
204
|
-
format?: string | undefined;
|
|
205
135
|
file?: any;
|
|
206
|
-
}, {
|
|
207
|
-
value?: string | undefined;
|
|
208
|
-
minimum?: number | undefined;
|
|
209
|
-
type?: string | string[] | undefined;
|
|
210
|
-
maximum?: number | undefined;
|
|
211
136
|
description?: string | undefined;
|
|
212
|
-
default?: any;
|
|
213
137
|
required?: boolean | undefined;
|
|
214
138
|
enum?: string[] | undefined;
|
|
215
|
-
key?: string | undefined;
|
|
216
139
|
examples?: any[] | undefined;
|
|
217
|
-
nullable?: boolean | undefined;
|
|
218
|
-
format?: string | undefined;
|
|
219
|
-
file?: any;
|
|
220
|
-
enabled?: boolean | undefined;
|
|
221
|
-
}>, {
|
|
222
|
-
value: string;
|
|
223
|
-
key: string;
|
|
224
|
-
enabled: boolean;
|
|
225
|
-
minimum?: number | undefined;
|
|
226
140
|
type?: string | string[] | undefined;
|
|
227
|
-
maximum?: number | undefined;
|
|
228
|
-
description?: string | undefined;
|
|
229
|
-
default?: any;
|
|
230
|
-
required?: boolean | undefined;
|
|
231
|
-
enum?: string[] | undefined;
|
|
232
|
-
examples?: any[] | undefined;
|
|
233
|
-
nullable?: boolean | undefined;
|
|
234
141
|
format?: string | undefined;
|
|
235
|
-
file?: any;
|
|
236
|
-
}, {
|
|
237
|
-
value?: string | undefined;
|
|
238
142
|
minimum?: number | undefined;
|
|
239
|
-
type?: string | string[] | undefined;
|
|
240
143
|
maximum?: number | undefined;
|
|
241
|
-
description?: string | undefined;
|
|
242
144
|
default?: any;
|
|
243
|
-
required?: boolean | undefined;
|
|
244
|
-
enum?: string[] | undefined;
|
|
245
|
-
key?: string | undefined;
|
|
246
|
-
examples?: any[] | undefined;
|
|
247
145
|
nullable?: boolean | undefined;
|
|
248
|
-
|
|
249
|
-
file?: any;
|
|
250
|
-
enabled?: boolean | undefined;
|
|
251
|
-
}>, "many">>;
|
|
252
|
-
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
value: {
|
|
254
|
-
value: string;
|
|
146
|
+
}, {
|
|
255
147
|
key: string;
|
|
148
|
+
value: string;
|
|
256
149
|
enabled: boolean;
|
|
257
|
-
minimum?: number | undefined;
|
|
258
|
-
type?: string | string[] | undefined;
|
|
259
|
-
maximum?: number | undefined;
|
|
260
|
-
description?: string | undefined;
|
|
261
|
-
default?: any;
|
|
262
|
-
required?: boolean | undefined;
|
|
263
|
-
enum?: string[] | undefined;
|
|
264
|
-
examples?: any[] | undefined;
|
|
265
|
-
nullable?: boolean | undefined;
|
|
266
|
-
format?: string | undefined;
|
|
267
150
|
file?: any;
|
|
268
|
-
}[];
|
|
269
|
-
encoding: "form-data" | "urlencoded";
|
|
270
|
-
}, {
|
|
271
|
-
value?: {
|
|
272
|
-
value?: string | undefined;
|
|
273
|
-
minimum?: number | undefined;
|
|
274
|
-
type?: string | string[] | undefined;
|
|
275
|
-
maximum?: number | undefined;
|
|
276
151
|
description?: string | undefined;
|
|
277
|
-
default?: any;
|
|
278
152
|
required?: boolean | undefined;
|
|
279
153
|
enum?: string[] | undefined;
|
|
280
|
-
key?: string | undefined;
|
|
281
154
|
examples?: any[] | undefined;
|
|
282
|
-
nullable?: boolean | undefined;
|
|
283
|
-
format?: string | undefined;
|
|
284
|
-
file?: any;
|
|
285
|
-
enabled?: boolean | undefined;
|
|
286
|
-
}[] | undefined;
|
|
287
|
-
encoding?: "form-data" | "urlencoded" | undefined;
|
|
288
|
-
}>>;
|
|
289
|
-
binary: z.ZodOptional<z.ZodType<Blob, z.ZodTypeDef, Blob>>;
|
|
290
|
-
activeBody: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodLiteral<"formData">, z.ZodLiteral<"binary">]>>;
|
|
291
|
-
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
activeBody: "binary" | "formData" | "raw";
|
|
293
|
-
binary?: Blob | undefined;
|
|
294
|
-
formData?: {
|
|
295
|
-
value: {
|
|
296
|
-
value: string;
|
|
297
|
-
key: string;
|
|
298
|
-
enabled: boolean;
|
|
299
|
-
minimum?: number | undefined;
|
|
300
155
|
type?: string | string[] | undefined;
|
|
301
|
-
maximum?: number | undefined;
|
|
302
|
-
description?: string | undefined;
|
|
303
|
-
default?: any;
|
|
304
|
-
required?: boolean | undefined;
|
|
305
|
-
enum?: string[] | undefined;
|
|
306
|
-
examples?: any[] | undefined;
|
|
307
|
-
nullable?: boolean | undefined;
|
|
308
156
|
format?: string | undefined;
|
|
309
|
-
file?: any;
|
|
310
|
-
}[];
|
|
311
|
-
encoding: "form-data" | "urlencoded";
|
|
312
|
-
} | undefined;
|
|
313
|
-
raw?: {
|
|
314
|
-
value: string;
|
|
315
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
316
|
-
mimeType?: string | undefined;
|
|
317
|
-
} | undefined;
|
|
318
|
-
}, {
|
|
319
|
-
binary?: Blob | undefined;
|
|
320
|
-
formData?: {
|
|
321
|
-
value?: {
|
|
322
|
-
value?: string | undefined;
|
|
323
157
|
minimum?: number | undefined;
|
|
324
|
-
type?: string | string[] | undefined;
|
|
325
158
|
maximum?: number | undefined;
|
|
326
|
-
description?: string | undefined;
|
|
327
159
|
default?: any;
|
|
328
|
-
required?: boolean | undefined;
|
|
329
|
-
enum?: string[] | undefined;
|
|
330
|
-
key?: string | undefined;
|
|
331
|
-
examples?: any[] | undefined;
|
|
332
160
|
nullable?: boolean | undefined;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
} | undefined;
|
|
339
|
-
raw?: {
|
|
340
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
341
|
-
value?: string | undefined;
|
|
342
|
-
mimeType?: string | undefined;
|
|
343
|
-
} | undefined;
|
|
344
|
-
activeBody?: "binary" | "formData" | "raw" | undefined;
|
|
345
|
-
}>;
|
|
161
|
+
}>>>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
binary: z.ZodOptional<z.ZodCustom<Blob, Blob>>;
|
|
164
|
+
activeBody: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodLiteral<"formData">, z.ZodLiteral<"binary">]>>;
|
|
165
|
+
}, z.core.$strip>;
|
|
346
166
|
export type ExampleRequestBody = z.infer<typeof exampleRequestBodySchema>;
|
|
347
167
|
/** Schema for the OAS serialization of request example bodies */
|
|
348
168
|
export declare const xScalarExampleBodySchema: z.ZodObject<{
|
|
349
|
-
encoding: z.ZodEnum<
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
169
|
+
encoding: z.ZodEnum<{
|
|
170
|
+
binary: "binary";
|
|
171
|
+
"application/json": "application/json";
|
|
172
|
+
"text/plain": "text/plain";
|
|
173
|
+
"text/html": "text/html";
|
|
174
|
+
"application/javascript": "application/javascript";
|
|
175
|
+
"application/xml": "application/xml";
|
|
176
|
+
"application/yaml": "application/yaml";
|
|
177
|
+
"application/edn": "application/edn";
|
|
178
|
+
"application/octet-stream": "application/octet-stream";
|
|
179
|
+
"application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
|
|
180
|
+
"multipart/form-data": "multipart/form-data";
|
|
181
|
+
}>;
|
|
182
|
+
content: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>;
|
|
357
183
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
358
184
|
url: z.ZodString;
|
|
359
185
|
base64: z.ZodOptional<z.ZodString>;
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
base64?: string | undefined;
|
|
363
|
-
}, {
|
|
364
|
-
url: string;
|
|
365
|
-
base64?: string | undefined;
|
|
366
|
-
}>>>;
|
|
367
|
-
}, "strip", z.ZodTypeAny, {
|
|
368
|
-
content: string | Record<string, any>;
|
|
369
|
-
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";
|
|
370
|
-
file?: {
|
|
371
|
-
url: string;
|
|
372
|
-
base64?: string | undefined;
|
|
373
|
-
} | null | undefined;
|
|
374
|
-
}, {
|
|
375
|
-
content: string | Record<string, any>;
|
|
376
|
-
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";
|
|
377
|
-
file?: {
|
|
378
|
-
url: string;
|
|
379
|
-
base64?: string | undefined;
|
|
380
|
-
} | null | undefined;
|
|
381
|
-
}>;
|
|
186
|
+
}, z.core.$strip>>>;
|
|
187
|
+
}, z.core.$strip>;
|
|
382
188
|
export type XScalarExampleBody = z.infer<typeof xScalarExampleBodySchema>;
|
|
383
189
|
export declare const requestExampleSchema: z.ZodObject<{
|
|
384
|
-
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "example">;
|
|
190
|
+
uid: z.core.$ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "example">;
|
|
385
191
|
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"requestExample">>>;
|
|
386
|
-
requestUid: z.ZodOptional<z.ZodBranded<z.ZodString, "operation">>;
|
|
192
|
+
requestUid: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "operation">>;
|
|
387
193
|
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
388
194
|
body: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
389
195
|
raw: z.ZodOptional<z.ZodObject<{
|
|
390
|
-
encoding: z.ZodEnum<
|
|
196
|
+
encoding: z.ZodEnum<{
|
|
197
|
+
xml: "xml";
|
|
198
|
+
json: "json";
|
|
199
|
+
html: "html";
|
|
200
|
+
text: "text";
|
|
201
|
+
javascript: "javascript";
|
|
202
|
+
yaml: "yaml";
|
|
203
|
+
edn: "edn";
|
|
204
|
+
}>;
|
|
391
205
|
value: z.ZodDefault<z.ZodString>;
|
|
392
206
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
393
|
-
},
|
|
394
|
-
value: string;
|
|
395
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
396
|
-
mimeType?: string | undefined;
|
|
397
|
-
}, {
|
|
398
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
399
|
-
value?: string | undefined;
|
|
400
|
-
mimeType?: string | undefined;
|
|
401
|
-
}>>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
402
208
|
formData: z.ZodOptional<z.ZodObject<{
|
|
403
|
-
encoding: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"form-data">, z.ZodLiteral<"urlencoded">]>>;
|
|
404
|
-
value: z.ZodDefault<z.ZodArray<z.
|
|
209
|
+
encoding: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"form-data">, z.ZodLiteral<"urlencoded">]>>;
|
|
210
|
+
value: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
405
211
|
key: z.ZodDefault<z.ZodString>;
|
|
406
|
-
value: z.ZodDefault<z.
|
|
212
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
407
213
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
408
214
|
file: z.ZodOptional<z.ZodAny>;
|
|
409
215
|
description: z.ZodOptional<z.ZodString>;
|
|
410
216
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString
|
|
412
|
-
examples: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
413
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
217
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
218
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
219
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
414
220
|
format: z.ZodOptional<z.ZodString>;
|
|
415
221
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
416
222
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
417
223
|
default: z.ZodOptional<z.ZodAny>;
|
|
418
224
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
-
},
|
|
420
|
-
value: string;
|
|
225
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
421
226
|
key: string;
|
|
227
|
+
value: string;
|
|
422
228
|
enabled: boolean;
|
|
423
|
-
minimum?: number | undefined;
|
|
424
|
-
type?: string | string[] | undefined;
|
|
425
|
-
maximum?: number | undefined;
|
|
426
|
-
description?: string | undefined;
|
|
427
|
-
default?: any;
|
|
428
|
-
required?: boolean | undefined;
|
|
429
|
-
enum?: string[] | undefined;
|
|
430
|
-
examples?: any[] | undefined;
|
|
431
|
-
nullable?: boolean | undefined;
|
|
432
|
-
format?: string | undefined;
|
|
433
229
|
file?: any;
|
|
434
|
-
}, {
|
|
435
|
-
value?: string | undefined;
|
|
436
|
-
minimum?: number | undefined;
|
|
437
|
-
type?: string | string[] | undefined;
|
|
438
|
-
maximum?: number | undefined;
|
|
439
230
|
description?: string | undefined;
|
|
440
|
-
default?: any;
|
|
441
231
|
required?: boolean | undefined;
|
|
442
232
|
enum?: string[] | undefined;
|
|
443
|
-
key?: string | undefined;
|
|
444
233
|
examples?: any[] | undefined;
|
|
445
|
-
nullable?: boolean | undefined;
|
|
446
|
-
format?: string | undefined;
|
|
447
|
-
file?: any;
|
|
448
|
-
enabled?: boolean | undefined;
|
|
449
|
-
}>, {
|
|
450
|
-
value: string;
|
|
451
|
-
key: string;
|
|
452
|
-
enabled: boolean;
|
|
453
|
-
minimum?: number | undefined;
|
|
454
234
|
type?: string | string[] | undefined;
|
|
455
|
-
maximum?: number | undefined;
|
|
456
|
-
description?: string | undefined;
|
|
457
|
-
default?: any;
|
|
458
|
-
required?: boolean | undefined;
|
|
459
|
-
enum?: string[] | undefined;
|
|
460
|
-
examples?: any[] | undefined;
|
|
461
|
-
nullable?: boolean | undefined;
|
|
462
235
|
format?: string | undefined;
|
|
463
|
-
file?: any;
|
|
464
|
-
}, {
|
|
465
|
-
value?: string | undefined;
|
|
466
236
|
minimum?: number | undefined;
|
|
467
|
-
type?: string | string[] | undefined;
|
|
468
237
|
maximum?: number | undefined;
|
|
469
|
-
description?: string | undefined;
|
|
470
238
|
default?: any;
|
|
471
|
-
required?: boolean | undefined;
|
|
472
|
-
enum?: string[] | undefined;
|
|
473
|
-
key?: string | undefined;
|
|
474
|
-
examples?: any[] | undefined;
|
|
475
239
|
nullable?: boolean | undefined;
|
|
476
|
-
|
|
477
|
-
file?: any;
|
|
478
|
-
enabled?: boolean | undefined;
|
|
479
|
-
}>, "many">>;
|
|
480
|
-
}, "strip", z.ZodTypeAny, {
|
|
481
|
-
value: {
|
|
482
|
-
value: string;
|
|
240
|
+
}, {
|
|
483
241
|
key: string;
|
|
242
|
+
value: string;
|
|
484
243
|
enabled: boolean;
|
|
485
|
-
minimum?: number | undefined;
|
|
486
|
-
type?: string | string[] | undefined;
|
|
487
|
-
maximum?: number | undefined;
|
|
488
|
-
description?: string | undefined;
|
|
489
|
-
default?: any;
|
|
490
|
-
required?: boolean | undefined;
|
|
491
|
-
enum?: string[] | undefined;
|
|
492
|
-
examples?: any[] | undefined;
|
|
493
|
-
nullable?: boolean | undefined;
|
|
494
|
-
format?: string | undefined;
|
|
495
244
|
file?: any;
|
|
496
|
-
}[];
|
|
497
|
-
encoding: "form-data" | "urlencoded";
|
|
498
|
-
}, {
|
|
499
|
-
value?: {
|
|
500
|
-
value?: string | undefined;
|
|
501
|
-
minimum?: number | undefined;
|
|
502
|
-
type?: string | string[] | undefined;
|
|
503
|
-
maximum?: number | undefined;
|
|
504
245
|
description?: string | undefined;
|
|
505
|
-
default?: any;
|
|
506
246
|
required?: boolean | undefined;
|
|
507
247
|
enum?: string[] | undefined;
|
|
508
|
-
key?: string | undefined;
|
|
509
248
|
examples?: any[] | undefined;
|
|
510
|
-
nullable?: boolean | undefined;
|
|
511
|
-
format?: string | undefined;
|
|
512
|
-
file?: any;
|
|
513
|
-
enabled?: boolean | undefined;
|
|
514
|
-
}[] | undefined;
|
|
515
|
-
encoding?: "form-data" | "urlencoded" | undefined;
|
|
516
|
-
}>>;
|
|
517
|
-
binary: z.ZodOptional<z.ZodType<Blob, z.ZodTypeDef, Blob>>;
|
|
518
|
-
activeBody: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"raw">, z.ZodLiteral<"formData">, z.ZodLiteral<"binary">]>>;
|
|
519
|
-
}, "strip", z.ZodTypeAny, {
|
|
520
|
-
activeBody: "binary" | "formData" | "raw";
|
|
521
|
-
binary?: Blob | undefined;
|
|
522
|
-
formData?: {
|
|
523
|
-
value: {
|
|
524
|
-
value: string;
|
|
525
|
-
key: string;
|
|
526
|
-
enabled: boolean;
|
|
527
|
-
minimum?: number | undefined;
|
|
528
249
|
type?: string | string[] | undefined;
|
|
529
|
-
maximum?: number | undefined;
|
|
530
|
-
description?: string | undefined;
|
|
531
|
-
default?: any;
|
|
532
|
-
required?: boolean | undefined;
|
|
533
|
-
enum?: string[] | undefined;
|
|
534
|
-
examples?: any[] | undefined;
|
|
535
|
-
nullable?: boolean | undefined;
|
|
536
250
|
format?: string | undefined;
|
|
537
|
-
file?: any;
|
|
538
|
-
}[];
|
|
539
|
-
encoding: "form-data" | "urlencoded";
|
|
540
|
-
} | undefined;
|
|
541
|
-
raw?: {
|
|
542
|
-
value: string;
|
|
543
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
544
|
-
mimeType?: string | undefined;
|
|
545
|
-
} | undefined;
|
|
546
|
-
}, {
|
|
547
|
-
binary?: Blob | undefined;
|
|
548
|
-
formData?: {
|
|
549
|
-
value?: {
|
|
550
|
-
value?: string | undefined;
|
|
551
251
|
minimum?: number | undefined;
|
|
552
|
-
type?: string | string[] | undefined;
|
|
553
252
|
maximum?: number | undefined;
|
|
554
|
-
description?: string | undefined;
|
|
555
253
|
default?: any;
|
|
556
|
-
required?: boolean | undefined;
|
|
557
|
-
enum?: string[] | undefined;
|
|
558
|
-
key?: string | undefined;
|
|
559
|
-
examples?: any[] | undefined;
|
|
560
254
|
nullable?: boolean | undefined;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
} | undefined;
|
|
567
|
-
raw?: {
|
|
568
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
569
|
-
value?: string | undefined;
|
|
570
|
-
mimeType?: string | undefined;
|
|
571
|
-
} | undefined;
|
|
572
|
-
activeBody?: "binary" | "formData" | "raw" | undefined;
|
|
573
|
-
}>>>;
|
|
255
|
+
}>>>>;
|
|
256
|
+
}, z.core.$strip>>;
|
|
257
|
+
binary: z.ZodOptional<z.ZodCustom<Blob, Blob>>;
|
|
258
|
+
activeBody: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodLiteral<"formData">, z.ZodLiteral<"binary">]>>;
|
|
259
|
+
}, z.core.$strip>>>;
|
|
574
260
|
parameters: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
575
|
-
path: z.ZodDefault<z.ZodArray<z.
|
|
261
|
+
path: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
576
262
|
key: z.ZodDefault<z.ZodString>;
|
|
577
|
-
value: z.ZodDefault<z.
|
|
263
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
578
264
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
579
265
|
file: z.ZodOptional<z.ZodAny>;
|
|
580
266
|
description: z.ZodOptional<z.ZodString>;
|
|
581
267
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
582
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString
|
|
583
|
-
examples: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
584
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
268
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
269
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
270
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
585
271
|
format: z.ZodOptional<z.ZodString>;
|
|
586
272
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
587
273
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
588
274
|
default: z.ZodOptional<z.ZodAny>;
|
|
589
275
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
590
|
-
},
|
|
591
|
-
value: string;
|
|
276
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
592
277
|
key: string;
|
|
278
|
+
value: string;
|
|
593
279
|
enabled: boolean;
|
|
594
|
-
|
|
595
|
-
type?: string | string[] | undefined;
|
|
596
|
-
maximum?: number | undefined;
|
|
280
|
+
file?: any;
|
|
597
281
|
description?: string | undefined;
|
|
598
|
-
default?: any;
|
|
599
282
|
required?: boolean | undefined;
|
|
600
283
|
enum?: string[] | undefined;
|
|
601
284
|
examples?: any[] | undefined;
|
|
602
|
-
|
|
285
|
+
type?: string | string[] | undefined;
|
|
603
286
|
format?: string | undefined;
|
|
604
|
-
file?: any;
|
|
605
|
-
}, {
|
|
606
|
-
value?: string | undefined;
|
|
607
287
|
minimum?: number | undefined;
|
|
608
|
-
type?: string | string[] | undefined;
|
|
609
288
|
maximum?: number | undefined;
|
|
610
|
-
description?: string | undefined;
|
|
611
289
|
default?: any;
|
|
612
|
-
required?: boolean | undefined;
|
|
613
|
-
enum?: string[] | undefined;
|
|
614
|
-
key?: string | undefined;
|
|
615
|
-
examples?: any[] | undefined;
|
|
616
290
|
nullable?: boolean | undefined;
|
|
617
|
-
|
|
618
|
-
file?: any;
|
|
619
|
-
enabled?: boolean | undefined;
|
|
620
|
-
}>, {
|
|
621
|
-
value: string;
|
|
291
|
+
}, {
|
|
622
292
|
key: string;
|
|
293
|
+
value: string;
|
|
623
294
|
enabled: boolean;
|
|
624
|
-
|
|
625
|
-
type?: string | string[] | undefined;
|
|
626
|
-
maximum?: number | undefined;
|
|
295
|
+
file?: any;
|
|
627
296
|
description?: string | undefined;
|
|
628
|
-
default?: any;
|
|
629
297
|
required?: boolean | undefined;
|
|
630
298
|
enum?: string[] | undefined;
|
|
631
299
|
examples?: any[] | undefined;
|
|
632
|
-
|
|
300
|
+
type?: string | string[] | undefined;
|
|
633
301
|
format?: string | undefined;
|
|
634
|
-
file?: any;
|
|
635
|
-
}, {
|
|
636
|
-
value?: string | undefined;
|
|
637
302
|
minimum?: number | undefined;
|
|
638
|
-
type?: string | string[] | undefined;
|
|
639
303
|
maximum?: number | undefined;
|
|
640
|
-
description?: string | undefined;
|
|
641
304
|
default?: any;
|
|
642
|
-
required?: boolean | undefined;
|
|
643
|
-
enum?: string[] | undefined;
|
|
644
|
-
key?: string | undefined;
|
|
645
|
-
examples?: any[] | undefined;
|
|
646
305
|
nullable?: boolean | undefined;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
enabled?: boolean | undefined;
|
|
650
|
-
}>, "many">>;
|
|
651
|
-
query: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
306
|
+
}>>>>;
|
|
307
|
+
query: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
652
308
|
key: z.ZodDefault<z.ZodString>;
|
|
653
|
-
value: z.ZodDefault<z.
|
|
309
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
654
310
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
655
311
|
file: z.ZodOptional<z.ZodAny>;
|
|
656
312
|
description: z.ZodOptional<z.ZodString>;
|
|
657
313
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
658
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString
|
|
659
|
-
examples: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
660
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
314
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
315
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
316
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
661
317
|
format: z.ZodOptional<z.ZodString>;
|
|
662
318
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
663
319
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
664
320
|
default: z.ZodOptional<z.ZodAny>;
|
|
665
321
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
666
|
-
},
|
|
667
|
-
value: string;
|
|
322
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
668
323
|
key: string;
|
|
324
|
+
value: string;
|
|
669
325
|
enabled: boolean;
|
|
670
|
-
|
|
671
|
-
type?: string | string[] | undefined;
|
|
672
|
-
maximum?: number | undefined;
|
|
326
|
+
file?: any;
|
|
673
327
|
description?: string | undefined;
|
|
674
|
-
default?: any;
|
|
675
328
|
required?: boolean | undefined;
|
|
676
329
|
enum?: string[] | undefined;
|
|
677
330
|
examples?: any[] | undefined;
|
|
678
|
-
|
|
331
|
+
type?: string | string[] | undefined;
|
|
679
332
|
format?: string | undefined;
|
|
680
|
-
file?: any;
|
|
681
|
-
}, {
|
|
682
|
-
value?: string | undefined;
|
|
683
333
|
minimum?: number | undefined;
|
|
684
|
-
type?: string | string[] | undefined;
|
|
685
334
|
maximum?: number | undefined;
|
|
686
|
-
description?: string | undefined;
|
|
687
335
|
default?: any;
|
|
688
|
-
required?: boolean | undefined;
|
|
689
|
-
enum?: string[] | undefined;
|
|
690
|
-
key?: string | undefined;
|
|
691
|
-
examples?: any[] | undefined;
|
|
692
336
|
nullable?: boolean | undefined;
|
|
693
|
-
|
|
694
|
-
file?: any;
|
|
695
|
-
enabled?: boolean | undefined;
|
|
696
|
-
}>, {
|
|
697
|
-
value: string;
|
|
337
|
+
}, {
|
|
698
338
|
key: string;
|
|
339
|
+
value: string;
|
|
699
340
|
enabled: boolean;
|
|
700
|
-
|
|
701
|
-
type?: string | string[] | undefined;
|
|
702
|
-
maximum?: number | undefined;
|
|
341
|
+
file?: any;
|
|
703
342
|
description?: string | undefined;
|
|
704
|
-
default?: any;
|
|
705
343
|
required?: boolean | undefined;
|
|
706
344
|
enum?: string[] | undefined;
|
|
707
345
|
examples?: any[] | undefined;
|
|
708
|
-
|
|
346
|
+
type?: string | string[] | undefined;
|
|
709
347
|
format?: string | undefined;
|
|
710
|
-
file?: any;
|
|
711
|
-
}, {
|
|
712
|
-
value?: string | undefined;
|
|
713
348
|
minimum?: number | undefined;
|
|
714
|
-
type?: string | string[] | undefined;
|
|
715
349
|
maximum?: number | undefined;
|
|
716
|
-
description?: string | undefined;
|
|
717
350
|
default?: any;
|
|
718
|
-
required?: boolean | undefined;
|
|
719
|
-
enum?: string[] | undefined;
|
|
720
|
-
key?: string | undefined;
|
|
721
|
-
examples?: any[] | undefined;
|
|
722
351
|
nullable?: boolean | undefined;
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
enabled?: boolean | undefined;
|
|
726
|
-
}>, "many">>;
|
|
727
|
-
headers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
352
|
+
}>>>>;
|
|
353
|
+
headers: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
728
354
|
key: z.ZodDefault<z.ZodString>;
|
|
729
|
-
value: z.ZodDefault<z.
|
|
355
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
730
356
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
731
357
|
file: z.ZodOptional<z.ZodAny>;
|
|
732
358
|
description: z.ZodOptional<z.ZodString>;
|
|
733
359
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
734
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString
|
|
735
|
-
examples: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
736
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
360
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
361
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
362
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
737
363
|
format: z.ZodOptional<z.ZodString>;
|
|
738
364
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
739
365
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
740
366
|
default: z.ZodOptional<z.ZodAny>;
|
|
741
367
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
742
|
-
},
|
|
743
|
-
value: string;
|
|
368
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
744
369
|
key: string;
|
|
370
|
+
value: string;
|
|
745
371
|
enabled: boolean;
|
|
746
|
-
|
|
747
|
-
type?: string | string[] | undefined;
|
|
748
|
-
maximum?: number | undefined;
|
|
372
|
+
file?: any;
|
|
749
373
|
description?: string | undefined;
|
|
750
|
-
default?: any;
|
|
751
374
|
required?: boolean | undefined;
|
|
752
375
|
enum?: string[] | undefined;
|
|
753
376
|
examples?: any[] | undefined;
|
|
754
|
-
|
|
377
|
+
type?: string | string[] | undefined;
|
|
755
378
|
format?: string | undefined;
|
|
756
|
-
file?: any;
|
|
757
|
-
}, {
|
|
758
|
-
value?: string | undefined;
|
|
759
379
|
minimum?: number | undefined;
|
|
760
|
-
type?: string | string[] | undefined;
|
|
761
380
|
maximum?: number | undefined;
|
|
762
|
-
description?: string | undefined;
|
|
763
381
|
default?: any;
|
|
764
|
-
required?: boolean | undefined;
|
|
765
|
-
enum?: string[] | undefined;
|
|
766
|
-
key?: string | undefined;
|
|
767
|
-
examples?: any[] | undefined;
|
|
768
382
|
nullable?: boolean | undefined;
|
|
769
|
-
|
|
770
|
-
file?: any;
|
|
771
|
-
enabled?: boolean | undefined;
|
|
772
|
-
}>, {
|
|
773
|
-
value: string;
|
|
383
|
+
}, {
|
|
774
384
|
key: string;
|
|
385
|
+
value: string;
|
|
775
386
|
enabled: boolean;
|
|
776
|
-
|
|
777
|
-
type?: string | string[] | undefined;
|
|
778
|
-
maximum?: number | undefined;
|
|
387
|
+
file?: any;
|
|
779
388
|
description?: string | undefined;
|
|
780
|
-
default?: any;
|
|
781
389
|
required?: boolean | undefined;
|
|
782
390
|
enum?: string[] | undefined;
|
|
783
391
|
examples?: any[] | undefined;
|
|
784
|
-
|
|
392
|
+
type?: string | string[] | undefined;
|
|
785
393
|
format?: string | undefined;
|
|
786
|
-
file?: any;
|
|
787
|
-
}, {
|
|
788
|
-
value?: string | undefined;
|
|
789
394
|
minimum?: number | undefined;
|
|
790
|
-
type?: string | string[] | undefined;
|
|
791
395
|
maximum?: number | undefined;
|
|
792
|
-
description?: string | undefined;
|
|
793
396
|
default?: any;
|
|
794
|
-
required?: boolean | undefined;
|
|
795
|
-
enum?: string[] | undefined;
|
|
796
|
-
key?: string | undefined;
|
|
797
|
-
examples?: any[] | undefined;
|
|
798
397
|
nullable?: boolean | undefined;
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
enabled?: boolean | undefined;
|
|
802
|
-
}>, "many">>;
|
|
803
|
-
cookies: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
398
|
+
}>>>>;
|
|
399
|
+
cookies: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
804
400
|
key: z.ZodDefault<z.ZodString>;
|
|
805
|
-
value: z.ZodDefault<z.
|
|
401
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
806
402
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
807
403
|
file: z.ZodOptional<z.ZodAny>;
|
|
808
404
|
description: z.ZodOptional<z.ZodString>;
|
|
809
405
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
810
|
-
enum: z.ZodOptional<z.ZodArray<z.ZodString
|
|
811
|
-
examples: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
812
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
406
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
407
|
+
examples: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
408
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
813
409
|
format: z.ZodOptional<z.ZodString>;
|
|
814
410
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
815
411
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
816
412
|
default: z.ZodOptional<z.ZodAny>;
|
|
817
413
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
818
|
-
},
|
|
819
|
-
value: string;
|
|
820
|
-
key: string;
|
|
821
|
-
enabled: boolean;
|
|
822
|
-
minimum?: number | undefined;
|
|
823
|
-
type?: string | string[] | undefined;
|
|
824
|
-
maximum?: number | undefined;
|
|
825
|
-
description?: string | undefined;
|
|
826
|
-
default?: any;
|
|
827
|
-
required?: boolean | undefined;
|
|
828
|
-
enum?: string[] | undefined;
|
|
829
|
-
examples?: any[] | undefined;
|
|
830
|
-
nullable?: boolean | undefined;
|
|
831
|
-
format?: string | undefined;
|
|
832
|
-
file?: any;
|
|
833
|
-
}, {
|
|
834
|
-
value?: string | undefined;
|
|
835
|
-
minimum?: number | undefined;
|
|
836
|
-
type?: string | string[] | undefined;
|
|
837
|
-
maximum?: number | undefined;
|
|
838
|
-
description?: string | undefined;
|
|
839
|
-
default?: any;
|
|
840
|
-
required?: boolean | undefined;
|
|
841
|
-
enum?: string[] | undefined;
|
|
842
|
-
key?: string | undefined;
|
|
843
|
-
examples?: any[] | undefined;
|
|
844
|
-
nullable?: boolean | undefined;
|
|
845
|
-
format?: string | undefined;
|
|
846
|
-
file?: any;
|
|
847
|
-
enabled?: boolean | undefined;
|
|
848
|
-
}>, {
|
|
849
|
-
value: string;
|
|
850
|
-
key: string;
|
|
851
|
-
enabled: boolean;
|
|
852
|
-
minimum?: number | undefined;
|
|
853
|
-
type?: string | string[] | undefined;
|
|
854
|
-
maximum?: number | undefined;
|
|
855
|
-
description?: string | undefined;
|
|
856
|
-
default?: any;
|
|
857
|
-
required?: boolean | undefined;
|
|
858
|
-
enum?: string[] | undefined;
|
|
859
|
-
examples?: any[] | undefined;
|
|
860
|
-
nullable?: boolean | undefined;
|
|
861
|
-
format?: string | undefined;
|
|
862
|
-
file?: any;
|
|
863
|
-
}, {
|
|
864
|
-
value?: string | undefined;
|
|
865
|
-
minimum?: number | undefined;
|
|
866
|
-
type?: string | string[] | undefined;
|
|
867
|
-
maximum?: number | undefined;
|
|
868
|
-
description?: string | undefined;
|
|
869
|
-
default?: any;
|
|
870
|
-
required?: boolean | undefined;
|
|
871
|
-
enum?: string[] | undefined;
|
|
872
|
-
key?: string | undefined;
|
|
873
|
-
examples?: any[] | undefined;
|
|
874
|
-
nullable?: boolean | undefined;
|
|
875
|
-
format?: string | undefined;
|
|
876
|
-
file?: any;
|
|
877
|
-
enabled?: boolean | undefined;
|
|
878
|
-
}>, "many">>;
|
|
879
|
-
}, "strip", z.ZodTypeAny, {
|
|
880
|
-
path: {
|
|
881
|
-
value: string;
|
|
882
|
-
key: string;
|
|
883
|
-
enabled: boolean;
|
|
884
|
-
minimum?: number | undefined;
|
|
885
|
-
type?: string | string[] | undefined;
|
|
886
|
-
maximum?: number | undefined;
|
|
887
|
-
description?: string | undefined;
|
|
888
|
-
default?: any;
|
|
889
|
-
required?: boolean | undefined;
|
|
890
|
-
enum?: string[] | undefined;
|
|
891
|
-
examples?: any[] | undefined;
|
|
892
|
-
nullable?: boolean | undefined;
|
|
893
|
-
format?: string | undefined;
|
|
894
|
-
file?: any;
|
|
895
|
-
}[];
|
|
896
|
-
headers: {
|
|
897
|
-
value: string;
|
|
898
|
-
key: string;
|
|
899
|
-
enabled: boolean;
|
|
900
|
-
minimum?: number | undefined;
|
|
901
|
-
type?: string | string[] | undefined;
|
|
902
|
-
maximum?: number | undefined;
|
|
903
|
-
description?: string | undefined;
|
|
904
|
-
default?: any;
|
|
905
|
-
required?: boolean | undefined;
|
|
906
|
-
enum?: string[] | undefined;
|
|
907
|
-
examples?: any[] | undefined;
|
|
908
|
-
nullable?: boolean | undefined;
|
|
909
|
-
format?: string | undefined;
|
|
910
|
-
file?: any;
|
|
911
|
-
}[];
|
|
912
|
-
query: {
|
|
913
|
-
value: string;
|
|
414
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
914
415
|
key: string;
|
|
915
|
-
enabled: boolean;
|
|
916
|
-
minimum?: number | undefined;
|
|
917
|
-
type?: string | string[] | undefined;
|
|
918
|
-
maximum?: number | undefined;
|
|
919
|
-
description?: string | undefined;
|
|
920
|
-
default?: any;
|
|
921
|
-
required?: boolean | undefined;
|
|
922
|
-
enum?: string[] | undefined;
|
|
923
|
-
examples?: any[] | undefined;
|
|
924
|
-
nullable?: boolean | undefined;
|
|
925
|
-
format?: string | undefined;
|
|
926
|
-
file?: any;
|
|
927
|
-
}[];
|
|
928
|
-
cookies: {
|
|
929
416
|
value: string;
|
|
930
|
-
key: string;
|
|
931
417
|
enabled: boolean;
|
|
932
|
-
minimum?: number | undefined;
|
|
933
|
-
type?: string | string[] | undefined;
|
|
934
|
-
maximum?: number | undefined;
|
|
935
|
-
description?: string | undefined;
|
|
936
|
-
default?: any;
|
|
937
|
-
required?: boolean | undefined;
|
|
938
|
-
enum?: string[] | undefined;
|
|
939
|
-
examples?: any[] | undefined;
|
|
940
|
-
nullable?: boolean | undefined;
|
|
941
|
-
format?: string | undefined;
|
|
942
|
-
file?: any;
|
|
943
|
-
}[];
|
|
944
|
-
}, {
|
|
945
|
-
path?: {
|
|
946
|
-
value?: string | undefined;
|
|
947
|
-
minimum?: number | undefined;
|
|
948
|
-
type?: string | string[] | undefined;
|
|
949
|
-
maximum?: number | undefined;
|
|
950
|
-
description?: string | undefined;
|
|
951
|
-
default?: any;
|
|
952
|
-
required?: boolean | undefined;
|
|
953
|
-
enum?: string[] | undefined;
|
|
954
|
-
key?: string | undefined;
|
|
955
|
-
examples?: any[] | undefined;
|
|
956
|
-
nullable?: boolean | undefined;
|
|
957
|
-
format?: string | undefined;
|
|
958
|
-
file?: any;
|
|
959
|
-
enabled?: boolean | undefined;
|
|
960
|
-
}[] | undefined;
|
|
961
|
-
headers?: {
|
|
962
|
-
value?: string | undefined;
|
|
963
|
-
minimum?: number | undefined;
|
|
964
|
-
type?: string | string[] | undefined;
|
|
965
|
-
maximum?: number | undefined;
|
|
966
|
-
description?: string | undefined;
|
|
967
|
-
default?: any;
|
|
968
|
-
required?: boolean | undefined;
|
|
969
|
-
enum?: string[] | undefined;
|
|
970
|
-
key?: string | undefined;
|
|
971
|
-
examples?: any[] | undefined;
|
|
972
|
-
nullable?: boolean | undefined;
|
|
973
|
-
format?: string | undefined;
|
|
974
|
-
file?: any;
|
|
975
|
-
enabled?: boolean | undefined;
|
|
976
|
-
}[] | undefined;
|
|
977
|
-
query?: {
|
|
978
|
-
value?: string | undefined;
|
|
979
|
-
minimum?: number | undefined;
|
|
980
|
-
type?: string | string[] | undefined;
|
|
981
|
-
maximum?: number | undefined;
|
|
982
|
-
description?: string | undefined;
|
|
983
|
-
default?: any;
|
|
984
|
-
required?: boolean | undefined;
|
|
985
|
-
enum?: string[] | undefined;
|
|
986
|
-
key?: string | undefined;
|
|
987
|
-
examples?: any[] | undefined;
|
|
988
|
-
nullable?: boolean | undefined;
|
|
989
|
-
format?: string | undefined;
|
|
990
418
|
file?: any;
|
|
991
|
-
enabled?: boolean | undefined;
|
|
992
|
-
}[] | undefined;
|
|
993
|
-
cookies?: {
|
|
994
|
-
value?: string | undefined;
|
|
995
|
-
minimum?: number | undefined;
|
|
996
|
-
type?: string | string[] | undefined;
|
|
997
|
-
maximum?: number | undefined;
|
|
998
419
|
description?: string | undefined;
|
|
999
|
-
default?: any;
|
|
1000
420
|
required?: boolean | undefined;
|
|
1001
421
|
enum?: string[] | undefined;
|
|
1002
|
-
key?: string | undefined;
|
|
1003
422
|
examples?: any[] | undefined;
|
|
1004
|
-
nullable?: boolean | undefined;
|
|
1005
|
-
format?: string | undefined;
|
|
1006
|
-
file?: any;
|
|
1007
|
-
enabled?: boolean | undefined;
|
|
1008
|
-
}[] | undefined;
|
|
1009
|
-
}>>>;
|
|
1010
|
-
/** TODO: Should this be deprecated? */
|
|
1011
|
-
serverVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1012
|
-
}, "strip", z.ZodTypeAny, {
|
|
1013
|
-
uid: string & z.BRAND<"example">;
|
|
1014
|
-
name: string;
|
|
1015
|
-
type: "requestExample";
|
|
1016
|
-
parameters: {
|
|
1017
|
-
path: {
|
|
1018
|
-
value: string;
|
|
1019
|
-
key: string;
|
|
1020
|
-
enabled: boolean;
|
|
1021
|
-
minimum?: number | undefined;
|
|
1022
423
|
type?: string | string[] | undefined;
|
|
1023
|
-
maximum?: number | undefined;
|
|
1024
|
-
description?: string | undefined;
|
|
1025
|
-
default?: any;
|
|
1026
|
-
required?: boolean | undefined;
|
|
1027
|
-
enum?: string[] | undefined;
|
|
1028
|
-
examples?: any[] | undefined;
|
|
1029
|
-
nullable?: boolean | undefined;
|
|
1030
424
|
format?: string | undefined;
|
|
1031
|
-
file?: any;
|
|
1032
|
-
}[];
|
|
1033
|
-
headers: {
|
|
1034
|
-
value: string;
|
|
1035
|
-
key: string;
|
|
1036
|
-
enabled: boolean;
|
|
1037
425
|
minimum?: number | undefined;
|
|
1038
|
-
type?: string | string[] | undefined;
|
|
1039
426
|
maximum?: number | undefined;
|
|
1040
|
-
description?: string | undefined;
|
|
1041
427
|
default?: any;
|
|
1042
|
-
required?: boolean | undefined;
|
|
1043
|
-
enum?: string[] | undefined;
|
|
1044
|
-
examples?: any[] | undefined;
|
|
1045
428
|
nullable?: boolean | undefined;
|
|
1046
|
-
|
|
1047
|
-
file?: any;
|
|
1048
|
-
}[];
|
|
1049
|
-
query: {
|
|
1050
|
-
value: string;
|
|
429
|
+
}, {
|
|
1051
430
|
key: string;
|
|
1052
|
-
enabled: boolean;
|
|
1053
|
-
minimum?: number | undefined;
|
|
1054
|
-
type?: string | string[] | undefined;
|
|
1055
|
-
maximum?: number | undefined;
|
|
1056
|
-
description?: string | undefined;
|
|
1057
|
-
default?: any;
|
|
1058
|
-
required?: boolean | undefined;
|
|
1059
|
-
enum?: string[] | undefined;
|
|
1060
|
-
examples?: any[] | undefined;
|
|
1061
|
-
nullable?: boolean | undefined;
|
|
1062
|
-
format?: string | undefined;
|
|
1063
|
-
file?: any;
|
|
1064
|
-
}[];
|
|
1065
|
-
cookies: {
|
|
1066
431
|
value: string;
|
|
1067
|
-
key: string;
|
|
1068
432
|
enabled: boolean;
|
|
1069
|
-
minimum?: number | undefined;
|
|
1070
|
-
type?: string | string[] | undefined;
|
|
1071
|
-
maximum?: number | undefined;
|
|
1072
|
-
description?: string | undefined;
|
|
1073
|
-
default?: any;
|
|
1074
|
-
required?: boolean | undefined;
|
|
1075
|
-
enum?: string[] | undefined;
|
|
1076
|
-
examples?: any[] | undefined;
|
|
1077
|
-
nullable?: boolean | undefined;
|
|
1078
|
-
format?: string | undefined;
|
|
1079
433
|
file?: any;
|
|
1080
|
-
}[];
|
|
1081
|
-
};
|
|
1082
|
-
body: {
|
|
1083
|
-
activeBody: "binary" | "formData" | "raw";
|
|
1084
|
-
binary?: Blob | undefined;
|
|
1085
|
-
formData?: {
|
|
1086
|
-
value: {
|
|
1087
|
-
value: string;
|
|
1088
|
-
key: string;
|
|
1089
|
-
enabled: boolean;
|
|
1090
|
-
minimum?: number | undefined;
|
|
1091
|
-
type?: string | string[] | undefined;
|
|
1092
|
-
maximum?: number | undefined;
|
|
1093
|
-
description?: string | undefined;
|
|
1094
|
-
default?: any;
|
|
1095
|
-
required?: boolean | undefined;
|
|
1096
|
-
enum?: string[] | undefined;
|
|
1097
|
-
examples?: any[] | undefined;
|
|
1098
|
-
nullable?: boolean | undefined;
|
|
1099
|
-
format?: string | undefined;
|
|
1100
|
-
file?: any;
|
|
1101
|
-
}[];
|
|
1102
|
-
encoding: "form-data" | "urlencoded";
|
|
1103
|
-
} | undefined;
|
|
1104
|
-
raw?: {
|
|
1105
|
-
value: string;
|
|
1106
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
1107
|
-
mimeType?: string | undefined;
|
|
1108
|
-
} | undefined;
|
|
1109
|
-
};
|
|
1110
|
-
requestUid?: (string & z.BRAND<"operation">) | undefined;
|
|
1111
|
-
serverVariables?: Record<string, string[]> | undefined;
|
|
1112
|
-
}, {
|
|
1113
|
-
uid?: string | undefined;
|
|
1114
|
-
name?: string | undefined;
|
|
1115
|
-
type?: "requestExample" | undefined;
|
|
1116
|
-
parameters?: {
|
|
1117
|
-
path?: {
|
|
1118
|
-
value?: string | undefined;
|
|
1119
|
-
minimum?: number | undefined;
|
|
1120
|
-
type?: string | string[] | undefined;
|
|
1121
|
-
maximum?: number | undefined;
|
|
1122
434
|
description?: string | undefined;
|
|
1123
|
-
default?: any;
|
|
1124
435
|
required?: boolean | undefined;
|
|
1125
436
|
enum?: string[] | undefined;
|
|
1126
|
-
key?: string | undefined;
|
|
1127
437
|
examples?: any[] | undefined;
|
|
1128
|
-
nullable?: boolean | undefined;
|
|
1129
|
-
format?: string | undefined;
|
|
1130
|
-
file?: any;
|
|
1131
|
-
enabled?: boolean | undefined;
|
|
1132
|
-
}[] | undefined;
|
|
1133
|
-
headers?: {
|
|
1134
|
-
value?: string | undefined;
|
|
1135
|
-
minimum?: number | undefined;
|
|
1136
438
|
type?: string | string[] | undefined;
|
|
1137
|
-
maximum?: number | undefined;
|
|
1138
|
-
description?: string | undefined;
|
|
1139
|
-
default?: any;
|
|
1140
|
-
required?: boolean | undefined;
|
|
1141
|
-
enum?: string[] | undefined;
|
|
1142
|
-
key?: string | undefined;
|
|
1143
|
-
examples?: any[] | undefined;
|
|
1144
|
-
nullable?: boolean | undefined;
|
|
1145
|
-
format?: string | undefined;
|
|
1146
|
-
file?: any;
|
|
1147
|
-
enabled?: boolean | undefined;
|
|
1148
|
-
}[] | undefined;
|
|
1149
|
-
query?: {
|
|
1150
|
-
value?: string | undefined;
|
|
1151
|
-
minimum?: number | undefined;
|
|
1152
|
-
type?: string | string[] | undefined;
|
|
1153
|
-
maximum?: number | undefined;
|
|
1154
|
-
description?: string | undefined;
|
|
1155
|
-
default?: any;
|
|
1156
|
-
required?: boolean | undefined;
|
|
1157
|
-
enum?: string[] | undefined;
|
|
1158
|
-
key?: string | undefined;
|
|
1159
|
-
examples?: any[] | undefined;
|
|
1160
|
-
nullable?: boolean | undefined;
|
|
1161
439
|
format?: string | undefined;
|
|
1162
|
-
file?: any;
|
|
1163
|
-
enabled?: boolean | undefined;
|
|
1164
|
-
}[] | undefined;
|
|
1165
|
-
cookies?: {
|
|
1166
|
-
value?: string | undefined;
|
|
1167
440
|
minimum?: number | undefined;
|
|
1168
|
-
type?: string | string[] | undefined;
|
|
1169
441
|
maximum?: number | undefined;
|
|
1170
|
-
description?: string | undefined;
|
|
1171
442
|
default?: any;
|
|
1172
|
-
required?: boolean | undefined;
|
|
1173
|
-
enum?: string[] | undefined;
|
|
1174
|
-
key?: string | undefined;
|
|
1175
|
-
examples?: any[] | undefined;
|
|
1176
443
|
nullable?: boolean | undefined;
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
} | undefined;
|
|
1182
|
-
body?: {
|
|
1183
|
-
binary?: Blob | undefined;
|
|
1184
|
-
formData?: {
|
|
1185
|
-
value?: {
|
|
1186
|
-
value?: string | undefined;
|
|
1187
|
-
minimum?: number | undefined;
|
|
1188
|
-
type?: string | string[] | undefined;
|
|
1189
|
-
maximum?: number | undefined;
|
|
1190
|
-
description?: string | undefined;
|
|
1191
|
-
default?: any;
|
|
1192
|
-
required?: boolean | undefined;
|
|
1193
|
-
enum?: string[] | undefined;
|
|
1194
|
-
key?: string | undefined;
|
|
1195
|
-
examples?: any[] | undefined;
|
|
1196
|
-
nullable?: boolean | undefined;
|
|
1197
|
-
format?: string | undefined;
|
|
1198
|
-
file?: any;
|
|
1199
|
-
enabled?: boolean | undefined;
|
|
1200
|
-
}[] | undefined;
|
|
1201
|
-
encoding?: "form-data" | "urlencoded" | undefined;
|
|
1202
|
-
} | undefined;
|
|
1203
|
-
raw?: {
|
|
1204
|
-
encoding: "xml" | "json" | "text" | "html" | "javascript" | "yaml" | "edn";
|
|
1205
|
-
value?: string | undefined;
|
|
1206
|
-
mimeType?: string | undefined;
|
|
1207
|
-
} | undefined;
|
|
1208
|
-
activeBody?: "binary" | "formData" | "raw" | undefined;
|
|
1209
|
-
} | undefined;
|
|
1210
|
-
requestUid?: string | undefined;
|
|
1211
|
-
serverVariables?: Record<string, string[]> | undefined;
|
|
1212
|
-
}>;
|
|
444
|
+
}>>>>;
|
|
445
|
+
}, z.core.$strip>>>;
|
|
446
|
+
serverVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
447
|
+
}, z.core.$strip>;
|
|
1213
448
|
export type RequestExample = z.infer<typeof requestExampleSchema>;
|
|
1214
449
|
/** Schema for the OAS serialization of request examples */
|
|
1215
450
|
export declare const xScalarExampleSchema: z.ZodObject<{
|
|
1216
|
-
/** TODO: Should this be required? */
|
|
1217
451
|
name: z.ZodOptional<z.ZodString>;
|
|
1218
452
|
body: z.ZodOptional<z.ZodObject<{
|
|
1219
|
-
encoding: z.ZodEnum<
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
453
|
+
encoding: z.ZodEnum<{
|
|
454
|
+
binary: "binary";
|
|
455
|
+
"application/json": "application/json";
|
|
456
|
+
"text/plain": "text/plain";
|
|
457
|
+
"text/html": "text/html";
|
|
458
|
+
"application/javascript": "application/javascript";
|
|
459
|
+
"application/xml": "application/xml";
|
|
460
|
+
"application/yaml": "application/yaml";
|
|
461
|
+
"application/edn": "application/edn";
|
|
462
|
+
"application/octet-stream": "application/octet-stream";
|
|
463
|
+
"application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
|
|
464
|
+
"multipart/form-data": "multipart/form-data";
|
|
465
|
+
}>;
|
|
466
|
+
content: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>;
|
|
1227
467
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1228
468
|
url: z.ZodString;
|
|
1229
469
|
base64: z.ZodOptional<z.ZodString>;
|
|
1230
|
-
},
|
|
1231
|
-
|
|
1232
|
-
base64?: string | undefined;
|
|
1233
|
-
}, {
|
|
1234
|
-
url: string;
|
|
1235
|
-
base64?: string | undefined;
|
|
1236
|
-
}>>>;
|
|
1237
|
-
}, "strip", z.ZodTypeAny, {
|
|
1238
|
-
content: string | Record<string, any>;
|
|
1239
|
-
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";
|
|
1240
|
-
file?: {
|
|
1241
|
-
url: string;
|
|
1242
|
-
base64?: string | undefined;
|
|
1243
|
-
} | null | undefined;
|
|
1244
|
-
}, {
|
|
1245
|
-
content: string | Record<string, any>;
|
|
1246
|
-
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";
|
|
1247
|
-
file?: {
|
|
1248
|
-
url: string;
|
|
1249
|
-
base64?: string | undefined;
|
|
1250
|
-
} | null | undefined;
|
|
1251
|
-
}>>;
|
|
470
|
+
}, z.core.$strip>>>;
|
|
471
|
+
}, z.core.$strip>>;
|
|
1252
472
|
parameters: z.ZodObject<{
|
|
1253
473
|
path: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1254
474
|
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1255
475
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1256
476
|
cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1257
|
-
},
|
|
1258
|
-
|
|
1259
|
-
headers?: Record<string, string> | undefined;
|
|
1260
|
-
query?: Record<string, string> | undefined;
|
|
1261
|
-
cookies?: Record<string, string> | undefined;
|
|
1262
|
-
}, {
|
|
1263
|
-
path?: Record<string, string> | undefined;
|
|
1264
|
-
headers?: Record<string, string> | undefined;
|
|
1265
|
-
query?: Record<string, string> | undefined;
|
|
1266
|
-
cookies?: Record<string, string> | undefined;
|
|
1267
|
-
}>;
|
|
1268
|
-
}, "strip", z.ZodTypeAny, {
|
|
1269
|
-
parameters: {
|
|
1270
|
-
path?: Record<string, string> | undefined;
|
|
1271
|
-
headers?: Record<string, string> | undefined;
|
|
1272
|
-
query?: Record<string, string> | undefined;
|
|
1273
|
-
cookies?: Record<string, string> | undefined;
|
|
1274
|
-
};
|
|
1275
|
-
name?: string | undefined;
|
|
1276
|
-
body?: {
|
|
1277
|
-
content: string | Record<string, any>;
|
|
1278
|
-
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";
|
|
1279
|
-
file?: {
|
|
1280
|
-
url: string;
|
|
1281
|
-
base64?: string | undefined;
|
|
1282
|
-
} | null | undefined;
|
|
1283
|
-
} | undefined;
|
|
1284
|
-
}, {
|
|
1285
|
-
parameters: {
|
|
1286
|
-
path?: Record<string, string> | undefined;
|
|
1287
|
-
headers?: Record<string, string> | undefined;
|
|
1288
|
-
query?: Record<string, string> | undefined;
|
|
1289
|
-
cookies?: Record<string, string> | undefined;
|
|
1290
|
-
};
|
|
1291
|
-
name?: string | undefined;
|
|
1292
|
-
body?: {
|
|
1293
|
-
content: string | Record<string, any>;
|
|
1294
|
-
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";
|
|
1295
|
-
file?: {
|
|
1296
|
-
url: string;
|
|
1297
|
-
base64?: string | undefined;
|
|
1298
|
-
} | null | undefined;
|
|
1299
|
-
} | undefined;
|
|
1300
|
-
}>;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
}, z.core.$strip>;
|
|
1301
479
|
export type XScalarExample = z.infer<typeof xScalarExampleSchema>;
|
|
1302
480
|
/**
|
|
1303
481
|
* Convert a request example to the xScalar serialized format
|
|
@@ -1307,14 +485,14 @@ export type XScalarExample = z.infer<typeof xScalarExampleSchema>;
|
|
|
1307
485
|
export declare function convertExampleToXScalar(example: RequestExample): {
|
|
1308
486
|
parameters: {
|
|
1309
487
|
path?: Record<string, string> | undefined;
|
|
1310
|
-
headers?: Record<string, string> | undefined;
|
|
1311
488
|
query?: Record<string, string> | undefined;
|
|
489
|
+
headers?: Record<string, string> | undefined;
|
|
1312
490
|
cookies?: Record<string, string> | undefined;
|
|
1313
491
|
};
|
|
1314
492
|
name?: string | undefined;
|
|
1315
493
|
body?: {
|
|
1316
|
-
content: string | Record<string, any>;
|
|
1317
494
|
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";
|
|
495
|
+
content: string | Record<string, any>;
|
|
1318
496
|
file?: {
|
|
1319
497
|
url: string;
|
|
1320
498
|
base64?: string | undefined;
|
|
@@ -1322,22 +500,7 @@ export declare function convertExampleToXScalar(example: RequestExample): {
|
|
|
1322
500
|
} | undefined;
|
|
1323
501
|
};
|
|
1324
502
|
/** Create new instance parameter from a request parameter */
|
|
1325
|
-
export declare function createParamInstance(param: RequestParameter):
|
|
1326
|
-
value: string;
|
|
1327
|
-
key: string;
|
|
1328
|
-
enabled: boolean;
|
|
1329
|
-
minimum?: number | undefined;
|
|
1330
|
-
type?: string | string[] | undefined;
|
|
1331
|
-
maximum?: number | undefined;
|
|
1332
|
-
description?: string | undefined;
|
|
1333
|
-
default?: any;
|
|
1334
|
-
required?: boolean | undefined;
|
|
1335
|
-
enum?: string[] | undefined;
|
|
1336
|
-
examples?: any[] | undefined;
|
|
1337
|
-
nullable?: boolean | undefined;
|
|
1338
|
-
format?: string | undefined;
|
|
1339
|
-
file?: any;
|
|
1340
|
-
};
|
|
503
|
+
export declare function createParamInstance(param: RequestParameter): RequestExampleParameter;
|
|
1341
504
|
/**
|
|
1342
505
|
* Create new request example from a request
|
|
1343
506
|
* Iterates the name of the example if provided
|