@scalar/oas-utils 0.2.95 → 0.2.97
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 +22 -0
- package/dist/entities/hotkeys/hotkeys.d.ts +1 -1
- package/dist/entities/hotkeys/hotkeys.d.ts.map +1 -1
- package/dist/entities/hotkeys/hotkeys.js +11 -10
- package/dist/entities/spec/request-examples.d.ts +79 -79
- package/dist/entities/spec/requests.d.ts +24 -10
- package/dist/entities/spec/requests.d.ts.map +1 -1
- package/dist/entities/spec/requests.js +3 -0
- package/dist/entities/spec/spec-objects.d.ts +14 -0
- package/dist/entities/spec/spec-objects.d.ts.map +1 -1
- package/dist/entities/spec/spec-objects.js +3 -0
- package/dist/entities/workspace/workspace.d.ts +10 -10
- package/dist/helpers/index.d.ts +2 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +2 -1
- package/dist/helpers/shouldIgnoreEntity.d.ts +7 -0
- package/dist/helpers/shouldIgnoreEntity.d.ts.map +1 -0
- package/dist/helpers/shouldIgnoreEntity.js +8 -0
- package/dist/migrations/v-2.2.0/types.generated.d.ts +339 -27
- package/dist/migrations/v-2.2.0/types.generated.d.ts.map +1 -1
- package/dist/migrations/v-2.3.0/types.generated.d.ts +360 -24
- package/dist/migrations/v-2.3.0/types.generated.d.ts.map +1 -1
- package/dist/spec-getters/getExampleFromSchema.d.ts.map +1 -1
- package/dist/spec-getters/getExampleFromSchema.js +11 -0
- package/package.json +7 -7
|
@@ -147,18 +147,18 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
147
147
|
}>>>;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
149
|
content: string | Record<string, any>;
|
|
150
|
-
encoding: "application/json" | "
|
|
150
|
+
encoding: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary";
|
|
151
151
|
file?: {
|
|
152
152
|
url: string;
|
|
153
153
|
base64?: string | undefined;
|
|
154
154
|
} | null | undefined;
|
|
155
155
|
}, {
|
|
156
156
|
content: string | Record<string, any>;
|
|
157
|
+
encoding?: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary" | undefined;
|
|
157
158
|
file?: {
|
|
158
159
|
url: string;
|
|
159
160
|
base64?: string | undefined;
|
|
160
161
|
} | null | undefined;
|
|
161
|
-
encoding?: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary" | undefined;
|
|
162
162
|
}>>;
|
|
163
163
|
parameters: z.ZodObject<{
|
|
164
164
|
path: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -186,7 +186,7 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
186
186
|
name?: string | undefined;
|
|
187
187
|
body?: {
|
|
188
188
|
content: string | Record<string, any>;
|
|
189
|
-
encoding: "application/json" | "
|
|
189
|
+
encoding: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary";
|
|
190
190
|
file?: {
|
|
191
191
|
url: string;
|
|
192
192
|
base64?: string | undefined;
|
|
@@ -202,13 +202,16 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
202
202
|
name?: string | undefined;
|
|
203
203
|
body?: {
|
|
204
204
|
content: string | Record<string, any>;
|
|
205
|
+
encoding?: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary" | undefined;
|
|
205
206
|
file?: {
|
|
206
207
|
url: string;
|
|
207
208
|
base64?: string | undefined;
|
|
208
209
|
} | null | undefined;
|
|
209
|
-
encoding?: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary" | undefined;
|
|
210
210
|
} | undefined;
|
|
211
211
|
}>>>;
|
|
212
|
+
/** Hide operations */
|
|
213
|
+
'x-internal': z.ZodOptional<z.ZodBoolean>;
|
|
214
|
+
'x-scalar-ignore': z.ZodOptional<z.ZodBoolean>;
|
|
212
215
|
}, "strip", z.ZodTypeAny, {
|
|
213
216
|
description?: string | undefined;
|
|
214
217
|
summary?: string | undefined;
|
|
@@ -216,6 +219,8 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
216
219
|
url: string;
|
|
217
220
|
description?: string | undefined;
|
|
218
221
|
} | undefined;
|
|
222
|
+
'x-internal'?: boolean | undefined;
|
|
223
|
+
'x-scalar-ignore'?: boolean | undefined;
|
|
219
224
|
security?: Record<string, string[]>[] | undefined;
|
|
220
225
|
tags?: string[] | undefined;
|
|
221
226
|
deprecated?: boolean | undefined;
|
|
@@ -247,7 +252,7 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
247
252
|
name?: string | undefined;
|
|
248
253
|
body?: {
|
|
249
254
|
content: string | Record<string, any>;
|
|
250
|
-
encoding: "application/json" | "
|
|
255
|
+
encoding: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary";
|
|
251
256
|
file?: {
|
|
252
257
|
url: string;
|
|
253
258
|
base64?: string | undefined;
|
|
@@ -261,6 +266,8 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
261
266
|
description?: string | undefined;
|
|
262
267
|
url?: string | undefined;
|
|
263
268
|
} | undefined;
|
|
269
|
+
'x-internal'?: boolean | undefined;
|
|
270
|
+
'x-scalar-ignore'?: boolean | undefined;
|
|
264
271
|
security?: Record<string, string[] | undefined>[] | undefined;
|
|
265
272
|
tags?: string[] | undefined;
|
|
266
273
|
deprecated?: boolean | undefined;
|
|
@@ -292,11 +299,11 @@ export declare const oasRequestSchema: z.ZodObject<{
|
|
|
292
299
|
name?: string | undefined;
|
|
293
300
|
body?: {
|
|
294
301
|
content: string | Record<string, any>;
|
|
302
|
+
encoding?: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary" | undefined;
|
|
295
303
|
file?: {
|
|
296
304
|
url: string;
|
|
297
305
|
base64?: string | undefined;
|
|
298
306
|
} | null | undefined;
|
|
299
|
-
encoding?: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary" | undefined;
|
|
300
307
|
} | undefined;
|
|
301
308
|
}> | undefined;
|
|
302
309
|
}>;
|
|
@@ -420,18 +427,18 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
420
427
|
}>>>;
|
|
421
428
|
}, "strip", z.ZodTypeAny, {
|
|
422
429
|
content: string | Record<string, any>;
|
|
423
|
-
encoding: "application/json" | "
|
|
430
|
+
encoding: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary";
|
|
424
431
|
file?: {
|
|
425
432
|
url: string;
|
|
426
433
|
base64?: string | undefined;
|
|
427
434
|
} | null | undefined;
|
|
428
435
|
}, {
|
|
429
436
|
content: string | Record<string, any>;
|
|
437
|
+
encoding?: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary" | undefined;
|
|
430
438
|
file?: {
|
|
431
439
|
url: string;
|
|
432
440
|
base64?: string | undefined;
|
|
433
441
|
} | null | undefined;
|
|
434
|
-
encoding?: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary" | undefined;
|
|
435
442
|
}>>;
|
|
436
443
|
parameters: z.ZodObject<{
|
|
437
444
|
path: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -459,7 +466,7 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
459
466
|
name?: string | undefined;
|
|
460
467
|
body?: {
|
|
461
468
|
content: string | Record<string, any>;
|
|
462
|
-
encoding: "application/json" | "
|
|
469
|
+
encoding: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary";
|
|
463
470
|
file?: {
|
|
464
471
|
url: string;
|
|
465
472
|
base64?: string | undefined;
|
|
@@ -475,13 +482,16 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
475
482
|
name?: string | undefined;
|
|
476
483
|
body?: {
|
|
477
484
|
content: string | Record<string, any>;
|
|
485
|
+
encoding?: "application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary" | undefined;
|
|
478
486
|
file?: {
|
|
479
487
|
url: string;
|
|
480
488
|
base64?: string | undefined;
|
|
481
489
|
} | null | undefined;
|
|
482
|
-
encoding?: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "application/xml" | "multipart/form-data" | "text/plain" | "text/html" | "application/javascript" | "application/yaml" | "application/edn" | "binary" | undefined;
|
|
483
490
|
} | undefined;
|
|
484
491
|
}>>>;
|
|
492
|
+
/** Hide operations */
|
|
493
|
+
'x-internal': z.ZodOptional<z.ZodBoolean>;
|
|
494
|
+
'x-scalar-ignore': z.ZodOptional<z.ZodBoolean>;
|
|
485
495
|
}, "x-scalar-examples">, {
|
|
486
496
|
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"request">>>;
|
|
487
497
|
uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -512,6 +522,8 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
512
522
|
url: string;
|
|
513
523
|
description?: string | undefined;
|
|
514
524
|
} | undefined;
|
|
525
|
+
'x-internal'?: boolean | undefined;
|
|
526
|
+
'x-scalar-ignore'?: boolean | undefined;
|
|
515
527
|
security?: Record<string, string[]>[] | undefined;
|
|
516
528
|
tags?: string[] | undefined;
|
|
517
529
|
deprecated?: boolean | undefined;
|
|
@@ -543,6 +555,8 @@ export declare const requestSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
543
555
|
description?: string | undefined;
|
|
544
556
|
url?: string | undefined;
|
|
545
557
|
} | undefined;
|
|
558
|
+
'x-internal'?: boolean | undefined;
|
|
559
|
+
'x-scalar-ignore'?: boolean | undefined;
|
|
546
560
|
security?: Record<string, string[] | undefined>[] | undefined;
|
|
547
561
|
selectedSecuritySchemeUids?: (string | undefined)[] | undefined;
|
|
548
562
|
selectedServerUid?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/requests.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvC,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,oBAAoB,CAAA;AAI9E,eAAO,MAAM,cAAc,2FAUjB,CAAA;AAEV,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,iEAA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AEH;;;;;OAKG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;OAEG;;;;;;;;;;;;IAGH,uBAAuB;;IAEvB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEvB,sBAAsB;;;;;;IAetB,eAAe;;IAEf,qBAAqB;;IAErB,kDAAkD;;IAElD,oCAAoC;;IAEpC,uDAAuD;;IAEvD,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlC,CAAA;AAE/B,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"}
|
|
@@ -64,6 +64,9 @@ const oasRequestSchema = z.object({
|
|
|
64
64
|
'responses': z.record(z.string(), z.any()).optional(),
|
|
65
65
|
/** xScalar examples */
|
|
66
66
|
'x-scalar-examples': z.record(z.string(), xScalarExampleSchema).optional(),
|
|
67
|
+
/** Hide operations */
|
|
68
|
+
'x-internal': z.boolean().optional(),
|
|
69
|
+
'x-scalar-ignore': z.boolean().optional(),
|
|
67
70
|
});
|
|
68
71
|
/**
|
|
69
72
|
* Extended properties added to the spec definition for client usage
|
|
@@ -200,6 +200,9 @@ export declare const oasTagSchema: z.ZodObject<{
|
|
|
200
200
|
}, {
|
|
201
201
|
tagName: string;
|
|
202
202
|
}>, "many">>>;
|
|
203
|
+
/** Hide collections */
|
|
204
|
+
'x-internal': z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
'x-scalar-ignore': z.ZodOptional<z.ZodBoolean>;
|
|
203
206
|
}, "strip", z.ZodTypeAny, {
|
|
204
207
|
type: "tag";
|
|
205
208
|
name: string;
|
|
@@ -211,6 +214,8 @@ export declare const oasTagSchema: z.ZodObject<{
|
|
|
211
214
|
'x-scalar-children'?: {
|
|
212
215
|
tagName: string;
|
|
213
216
|
}[] | undefined;
|
|
217
|
+
'x-internal'?: boolean | undefined;
|
|
218
|
+
'x-scalar-ignore'?: boolean | undefined;
|
|
214
219
|
}, {
|
|
215
220
|
name: string;
|
|
216
221
|
type?: "tag" | undefined;
|
|
@@ -222,6 +227,8 @@ export declare const oasTagSchema: z.ZodObject<{
|
|
|
222
227
|
'x-scalar-children'?: {
|
|
223
228
|
tagName: string;
|
|
224
229
|
}[] | undefined;
|
|
230
|
+
'x-internal'?: boolean | undefined;
|
|
231
|
+
'x-scalar-ignore'?: boolean | undefined;
|
|
225
232
|
}>;
|
|
226
233
|
export declare const tagSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
227
234
|
/**
|
|
@@ -254,6 +261,9 @@ export declare const tagSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
254
261
|
}, {
|
|
255
262
|
tagName: string;
|
|
256
263
|
}>, "many">>>;
|
|
264
|
+
/** Hide collections */
|
|
265
|
+
'x-internal': z.ZodOptional<z.ZodBoolean>;
|
|
266
|
+
'x-scalar-ignore': z.ZodOptional<z.ZodBoolean>;
|
|
257
267
|
}, {
|
|
258
268
|
uid: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
259
269
|
children: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodString>>, "many">>;
|
|
@@ -270,6 +280,8 @@ export declare const tagSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
270
280
|
'x-scalar-children'?: {
|
|
271
281
|
tagName: string;
|
|
272
282
|
}[] | undefined;
|
|
283
|
+
'x-internal'?: boolean | undefined;
|
|
284
|
+
'x-scalar-ignore'?: boolean | undefined;
|
|
273
285
|
}, {
|
|
274
286
|
name: string;
|
|
275
287
|
type?: "tag" | undefined;
|
|
@@ -282,6 +294,8 @@ export declare const tagSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
282
294
|
'x-scalar-children'?: {
|
|
283
295
|
tagName: string;
|
|
284
296
|
}[] | undefined;
|
|
297
|
+
'x-internal'?: boolean | undefined;
|
|
298
|
+
'x-scalar-ignore'?: boolean | undefined;
|
|
285
299
|
children?: (string | undefined)[] | undefined;
|
|
286
300
|
}>;
|
|
287
301
|
export type Tag = z.infer<typeof tagSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-objects.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/spec-objects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;IAC3B,mDAAmD;;IAEnD,2GAA2G;;IAE3G;;;OAGG;;;;;;;;;;EAEH,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;IAC3B,+DAA+D;;IAE/D,sFAAsF;;IAEtF,0GAA0G;;;;;;;;;;EAE1G,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;IACxB,sCAAsC;;IAEtC,kCAAkC;;IAElC,4FAA4F;;IAE5F,oFAAoF;;IAEpF,mDAAmD;;QAxBnD,+DAA+D;;QAE/D,sFAAsF;;QAEtF,0GAA0G;;;;;;;;;;;IAsB1G,mDAAmD;;QA5CnD,mDAAmD;;QAEnD,2GAA2G;;QAE3G;;;WAGG;;;;;;;;;;;IAuCH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B;IACzC,6GAA6G;;IAE7G,yFAAyF;;;;;;;;EAEzF,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,8BAA8B,CACtC,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;WAItB,CAAA;AAEV;;;;;;GA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;;;;;;;;;;;;;;;;;;;EAGvB,CAAA;AAEF,eAAO,MAAM,SAAS;IAlBpB;;;;OAIG;;IAEH,qCAAqC;;IAErC,6FAA6F;;IAE7F,sDAAsD;;QAjCtD,6GAA6G;;QAE7G,yFAAyF;;;;;;;;;;;;;;;;IAkCzF,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvB,CAAA;AAEF,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAC3C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA"}
|
|
@@ -95,6 +95,9 @@ const oasTagSchema = z.object({
|
|
|
95
95
|
/** Additional external documentation for this tag. */
|
|
96
96
|
'externalDocs': oasExternalDocumentationSchema.optional(),
|
|
97
97
|
'x-scalar-children': xScalarNestedSchema.default([]).optional(),
|
|
98
|
+
/** Hide collections */
|
|
99
|
+
'x-internal': z.boolean().optional(),
|
|
100
|
+
'x-scalar-ignore': z.boolean().optional(),
|
|
98
101
|
});
|
|
99
102
|
const tagSchema = oasTagSchema.extend({
|
|
100
103
|
uid: nanoidSchema,
|
|
@@ -3,12 +3,12 @@ declare const modifiers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDefault<z.Zo
|
|
|
3
3
|
export type HotKeyModifiers = z.infer<typeof modifiers>;
|
|
4
4
|
declare const hotKeys: z.ZodRecord<z.ZodEnum<["Space", "Backspace", "Tab", "Enter", "Escape", "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp", "End", "Home", "PageDown", "PageUp", "Delete", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "-", ".", "/", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", ";", "=", ",", "-", ".", "/", "`", "[", "\\", "]", ""]>, z.ZodObject<{
|
|
5
5
|
modifiers: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodEnum<["Meta", "Control", "Shift", "Alt", "default"]>>>, "many">>>>;
|
|
6
|
-
event: z.ZodEnum<["closeModal", "
|
|
6
|
+
event: z.ZodEnum<["addTopNav", "closeModal", "closeTopNav", "createNew", "executeRequest", "focusAddressBar", "focusRequestSearch", "jumpToLastTab", "jumpToTab", "navigateSearchResultsDown", "navigateSearchResultsUp", "navigateTopNavLeft", "navigateTopNavRight", "openCommandPalette", "selectSearchResult", "toggleSidebar"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
event: "closeModal" | "
|
|
8
|
+
event: "addTopNav" | "closeModal" | "closeTopNav" | "createNew" | "executeRequest" | "focusAddressBar" | "focusRequestSearch" | "jumpToLastTab" | "jumpToTab" | "navigateSearchResultsDown" | "navigateSearchResultsUp" | "navigateTopNavLeft" | "navigateTopNavRight" | "openCommandPalette" | "selectSearchResult" | "toggleSidebar";
|
|
9
9
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
|
|
10
10
|
}, {
|
|
11
|
-
event: "closeModal" | "
|
|
11
|
+
event: "addTopNav" | "closeModal" | "closeTopNav" | "createNew" | "executeRequest" | "focusAddressBar" | "focusRequestSearch" | "jumpToLastTab" | "jumpToTab" | "navigateSearchResultsDown" | "navigateSearchResultsUp" | "navigateTopNavLeft" | "navigateTopNavRight" | "openCommandPalette" | "selectSearchResult" | "toggleSidebar";
|
|
12
12
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default" | undefined)[] | undefined;
|
|
13
13
|
}>>;
|
|
14
14
|
export type HotKeyConfig = z.infer<typeof hotKeys>;
|
|
@@ -26,24 +26,24 @@ export declare const workspaceSchema: z.ZodObject<{
|
|
|
26
26
|
modifiers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodEnum<["Meta", "Control", "Shift", "Alt", "default"]>>>, "many">>>;
|
|
27
27
|
hotKeys: z.ZodOptional<z.ZodRecord<z.ZodEnum<["Space", "Backspace", "Tab", "Enter", "Escape", "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp", "End", "Home", "PageDown", "PageUp", "Delete", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "-", ".", "/", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", ";", "=", ",", "-", ".", "/", "`", "[", "\\", "]", ""]>, z.ZodObject<{
|
|
28
28
|
modifiers: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDefault<z.ZodOptional<z.ZodEnum<["Meta", "Control", "Shift", "Alt", "default"]>>>, "many">>>>;
|
|
29
|
-
event: z.ZodEnum<["closeModal", "
|
|
29
|
+
event: z.ZodEnum<["addTopNav", "closeModal", "closeTopNav", "createNew", "executeRequest", "focusAddressBar", "focusRequestSearch", "jumpToLastTab", "jumpToTab", "navigateSearchResultsDown", "navigateSearchResultsUp", "navigateTopNavLeft", "navigateTopNavRight", "openCommandPalette", "selectSearchResult", "toggleSidebar"]>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
event: "closeModal" | "
|
|
31
|
+
event: "addTopNav" | "closeModal" | "closeTopNav" | "createNew" | "executeRequest" | "focusAddressBar" | "focusRequestSearch" | "jumpToLastTab" | "jumpToTab" | "navigateSearchResultsDown" | "navigateSearchResultsUp" | "navigateTopNavLeft" | "navigateTopNavRight" | "openCommandPalette" | "selectSearchResult" | "toggleSidebar";
|
|
32
32
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
|
|
33
33
|
}, {
|
|
34
|
-
event: "closeModal" | "
|
|
34
|
+
event: "addTopNav" | "closeModal" | "closeTopNav" | "createNew" | "executeRequest" | "focusAddressBar" | "focusRequestSearch" | "jumpToLastTab" | "jumpToTab" | "navigateSearchResultsDown" | "navigateSearchResultsUp" | "navigateTopNavLeft" | "navigateTopNavRight" | "openCommandPalette" | "selectSearchResult" | "toggleSidebar";
|
|
35
35
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default" | undefined)[] | undefined;
|
|
36
36
|
}>>>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
|
|
39
39
|
hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
|
|
40
|
-
event: "closeModal" | "
|
|
40
|
+
event: "addTopNav" | "closeModal" | "closeTopNav" | "createNew" | "executeRequest" | "focusAddressBar" | "focusRequestSearch" | "jumpToLastTab" | "jumpToTab" | "navigateSearchResultsDown" | "navigateSearchResultsUp" | "navigateTopNavLeft" | "navigateTopNavRight" | "openCommandPalette" | "selectSearchResult" | "toggleSidebar";
|
|
41
41
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
|
|
42
42
|
}>> | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default" | undefined)[] | undefined;
|
|
45
45
|
hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
|
|
46
|
-
event: "closeModal" | "
|
|
46
|
+
event: "addTopNav" | "closeModal" | "closeTopNav" | "createNew" | "executeRequest" | "focusAddressBar" | "focusRequestSearch" | "jumpToLastTab" | "jumpToTab" | "navigateSearchResultsDown" | "navigateSearchResultsUp" | "navigateTopNavLeft" | "navigateTopNavRight" | "openCommandPalette" | "selectSearchResult" | "toggleSidebar";
|
|
47
47
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default" | undefined)[] | undefined;
|
|
48
48
|
}>> | undefined;
|
|
49
49
|
}>>;
|
|
@@ -67,7 +67,7 @@ export declare const workspaceSchema: z.ZodObject<{
|
|
|
67
67
|
hotKeyConfig?: {
|
|
68
68
|
modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
|
|
69
69
|
hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
|
|
70
|
-
event: "closeModal" | "
|
|
70
|
+
event: "addTopNav" | "closeModal" | "closeTopNav" | "createNew" | "executeRequest" | "focusAddressBar" | "focusRequestSearch" | "jumpToLastTab" | "jumpToTab" | "navigateSearchResultsDown" | "navigateSearchResultsUp" | "navigateTopNavLeft" | "navigateTopNavRight" | "openCommandPalette" | "selectSearchResult" | "toggleSidebar";
|
|
71
71
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
|
|
72
72
|
}>> | undefined;
|
|
73
73
|
} | undefined;
|
|
@@ -81,7 +81,7 @@ export declare const workspaceSchema: z.ZodObject<{
|
|
|
81
81
|
hotKeyConfig?: {
|
|
82
82
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default" | undefined)[] | undefined;
|
|
83
83
|
hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
|
|
84
|
-
event: "closeModal" | "
|
|
84
|
+
event: "addTopNav" | "closeModal" | "closeTopNav" | "createNew" | "executeRequest" | "focusAddressBar" | "focusRequestSearch" | "jumpToLastTab" | "jumpToTab" | "navigateSearchResultsDown" | "navigateSearchResultsUp" | "navigateTopNavLeft" | "navigateTopNavRight" | "openCommandPalette" | "selectSearchResult" | "toggleSidebar";
|
|
85
85
|
modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default" | undefined)[] | undefined;
|
|
86
86
|
}>> | undefined;
|
|
87
87
|
} | undefined;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { isDefined } from './is-defined.js';
|
|
2
|
+
export { shouldIgnoreEntity } from './shouldIgnoreEntity.js';
|
|
1
3
|
export * from './concatenateUrlAndPath.js';
|
|
2
4
|
export * from './createHash.js';
|
|
3
5
|
export * from './fetchSpecFromUrl.js';
|
|
@@ -6,7 +8,6 @@ export * from './findVariables.js';
|
|
|
6
8
|
export * from './httpMethods.js';
|
|
7
9
|
export * from './httpStatusCodes.js';
|
|
8
10
|
export * from './isLocalUrl.js';
|
|
9
|
-
export { isDefined } from './is-defined.js';
|
|
10
11
|
export * from './isValidUrl.js';
|
|
11
12
|
export * from './iterateTitle.js';
|
|
12
13
|
export * from './local-storage.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { isDefined } from './is-defined.js';
|
|
2
|
+
export { shouldIgnoreEntity } from './shouldIgnoreEntity.js';
|
|
1
3
|
export { concatenateUrlAndPath } from './concatenateUrlAndPath.js';
|
|
2
4
|
export { createHash } from './createHash.js';
|
|
3
5
|
export { fetchSpecFromUrl } from './fetchSpecFromUrl.js';
|
|
@@ -6,7 +8,6 @@ export { findVariables } from './findVariables.js';
|
|
|
6
8
|
export { REQUEST_METHODS, canMethodHaveBody, getHttpMethodInfo, isHttpMethod } from './httpMethods.js';
|
|
7
9
|
export { httpStatusCodes } from './httpStatusCodes.js';
|
|
8
10
|
export { isLocalUrl } from './isLocalUrl.js';
|
|
9
|
-
export { isDefined } from './is-defined.js';
|
|
10
11
|
export { isValidUrl } from './isValidUrl.js';
|
|
11
12
|
export { iterateTitle } from './iterateTitle.js';
|
|
12
13
|
export { LS_KEYS } from './local-storage.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Request, Tag } from '../entities/spec/index.js';
|
|
2
|
+
import type { Webhook } from '@scalar/types/legacy';
|
|
3
|
+
/**
|
|
4
|
+
* Check if an entity should be ignored
|
|
5
|
+
*/
|
|
6
|
+
export declare const shouldIgnoreEntity: (data: undefined | Pick<Tag, "x-internal" | "x-scalar-ignore"> | Pick<Request, "x-internal" | "x-scalar-ignore"> | Pick<Webhook, "x-internal" | "x-scalar-ignore">) => boolean;
|
|
7
|
+
//# sourceMappingURL=shouldIgnoreEntity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shouldIgnoreEntity.d.ts","sourceRoot":"","sources":["../../src/helpers/shouldIgnoreEntity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEnD;;GAEG;AACH,eAAO,MAAM,kBAAkB,SAEzB,SAAS,GACT,IAAI,CAAC,GAAG,EAAE,YAAY,GAAG,iBAAiB,CAAC,GAC3C,IAAI,CAAC,OAAO,EAAE,YAAY,GAAG,iBAAiB,CAAC,GAC/C,IAAI,CAAC,OAAO,EAAE,YAAY,GAAG,iBAAiB,CAAC,YAGpD,CAAA"}
|