@scalar/oas-utils 0.2.106 → 0.2.107
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 +13 -0
- package/dist/entities/cookie/cookie.d.ts +2 -2
- package/dist/entities/cookie/cookie.js +1 -1
- package/dist/entities/environment/environment.d.ts +2 -2
- package/dist/entities/environment/environment.js +1 -1
- package/dist/entities/shared/utility.d.ts +13 -1
- package/dist/entities/shared/utility.d.ts.map +1 -1
- package/dist/entities/shared/utility.js +4 -1
- package/dist/entities/spec/collection.d.ts +46 -46
- package/dist/entities/spec/collection.d.ts.map +1 -1
- package/dist/entities/spec/collection.js +11 -16
- package/dist/entities/spec/operation.d.ts +22 -22
- package/dist/entities/spec/parameters.d.ts +4 -4
- package/dist/entities/spec/request-examples.d.ts +5 -5
- package/dist/entities/spec/request-examples.d.ts.map +1 -1
- package/dist/entities/spec/request-examples.js +25 -62
- package/dist/entities/spec/requests.d.ts +30 -30
- package/dist/entities/spec/requests.d.ts.map +1 -1
- package/dist/entities/spec/requests.js +6 -18
- package/dist/entities/spec/security.d.ts +22 -22
- package/dist/entities/spec/security.d.ts.map +1 -1
- package/dist/entities/spec/security.js +7 -22
- package/dist/entities/spec/server.d.ts +2 -2
- package/dist/entities/spec/server.d.ts.map +1 -1
- package/dist/entities/spec/server.js +3 -5
- package/dist/entities/spec/spec-objects.d.ts +5 -5
- package/dist/entities/spec/spec-objects.d.ts.map +1 -1
- package/dist/entities/spec/spec-objects.js +6 -3
- package/dist/entities/spec/x-scalar-secrets.d.ts +4 -4
- package/dist/entities/spec/x-scalar-secrets.d.ts.map +1 -1
- package/dist/entities/workspace/workspace.d.ts +7 -7
- package/dist/entities/workspace/workspace.d.ts.map +1 -1
- package/dist/entities/workspace/workspace.js +5 -5
- package/dist/helpers/fetchSpecFromUrl.d.ts.map +1 -1
- package/dist/helpers/fetchSpecFromUrl.js +1 -1
- package/dist/helpers/json2xml.d.ts.map +1 -1
- package/dist/helpers/json2xml.js +3 -7
- package/dist/migrations/migrator.d.ts +1 -1
- package/dist/migrations/migrator.d.ts.map +1 -1
- package/dist/migrations/v-2.5.0/migration.d.ts +1 -1
- package/dist/migrations/v-2.5.0/migration.d.ts.map +1 -1
- package/dist/migrations/v-2.5.0/migration.js +66 -3
- package/dist/migrations/v-2.5.0/types.generated.d.ts +17 -17
- package/dist/migrations/v-2.5.0/types.generated.d.ts.map +1 -1
- package/dist/transforms/import-spec.d.ts +1 -1
- package/dist/transforms/import-spec.d.ts.map +1 -1
- package/dist/transforms/import-spec.js +12 -34
- package/package.json +7 -7
|
@@ -38,26 +38,23 @@ const requestExampleParametersSchema = z
|
|
|
38
38
|
nullable: z.boolean().optional(),
|
|
39
39
|
})
|
|
40
40
|
// set nullable: to true if type is ['string', 'null']
|
|
41
|
-
.transform((
|
|
41
|
+
.transform((_data) => {
|
|
42
|
+
const data = { ..._data };
|
|
42
43
|
// type: ['string', 'null'] -> nullable: true
|
|
43
44
|
if (Array.isArray(data.type) && data.type.includes('null')) {
|
|
44
|
-
data =
|
|
45
|
+
data.nullable = true;
|
|
45
46
|
}
|
|
46
47
|
// Hey, if it’s just one value and 'null', we can make it a string and ditch the 'null'.
|
|
47
|
-
if (Array.isArray(data.type) &&
|
|
48
|
-
data.type.
|
|
49
|
-
data.type.includes('null')) {
|
|
50
|
-
data = { ...data, type: data.type.find((item) => item !== 'null') };
|
|
48
|
+
if (Array.isArray(data.type) && data.type.length === 2 && data.type.includes('null')) {
|
|
49
|
+
data.type = data.type.find((item) => item !== 'null');
|
|
51
50
|
}
|
|
52
51
|
return data;
|
|
53
52
|
});
|
|
54
53
|
/** Convert the array of parameters to an object keyed by the parameter name */
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, {});
|
|
60
|
-
}
|
|
54
|
+
const parameterArrayToObject = (params) => params.reduce((map, param) => {
|
|
55
|
+
map[param.key] = param.value;
|
|
56
|
+
return map;
|
|
57
|
+
}, {});
|
|
61
58
|
const xScalarFileValueSchema = z
|
|
62
59
|
.object({
|
|
63
60
|
url: z.string(),
|
|
@@ -86,15 +83,7 @@ const xScalarFormDataValue = z.union([
|
|
|
86
83
|
*
|
|
87
84
|
* TODO: This list may not be comprehensive enough
|
|
88
85
|
*/
|
|
89
|
-
const exampleRequestBodyEncoding = [
|
|
90
|
-
'json',
|
|
91
|
-
'text',
|
|
92
|
-
'html',
|
|
93
|
-
'javascript',
|
|
94
|
-
'xml',
|
|
95
|
-
'yaml',
|
|
96
|
-
'edn',
|
|
97
|
-
];
|
|
86
|
+
const exampleRequestBodyEncoding = ['json', 'text', 'html', 'javascript', 'xml', 'yaml', 'edn'];
|
|
98
87
|
const exampleBodyMime = [
|
|
99
88
|
'application/json',
|
|
100
89
|
'text/plain',
|
|
@@ -132,16 +121,12 @@ const exampleRequestBodySchema = z.object({
|
|
|
132
121
|
.optional(),
|
|
133
122
|
formData: z
|
|
134
123
|
.object({
|
|
135
|
-
encoding: z
|
|
136
|
-
.union([z.literal('form-data'), z.literal('urlencoded')])
|
|
137
|
-
.default('form-data'),
|
|
124
|
+
encoding: z.union([z.literal('form-data'), z.literal('urlencoded')]).default('form-data'),
|
|
138
125
|
value: requestExampleParametersSchema.array().default([]),
|
|
139
126
|
})
|
|
140
127
|
.optional(),
|
|
141
128
|
binary: z.instanceof(Blob).optional(),
|
|
142
|
-
activeBody: z
|
|
143
|
-
.union([z.literal('raw'), z.literal('formData'), z.literal('binary')])
|
|
144
|
-
.default('raw'),
|
|
129
|
+
activeBody: z.union([z.literal('raw'), z.literal('formData'), z.literal('binary')]).default('raw'),
|
|
145
130
|
});
|
|
146
131
|
/** Schema for the OAS serialization of request example bodies */
|
|
147
132
|
const xScalarExampleBodySchema = z.object({
|
|
@@ -158,18 +143,16 @@ const xScalarExampleBodySchema = z.object({
|
|
|
158
143
|
// ---------------------------------------------------------------------------
|
|
159
144
|
// Example Schema
|
|
160
145
|
const requestExampleSchema = z.object({
|
|
161
|
-
uid: nanoidSchema,
|
|
146
|
+
uid: nanoidSchema.brand(),
|
|
162
147
|
type: z.literal('requestExample').optional().default('requestExample'),
|
|
163
|
-
requestUid:
|
|
148
|
+
requestUid: z.string().brand().optional(),
|
|
164
149
|
name: z.string().optional().default('Name'),
|
|
165
150
|
body: exampleRequestBodySchema.optional().default({}),
|
|
166
151
|
parameters: z
|
|
167
152
|
.object({
|
|
168
153
|
path: requestExampleParametersSchema.array().default([]),
|
|
169
154
|
query: requestExampleParametersSchema.array().default([]),
|
|
170
|
-
headers: requestExampleParametersSchema
|
|
171
|
-
.array()
|
|
172
|
-
.default([{ key: 'Accept', value: '*/*', enabled: true }]),
|
|
155
|
+
headers: requestExampleParametersSchema.array().default([{ key: 'Accept', value: '*/*', enabled: true }]),
|
|
173
156
|
cookies: requestExampleParametersSchema.array().default([]),
|
|
174
157
|
})
|
|
175
158
|
.optional()
|
|
@@ -178,9 +161,7 @@ const requestExampleSchema = z.object({
|
|
|
178
161
|
serverVariables: z.record(z.string(), z.array(z.string())).optional(),
|
|
179
162
|
});
|
|
180
163
|
/** For OAS serialization we just store the simple key/value pairs */
|
|
181
|
-
const xScalarExampleParameterSchema = z
|
|
182
|
-
.record(z.string(), z.string())
|
|
183
|
-
.optional();
|
|
164
|
+
const xScalarExampleParameterSchema = z.record(z.string(), z.string()).optional();
|
|
184
165
|
/** Schema for the OAS serialization of request examples */
|
|
185
166
|
const xScalarExampleSchema = z.object({
|
|
186
167
|
/** TODO: Should this be required? */
|
|
@@ -211,10 +192,7 @@ function convertExampleToXScalar(example) {
|
|
|
211
192
|
}
|
|
212
193
|
if (active === 'formData' && example.body?.[active]) {
|
|
213
194
|
const body = example.body[active];
|
|
214
|
-
xScalarBody.encoding =
|
|
215
|
-
body.encoding === 'form-data'
|
|
216
|
-
? 'multipart/form-data'
|
|
217
|
-
: 'application/x-www-form-urlencoded';
|
|
195
|
+
xScalarBody.encoding = body.encoding === 'form-data' ? 'multipart/form-data' : 'application/x-www-form-urlencoded';
|
|
218
196
|
// TODO: Need to allow users to set these properties
|
|
219
197
|
xScalarBody.content = body.value.reduce((map, param) => {
|
|
220
198
|
/** TODO: We need to ensure only file or value is set */
|
|
@@ -231,8 +209,7 @@ function convertExampleToXScalar(example) {
|
|
|
231
209
|
}, {});
|
|
232
210
|
}
|
|
233
211
|
if (example.body?.activeBody === 'raw') {
|
|
234
|
-
xScalarBody.encoding =
|
|
235
|
-
contentMapping[example.body.raw?.encoding ?? 'text'] ?? 'text/plain';
|
|
212
|
+
xScalarBody.encoding = contentMapping[example.body.raw?.encoding ?? 'text'] ?? 'text/plain';
|
|
236
213
|
xScalarBody.content = example.body.raw?.value ?? '';
|
|
237
214
|
}
|
|
238
215
|
const parameters = {};
|
|
@@ -243,9 +220,7 @@ function convertExampleToXScalar(example) {
|
|
|
243
220
|
});
|
|
244
221
|
return xScalarExampleSchema.parse({
|
|
245
222
|
/** Only add the body if we have content or the body should be a file */
|
|
246
|
-
body: xScalarBody.content || xScalarBody.encoding === 'binary'
|
|
247
|
-
? xScalarBody
|
|
248
|
-
: undefined,
|
|
223
|
+
body: xScalarBody.content || xScalarBody.encoding === 'binary' ? xScalarBody : undefined,
|
|
249
224
|
parameters,
|
|
250
225
|
});
|
|
251
226
|
}
|
|
@@ -262,12 +237,7 @@ function createParamInstance(param) {
|
|
|
262
237
|
* - Need to handle non-string parameters much better
|
|
263
238
|
* - Need to handle unions/array values for schema
|
|
264
239
|
*/
|
|
265
|
-
const value = String(schema?.default ??
|
|
266
|
-
schema?.examples?.[0] ??
|
|
267
|
-
schema?.example ??
|
|
268
|
-
firstExample?.value ??
|
|
269
|
-
param.example ??
|
|
270
|
-
'');
|
|
240
|
+
const value = String(schema?.default ?? schema?.examples?.[0] ?? schema?.example ?? firstExample?.value ?? param.example ?? '');
|
|
271
241
|
// Handle non-string enums and enums within items for array types
|
|
272
242
|
const parseEnum = schema?.enum && schema?.type !== 'string'
|
|
273
243
|
? schema.enum?.map(String)
|
|
@@ -275,9 +245,7 @@ function createParamInstance(param) {
|
|
|
275
245
|
? schema.items.enum.map(String)
|
|
276
246
|
: schema?.enum;
|
|
277
247
|
// Handle non-string examples
|
|
278
|
-
const parseExamples = schema?.examples && schema?.type !== 'string'
|
|
279
|
-
? schema.examples?.map(String)
|
|
280
|
-
: schema?.examples;
|
|
248
|
+
const parseExamples = schema?.examples && schema?.type !== 'string' ? schema.examples?.map(String) : schema?.examples;
|
|
281
249
|
// safe parse the example
|
|
282
250
|
const example = schemaModel({
|
|
283
251
|
...schema,
|
|
@@ -294,8 +262,7 @@ function createParamInstance(param) {
|
|
|
294
262
|
console.warn(`Example at ${param.name} is invalid.`);
|
|
295
263
|
return requestExampleParametersSchema.parse({});
|
|
296
264
|
}
|
|
297
|
-
|
|
298
|
-
return example;
|
|
265
|
+
return example;
|
|
299
266
|
}
|
|
300
267
|
/**
|
|
301
268
|
* Create new request example from a request
|
|
@@ -357,9 +324,7 @@ function createExampleFromRequest(request, name, server) {
|
|
|
357
324
|
requestBody?.mimeType === 'multipart/form-data') {
|
|
358
325
|
body.activeBody = 'formData';
|
|
359
326
|
body.formData = {
|
|
360
|
-
encoding: requestBody.mimeType === 'application/x-www-form-urlencoded'
|
|
361
|
-
? 'urlencoded'
|
|
362
|
-
: 'form-data',
|
|
327
|
+
encoding: requestBody.mimeType === 'application/x-www-form-urlencoded' ? 'urlencoded' : 'form-data',
|
|
363
328
|
value: (requestBody.params || []).map((param) => ({
|
|
364
329
|
key: param.name,
|
|
365
330
|
value: param.value || '',
|
|
@@ -368,8 +333,7 @@ function createExampleFromRequest(request, name, server) {
|
|
|
368
333
|
};
|
|
369
334
|
}
|
|
370
335
|
// Add the content-type header if it doesn't exist
|
|
371
|
-
if (requestBody?.mimeType &&
|
|
372
|
-
!parameters.headers.find((h) => h.key.toLowerCase() === 'content-type')) {
|
|
336
|
+
if (requestBody?.mimeType && !parameters.headers.find((h) => h.key.toLowerCase() === 'content-type')) {
|
|
373
337
|
parameters.headers.push({
|
|
374
338
|
key: 'Content-Type',
|
|
375
339
|
value: requestBody.mimeType,
|
|
@@ -390,8 +354,7 @@ function createExampleFromRequest(request, name, server) {
|
|
|
390
354
|
console.warn(`Example at ${request.uid} is invalid.`);
|
|
391
355
|
return requestExampleSchema.parse({});
|
|
392
356
|
}
|
|
393
|
-
|
|
394
|
-
return example;
|
|
357
|
+
return example;
|
|
395
358
|
}
|
|
396
359
|
|
|
397
360
|
export { convertExampleToXScalar, createExampleFromRequest, createParamInstance, exampleBodyMime, exampleRequestBodyEncoding, exampleRequestBodySchema, parameterArrayToObject, requestExampleParametersSchema, requestExampleSchema, xScalarExampleBodySchema, xScalarExampleSchema, xScalarFileValueSchema, xScalarFormDataValue };
|
|
@@ -87,10 +87,10 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
88
|
required: boolean;
|
|
89
89
|
name: string;
|
|
90
|
-
in: "path" | "
|
|
90
|
+
in: "path" | "cookie" | "query" | "header";
|
|
91
91
|
deprecated: boolean;
|
|
92
|
-
description?: string | undefined;
|
|
93
92
|
example?: unknown;
|
|
93
|
+
description?: string | undefined;
|
|
94
94
|
schema?: unknown;
|
|
95
95
|
content?: unknown;
|
|
96
96
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
@@ -100,10 +100,10 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
100
100
|
}> | undefined;
|
|
101
101
|
}, {
|
|
102
102
|
name: string;
|
|
103
|
-
in: "path" | "
|
|
103
|
+
in: "path" | "cookie" | "query" | "header";
|
|
104
|
+
example?: unknown;
|
|
104
105
|
required?: boolean | undefined;
|
|
105
106
|
description?: string | undefined;
|
|
106
|
-
example?: unknown;
|
|
107
107
|
deprecated?: boolean | undefined;
|
|
108
108
|
schema?: unknown;
|
|
109
109
|
content?: unknown;
|
|
@@ -228,10 +228,10 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
228
228
|
parameters?: {
|
|
229
229
|
required: boolean;
|
|
230
230
|
name: string;
|
|
231
|
-
in: "path" | "
|
|
231
|
+
in: "path" | "cookie" | "query" | "header";
|
|
232
232
|
deprecated: boolean;
|
|
233
|
-
description?: string | undefined;
|
|
234
233
|
example?: unknown;
|
|
234
|
+
description?: string | undefined;
|
|
235
235
|
schema?: unknown;
|
|
236
236
|
content?: unknown;
|
|
237
237
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
@@ -274,10 +274,10 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
274
274
|
operationId?: string | undefined;
|
|
275
275
|
parameters?: {
|
|
276
276
|
name: string;
|
|
277
|
-
in: "path" | "
|
|
277
|
+
in: "path" | "cookie" | "query" | "header";
|
|
278
|
+
example?: unknown;
|
|
278
279
|
required?: boolean | undefined;
|
|
279
280
|
description?: string | undefined;
|
|
280
|
-
example?: unknown;
|
|
281
281
|
deprecated?: boolean | undefined;
|
|
282
282
|
schema?: unknown;
|
|
283
283
|
content?: unknown;
|
|
@@ -367,10 +367,10 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
367
367
|
}, "strip", z.ZodTypeAny, {
|
|
368
368
|
required: boolean;
|
|
369
369
|
name: string;
|
|
370
|
-
in: "path" | "
|
|
370
|
+
in: "path" | "cookie" | "query" | "header";
|
|
371
371
|
deprecated: boolean;
|
|
372
|
-
description?: string | undefined;
|
|
373
372
|
example?: unknown;
|
|
373
|
+
description?: string | undefined;
|
|
374
374
|
schema?: unknown;
|
|
375
375
|
content?: unknown;
|
|
376
376
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
@@ -380,10 +380,10 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
380
380
|
}> | undefined;
|
|
381
381
|
}, {
|
|
382
382
|
name: string;
|
|
383
|
-
in: "path" | "
|
|
383
|
+
in: "path" | "cookie" | "query" | "header";
|
|
384
|
+
example?: unknown;
|
|
384
385
|
required?: boolean | undefined;
|
|
385
386
|
description?: string | undefined;
|
|
386
|
-
example?: unknown;
|
|
387
387
|
deprecated?: boolean | undefined;
|
|
388
388
|
schema?: unknown;
|
|
389
389
|
content?: unknown;
|
|
@@ -494,27 +494,27 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
494
494
|
'x-scalar-ignore': z.ZodOptional<z.ZodBoolean>;
|
|
495
495
|
}, "x-scalar-examples">, {
|
|
496
496
|
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"request">>>;
|
|
497
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString
|
|
497
|
+
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "operation">;
|
|
498
498
|
/** Path Key */
|
|
499
499
|
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
500
500
|
/** Request Method */
|
|
501
501
|
method: z.ZodDefault<z.ZodEnum<["connect", "delete", "get", "head", "options", "patch", "post", "put", "trace"]>>;
|
|
502
502
|
/** List of server UIDs specific to the request */
|
|
503
|
-
servers: z.ZodDefault<z.ZodArray<z.
|
|
503
|
+
servers: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodString, "server">, "many">>;
|
|
504
504
|
/** The currently selected server */
|
|
505
|
-
selectedServerUid: z.ZodDefault<z.ZodString
|
|
505
|
+
selectedServerUid: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "server">>>>;
|
|
506
506
|
/** List of example UIDs associated with the request */
|
|
507
|
-
examples: z.ZodDefault<z.ZodArray<z.
|
|
507
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodBranded<z.ZodString, "example">, "many">>;
|
|
508
508
|
/** List of security scheme UIDs associated with the request */
|
|
509
|
-
selectedSecuritySchemeUids: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.
|
|
509
|
+
selectedSecuritySchemeUids: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodBranded<z.ZodString, "securityScheme">, z.ZodArray<z.ZodBranded<z.ZodString, "securityScheme">, "many">]>, "many">>;
|
|
510
510
|
}>, "strip", z.ZodTypeAny, {
|
|
511
511
|
path: string;
|
|
512
512
|
type: "request";
|
|
513
|
-
uid: string
|
|
514
|
-
selectedSecuritySchemeUids: (string | string[])[];
|
|
515
|
-
selectedServerUid: string;
|
|
516
|
-
servers: string[];
|
|
517
|
-
examples: string[];
|
|
513
|
+
uid: string & z.BRAND<"operation">;
|
|
514
|
+
selectedSecuritySchemeUids: ((string & z.BRAND<"securityScheme">) | (string & z.BRAND<"securityScheme">)[])[];
|
|
515
|
+
selectedServerUid: (string & z.BRAND<"server">) | null;
|
|
516
|
+
servers: (string & z.BRAND<"server">)[];
|
|
517
|
+
examples: (string & z.BRAND<"example">)[];
|
|
518
518
|
method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
|
|
519
519
|
description?: string | undefined;
|
|
520
520
|
summary?: string | undefined;
|
|
@@ -531,10 +531,10 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
531
531
|
parameters?: {
|
|
532
532
|
required: boolean;
|
|
533
533
|
name: string;
|
|
534
|
-
in: "path" | "
|
|
534
|
+
in: "path" | "cookie" | "query" | "header";
|
|
535
535
|
deprecated: boolean;
|
|
536
|
-
description?: string | undefined;
|
|
537
536
|
example?: unknown;
|
|
537
|
+
description?: string | undefined;
|
|
538
538
|
schema?: unknown;
|
|
539
539
|
content?: unknown;
|
|
540
540
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
@@ -558,19 +558,19 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
558
558
|
'x-internal'?: boolean | undefined;
|
|
559
559
|
'x-scalar-ignore'?: boolean | undefined;
|
|
560
560
|
security?: Record<string, string[] | undefined>[] | undefined;
|
|
561
|
-
selectedSecuritySchemeUids?: (string |
|
|
562
|
-
selectedServerUid?: string | undefined;
|
|
563
|
-
servers?:
|
|
561
|
+
selectedSecuritySchemeUids?: (string | string[])[] | undefined;
|
|
562
|
+
selectedServerUid?: string | null | undefined;
|
|
563
|
+
servers?: string[] | undefined;
|
|
564
564
|
tags?: string[] | undefined;
|
|
565
565
|
deprecated?: boolean | undefined;
|
|
566
|
-
examples?:
|
|
566
|
+
examples?: string[] | undefined;
|
|
567
567
|
operationId?: string | undefined;
|
|
568
568
|
parameters?: {
|
|
569
569
|
name: string;
|
|
570
|
-
in: "path" | "
|
|
570
|
+
in: "path" | "cookie" | "query" | "header";
|
|
571
|
+
example?: unknown;
|
|
571
572
|
required?: boolean | undefined;
|
|
572
573
|
description?: string | undefined;
|
|
573
|
-
example?: unknown;
|
|
574
574
|
deprecated?: boolean | undefined;
|
|
575
575
|
schema?: unknown;
|
|
576
576
|
content?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/requests.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/requests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvC,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,oBAAoB,CAAA;AAI9E,eAAO,MAAM,cAAc,2FAA4F,CAAA;AAEvH,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3D,0DAA0D;AAC1D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG;IACzD,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,wCAAwC;IACx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;;;;;;;;;;IAGH,uBAAuB;;IAEvB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEvB,sBAAsB;;;;;;IAetB,eAAe;;IAEf,qBAAqB;;IAErB,kDAAkD;;IAElD,oCAAoC;;IAEpC,uDAAuD;;IAEvD,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK6C,CAAA;AAE9G,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AACnD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA"}
|
|
@@ -5,17 +5,7 @@ import { xScalarExampleSchema } from './request-examples.js';
|
|
|
5
5
|
import { oasSecurityRequirementSchema } from './security.js';
|
|
6
6
|
import { oasExternalDocumentationSchema } from './spec-objects.js';
|
|
7
7
|
|
|
8
|
-
const requestMethods = [
|
|
9
|
-
'connect',
|
|
10
|
-
'delete',
|
|
11
|
-
'get',
|
|
12
|
-
'head',
|
|
13
|
-
'options',
|
|
14
|
-
'patch',
|
|
15
|
-
'post',
|
|
16
|
-
'put',
|
|
17
|
-
'trace',
|
|
18
|
-
];
|
|
8
|
+
const requestMethods = ['connect', 'delete', 'get', 'head', 'options', 'patch', 'post', 'put', 'trace'];
|
|
19
9
|
const requestBodySchema = z.any();
|
|
20
10
|
/** Open API Compliant Request Validator */
|
|
21
11
|
const oasRequestSchema = z.object({
|
|
@@ -77,23 +67,21 @@ const oasRequestSchema = z.object({
|
|
|
77
67
|
*/
|
|
78
68
|
const extendedRequestSchema = z.object({
|
|
79
69
|
type: z.literal('request').optional().default('request'),
|
|
80
|
-
uid: nanoidSchema,
|
|
70
|
+
uid: nanoidSchema.brand(),
|
|
81
71
|
/** Path Key */
|
|
82
72
|
path: z.string().optional().default(''),
|
|
83
73
|
/** Request Method */
|
|
84
74
|
method: z.enum(requestMethods).default('get'),
|
|
85
75
|
/** List of server UIDs specific to the request */
|
|
86
|
-
servers:
|
|
76
|
+
servers: z.string().brand().array().default([]),
|
|
87
77
|
/** The currently selected server */
|
|
88
|
-
selectedServerUid: z.string().default(
|
|
78
|
+
selectedServerUid: z.string().brand().optional().nullable().default(null),
|
|
89
79
|
/** List of example UIDs associated with the request */
|
|
90
|
-
examples:
|
|
80
|
+
examples: z.string().brand().array().default([]),
|
|
91
81
|
/** List of security scheme UIDs associated with the request */
|
|
92
82
|
selectedSecuritySchemeUids: selectedSecuritySchemeUidSchema,
|
|
93
83
|
});
|
|
94
84
|
/** Unified request schema for client usage */
|
|
95
|
-
const requestSchema = oasRequestSchema
|
|
96
|
-
.omit({ 'x-scalar-examples': true })
|
|
97
|
-
.merge(extendedRequestSchema);
|
|
85
|
+
const requestSchema = oasRequestSchema.omit({ 'x-scalar-examples': true }).merge(extendedRequestSchema);
|
|
98
86
|
|
|
99
87
|
export { oasRequestSchema, requestMethods, requestSchema };
|
|
@@ -9,7 +9,7 @@ export declare const securityApiKeySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
9
9
|
/** REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie". */
|
|
10
10
|
in: z.ZodDefault<z.ZodOptional<z.ZodEnum<["query", "header", "cookie"]>>>;
|
|
11
11
|
}>, {
|
|
12
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString
|
|
12
|
+
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "securityScheme">;
|
|
13
13
|
/** The name key that links a security requirement to a security object */
|
|
14
14
|
nameKey: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
15
15
|
}>, {
|
|
@@ -17,10 +17,10 @@ export declare const securityApiKeySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
17
17
|
}>, "strip", z.ZodTypeAny, {
|
|
18
18
|
type: "apiKey";
|
|
19
19
|
value: string;
|
|
20
|
-
uid: string
|
|
20
|
+
uid: string & z.BRAND<"securityScheme">;
|
|
21
21
|
name: string;
|
|
22
22
|
nameKey: string;
|
|
23
|
-
in: "
|
|
23
|
+
in: "cookie" | "query" | "header";
|
|
24
24
|
description?: string | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
type: "apiKey";
|
|
@@ -29,7 +29,7 @@ export declare const securityApiKeySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
29
29
|
name?: string | undefined;
|
|
30
30
|
description?: string | undefined;
|
|
31
31
|
nameKey?: string | undefined;
|
|
32
|
-
in?: "
|
|
32
|
+
in?: "cookie" | "query" | "header" | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
export type SecuritySchemeApiKey = z.infer<typeof securityApiKeySchema>;
|
|
35
35
|
export declare const securityHttpSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -48,7 +48,7 @@ export declare const securityHttpSchema: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
48
48
|
*/
|
|
49
49
|
bearerFormat: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"JWT">, z.ZodString]>>>;
|
|
50
50
|
}>, {
|
|
51
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString
|
|
51
|
+
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "securityScheme">;
|
|
52
52
|
/** The name key that links a security requirement to a security object */
|
|
53
53
|
nameKey: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
54
54
|
}>, {
|
|
@@ -57,7 +57,7 @@ export declare const securityHttpSchema: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
57
57
|
token: z.ZodDefault<z.ZodString>;
|
|
58
58
|
}>, "strip", z.ZodTypeAny, {
|
|
59
59
|
type: "http";
|
|
60
|
-
uid: string
|
|
60
|
+
uid: string & z.BRAND<"securityScheme">;
|
|
61
61
|
nameKey: string;
|
|
62
62
|
scheme: "basic" | "bearer";
|
|
63
63
|
bearerFormat: string;
|
|
@@ -87,12 +87,12 @@ export declare const securityOpenIdSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
87
87
|
*/
|
|
88
88
|
openIdConnectUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
89
89
|
}>, {
|
|
90
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString
|
|
90
|
+
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "securityScheme">;
|
|
91
91
|
/** The name key that links a security requirement to a security object */
|
|
92
92
|
nameKey: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
93
93
|
}>, "strip", z.ZodTypeAny, {
|
|
94
94
|
type: "openIdConnect";
|
|
95
|
-
uid: string
|
|
95
|
+
uid: string & z.BRAND<"securityScheme">;
|
|
96
96
|
nameKey: string;
|
|
97
97
|
openIdConnectUrl: string;
|
|
98
98
|
description?: string | undefined;
|
|
@@ -382,12 +382,12 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
382
382
|
} | undefined;
|
|
383
383
|
}>>;
|
|
384
384
|
}>, {
|
|
385
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString
|
|
385
|
+
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "securityScheme">;
|
|
386
386
|
/** The name key that links a security requirement to a security object */
|
|
387
387
|
nameKey: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
388
388
|
}>, "strip", z.ZodTypeAny, {
|
|
389
389
|
type: "oauth2";
|
|
390
|
-
uid: string
|
|
390
|
+
uid: string & z.BRAND<"securityScheme">;
|
|
391
391
|
nameKey: string;
|
|
392
392
|
flows: {
|
|
393
393
|
password?: {
|
|
@@ -518,13 +518,13 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
518
518
|
}>, "strip", z.ZodTypeAny, {
|
|
519
519
|
type: "apiKey";
|
|
520
520
|
name: string;
|
|
521
|
-
in: "
|
|
521
|
+
in: "cookie" | "query" | "header";
|
|
522
522
|
description?: string | undefined;
|
|
523
523
|
}, {
|
|
524
524
|
type: "apiKey";
|
|
525
525
|
name?: string | undefined;
|
|
526
526
|
description?: string | undefined;
|
|
527
|
-
in?: "
|
|
527
|
+
in?: "cookie" | "query" | "header" | undefined;
|
|
528
528
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
529
529
|
description: z.ZodOptional<z.ZodString>;
|
|
530
530
|
}, {
|
|
@@ -953,7 +953,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
953
953
|
/** REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie". */
|
|
954
954
|
in: z.ZodDefault<z.ZodOptional<z.ZodEnum<["query", "header", "cookie"]>>>;
|
|
955
955
|
}>, {
|
|
956
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString
|
|
956
|
+
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "securityScheme">;
|
|
957
957
|
/** The name key that links a security requirement to a security object */
|
|
958
958
|
nameKey: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
959
959
|
}>, {
|
|
@@ -961,10 +961,10 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
961
961
|
}>, "strip", z.ZodTypeAny, {
|
|
962
962
|
type: "apiKey";
|
|
963
963
|
value: string;
|
|
964
|
-
uid: string
|
|
964
|
+
uid: string & z.BRAND<"securityScheme">;
|
|
965
965
|
name: string;
|
|
966
966
|
nameKey: string;
|
|
967
|
-
in: "
|
|
967
|
+
in: "cookie" | "query" | "header";
|
|
968
968
|
description?: string | undefined;
|
|
969
969
|
}, {
|
|
970
970
|
type: "apiKey";
|
|
@@ -973,7 +973,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
973
973
|
name?: string | undefined;
|
|
974
974
|
description?: string | undefined;
|
|
975
975
|
nameKey?: string | undefined;
|
|
976
|
-
in?: "
|
|
976
|
+
in?: "cookie" | "query" | "header" | undefined;
|
|
977
977
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
978
978
|
description: z.ZodOptional<z.ZodString>;
|
|
979
979
|
}, {
|
|
@@ -990,7 +990,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
990
990
|
*/
|
|
991
991
|
bearerFormat: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"JWT">, z.ZodString]>>>;
|
|
992
992
|
}>, {
|
|
993
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString
|
|
993
|
+
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "securityScheme">;
|
|
994
994
|
/** The name key that links a security requirement to a security object */
|
|
995
995
|
nameKey: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
996
996
|
}>, {
|
|
@@ -999,7 +999,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
999
999
|
token: z.ZodDefault<z.ZodString>;
|
|
1000
1000
|
}>, "strip", z.ZodTypeAny, {
|
|
1001
1001
|
type: "http";
|
|
1002
|
-
uid: string
|
|
1002
|
+
uid: string & z.BRAND<"securityScheme">;
|
|
1003
1003
|
nameKey: string;
|
|
1004
1004
|
scheme: "basic" | "bearer";
|
|
1005
1005
|
bearerFormat: string;
|
|
@@ -1027,12 +1027,12 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1027
1027
|
*/
|
|
1028
1028
|
openIdConnectUrl: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1029
1029
|
}>, {
|
|
1030
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString
|
|
1030
|
+
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "securityScheme">;
|
|
1031
1031
|
/** The name key that links a security requirement to a security object */
|
|
1032
1032
|
nameKey: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1033
1033
|
}>, "strip", z.ZodTypeAny, {
|
|
1034
1034
|
type: "openIdConnect";
|
|
1035
|
-
uid: string
|
|
1035
|
+
uid: string & z.BRAND<"securityScheme">;
|
|
1036
1036
|
nameKey: string;
|
|
1037
1037
|
openIdConnectUrl: string;
|
|
1038
1038
|
description?: string | undefined;
|
|
@@ -1318,12 +1318,12 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1318
1318
|
} | undefined;
|
|
1319
1319
|
}>>;
|
|
1320
1320
|
}>, {
|
|
1321
|
-
uid: z.ZodDefault<z.ZodOptional<z.ZodString
|
|
1321
|
+
uid: z.ZodBranded<z.ZodDefault<z.ZodOptional<z.ZodString>>, "securityScheme">;
|
|
1322
1322
|
/** The name key that links a security requirement to a security object */
|
|
1323
1323
|
nameKey: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1324
1324
|
}>, "strip", z.ZodTypeAny, {
|
|
1325
1325
|
type: "oauth2";
|
|
1326
|
-
uid: string
|
|
1326
|
+
uid: string & z.BRAND<"securityScheme">;
|
|
1327
1327
|
nameKey: string;
|
|
1328
1328
|
flows: {
|
|
1329
1329
|
password?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/security.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/security.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAuBvB,eAAO,MAAM,sBAAsB,wCAAyC,CAAA;AAc5E,eAAO,MAAM,oBAA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