@scalar/types 0.2.7 → 0.2.8

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
@@ -1,5 +1,11 @@
1
1
  # @scalar/types
2
2
 
3
+ ## 0.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - c10e191: feat(oauth2): add support for x-tokenName extension
8
+
3
9
  ## 0.2.7
4
10
 
5
11
  ### Patch Changes
@@ -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
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
136
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
135
137
  }, {
136
138
  type: z.ZodDefault<z.ZodLiteral<"implicit">>;
137
139
  authorizationUrl: z.ZodDefault<z.ZodString>;
@@ -146,6 +148,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
146
148
  authorizationUrl: string;
147
149
  'x-scalar-redirect-uri': string;
148
150
  'x-scalar-security-query'?: Record<string, string> | undefined;
151
+ 'x-tokenName'?: string | undefined;
149
152
  }, {
150
153
  type?: "implicit" | undefined;
151
154
  token?: string | undefined;
@@ -154,6 +157,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
154
157
  selectedScopes?: string[] | undefined;
155
158
  'x-scalar-client-id'?: string | undefined;
156
159
  'x-scalar-security-query'?: Record<string, string> | undefined;
160
+ 'x-tokenName'?: string | undefined;
157
161
  authorizationUrl?: string | undefined;
158
162
  'x-scalar-redirect-uri'?: string | undefined;
159
163
  }>>;
@@ -175,6 +179,8 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
175
179
  token: z.ZodDefault<z.ZodString>;
176
180
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
177
181
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
182
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
183
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
178
184
  }, {
179
185
  type: z.ZodDefault<z.ZodLiteral<"password">>;
180
186
  tokenUrl: z.ZodDefault<z.ZodString>;
@@ -193,6 +199,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
193
199
  tokenUrl: string;
194
200
  clientSecret: string;
195
201
  'x-scalar-security-query'?: Record<string, string> | undefined;
202
+ 'x-tokenName'?: string | undefined;
196
203
  }, {
197
204
  type?: "password" | undefined;
198
205
  username?: string | undefined;
@@ -203,6 +210,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
203
210
  selectedScopes?: string[] | undefined;
204
211
  'x-scalar-client-id'?: string | undefined;
205
212
  'x-scalar-security-query'?: Record<string, string> | undefined;
213
+ 'x-tokenName'?: string | undefined;
206
214
  tokenUrl?: string | undefined;
207
215
  clientSecret?: string | undefined;
208
216
  }>>;
@@ -224,6 +232,8 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
224
232
  token: z.ZodDefault<z.ZodString>;
225
233
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
226
234
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
235
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
236
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
227
237
  }, {
228
238
  type: z.ZodDefault<z.ZodLiteral<"clientCredentials">>;
229
239
  tokenUrl: z.ZodDefault<z.ZodString>;
@@ -238,6 +248,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
238
248
  tokenUrl: string;
239
249
  clientSecret: string;
240
250
  'x-scalar-security-query'?: Record<string, string> | undefined;
251
+ 'x-tokenName'?: string | undefined;
241
252
  }, {
242
253
  type?: "clientCredentials" | undefined;
243
254
  token?: string | undefined;
@@ -246,6 +257,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
246
257
  selectedScopes?: string[] | undefined;
247
258
  'x-scalar-client-id'?: string | undefined;
248
259
  'x-scalar-security-query'?: Record<string, string> | undefined;
260
+ 'x-tokenName'?: string | undefined;
249
261
  tokenUrl?: string | undefined;
250
262
  clientSecret?: string | undefined;
251
263
  }>>;
@@ -267,6 +279,8 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
267
279
  token: z.ZodDefault<z.ZodString>;
268
280
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
269
281
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
282
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
283
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
270
284
  }, {
271
285
  type: z.ZodDefault<z.ZodLiteral<"authorizationCode">>;
272
286
  authorizationUrl: z.ZodDefault<z.ZodString>;
@@ -287,6 +301,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
287
301
  clientSecret: string;
288
302
  'x-usePkce': "SHA-256" | "plain" | "no";
289
303
  'x-scalar-security-query'?: Record<string, string> | undefined;
304
+ 'x-tokenName'?: string | undefined;
290
305
  }, {
291
306
  type?: "authorizationCode" | undefined;
292
307
  token?: string | undefined;
@@ -295,6 +310,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
295
310
  selectedScopes?: string[] | undefined;
296
311
  'x-scalar-client-id'?: string | undefined;
297
312
  'x-scalar-security-query'?: Record<string, string> | undefined;
313
+ 'x-tokenName'?: string | undefined;
298
314
  authorizationUrl?: string | undefined;
299
315
  'x-scalar-redirect-uri'?: string | undefined;
300
316
  tokenUrl?: string | undefined;
@@ -314,6 +330,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
314
330
  tokenUrl: string;
315
331
  clientSecret: string;
316
332
  'x-scalar-security-query'?: Record<string, string> | undefined;
333
+ 'x-tokenName'?: string | undefined;
317
334
  } | undefined;
318
335
  implicit?: {
319
336
  type: "implicit";
@@ -325,6 +342,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
325
342
  authorizationUrl: string;
326
343
  'x-scalar-redirect-uri': string;
327
344
  'x-scalar-security-query'?: Record<string, string> | undefined;
345
+ 'x-tokenName'?: string | undefined;
328
346
  } | undefined;
329
347
  clientCredentials?: {
330
348
  type: "clientCredentials";
@@ -336,6 +354,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
336
354
  tokenUrl: string;
337
355
  clientSecret: string;
338
356
  'x-scalar-security-query'?: Record<string, string> | undefined;
357
+ 'x-tokenName'?: string | undefined;
339
358
  } | undefined;
340
359
  authorizationCode?: {
341
360
  type: "authorizationCode";
@@ -350,6 +369,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
350
369
  clientSecret: string;
351
370
  'x-usePkce': "SHA-256" | "plain" | "no";
352
371
  'x-scalar-security-query'?: Record<string, string> | undefined;
372
+ 'x-tokenName'?: string | undefined;
353
373
  } | undefined;
354
374
  }, {
355
375
  password?: {
@@ -362,6 +382,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
362
382
  selectedScopes?: string[] | undefined;
363
383
  'x-scalar-client-id'?: string | undefined;
364
384
  'x-scalar-security-query'?: Record<string, string> | undefined;
385
+ 'x-tokenName'?: string | undefined;
365
386
  tokenUrl?: string | undefined;
366
387
  clientSecret?: string | undefined;
367
388
  } | undefined;
@@ -373,6 +394,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
373
394
  selectedScopes?: string[] | undefined;
374
395
  'x-scalar-client-id'?: string | undefined;
375
396
  'x-scalar-security-query'?: Record<string, string> | undefined;
397
+ 'x-tokenName'?: string | undefined;
376
398
  authorizationUrl?: string | undefined;
377
399
  'x-scalar-redirect-uri'?: string | undefined;
378
400
  } | undefined;
@@ -384,6 +406,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
384
406
  selectedScopes?: string[] | undefined;
385
407
  'x-scalar-client-id'?: string | undefined;
386
408
  'x-scalar-security-query'?: Record<string, string> | undefined;
409
+ 'x-tokenName'?: string | undefined;
387
410
  tokenUrl?: string | undefined;
388
411
  clientSecret?: string | undefined;
389
412
  } | undefined;
@@ -395,6 +418,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
395
418
  selectedScopes?: string[] | undefined;
396
419
  'x-scalar-client-id'?: string | undefined;
397
420
  'x-scalar-security-query'?: Record<string, string> | undefined;
421
+ 'x-tokenName'?: string | undefined;
398
422
  authorizationUrl?: string | undefined;
399
423
  'x-scalar-redirect-uri'?: string | undefined;
400
424
  tokenUrl?: string | undefined;
@@ -423,6 +447,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
423
447
  tokenUrl: string;
424
448
  clientSecret: string;
425
449
  'x-scalar-security-query'?: Record<string, string> | undefined;
450
+ 'x-tokenName'?: string | undefined;
426
451
  } | undefined;
427
452
  implicit?: {
428
453
  type: "implicit";
@@ -434,6 +459,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
434
459
  authorizationUrl: string;
435
460
  'x-scalar-redirect-uri': string;
436
461
  'x-scalar-security-query'?: Record<string, string> | undefined;
462
+ 'x-tokenName'?: string | undefined;
437
463
  } | undefined;
438
464
  clientCredentials?: {
439
465
  type: "clientCredentials";
@@ -445,6 +471,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
445
471
  tokenUrl: string;
446
472
  clientSecret: string;
447
473
  'x-scalar-security-query'?: Record<string, string> | undefined;
474
+ 'x-tokenName'?: string | undefined;
448
475
  } | undefined;
449
476
  authorizationCode?: {
450
477
  type: "authorizationCode";
@@ -459,6 +486,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
459
486
  clientSecret: string;
460
487
  'x-usePkce': "SHA-256" | "plain" | "no";
461
488
  'x-scalar-security-query'?: Record<string, string> | undefined;
489
+ 'x-tokenName'?: string | undefined;
462
490
  } | undefined;
463
491
  };
464
492
  description?: string | undefined;
@@ -480,6 +508,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
480
508
  selectedScopes?: string[] | undefined;
481
509
  'x-scalar-client-id'?: string | undefined;
482
510
  'x-scalar-security-query'?: Record<string, string> | undefined;
511
+ 'x-tokenName'?: string | undefined;
483
512
  tokenUrl?: string | undefined;
484
513
  clientSecret?: string | undefined;
485
514
  } | undefined;
@@ -491,6 +520,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
491
520
  selectedScopes?: string[] | undefined;
492
521
  'x-scalar-client-id'?: string | undefined;
493
522
  'x-scalar-security-query'?: Record<string, string> | undefined;
523
+ 'x-tokenName'?: string | undefined;
494
524
  authorizationUrl?: string | undefined;
495
525
  'x-scalar-redirect-uri'?: string | undefined;
496
526
  } | undefined;
@@ -502,6 +532,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
502
532
  selectedScopes?: string[] | undefined;
503
533
  'x-scalar-client-id'?: string | undefined;
504
534
  'x-scalar-security-query'?: Record<string, string> | undefined;
535
+ 'x-tokenName'?: string | undefined;
505
536
  tokenUrl?: string | undefined;
506
537
  clientSecret?: string | undefined;
507
538
  } | undefined;
@@ -513,6 +544,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
513
544
  selectedScopes?: string[] | undefined;
514
545
  'x-scalar-client-id'?: string | undefined;
515
546
  'x-scalar-security-query'?: Record<string, string> | undefined;
547
+ 'x-tokenName'?: string | undefined;
516
548
  authorizationUrl?: string | undefined;
517
549
  'x-scalar-redirect-uri'?: string | undefined;
518
550
  tokenUrl?: string | undefined;
@@ -607,6 +639,8 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
607
639
  token: z.ZodDefault<z.ZodString>;
608
640
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
609
641
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
642
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
643
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
610
644
  }, {
611
645
  type: z.ZodDefault<z.ZodLiteral<"implicit">>;
612
646
  authorizationUrl: z.ZodDefault<z.ZodString>;
@@ -621,6 +655,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
621
655
  authorizationUrl: string;
622
656
  'x-scalar-redirect-uri': string;
623
657
  'x-scalar-security-query'?: Record<string, string> | undefined;
658
+ 'x-tokenName'?: string | undefined;
624
659
  }, {
625
660
  type?: "implicit" | undefined;
626
661
  token?: string | undefined;
@@ -629,6 +664,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
629
664
  selectedScopes?: string[] | undefined;
630
665
  'x-scalar-client-id'?: string | undefined;
631
666
  'x-scalar-security-query'?: Record<string, string> | undefined;
667
+ 'x-tokenName'?: string | undefined;
632
668
  authorizationUrl?: string | undefined;
633
669
  'x-scalar-redirect-uri'?: string | undefined;
634
670
  }>>;
@@ -650,6 +686,8 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
650
686
  token: z.ZodDefault<z.ZodString>;
651
687
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
652
688
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
689
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
690
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
653
691
  }, {
654
692
  type: z.ZodDefault<z.ZodLiteral<"password">>;
655
693
  tokenUrl: z.ZodDefault<z.ZodString>;
@@ -668,6 +706,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
668
706
  tokenUrl: string;
669
707
  clientSecret: string;
670
708
  'x-scalar-security-query'?: Record<string, string> | undefined;
709
+ 'x-tokenName'?: string | undefined;
671
710
  }, {
672
711
  type?: "password" | undefined;
673
712
  username?: string | undefined;
@@ -678,6 +717,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
678
717
  selectedScopes?: string[] | undefined;
679
718
  'x-scalar-client-id'?: string | undefined;
680
719
  'x-scalar-security-query'?: Record<string, string> | undefined;
720
+ 'x-tokenName'?: string | undefined;
681
721
  tokenUrl?: string | undefined;
682
722
  clientSecret?: string | undefined;
683
723
  }>>;
@@ -699,6 +739,8 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
699
739
  token: z.ZodDefault<z.ZodString>;
700
740
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
701
741
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
742
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
743
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
702
744
  }, {
703
745
  type: z.ZodDefault<z.ZodLiteral<"clientCredentials">>;
704
746
  tokenUrl: z.ZodDefault<z.ZodString>;
@@ -713,6 +755,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
713
755
  tokenUrl: string;
714
756
  clientSecret: string;
715
757
  'x-scalar-security-query'?: Record<string, string> | undefined;
758
+ 'x-tokenName'?: string | undefined;
716
759
  }, {
717
760
  type?: "clientCredentials" | undefined;
718
761
  token?: string | undefined;
@@ -721,6 +764,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
721
764
  selectedScopes?: string[] | undefined;
722
765
  'x-scalar-client-id'?: string | undefined;
723
766
  'x-scalar-security-query'?: Record<string, string> | undefined;
767
+ 'x-tokenName'?: string | undefined;
724
768
  tokenUrl?: string | undefined;
725
769
  clientSecret?: string | undefined;
726
770
  }>>;
@@ -742,6 +786,8 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
742
786
  token: z.ZodDefault<z.ZodString>;
743
787
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
744
788
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
789
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
790
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
745
791
  }, {
746
792
  type: z.ZodDefault<z.ZodLiteral<"authorizationCode">>;
747
793
  authorizationUrl: z.ZodDefault<z.ZodString>;
@@ -762,6 +808,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
762
808
  clientSecret: string;
763
809
  'x-usePkce': "SHA-256" | "plain" | "no";
764
810
  'x-scalar-security-query'?: Record<string, string> | undefined;
811
+ 'x-tokenName'?: string | undefined;
765
812
  }, {
766
813
  type?: "authorizationCode" | undefined;
767
814
  token?: string | undefined;
@@ -770,6 +817,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
770
817
  selectedScopes?: string[] | undefined;
771
818
  'x-scalar-client-id'?: string | undefined;
772
819
  'x-scalar-security-query'?: Record<string, string> | undefined;
820
+ 'x-tokenName'?: string | undefined;
773
821
  authorizationUrl?: string | undefined;
774
822
  'x-scalar-redirect-uri'?: string | undefined;
775
823
  tokenUrl?: string | undefined;
@@ -789,6 +837,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
789
837
  tokenUrl: string;
790
838
  clientSecret: string;
791
839
  'x-scalar-security-query'?: Record<string, string> | undefined;
840
+ 'x-tokenName'?: string | undefined;
792
841
  } | undefined;
793
842
  implicit?: {
794
843
  type: "implicit";
@@ -800,6 +849,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
800
849
  authorizationUrl: string;
801
850
  'x-scalar-redirect-uri': string;
802
851
  'x-scalar-security-query'?: Record<string, string> | undefined;
852
+ 'x-tokenName'?: string | undefined;
803
853
  } | undefined;
804
854
  clientCredentials?: {
805
855
  type: "clientCredentials";
@@ -811,6 +861,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
811
861
  tokenUrl: string;
812
862
  clientSecret: string;
813
863
  'x-scalar-security-query'?: Record<string, string> | undefined;
864
+ 'x-tokenName'?: string | undefined;
814
865
  } | undefined;
815
866
  authorizationCode?: {
816
867
  type: "authorizationCode";
@@ -825,6 +876,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
825
876
  clientSecret: string;
826
877
  'x-usePkce': "SHA-256" | "plain" | "no";
827
878
  'x-scalar-security-query'?: Record<string, string> | undefined;
879
+ 'x-tokenName'?: string | undefined;
828
880
  } | undefined;
829
881
  }, {
830
882
  password?: {
@@ -837,6 +889,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
837
889
  selectedScopes?: string[] | undefined;
838
890
  'x-scalar-client-id'?: string | undefined;
839
891
  'x-scalar-security-query'?: Record<string, string> | undefined;
892
+ 'x-tokenName'?: string | undefined;
840
893
  tokenUrl?: string | undefined;
841
894
  clientSecret?: string | undefined;
842
895
  } | undefined;
@@ -848,6 +901,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
848
901
  selectedScopes?: string[] | undefined;
849
902
  'x-scalar-client-id'?: string | undefined;
850
903
  'x-scalar-security-query'?: Record<string, string> | undefined;
904
+ 'x-tokenName'?: string | undefined;
851
905
  authorizationUrl?: string | undefined;
852
906
  'x-scalar-redirect-uri'?: string | undefined;
853
907
  } | undefined;
@@ -859,6 +913,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
859
913
  selectedScopes?: string[] | undefined;
860
914
  'x-scalar-client-id'?: string | undefined;
861
915
  'x-scalar-security-query'?: Record<string, string> | undefined;
916
+ 'x-tokenName'?: string | undefined;
862
917
  tokenUrl?: string | undefined;
863
918
  clientSecret?: string | undefined;
864
919
  } | undefined;
@@ -870,6 +925,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
870
925
  selectedScopes?: string[] | undefined;
871
926
  'x-scalar-client-id'?: string | undefined;
872
927
  'x-scalar-security-query'?: Record<string, string> | undefined;
928
+ 'x-tokenName'?: string | undefined;
873
929
  authorizationUrl?: string | undefined;
874
930
  'x-scalar-redirect-uri'?: string | undefined;
875
931
  tokenUrl?: string | undefined;
@@ -892,6 +948,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
892
948
  tokenUrl: string;
893
949
  clientSecret: string;
894
950
  'x-scalar-security-query'?: Record<string, string> | undefined;
951
+ 'x-tokenName'?: string | undefined;
895
952
  } | undefined;
896
953
  implicit?: {
897
954
  type: "implicit";
@@ -903,6 +960,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
903
960
  authorizationUrl: string;
904
961
  'x-scalar-redirect-uri': string;
905
962
  'x-scalar-security-query'?: Record<string, string> | undefined;
963
+ 'x-tokenName'?: string | undefined;
906
964
  } | undefined;
907
965
  clientCredentials?: {
908
966
  type: "clientCredentials";
@@ -914,6 +972,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
914
972
  tokenUrl: string;
915
973
  clientSecret: string;
916
974
  'x-scalar-security-query'?: Record<string, string> | undefined;
975
+ 'x-tokenName'?: string | undefined;
917
976
  } | undefined;
918
977
  authorizationCode?: {
919
978
  type: "authorizationCode";
@@ -928,6 +987,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
928
987
  clientSecret: string;
929
988
  'x-usePkce': "SHA-256" | "plain" | "no";
930
989
  'x-scalar-security-query'?: Record<string, string> | undefined;
990
+ 'x-tokenName'?: string | undefined;
931
991
  } | undefined;
932
992
  };
933
993
  description?: string | undefined;
@@ -947,6 +1007,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
947
1007
  selectedScopes?: string[] | undefined;
948
1008
  'x-scalar-client-id'?: string | undefined;
949
1009
  'x-scalar-security-query'?: Record<string, string> | undefined;
1010
+ 'x-tokenName'?: string | undefined;
950
1011
  tokenUrl?: string | undefined;
951
1012
  clientSecret?: string | undefined;
952
1013
  } | undefined;
@@ -958,6 +1019,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
958
1019
  selectedScopes?: string[] | undefined;
959
1020
  'x-scalar-client-id'?: string | undefined;
960
1021
  'x-scalar-security-query'?: Record<string, string> | undefined;
1022
+ 'x-tokenName'?: string | undefined;
961
1023
  authorizationUrl?: string | undefined;
962
1024
  'x-scalar-redirect-uri'?: string | undefined;
963
1025
  } | undefined;
@@ -969,6 +1031,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
969
1031
  selectedScopes?: string[] | undefined;
970
1032
  'x-scalar-client-id'?: string | undefined;
971
1033
  'x-scalar-security-query'?: Record<string, string> | undefined;
1034
+ 'x-tokenName'?: string | undefined;
972
1035
  tokenUrl?: string | undefined;
973
1036
  clientSecret?: string | undefined;
974
1037
  } | undefined;
@@ -980,6 +1043,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
980
1043
  selectedScopes?: string[] | undefined;
981
1044
  'x-scalar-client-id'?: string | undefined;
982
1045
  'x-scalar-security-query'?: Record<string, string> | undefined;
1046
+ 'x-tokenName'?: string | undefined;
983
1047
  authorizationUrl?: string | undefined;
984
1048
  'x-scalar-redirect-uri'?: string | undefined;
985
1049
  tokenUrl?: string | undefined;
@@ -1130,6 +1194,8 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1130
1194
  token: z.ZodDefault<z.ZodString>;
1131
1195
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
1132
1196
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1197
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
1198
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
1133
1199
  }, {
1134
1200
  type: z.ZodDefault<z.ZodLiteral<"implicit">>;
1135
1201
  authorizationUrl: z.ZodDefault<z.ZodString>;
@@ -1144,6 +1210,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1144
1210
  authorizationUrl: string;
1145
1211
  'x-scalar-redirect-uri': string;
1146
1212
  'x-scalar-security-query'?: Record<string, string> | undefined;
1213
+ 'x-tokenName'?: string | undefined;
1147
1214
  }, {
1148
1215
  type?: "implicit" | undefined;
1149
1216
  token?: string | undefined;
@@ -1152,6 +1219,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1152
1219
  selectedScopes?: string[] | undefined;
1153
1220
  'x-scalar-client-id'?: string | undefined;
1154
1221
  'x-scalar-security-query'?: Record<string, string> | undefined;
1222
+ 'x-tokenName'?: string | undefined;
1155
1223
  authorizationUrl?: string | undefined;
1156
1224
  'x-scalar-redirect-uri'?: string | undefined;
1157
1225
  }>>;
@@ -1173,6 +1241,8 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1173
1241
  token: z.ZodDefault<z.ZodString>;
1174
1242
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
1175
1243
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1244
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
1245
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
1176
1246
  }, {
1177
1247
  type: z.ZodDefault<z.ZodLiteral<"password">>;
1178
1248
  tokenUrl: z.ZodDefault<z.ZodString>;
@@ -1191,6 +1261,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1191
1261
  tokenUrl: string;
1192
1262
  clientSecret: string;
1193
1263
  'x-scalar-security-query'?: Record<string, string> | undefined;
1264
+ 'x-tokenName'?: string | undefined;
1194
1265
  }, {
1195
1266
  type?: "password" | undefined;
1196
1267
  username?: string | undefined;
@@ -1201,6 +1272,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1201
1272
  selectedScopes?: string[] | undefined;
1202
1273
  'x-scalar-client-id'?: string | undefined;
1203
1274
  'x-scalar-security-query'?: Record<string, string> | undefined;
1275
+ 'x-tokenName'?: string | undefined;
1204
1276
  tokenUrl?: string | undefined;
1205
1277
  clientSecret?: string | undefined;
1206
1278
  }>>;
@@ -1222,6 +1294,8 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1222
1294
  token: z.ZodDefault<z.ZodString>;
1223
1295
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
1224
1296
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1297
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
1298
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
1225
1299
  }, {
1226
1300
  type: z.ZodDefault<z.ZodLiteral<"clientCredentials">>;
1227
1301
  tokenUrl: z.ZodDefault<z.ZodString>;
@@ -1236,6 +1310,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1236
1310
  tokenUrl: string;
1237
1311
  clientSecret: string;
1238
1312
  'x-scalar-security-query'?: Record<string, string> | undefined;
1313
+ 'x-tokenName'?: string | undefined;
1239
1314
  }, {
1240
1315
  type?: "clientCredentials" | undefined;
1241
1316
  token?: string | undefined;
@@ -1244,6 +1319,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1244
1319
  selectedScopes?: string[] | undefined;
1245
1320
  'x-scalar-client-id'?: string | undefined;
1246
1321
  'x-scalar-security-query'?: Record<string, string> | undefined;
1322
+ 'x-tokenName'?: string | undefined;
1247
1323
  tokenUrl?: string | undefined;
1248
1324
  clientSecret?: string | undefined;
1249
1325
  }>>;
@@ -1265,6 +1341,8 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1265
1341
  token: z.ZodDefault<z.ZodString>;
1266
1342
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
1267
1343
  'x-scalar-security-query': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1344
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
1345
+ 'x-tokenName': z.ZodOptional<z.ZodString>;
1268
1346
  }, {
1269
1347
  type: z.ZodDefault<z.ZodLiteral<"authorizationCode">>;
1270
1348
  authorizationUrl: z.ZodDefault<z.ZodString>;
@@ -1285,6 +1363,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1285
1363
  clientSecret: string;
1286
1364
  'x-usePkce': "SHA-256" | "plain" | "no";
1287
1365
  'x-scalar-security-query'?: Record<string, string> | undefined;
1366
+ 'x-tokenName'?: string | undefined;
1288
1367
  }, {
1289
1368
  type?: "authorizationCode" | undefined;
1290
1369
  token?: string | undefined;
@@ -1293,6 +1372,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1293
1372
  selectedScopes?: string[] | undefined;
1294
1373
  'x-scalar-client-id'?: string | undefined;
1295
1374
  'x-scalar-security-query'?: Record<string, string> | undefined;
1375
+ 'x-tokenName'?: string | undefined;
1296
1376
  authorizationUrl?: string | undefined;
1297
1377
  'x-scalar-redirect-uri'?: string | undefined;
1298
1378
  tokenUrl?: string | undefined;
@@ -1312,6 +1392,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1312
1392
  tokenUrl: string;
1313
1393
  clientSecret: string;
1314
1394
  'x-scalar-security-query'?: Record<string, string> | undefined;
1395
+ 'x-tokenName'?: string | undefined;
1315
1396
  } | undefined;
1316
1397
  implicit?: {
1317
1398
  type: "implicit";
@@ -1323,6 +1404,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1323
1404
  authorizationUrl: string;
1324
1405
  'x-scalar-redirect-uri': string;
1325
1406
  'x-scalar-security-query'?: Record<string, string> | undefined;
1407
+ 'x-tokenName'?: string | undefined;
1326
1408
  } | undefined;
1327
1409
  clientCredentials?: {
1328
1410
  type: "clientCredentials";
@@ -1334,6 +1416,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1334
1416
  tokenUrl: string;
1335
1417
  clientSecret: string;
1336
1418
  'x-scalar-security-query'?: Record<string, string> | undefined;
1419
+ 'x-tokenName'?: string | undefined;
1337
1420
  } | undefined;
1338
1421
  authorizationCode?: {
1339
1422
  type: "authorizationCode";
@@ -1348,6 +1431,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1348
1431
  clientSecret: string;
1349
1432
  'x-usePkce': "SHA-256" | "plain" | "no";
1350
1433
  'x-scalar-security-query'?: Record<string, string> | undefined;
1434
+ 'x-tokenName'?: string | undefined;
1351
1435
  } | undefined;
1352
1436
  }, {
1353
1437
  password?: {
@@ -1360,6 +1444,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1360
1444
  selectedScopes?: string[] | undefined;
1361
1445
  'x-scalar-client-id'?: string | undefined;
1362
1446
  'x-scalar-security-query'?: Record<string, string> | undefined;
1447
+ 'x-tokenName'?: string | undefined;
1363
1448
  tokenUrl?: string | undefined;
1364
1449
  clientSecret?: string | undefined;
1365
1450
  } | undefined;
@@ -1371,6 +1456,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1371
1456
  selectedScopes?: string[] | undefined;
1372
1457
  'x-scalar-client-id'?: string | undefined;
1373
1458
  'x-scalar-security-query'?: Record<string, string> | undefined;
1459
+ 'x-tokenName'?: string | undefined;
1374
1460
  authorizationUrl?: string | undefined;
1375
1461
  'x-scalar-redirect-uri'?: string | undefined;
1376
1462
  } | undefined;
@@ -1382,6 +1468,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1382
1468
  selectedScopes?: string[] | undefined;
1383
1469
  'x-scalar-client-id'?: string | undefined;
1384
1470
  'x-scalar-security-query'?: Record<string, string> | undefined;
1471
+ 'x-tokenName'?: string | undefined;
1385
1472
  tokenUrl?: string | undefined;
1386
1473
  clientSecret?: string | undefined;
1387
1474
  } | undefined;
@@ -1393,6 +1480,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1393
1480
  selectedScopes?: string[] | undefined;
1394
1481
  'x-scalar-client-id'?: string | undefined;
1395
1482
  'x-scalar-security-query'?: Record<string, string> | undefined;
1483
+ 'x-tokenName'?: string | undefined;
1396
1484
  authorizationUrl?: string | undefined;
1397
1485
  'x-scalar-redirect-uri'?: string | undefined;
1398
1486
  tokenUrl?: string | undefined;
@@ -1421,6 +1509,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1421
1509
  tokenUrl: string;
1422
1510
  clientSecret: string;
1423
1511
  'x-scalar-security-query'?: Record<string, string> | undefined;
1512
+ 'x-tokenName'?: string | undefined;
1424
1513
  } | undefined;
1425
1514
  implicit?: {
1426
1515
  type: "implicit";
@@ -1432,6 +1521,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1432
1521
  authorizationUrl: string;
1433
1522
  'x-scalar-redirect-uri': string;
1434
1523
  'x-scalar-security-query'?: Record<string, string> | undefined;
1524
+ 'x-tokenName'?: string | undefined;
1435
1525
  } | undefined;
1436
1526
  clientCredentials?: {
1437
1527
  type: "clientCredentials";
@@ -1443,6 +1533,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1443
1533
  tokenUrl: string;
1444
1534
  clientSecret: string;
1445
1535
  'x-scalar-security-query'?: Record<string, string> | undefined;
1536
+ 'x-tokenName'?: string | undefined;
1446
1537
  } | undefined;
1447
1538
  authorizationCode?: {
1448
1539
  type: "authorizationCode";
@@ -1457,6 +1548,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1457
1548
  clientSecret: string;
1458
1549
  'x-usePkce': "SHA-256" | "plain" | "no";
1459
1550
  'x-scalar-security-query'?: Record<string, string> | undefined;
1551
+ 'x-tokenName'?: string | undefined;
1460
1552
  } | undefined;
1461
1553
  };
1462
1554
  description?: string | undefined;
@@ -1478,6 +1570,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1478
1570
  selectedScopes?: string[] | undefined;
1479
1571
  'x-scalar-client-id'?: string | undefined;
1480
1572
  'x-scalar-security-query'?: Record<string, string> | undefined;
1573
+ 'x-tokenName'?: string | undefined;
1481
1574
  tokenUrl?: string | undefined;
1482
1575
  clientSecret?: string | undefined;
1483
1576
  } | undefined;
@@ -1489,6 +1582,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1489
1582
  selectedScopes?: string[] | undefined;
1490
1583
  'x-scalar-client-id'?: string | undefined;
1491
1584
  'x-scalar-security-query'?: Record<string, string> | undefined;
1585
+ 'x-tokenName'?: string | undefined;
1492
1586
  authorizationUrl?: string | undefined;
1493
1587
  'x-scalar-redirect-uri'?: string | undefined;
1494
1588
  } | undefined;
@@ -1500,6 +1594,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1500
1594
  selectedScopes?: string[] | undefined;
1501
1595
  'x-scalar-client-id'?: string | undefined;
1502
1596
  'x-scalar-security-query'?: Record<string, string> | undefined;
1597
+ 'x-tokenName'?: string | undefined;
1503
1598
  tokenUrl?: string | undefined;
1504
1599
  clientSecret?: string | undefined;
1505
1600
  } | undefined;
@@ -1511,6 +1606,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1511
1606
  selectedScopes?: string[] | undefined;
1512
1607
  'x-scalar-client-id'?: string | undefined;
1513
1608
  'x-scalar-security-query'?: Record<string, string> | undefined;
1609
+ 'x-tokenName'?: string | undefined;
1514
1610
  authorizationUrl?: string | undefined;
1515
1611
  'x-scalar-redirect-uri'?: string | undefined;
1516
1612
  tokenUrl?: string | undefined;
@@ -1559,6 +1655,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1559
1655
  tokenUrl: string;
1560
1656
  clientSecret: string;
1561
1657
  'x-scalar-security-query'?: Record<string, string> | undefined;
1658
+ 'x-tokenName'?: string | undefined;
1562
1659
  } | undefined;
1563
1660
  implicit?: {
1564
1661
  type: "implicit";
@@ -1570,6 +1667,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1570
1667
  authorizationUrl: string;
1571
1668
  'x-scalar-redirect-uri': string;
1572
1669
  'x-scalar-security-query'?: Record<string, string> | undefined;
1670
+ 'x-tokenName'?: string | undefined;
1573
1671
  } | undefined;
1574
1672
  clientCredentials?: {
1575
1673
  type: "clientCredentials";
@@ -1581,6 +1679,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1581
1679
  tokenUrl: string;
1582
1680
  clientSecret: string;
1583
1681
  'x-scalar-security-query'?: Record<string, string> | undefined;
1682
+ 'x-tokenName'?: string | undefined;
1584
1683
  } | undefined;
1585
1684
  authorizationCode?: {
1586
1685
  type: "authorizationCode";
@@ -1595,6 +1694,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1595
1694
  clientSecret: string;
1596
1695
  'x-usePkce': "SHA-256" | "plain" | "no";
1597
1696
  'x-scalar-security-query'?: Record<string, string> | undefined;
1697
+ 'x-tokenName'?: string | undefined;
1598
1698
  } | undefined;
1599
1699
  };
1600
1700
  description?: string | undefined;
@@ -1640,6 +1740,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1640
1740
  selectedScopes?: string[] | undefined;
1641
1741
  'x-scalar-client-id'?: string | undefined;
1642
1742
  'x-scalar-security-query'?: Record<string, string> | undefined;
1743
+ 'x-tokenName'?: string | undefined;
1643
1744
  tokenUrl?: string | undefined;
1644
1745
  clientSecret?: string | undefined;
1645
1746
  } | undefined;
@@ -1651,6 +1752,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1651
1752
  selectedScopes?: string[] | undefined;
1652
1753
  'x-scalar-client-id'?: string | undefined;
1653
1754
  'x-scalar-security-query'?: Record<string, string> | undefined;
1755
+ 'x-tokenName'?: string | undefined;
1654
1756
  authorizationUrl?: string | undefined;
1655
1757
  'x-scalar-redirect-uri'?: string | undefined;
1656
1758
  } | undefined;
@@ -1662,6 +1764,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1662
1764
  selectedScopes?: string[] | undefined;
1663
1765
  'x-scalar-client-id'?: string | undefined;
1664
1766
  'x-scalar-security-query'?: Record<string, string> | undefined;
1767
+ 'x-tokenName'?: string | undefined;
1665
1768
  tokenUrl?: string | undefined;
1666
1769
  clientSecret?: string | undefined;
1667
1770
  } | undefined;
@@ -1673,6 +1776,7 @@ export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<
1673
1776
  selectedScopes?: string[] | undefined;
1674
1777
  'x-scalar-client-id'?: string | undefined;
1675
1778
  'x-scalar-security-query'?: Record<string, string> | undefined;
1779
+ 'x-tokenName'?: string | undefined;
1676
1780
  authorizationUrl?: string | undefined;
1677
1781
  'x-scalar-redirect-uri'?: string | undefined;
1678
1782
  tokenUrl?: 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,CAAC,CAAA;AAwCvE,0CAA0C;AAC1C,eAAO,MAAM,WAAW,qCAAsC,CAAA;AA8C9D,eAAO,MAAM,mBAAmB;;;;IAzC9B,4CAA4C;;IAE5C,6FAA6F;;;YA9B7F;;;eAGG;;YAEH;;;eAGG;;;YAGH,oEAAoE;;YAEpE,qBAAqB;;YAErB,2HAA2H;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAf3H;;;eAGG;;YAEH;;;eAGG;;;YAGH,oEAAoE;;YAEpE,qBAAqB;;YAErB,2HAA2H;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;YAErB,2HAA2H;;YAE3H,0FAA0F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAjB1F;;;eAGG;;YAEH;;;eAGG;;;YAGH,oEAAoE;;YAEpE,qBAAqB;;YAErB,2HAA2H;;YAE3H,0FAA0F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAjB1F;;;eAGG;;YAEH;;;eAGG;;;YAGH,oEAAoE;;YAEpE,qBAAqB;;YAErB,2HAA2H;;YAE3H,0FAA0F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA1G1F,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoNxE,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"}
@@ -69,7 +69,9 @@ const flowsCommon = z.object({
69
69
  /** The auth token */
70
70
  "token": z.string().default(""),
71
71
  /** Additional query parameters for the OAuth authorization request. Example: { prompt: 'consent', audience: 'scalar' }. */
72
- "x-scalar-security-query": z.record(z.string(), z.string()).optional()
72
+ "x-scalar-security-query": z.record(z.string(), z.string()).optional(),
73
+ /** Extension to specify custom token name in the response (defaults to 'access_token') */
74
+ "x-tokenName": z.string().optional()
73
75
  });
74
76
  const defaultRedirectUri = typeof window !== "undefined" ? window.location.origin + window.location.pathname : "";
75
77
  const pkceOptions = ["SHA-256", "plain", "no"];
@@ -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})\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>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AAwB;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;",
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,EACjC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC9B,CAAC;AAEM,MAAM,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B,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.7",
19
+ "version": "0.2.8",
20
20
  "engines": {
21
21
  "node": ">=20"
22
22
  },