@scalar/types 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/api-reference/api-reference-configuration.d.ts +20 -20
- package/dist/api-reference/api-reference-configuration.d.ts.map +1 -1
- package/dist/api-reference/api-reference-configuration.js +3 -2
- package/dist/entities/security-scheme.d.ts +1 -1
- package/dist/entities/security-scheme.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @scalar/types
|
|
2
2
|
|
|
3
|
+
## 0.1.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 62c4ce3: feat: SvelteKit API Reference integration
|
|
8
|
+
- @scalar/openapi-types@0.2.1
|
|
9
|
+
|
|
10
|
+
## 0.1.11
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- eb4854d: fix: types of authentication config
|
|
15
|
+
|
|
3
16
|
## 0.1.10
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -205,7 +205,7 @@ export declare const apiClientConfigurationSchema: z.ZodObject<{
|
|
|
205
205
|
/** A string to use one of the color presets */
|
|
206
206
|
theme: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<["alternate", "default", "moon", "purple", "solarized", "bluePlanet", "deepSpace", "saturn", "kepler", "elysiajs", "fastify", "mars", "laserwave", "none"]>>>>;
|
|
207
207
|
/** Integration type identifier */
|
|
208
|
-
_integration: z.ZodOptional<z.ZodNullable<z.ZodEnum<["adonisjs", "docusaurus", "dotnet", "elysiajs", "express", "fastapi", "fastify", "go", "hono", "html", "laravel", "litestar", "nestjs", "nextjs", "nitro", "nuxt", "platformatic", "react", "rust", "vue"]>>>;
|
|
208
|
+
_integration: z.ZodOptional<z.ZodNullable<z.ZodEnum<["adonisjs", "docusaurus", "dotnet", "elysiajs", "express", "fastapi", "fastify", "go", "hono", "html", "laravel", "litestar", "nestjs", "nextjs", "nitro", "nuxt", "platformatic", "react", "rust", "svelte", "vue"]>>>;
|
|
209
209
|
/** onRequestSent is fired when a request is sent */
|
|
210
210
|
onRequestSent: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -225,9 +225,9 @@ export declare const apiClientConfigurationSchema: z.ZodObject<{
|
|
|
225
225
|
authentication?: any;
|
|
226
226
|
baseServerURL?: string | undefined;
|
|
227
227
|
proxyUrl?: string | undefined;
|
|
228
|
-
searchHotKey?: "
|
|
228
|
+
searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
229
229
|
servers?: any[] | undefined;
|
|
230
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
|
|
230
|
+
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
231
231
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
232
232
|
}, {
|
|
233
233
|
url?: string | undefined;
|
|
@@ -244,11 +244,11 @@ export declare const apiClientConfigurationSchema: z.ZodObject<{
|
|
|
244
244
|
baseServerURL?: string | undefined;
|
|
245
245
|
hideClientButton?: unknown;
|
|
246
246
|
proxyUrl?: string | undefined;
|
|
247
|
-
searchHotKey?: "
|
|
247
|
+
searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
248
248
|
servers?: any[] | undefined;
|
|
249
249
|
showSidebar?: unknown;
|
|
250
250
|
theme?: unknown;
|
|
251
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
|
|
251
|
+
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
252
252
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
253
253
|
}>;
|
|
254
254
|
export type ApiClientConfiguration = z.infer<typeof apiClientConfigurationSchema>;
|
|
@@ -382,7 +382,7 @@ declare const _apiReferenceConfigurationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
382
382
|
/** A string to use one of the color presets */
|
|
383
383
|
theme: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<["alternate", "default", "moon", "purple", "solarized", "bluePlanet", "deepSpace", "saturn", "kepler", "elysiajs", "fastify", "mars", "laserwave", "none"]>>>>;
|
|
384
384
|
/** Integration type identifier */
|
|
385
|
-
_integration: z.ZodOptional<z.ZodNullable<z.ZodEnum<["adonisjs", "docusaurus", "dotnet", "elysiajs", "express", "fastapi", "fastify", "go", "hono", "html", "laravel", "litestar", "nestjs", "nextjs", "nitro", "nuxt", "platformatic", "react", "rust", "vue"]>>>;
|
|
385
|
+
_integration: z.ZodOptional<z.ZodNullable<z.ZodEnum<["adonisjs", "docusaurus", "dotnet", "elysiajs", "express", "fastapi", "fastify", "go", "hono", "html", "laravel", "litestar", "nestjs", "nextjs", "nitro", "nuxt", "platformatic", "react", "rust", "svelte", "vue"]>>>;
|
|
386
386
|
/** onRequestSent is fired when a request is sent */
|
|
387
387
|
onRequestSent: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
|
|
388
388
|
}, {
|
|
@@ -665,9 +665,9 @@ declare const _apiReferenceConfigurationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
665
665
|
authentication?: any;
|
|
666
666
|
baseServerURL?: string | undefined;
|
|
667
667
|
proxyUrl?: string | undefined;
|
|
668
|
-
searchHotKey?: "
|
|
668
|
+
searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
669
669
|
servers?: any[] | undefined;
|
|
670
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
|
|
670
|
+
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
671
671
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
672
672
|
proxy?: string | undefined;
|
|
673
673
|
plugins?: ((...args: unknown[]) => {
|
|
@@ -734,11 +734,11 @@ declare const _apiReferenceConfigurationSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
734
734
|
baseServerURL?: string | undefined;
|
|
735
735
|
hideClientButton?: unknown;
|
|
736
736
|
proxyUrl?: string | undefined;
|
|
737
|
-
searchHotKey?: "
|
|
737
|
+
searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
738
738
|
servers?: any[] | undefined;
|
|
739
739
|
showSidebar?: unknown;
|
|
740
740
|
theme?: unknown;
|
|
741
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
|
|
741
|
+
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
742
742
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
743
743
|
layout?: unknown;
|
|
744
744
|
proxy?: string | undefined;
|
|
@@ -930,7 +930,7 @@ export declare const apiReferenceConfigurationSchema: z.ZodEffects<z.ZodObject<z
|
|
|
930
930
|
/** A string to use one of the color presets */
|
|
931
931
|
theme: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodEnum<["alternate", "default", "moon", "purple", "solarized", "bluePlanet", "deepSpace", "saturn", "kepler", "elysiajs", "fastify", "mars", "laserwave", "none"]>>>>;
|
|
932
932
|
/** Integration type identifier */
|
|
933
|
-
_integration: z.ZodOptional<z.ZodNullable<z.ZodEnum<["adonisjs", "docusaurus", "dotnet", "elysiajs", "express", "fastapi", "fastify", "go", "hono", "html", "laravel", "litestar", "nestjs", "nextjs", "nitro", "nuxt", "platformatic", "react", "rust", "vue"]>>>;
|
|
933
|
+
_integration: z.ZodOptional<z.ZodNullable<z.ZodEnum<["adonisjs", "docusaurus", "dotnet", "elysiajs", "express", "fastapi", "fastify", "go", "hono", "html", "laravel", "litestar", "nestjs", "nextjs", "nitro", "nuxt", "platformatic", "react", "rust", "svelte", "vue"]>>>;
|
|
934
934
|
/** onRequestSent is fired when a request is sent */
|
|
935
935
|
onRequestSent: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodVoid>>;
|
|
936
936
|
}, {
|
|
@@ -1213,9 +1213,9 @@ export declare const apiReferenceConfigurationSchema: z.ZodEffects<z.ZodObject<z
|
|
|
1213
1213
|
authentication?: any;
|
|
1214
1214
|
baseServerURL?: string | undefined;
|
|
1215
1215
|
proxyUrl?: string | undefined;
|
|
1216
|
-
searchHotKey?: "
|
|
1216
|
+
searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
1217
1217
|
servers?: any[] | undefined;
|
|
1218
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
|
|
1218
|
+
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
1219
1219
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
1220
1220
|
proxy?: string | undefined;
|
|
1221
1221
|
plugins?: ((...args: unknown[]) => {
|
|
@@ -1282,11 +1282,11 @@ export declare const apiReferenceConfigurationSchema: z.ZodEffects<z.ZodObject<z
|
|
|
1282
1282
|
baseServerURL?: string | undefined;
|
|
1283
1283
|
hideClientButton?: unknown;
|
|
1284
1284
|
proxyUrl?: string | undefined;
|
|
1285
|
-
searchHotKey?: "
|
|
1285
|
+
searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
1286
1286
|
servers?: any[] | undefined;
|
|
1287
1287
|
showSidebar?: unknown;
|
|
1288
1288
|
theme?: unknown;
|
|
1289
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
|
|
1289
|
+
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
1290
1290
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
1291
1291
|
layout?: unknown;
|
|
1292
1292
|
proxy?: string | undefined;
|
|
@@ -1373,9 +1373,9 @@ export declare const apiReferenceConfigurationSchema: z.ZodEffects<z.ZodObject<z
|
|
|
1373
1373
|
authentication?: any;
|
|
1374
1374
|
baseServerURL?: string | undefined;
|
|
1375
1375
|
proxyUrl?: string | undefined;
|
|
1376
|
-
searchHotKey?: "
|
|
1376
|
+
searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
1377
1377
|
servers?: any[] | undefined;
|
|
1378
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
|
|
1378
|
+
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
1379
1379
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
1380
1380
|
proxy?: string | undefined;
|
|
1381
1381
|
plugins?: ((...args: unknown[]) => {
|
|
@@ -1442,11 +1442,11 @@ export declare const apiReferenceConfigurationSchema: z.ZodEffects<z.ZodObject<z
|
|
|
1442
1442
|
baseServerURL?: string | undefined;
|
|
1443
1443
|
hideClientButton?: unknown;
|
|
1444
1444
|
proxyUrl?: string | undefined;
|
|
1445
|
-
searchHotKey?: "
|
|
1445
|
+
searchHotKey?: "o" | "n" | "c" | "r" | "a" | "b" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "p" | "q" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
1446
1446
|
servers?: any[] | undefined;
|
|
1447
1447
|
showSidebar?: unknown;
|
|
1448
1448
|
theme?: unknown;
|
|
1449
|
-
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "vue" | null | undefined;
|
|
1449
|
+
_integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
1450
1450
|
onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
1451
1451
|
layout?: unknown;
|
|
1452
1452
|
proxy?: string | undefined;
|
|
@@ -1509,7 +1509,7 @@ export declare const apiReferenceConfigurationSchema: z.ZodEffects<z.ZodObject<z
|
|
|
1509
1509
|
operationsSorter?: "method" | "alpha" | ((args_0: any, args_1: any, ...args: unknown[]) => number) | undefined;
|
|
1510
1510
|
}>;
|
|
1511
1511
|
/** Configuration after parsing, this is the main type */
|
|
1512
|
-
export type ApiReferenceConfiguration = Omit<z.infer<typeof _apiReferenceConfigurationSchema>, 'proxy' | 'spec'> & {
|
|
1512
|
+
export type ApiReferenceConfiguration = Omit<z.infer<typeof _apiReferenceConfigurationSchema>, 'proxy' | 'spec' | 'authentication'> & {
|
|
1513
1513
|
authentication?: AuthenticationConfiguration;
|
|
1514
1514
|
};
|
|
1515
1515
|
/** Api Config which includes the default config */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-reference-configuration.d.ts","sourceRoot":"","sources":["../../src/api-reference/api-reference-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"api-reference-configuration.d.ts","sourceRoot":"","sources":["../../src/api-reference/api-reference-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAA;AA6EpF,0DAA0D;AAC1D,eAAO,MAAM,uBAAuB;IAClC;;;;;;;;;;;;;;;;;QAiBI;;IAEJ;;;;;;;;;;;;;;;;;;;;QAoBI;;IAEJ;;;;;;OAMG;;IAEH;;;;;;;;;;OAUG;;;;;;;;;;;;EAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAQvE,uCAAuC;AACvC,eAAO,MAAM,4BAA4B;IACvC;;QAEI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AAqD;AACrD,MAAM,MAAM,oCAAoC,GAAG,IAAI,CAAC,oCAAoC,EAAE,SAAS,CAAC,GAAG;IACzG,OAAO,EAAE,CAAC,iBAAiB,GAAG;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,EAAE,CAAA;CACvD,CAAA;AAED,gDAAgD;AAChD,MAAM,MAAM,4BAA4B,GACpC,OAAO,CAAC,yBAAyB,CAAC,GAClC,OAAO,CAAC,oCAAoC,CAAC,GAC7C,OAAO,CAAC,oCAAoC,CAAC,EAAE,GAC/C,OAAO,CAAC,oCAAoC,CAAC,EAAE,CAAA;AAEnD,uEAAuE;AACvE,eAAO,MAAM,0BAA0B,WAC7B,4BAA4B,KACnC,MAAM,IAAI,OAAO,CAAC,oCAAoC,CAC0C,CAAA"}
|
|
@@ -70,6 +70,7 @@ const integrationEnum = z
|
|
|
70
70
|
'platformatic',
|
|
71
71
|
'react',
|
|
72
72
|
'rust',
|
|
73
|
+
'svelte',
|
|
73
74
|
'vue',
|
|
74
75
|
])
|
|
75
76
|
.nullable();
|
|
@@ -204,8 +205,6 @@ const apiClientConfigurationSchema = z.object({
|
|
|
204
205
|
/** onRequestSent is fired when a request is sent */
|
|
205
206
|
onRequestSent: z.function().args(z.string()).returns(z.void()).optional(),
|
|
206
207
|
});
|
|
207
|
-
const OLD_PROXY_URL = 'https://api.scalar.com/request-proxy';
|
|
208
|
-
const NEW_PROXY_URL = 'https://proxy.scalar.com';
|
|
209
208
|
/** Configuration for the Api Client without the transform since it cannot be merged */
|
|
210
209
|
const _apiReferenceConfigurationSchema = apiClientConfigurationSchema.merge(z.object({
|
|
211
210
|
/**
|
|
@@ -423,6 +422,8 @@ const _apiReferenceConfigurationSchema = apiClientConfigurationSchema.merge(z.ob
|
|
|
423
422
|
.union([z.literal('alpha'), z.literal('method'), z.function().args(z.any(), z.any()).returns(z.number())])
|
|
424
423
|
.optional(),
|
|
425
424
|
}));
|
|
425
|
+
const OLD_PROXY_URL = 'https://api.scalar.com/request-proxy';
|
|
426
|
+
const NEW_PROXY_URL = 'https://proxy.scalar.com';
|
|
426
427
|
/** Migrate the configuration through a transform */
|
|
427
428
|
const migrateConfiguration = (_configuration) => {
|
|
428
429
|
const configuration = { ..._configuration };
|
|
@@ -942,7 +942,7 @@ export declare const oasSecuritySchemeSchema: z.ZodUnion<[z.ZodObject<z.objectUt
|
|
|
942
942
|
openIdConnectUrl?: string | undefined;
|
|
943
943
|
}>]>;
|
|
944
944
|
/** Extended security schemes for workspace usage */
|
|
945
|
-
export declare const securitySchemeSchema: z.ZodEffects<z.
|
|
945
|
+
export declare const securitySchemeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
946
946
|
description: z.ZodOptional<z.ZodString>;
|
|
947
947
|
}, {
|
|
948
948
|
type: z.ZodLiteral<"apiKey">;
|
|
@@ -167,7 +167,7 @@ const oasSecuritySchemeSchema = z.union([
|
|
|
167
167
|
]);
|
|
168
168
|
/** Extended security schemes for workspace usage */
|
|
169
169
|
const securitySchemeSchema = z
|
|
170
|
-
.
|
|
170
|
+
.discriminatedUnion('type', [securityApiKeySchema, securityHttpSchema, securityOpenIdSchema, securityOauthSchema])
|
|
171
171
|
.transform((data) => {
|
|
172
172
|
// Set selected scopes from x-default-scopes
|
|
173
173
|
if (data.type === 'oauth2' && data['x-default-scopes']?.length) {
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"scalar",
|
|
17
17
|
"references"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.1.
|
|
19
|
+
"version": "0.1.12",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@types/har-format": "^1.2.15",
|
|
70
70
|
"vite": "^5.4.10",
|
|
71
71
|
"vitest": "^1.6.0",
|
|
72
|
-
"@scalar/build-tooling": "0.1.
|
|
72
|
+
"@scalar/build-tooling": "0.1.18"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"build": "scalar-build-rollup",
|