@scalar/oas-utils 0.2.115 → 0.2.116
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
|
@@ -122,7 +122,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
122
122
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
123
123
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
124
124
|
*/
|
|
125
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
125
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
126
126
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
127
127
|
/** Extension to save the client Id associated with an oauth flow */
|
|
128
128
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -145,7 +145,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
145
145
|
type: "implicit";
|
|
146
146
|
token?: string | undefined;
|
|
147
147
|
refreshUrl?: string | undefined;
|
|
148
|
-
scopes?:
|
|
148
|
+
scopes?: unknown;
|
|
149
149
|
selectedScopes?: string[] | undefined;
|
|
150
150
|
'x-scalar-client-id'?: string | undefined;
|
|
151
151
|
authorizationUrl?: string | undefined;
|
|
@@ -161,7 +161,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
161
161
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
162
162
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
163
163
|
*/
|
|
164
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
164
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
165
165
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
166
166
|
/** Extension to save the client Id associated with an oauth flow */
|
|
167
167
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -190,7 +190,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
190
190
|
password?: string | undefined;
|
|
191
191
|
token?: string | undefined;
|
|
192
192
|
refreshUrl?: string | undefined;
|
|
193
|
-
scopes?:
|
|
193
|
+
scopes?: unknown;
|
|
194
194
|
selectedScopes?: string[] | undefined;
|
|
195
195
|
'x-scalar-client-id'?: string | undefined;
|
|
196
196
|
tokenUrl?: string | undefined;
|
|
@@ -206,7 +206,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
206
206
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
207
207
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
208
208
|
*/
|
|
209
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
209
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
210
210
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
211
211
|
/** Extension to save the client Id associated with an oauth flow */
|
|
212
212
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -229,7 +229,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
229
229
|
type: "clientCredentials";
|
|
230
230
|
token?: string | undefined;
|
|
231
231
|
refreshUrl?: string | undefined;
|
|
232
|
-
scopes?:
|
|
232
|
+
scopes?: unknown;
|
|
233
233
|
selectedScopes?: string[] | undefined;
|
|
234
234
|
'x-scalar-client-id'?: string | undefined;
|
|
235
235
|
tokenUrl?: string | undefined;
|
|
@@ -245,7 +245,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
245
245
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
246
246
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
247
247
|
*/
|
|
248
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
248
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
249
249
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
250
250
|
/** Extension to save the client Id associated with an oauth flow */
|
|
251
251
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -279,7 +279,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
279
279
|
type: "authorizationCode";
|
|
280
280
|
token?: string | undefined;
|
|
281
281
|
refreshUrl?: string | undefined;
|
|
282
|
-
scopes?:
|
|
282
|
+
scopes?: unknown;
|
|
283
283
|
selectedScopes?: string[] | undefined;
|
|
284
284
|
'x-scalar-client-id'?: string | undefined;
|
|
285
285
|
authorizationUrl?: string | undefined;
|
|
@@ -341,7 +341,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
341
341
|
password?: string | undefined;
|
|
342
342
|
token?: string | undefined;
|
|
343
343
|
refreshUrl?: string | undefined;
|
|
344
|
-
scopes?:
|
|
344
|
+
scopes?: unknown;
|
|
345
345
|
selectedScopes?: string[] | undefined;
|
|
346
346
|
'x-scalar-client-id'?: string | undefined;
|
|
347
347
|
tokenUrl?: string | undefined;
|
|
@@ -351,7 +351,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
351
351
|
type: "implicit";
|
|
352
352
|
token?: string | undefined;
|
|
353
353
|
refreshUrl?: string | undefined;
|
|
354
|
-
scopes?:
|
|
354
|
+
scopes?: unknown;
|
|
355
355
|
selectedScopes?: string[] | undefined;
|
|
356
356
|
'x-scalar-client-id'?: string | undefined;
|
|
357
357
|
authorizationUrl?: string | undefined;
|
|
@@ -361,7 +361,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
361
361
|
type: "clientCredentials";
|
|
362
362
|
token?: string | undefined;
|
|
363
363
|
refreshUrl?: string | undefined;
|
|
364
|
-
scopes?:
|
|
364
|
+
scopes?: unknown;
|
|
365
365
|
selectedScopes?: string[] | undefined;
|
|
366
366
|
'x-scalar-client-id'?: string | undefined;
|
|
367
367
|
tokenUrl?: string | undefined;
|
|
@@ -371,7 +371,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
371
371
|
type: "authorizationCode";
|
|
372
372
|
token?: string | undefined;
|
|
373
373
|
refreshUrl?: string | undefined;
|
|
374
|
-
scopes?:
|
|
374
|
+
scopes?: unknown;
|
|
375
375
|
selectedScopes?: string[] | undefined;
|
|
376
376
|
'x-scalar-client-id'?: string | undefined;
|
|
377
377
|
authorizationUrl?: string | undefined;
|
|
@@ -449,7 +449,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
449
449
|
password?: string | undefined;
|
|
450
450
|
token?: string | undefined;
|
|
451
451
|
refreshUrl?: string | undefined;
|
|
452
|
-
scopes?:
|
|
452
|
+
scopes?: unknown;
|
|
453
453
|
selectedScopes?: string[] | undefined;
|
|
454
454
|
'x-scalar-client-id'?: string | undefined;
|
|
455
455
|
tokenUrl?: string | undefined;
|
|
@@ -459,7 +459,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
459
459
|
type: "implicit";
|
|
460
460
|
token?: string | undefined;
|
|
461
461
|
refreshUrl?: string | undefined;
|
|
462
|
-
scopes?:
|
|
462
|
+
scopes?: unknown;
|
|
463
463
|
selectedScopes?: string[] | undefined;
|
|
464
464
|
'x-scalar-client-id'?: string | undefined;
|
|
465
465
|
authorizationUrl?: string | undefined;
|
|
@@ -469,7 +469,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
469
469
|
type: "clientCredentials";
|
|
470
470
|
token?: string | undefined;
|
|
471
471
|
refreshUrl?: string | undefined;
|
|
472
|
-
scopes?:
|
|
472
|
+
scopes?: unknown;
|
|
473
473
|
selectedScopes?: string[] | undefined;
|
|
474
474
|
'x-scalar-client-id'?: string | undefined;
|
|
475
475
|
tokenUrl?: string | undefined;
|
|
@@ -479,7 +479,7 @@ export declare const securityOauthSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
479
479
|
type: "authorizationCode";
|
|
480
480
|
token?: string | undefined;
|
|
481
481
|
refreshUrl?: string | undefined;
|
|
482
|
-
scopes?:
|
|
482
|
+
scopes?: unknown;
|
|
483
483
|
selectedScopes?: string[] | undefined;
|
|
484
484
|
'x-scalar-client-id'?: string | undefined;
|
|
485
485
|
authorizationUrl?: string | undefined;
|
|
@@ -566,7 +566,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
566
566
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
567
567
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
568
568
|
*/
|
|
569
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
569
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
570
570
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
571
571
|
/** Extension to save the client Id associated with an oauth flow */
|
|
572
572
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -589,7 +589,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
589
589
|
type: "implicit";
|
|
590
590
|
token?: string | undefined;
|
|
591
591
|
refreshUrl?: string | undefined;
|
|
592
|
-
scopes?:
|
|
592
|
+
scopes?: unknown;
|
|
593
593
|
selectedScopes?: string[] | undefined;
|
|
594
594
|
'x-scalar-client-id'?: string | undefined;
|
|
595
595
|
authorizationUrl?: string | undefined;
|
|
@@ -605,7 +605,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
605
605
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
606
606
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
607
607
|
*/
|
|
608
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
608
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
609
609
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
610
610
|
/** Extension to save the client Id associated with an oauth flow */
|
|
611
611
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -634,7 +634,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
634
634
|
password?: string | undefined;
|
|
635
635
|
token?: string | undefined;
|
|
636
636
|
refreshUrl?: string | undefined;
|
|
637
|
-
scopes?:
|
|
637
|
+
scopes?: unknown;
|
|
638
638
|
selectedScopes?: string[] | undefined;
|
|
639
639
|
'x-scalar-client-id'?: string | undefined;
|
|
640
640
|
tokenUrl?: string | undefined;
|
|
@@ -650,7 +650,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
650
650
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
651
651
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
652
652
|
*/
|
|
653
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
653
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
654
654
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
655
655
|
/** Extension to save the client Id associated with an oauth flow */
|
|
656
656
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -673,7 +673,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
673
673
|
type: "clientCredentials";
|
|
674
674
|
token?: string | undefined;
|
|
675
675
|
refreshUrl?: string | undefined;
|
|
676
|
-
scopes?:
|
|
676
|
+
scopes?: unknown;
|
|
677
677
|
selectedScopes?: string[] | undefined;
|
|
678
678
|
'x-scalar-client-id'?: string | undefined;
|
|
679
679
|
tokenUrl?: string | undefined;
|
|
@@ -689,7 +689,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
689
689
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
690
690
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
691
691
|
*/
|
|
692
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
692
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
693
693
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
694
694
|
/** Extension to save the client Id associated with an oauth flow */
|
|
695
695
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -723,7 +723,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
723
723
|
type: "authorizationCode";
|
|
724
724
|
token?: string | undefined;
|
|
725
725
|
refreshUrl?: string | undefined;
|
|
726
|
-
scopes?:
|
|
726
|
+
scopes?: unknown;
|
|
727
727
|
selectedScopes?: string[] | undefined;
|
|
728
728
|
'x-scalar-client-id'?: string | undefined;
|
|
729
729
|
authorizationUrl?: string | undefined;
|
|
@@ -785,7 +785,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
785
785
|
password?: string | undefined;
|
|
786
786
|
token?: string | undefined;
|
|
787
787
|
refreshUrl?: string | undefined;
|
|
788
|
-
scopes?:
|
|
788
|
+
scopes?: unknown;
|
|
789
789
|
selectedScopes?: string[] | undefined;
|
|
790
790
|
'x-scalar-client-id'?: string | undefined;
|
|
791
791
|
tokenUrl?: string | undefined;
|
|
@@ -795,7 +795,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
795
795
|
type: "implicit";
|
|
796
796
|
token?: string | undefined;
|
|
797
797
|
refreshUrl?: string | undefined;
|
|
798
|
-
scopes?:
|
|
798
|
+
scopes?: unknown;
|
|
799
799
|
selectedScopes?: string[] | undefined;
|
|
800
800
|
'x-scalar-client-id'?: string | undefined;
|
|
801
801
|
authorizationUrl?: string | undefined;
|
|
@@ -805,7 +805,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
805
805
|
type: "clientCredentials";
|
|
806
806
|
token?: string | undefined;
|
|
807
807
|
refreshUrl?: string | undefined;
|
|
808
|
-
scopes?:
|
|
808
|
+
scopes?: unknown;
|
|
809
809
|
selectedScopes?: string[] | undefined;
|
|
810
810
|
'x-scalar-client-id'?: string | undefined;
|
|
811
811
|
tokenUrl?: string | undefined;
|
|
@@ -815,7 +815,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
815
815
|
type: "authorizationCode";
|
|
816
816
|
token?: string | undefined;
|
|
817
817
|
refreshUrl?: string | undefined;
|
|
818
|
-
scopes?:
|
|
818
|
+
scopes?: unknown;
|
|
819
819
|
selectedScopes?: string[] | undefined;
|
|
820
820
|
'x-scalar-client-id'?: string | undefined;
|
|
821
821
|
authorizationUrl?: string | undefined;
|
|
@@ -885,7 +885,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
885
885
|
password?: string | undefined;
|
|
886
886
|
token?: string | undefined;
|
|
887
887
|
refreshUrl?: string | undefined;
|
|
888
|
-
scopes?:
|
|
888
|
+
scopes?: unknown;
|
|
889
889
|
selectedScopes?: string[] | undefined;
|
|
890
890
|
'x-scalar-client-id'?: string | undefined;
|
|
891
891
|
tokenUrl?: string | undefined;
|
|
@@ -895,7 +895,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
895
895
|
type: "implicit";
|
|
896
896
|
token?: string | undefined;
|
|
897
897
|
refreshUrl?: string | undefined;
|
|
898
|
-
scopes?:
|
|
898
|
+
scopes?: unknown;
|
|
899
899
|
selectedScopes?: string[] | undefined;
|
|
900
900
|
'x-scalar-client-id'?: string | undefined;
|
|
901
901
|
authorizationUrl?: string | undefined;
|
|
@@ -905,7 +905,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
905
905
|
type: "clientCredentials";
|
|
906
906
|
token?: string | undefined;
|
|
907
907
|
refreshUrl?: string | undefined;
|
|
908
|
-
scopes?:
|
|
908
|
+
scopes?: unknown;
|
|
909
909
|
selectedScopes?: string[] | undefined;
|
|
910
910
|
'x-scalar-client-id'?: string | undefined;
|
|
911
911
|
tokenUrl?: string | undefined;
|
|
@@ -915,7 +915,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
915
915
|
type: "authorizationCode";
|
|
916
916
|
token?: string | undefined;
|
|
917
917
|
refreshUrl?: string | undefined;
|
|
918
|
-
scopes?:
|
|
918
|
+
scopes?: unknown;
|
|
919
919
|
selectedScopes?: string[] | undefined;
|
|
920
920
|
'x-scalar-client-id'?: string | undefined;
|
|
921
921
|
authorizationUrl?: string | undefined;
|
|
@@ -1058,7 +1058,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1058
1058
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
1059
1059
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
1060
1060
|
*/
|
|
1061
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
1061
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
1062
1062
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1063
1063
|
/** Extension to save the client Id associated with an oauth flow */
|
|
1064
1064
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -1081,7 +1081,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1081
1081
|
type: "implicit";
|
|
1082
1082
|
token?: string | undefined;
|
|
1083
1083
|
refreshUrl?: string | undefined;
|
|
1084
|
-
scopes?:
|
|
1084
|
+
scopes?: unknown;
|
|
1085
1085
|
selectedScopes?: string[] | undefined;
|
|
1086
1086
|
'x-scalar-client-id'?: string | undefined;
|
|
1087
1087
|
authorizationUrl?: string | undefined;
|
|
@@ -1097,7 +1097,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1097
1097
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
1098
1098
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
1099
1099
|
*/
|
|
1100
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
1100
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
1101
1101
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1102
1102
|
/** Extension to save the client Id associated with an oauth flow */
|
|
1103
1103
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -1126,7 +1126,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1126
1126
|
password?: string | undefined;
|
|
1127
1127
|
token?: string | undefined;
|
|
1128
1128
|
refreshUrl?: string | undefined;
|
|
1129
|
-
scopes?:
|
|
1129
|
+
scopes?: unknown;
|
|
1130
1130
|
selectedScopes?: string[] | undefined;
|
|
1131
1131
|
'x-scalar-client-id'?: string | undefined;
|
|
1132
1132
|
tokenUrl?: string | undefined;
|
|
@@ -1142,7 +1142,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1142
1142
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
1143
1143
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
1144
1144
|
*/
|
|
1145
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
1145
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
1146
1146
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1147
1147
|
/** Extension to save the client Id associated with an oauth flow */
|
|
1148
1148
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -1165,7 +1165,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1165
1165
|
type: "clientCredentials";
|
|
1166
1166
|
token?: string | undefined;
|
|
1167
1167
|
refreshUrl?: string | undefined;
|
|
1168
|
-
scopes?:
|
|
1168
|
+
scopes?: unknown;
|
|
1169
1169
|
selectedScopes?: string[] | undefined;
|
|
1170
1170
|
'x-scalar-client-id'?: string | undefined;
|
|
1171
1171
|
tokenUrl?: string | undefined;
|
|
@@ -1181,7 +1181,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1181
1181
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
1182
1182
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
1183
1183
|
*/
|
|
1184
|
-
scopes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString
|
|
1184
|
+
scopes: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodOptional<z.ZodString>>>>>>;
|
|
1185
1185
|
selectedScopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1186
1186
|
/** Extension to save the client Id associated with an oauth flow */
|
|
1187
1187
|
'x-scalar-client-id': z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -1215,7 +1215,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1215
1215
|
type: "authorizationCode";
|
|
1216
1216
|
token?: string | undefined;
|
|
1217
1217
|
refreshUrl?: string | undefined;
|
|
1218
|
-
scopes?:
|
|
1218
|
+
scopes?: unknown;
|
|
1219
1219
|
selectedScopes?: string[] | undefined;
|
|
1220
1220
|
'x-scalar-client-id'?: string | undefined;
|
|
1221
1221
|
authorizationUrl?: string | undefined;
|
|
@@ -1277,7 +1277,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1277
1277
|
password?: string | undefined;
|
|
1278
1278
|
token?: string | undefined;
|
|
1279
1279
|
refreshUrl?: string | undefined;
|
|
1280
|
-
scopes?:
|
|
1280
|
+
scopes?: unknown;
|
|
1281
1281
|
selectedScopes?: string[] | undefined;
|
|
1282
1282
|
'x-scalar-client-id'?: string | undefined;
|
|
1283
1283
|
tokenUrl?: string | undefined;
|
|
@@ -1287,7 +1287,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1287
1287
|
type: "implicit";
|
|
1288
1288
|
token?: string | undefined;
|
|
1289
1289
|
refreshUrl?: string | undefined;
|
|
1290
|
-
scopes?:
|
|
1290
|
+
scopes?: unknown;
|
|
1291
1291
|
selectedScopes?: string[] | undefined;
|
|
1292
1292
|
'x-scalar-client-id'?: string | undefined;
|
|
1293
1293
|
authorizationUrl?: string | undefined;
|
|
@@ -1297,7 +1297,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1297
1297
|
type: "clientCredentials";
|
|
1298
1298
|
token?: string | undefined;
|
|
1299
1299
|
refreshUrl?: string | undefined;
|
|
1300
|
-
scopes?:
|
|
1300
|
+
scopes?: unknown;
|
|
1301
1301
|
selectedScopes?: string[] | undefined;
|
|
1302
1302
|
'x-scalar-client-id'?: string | undefined;
|
|
1303
1303
|
tokenUrl?: string | undefined;
|
|
@@ -1307,7 +1307,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1307
1307
|
type: "authorizationCode";
|
|
1308
1308
|
token?: string | undefined;
|
|
1309
1309
|
refreshUrl?: string | undefined;
|
|
1310
|
-
scopes?:
|
|
1310
|
+
scopes?: unknown;
|
|
1311
1311
|
selectedScopes?: string[] | undefined;
|
|
1312
1312
|
'x-scalar-client-id'?: string | undefined;
|
|
1313
1313
|
authorizationUrl?: string | undefined;
|
|
@@ -1385,7 +1385,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1385
1385
|
password?: string | undefined;
|
|
1386
1386
|
token?: string | undefined;
|
|
1387
1387
|
refreshUrl?: string | undefined;
|
|
1388
|
-
scopes?:
|
|
1388
|
+
scopes?: unknown;
|
|
1389
1389
|
selectedScopes?: string[] | undefined;
|
|
1390
1390
|
'x-scalar-client-id'?: string | undefined;
|
|
1391
1391
|
tokenUrl?: string | undefined;
|
|
@@ -1395,7 +1395,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1395
1395
|
type: "implicit";
|
|
1396
1396
|
token?: string | undefined;
|
|
1397
1397
|
refreshUrl?: string | undefined;
|
|
1398
|
-
scopes?:
|
|
1398
|
+
scopes?: unknown;
|
|
1399
1399
|
selectedScopes?: string[] | undefined;
|
|
1400
1400
|
'x-scalar-client-id'?: string | undefined;
|
|
1401
1401
|
authorizationUrl?: string | undefined;
|
|
@@ -1405,7 +1405,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1405
1405
|
type: "clientCredentials";
|
|
1406
1406
|
token?: string | undefined;
|
|
1407
1407
|
refreshUrl?: string | undefined;
|
|
1408
|
-
scopes?:
|
|
1408
|
+
scopes?: unknown;
|
|
1409
1409
|
selectedScopes?: string[] | undefined;
|
|
1410
1410
|
'x-scalar-client-id'?: string | undefined;
|
|
1411
1411
|
tokenUrl?: string | undefined;
|
|
@@ -1415,7 +1415,7 @@ export declare const securitySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
1415
1415
|
type: "authorizationCode";
|
|
1416
1416
|
token?: string | undefined;
|
|
1417
1417
|
refreshUrl?: string | undefined;
|
|
1418
|
-
scopes?:
|
|
1418
|
+
scopes?: unknown;
|
|
1419
1419
|
selectedScopes?: string[] | undefined;
|
|
1420
1420
|
'x-scalar-client-id'?: string | undefined;
|
|
1421
1421
|
authorizationUrl?: string | undefined;
|
|
@@ -90,7 +90,7 @@ const flowsCommon = z.object({
|
|
|
90
90
|
* REQUIRED. The available scopes for the OAuth2 security scheme. A map
|
|
91
91
|
* between the scope name and a short description for it. The map MAY be empty.
|
|
92
92
|
*/
|
|
93
|
-
'scopes': z.record(z.string(), z.string().optional().default('')).optional().default({}),
|
|
93
|
+
'scopes': z.record(z.string(), z.string().optional().default('')).optional().default({}).catch({}),
|
|
94
94
|
'selectedScopes': z.array(z.string()).optional().default([]),
|
|
95
95
|
/** Extension to save the client Id associated with an oauth flow */
|
|
96
96
|
'x-scalar-client-id': z.string().optional().default(''),
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"specification",
|
|
17
17
|
"yaml"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.2.
|
|
19
|
+
"version": "0.2.116",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
"vite": "^5.4.10",
|
|
137
137
|
"vitest": "^1.6.0",
|
|
138
138
|
"zod-to-ts": "github:amritk/zod-to-ts#build",
|
|
139
|
+
"@scalar/openapi-parser": "0.10.10",
|
|
139
140
|
"@scalar/build-tooling": "0.1.17",
|
|
140
|
-
"@scalar/openapi-types": "0.1.9"
|
|
141
|
-
"@scalar/openapi-parser": "0.10.10"
|
|
141
|
+
"@scalar/openapi-types": "0.1.9"
|
|
142
142
|
},
|
|
143
143
|
"scripts": {
|
|
144
144
|
"build": "scalar-build-rollup",
|