@scalar/api-client 2.3.34 → 2.4.2
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 +67 -0
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +74 -89
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +2 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +19 -18
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +3 -3
- package/dist/components/TopNav/TopNavItem.vue2.js +46 -54
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/hooks/useClientConfig.d.ts +72 -6
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +45 -40
- package/dist/layouts/App/create-api-client-app.d.ts +72 -52
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +144 -104
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +49 -44
- package/dist/layouts/Web/create-api-client-web.d.ts +72 -52
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +72 -52
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +53 -49
- package/dist/libs/electron.d.ts +5 -0
- package/dist/libs/electron.d.ts.map +1 -0
- package/dist/libs/electron.js +4 -0
- package/dist/libs/find-request.d.ts +2 -0
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts +10 -3
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.js +28 -6
- package/dist/libs/send-request/create-request-operation.d.ts +3 -1
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +91 -87
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -0
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +8 -0
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -0
- package/dist/plugins/hooks/usePluginManager.js +10 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +7 -0
- package/dist/plugins/plugin-manager.d.ts +28 -0
- package/dist/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.js +24 -0
- package/dist/store/active-entities.d.ts +2 -0
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +26 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +24 -24
- package/dist/store/store.d.ts +72 -52
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +47 -45
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +37 -34
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +61 -70
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +92 -77
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +59 -65
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +34 -35
- package/dist/views/Request/RequestSection/types/post-response.d.ts +7 -0
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +132 -134
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +82 -70
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -114
- package/package.json +25 -20
package/dist/store/requests.d.ts
CHANGED
|
@@ -39,10 +39,12 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
39
39
|
schema?: unknown;
|
|
40
40
|
content?: unknown;
|
|
41
41
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
42
|
+
explode?: boolean | undefined;
|
|
42
43
|
}[] | undefined;
|
|
43
44
|
requestBody?: any;
|
|
44
45
|
responses?: Record<string, any> | undefined;
|
|
45
46
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
47
|
+
'x-post-response'?: string | undefined;
|
|
46
48
|
'x-codeSamples'?: {
|
|
47
49
|
source: string;
|
|
48
50
|
label?: string | undefined;
|
|
@@ -96,10 +98,12 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
96
98
|
schema?: unknown;
|
|
97
99
|
content?: unknown;
|
|
98
100
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
101
|
+
explode?: boolean | undefined;
|
|
99
102
|
}[] | undefined;
|
|
100
103
|
requestBody?: any;
|
|
101
104
|
responses?: Record<string, any> | undefined;
|
|
102
105
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
106
|
+
'x-post-response'?: string | undefined;
|
|
103
107
|
'x-codeSamples'?: {
|
|
104
108
|
source: string;
|
|
105
109
|
label?: string | undefined;
|
|
@@ -153,10 +157,12 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
153
157
|
schema?: unknown;
|
|
154
158
|
content?: unknown;
|
|
155
159
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
160
|
+
explode?: boolean | undefined;
|
|
156
161
|
}[] | undefined;
|
|
157
162
|
requestBody?: any;
|
|
158
163
|
responses?: Record<string, any> | undefined;
|
|
159
164
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
165
|
+
'x-post-response'?: string | undefined;
|
|
160
166
|
'x-codeSamples'?: {
|
|
161
167
|
source: string;
|
|
162
168
|
label?: string | undefined;
|
|
@@ -173,7 +179,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
173
179
|
lang?: string | undefined;
|
|
174
180
|
}[] | undefined;
|
|
175
181
|
}) => void;
|
|
176
|
-
edit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "
|
|
182
|
+
edit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "path" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "x-post-response" | `requestBody.${string}` | `examples.${number}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.content` | `parameters.${number}.deprecated` | `parameters.${number}.examples` | `parameters.${number}.example` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.style` | `parameters.${number}.required` | `parameters.${number}.explode` | `parameters.${number}.schema` | `parameters.${number}.examples.${number}` | `parameters.${number}.examples.${string}` | `responses.${string}` | `x-codeSamples.${number}` | `x-codeSamples.${number}.lang` | `x-codeSamples.${number}.source` | `x-codeSamples.${number}.label` | `x-code-samples.${number}` | `x-code-samples.${number}.lang` | `x-code-samples.${number}.source` | `x-code-samples.${number}.label` | `x-custom-examples.${number}` | `x-custom-examples.${number}.lang` | `x-custom-examples.${number}.source` | `x-custom-examples.${number}.label`>(uid: (string & import("zod").BRAND<"operation">) | null | undefined, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "path" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" ? {
|
|
177
183
|
uid: string & import("zod").BRAND<"operation">;
|
|
178
184
|
path: string;
|
|
179
185
|
type: "request";
|
|
@@ -209,10 +215,12 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
209
215
|
schema?: unknown;
|
|
210
216
|
content?: unknown;
|
|
211
217
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
218
|
+
explode?: boolean | undefined;
|
|
212
219
|
}[] | undefined;
|
|
213
220
|
requestBody?: any;
|
|
214
221
|
responses?: Record<string, any> | undefined;
|
|
215
222
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
223
|
+
'x-post-response'?: string | undefined;
|
|
216
224
|
'x-codeSamples'?: {
|
|
217
225
|
source: string;
|
|
218
226
|
label?: string | undefined;
|
|
@@ -228,7 +236,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
228
236
|
label?: string | undefined;
|
|
229
237
|
lang?: string | undefined;
|
|
230
238
|
}[] | undefined;
|
|
231
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "
|
|
239
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "path" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
232
240
|
uid: string & import("zod").BRAND<"operation">;
|
|
233
241
|
path: string;
|
|
234
242
|
type: "request";
|
|
@@ -264,10 +272,12 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
264
272
|
schema?: unknown;
|
|
265
273
|
content?: unknown;
|
|
266
274
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
275
|
+
explode?: boolean | undefined;
|
|
267
276
|
}[] | undefined;
|
|
268
277
|
requestBody?: any;
|
|
269
278
|
responses?: Record<string, any> | undefined;
|
|
270
279
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
280
|
+
'x-post-response'?: string | undefined;
|
|
271
281
|
'x-codeSamples'?: {
|
|
272
282
|
source: string;
|
|
273
283
|
label?: string | undefined;
|
|
@@ -319,10 +329,12 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
319
329
|
schema?: unknown;
|
|
320
330
|
content?: unknown;
|
|
321
331
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
332
|
+
explode?: boolean | undefined;
|
|
322
333
|
}[] | undefined;
|
|
323
334
|
requestBody?: any;
|
|
324
335
|
responses?: Record<string, any> | undefined;
|
|
325
336
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
337
|
+
'x-post-response'?: string | undefined;
|
|
326
338
|
'x-codeSamples'?: {
|
|
327
339
|
source: string;
|
|
328
340
|
label?: string | undefined;
|
|
@@ -339,7 +351,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
339
351
|
lang?: string | undefined;
|
|
340
352
|
}[] | undefined;
|
|
341
353
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
342
|
-
untrackedEdit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "
|
|
354
|
+
untrackedEdit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "path" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "x-post-response" | `requestBody.${string}` | `examples.${number}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.content` | `parameters.${number}.deprecated` | `parameters.${number}.examples` | `parameters.${number}.example` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.style` | `parameters.${number}.required` | `parameters.${number}.explode` | `parameters.${number}.schema` | `parameters.${number}.examples.${number}` | `parameters.${number}.examples.${string}` | `responses.${string}` | `x-codeSamples.${number}` | `x-codeSamples.${number}.lang` | `x-codeSamples.${number}.source` | `x-codeSamples.${number}.label` | `x-code-samples.${number}` | `x-code-samples.${number}.lang` | `x-code-samples.${number}.source` | `x-code-samples.${number}.label` | `x-custom-examples.${number}` | `x-custom-examples.${number}.lang` | `x-custom-examples.${number}.source` | `x-custom-examples.${number}.label`>(uid: string & import("zod").BRAND<"operation">, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "path" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" ? {
|
|
343
355
|
uid: string & import("zod").BRAND<"operation">;
|
|
344
356
|
path: string;
|
|
345
357
|
type: "request";
|
|
@@ -375,10 +387,12 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
375
387
|
schema?: unknown;
|
|
376
388
|
content?: unknown;
|
|
377
389
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
390
|
+
explode?: boolean | undefined;
|
|
378
391
|
}[] | undefined;
|
|
379
392
|
requestBody?: any;
|
|
380
393
|
responses?: Record<string, any> | undefined;
|
|
381
394
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
395
|
+
'x-post-response'?: string | undefined;
|
|
382
396
|
'x-codeSamples'?: {
|
|
383
397
|
source: string;
|
|
384
398
|
label?: string | undefined;
|
|
@@ -394,7 +408,7 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
394
408
|
label?: string | undefined;
|
|
395
409
|
lang?: string | undefined;
|
|
396
410
|
}[] | undefined;
|
|
397
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "
|
|
411
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "x-codeSamples" | "x-code-samples" | "x-custom-examples" | "x-scalar-stability" | "type" | "uid" | "path" | "method" | "selectedServerUid" | "examples" | "selectedSecuritySchemeUids" | "x-post-response" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
398
412
|
uid: string & import("zod").BRAND<"operation">;
|
|
399
413
|
path: string;
|
|
400
414
|
type: "request";
|
|
@@ -430,10 +444,12 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
430
444
|
schema?: unknown;
|
|
431
445
|
content?: unknown;
|
|
432
446
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
447
|
+
explode?: boolean | undefined;
|
|
433
448
|
}[] | undefined;
|
|
434
449
|
requestBody?: any;
|
|
435
450
|
responses?: Record<string, any> | undefined;
|
|
436
451
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
452
|
+
'x-post-response'?: string | undefined;
|
|
437
453
|
'x-codeSamples'?: {
|
|
438
454
|
source: string;
|
|
439
455
|
label?: string | undefined;
|
|
@@ -485,10 +501,12 @@ export declare function createStoreRequests(useLocalStorage: boolean): {
|
|
|
485
501
|
schema?: unknown;
|
|
486
502
|
content?: unknown;
|
|
487
503
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
504
|
+
explode?: boolean | undefined;
|
|
488
505
|
}[] | undefined;
|
|
489
506
|
requestBody?: any;
|
|
490
507
|
responses?: Record<string, any> | undefined;
|
|
491
508
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
509
|
+
'x-post-response'?: string | undefined;
|
|
492
510
|
'x-codeSamples'?: {
|
|
493
511
|
source: string;
|
|
494
512
|
label?: string | undefined;
|
|
@@ -551,10 +569,12 @@ export declare function extendedRequestDataFactory({ requestExamples, requestExa
|
|
|
551
569
|
schema?: unknown;
|
|
552
570
|
content?: unknown;
|
|
553
571
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
572
|
+
explode?: boolean | undefined;
|
|
554
573
|
}[] | undefined;
|
|
555
574
|
requestBody?: any;
|
|
556
575
|
responses?: Record<string, any> | undefined;
|
|
557
576
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
577
|
+
'x-post-response'?: string | undefined;
|
|
558
578
|
'x-codeSamples'?: {
|
|
559
579
|
source: string;
|
|
560
580
|
label?: string | undefined;
|
|
@@ -617,10 +637,12 @@ export declare function createInitialRequest(): {
|
|
|
617
637
|
schema?: unknown;
|
|
618
638
|
content?: unknown;
|
|
619
639
|
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
640
|
+
explode?: boolean | undefined;
|
|
620
641
|
}[] | undefined;
|
|
621
642
|
requestBody?: any;
|
|
622
643
|
responses?: Record<string, any> | undefined;
|
|
623
644
|
'x-scalar-stability'?: import("@scalar/types").XScalarStability | undefined;
|
|
645
|
+
'x-post-response'?: string | undefined;
|
|
624
646
|
'x-codeSamples'?: {
|
|
625
647
|
source: string;
|
|
626
648
|
label?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../src/store/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,GAAG,EAGT,MAAM,iCAAiC,CAAA;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,wDAAwD;AACxD,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../src/store/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,GAAG,EAGT,MAAM,iCAAiC,CAAA;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,wDAAwD;AACxD,wBAAgB,mBAAmB,CA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CAAC;oBAA2B,CAAC;qBAAgD,CAAC;uBAA8B,CAAC;6BAA+C,CAAC;;kBAA4D,CAAC;mBAA0B,CAAC;iBAAwB,CAAC;mBAAyH,CAAC;;;;;;;;iBAAsR,CAAC;gBAAkC,CAAC;;;;iBAAyG,CAAC;gBAAkC,CAAC;;;;iBAA4G,CAAC;gBAAkC,CAAC;;;EAD3+uB"}
|
|
@@ -3,9 +3,9 @@ import { type Collection, type SecurityScheme, type SecuritySchemePayload } from
|
|
|
3
3
|
/** Create storage entities for security schemes */
|
|
4
4
|
export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
5
5
|
securitySchemes: Record<string, {
|
|
6
|
-
name: string;
|
|
7
|
-
value: string;
|
|
8
6
|
type: "apiKey";
|
|
7
|
+
value: string;
|
|
8
|
+
name: string;
|
|
9
9
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
10
10
|
nameKey: string;
|
|
11
11
|
in: "cookie" | "query" | "header";
|
|
@@ -86,9 +86,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
86
86
|
}>;
|
|
87
87
|
securitySchemeMutators: {
|
|
88
88
|
add: (item: {
|
|
89
|
-
name: string;
|
|
90
|
-
value: string;
|
|
91
89
|
type: "apiKey";
|
|
90
|
+
value: string;
|
|
91
|
+
name: string;
|
|
92
92
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
93
93
|
nameKey: string;
|
|
94
94
|
in: "cookie" | "query" | "header";
|
|
@@ -169,9 +169,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
169
169
|
}) => void;
|
|
170
170
|
delete: (uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined) => void;
|
|
171
171
|
set: (item: {
|
|
172
|
-
name: string;
|
|
173
|
-
value: string;
|
|
174
172
|
type: "apiKey";
|
|
173
|
+
value: string;
|
|
174
|
+
name: string;
|
|
175
175
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
176
176
|
nameKey: string;
|
|
177
177
|
in: "cookie" | "query" | "header";
|
|
@@ -250,26 +250,26 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
250
250
|
description?: string | undefined;
|
|
251
251
|
'x-default-scopes'?: string | string[] | undefined;
|
|
252
252
|
}) => void;
|
|
253
|
-
edit: <P extends "value" | "description" | "type" | "
|
|
254
|
-
name: string;
|
|
255
|
-
value: string;
|
|
253
|
+
edit: <P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.x-scalar-security-query" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | `flows.password.x-scalar-security-query.${string}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | "flows.implicit.x-scalar-security-query" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | `flows.implicit.x-scalar-security-query.${string}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.x-scalar-security-query" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.x-scalar-security-query.${string}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.x-scalar-security-query" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.x-scalar-security-query.${string}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" ? {
|
|
256
254
|
type: "apiKey";
|
|
255
|
+
value: string;
|
|
256
|
+
name: string;
|
|
257
257
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
258
258
|
nameKey: string;
|
|
259
259
|
in: "cookie" | "query" | "header";
|
|
260
260
|
description?: string | undefined;
|
|
261
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "
|
|
262
|
-
name: string;
|
|
263
|
-
value: string;
|
|
261
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
264
262
|
type: "apiKey";
|
|
263
|
+
value: string;
|
|
264
|
+
name: string;
|
|
265
265
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
266
266
|
nameKey: string;
|
|
267
267
|
in: "cookie" | "query" | "header";
|
|
268
268
|
description?: string | undefined;
|
|
269
269
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
270
|
-
name: string;
|
|
271
|
-
value: string;
|
|
272
270
|
type: "apiKey";
|
|
271
|
+
value: string;
|
|
272
|
+
name: string;
|
|
273
273
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
274
274
|
nameKey: string;
|
|
275
275
|
in: "cookie" | "query" | "header";
|
|
@@ -494,26 +494,26 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
494
494
|
description?: string | undefined;
|
|
495
495
|
'x-default-scopes'?: string | string[] | undefined;
|
|
496
496
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
497
|
-
untrackedEdit: <P extends "value" | "description" | "type" | "
|
|
498
|
-
name: string;
|
|
499
|
-
value: string;
|
|
497
|
+
untrackedEdit: <P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.x-scalar-security-query" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | `flows.password.x-scalar-security-query.${string}` | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | "flows.implicit.x-scalar-security-query" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | `flows.implicit.x-scalar-security-query.${string}` | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.x-scalar-security-query" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.x-scalar-security-query.${string}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.x-scalar-security-query" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.x-scalar-security-query.${string}` | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-usePkce">(uid: string & import("zod").BRAND<"securityScheme">, path: P, value: (P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" ? {
|
|
500
498
|
type: "apiKey";
|
|
499
|
+
value: string;
|
|
500
|
+
name: string;
|
|
501
501
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
502
502
|
nameKey: string;
|
|
503
503
|
in: "cookie" | "query" | "header";
|
|
504
504
|
description?: string | undefined;
|
|
505
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "
|
|
506
|
-
name: string;
|
|
507
|
-
value: string;
|
|
505
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
508
506
|
type: "apiKey";
|
|
507
|
+
value: string;
|
|
508
|
+
name: string;
|
|
509
509
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
510
510
|
nameKey: string;
|
|
511
511
|
in: "cookie" | "query" | "header";
|
|
512
512
|
description?: string | undefined;
|
|
513
513
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
514
|
-
name: string;
|
|
515
|
-
value: string;
|
|
516
514
|
type: "apiKey";
|
|
515
|
+
value: string;
|
|
516
|
+
name: string;
|
|
517
517
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
518
518
|
nameKey: string;
|
|
519
519
|
in: "cookie" | "query" | "header";
|
|
@@ -746,9 +746,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
|
|
|
746
746
|
/** Extended mutators and data for security schemas */
|
|
747
747
|
export declare function extendedSecurityDataFactory({ securitySchemeMutators, collectionMutators, collections, requests, requestMutators, }: StoreContext): {
|
|
748
748
|
addSecurityScheme: (payload: SecuritySchemePayload, collectionUid: Collection["uid"]) => {
|
|
749
|
-
name: string;
|
|
750
|
-
value: string;
|
|
751
749
|
type: "apiKey";
|
|
750
|
+
value: string;
|
|
751
|
+
name: string;
|
|
752
752
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
753
753
|
nameKey: string;
|
|
754
754
|
in: "cookie" | "query" | "header";
|