@scalar/api-client 2.0.12 → 2.0.13
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 +11 -0
- package/dist/App.vue.d.ts.map +1 -1
- package/dist/App.vue.js +38 -27
- package/dist/Modal/api-client-modal.d.ts +2 -1
- package/dist/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/Modal/api-client-modal.js +49 -40
- package/dist/components/ActionModal/ActionModalFolder.vue.js +37 -35
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +42 -42
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts +1 -14
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +50 -55
- package/dist/components/Sidebar/Sidebar.vue.js +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -9
- package/dist/libs/index.d.ts +1 -0
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +10 -8
- package/dist/libs/local-storage.d.ts +9 -0
- package/dist/libs/local-storage.d.ts.map +1 -0
- package/dist/libs/local-storage.js +36 -0
- package/dist/router.d.ts +2 -2
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +13 -13
- package/dist/store/workspace.d.ts +511 -269
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +213 -157
- 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/Request.vue2.js +93 -91
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +56 -56
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +11 -11
- package/package.json +4 -4
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { type Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
2
1
|
import { type CollectionPayload } from '@scalar/oas-utils/entities/workspace/collection';
|
|
3
2
|
import { type FolderPayload } from '@scalar/oas-utils/entities/workspace/folder';
|
|
4
3
|
import { type ServerPayload } from '@scalar/oas-utils/entities/workspace/server';
|
|
5
4
|
import { type Request, type RequestEvent, type RequestExample, type RequestPayload } from '@scalar/oas-utils/entities/workspace/spec';
|
|
6
|
-
import { type Path, type PathValue } from '@scalar/object-utils/nested';
|
|
7
5
|
import type { AnyObject } from '@scalar/openapi-parser';
|
|
8
6
|
declare const securitySchemeMutators: {
|
|
9
7
|
add: (item: {
|
|
@@ -133,28 +131,28 @@ declare const securitySchemeMutators: {
|
|
|
133
131
|
openIdConnectUrl: string;
|
|
134
132
|
description?: string | undefined;
|
|
135
133
|
}) => void;
|
|
136
|
-
edit: <P extends "type" | "name" | "value" | "uid" | "
|
|
134
|
+
edit: <P extends "type" | "name" | "value" | "uid" | "in" | "description" | "scheme" | "bearerFormat" | "secondValue" | "flows" | "clientId" | "redirectUri" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.authorizationUrl" | "flows.implicit.selectedScopes" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | `flows.implicit.selectedScopes.${number}` | `flows.implicit.scopes.${string}` | "flows.password.value" | "flows.password.secondValue" | "flows.password.selectedScopes" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | `flows.password.selectedScopes.${number}` | `flows.password.scopes.${string}` | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.scopes.${string}` | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.scopes.${string}` | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "openIdConnectUrl">(uid: string, path: P, value: (P extends "type" | "name" | "value" | "uid" | "in" | "description" ? {
|
|
137
135
|
type: "apiKey";
|
|
138
136
|
value: string;
|
|
139
137
|
uid: string;
|
|
140
138
|
name: string;
|
|
141
139
|
in: "query" | "header" | "cookie";
|
|
142
140
|
description?: string | undefined;
|
|
143
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "value" | "uid" | "
|
|
141
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "value" | "uid" | "in" | "description" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
144
142
|
type: "apiKey";
|
|
145
143
|
value: string;
|
|
146
144
|
uid: string;
|
|
147
145
|
name: string;
|
|
148
146
|
in: "query" | "header" | "cookie";
|
|
149
147
|
description?: string | undefined;
|
|
150
|
-
}[K]> ? PathValue<{
|
|
148
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
151
149
|
type: "apiKey";
|
|
152
150
|
value: string;
|
|
153
151
|
uid: string;
|
|
154
152
|
name: string;
|
|
155
153
|
in: "query" | "header" | "cookie";
|
|
156
154
|
description?: string | undefined;
|
|
157
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "value" | "uid" | "description" | "scheme" | "
|
|
155
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "value" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? {
|
|
158
156
|
type: "http";
|
|
159
157
|
value: string;
|
|
160
158
|
uid: string;
|
|
@@ -162,7 +160,7 @@ declare const securitySchemeMutators: {
|
|
|
162
160
|
bearerFormat: string;
|
|
163
161
|
secondValue: string;
|
|
164
162
|
description?: string | undefined;
|
|
165
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "value" | "uid" | "description" | "scheme" | "
|
|
163
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "value" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
166
164
|
type: "http";
|
|
167
165
|
value: string;
|
|
168
166
|
uid: string;
|
|
@@ -170,7 +168,7 @@ declare const securitySchemeMutators: {
|
|
|
170
168
|
bearerFormat: string;
|
|
171
169
|
secondValue: string;
|
|
172
170
|
description?: string | undefined;
|
|
173
|
-
}[K]> ? PathValue<{
|
|
171
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
174
172
|
type: "http";
|
|
175
173
|
value: string;
|
|
176
174
|
uid: string;
|
|
@@ -220,7 +218,7 @@ declare const securitySchemeMutators: {
|
|
|
220
218
|
clientId: string;
|
|
221
219
|
redirectUri: string;
|
|
222
220
|
description?: string | undefined;
|
|
223
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "flows" | "clientId" | "redirectUri" ? R extends Path<{
|
|
221
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "flows" | "clientId" | "redirectUri" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
224
222
|
type: "oauth2";
|
|
225
223
|
uid: string;
|
|
226
224
|
flows: {
|
|
@@ -262,7 +260,7 @@ declare const securitySchemeMutators: {
|
|
|
262
260
|
clientId: string;
|
|
263
261
|
redirectUri: string;
|
|
264
262
|
description?: string | undefined;
|
|
265
|
-
}[K]> ? PathValue<{
|
|
263
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
266
264
|
type: "oauth2";
|
|
267
265
|
uid: string;
|
|
268
266
|
flows: {
|
|
@@ -309,39 +307,39 @@ declare const securitySchemeMutators: {
|
|
|
309
307
|
uid: string;
|
|
310
308
|
openIdConnectUrl: string;
|
|
311
309
|
description?: string | undefined;
|
|
312
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends Path<{
|
|
310
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
313
311
|
type: "openIdConnect";
|
|
314
312
|
uid: string;
|
|
315
313
|
openIdConnectUrl: string;
|
|
316
314
|
description?: string | undefined;
|
|
317
|
-
}[K]> ? PathValue<{
|
|
315
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
318
316
|
type: "openIdConnect";
|
|
319
317
|
uid: string;
|
|
320
318
|
openIdConnectUrl: string;
|
|
321
319
|
description?: string | undefined;
|
|
322
320
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
323
|
-
untrackedEdit: <P extends "type" | "name" | "value" | "uid" | "
|
|
321
|
+
untrackedEdit: <P extends "type" | "name" | "value" | "uid" | "in" | "description" | "scheme" | "bearerFormat" | "secondValue" | "flows" | "clientId" | "redirectUri" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.authorizationUrl" | "flows.implicit.selectedScopes" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | `flows.implicit.selectedScopes.${number}` | `flows.implicit.scopes.${string}` | "flows.password.value" | "flows.password.secondValue" | "flows.password.selectedScopes" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | `flows.password.selectedScopes.${number}` | `flows.password.scopes.${string}` | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.scopes.${string}` | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.scopes.${string}` | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "openIdConnectUrl">(uid: string, path: P, value: (P extends "type" | "name" | "value" | "uid" | "in" | "description" ? {
|
|
324
322
|
type: "apiKey";
|
|
325
323
|
value: string;
|
|
326
324
|
uid: string;
|
|
327
325
|
name: string;
|
|
328
326
|
in: "query" | "header" | "cookie";
|
|
329
327
|
description?: string | undefined;
|
|
330
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "value" | "uid" | "
|
|
328
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "value" | "uid" | "in" | "description" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
331
329
|
type: "apiKey";
|
|
332
330
|
value: string;
|
|
333
331
|
uid: string;
|
|
334
332
|
name: string;
|
|
335
333
|
in: "query" | "header" | "cookie";
|
|
336
334
|
description?: string | undefined;
|
|
337
|
-
}[K]> ? PathValue<{
|
|
335
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
338
336
|
type: "apiKey";
|
|
339
337
|
value: string;
|
|
340
338
|
uid: string;
|
|
341
339
|
name: string;
|
|
342
340
|
in: "query" | "header" | "cookie";
|
|
343
341
|
description?: string | undefined;
|
|
344
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "value" | "uid" | "description" | "scheme" | "
|
|
342
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "value" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? {
|
|
345
343
|
type: "http";
|
|
346
344
|
value: string;
|
|
347
345
|
uid: string;
|
|
@@ -349,7 +347,7 @@ declare const securitySchemeMutators: {
|
|
|
349
347
|
bearerFormat: string;
|
|
350
348
|
secondValue: string;
|
|
351
349
|
description?: string | undefined;
|
|
352
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "value" | "uid" | "description" | "scheme" | "
|
|
350
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "value" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
353
351
|
type: "http";
|
|
354
352
|
value: string;
|
|
355
353
|
uid: string;
|
|
@@ -357,7 +355,7 @@ declare const securitySchemeMutators: {
|
|
|
357
355
|
bearerFormat: string;
|
|
358
356
|
secondValue: string;
|
|
359
357
|
description?: string | undefined;
|
|
360
|
-
}[K]> ? PathValue<{
|
|
358
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
361
359
|
type: "http";
|
|
362
360
|
value: string;
|
|
363
361
|
uid: string;
|
|
@@ -407,7 +405,7 @@ declare const securitySchemeMutators: {
|
|
|
407
405
|
clientId: string;
|
|
408
406
|
redirectUri: string;
|
|
409
407
|
description?: string | undefined;
|
|
410
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "flows" | "clientId" | "redirectUri" ? R extends Path<{
|
|
408
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "flows" | "clientId" | "redirectUri" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
411
409
|
type: "oauth2";
|
|
412
410
|
uid: string;
|
|
413
411
|
flows: {
|
|
@@ -449,7 +447,7 @@ declare const securitySchemeMutators: {
|
|
|
449
447
|
clientId: string;
|
|
450
448
|
redirectUri: string;
|
|
451
449
|
description?: string | undefined;
|
|
452
|
-
}[K]> ? PathValue<{
|
|
450
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
453
451
|
type: "oauth2";
|
|
454
452
|
uid: string;
|
|
455
453
|
flows: {
|
|
@@ -496,12 +494,12 @@ declare const securitySchemeMutators: {
|
|
|
496
494
|
uid: string;
|
|
497
495
|
openIdConnectUrl: string;
|
|
498
496
|
description?: string | undefined;
|
|
499
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends Path<{
|
|
497
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
500
498
|
type: "openIdConnect";
|
|
501
499
|
uid: string;
|
|
502
500
|
openIdConnectUrl: string;
|
|
503
501
|
description?: string | undefined;
|
|
504
|
-
}[K]> ? PathValue<{
|
|
502
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
505
503
|
type: "openIdConnect";
|
|
506
504
|
uid: string;
|
|
507
505
|
openIdConnectUrl: string;
|
|
@@ -520,24 +518,24 @@ declare function importSpecFromUrl(url: string, proxy?: string): Promise<void>;
|
|
|
520
518
|
* We may want to break this up at some point due to the massive file size
|
|
521
519
|
*/
|
|
522
520
|
export declare const useWorkspace: () => {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
534
|
-
workspaceRequests: import("vue").ComputedRef<{
|
|
521
|
+
readonly workspaces: Record<string, {
|
|
522
|
+
uid: string;
|
|
523
|
+
description: string;
|
|
524
|
+
name: string;
|
|
525
|
+
isReadOnly: boolean;
|
|
526
|
+
collectionUids: string[];
|
|
527
|
+
environmentUids: string[];
|
|
528
|
+
cookieUids: string[];
|
|
529
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
530
|
+
proxyUrl?: string | undefined;
|
|
531
|
+
}>;
|
|
532
|
+
readonly workspaceRequests: import("vue").ComputedRef<{
|
|
535
533
|
uid: string;
|
|
536
534
|
path: string;
|
|
537
535
|
method: "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "TRACE" | "CONNECT" | "DELETE" | "OPTIONS";
|
|
538
536
|
summary: string | undefined;
|
|
539
537
|
}[]>;
|
|
540
|
-
collections: Record<string, {
|
|
538
|
+
readonly collections: Record<string, {
|
|
541
539
|
uid: string;
|
|
542
540
|
spec: {
|
|
543
541
|
openapi: string;
|
|
@@ -580,8 +578,20 @@ export declare const useWorkspace: () => {
|
|
|
580
578
|
selectedServerUid: string;
|
|
581
579
|
childUids: string[];
|
|
582
580
|
}>;
|
|
583
|
-
|
|
584
|
-
|
|
581
|
+
readonly cookies: Record<string, {
|
|
582
|
+
value: string;
|
|
583
|
+
uid: string;
|
|
584
|
+
name: string;
|
|
585
|
+
sameSite: "Lax" | "Strict" | "None";
|
|
586
|
+
path?: string | undefined;
|
|
587
|
+
domain?: string | undefined;
|
|
588
|
+
expires?: Date | undefined;
|
|
589
|
+
httpOnly?: boolean | undefined;
|
|
590
|
+
maxAge?: number | undefined;
|
|
591
|
+
partitioned?: boolean | undefined;
|
|
592
|
+
secure?: boolean | undefined;
|
|
593
|
+
}>;
|
|
594
|
+
readonly environments: Record<string, {
|
|
585
595
|
uid: string;
|
|
586
596
|
name: string;
|
|
587
597
|
color: string;
|
|
@@ -592,7 +602,13 @@ export declare const useWorkspace: () => {
|
|
|
592
602
|
}[];
|
|
593
603
|
isDefault?: boolean | undefined;
|
|
594
604
|
}>;
|
|
595
|
-
|
|
605
|
+
readonly folders: Record<string, {
|
|
606
|
+
uid: string;
|
|
607
|
+
name: string;
|
|
608
|
+
childUids: string[];
|
|
609
|
+
description?: string | undefined;
|
|
610
|
+
}>;
|
|
611
|
+
readonly requestExamples: Record<string, {
|
|
596
612
|
uid: string;
|
|
597
613
|
name: string;
|
|
598
614
|
parameters: {
|
|
@@ -686,26 +702,8 @@ export declare const useWorkspace: () => {
|
|
|
686
702
|
};
|
|
687
703
|
auth: Record<string, any>;
|
|
688
704
|
}>;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
name: string;
|
|
692
|
-
childUids: string[];
|
|
693
|
-
description?: string | undefined;
|
|
694
|
-
}>;
|
|
695
|
-
cookies: Record<string, {
|
|
696
|
-
value: string;
|
|
697
|
-
uid: string;
|
|
698
|
-
name: string;
|
|
699
|
-
sameSite: "Lax" | "Strict" | "None";
|
|
700
|
-
path?: string | undefined;
|
|
701
|
-
domain?: string | undefined;
|
|
702
|
-
expires?: Date | undefined;
|
|
703
|
-
httpOnly?: boolean | undefined;
|
|
704
|
-
maxAge?: number | undefined;
|
|
705
|
-
partitioned?: boolean | undefined;
|
|
706
|
-
secure?: boolean | undefined;
|
|
707
|
-
}>;
|
|
708
|
-
servers: Record<string, {
|
|
705
|
+
readonly requests: Record<string, Request>;
|
|
706
|
+
readonly servers: Record<string, {
|
|
709
707
|
uid: string;
|
|
710
708
|
url: string;
|
|
711
709
|
description?: string | undefined;
|
|
@@ -717,7 +715,7 @@ export declare const useWorkspace: () => {
|
|
|
717
715
|
enum?: string[] | undefined;
|
|
718
716
|
}> | null | undefined;
|
|
719
717
|
}>;
|
|
720
|
-
securitySchemes: Record<string, {
|
|
718
|
+
readonly securitySchemes: Record<string, {
|
|
721
719
|
type: "apiKey";
|
|
722
720
|
value: string;
|
|
723
721
|
uid: string;
|
|
@@ -780,8 +778,7 @@ export declare const useWorkspace: () => {
|
|
|
780
778
|
openIdConnectUrl: string;
|
|
781
779
|
description?: string | undefined;
|
|
782
780
|
}>;
|
|
783
|
-
|
|
784
|
-
activeCollection: import("vue").ComputedRef<{
|
|
781
|
+
readonly activeCollection: import("vue").ComputedRef<{
|
|
785
782
|
uid: string;
|
|
786
783
|
spec: {
|
|
787
784
|
openapi: string;
|
|
@@ -824,20 +821,104 @@ export declare const useWorkspace: () => {
|
|
|
824
821
|
selectedServerUid: string;
|
|
825
822
|
childUids: string[];
|
|
826
823
|
} | null>;
|
|
827
|
-
|
|
824
|
+
readonly activeCookieId: import("vue").ComputedRef<string | undefined>;
|
|
825
|
+
readonly activeExample: import("vue").ComputedRef<{
|
|
828
826
|
uid: string;
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
827
|
+
name: string;
|
|
828
|
+
parameters: {
|
|
829
|
+
path: {
|
|
830
|
+
value: string;
|
|
831
|
+
key: string;
|
|
832
|
+
enabled: boolean;
|
|
833
|
+
minimum?: number | undefined;
|
|
834
|
+
type?: string | undefined;
|
|
835
|
+
maximum?: number | undefined;
|
|
836
|
+
default?: any;
|
|
837
|
+
description?: string | undefined;
|
|
838
|
+
enum?: string[] | undefined;
|
|
839
|
+
required?: boolean | undefined;
|
|
840
|
+
file?: File | undefined;
|
|
841
|
+
refUid?: string | undefined;
|
|
842
|
+
format?: string | undefined;
|
|
843
|
+
}[];
|
|
844
|
+
query: {
|
|
845
|
+
value: string;
|
|
846
|
+
key: string;
|
|
847
|
+
enabled: boolean;
|
|
848
|
+
minimum?: number | undefined;
|
|
849
|
+
type?: string | undefined;
|
|
850
|
+
maximum?: number | undefined;
|
|
851
|
+
default?: any;
|
|
852
|
+
description?: string | undefined;
|
|
853
|
+
enum?: string[] | undefined;
|
|
854
|
+
required?: boolean | undefined;
|
|
855
|
+
file?: File | undefined;
|
|
856
|
+
refUid?: string | undefined;
|
|
857
|
+
format?: string | undefined;
|
|
858
|
+
}[];
|
|
859
|
+
cookies: {
|
|
860
|
+
value: string;
|
|
861
|
+
key: string;
|
|
862
|
+
enabled: boolean;
|
|
863
|
+
minimum?: number | undefined;
|
|
864
|
+
type?: string | undefined;
|
|
865
|
+
maximum?: number | undefined;
|
|
866
|
+
default?: any;
|
|
867
|
+
description?: string | undefined;
|
|
868
|
+
enum?: string[] | undefined;
|
|
869
|
+
required?: boolean | undefined;
|
|
870
|
+
file?: File | undefined;
|
|
871
|
+
refUid?: string | undefined;
|
|
872
|
+
format?: string | undefined;
|
|
873
|
+
}[];
|
|
874
|
+
headers: {
|
|
875
|
+
value: string;
|
|
876
|
+
key: string;
|
|
877
|
+
enabled: boolean;
|
|
878
|
+
minimum?: number | undefined;
|
|
879
|
+
type?: string | undefined;
|
|
880
|
+
maximum?: number | undefined;
|
|
881
|
+
default?: any;
|
|
882
|
+
description?: string | undefined;
|
|
883
|
+
enum?: string[] | undefined;
|
|
884
|
+
required?: boolean | undefined;
|
|
885
|
+
file?: File | undefined;
|
|
886
|
+
refUid?: string | undefined;
|
|
887
|
+
format?: string | undefined;
|
|
888
|
+
}[];
|
|
889
|
+
};
|
|
890
|
+
requestUid: string;
|
|
891
|
+
body: {
|
|
892
|
+
raw: {
|
|
893
|
+
value: string;
|
|
894
|
+
encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
|
|
895
|
+
};
|
|
896
|
+
formData: {
|
|
897
|
+
value: {
|
|
898
|
+
value: string;
|
|
899
|
+
key: string;
|
|
900
|
+
enabled: boolean;
|
|
901
|
+
minimum?: number | undefined;
|
|
902
|
+
type?: string | undefined;
|
|
903
|
+
maximum?: number | undefined;
|
|
904
|
+
default?: any;
|
|
905
|
+
description?: string | undefined;
|
|
906
|
+
enum?: string[] | undefined;
|
|
907
|
+
required?: boolean | undefined;
|
|
908
|
+
file?: File | undefined;
|
|
909
|
+
refUid?: string | undefined;
|
|
910
|
+
format?: string | undefined;
|
|
911
|
+
}[];
|
|
912
|
+
encoding: "form-data" | "urlencoded";
|
|
913
|
+
};
|
|
914
|
+
activeBody: "raw" | "formData" | "binary";
|
|
915
|
+
binary?: File | undefined;
|
|
916
|
+
};
|
|
917
|
+
auth: Record<string, any>;
|
|
918
|
+
}>;
|
|
919
|
+
readonly activeRequest: import("vue").ComputedRef<Request>;
|
|
920
|
+
readonly activeSecurityRequirements: import("vue").ComputedRef<Record<string, string[]>[]>;
|
|
921
|
+
readonly activeSecurityScheme: import("vue").ComputedRef<{
|
|
841
922
|
flow: {
|
|
842
923
|
authorizationUrl: string;
|
|
843
924
|
selectedScopes: string[];
|
|
@@ -998,109 +1079,38 @@ export declare const useWorkspace: () => {
|
|
|
998
1079
|
description?: string | undefined;
|
|
999
1080
|
};
|
|
1000
1081
|
} | undefined>;
|
|
1001
|
-
|
|
1002
|
-
|
|
1082
|
+
readonly activeServer: import("vue").ComputedRef<{
|
|
1083
|
+
uid: string;
|
|
1084
|
+
url: string;
|
|
1085
|
+
description?: string | undefined;
|
|
1086
|
+
variables?: Record<string, {
|
|
1087
|
+
default: string;
|
|
1088
|
+
uid: string;
|
|
1089
|
+
value?: string | undefined;
|
|
1090
|
+
description?: string | undefined;
|
|
1091
|
+
enum?: string[] | undefined;
|
|
1092
|
+
}> | null | undefined;
|
|
1093
|
+
} | null>;
|
|
1094
|
+
readonly activeWorkspace: import("vue").ComputedRef<{
|
|
1003
1095
|
uid: string;
|
|
1096
|
+
description: string;
|
|
1004
1097
|
name: string;
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
type?: string | undefined;
|
|
1012
|
-
maximum?: number | undefined;
|
|
1013
|
-
default?: any;
|
|
1014
|
-
description?: string | undefined;
|
|
1015
|
-
enum?: string[] | undefined;
|
|
1016
|
-
required?: boolean | undefined;
|
|
1017
|
-
file?: File | undefined;
|
|
1018
|
-
refUid?: string | undefined;
|
|
1019
|
-
format?: string | undefined;
|
|
1020
|
-
}[];
|
|
1021
|
-
query: {
|
|
1022
|
-
value: string;
|
|
1023
|
-
key: string;
|
|
1024
|
-
enabled: boolean;
|
|
1025
|
-
minimum?: number | undefined;
|
|
1026
|
-
type?: string | undefined;
|
|
1027
|
-
maximum?: number | undefined;
|
|
1028
|
-
default?: any;
|
|
1029
|
-
description?: string | undefined;
|
|
1030
|
-
enum?: string[] | undefined;
|
|
1031
|
-
required?: boolean | undefined;
|
|
1032
|
-
file?: File | undefined;
|
|
1033
|
-
refUid?: string | undefined;
|
|
1034
|
-
format?: string | undefined;
|
|
1035
|
-
}[];
|
|
1036
|
-
cookies: {
|
|
1037
|
-
value: string;
|
|
1038
|
-
key: string;
|
|
1039
|
-
enabled: boolean;
|
|
1040
|
-
minimum?: number | undefined;
|
|
1041
|
-
type?: string | undefined;
|
|
1042
|
-
maximum?: number | undefined;
|
|
1043
|
-
default?: any;
|
|
1044
|
-
description?: string | undefined;
|
|
1045
|
-
enum?: string[] | undefined;
|
|
1046
|
-
required?: boolean | undefined;
|
|
1047
|
-
file?: File | undefined;
|
|
1048
|
-
refUid?: string | undefined;
|
|
1049
|
-
format?: string | undefined;
|
|
1050
|
-
}[];
|
|
1051
|
-
headers: {
|
|
1052
|
-
value: string;
|
|
1053
|
-
key: string;
|
|
1054
|
-
enabled: boolean;
|
|
1055
|
-
minimum?: number | undefined;
|
|
1056
|
-
type?: string | undefined;
|
|
1057
|
-
maximum?: number | undefined;
|
|
1058
|
-
default?: any;
|
|
1059
|
-
description?: string | undefined;
|
|
1060
|
-
enum?: string[] | undefined;
|
|
1061
|
-
required?: boolean | undefined;
|
|
1062
|
-
file?: File | undefined;
|
|
1063
|
-
refUid?: string | undefined;
|
|
1064
|
-
format?: string | undefined;
|
|
1065
|
-
}[];
|
|
1066
|
-
};
|
|
1067
|
-
requestUid: string;
|
|
1068
|
-
body: {
|
|
1069
|
-
raw: {
|
|
1070
|
-
value: string;
|
|
1071
|
-
encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
|
|
1072
|
-
};
|
|
1073
|
-
formData: {
|
|
1074
|
-
value: {
|
|
1075
|
-
value: string;
|
|
1076
|
-
key: string;
|
|
1077
|
-
enabled: boolean;
|
|
1078
|
-
minimum?: number | undefined;
|
|
1079
|
-
type?: string | undefined;
|
|
1080
|
-
maximum?: number | undefined;
|
|
1081
|
-
default?: any;
|
|
1082
|
-
description?: string | undefined;
|
|
1083
|
-
enum?: string[] | undefined;
|
|
1084
|
-
required?: boolean | undefined;
|
|
1085
|
-
file?: File | undefined;
|
|
1086
|
-
refUid?: string | undefined;
|
|
1087
|
-
format?: string | undefined;
|
|
1088
|
-
}[];
|
|
1089
|
-
encoding: "form-data" | "urlencoded";
|
|
1090
|
-
};
|
|
1091
|
-
activeBody: "raw" | "formData" | "binary";
|
|
1092
|
-
binary?: File | undefined;
|
|
1093
|
-
};
|
|
1094
|
-
auth: Record<string, any>;
|
|
1098
|
+
isReadOnly: boolean;
|
|
1099
|
+
collectionUids: string[];
|
|
1100
|
+
environmentUids: string[];
|
|
1101
|
+
cookieUids: string[];
|
|
1102
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
1103
|
+
proxyUrl?: string | undefined;
|
|
1095
1104
|
}>;
|
|
1096
|
-
modalState: {
|
|
1105
|
+
readonly modalState: {
|
|
1097
1106
|
open: boolean;
|
|
1098
1107
|
show: () => void;
|
|
1099
1108
|
hide: () => void;
|
|
1100
1109
|
};
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1110
|
+
readonly isReadOnly: import("vue").ComputedRef<boolean>;
|
|
1111
|
+
readonly importSpecFile: typeof importSpecFile;
|
|
1112
|
+
readonly importSpecFromUrl: typeof importSpecFromUrl;
|
|
1113
|
+
readonly cookieMutators: {
|
|
1104
1114
|
add: (item: {
|
|
1105
1115
|
value: string;
|
|
1106
1116
|
uid: string;
|
|
@@ -1140,7 +1150,7 @@ export declare const useWorkspace: () => {
|
|
|
1140
1150
|
maxAge?: number | undefined;
|
|
1141
1151
|
partitioned?: boolean | undefined;
|
|
1142
1152
|
secure?: boolean | undefined;
|
|
1143
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "path" | "name" | "value" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned" ? R extends Path<{
|
|
1153
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "path" | "name" | "value" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
1144
1154
|
value: string;
|
|
1145
1155
|
uid: string;
|
|
1146
1156
|
name: string;
|
|
@@ -1152,7 +1162,7 @@ export declare const useWorkspace: () => {
|
|
|
1152
1162
|
maxAge?: number | undefined;
|
|
1153
1163
|
partitioned?: boolean | undefined;
|
|
1154
1164
|
secure?: boolean | undefined;
|
|
1155
|
-
}[K]> ? PathValue<{
|
|
1165
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
1156
1166
|
value: string;
|
|
1157
1167
|
uid: string;
|
|
1158
1168
|
name: string;
|
|
@@ -1177,7 +1187,7 @@ export declare const useWorkspace: () => {
|
|
|
1177
1187
|
maxAge?: number | undefined;
|
|
1178
1188
|
partitioned?: boolean | undefined;
|
|
1179
1189
|
secure?: boolean | undefined;
|
|
1180
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "path" | "name" | "value" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned" ? R extends Path<{
|
|
1190
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "path" | "name" | "value" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
1181
1191
|
value: string;
|
|
1182
1192
|
uid: string;
|
|
1183
1193
|
name: string;
|
|
@@ -1189,7 +1199,7 @@ export declare const useWorkspace: () => {
|
|
|
1189
1199
|
maxAge?: number | undefined;
|
|
1190
1200
|
partitioned?: boolean | undefined;
|
|
1191
1201
|
secure?: boolean | undefined;
|
|
1192
|
-
}[K]> ? PathValue<{
|
|
1202
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
1193
1203
|
value: string;
|
|
1194
1204
|
uid: string;
|
|
1195
1205
|
name: string;
|
|
@@ -1205,11 +1215,54 @@ export declare const useWorkspace: () => {
|
|
|
1205
1215
|
undo: (uid: string) => void;
|
|
1206
1216
|
redo: (uid: string) => void;
|
|
1207
1217
|
};
|
|
1208
|
-
createExampleFromRequest: (request: Request) => RequestExample;
|
|
1209
|
-
collectionMutators: {
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1218
|
+
readonly createExampleFromRequest: (request: Request) => RequestExample;
|
|
1219
|
+
readonly collectionMutators: {
|
|
1220
|
+
readonly rawAdd: (item: {
|
|
1221
|
+
uid: string;
|
|
1222
|
+
spec: {
|
|
1223
|
+
openapi: string;
|
|
1224
|
+
security: Record<string, string[]>[];
|
|
1225
|
+
serverUids: string[];
|
|
1226
|
+
tags: {
|
|
1227
|
+
name: string;
|
|
1228
|
+
description?: string | undefined;
|
|
1229
|
+
externalDocs?: {
|
|
1230
|
+
url: string;
|
|
1231
|
+
description?: string | undefined;
|
|
1232
|
+
} | undefined;
|
|
1233
|
+
}[];
|
|
1234
|
+
externalDocs?: {
|
|
1235
|
+
url: string;
|
|
1236
|
+
description?: string | undefined;
|
|
1237
|
+
} | undefined;
|
|
1238
|
+
info?: {
|
|
1239
|
+
title: string;
|
|
1240
|
+
version: string;
|
|
1241
|
+
description?: string | undefined;
|
|
1242
|
+
summary?: string | undefined;
|
|
1243
|
+
termsOfService?: string | undefined;
|
|
1244
|
+
contact?: {
|
|
1245
|
+
name?: string | undefined;
|
|
1246
|
+
url?: string | undefined;
|
|
1247
|
+
email?: string | undefined;
|
|
1248
|
+
} | undefined;
|
|
1249
|
+
license?: {
|
|
1250
|
+
name: string;
|
|
1251
|
+
identifier?: string | undefined;
|
|
1252
|
+
url?: string | undefined;
|
|
1253
|
+
} | undefined;
|
|
1254
|
+
} | undefined;
|
|
1255
|
+
};
|
|
1256
|
+
selectedSecuritySchemes: {
|
|
1257
|
+
uid: string;
|
|
1258
|
+
flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
|
|
1259
|
+
}[];
|
|
1260
|
+
selectedServerUid: string;
|
|
1261
|
+
childUids: string[];
|
|
1262
|
+
}) => void;
|
|
1263
|
+
readonly add: (payload: CollectionPayload) => void;
|
|
1264
|
+
readonly delete: (collectionUid: string) => void;
|
|
1265
|
+
readonly set: (item: {
|
|
1213
1266
|
uid: string;
|
|
1214
1267
|
spec: {
|
|
1215
1268
|
openapi: string;
|
|
@@ -1252,7 +1305,7 @@ export declare const useWorkspace: () => {
|
|
|
1252
1305
|
selectedServerUid: string;
|
|
1253
1306
|
childUids: string[];
|
|
1254
1307
|
}) => void;
|
|
1255
|
-
edit: <P extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | `childUids.${number}` | "spec.info" | "spec.tags" | "spec.security" | "spec.openapi" | "spec.serverUids" | "spec.externalDocs" | "spec.info.summary" | "spec.info.title" | "spec.info.description" | "spec.info.version" | "spec.info.termsOfService" | "spec.info.contact" | "spec.info.license" | "spec.info.contact.name" | "spec.info.contact.email" | "spec.info.contact.url" | "spec.info.license.name" | "spec.info.license.url" | "spec.info.license.identifier" | "spec.externalDocs.description" | "spec.externalDocs.url" | `spec.tags.${number}` | `spec.tags.${number}.
|
|
1308
|
+
readonly edit: <P extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | `childUids.${number}` | "spec.info" | "spec.tags" | "spec.security" | "spec.openapi" | "spec.serverUids" | "spec.externalDocs" | "spec.info.summary" | "spec.info.title" | "spec.info.description" | "spec.info.version" | "spec.info.termsOfService" | "spec.info.contact" | "spec.info.license" | "spec.info.contact.name" | "spec.info.contact.email" | "spec.info.contact.url" | "spec.info.license.name" | "spec.info.license.url" | "spec.info.license.identifier" | "spec.externalDocs.description" | "spec.externalDocs.url" | `spec.tags.${number}` | `spec.tags.${number}.name` | `spec.tags.${number}.description` | `spec.tags.${number}.externalDocs` | `spec.tags.${number}.externalDocs.description` | `spec.tags.${number}.externalDocs.url` | `spec.security.${number}` | `spec.security.${number}.${string}` | `spec.serverUids.${number}` | `selectedSecuritySchemes.${number}` | `selectedSecuritySchemes.${number}.uid` | `selectedSecuritySchemes.${number}.flowKey`>(uid: string, path: P, value: P extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" ? {
|
|
1256
1309
|
uid: string;
|
|
1257
1310
|
spec: {
|
|
1258
1311
|
openapi: string;
|
|
@@ -1294,7 +1347,7 @@ export declare const useWorkspace: () => {
|
|
|
1294
1347
|
}[];
|
|
1295
1348
|
selectedServerUid: string;
|
|
1296
1349
|
childUids: string[];
|
|
1297
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" ? R extends Path<{
|
|
1350
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
1298
1351
|
uid: string;
|
|
1299
1352
|
spec: {
|
|
1300
1353
|
openapi: string;
|
|
@@ -1336,7 +1389,7 @@ export declare const useWorkspace: () => {
|
|
|
1336
1389
|
}[];
|
|
1337
1390
|
selectedServerUid: string;
|
|
1338
1391
|
childUids: string[];
|
|
1339
|
-
}[K]> ? PathValue<{
|
|
1392
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
1340
1393
|
uid: string;
|
|
1341
1394
|
spec: {
|
|
1342
1395
|
openapi: string;
|
|
@@ -1379,7 +1432,7 @@ export declare const useWorkspace: () => {
|
|
|
1379
1432
|
selectedServerUid: string;
|
|
1380
1433
|
childUids: string[];
|
|
1381
1434
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1382
|
-
untrackedEdit: <P extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | `childUids.${number}` | "spec.info" | "spec.tags" | "spec.security" | "spec.openapi" | "spec.serverUids" | "spec.externalDocs" | "spec.info.summary" | "spec.info.title" | "spec.info.description" | "spec.info.version" | "spec.info.termsOfService" | "spec.info.contact" | "spec.info.license" | "spec.info.contact.name" | "spec.info.contact.email" | "spec.info.contact.url" | "spec.info.license.name" | "spec.info.license.url" | "spec.info.license.identifier" | "spec.externalDocs.description" | "spec.externalDocs.url" | `spec.tags.${number}` | `spec.tags.${number}.
|
|
1435
|
+
readonly untrackedEdit: <P extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | `childUids.${number}` | "spec.info" | "spec.tags" | "spec.security" | "spec.openapi" | "spec.serverUids" | "spec.externalDocs" | "spec.info.summary" | "spec.info.title" | "spec.info.description" | "spec.info.version" | "spec.info.termsOfService" | "spec.info.contact" | "spec.info.license" | "spec.info.contact.name" | "spec.info.contact.email" | "spec.info.contact.url" | "spec.info.license.name" | "spec.info.license.url" | "spec.info.license.identifier" | "spec.externalDocs.description" | "spec.externalDocs.url" | `spec.tags.${number}` | `spec.tags.${number}.name` | `spec.tags.${number}.description` | `spec.tags.${number}.externalDocs` | `spec.tags.${number}.externalDocs.description` | `spec.tags.${number}.externalDocs.url` | `spec.security.${number}` | `spec.security.${number}.${string}` | `spec.serverUids.${number}` | `selectedSecuritySchemes.${number}` | `selectedSecuritySchemes.${number}.uid` | `selectedSecuritySchemes.${number}.flowKey`>(uid: string, path: P, value: P extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" ? {
|
|
1383
1436
|
uid: string;
|
|
1384
1437
|
spec: {
|
|
1385
1438
|
openapi: string;
|
|
@@ -1421,7 +1474,7 @@ export declare const useWorkspace: () => {
|
|
|
1421
1474
|
}[];
|
|
1422
1475
|
selectedServerUid: string;
|
|
1423
1476
|
childUids: string[];
|
|
1424
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" ? R extends Path<{
|
|
1477
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "childUids" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
1425
1478
|
uid: string;
|
|
1426
1479
|
spec: {
|
|
1427
1480
|
openapi: string;
|
|
@@ -1463,7 +1516,7 @@ export declare const useWorkspace: () => {
|
|
|
1463
1516
|
}[];
|
|
1464
1517
|
selectedServerUid: string;
|
|
1465
1518
|
childUids: string[];
|
|
1466
|
-
}[K]> ? PathValue<{
|
|
1519
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
1467
1520
|
uid: string;
|
|
1468
1521
|
spec: {
|
|
1469
1522
|
openapi: string;
|
|
@@ -1506,12 +1559,12 @@ export declare const useWorkspace: () => {
|
|
|
1506
1559
|
selectedServerUid: string;
|
|
1507
1560
|
childUids: string[];
|
|
1508
1561
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1509
|
-
undo: (uid: string) => void;
|
|
1510
|
-
redo: (uid: string) => void;
|
|
1562
|
+
readonly undo: (uid: string) => void;
|
|
1563
|
+
readonly redo: (uid: string) => void;
|
|
1511
1564
|
};
|
|
1512
|
-
environmentMutators: {
|
|
1513
|
-
delete: (uid: string) => void;
|
|
1514
|
-
add: (item: {
|
|
1565
|
+
readonly environmentMutators: {
|
|
1566
|
+
readonly delete: (uid: string) => void;
|
|
1567
|
+
readonly add: (item: {
|
|
1515
1568
|
uid: string;
|
|
1516
1569
|
name: string;
|
|
1517
1570
|
color: string;
|
|
@@ -1522,7 +1575,7 @@ export declare const useWorkspace: () => {
|
|
|
1522
1575
|
}[];
|
|
1523
1576
|
isDefault?: boolean | undefined;
|
|
1524
1577
|
}) => void;
|
|
1525
|
-
set: (item: {
|
|
1578
|
+
readonly set: (item: {
|
|
1526
1579
|
uid: string;
|
|
1527
1580
|
name: string;
|
|
1528
1581
|
color: string;
|
|
@@ -1533,7 +1586,7 @@ export declare const useWorkspace: () => {
|
|
|
1533
1586
|
}[];
|
|
1534
1587
|
isDefault?: boolean | undefined;
|
|
1535
1588
|
}) => void;
|
|
1536
|
-
edit: <P extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" | `parsed.${number}` | `parsed.${number}.key` | `parsed.${number}.value`>(uid: string, path: P, value: P extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" ? {
|
|
1589
|
+
readonly edit: <P extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" | `parsed.${number}` | `parsed.${number}.key` | `parsed.${number}.value`>(uid: string, path: P, value: P extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" ? {
|
|
1537
1590
|
uid: string;
|
|
1538
1591
|
name: string;
|
|
1539
1592
|
color: string;
|
|
@@ -1543,7 +1596,7 @@ export declare const useWorkspace: () => {
|
|
|
1543
1596
|
key: string;
|
|
1544
1597
|
}[];
|
|
1545
1598
|
isDefault?: boolean | undefined;
|
|
1546
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" ? R extends Path<{
|
|
1599
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
1547
1600
|
uid: string;
|
|
1548
1601
|
name: string;
|
|
1549
1602
|
color: string;
|
|
@@ -1553,7 +1606,7 @@ export declare const useWorkspace: () => {
|
|
|
1553
1606
|
key: string;
|
|
1554
1607
|
}[];
|
|
1555
1608
|
isDefault?: boolean | undefined;
|
|
1556
|
-
}[K]> ? PathValue<{
|
|
1609
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
1557
1610
|
uid: string;
|
|
1558
1611
|
name: string;
|
|
1559
1612
|
color: string;
|
|
@@ -1564,7 +1617,7 @@ export declare const useWorkspace: () => {
|
|
|
1564
1617
|
}[];
|
|
1565
1618
|
isDefault?: boolean | undefined;
|
|
1566
1619
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1567
|
-
untrackedEdit: <P extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" | `parsed.${number}` | `parsed.${number}.key` | `parsed.${number}.value`>(uid: string, path: P, value: P extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" ? {
|
|
1620
|
+
readonly untrackedEdit: <P extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" | `parsed.${number}` | `parsed.${number}.key` | `parsed.${number}.value`>(uid: string, path: P, value: P extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" ? {
|
|
1568
1621
|
uid: string;
|
|
1569
1622
|
name: string;
|
|
1570
1623
|
color: string;
|
|
@@ -1574,7 +1627,7 @@ export declare const useWorkspace: () => {
|
|
|
1574
1627
|
key: string;
|
|
1575
1628
|
}[];
|
|
1576
1629
|
isDefault?: boolean | undefined;
|
|
1577
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" ? R extends Path<{
|
|
1630
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "raw" | "color" | "parsed" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
1578
1631
|
uid: string;
|
|
1579
1632
|
name: string;
|
|
1580
1633
|
color: string;
|
|
@@ -1584,7 +1637,7 @@ export declare const useWorkspace: () => {
|
|
|
1584
1637
|
key: string;
|
|
1585
1638
|
}[];
|
|
1586
1639
|
isDefault?: boolean | undefined;
|
|
1587
|
-
}[K]> ? PathValue<{
|
|
1640
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
1588
1641
|
uid: string;
|
|
1589
1642
|
name: string;
|
|
1590
1643
|
color: string;
|
|
@@ -1595,55 +1648,62 @@ export declare const useWorkspace: () => {
|
|
|
1595
1648
|
}[];
|
|
1596
1649
|
isDefault?: boolean | undefined;
|
|
1597
1650
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1598
|
-
undo: (uid: string) => void;
|
|
1599
|
-
redo: (uid: string) => void;
|
|
1651
|
+
readonly undo: (uid: string) => void;
|
|
1652
|
+
readonly redo: (uid: string) => void;
|
|
1600
1653
|
};
|
|
1601
|
-
folderMutators: {
|
|
1602
|
-
|
|
1603
|
-
delete: (folderUid: string, parentUid: string) => void;
|
|
1604
|
-
set: (item: {
|
|
1654
|
+
readonly folderMutators: {
|
|
1655
|
+
readonly rawAdd: (item: {
|
|
1605
1656
|
uid: string;
|
|
1606
1657
|
name: string;
|
|
1607
1658
|
childUids: string[];
|
|
1608
1659
|
description?: string | undefined;
|
|
1609
1660
|
}) => void;
|
|
1610
|
-
|
|
1661
|
+
readonly add: (payload: FolderPayload, parentUid?: string) => void;
|
|
1662
|
+
readonly delete: (folderUid: string, parentUid: string) => void;
|
|
1663
|
+
readonly set: (item: {
|
|
1611
1664
|
uid: string;
|
|
1612
1665
|
name: string;
|
|
1613
1666
|
childUids: string[];
|
|
1614
1667
|
description?: string | undefined;
|
|
1615
|
-
}
|
|
1668
|
+
}) => void;
|
|
1669
|
+
readonly edit: <P extends "name" | "uid" | "description" | "childUids" | `childUids.${number}`>(uid: string, path: P, value: P extends "name" | "uid" | "description" | "childUids" ? {
|
|
1616
1670
|
uid: string;
|
|
1617
1671
|
name: string;
|
|
1618
1672
|
childUids: string[];
|
|
1619
1673
|
description?: string | undefined;
|
|
1620
|
-
}[
|
|
1674
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "description" | "childUids" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
1675
|
+
uid: string;
|
|
1676
|
+
name: string;
|
|
1677
|
+
childUids: string[];
|
|
1678
|
+
description?: string | undefined;
|
|
1679
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
1621
1680
|
uid: string;
|
|
1622
1681
|
name: string;
|
|
1623
1682
|
childUids: string[];
|
|
1624
1683
|
description?: string | undefined;
|
|
1625
1684
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1626
|
-
untrackedEdit: <P extends "name" | "uid" | "description" | "childUids" | `childUids.${number}`>(uid: string, path: P, value: P extends "name" | "uid" | "description" | "childUids" ? {
|
|
1685
|
+
readonly untrackedEdit: <P extends "name" | "uid" | "description" | "childUids" | `childUids.${number}`>(uid: string, path: P, value: P extends "name" | "uid" | "description" | "childUids" ? {
|
|
1627
1686
|
uid: string;
|
|
1628
1687
|
name: string;
|
|
1629
1688
|
childUids: string[];
|
|
1630
1689
|
description?: string | undefined;
|
|
1631
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "description" | "childUids" ? R extends Path<{
|
|
1690
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "description" | "childUids" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
1632
1691
|
uid: string;
|
|
1633
1692
|
name: string;
|
|
1634
1693
|
childUids: string[];
|
|
1635
1694
|
description?: string | undefined;
|
|
1636
|
-
}[K]> ? PathValue<{
|
|
1695
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
1637
1696
|
uid: string;
|
|
1638
1697
|
name: string;
|
|
1639
1698
|
childUids: string[];
|
|
1640
1699
|
description?: string | undefined;
|
|
1641
1700
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1642
|
-
undo: (uid: string) => void;
|
|
1643
|
-
redo: (uid: string) => void;
|
|
1701
|
+
readonly undo: (uid: string) => void;
|
|
1702
|
+
readonly redo: (uid: string) => void;
|
|
1644
1703
|
};
|
|
1645
|
-
requestMutators: {
|
|
1646
|
-
|
|
1704
|
+
readonly requestMutators: {
|
|
1705
|
+
readonly rawAdd: (item: Request) => void;
|
|
1706
|
+
readonly add: (payload: RequestPayload, parentUid?: string) => {
|
|
1647
1707
|
path: string;
|
|
1648
1708
|
uid: string;
|
|
1649
1709
|
tags: string[];
|
|
@@ -1667,17 +1727,111 @@ export declare const useWorkspace: () => {
|
|
|
1667
1727
|
operationId?: string | undefined;
|
|
1668
1728
|
requestBody?: any;
|
|
1669
1729
|
};
|
|
1670
|
-
delete: (request: Request, parentUid: string) => void;
|
|
1671
|
-
set: (item: Request) => void;
|
|
1672
|
-
edit: <P extends "ref" | "summary" | "path" | "uid" | "
|
|
1673
|
-
untrackedEdit: <P extends "ref" | "summary" | "path" | "uid" | "
|
|
1674
|
-
undo: (uid: string) => void;
|
|
1675
|
-
redo: (uid: string) => void;
|
|
1730
|
+
readonly delete: (request: Request, parentUid: string) => void;
|
|
1731
|
+
readonly set: (item: Request) => void;
|
|
1732
|
+
readonly edit: <P extends "ref" | "summary" | "path" | "uid" | "description" | "tags" | "childUids" | "method" | "parameters" | "history" | "security" | "operationId" | "requestBody" | `childUids.${number}` | "externalDocs" | "externalDocs.description" | "externalDocs.url" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "ref.path" | "ref.isExternal" | "ref.collectionRef" | "parameters.path" | "parameters.query" | "parameters.cookies" | "parameters.headers" | `parameters.path.${string}` | `parameters.query.${string}` | `parameters.cookies.${string}` | `parameters.headers.${string}` | `history.${number}` | `history.${number}.${string}` | `requestBody.${string}`>(uid: string, path: P, value: P extends "ref" | "summary" | "path" | "uid" | "description" | "tags" | "childUids" | "method" | "parameters" | "history" | "security" | "operationId" | "requestBody" | "externalDocs" ? Request[P] : P extends `${infer K}.${infer R}` ? K extends "ref" | "summary" | "path" | "uid" | "description" | "tags" | "childUids" | "method" | "parameters" | "history" | "security" | "operationId" | "requestBody" | "externalDocs" ? R extends import("@scalar/object-utils/nested").Path<Request[K]> ? import("@scalar/object-utils/nested").PathValue<Request[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1733
|
+
readonly untrackedEdit: <P extends "ref" | "summary" | "path" | "uid" | "description" | "tags" | "childUids" | "method" | "parameters" | "history" | "security" | "operationId" | "requestBody" | `childUids.${number}` | "externalDocs" | "externalDocs.description" | "externalDocs.url" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "ref.path" | "ref.isExternal" | "ref.collectionRef" | "parameters.path" | "parameters.query" | "parameters.cookies" | "parameters.headers" | `parameters.path.${string}` | `parameters.query.${string}` | `parameters.cookies.${string}` | `parameters.headers.${string}` | `history.${number}` | `history.${number}.${string}` | `requestBody.${string}`>(uid: string, path: P, value: P extends "ref" | "summary" | "path" | "uid" | "description" | "tags" | "childUids" | "method" | "parameters" | "history" | "security" | "operationId" | "requestBody" | "externalDocs" ? Request[P] : P extends `${infer K}.${infer R}` ? K extends "ref" | "summary" | "path" | "uid" | "description" | "tags" | "childUids" | "method" | "parameters" | "history" | "security" | "operationId" | "requestBody" | "externalDocs" ? R extends import("@scalar/object-utils/nested").Path<Request[K]> ? import("@scalar/object-utils/nested").PathValue<Request[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1734
|
+
readonly undo: (uid: string) => void;
|
|
1735
|
+
readonly redo: (uid: string) => void;
|
|
1676
1736
|
};
|
|
1677
|
-
requestExampleMutators: {
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1737
|
+
readonly requestExampleMutators: {
|
|
1738
|
+
readonly rawAdd: (item: {
|
|
1739
|
+
uid: string;
|
|
1740
|
+
name: string;
|
|
1741
|
+
parameters: {
|
|
1742
|
+
path: {
|
|
1743
|
+
value: string;
|
|
1744
|
+
key: string;
|
|
1745
|
+
enabled: boolean;
|
|
1746
|
+
minimum?: number | undefined;
|
|
1747
|
+
type?: string | undefined;
|
|
1748
|
+
maximum?: number | undefined;
|
|
1749
|
+
default?: any;
|
|
1750
|
+
description?: string | undefined;
|
|
1751
|
+
enum?: string[] | undefined;
|
|
1752
|
+
required?: boolean | undefined;
|
|
1753
|
+
file?: File | undefined;
|
|
1754
|
+
refUid?: string | undefined;
|
|
1755
|
+
format?: string | undefined;
|
|
1756
|
+
}[];
|
|
1757
|
+
query: {
|
|
1758
|
+
value: string;
|
|
1759
|
+
key: string;
|
|
1760
|
+
enabled: boolean;
|
|
1761
|
+
minimum?: number | undefined;
|
|
1762
|
+
type?: string | undefined;
|
|
1763
|
+
maximum?: number | undefined;
|
|
1764
|
+
default?: any;
|
|
1765
|
+
description?: string | undefined;
|
|
1766
|
+
enum?: string[] | undefined;
|
|
1767
|
+
required?: boolean | undefined;
|
|
1768
|
+
file?: File | undefined;
|
|
1769
|
+
refUid?: string | undefined;
|
|
1770
|
+
format?: string | undefined;
|
|
1771
|
+
}[];
|
|
1772
|
+
cookies: {
|
|
1773
|
+
value: string;
|
|
1774
|
+
key: string;
|
|
1775
|
+
enabled: boolean;
|
|
1776
|
+
minimum?: number | undefined;
|
|
1777
|
+
type?: string | undefined;
|
|
1778
|
+
maximum?: number | undefined;
|
|
1779
|
+
default?: any;
|
|
1780
|
+
description?: string | undefined;
|
|
1781
|
+
enum?: string[] | undefined;
|
|
1782
|
+
required?: boolean | undefined;
|
|
1783
|
+
file?: File | undefined;
|
|
1784
|
+
refUid?: string | undefined;
|
|
1785
|
+
format?: string | undefined;
|
|
1786
|
+
}[];
|
|
1787
|
+
headers: {
|
|
1788
|
+
value: string;
|
|
1789
|
+
key: string;
|
|
1790
|
+
enabled: boolean;
|
|
1791
|
+
minimum?: number | undefined;
|
|
1792
|
+
type?: string | undefined;
|
|
1793
|
+
maximum?: number | undefined;
|
|
1794
|
+
default?: any;
|
|
1795
|
+
description?: string | undefined;
|
|
1796
|
+
enum?: string[] | undefined;
|
|
1797
|
+
required?: boolean | undefined;
|
|
1798
|
+
file?: File | undefined;
|
|
1799
|
+
refUid?: string | undefined;
|
|
1800
|
+
format?: string | undefined;
|
|
1801
|
+
}[];
|
|
1802
|
+
};
|
|
1803
|
+
requestUid: string;
|
|
1804
|
+
body: {
|
|
1805
|
+
raw: {
|
|
1806
|
+
value: string;
|
|
1807
|
+
encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
|
|
1808
|
+
};
|
|
1809
|
+
formData: {
|
|
1810
|
+
value: {
|
|
1811
|
+
value: string;
|
|
1812
|
+
key: string;
|
|
1813
|
+
enabled: boolean;
|
|
1814
|
+
minimum?: number | undefined;
|
|
1815
|
+
type?: string | undefined;
|
|
1816
|
+
maximum?: number | undefined;
|
|
1817
|
+
default?: any;
|
|
1818
|
+
description?: string | undefined;
|
|
1819
|
+
enum?: string[] | undefined;
|
|
1820
|
+
required?: boolean | undefined;
|
|
1821
|
+
file?: File | undefined;
|
|
1822
|
+
refUid?: string | undefined;
|
|
1823
|
+
format?: string | undefined;
|
|
1824
|
+
}[];
|
|
1825
|
+
encoding: "form-data" | "urlencoded";
|
|
1826
|
+
};
|
|
1827
|
+
activeBody: "raw" | "formData" | "binary";
|
|
1828
|
+
binary?: File | undefined;
|
|
1829
|
+
};
|
|
1830
|
+
auth: Record<string, any>;
|
|
1831
|
+
}) => void;
|
|
1832
|
+
readonly add: (request: Request) => void;
|
|
1833
|
+
readonly delete: (requestExample: RequestExample) => void;
|
|
1834
|
+
readonly set: (item: {
|
|
1681
1835
|
uid: string;
|
|
1682
1836
|
name: string;
|
|
1683
1837
|
parameters: {
|
|
@@ -1771,7 +1925,7 @@ export declare const useWorkspace: () => {
|
|
|
1771
1925
|
};
|
|
1772
1926
|
auth: Record<string, any>;
|
|
1773
1927
|
}) => void;
|
|
1774
|
-
edit: <P extends "body" | "name" | "uid" | "parameters" | "requestUid" | "auth" | "body.raw" | "body.formData" | "body.
|
|
1928
|
+
readonly edit: <P extends "body" | "name" | "uid" | "parameters" | "parameters.path" | "parameters.query" | "parameters.cookies" | "parameters.headers" | "requestUid" | "auth" | "body.raw" | "body.formData" | "body.binary" | "body.activeBody" | "body.raw.value" | "body.raw.encoding" | "body.formData.value" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.description` | `body.formData.value.${number}.default` | `body.formData.value.${number}.key` | `body.formData.value.${number}.type` | `body.formData.value.${number}.required` | `body.formData.value.${number}.value` | `body.formData.value.${number}.file` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.format` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.refUid` | `body.formData.value.${number}.default.${string}` | `body.formData.value.${number}.enum.${number}` | `parameters.path.${number}` | `parameters.path.${number}.description` | `parameters.path.${number}.default` | `parameters.path.${number}.key` | `parameters.path.${number}.type` | `parameters.path.${number}.required` | `parameters.path.${number}.value` | `parameters.path.${number}.file` | `parameters.path.${number}.enum` | `parameters.path.${number}.format` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.enabled` | `parameters.path.${number}.refUid` | `parameters.path.${number}.default.${string}` | `parameters.path.${number}.enum.${number}` | `parameters.query.${number}` | `parameters.query.${number}.description` | `parameters.query.${number}.default` | `parameters.query.${number}.key` | `parameters.query.${number}.type` | `parameters.query.${number}.required` | `parameters.query.${number}.value` | `parameters.query.${number}.file` | `parameters.query.${number}.enum` | `parameters.query.${number}.format` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.enabled` | `parameters.query.${number}.refUid` | `parameters.query.${number}.default.${string}` | `parameters.query.${number}.enum.${number}` | `parameters.cookies.${number}` | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.refUid` | `parameters.cookies.${number}.default.${string}` | `parameters.cookies.${number}.enum.${number}` | `parameters.headers.${number}` | `parameters.headers.${number}.description` | `parameters.headers.${number}.default` | `parameters.headers.${number}.key` | `parameters.headers.${number}.type` | `parameters.headers.${number}.required` | `parameters.headers.${number}.value` | `parameters.headers.${number}.file` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.format` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.refUid` | `parameters.headers.${number}.default.${string}` | `parameters.headers.${number}.enum.${number}` | `auth.${string}`>(uid: string, path: P, value: P extends "body" | "name" | "uid" | "parameters" | "requestUid" | "auth" ? {
|
|
1775
1929
|
uid: string;
|
|
1776
1930
|
name: string;
|
|
1777
1931
|
parameters: {
|
|
@@ -1864,7 +2018,7 @@ export declare const useWorkspace: () => {
|
|
|
1864
2018
|
binary?: File | undefined;
|
|
1865
2019
|
};
|
|
1866
2020
|
auth: Record<string, any>;
|
|
1867
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "body" | "name" | "uid" | "parameters" | "requestUid" | "auth" ? R extends Path<{
|
|
2021
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "body" | "name" | "uid" | "parameters" | "requestUid" | "auth" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
1868
2022
|
uid: string;
|
|
1869
2023
|
name: string;
|
|
1870
2024
|
parameters: {
|
|
@@ -1957,7 +2111,7 @@ export declare const useWorkspace: () => {
|
|
|
1957
2111
|
binary?: File | undefined;
|
|
1958
2112
|
};
|
|
1959
2113
|
auth: Record<string, any>;
|
|
1960
|
-
}[K]> ? PathValue<{
|
|
2114
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
1961
2115
|
uid: string;
|
|
1962
2116
|
name: string;
|
|
1963
2117
|
parameters: {
|
|
@@ -2051,7 +2205,7 @@ export declare const useWorkspace: () => {
|
|
|
2051
2205
|
};
|
|
2052
2206
|
auth: Record<string, any>;
|
|
2053
2207
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
2054
|
-
untrackedEdit: <P extends "body" | "name" | "uid" | "parameters" | "requestUid" | "auth" | "body.raw" | "body.formData" | "body.
|
|
2208
|
+
readonly untrackedEdit: <P extends "body" | "name" | "uid" | "parameters" | "parameters.path" | "parameters.query" | "parameters.cookies" | "parameters.headers" | "requestUid" | "auth" | "body.raw" | "body.formData" | "body.binary" | "body.activeBody" | "body.raw.value" | "body.raw.encoding" | "body.formData.value" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.description` | `body.formData.value.${number}.default` | `body.formData.value.${number}.key` | `body.formData.value.${number}.type` | `body.formData.value.${number}.required` | `body.formData.value.${number}.value` | `body.formData.value.${number}.file` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.format` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.refUid` | `body.formData.value.${number}.default.${string}` | `body.formData.value.${number}.enum.${number}` | `parameters.path.${number}` | `parameters.path.${number}.description` | `parameters.path.${number}.default` | `parameters.path.${number}.key` | `parameters.path.${number}.type` | `parameters.path.${number}.required` | `parameters.path.${number}.value` | `parameters.path.${number}.file` | `parameters.path.${number}.enum` | `parameters.path.${number}.format` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.enabled` | `parameters.path.${number}.refUid` | `parameters.path.${number}.default.${string}` | `parameters.path.${number}.enum.${number}` | `parameters.query.${number}` | `parameters.query.${number}.description` | `parameters.query.${number}.default` | `parameters.query.${number}.key` | `parameters.query.${number}.type` | `parameters.query.${number}.required` | `parameters.query.${number}.value` | `parameters.query.${number}.file` | `parameters.query.${number}.enum` | `parameters.query.${number}.format` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.enabled` | `parameters.query.${number}.refUid` | `parameters.query.${number}.default.${string}` | `parameters.query.${number}.enum.${number}` | `parameters.cookies.${number}` | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.refUid` | `parameters.cookies.${number}.default.${string}` | `parameters.cookies.${number}.enum.${number}` | `parameters.headers.${number}` | `parameters.headers.${number}.description` | `parameters.headers.${number}.default` | `parameters.headers.${number}.key` | `parameters.headers.${number}.type` | `parameters.headers.${number}.required` | `parameters.headers.${number}.value` | `parameters.headers.${number}.file` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.format` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.refUid` | `parameters.headers.${number}.default.${string}` | `parameters.headers.${number}.enum.${number}` | `auth.${string}`>(uid: string, path: P, value: P extends "body" | "name" | "uid" | "parameters" | "requestUid" | "auth" ? {
|
|
2055
2209
|
uid: string;
|
|
2056
2210
|
name: string;
|
|
2057
2211
|
parameters: {
|
|
@@ -2144,7 +2298,7 @@ export declare const useWorkspace: () => {
|
|
|
2144
2298
|
binary?: File | undefined;
|
|
2145
2299
|
};
|
|
2146
2300
|
auth: Record<string, any>;
|
|
2147
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "body" | "name" | "uid" | "parameters" | "requestUid" | "auth" ? R extends Path<{
|
|
2301
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "body" | "name" | "uid" | "parameters" | "requestUid" | "auth" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2148
2302
|
uid: string;
|
|
2149
2303
|
name: string;
|
|
2150
2304
|
parameters: {
|
|
@@ -2237,7 +2391,7 @@ export declare const useWorkspace: () => {
|
|
|
2237
2391
|
binary?: File | undefined;
|
|
2238
2392
|
};
|
|
2239
2393
|
auth: Record<string, any>;
|
|
2240
|
-
}[K]> ? PathValue<{
|
|
2394
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2241
2395
|
uid: string;
|
|
2242
2396
|
name: string;
|
|
2243
2397
|
parameters: {
|
|
@@ -2331,11 +2485,11 @@ export declare const useWorkspace: () => {
|
|
|
2331
2485
|
};
|
|
2332
2486
|
auth: Record<string, any>;
|
|
2333
2487
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
2334
|
-
undo: (uid: string) => void;
|
|
2335
|
-
redo: (uid: string) => void;
|
|
2488
|
+
readonly undo: (uid: string) => void;
|
|
2489
|
+
readonly redo: (uid: string) => void;
|
|
2336
2490
|
};
|
|
2337
|
-
requestsHistory: import("vue").ComputedRef<RequestEvent[]>;
|
|
2338
|
-
securitySchemeMutators: {
|
|
2491
|
+
readonly requestsHistory: import("vue").ComputedRef<RequestEvent[]>;
|
|
2492
|
+
readonly securitySchemeMutators: {
|
|
2339
2493
|
add: (item: {
|
|
2340
2494
|
type: "apiKey";
|
|
2341
2495
|
value: string;
|
|
@@ -2463,28 +2617,28 @@ export declare const useWorkspace: () => {
|
|
|
2463
2617
|
openIdConnectUrl: string;
|
|
2464
2618
|
description?: string | undefined;
|
|
2465
2619
|
}) => void;
|
|
2466
|
-
edit: <P extends "type" | "name" | "value" | "uid" | "
|
|
2620
|
+
edit: <P extends "type" | "name" | "value" | "uid" | "in" | "description" | "scheme" | "bearerFormat" | "secondValue" | "flows" | "clientId" | "redirectUri" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.authorizationUrl" | "flows.implicit.selectedScopes" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | `flows.implicit.selectedScopes.${number}` | `flows.implicit.scopes.${string}` | "flows.password.value" | "flows.password.secondValue" | "flows.password.selectedScopes" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | `flows.password.selectedScopes.${number}` | `flows.password.scopes.${string}` | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.scopes.${string}` | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.scopes.${string}` | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "openIdConnectUrl">(uid: string, path: P, value: (P extends "type" | "name" | "value" | "uid" | "in" | "description" ? {
|
|
2467
2621
|
type: "apiKey";
|
|
2468
2622
|
value: string;
|
|
2469
2623
|
uid: string;
|
|
2470
2624
|
name: string;
|
|
2471
2625
|
in: "query" | "header" | "cookie";
|
|
2472
2626
|
description?: string | undefined;
|
|
2473
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "value" | "uid" | "
|
|
2627
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "value" | "uid" | "in" | "description" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2474
2628
|
type: "apiKey";
|
|
2475
2629
|
value: string;
|
|
2476
2630
|
uid: string;
|
|
2477
2631
|
name: string;
|
|
2478
2632
|
in: "query" | "header" | "cookie";
|
|
2479
2633
|
description?: string | undefined;
|
|
2480
|
-
}[K]> ? PathValue<{
|
|
2634
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2481
2635
|
type: "apiKey";
|
|
2482
2636
|
value: string;
|
|
2483
2637
|
uid: string;
|
|
2484
2638
|
name: string;
|
|
2485
2639
|
in: "query" | "header" | "cookie";
|
|
2486
2640
|
description?: string | undefined;
|
|
2487
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "value" | "uid" | "description" | "scheme" | "
|
|
2641
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "value" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? {
|
|
2488
2642
|
type: "http";
|
|
2489
2643
|
value: string;
|
|
2490
2644
|
uid: string;
|
|
@@ -2492,7 +2646,7 @@ export declare const useWorkspace: () => {
|
|
|
2492
2646
|
bearerFormat: string;
|
|
2493
2647
|
secondValue: string;
|
|
2494
2648
|
description?: string | undefined;
|
|
2495
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "value" | "uid" | "description" | "scheme" | "
|
|
2649
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "value" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2496
2650
|
type: "http";
|
|
2497
2651
|
value: string;
|
|
2498
2652
|
uid: string;
|
|
@@ -2500,7 +2654,7 @@ export declare const useWorkspace: () => {
|
|
|
2500
2654
|
bearerFormat: string;
|
|
2501
2655
|
secondValue: string;
|
|
2502
2656
|
description?: string | undefined;
|
|
2503
|
-
}[K]> ? PathValue<{
|
|
2657
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2504
2658
|
type: "http";
|
|
2505
2659
|
value: string;
|
|
2506
2660
|
uid: string;
|
|
@@ -2550,7 +2704,7 @@ export declare const useWorkspace: () => {
|
|
|
2550
2704
|
clientId: string;
|
|
2551
2705
|
redirectUri: string;
|
|
2552
2706
|
description?: string | undefined;
|
|
2553
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "flows" | "clientId" | "redirectUri" ? R extends Path<{
|
|
2707
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "flows" | "clientId" | "redirectUri" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2554
2708
|
type: "oauth2";
|
|
2555
2709
|
uid: string;
|
|
2556
2710
|
flows: {
|
|
@@ -2592,7 +2746,7 @@ export declare const useWorkspace: () => {
|
|
|
2592
2746
|
clientId: string;
|
|
2593
2747
|
redirectUri: string;
|
|
2594
2748
|
description?: string | undefined;
|
|
2595
|
-
}[K]> ? PathValue<{
|
|
2749
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2596
2750
|
type: "oauth2";
|
|
2597
2751
|
uid: string;
|
|
2598
2752
|
flows: {
|
|
@@ -2639,39 +2793,39 @@ export declare const useWorkspace: () => {
|
|
|
2639
2793
|
uid: string;
|
|
2640
2794
|
openIdConnectUrl: string;
|
|
2641
2795
|
description?: string | undefined;
|
|
2642
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends Path<{
|
|
2796
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2643
2797
|
type: "openIdConnect";
|
|
2644
2798
|
uid: string;
|
|
2645
2799
|
openIdConnectUrl: string;
|
|
2646
2800
|
description?: string | undefined;
|
|
2647
|
-
}[K]> ? PathValue<{
|
|
2801
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2648
2802
|
type: "openIdConnect";
|
|
2649
2803
|
uid: string;
|
|
2650
2804
|
openIdConnectUrl: string;
|
|
2651
2805
|
description?: string | undefined;
|
|
2652
2806
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
2653
|
-
untrackedEdit: <P extends "type" | "name" | "value" | "uid" | "
|
|
2807
|
+
untrackedEdit: <P extends "type" | "name" | "value" | "uid" | "in" | "description" | "scheme" | "bearerFormat" | "secondValue" | "flows" | "clientId" | "redirectUri" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.authorizationUrl" | "flows.implicit.selectedScopes" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | `flows.implicit.selectedScopes.${number}` | `flows.implicit.scopes.${string}` | "flows.password.value" | "flows.password.secondValue" | "flows.password.selectedScopes" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | `flows.password.selectedScopes.${number}` | `flows.password.scopes.${string}` | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.scopes.${string}` | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.scopes.${string}` | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "openIdConnectUrl">(uid: string, path: P, value: (P extends "type" | "name" | "value" | "uid" | "in" | "description" ? {
|
|
2654
2808
|
type: "apiKey";
|
|
2655
2809
|
value: string;
|
|
2656
2810
|
uid: string;
|
|
2657
2811
|
name: string;
|
|
2658
2812
|
in: "query" | "header" | "cookie";
|
|
2659
2813
|
description?: string | undefined;
|
|
2660
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "value" | "uid" | "
|
|
2814
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "value" | "uid" | "in" | "description" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2661
2815
|
type: "apiKey";
|
|
2662
2816
|
value: string;
|
|
2663
2817
|
uid: string;
|
|
2664
2818
|
name: string;
|
|
2665
2819
|
in: "query" | "header" | "cookie";
|
|
2666
2820
|
description?: string | undefined;
|
|
2667
|
-
}[K]> ? PathValue<{
|
|
2821
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2668
2822
|
type: "apiKey";
|
|
2669
2823
|
value: string;
|
|
2670
2824
|
uid: string;
|
|
2671
2825
|
name: string;
|
|
2672
2826
|
in: "query" | "header" | "cookie";
|
|
2673
2827
|
description?: string | undefined;
|
|
2674
|
-
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "value" | "uid" | "description" | "scheme" | "
|
|
2828
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "value" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? {
|
|
2675
2829
|
type: "http";
|
|
2676
2830
|
value: string;
|
|
2677
2831
|
uid: string;
|
|
@@ -2679,7 +2833,7 @@ export declare const useWorkspace: () => {
|
|
|
2679
2833
|
bearerFormat: string;
|
|
2680
2834
|
secondValue: string;
|
|
2681
2835
|
description?: string | undefined;
|
|
2682
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "value" | "uid" | "description" | "scheme" | "
|
|
2836
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "value" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2683
2837
|
type: "http";
|
|
2684
2838
|
value: string;
|
|
2685
2839
|
uid: string;
|
|
@@ -2687,7 +2841,7 @@ export declare const useWorkspace: () => {
|
|
|
2687
2841
|
bearerFormat: string;
|
|
2688
2842
|
secondValue: string;
|
|
2689
2843
|
description?: string | undefined;
|
|
2690
|
-
}[K]> ? PathValue<{
|
|
2844
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2691
2845
|
type: "http";
|
|
2692
2846
|
value: string;
|
|
2693
2847
|
uid: string;
|
|
@@ -2737,7 +2891,7 @@ export declare const useWorkspace: () => {
|
|
|
2737
2891
|
clientId: string;
|
|
2738
2892
|
redirectUri: string;
|
|
2739
2893
|
description?: string | undefined;
|
|
2740
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "flows" | "clientId" | "redirectUri" ? R extends Path<{
|
|
2894
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "flows" | "clientId" | "redirectUri" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2741
2895
|
type: "oauth2";
|
|
2742
2896
|
uid: string;
|
|
2743
2897
|
flows: {
|
|
@@ -2779,7 +2933,7 @@ export declare const useWorkspace: () => {
|
|
|
2779
2933
|
clientId: string;
|
|
2780
2934
|
redirectUri: string;
|
|
2781
2935
|
description?: string | undefined;
|
|
2782
|
-
}[K]> ? PathValue<{
|
|
2936
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2783
2937
|
type: "oauth2";
|
|
2784
2938
|
uid: string;
|
|
2785
2939
|
flows: {
|
|
@@ -2826,12 +2980,12 @@ export declare const useWorkspace: () => {
|
|
|
2826
2980
|
uid: string;
|
|
2827
2981
|
openIdConnectUrl: string;
|
|
2828
2982
|
description?: string | undefined;
|
|
2829
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends Path<{
|
|
2983
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2830
2984
|
type: "openIdConnect";
|
|
2831
2985
|
uid: string;
|
|
2832
2986
|
openIdConnectUrl: string;
|
|
2833
2987
|
description?: string | undefined;
|
|
2834
|
-
}[K]> ? PathValue<{
|
|
2988
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2835
2989
|
type: "openIdConnect";
|
|
2836
2990
|
uid: string;
|
|
2837
2991
|
openIdConnectUrl: string;
|
|
@@ -2840,10 +2994,22 @@ export declare const useWorkspace: () => {
|
|
|
2840
2994
|
undo: (uid: string) => void;
|
|
2841
2995
|
redo: (uid: string) => void;
|
|
2842
2996
|
};
|
|
2843
|
-
serverMutators: {
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2997
|
+
readonly serverMutators: {
|
|
2998
|
+
readonly rawAdd: (item: {
|
|
2999
|
+
uid: string;
|
|
3000
|
+
url: string;
|
|
3001
|
+
description?: string | undefined;
|
|
3002
|
+
variables?: Record<string, {
|
|
3003
|
+
default: string;
|
|
3004
|
+
uid: string;
|
|
3005
|
+
value?: string | undefined;
|
|
3006
|
+
description?: string | undefined;
|
|
3007
|
+
enum?: string[] | undefined;
|
|
3008
|
+
}> | null | undefined;
|
|
3009
|
+
}) => void;
|
|
3010
|
+
readonly add: (payload: ServerPayload, collectionUid?: string) => void;
|
|
3011
|
+
readonly delete: (serverUid: string, collectionUid: string) => void;
|
|
3012
|
+
readonly set: (item: {
|
|
2847
3013
|
uid: string;
|
|
2848
3014
|
url: string;
|
|
2849
3015
|
description?: string | undefined;
|
|
@@ -2855,7 +3021,7 @@ export declare const useWorkspace: () => {
|
|
|
2855
3021
|
enum?: string[] | undefined;
|
|
2856
3022
|
}> | null | undefined;
|
|
2857
3023
|
}) => void;
|
|
2858
|
-
edit: <P extends "uid" | "description" | "url" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "uid" | "description" | "url" | "variables" ? {
|
|
3024
|
+
readonly edit: <P extends "uid" | "description" | "url" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "uid" | "description" | "url" | "variables" ? {
|
|
2859
3025
|
uid: string;
|
|
2860
3026
|
url: string;
|
|
2861
3027
|
description?: string | undefined;
|
|
@@ -2866,7 +3032,7 @@ export declare const useWorkspace: () => {
|
|
|
2866
3032
|
description?: string | undefined;
|
|
2867
3033
|
enum?: string[] | undefined;
|
|
2868
3034
|
}> | null | undefined;
|
|
2869
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "description" | "url" | "variables" ? R extends Path<{
|
|
3035
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "description" | "url" | "variables" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2870
3036
|
uid: string;
|
|
2871
3037
|
url: string;
|
|
2872
3038
|
description?: string | undefined;
|
|
@@ -2877,7 +3043,7 @@ export declare const useWorkspace: () => {
|
|
|
2877
3043
|
description?: string | undefined;
|
|
2878
3044
|
enum?: string[] | undefined;
|
|
2879
3045
|
}> | null | undefined;
|
|
2880
|
-
}[K]> ? PathValue<{
|
|
3046
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2881
3047
|
uid: string;
|
|
2882
3048
|
url: string;
|
|
2883
3049
|
description?: string | undefined;
|
|
@@ -2889,7 +3055,7 @@ export declare const useWorkspace: () => {
|
|
|
2889
3055
|
enum?: string[] | undefined;
|
|
2890
3056
|
}> | null | undefined;
|
|
2891
3057
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
2892
|
-
untrackedEdit: <P extends "uid" | "description" | "url" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "uid" | "description" | "url" | "variables" ? {
|
|
3058
|
+
readonly untrackedEdit: <P extends "uid" | "description" | "url" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "uid" | "description" | "url" | "variables" ? {
|
|
2893
3059
|
uid: string;
|
|
2894
3060
|
url: string;
|
|
2895
3061
|
description?: string | undefined;
|
|
@@ -2900,7 +3066,7 @@ export declare const useWorkspace: () => {
|
|
|
2900
3066
|
description?: string | undefined;
|
|
2901
3067
|
enum?: string[] | undefined;
|
|
2902
3068
|
}> | null | undefined;
|
|
2903
|
-
}[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "description" | "url" | "variables" ? R extends Path<{
|
|
3069
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "description" | "url" | "variables" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
2904
3070
|
uid: string;
|
|
2905
3071
|
url: string;
|
|
2906
3072
|
description?: string | undefined;
|
|
@@ -2911,7 +3077,7 @@ export declare const useWorkspace: () => {
|
|
|
2911
3077
|
description?: string | undefined;
|
|
2912
3078
|
enum?: string[] | undefined;
|
|
2913
3079
|
}> | null | undefined;
|
|
2914
|
-
}[K]> ? PathValue<{
|
|
3080
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
2915
3081
|
uid: string;
|
|
2916
3082
|
url: string;
|
|
2917
3083
|
description?: string | undefined;
|
|
@@ -2923,11 +3089,11 @@ export declare const useWorkspace: () => {
|
|
|
2923
3089
|
enum?: string[] | undefined;
|
|
2924
3090
|
}> | null | undefined;
|
|
2925
3091
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
2926
|
-
undo: (uid: string) => void;
|
|
2927
|
-
redo: (uid: string) => void;
|
|
3092
|
+
readonly undo: (uid: string) => void;
|
|
3093
|
+
readonly redo: (uid: string) => void;
|
|
2928
3094
|
};
|
|
2929
|
-
workspaceMutators: {
|
|
2930
|
-
|
|
3095
|
+
readonly workspaceMutators: {
|
|
3096
|
+
add: (item: {
|
|
2931
3097
|
uid: string;
|
|
2932
3098
|
description: string;
|
|
2933
3099
|
name: string;
|
|
@@ -2935,9 +3101,85 @@ export declare const useWorkspace: () => {
|
|
|
2935
3101
|
collectionUids: string[];
|
|
2936
3102
|
environmentUids: string[];
|
|
2937
3103
|
cookieUids: string[];
|
|
2938
|
-
themeId:
|
|
3104
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
2939
3105
|
proxyUrl?: string | undefined;
|
|
2940
|
-
};
|
|
3106
|
+
}) => void;
|
|
3107
|
+
delete: (uid: string) => void;
|
|
3108
|
+
set: (item: {
|
|
3109
|
+
uid: string;
|
|
3110
|
+
description: string;
|
|
3111
|
+
name: string;
|
|
3112
|
+
isReadOnly: boolean;
|
|
3113
|
+
collectionUids: string[];
|
|
3114
|
+
environmentUids: string[];
|
|
3115
|
+
cookieUids: string[];
|
|
3116
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
3117
|
+
proxyUrl?: string | undefined;
|
|
3118
|
+
}) => void;
|
|
3119
|
+
edit: <P extends "name" | "uid" | "description" | "isReadOnly" | "collectionUids" | "environmentUids" | "cookieUids" | "themeId" | "proxyUrl" | `collectionUids.${number}` | `environmentUids.${number}` | `cookieUids.${number}`>(uid: string, path: P, value: P extends "name" | "uid" | "description" | "isReadOnly" | "collectionUids" | "environmentUids" | "cookieUids" | "themeId" | "proxyUrl" ? {
|
|
3120
|
+
uid: string;
|
|
3121
|
+
description: string;
|
|
3122
|
+
name: string;
|
|
3123
|
+
isReadOnly: boolean;
|
|
3124
|
+
collectionUids: string[];
|
|
3125
|
+
environmentUids: string[];
|
|
3126
|
+
cookieUids: string[];
|
|
3127
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
3128
|
+
proxyUrl?: string | undefined;
|
|
3129
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "description" | "isReadOnly" | "collectionUids" | "environmentUids" | "cookieUids" | "themeId" | "proxyUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
3130
|
+
uid: string;
|
|
3131
|
+
description: string;
|
|
3132
|
+
name: string;
|
|
3133
|
+
isReadOnly: boolean;
|
|
3134
|
+
collectionUids: string[];
|
|
3135
|
+
environmentUids: string[];
|
|
3136
|
+
cookieUids: string[];
|
|
3137
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
3138
|
+
proxyUrl?: string | undefined;
|
|
3139
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
3140
|
+
uid: string;
|
|
3141
|
+
description: string;
|
|
3142
|
+
name: string;
|
|
3143
|
+
isReadOnly: boolean;
|
|
3144
|
+
collectionUids: string[];
|
|
3145
|
+
environmentUids: string[];
|
|
3146
|
+
cookieUids: string[];
|
|
3147
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
3148
|
+
proxyUrl?: string | undefined;
|
|
3149
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
3150
|
+
untrackedEdit: <P extends "name" | "uid" | "description" | "isReadOnly" | "collectionUids" | "environmentUids" | "cookieUids" | "themeId" | "proxyUrl" | `collectionUids.${number}` | `environmentUids.${number}` | `cookieUids.${number}`>(uid: string, path: P, value: P extends "name" | "uid" | "description" | "isReadOnly" | "collectionUids" | "environmentUids" | "cookieUids" | "themeId" | "proxyUrl" ? {
|
|
3151
|
+
uid: string;
|
|
3152
|
+
description: string;
|
|
3153
|
+
name: string;
|
|
3154
|
+
isReadOnly: boolean;
|
|
3155
|
+
collectionUids: string[];
|
|
3156
|
+
environmentUids: string[];
|
|
3157
|
+
cookieUids: string[];
|
|
3158
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
3159
|
+
proxyUrl?: string | undefined;
|
|
3160
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "description" | "isReadOnly" | "collectionUids" | "environmentUids" | "cookieUids" | "themeId" | "proxyUrl" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
3161
|
+
uid: string;
|
|
3162
|
+
description: string;
|
|
3163
|
+
name: string;
|
|
3164
|
+
isReadOnly: boolean;
|
|
3165
|
+
collectionUids: string[];
|
|
3166
|
+
environmentUids: string[];
|
|
3167
|
+
cookieUids: string[];
|
|
3168
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
3169
|
+
proxyUrl?: string | undefined;
|
|
3170
|
+
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
3171
|
+
uid: string;
|
|
3172
|
+
description: string;
|
|
3173
|
+
name: string;
|
|
3174
|
+
isReadOnly: boolean;
|
|
3175
|
+
collectionUids: string[];
|
|
3176
|
+
environmentUids: string[];
|
|
3177
|
+
cookieUids: string[];
|
|
3178
|
+
themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
|
|
3179
|
+
proxyUrl?: string | undefined;
|
|
3180
|
+
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
3181
|
+
undo: (uid: string) => void;
|
|
3182
|
+
redo: (uid: string) => void;
|
|
2941
3183
|
};
|
|
2942
3184
|
};
|
|
2943
3185
|
export {};
|