@scalar/types 0.2.8 → 0.2.9
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
CHANGED
|
@@ -132,6 +132,8 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
132
132
|
token: z.ZodDefault<z.ZodString>;
|
|
133
133
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
134
134
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
135
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
136
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
135
137
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
136
138
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
137
139
|
}, {
|
|
@@ -148,6 +150,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
148
150
|
authorizationUrl: string;
|
|
149
151
|
'x-scalar-redirect-uri': string;
|
|
150
152
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
153
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
151
154
|
'x-tokenName'?: string | undefined;
|
|
152
155
|
}, {
|
|
153
156
|
type?: "implicit" | undefined;
|
|
@@ -157,6 +160,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
157
160
|
selectedScopes?: string[] | undefined;
|
|
158
161
|
'x-scalar-client-id'?: string | undefined;
|
|
159
162
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
163
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
160
164
|
'x-tokenName'?: string | undefined;
|
|
161
165
|
authorizationUrl?: string | undefined;
|
|
162
166
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -179,6 +183,8 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
179
183
|
token: z.ZodDefault<z.ZodString>;
|
|
180
184
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
181
185
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
186
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
187
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
182
188
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
183
189
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
184
190
|
}, {
|
|
@@ -199,6 +205,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
199
205
|
tokenUrl: string;
|
|
200
206
|
clientSecret: string;
|
|
201
207
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
208
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
202
209
|
'x-tokenName'?: string | undefined;
|
|
203
210
|
}, {
|
|
204
211
|
type?: "password" | undefined;
|
|
@@ -210,6 +217,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
210
217
|
selectedScopes?: string[] | undefined;
|
|
211
218
|
'x-scalar-client-id'?: string | undefined;
|
|
212
219
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
220
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
213
221
|
'x-tokenName'?: string | undefined;
|
|
214
222
|
tokenUrl?: string | undefined;
|
|
215
223
|
clientSecret?: string | undefined;
|
|
@@ -232,6 +240,8 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
232
240
|
token: z.ZodDefault<z.ZodString>;
|
|
233
241
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
234
242
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
243
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
244
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
235
245
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
236
246
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
237
247
|
}, {
|
|
@@ -248,6 +258,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
248
258
|
tokenUrl: string;
|
|
249
259
|
clientSecret: string;
|
|
250
260
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
261
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
251
262
|
'x-tokenName'?: string | undefined;
|
|
252
263
|
}, {
|
|
253
264
|
type?: "clientCredentials" | undefined;
|
|
@@ -257,6 +268,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
257
268
|
selectedScopes?: string[] | undefined;
|
|
258
269
|
'x-scalar-client-id'?: string | undefined;
|
|
259
270
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
271
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
260
272
|
'x-tokenName'?: string | undefined;
|
|
261
273
|
tokenUrl?: string | undefined;
|
|
262
274
|
clientSecret?: string | undefined;
|
|
@@ -279,6 +291,8 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
279
291
|
token: z.ZodDefault<z.ZodString>;
|
|
280
292
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
281
293
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
294
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
295
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
282
296
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
283
297
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
284
298
|
}, {
|
|
@@ -301,6 +315,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
301
315
|
clientSecret: string;
|
|
302
316
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
303
317
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
318
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
304
319
|
'x-tokenName'?: string | undefined;
|
|
305
320
|
}, {
|
|
306
321
|
type?: "authorizationCode" | undefined;
|
|
@@ -310,6 +325,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
310
325
|
selectedScopes?: string[] | undefined;
|
|
311
326
|
'x-scalar-client-id'?: string | undefined;
|
|
312
327
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
328
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
313
329
|
'x-tokenName'?: string | undefined;
|
|
314
330
|
authorizationUrl?: string | undefined;
|
|
315
331
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -330,6 +346,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
330
346
|
tokenUrl: string;
|
|
331
347
|
clientSecret: string;
|
|
332
348
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
349
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
333
350
|
'x-tokenName'?: string | undefined;
|
|
334
351
|
} | undefined;
|
|
335
352
|
implicit?: {
|
|
@@ -342,6 +359,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
342
359
|
authorizationUrl: string;
|
|
343
360
|
'x-scalar-redirect-uri': string;
|
|
344
361
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
362
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
345
363
|
'x-tokenName'?: string | undefined;
|
|
346
364
|
} | undefined;
|
|
347
365
|
clientCredentials?: {
|
|
@@ -354,6 +372,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
354
372
|
tokenUrl: string;
|
|
355
373
|
clientSecret: string;
|
|
356
374
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
375
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
357
376
|
'x-tokenName'?: string | undefined;
|
|
358
377
|
} | undefined;
|
|
359
378
|
authorizationCode?: {
|
|
@@ -369,6 +388,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
369
388
|
clientSecret: string;
|
|
370
389
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
371
390
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
391
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
372
392
|
'x-tokenName'?: string | undefined;
|
|
373
393
|
} | undefined;
|
|
374
394
|
}, {
|
|
@@ -382,6 +402,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
382
402
|
selectedScopes?: string[] | undefined;
|
|
383
403
|
'x-scalar-client-id'?: string | undefined;
|
|
384
404
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
405
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
385
406
|
'x-tokenName'?: string | undefined;
|
|
386
407
|
tokenUrl?: string | undefined;
|
|
387
408
|
clientSecret?: string | undefined;
|
|
@@ -394,6 +415,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
394
415
|
selectedScopes?: string[] | undefined;
|
|
395
416
|
'x-scalar-client-id'?: string | undefined;
|
|
396
417
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
418
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
397
419
|
'x-tokenName'?: string | undefined;
|
|
398
420
|
authorizationUrl?: string | undefined;
|
|
399
421
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -406,6 +428,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
406
428
|
selectedScopes?: string[] | undefined;
|
|
407
429
|
'x-scalar-client-id'?: string | undefined;
|
|
408
430
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
431
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
409
432
|
'x-tokenName'?: string | undefined;
|
|
410
433
|
tokenUrl?: string | undefined;
|
|
411
434
|
clientSecret?: string | undefined;
|
|
@@ -418,6 +441,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
418
441
|
selectedScopes?: string[] | undefined;
|
|
419
442
|
'x-scalar-client-id'?: string | undefined;
|
|
420
443
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
444
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
421
445
|
'x-tokenName'?: string | undefined;
|
|
422
446
|
authorizationUrl?: string | undefined;
|
|
423
447
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -447,6 +471,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
447
471
|
tokenUrl: string;
|
|
448
472
|
clientSecret: string;
|
|
449
473
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
474
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
450
475
|
'x-tokenName'?: string | undefined;
|
|
451
476
|
} | undefined;
|
|
452
477
|
implicit?: {
|
|
@@ -459,6 +484,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
459
484
|
authorizationUrl: string;
|
|
460
485
|
'x-scalar-redirect-uri': string;
|
|
461
486
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
487
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
462
488
|
'x-tokenName'?: string | undefined;
|
|
463
489
|
} | undefined;
|
|
464
490
|
clientCredentials?: {
|
|
@@ -471,6 +497,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
471
497
|
tokenUrl: string;
|
|
472
498
|
clientSecret: string;
|
|
473
499
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
500
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
474
501
|
'x-tokenName'?: string | undefined;
|
|
475
502
|
} | undefined;
|
|
476
503
|
authorizationCode?: {
|
|
@@ -486,6 +513,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
486
513
|
clientSecret: string;
|
|
487
514
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
488
515
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
516
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
489
517
|
'x-tokenName'?: string | undefined;
|
|
490
518
|
} | undefined;
|
|
491
519
|
};
|
|
@@ -508,6 +536,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
508
536
|
selectedScopes?: string[] | undefined;
|
|
509
537
|
'x-scalar-client-id'?: string | undefined;
|
|
510
538
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
539
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
511
540
|
'x-tokenName'?: string | undefined;
|
|
512
541
|
tokenUrl?: string | undefined;
|
|
513
542
|
clientSecret?: string | undefined;
|
|
@@ -520,6 +549,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
520
549
|
selectedScopes?: string[] | undefined;
|
|
521
550
|
'x-scalar-client-id'?: string | undefined;
|
|
522
551
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
552
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
523
553
|
'x-tokenName'?: string | undefined;
|
|
524
554
|
authorizationUrl?: string | undefined;
|
|
525
555
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -532,6 +562,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
532
562
|
selectedScopes?: string[] | undefined;
|
|
533
563
|
'x-scalar-client-id'?: string | undefined;
|
|
534
564
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
565
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
535
566
|
'x-tokenName'?: string | undefined;
|
|
536
567
|
tokenUrl?: string | undefined;
|
|
537
568
|
clientSecret?: string | undefined;
|
|
@@ -544,6 +575,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
544
575
|
selectedScopes?: string[] | undefined;
|
|
545
576
|
'x-scalar-client-id'?: string | undefined;
|
|
546
577
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
578
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
547
579
|
'x-tokenName'?: string | undefined;
|
|
548
580
|
authorizationUrl?: string | undefined;
|
|
549
581
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -639,6 +671,8 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
639
671
|
token: z.ZodDefault<z.ZodString>;
|
|
640
672
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
641
673
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
674
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
675
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
642
676
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
643
677
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
644
678
|
}, {
|
|
@@ -655,6 +689,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
655
689
|
authorizationUrl: string;
|
|
656
690
|
'x-scalar-redirect-uri': string;
|
|
657
691
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
692
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
658
693
|
'x-tokenName'?: string | undefined;
|
|
659
694
|
}, {
|
|
660
695
|
type?: "implicit" | undefined;
|
|
@@ -664,6 +699,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
664
699
|
selectedScopes?: string[] | undefined;
|
|
665
700
|
'x-scalar-client-id'?: string | undefined;
|
|
666
701
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
702
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
667
703
|
'x-tokenName'?: string | undefined;
|
|
668
704
|
authorizationUrl?: string | undefined;
|
|
669
705
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -686,6 +722,8 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
686
722
|
token: z.ZodDefault<z.ZodString>;
|
|
687
723
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
688
724
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
725
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
726
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
689
727
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
690
728
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
691
729
|
}, {
|
|
@@ -706,6 +744,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
706
744
|
tokenUrl: string;
|
|
707
745
|
clientSecret: string;
|
|
708
746
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
747
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
709
748
|
'x-tokenName'?: string | undefined;
|
|
710
749
|
}, {
|
|
711
750
|
type?: "password" | undefined;
|
|
@@ -717,6 +756,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
717
756
|
selectedScopes?: string[] | undefined;
|
|
718
757
|
'x-scalar-client-id'?: string | undefined;
|
|
719
758
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
759
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
720
760
|
'x-tokenName'?: string | undefined;
|
|
721
761
|
tokenUrl?: string | undefined;
|
|
722
762
|
clientSecret?: string | undefined;
|
|
@@ -739,6 +779,8 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
739
779
|
token: z.ZodDefault<z.ZodString>;
|
|
740
780
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
741
781
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
782
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
783
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
742
784
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
743
785
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
744
786
|
}, {
|
|
@@ -755,6 +797,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
755
797
|
tokenUrl: string;
|
|
756
798
|
clientSecret: string;
|
|
757
799
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
800
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
758
801
|
'x-tokenName'?: string | undefined;
|
|
759
802
|
}, {
|
|
760
803
|
type?: "clientCredentials" | undefined;
|
|
@@ -764,6 +807,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
764
807
|
selectedScopes?: string[] | undefined;
|
|
765
808
|
'x-scalar-client-id'?: string | undefined;
|
|
766
809
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
810
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
767
811
|
'x-tokenName'?: string | undefined;
|
|
768
812
|
tokenUrl?: string | undefined;
|
|
769
813
|
clientSecret?: string | undefined;
|
|
@@ -786,6 +830,8 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
786
830
|
token: z.ZodDefault<z.ZodString>;
|
|
787
831
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
788
832
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
833
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
834
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
789
835
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
790
836
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
791
837
|
}, {
|
|
@@ -808,6 +854,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
808
854
|
clientSecret: string;
|
|
809
855
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
810
856
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
857
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
811
858
|
'x-tokenName'?: string | undefined;
|
|
812
859
|
}, {
|
|
813
860
|
type?: "authorizationCode" | undefined;
|
|
@@ -817,6 +864,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
817
864
|
selectedScopes?: string[] | undefined;
|
|
818
865
|
'x-scalar-client-id'?: string | undefined;
|
|
819
866
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
867
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
820
868
|
'x-tokenName'?: string | undefined;
|
|
821
869
|
authorizationUrl?: string | undefined;
|
|
822
870
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -837,6 +885,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
837
885
|
tokenUrl: string;
|
|
838
886
|
clientSecret: string;
|
|
839
887
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
888
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
840
889
|
'x-tokenName'?: string | undefined;
|
|
841
890
|
} | undefined;
|
|
842
891
|
implicit?: {
|
|
@@ -849,6 +898,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
849
898
|
authorizationUrl: string;
|
|
850
899
|
'x-scalar-redirect-uri': string;
|
|
851
900
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
901
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
852
902
|
'x-tokenName'?: string | undefined;
|
|
853
903
|
} | undefined;
|
|
854
904
|
clientCredentials?: {
|
|
@@ -861,6 +911,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
861
911
|
tokenUrl: string;
|
|
862
912
|
clientSecret: string;
|
|
863
913
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
914
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
864
915
|
'x-tokenName'?: string | undefined;
|
|
865
916
|
} | undefined;
|
|
866
917
|
authorizationCode?: {
|
|
@@ -876,6 +927,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
876
927
|
clientSecret: string;
|
|
877
928
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
878
929
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
930
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
879
931
|
'x-tokenName'?: string | undefined;
|
|
880
932
|
} | undefined;
|
|
881
933
|
}, {
|
|
@@ -889,6 +941,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
889
941
|
selectedScopes?: string[] | undefined;
|
|
890
942
|
'x-scalar-client-id'?: string | undefined;
|
|
891
943
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
944
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
892
945
|
'x-tokenName'?: string | undefined;
|
|
893
946
|
tokenUrl?: string | undefined;
|
|
894
947
|
clientSecret?: string | undefined;
|
|
@@ -901,6 +954,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
901
954
|
selectedScopes?: string[] | undefined;
|
|
902
955
|
'x-scalar-client-id'?: string | undefined;
|
|
903
956
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
957
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
904
958
|
'x-tokenName'?: string | undefined;
|
|
905
959
|
authorizationUrl?: string | undefined;
|
|
906
960
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -913,6 +967,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
913
967
|
selectedScopes?: string[] | undefined;
|
|
914
968
|
'x-scalar-client-id'?: string | undefined;
|
|
915
969
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
970
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
916
971
|
'x-tokenName'?: string | undefined;
|
|
917
972
|
tokenUrl?: string | undefined;
|
|
918
973
|
clientSecret?: string | undefined;
|
|
@@ -925,6 +980,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
925
980
|
selectedScopes?: string[] | undefined;
|
|
926
981
|
'x-scalar-client-id'?: string | undefined;
|
|
927
982
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
983
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
928
984
|
'x-tokenName'?: string | undefined;
|
|
929
985
|
authorizationUrl?: string | undefined;
|
|
930
986
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -948,6 +1004,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
948
1004
|
tokenUrl: string;
|
|
949
1005
|
clientSecret: string;
|
|
950
1006
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1007
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
951
1008
|
'x-tokenName'?: string | undefined;
|
|
952
1009
|
} | undefined;
|
|
953
1010
|
implicit?: {
|
|
@@ -960,6 +1017,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
960
1017
|
authorizationUrl: string;
|
|
961
1018
|
'x-scalar-redirect-uri': string;
|
|
962
1019
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1020
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
963
1021
|
'x-tokenName'?: string | undefined;
|
|
964
1022
|
} | undefined;
|
|
965
1023
|
clientCredentials?: {
|
|
@@ -972,6 +1030,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
972
1030
|
tokenUrl: string;
|
|
973
1031
|
clientSecret: string;
|
|
974
1032
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1033
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
975
1034
|
'x-tokenName'?: string | undefined;
|
|
976
1035
|
} | undefined;
|
|
977
1036
|
authorizationCode?: {
|
|
@@ -987,6 +1046,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
987
1046
|
clientSecret: string;
|
|
988
1047
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
989
1048
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1049
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
990
1050
|
'x-tokenName'?: string | undefined;
|
|
991
1051
|
} | undefined;
|
|
992
1052
|
};
|
|
@@ -1007,6 +1067,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
1007
1067
|
selectedScopes?: string[] | undefined;
|
|
1008
1068
|
'x-scalar-client-id'?: string | undefined;
|
|
1009
1069
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1070
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1010
1071
|
'x-tokenName'?: string | undefined;
|
|
1011
1072
|
tokenUrl?: string | undefined;
|
|
1012
1073
|
clientSecret?: string | undefined;
|
|
@@ -1019,6 +1080,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
1019
1080
|
selectedScopes?: string[] | undefined;
|
|
1020
1081
|
'x-scalar-client-id'?: string | undefined;
|
|
1021
1082
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1083
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1022
1084
|
'x-tokenName'?: string | undefined;
|
|
1023
1085
|
authorizationUrl?: string | undefined;
|
|
1024
1086
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1031,6 +1093,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
1031
1093
|
selectedScopes?: string[] | undefined;
|
|
1032
1094
|
'x-scalar-client-id'?: string | undefined;
|
|
1033
1095
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1096
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1034
1097
|
'x-tokenName'?: string | undefined;
|
|
1035
1098
|
tokenUrl?: string | undefined;
|
|
1036
1099
|
clientSecret?: string | undefined;
|
|
@@ -1043,6 +1106,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
1043
1106
|
selectedScopes?: string[] | undefined;
|
|
1044
1107
|
'x-scalar-client-id'?: string | undefined;
|
|
1045
1108
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1109
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1046
1110
|
'x-tokenName'?: string | undefined;
|
|
1047
1111
|
authorizationUrl?: string | undefined;
|
|
1048
1112
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1194,6 +1258,8 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1194
1258
|
token: z.ZodDefault<z.ZodString>;
|
|
1195
1259
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
1196
1260
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1261
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
1262
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1197
1263
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
1198
1264
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
1199
1265
|
}, {
|
|
@@ -1210,6 +1276,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1210
1276
|
authorizationUrl: string;
|
|
1211
1277
|
'x-scalar-redirect-uri': string;
|
|
1212
1278
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1279
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1213
1280
|
'x-tokenName'?: string | undefined;
|
|
1214
1281
|
}, {
|
|
1215
1282
|
type?: "implicit" | undefined;
|
|
@@ -1219,6 +1286,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1219
1286
|
selectedScopes?: string[] | undefined;
|
|
1220
1287
|
'x-scalar-client-id'?: string | undefined;
|
|
1221
1288
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1289
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1222
1290
|
'x-tokenName'?: string | undefined;
|
|
1223
1291
|
authorizationUrl?: string | undefined;
|
|
1224
1292
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1241,6 +1309,8 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1241
1309
|
token: z.ZodDefault<z.ZodString>;
|
|
1242
1310
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
1243
1311
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1312
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
1313
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1244
1314
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
1245
1315
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
1246
1316
|
}, {
|
|
@@ -1261,6 +1331,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1261
1331
|
tokenUrl: string;
|
|
1262
1332
|
clientSecret: string;
|
|
1263
1333
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1334
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1264
1335
|
'x-tokenName'?: string | undefined;
|
|
1265
1336
|
}, {
|
|
1266
1337
|
type?: "password" | undefined;
|
|
@@ -1272,6 +1343,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1272
1343
|
selectedScopes?: string[] | undefined;
|
|
1273
1344
|
'x-scalar-client-id'?: string | undefined;
|
|
1274
1345
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1346
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1275
1347
|
'x-tokenName'?: string | undefined;
|
|
1276
1348
|
tokenUrl?: string | undefined;
|
|
1277
1349
|
clientSecret?: string | undefined;
|
|
@@ -1294,6 +1366,8 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1294
1366
|
token: z.ZodDefault<z.ZodString>;
|
|
1295
1367
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
1296
1368
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1369
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
1370
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1297
1371
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
1298
1372
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
1299
1373
|
}, {
|
|
@@ -1310,6 +1384,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1310
1384
|
tokenUrl: string;
|
|
1311
1385
|
clientSecret: string;
|
|
1312
1386
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1387
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1313
1388
|
'x-tokenName'?: string | undefined;
|
|
1314
1389
|
}, {
|
|
1315
1390
|
type?: "clientCredentials" | undefined;
|
|
@@ -1319,6 +1394,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1319
1394
|
selectedScopes?: string[] | undefined;
|
|
1320
1395
|
'x-scalar-client-id'?: string | undefined;
|
|
1321
1396
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1397
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1322
1398
|
'x-tokenName'?: string | undefined;
|
|
1323
1399
|
tokenUrl?: string | undefined;
|
|
1324
1400
|
clientSecret?: string | undefined;
|
|
@@ -1341,6 +1417,8 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1341
1417
|
token: z.ZodDefault<z.ZodString>;
|
|
1342
1418
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
1343
1419
|
'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1420
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
1421
|
+
'x-scalar-security-body': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1344
1422
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
1345
1423
|
'x-tokenName': z.ZodOptional<z.ZodString>;
|
|
1346
1424
|
}, {
|
|
@@ -1363,6 +1441,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1363
1441
|
clientSecret: string;
|
|
1364
1442
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
1365
1443
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1444
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1366
1445
|
'x-tokenName'?: string | undefined;
|
|
1367
1446
|
}, {
|
|
1368
1447
|
type?: "authorizationCode" | undefined;
|
|
@@ -1372,6 +1451,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1372
1451
|
selectedScopes?: string[] | undefined;
|
|
1373
1452
|
'x-scalar-client-id'?: string | undefined;
|
|
1374
1453
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1454
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1375
1455
|
'x-tokenName'?: string | undefined;
|
|
1376
1456
|
authorizationUrl?: string | undefined;
|
|
1377
1457
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1392,6 +1472,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1392
1472
|
tokenUrl: string;
|
|
1393
1473
|
clientSecret: string;
|
|
1394
1474
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1475
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1395
1476
|
'x-tokenName'?: string | undefined;
|
|
1396
1477
|
} | undefined;
|
|
1397
1478
|
implicit?: {
|
|
@@ -1404,6 +1485,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1404
1485
|
authorizationUrl: string;
|
|
1405
1486
|
'x-scalar-redirect-uri': string;
|
|
1406
1487
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1488
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1407
1489
|
'x-tokenName'?: string | undefined;
|
|
1408
1490
|
} | undefined;
|
|
1409
1491
|
clientCredentials?: {
|
|
@@ -1416,6 +1498,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1416
1498
|
tokenUrl: string;
|
|
1417
1499
|
clientSecret: string;
|
|
1418
1500
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1501
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1419
1502
|
'x-tokenName'?: string | undefined;
|
|
1420
1503
|
} | undefined;
|
|
1421
1504
|
authorizationCode?: {
|
|
@@ -1431,6 +1514,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1431
1514
|
clientSecret: string;
|
|
1432
1515
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
1433
1516
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1517
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1434
1518
|
'x-tokenName'?: string | undefined;
|
|
1435
1519
|
} | undefined;
|
|
1436
1520
|
}, {
|
|
@@ -1444,6 +1528,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1444
1528
|
selectedScopes?: string[] | undefined;
|
|
1445
1529
|
'x-scalar-client-id'?: string | undefined;
|
|
1446
1530
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1531
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1447
1532
|
'x-tokenName'?: string | undefined;
|
|
1448
1533
|
tokenUrl?: string | undefined;
|
|
1449
1534
|
clientSecret?: string | undefined;
|
|
@@ -1456,6 +1541,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1456
1541
|
selectedScopes?: string[] | undefined;
|
|
1457
1542
|
'x-scalar-client-id'?: string | undefined;
|
|
1458
1543
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1544
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1459
1545
|
'x-tokenName'?: string | undefined;
|
|
1460
1546
|
authorizationUrl?: string | undefined;
|
|
1461
1547
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1468,6 +1554,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1468
1554
|
selectedScopes?: string[] | undefined;
|
|
1469
1555
|
'x-scalar-client-id'?: string | undefined;
|
|
1470
1556
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1557
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1471
1558
|
'x-tokenName'?: string | undefined;
|
|
1472
1559
|
tokenUrl?: string | undefined;
|
|
1473
1560
|
clientSecret?: string | undefined;
|
|
@@ -1480,6 +1567,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1480
1567
|
selectedScopes?: string[] | undefined;
|
|
1481
1568
|
'x-scalar-client-id'?: string | undefined;
|
|
1482
1569
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1570
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1483
1571
|
'x-tokenName'?: string | undefined;
|
|
1484
1572
|
authorizationUrl?: string | undefined;
|
|
1485
1573
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1509,6 +1597,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1509
1597
|
tokenUrl: string;
|
|
1510
1598
|
clientSecret: string;
|
|
1511
1599
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1600
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1512
1601
|
'x-tokenName'?: string | undefined;
|
|
1513
1602
|
} | undefined;
|
|
1514
1603
|
implicit?: {
|
|
@@ -1521,6 +1610,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1521
1610
|
authorizationUrl: string;
|
|
1522
1611
|
'x-scalar-redirect-uri': string;
|
|
1523
1612
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1613
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1524
1614
|
'x-tokenName'?: string | undefined;
|
|
1525
1615
|
} | undefined;
|
|
1526
1616
|
clientCredentials?: {
|
|
@@ -1533,6 +1623,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1533
1623
|
tokenUrl: string;
|
|
1534
1624
|
clientSecret: string;
|
|
1535
1625
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1626
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1536
1627
|
'x-tokenName'?: string | undefined;
|
|
1537
1628
|
} | undefined;
|
|
1538
1629
|
authorizationCode?: {
|
|
@@ -1548,6 +1639,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1548
1639
|
clientSecret: string;
|
|
1549
1640
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
1550
1641
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1642
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1551
1643
|
'x-tokenName'?: string | undefined;
|
|
1552
1644
|
} | undefined;
|
|
1553
1645
|
};
|
|
@@ -1570,6 +1662,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1570
1662
|
selectedScopes?: string[] | undefined;
|
|
1571
1663
|
'x-scalar-client-id'?: string | undefined;
|
|
1572
1664
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1665
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1573
1666
|
'x-tokenName'?: string | undefined;
|
|
1574
1667
|
tokenUrl?: string | undefined;
|
|
1575
1668
|
clientSecret?: string | undefined;
|
|
@@ -1582,6 +1675,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1582
1675
|
selectedScopes?: string[] | undefined;
|
|
1583
1676
|
'x-scalar-client-id'?: string | undefined;
|
|
1584
1677
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1678
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1585
1679
|
'x-tokenName'?: string | undefined;
|
|
1586
1680
|
authorizationUrl?: string | undefined;
|
|
1587
1681
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1594,6 +1688,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1594
1688
|
selectedScopes?: string[] | undefined;
|
|
1595
1689
|
'x-scalar-client-id'?: string | undefined;
|
|
1596
1690
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1691
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1597
1692
|
'x-tokenName'?: string | undefined;
|
|
1598
1693
|
tokenUrl?: string | undefined;
|
|
1599
1694
|
clientSecret?: string | undefined;
|
|
@@ -1606,6 +1701,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1606
1701
|
selectedScopes?: string[] | undefined;
|
|
1607
1702
|
'x-scalar-client-id'?: string | undefined;
|
|
1608
1703
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1704
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1609
1705
|
'x-tokenName'?: string | undefined;
|
|
1610
1706
|
authorizationUrl?: string | undefined;
|
|
1611
1707
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1655,6 +1751,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1655
1751
|
tokenUrl: string;
|
|
1656
1752
|
clientSecret: string;
|
|
1657
1753
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1754
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1658
1755
|
'x-tokenName'?: string | undefined;
|
|
1659
1756
|
} | undefined;
|
|
1660
1757
|
implicit?: {
|
|
@@ -1667,6 +1764,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1667
1764
|
authorizationUrl: string;
|
|
1668
1765
|
'x-scalar-redirect-uri': string;
|
|
1669
1766
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1767
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1670
1768
|
'x-tokenName'?: string | undefined;
|
|
1671
1769
|
} | undefined;
|
|
1672
1770
|
clientCredentials?: {
|
|
@@ -1679,6 +1777,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1679
1777
|
tokenUrl: string;
|
|
1680
1778
|
clientSecret: string;
|
|
1681
1779
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1780
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1682
1781
|
'x-tokenName'?: string | undefined;
|
|
1683
1782
|
} | undefined;
|
|
1684
1783
|
authorizationCode?: {
|
|
@@ -1694,6 +1793,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1694
1793
|
clientSecret: string;
|
|
1695
1794
|
'x-usePkce': "SHA-256" | "plain" | "no";
|
|
1696
1795
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1796
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1697
1797
|
'x-tokenName'?: string | undefined;
|
|
1698
1798
|
} | undefined;
|
|
1699
1799
|
};
|
|
@@ -1740,6 +1840,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1740
1840
|
selectedScopes?: string[] | undefined;
|
|
1741
1841
|
'x-scalar-client-id'?: string | undefined;
|
|
1742
1842
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1843
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1743
1844
|
'x-tokenName'?: string | undefined;
|
|
1744
1845
|
tokenUrl?: string | undefined;
|
|
1745
1846
|
clientSecret?: string | undefined;
|
|
@@ -1752,6 +1853,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1752
1853
|
selectedScopes?: string[] | undefined;
|
|
1753
1854
|
'x-scalar-client-id'?: string | undefined;
|
|
1754
1855
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1856
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1755
1857
|
'x-tokenName'?: string | undefined;
|
|
1756
1858
|
authorizationUrl?: string | undefined;
|
|
1757
1859
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1764,6 +1866,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1764
1866
|
selectedScopes?: string[] | undefined;
|
|
1765
1867
|
'x-scalar-client-id'?: string | undefined;
|
|
1766
1868
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1869
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1767
1870
|
'x-tokenName'?: string | undefined;
|
|
1768
1871
|
tokenUrl?: string | undefined;
|
|
1769
1872
|
clientSecret?: string | undefined;
|
|
@@ -1776,6 +1879,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
|
|
|
1776
1879
|
selectedScopes?: string[] | undefined;
|
|
1777
1880
|
'x-scalar-client-id'?: string | undefined;
|
|
1778
1881
|
'x-scalar-security-query'?: Record<string, string> | undefined;
|
|
1882
|
+
'x-scalar-security-body'?: Record<string, string> | undefined;
|
|
1779
1883
|
'x-tokenName'?: string | undefined;
|
|
1780
1884
|
authorizationUrl?: string | undefined;
|
|
1781
1885
|
'x-scalar-redirect-uri'?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../src/entities/security-scheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsBvB,eAAO,MAAM,sBAAsB,wCAAyC,CAAA;AAc5E,eAAO,MAAM,oBAAoB;;;;IAV/B,8EAA8E;;IAE9E,6FAA6F;;;;IAb7F,0EAA0E;;;;;;;;;;;;;;;;;;;;EAqBsC,CAAA;AAClH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAkCvE,eAAO,MAAM,kBAAkB;;;;IA3B7B;;;OAGG;;IAOH;;;;OAIG;;;;IA3CH,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDgC,CAAA;AAC5G,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAanE,eAAO,MAAM,oBAAoB;;;;IAP/B;;;OAGG;;;;IAlEH,0EAA0E;;;;;;;;;;;;;;EAsEa,CAAA;AACzF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsNxE,CAAA;AAEJ;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACjE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -70,6 +70,8 @@ const flowsCommon = z.object({
|
|
|
70
70
|
"token": z.string().default(""),
|
|
71
71
|
/** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
|
|
72
72
|
"x-scalar-security-query": z.record(z.string(), z.string()).optional(),
|
|
73
|
+
/** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */
|
|
74
|
+
"x-scalar-security-body": z.record(z.string(), z.string()).optional(),
|
|
73
75
|
/** Extension to specify custom token name in the response (defaults to 'access_token') */
|
|
74
76
|
"x-tokenName": z.string().optional()
|
|
75
77
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/entities/security-scheme.ts"],
|
|
4
|
-
"sourcesContent": ["import { z } from 'zod'\n\nimport { type ENTITY_BRANDS, nanoidSchema } from '../utils/nanoid'\n\n// ---------------------------------------------------------------------------\n// COMMON PROPS FOR ALL SECURITY SCHEMES\n\n/** Some common properties used in all security schemes */\nconst commonProps = z.object({\n /* A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description: z.string().optional(),\n})\n\nconst extendedSecuritySchema = z.object({\n uid: nanoidSchema.brand<ENTITY_BRANDS['SECURITY_SCHEME']>(),\n /** The name key that links a security requirement to a security object */\n nameKey: z.string().optional().default(''),\n})\n\n// ---------------------------------------------------------------------------\n// API KEY\n\nexport const securitySchemeApiKeyIn = ['query', 'header', 'cookie'] as const\n\nconst oasSecuritySchemeApiKey = commonProps.extend({\n type: z.literal('apiKey'),\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: z.string().optional().default(''),\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\" or \"cookie\". */\n in: z.enum(securitySchemeApiKeyIn).optional().default('header').catch('header'),\n})\n\nconst apiKeyValueSchema = z.object({\n value: z.string().default(''),\n})\n\nexport const securityApiKeySchema = oasSecuritySchemeApiKey.merge(extendedSecuritySchema).merge(apiKeyValueSchema)\nexport type SecuritySchemeApiKey = z.infer<typeof securityApiKeySchema>\n\n// ---------------------------------------------------------------------------\n// HTTP\n\nconst oasSecuritySchemeHttp = commonProps.extend({\n type: z.literal('http'),\n /**\n * REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in\n * [RFC7235]. The values used SHOULD be registered in the IANA Authentication Scheme registry.\n */\n scheme: z\n .string()\n .toLowerCase()\n .pipe(z.enum(['basic', 'bearer']))\n .optional()\n .default('basic'),\n /**\n * A hint to the client to identify how the bearer token is formatted.\n * Bearer tokens are usually generated by an authorization server, so\n * this information is primarily for documentation purposes.\n */\n bearerFormat: z\n .union([z.literal('JWT'), z.string()])\n .optional()\n .default('JWT'),\n})\n\nconst httpValueSchema = z.object({\n username: z.string().default(''),\n password: z.string().default(''),\n token: z.string().default(''),\n})\n\nexport const securityHttpSchema = oasSecuritySchemeHttp.merge(extendedSecuritySchema).merge(httpValueSchema)\nexport type SecuritySchemaHttp = z.infer<typeof securityHttpSchema>\n\n// ---------------------------------------------------------------------------\n// OPENID CONNECT\nconst oasSecuritySchemeOpenId = commonProps.extend({\n type: z.literal('openIdConnect'),\n /**\n * REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the\n * form of a URL. The OpenID Connect standard requires the use of TLS.\n */\n openIdConnectUrl: z.string().optional().default(''),\n})\n\nexport const securityOpenIdSchema = oasSecuritySchemeOpenId.merge(extendedSecuritySchema)\nexport type SecuritySchemaOpenId = z.infer<typeof securityOpenIdSchema>\n\n// ---------------------------------------------------------------------------\n\n/**\n * REQUIRED. The authorization URL to be used for this flow. This MUST be in\n * the form of a URL. The OAuth2 standard requires the use of TLS.\n */\nconst authorizationUrl = z.string().default('')\n\n/**\n * REQUIRED. The token URL to be used for this flow. This MUST be in the\n * form of a URL. The OAuth2 standard requires the use of TLS.\n */\nconst tokenUrl = z.string().default('')\n\n/** Common properties used across all oauth2 flows */\nconst flowsCommon = z.object({\n /**\n * The URL to be used for obtaining refresh tokens. This MUST be in the form of a\n * URL. The OAuth2 standard requires the use of TLS.\n */\n 'refreshUrl': z.string().optional().default(''),\n /**\n * REQUIRED. The available scopes for the OAuth2 security scheme. A map\n * between the scope name and a short description for it. The map MAY be empty.\n */\n 'scopes': z.record(z.string(), z.string().optional().default('')).optional().default({}).catch({}),\n 'selectedScopes': z.array(z.string()).optional().default([]),\n /** Extension to save the client Id associated with an oauth flow */\n 'x-scalar-client-id': z.string().optional().default(''),\n /** The auth token */\n 'token': z.string().default(''),\n /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */\n 'x-scalar-security-query': z.record(z.string(), z.string()).optional(),\n /** Extension to specify custom token name in the response (defaults to 'access_token') */\n 'x-tokenName': z.string().optional(),\n})\n\n/** Setup a default redirect uri if we can */\nconst defaultRedirectUri = typeof window !== 'undefined' ? window.location.origin + window.location.pathname : ''\n\n/** Options for the x-usePkce extension */\nexport const pkceOptions = ['SHA-256', 'plain', 'no'] as const\n\n/** Oauth2 security scheme */\nconst oasSecuritySchemeOauth2 = commonProps.extend({\n type: z.literal('oauth2'),\n /** The default scopes for the oauth flow */\n 'x-default-scopes': z.string().or(z.array(z.string())).optional(),\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: z\n .object({\n /** Configuration for the OAuth Implicit flow */\n implicit: flowsCommon.extend({\n 'type': z.literal('implicit').default('implicit'),\n authorizationUrl,\n 'x-scalar-redirect-uri': z.string().optional().default(defaultRedirectUri),\n }),\n /** Configuration for the OAuth Resource Owner Password flow */\n password: flowsCommon.extend({\n type: z.literal('password').default('password'),\n tokenUrl,\n clientSecret: z.string().default(''),\n username: z.string().default(''),\n password: z.string().default(''),\n }),\n /** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\n clientCredentials: flowsCommon.extend({\n type: z.literal('clientCredentials').default('clientCredentials'),\n tokenUrl,\n clientSecret: z.string().default(''),\n }),\n /** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.*/\n authorizationCode: flowsCommon.extend({\n 'type': z.literal('authorizationCode').default('authorizationCode'),\n authorizationUrl,\n 'x-usePkce': z.enum(pkceOptions).optional().default('no'),\n 'x-scalar-redirect-uri': z.string().optional().default(defaultRedirectUri),\n tokenUrl,\n 'clientSecret': z.string().default(''),\n }),\n })\n .partial()\n .default({\n implicit: { type: 'implicit', authorizationUrl: 'http://localhost:8080' },\n }),\n})\n\nexport const securityOauthSchema = oasSecuritySchemeOauth2.merge(extendedSecuritySchema)\n\nexport type SecuritySchemeOauth2 = z.infer<typeof securityOauthSchema>\nexport type SecuritySchemeOauth2Payload = z.input<typeof securityOauthSchema>\nexport type Oauth2Flow = NonNullable<\n SecuritySchemeOauth2['flows']['authorizationCode' | 'clientCredentials' | 'implicit' | 'password']\n>\n/** Payload for the oauth 2 flows + extensions */\nexport type Oauth2FlowPayload = NonNullable<SecuritySchemeOauth2Payload['flows']>[\n | 'authorizationCode'\n | 'clientCredentials'\n | 'implicit'\n | 'password'] &\n Record<`x-${string}`, string>\n\n// ---------------------------------------------------------------------------\n// Final Types\n\n/**\n * Security Requirement\n * Lists the required security schemes to execute this operation OR the whole collection/spec.\n * The name used for each property MUST correspond to a security scheme declared in the Security\n * Schemes under the Components Object.\n *\n * The key (name) here will be matched to the key of the securityScheme for linking\n *\n * @see https://spec.openapis.org/oas/latest.html#security-requirement-object\n */\nexport const oasSecurityRequirementSchema = z.record(z.string(), z.array(z.string()).optional().default([]))\n\n/** OAS Compliant security schemes */\nexport const oasSecuritySchemeSchema = z.union([\n oasSecuritySchemeApiKey,\n oasSecuritySchemeHttp,\n oasSecuritySchemeOauth2,\n oasSecuritySchemeOpenId,\n])\n\n/** Extended security schemes for workspace usage */\nexport const securitySchemeSchema = z\n .discriminatedUnion('type', [securityApiKeySchema, securityHttpSchema, securityOpenIdSchema, securityOauthSchema])\n .transform((data) => {\n // Set selected scopes from x-default-scopes\n if (data.type === 'oauth2' && data['x-default-scopes']?.length) {\n const keys = Object.keys(data.flows) as Array<keyof typeof data.flows>\n keys.forEach((key) => {\n if (data.flows[key]?.selectedScopes && data['x-default-scopes']) {\n data.flows[key].selectedScopes = [data['x-default-scopes']].flat()\n }\n })\n }\n return data\n })\n\n/**\n * Security Scheme Object\n *\n * @see https://spec.openapis.org/oas/latest.html#security-scheme-object\n */\nexport type SecurityScheme = z.infer<typeof securitySchemeSchema>\nexport type SecuritySchemePayload = z.input<typeof securitySchemeSchema>\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,SAAS;AAElB,SAA6B,oBAAoB;AAMjD,MAAM,cAAc,EAAE,OAAO;AAAA;AAAA,EAE3B,aAAa,EAAE,OAAO,EAAE,SAAS;AACnC,CAAC;AAED,MAAM,yBAAyB,EAAE,OAAO;AAAA,EACtC,KAAK,aAAa,MAAwC;AAAA;AAAA,EAE1D,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AAC3C,CAAC;AAKM,MAAM,yBAAyB,CAAC,SAAS,UAAU,QAAQ;AAElE,MAAM,0BAA0B,YAAY,OAAO;AAAA,EACjD,MAAM,EAAE,QAAQ,QAAQ;AAAA;AAAA,EAExB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE;AAAA;AAAA,EAEtC,IAAI,EAAE,KAAK,sBAAsB,EAAE,SAAS,EAAE,QAAQ,QAAQ,EAAE,MAAM,QAAQ;AAChF,CAAC;AAED,MAAM,oBAAoB,EAAE,OAAO;AAAA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AG,kBAAkB,KAAK,kBAAkB,GAAG;AAC/D,aAAK,MAAM,GAAG,EAAE,iBAAiB,CAAC,KAAK,kBAAkB,CAAC,EAAE,KAAK;AAAA,MACnE;AAAA,IACF,CAAC;AAAA,EACH;AACA,SAAO;AACT,CAAC;",
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\n\nimport { type ENTITY_BRANDS, nanoidSchema } from '../utils/nanoid'\n\n// ---------------------------------------------------------------------------\n// COMMON PROPS FOR ALL SECURITY SCHEMES\n\n/** Some common properties used in all security schemes */\nconst commonProps = z.object({\n /* A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description: z.string().optional(),\n})\n\nconst extendedSecuritySchema = z.object({\n uid: nanoidSchema.brand<ENTITY_BRANDS['SECURITY_SCHEME']>(),\n /** The name key that links a security requirement to a security object */\n nameKey: z.string().optional().default(''),\n})\n\n// ---------------------------------------------------------------------------\n// API KEY\n\nexport const securitySchemeApiKeyIn = ['query', 'header', 'cookie'] as const\n\nconst oasSecuritySchemeApiKey = commonProps.extend({\n type: z.literal('apiKey'),\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: z.string().optional().default(''),\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\" or \"cookie\". */\n in: z.enum(securitySchemeApiKeyIn).optional().default('header').catch('header'),\n})\n\nconst apiKeyValueSchema = z.object({\n value: z.string().default(''),\n})\n\nexport const securityApiKeySchema = oasSecuritySchemeApiKey.merge(extendedSecuritySchema).merge(apiKeyValueSchema)\nexport type SecuritySchemeApiKey = z.infer<typeof securityApiKeySchema>\n\n// ---------------------------------------------------------------------------\n// HTTP\n\nconst oasSecuritySchemeHttp = commonProps.extend({\n type: z.literal('http'),\n /**\n * REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in\n * [RFC7235]. The values used SHOULD be registered in the IANA Authentication Scheme registry.\n */\n scheme: z\n .string()\n .toLowerCase()\n .pipe(z.enum(['basic', 'bearer']))\n .optional()\n .default('basic'),\n /**\n * A hint to the client to identify how the bearer token is formatted.\n * Bearer tokens are usually generated by an authorization server, so\n * this information is primarily for documentation purposes.\n */\n bearerFormat: z\n .union([z.literal('JWT'), z.string()])\n .optional()\n .default('JWT'),\n})\n\nconst httpValueSchema = z.object({\n username: z.string().default(''),\n password: z.string().default(''),\n token: z.string().default(''),\n})\n\nexport const securityHttpSchema = oasSecuritySchemeHttp.merge(extendedSecuritySchema).merge(httpValueSchema)\nexport type SecuritySchemaHttp = z.infer<typeof securityHttpSchema>\n\n// ---------------------------------------------------------------------------\n// OPENID CONNECT\nconst oasSecuritySchemeOpenId = commonProps.extend({\n type: z.literal('openIdConnect'),\n /**\n * REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the\n * form of a URL. The OpenID Connect standard requires the use of TLS.\n */\n openIdConnectUrl: z.string().optional().default(''),\n})\n\nexport const securityOpenIdSchema = oasSecuritySchemeOpenId.merge(extendedSecuritySchema)\nexport type SecuritySchemaOpenId = z.infer<typeof securityOpenIdSchema>\n\n// ---------------------------------------------------------------------------\n\n/**\n * REQUIRED. The authorization URL to be used for this flow. This MUST be in\n * the form of a URL. The OAuth2 standard requires the use of TLS.\n */\nconst authorizationUrl = z.string().default('')\n\n/**\n * REQUIRED. The token URL to be used for this flow. This MUST be in the\n * form of a URL. The OAuth2 standard requires the use of TLS.\n */\nconst tokenUrl = z.string().default('')\n\n/** Common properties used across all oauth2 flows */\nconst flowsCommon = z.object({\n /**\n * The URL to be used for obtaining refresh tokens. This MUST be in the form of a\n * URL. The OAuth2 standard requires the use of TLS.\n */\n 'refreshUrl': z.string().optional().default(''),\n /**\n * REQUIRED. The available scopes for the OAuth2 security scheme. A map\n * between the scope name and a short description for it. The map MAY be empty.\n */\n 'scopes': z.record(z.string(), z.string().optional().default('')).optional().default({}).catch({}),\n 'selectedScopes': z.array(z.string()).optional().default([]),\n /** Extension to save the client Id associated with an oauth flow */\n 'x-scalar-client-id': z.string().optional().default(''),\n /** The auth token */\n 'token': z.string().default(''),\n /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */\n 'x-scalar-security-query': z.record(z.string(), z.string()).optional(),\n /** Additional body parameters for the OAuth token request. Example: { audience: 'foo' }. */\n 'x-scalar-security-body': z.record(z.string(), z.string()).optional(),\n /** Extension to specify custom token name in the response (defaults to 'access_token') */\n 'x-tokenName': z.string().optional(),\n})\n\n/** Setup a default redirect uri if we can */\nconst defaultRedirectUri = typeof window !== 'undefined' ? window.location.origin + window.location.pathname : ''\n\n/** Options for the x-usePkce extension */\nexport const pkceOptions = ['SHA-256', 'plain', 'no'] as const\n\n/** Oauth2 security scheme */\nconst oasSecuritySchemeOauth2 = commonProps.extend({\n type: z.literal('oauth2'),\n /** The default scopes for the oauth flow */\n 'x-default-scopes': z.string().or(z.array(z.string())).optional(),\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: z\n .object({\n /** Configuration for the OAuth Implicit flow */\n implicit: flowsCommon.extend({\n 'type': z.literal('implicit').default('implicit'),\n authorizationUrl,\n 'x-scalar-redirect-uri': z.string().optional().default(defaultRedirectUri),\n }),\n /** Configuration for the OAuth Resource Owner Password flow */\n password: flowsCommon.extend({\n type: z.literal('password').default('password'),\n tokenUrl,\n clientSecret: z.string().default(''),\n username: z.string().default(''),\n password: z.string().default(''),\n }),\n /** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\n clientCredentials: flowsCommon.extend({\n type: z.literal('clientCredentials').default('clientCredentials'),\n tokenUrl,\n clientSecret: z.string().default(''),\n }),\n /** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.*/\n authorizationCode: flowsCommon.extend({\n 'type': z.literal('authorizationCode').default('authorizationCode'),\n authorizationUrl,\n 'x-usePkce': z.enum(pkceOptions).optional().default('no'),\n 'x-scalar-redirect-uri': z.string().optional().default(defaultRedirectUri),\n tokenUrl,\n 'clientSecret': z.string().default(''),\n }),\n })\n .partial()\n .default({\n implicit: { type: 'implicit', authorizationUrl: 'http://localhost:8080' },\n }),\n})\n\nexport const securityOauthSchema = oasSecuritySchemeOauth2.merge(extendedSecuritySchema)\n\nexport type SecuritySchemeOauth2 = z.infer<typeof securityOauthSchema>\nexport type SecuritySchemeOauth2Payload = z.input<typeof securityOauthSchema>\nexport type Oauth2Flow = NonNullable<\n SecuritySchemeOauth2['flows']['authorizationCode' | 'clientCredentials' | 'implicit' | 'password']\n>\n/** Payload for the oauth 2 flows + extensions */\nexport type Oauth2FlowPayload = NonNullable<SecuritySchemeOauth2Payload['flows']>[\n | 'authorizationCode'\n | 'clientCredentials'\n | 'implicit'\n | 'password'] &\n Record<`x-${string}`, string>\n\n// ---------------------------------------------------------------------------\n// Final Types\n\n/**\n * Security Requirement\n * Lists the required security schemes to execute this operation OR the whole collection/spec.\n * The name used for each property MUST correspond to a security scheme declared in the Security\n * Schemes under the Components Object.\n *\n * The key (name) here will be matched to the key of the securityScheme for linking\n *\n * @see https://spec.openapis.org/oas/latest.html#security-requirement-object\n */\nexport const oasSecurityRequirementSchema = z.record(z.string(), z.array(z.string()).optional().default([]))\n\n/** OAS Compliant security schemes */\nexport const oasSecuritySchemeSchema = z.union([\n oasSecuritySchemeApiKey,\n oasSecuritySchemeHttp,\n oasSecuritySchemeOauth2,\n oasSecuritySchemeOpenId,\n])\n\n/** Extended security schemes for workspace usage */\nexport const securitySchemeSchema = z\n .discriminatedUnion('type', [securityApiKeySchema, securityHttpSchema, securityOpenIdSchema, securityOauthSchema])\n .transform((data) => {\n // Set selected scopes from x-default-scopes\n if (data.type === 'oauth2' && data['x-default-scopes']?.length) {\n const keys = Object.keys(data.flows) as Array<keyof typeof data.flows>\n keys.forEach((key) => {\n if (data.flows[key]?.selectedScopes && data['x-default-scopes']) {\n data.flows[key].selectedScopes = [data['x-default-scopes']].flat()\n }\n })\n }\n return data\n })\n\n/**\n * Security Scheme Object\n *\n * @see https://spec.openapis.org/oas/latest.html#security-scheme-object\n */\nexport type SecurityScheme = z.infer<typeof secur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SAAS,EAAE,QAAQ,kBAAkB;AAAA,MACzE;AAAA,MACA,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE;AAAA,IACvC,CAAC;AAAA,EACH,CAAC,EACA,QAAQ,EACR,QAAQ;AAAA,IACP,UAAU,EAAE,MAAM,YAAY,kBAAkB,wBAAwB;AAAA,EAC1E,CAAC;AACL,CAAC;AAEM,MAAM,sBAAsB,wBAAwB,MAAM,sBAAsB;AA4BhF,MAAM,+BAA+B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGpG,MAAM,0BAA0B,EAAE,MAAM;AAAA,EAC7C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAGM,MAAM,uBAAuB,EACjC,mBAAmB,QAAQ,CAAC,sBAAsB,oBAAoB,sBAAsB,mBAAmB,CAAC,EAChH,UAAU,CAAC,SAAS;AAEnB,MAAI,KAAK,SAAS,YAAY,KAAK,kBAAkB,GAAG,QAAQ;AAC9D,UAAM,OAAO,OAAO,KAAK,KAAK,KAAK;AACnC,SAAK,QAAQ,CAAC,QAAQ;AACpB,UAAI,KAAK,MAAM,GAAG,GAAG,kBAAkB,KAAK,kBAAkB,GAAG;AAC/D,aAAK,MAAM,GAAG,EAAE,iBAAiB,CAAC,KAAK,kBAAkB,CAAC,EAAE,KAAK;AAAA,MACnE;AAAA,IACF,CAAC;AAAA,EACH;AACA,SAAO;AACT,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"scalar",
|
|
17
17
|
"references"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.2.
|
|
19
|
+
"version": "0.2.9",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=20"
|
|
22
22
|
},
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"nanoid": "5.1.5",
|
|
68
68
|
"zod": "3.24.1",
|
|
69
|
-
"@scalar/openapi-types": "0.3.
|
|
69
|
+
"@scalar/openapi-types": "0.3.6"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/har-format": "^1.2.15",
|