@scalar/api-client 2.1.26 → 2.1.27
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 +17 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +149 -89
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +7 -9
- package/dist/layouts/App/create-api-client-app.d.ts +77 -20
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +14 -12
- package/dist/layouts/Modal/create-api-client-modal.d.ts +154 -40
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +23 -26
- package/dist/layouts/Web/create-api-client-web.d.ts +77 -20
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +12 -10
- package/dist/libs/create-client.d.ts +77 -20
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +60 -58
- package/dist/store/collections.d.ts +34 -4
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +43 -4
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +60 -36
- package/dist/store/requests.d.ts +4 -1
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +76 -76
- package/dist/store/security-schemes.d.ts +2 -2
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +35 -37
- package/dist/store/servers.d.ts +10 -10
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/store.d.ts +154 -40
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +27 -27
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +39 -38
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +12 -12
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +4 -4
- package/dist/views/Request/RequestSidebar.vue2.js +107 -102
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +165 -135
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +96 -71
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts +9 -0
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -0
- package/dist/views/Request/hooks/useOpenApiWatcher.js +86 -0
- package/dist/views/Request/libs/live-sync.d.ts +59 -0
- package/dist/views/Request/libs/live-sync.d.ts.map +1 -0
- package/dist/views/Request/libs/live-sync.js +289 -0
- package/dist/views/Request/types/sidebar-item.d.ts +2 -0
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/package.json +10 -8
package/dist/store/store.d.ts
CHANGED
|
@@ -70,6 +70,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
70
70
|
token: string;
|
|
71
71
|
clientSecret: string;
|
|
72
72
|
}>;
|
|
73
|
+
watchForChanges: boolean;
|
|
74
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
73
75
|
externalDocs?: {
|
|
74
76
|
url: string;
|
|
75
77
|
description?: string | undefined;
|
|
@@ -94,6 +96,7 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
94
96
|
} | undefined;
|
|
95
97
|
components?: Record<string, unknown> | undefined;
|
|
96
98
|
webhooks?: Record<string, unknown> | undefined;
|
|
99
|
+
documentUrl?: string | undefined;
|
|
97
100
|
}>;
|
|
98
101
|
tags: Record<string, {
|
|
99
102
|
type: "tag";
|
|
@@ -263,8 +266,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
263
266
|
}>;
|
|
264
267
|
servers: Record<string, {
|
|
265
268
|
uid: string;
|
|
269
|
+
url: string;
|
|
266
270
|
description?: string | undefined;
|
|
267
|
-
url?: string | undefined;
|
|
268
271
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
269
272
|
enum?: [string, ...string[]];
|
|
270
273
|
}> | undefined;
|
|
@@ -363,6 +366,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
363
366
|
token: string;
|
|
364
367
|
clientSecret: string;
|
|
365
368
|
}>;
|
|
369
|
+
watchForChanges: boolean;
|
|
370
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
366
371
|
externalDocs?: {
|
|
367
372
|
url: string;
|
|
368
373
|
description?: string | undefined;
|
|
@@ -387,6 +392,7 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
387
392
|
} | undefined;
|
|
388
393
|
components?: Record<string, unknown> | undefined;
|
|
389
394
|
webhooks?: Record<string, unknown> | undefined;
|
|
395
|
+
documentUrl?: string | undefined;
|
|
390
396
|
} | undefined>;
|
|
391
397
|
activeCookieId: import("vue").ComputedRef<string | undefined>;
|
|
392
398
|
activeExample: import("vue").ComputedRef<{
|
|
@@ -541,8 +547,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
541
547
|
}>;
|
|
542
548
|
activeServer: import("vue").ComputedRef<{
|
|
543
549
|
uid: string;
|
|
550
|
+
url: string;
|
|
544
551
|
description?: string | undefined;
|
|
545
|
-
url?: string | undefined;
|
|
546
552
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
547
553
|
enum?: [string, ...string[]];
|
|
548
554
|
}> | undefined;
|
|
@@ -605,6 +611,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
605
611
|
token: string;
|
|
606
612
|
clientSecret: string;
|
|
607
613
|
}>;
|
|
614
|
+
watchForChanges: boolean;
|
|
615
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
608
616
|
externalDocs?: {
|
|
609
617
|
url: string;
|
|
610
618
|
description?: string | undefined;
|
|
@@ -629,11 +637,12 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
629
637
|
} | undefined;
|
|
630
638
|
components?: Record<string, unknown> | undefined;
|
|
631
639
|
webhooks?: Record<string, unknown> | undefined;
|
|
640
|
+
documentUrl?: string | undefined;
|
|
632
641
|
}[]>;
|
|
633
642
|
activeWorkspaceServers: import("vue").ComputedRef<{
|
|
634
643
|
uid: string;
|
|
644
|
+
url: string;
|
|
635
645
|
description?: string | undefined;
|
|
636
|
-
url?: string | undefined;
|
|
637
646
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
638
647
|
enum?: [string, ...string[]];
|
|
639
648
|
}> | undefined;
|
|
@@ -661,7 +670,12 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
661
670
|
setSidebarWidth: (width: string) => void;
|
|
662
671
|
proxyUrl: import("vue").Ref<string, string>;
|
|
663
672
|
setProxyUrl: (url: string) => void;
|
|
664
|
-
importSpecFile: (_spec: string | Record<string, any>, workspaceUid
|
|
673
|
+
importSpecFile: (_spec: string | Record<string, any>, workspaceUid: string, { documentUrl, watchForChanges, overloadServers, preferredSecurityScheme, }?: {
|
|
674
|
+
documentUrl?: string;
|
|
675
|
+
watchForChanges?: boolean;
|
|
676
|
+
overloadServers?: import("@scalar/types/legacy").Spec["servers"];
|
|
677
|
+
preferredSecurityScheme?: import("../libs/index.js").ClientConfiguration["preferredSecurityScheme"];
|
|
678
|
+
}) => Promise<{
|
|
665
679
|
type: "collection";
|
|
666
680
|
uid: string;
|
|
667
681
|
children: string[];
|
|
@@ -700,6 +714,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
700
714
|
token: string;
|
|
701
715
|
clientSecret: string;
|
|
702
716
|
}>;
|
|
717
|
+
watchForChanges: boolean;
|
|
718
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
703
719
|
externalDocs?: {
|
|
704
720
|
url: string;
|
|
705
721
|
description?: string | undefined;
|
|
@@ -724,8 +740,19 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
724
740
|
} | undefined;
|
|
725
741
|
components?: Record<string, unknown> | undefined;
|
|
726
742
|
webhooks?: Record<string, unknown> | undefined;
|
|
743
|
+
documentUrl?: string | undefined;
|
|
727
744
|
} | undefined>;
|
|
728
|
-
importSpecFromUrl: (url: string,
|
|
745
|
+
importSpecFromUrl: (url: string, workspaceUid: string, { proxy, overloadServers, watchForChanges, preferredSecurityScheme, }?: {
|
|
746
|
+
watchForChanges?: boolean;
|
|
747
|
+
overloadServers?: import("@scalar/types/legacy").Spec["servers"];
|
|
748
|
+
preferredSecurityScheme?: import("../libs/index.js").ClientConfiguration["preferredSecurityScheme"];
|
|
749
|
+
proxy?: string;
|
|
750
|
+
}) => Promise<import("../libs/index.js").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, { documentUrl, watchForChanges, overloadServers, preferredSecurityScheme, }?: {
|
|
751
|
+
documentUrl?: string;
|
|
752
|
+
watchForChanges?: boolean;
|
|
753
|
+
overloadServers?: import("@scalar/types/legacy").Spec["servers"];
|
|
754
|
+
preferredSecurityScheme?: import("../libs/index.js").ClientConfiguration["preferredSecurityScheme"];
|
|
755
|
+
}) => Promise<{
|
|
729
756
|
type: "collection";
|
|
730
757
|
uid: string;
|
|
731
758
|
children: string[];
|
|
@@ -764,6 +791,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
764
791
|
token: string;
|
|
765
792
|
clientSecret: string;
|
|
766
793
|
}>;
|
|
794
|
+
watchForChanges: boolean;
|
|
795
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
767
796
|
externalDocs?: {
|
|
768
797
|
url: string;
|
|
769
798
|
description?: string | undefined;
|
|
@@ -788,7 +817,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
788
817
|
} | undefined;
|
|
789
818
|
components?: Record<string, unknown> | undefined;
|
|
790
819
|
webhooks?: Record<string, unknown> | undefined;
|
|
791
|
-
|
|
820
|
+
documentUrl?: string | undefined;
|
|
821
|
+
} | undefined>>>>>;
|
|
792
822
|
cookieMutators: {
|
|
793
823
|
add: (item: {
|
|
794
824
|
value: string;
|
|
@@ -934,6 +964,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
934
964
|
token: string;
|
|
935
965
|
clientSecret: string;
|
|
936
966
|
}>;
|
|
967
|
+
watchForChanges: boolean;
|
|
968
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
937
969
|
externalDocs?: {
|
|
938
970
|
url: string;
|
|
939
971
|
description?: string | undefined;
|
|
@@ -958,6 +990,7 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
958
990
|
} | undefined;
|
|
959
991
|
components?: Record<string, unknown> | undefined;
|
|
960
992
|
webhooks?: Record<string, unknown> | undefined;
|
|
993
|
+
documentUrl?: string | undefined;
|
|
961
994
|
}) => void;
|
|
962
995
|
add: (payload: import("@scalar/oas-utils/entities/spec").CollectionPayload, workspaceUid: string) => {
|
|
963
996
|
type: "collection";
|
|
@@ -998,6 +1031,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
998
1031
|
token: string;
|
|
999
1032
|
clientSecret: string;
|
|
1000
1033
|
}>;
|
|
1034
|
+
watchForChanges: boolean;
|
|
1035
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
1001
1036
|
externalDocs?: {
|
|
1002
1037
|
url: string;
|
|
1003
1038
|
description?: string | undefined;
|
|
@@ -1022,6 +1057,7 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1022
1057
|
} | undefined;
|
|
1023
1058
|
components?: Record<string, unknown> | undefined;
|
|
1024
1059
|
webhooks?: Record<string, unknown> | undefined;
|
|
1060
|
+
documentUrl?: string | undefined;
|
|
1025
1061
|
};
|
|
1026
1062
|
delete: (collection: import("@scalar/oas-utils/entities/spec").Collection, workspace: import("@scalar/oas-utils/entities/workspace").Workspace) => void;
|
|
1027
1063
|
set: (item: {
|
|
@@ -1063,6 +1099,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1063
1099
|
token: string;
|
|
1064
1100
|
clientSecret: string;
|
|
1065
1101
|
}>;
|
|
1102
|
+
watchForChanges: boolean;
|
|
1103
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
1066
1104
|
externalDocs?: {
|
|
1067
1105
|
url: string;
|
|
1068
1106
|
description?: string | undefined;
|
|
@@ -1087,8 +1125,9 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1087
1125
|
} | undefined;
|
|
1088
1126
|
components?: Record<string, unknown> | undefined;
|
|
1089
1127
|
webhooks?: Record<string, unknown> | undefined;
|
|
1128
|
+
documentUrl?: string | undefined;
|
|
1090
1129
|
}) => void;
|
|
1091
|
-
edit: <P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | "x-scalar-icon" | `children.${number}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.url" | "info.contact.name" | "info.contact.email" | "info.license.url" | "info.license.name" | "info.license.identifier" | `auth.${string}` | `securitySchemes.${number}` | `requests.${number}` | `components.${string}` | `webhooks.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "selectedServerUid" | "x-scalar-icon" ? {
|
|
1130
|
+
edit: <P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | "x-scalar-icon" | "watchForChangesStatus" | `children.${number}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.url" | "info.contact.name" | "info.contact.email" | "info.license.url" | "info.license.name" | "info.license.identifier" | `auth.${string}` | `securitySchemes.${number}` | `requests.${number}` | `components.${string}` | `webhooks.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | "x-scalar-icon" | "watchForChangesStatus" ? {
|
|
1092
1131
|
type: "collection";
|
|
1093
1132
|
uid: string;
|
|
1094
1133
|
children: string[];
|
|
@@ -1127,6 +1166,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1127
1166
|
token: string;
|
|
1128
1167
|
clientSecret: string;
|
|
1129
1168
|
}>;
|
|
1169
|
+
watchForChanges: boolean;
|
|
1170
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
1130
1171
|
externalDocs?: {
|
|
1131
1172
|
url: string;
|
|
1132
1173
|
description?: string | undefined;
|
|
@@ -1151,7 +1192,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1151
1192
|
} | undefined;
|
|
1152
1193
|
components?: Record<string, unknown> | undefined;
|
|
1153
1194
|
webhooks?: Record<string, unknown> | undefined;
|
|
1154
|
-
|
|
1195
|
+
documentUrl?: string | undefined;
|
|
1196
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | "x-scalar-icon" | "watchForChangesStatus" ? R extends Path<{
|
|
1155
1197
|
type: "collection";
|
|
1156
1198
|
uid: string;
|
|
1157
1199
|
children: string[];
|
|
@@ -1190,6 +1232,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1190
1232
|
token: string;
|
|
1191
1233
|
clientSecret: string;
|
|
1192
1234
|
}>;
|
|
1235
|
+
watchForChanges: boolean;
|
|
1236
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
1193
1237
|
externalDocs?: {
|
|
1194
1238
|
url: string;
|
|
1195
1239
|
description?: string | undefined;
|
|
@@ -1214,6 +1258,7 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1214
1258
|
} | undefined;
|
|
1215
1259
|
components?: Record<string, unknown> | undefined;
|
|
1216
1260
|
webhooks?: Record<string, unknown> | undefined;
|
|
1261
|
+
documentUrl?: string | undefined;
|
|
1217
1262
|
}[K]> ? PathValue<{
|
|
1218
1263
|
type: "collection";
|
|
1219
1264
|
uid: string;
|
|
@@ -1253,6 +1298,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1253
1298
|
token: string;
|
|
1254
1299
|
clientSecret: string;
|
|
1255
1300
|
}>;
|
|
1301
|
+
watchForChanges: boolean;
|
|
1302
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
1256
1303
|
externalDocs?: {
|
|
1257
1304
|
url: string;
|
|
1258
1305
|
description?: string | undefined;
|
|
@@ -1277,8 +1324,9 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1277
1324
|
} | undefined;
|
|
1278
1325
|
components?: Record<string, unknown> | undefined;
|
|
1279
1326
|
webhooks?: Record<string, unknown> | undefined;
|
|
1327
|
+
documentUrl?: string | undefined;
|
|
1280
1328
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1281
|
-
untrackedEdit: <P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | "x-scalar-icon" | `children.${number}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.url" | "info.contact.name" | "info.contact.email" | "info.license.url" | "info.license.name" | "info.license.identifier" | `auth.${string}` | `securitySchemes.${number}` | `requests.${number}` | `components.${string}` | `webhooks.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "selectedServerUid" | "x-scalar-icon" ? {
|
|
1329
|
+
untrackedEdit: <P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | "x-scalar-icon" | "watchForChangesStatus" | `children.${number}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.url" | "info.contact.name" | "info.contact.email" | "info.license.url" | "info.license.name" | "info.license.identifier" | `auth.${string}` | `securitySchemes.${number}` | `requests.${number}` | `components.${string}` | `webhooks.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | "x-scalar-icon" | "watchForChangesStatus" ? {
|
|
1282
1330
|
type: "collection";
|
|
1283
1331
|
uid: string;
|
|
1284
1332
|
children: string[];
|
|
@@ -1317,6 +1365,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1317
1365
|
token: string;
|
|
1318
1366
|
clientSecret: string;
|
|
1319
1367
|
}>;
|
|
1368
|
+
watchForChanges: boolean;
|
|
1369
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
1320
1370
|
externalDocs?: {
|
|
1321
1371
|
url: string;
|
|
1322
1372
|
description?: string | undefined;
|
|
@@ -1341,7 +1391,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1341
1391
|
} | undefined;
|
|
1342
1392
|
components?: Record<string, unknown> | undefined;
|
|
1343
1393
|
webhooks?: Record<string, unknown> | undefined;
|
|
1344
|
-
|
|
1394
|
+
documentUrl?: string | undefined;
|
|
1395
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | "x-scalar-icon" | "watchForChangesStatus" ? R extends Path<{
|
|
1345
1396
|
type: "collection";
|
|
1346
1397
|
uid: string;
|
|
1347
1398
|
children: string[];
|
|
@@ -1380,6 +1431,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1380
1431
|
token: string;
|
|
1381
1432
|
clientSecret: string;
|
|
1382
1433
|
}>;
|
|
1434
|
+
watchForChanges: boolean;
|
|
1435
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
1383
1436
|
externalDocs?: {
|
|
1384
1437
|
url: string;
|
|
1385
1438
|
description?: string | undefined;
|
|
@@ -1404,6 +1457,7 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1404
1457
|
} | undefined;
|
|
1405
1458
|
components?: Record<string, unknown> | undefined;
|
|
1406
1459
|
webhooks?: Record<string, unknown> | undefined;
|
|
1460
|
+
documentUrl?: string | undefined;
|
|
1407
1461
|
}[K]> ? PathValue<{
|
|
1408
1462
|
type: "collection";
|
|
1409
1463
|
uid: string;
|
|
@@ -1443,6 +1497,8 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1443
1497
|
token: string;
|
|
1444
1498
|
clientSecret: string;
|
|
1445
1499
|
}>;
|
|
1500
|
+
watchForChanges: boolean;
|
|
1501
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
1446
1502
|
externalDocs?: {
|
|
1447
1503
|
url: string;
|
|
1448
1504
|
description?: string | undefined;
|
|
@@ -1467,6 +1523,7 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
1467
1523
|
} | undefined;
|
|
1468
1524
|
components?: Record<string, unknown> | undefined;
|
|
1469
1525
|
webhooks?: Record<string, unknown> | undefined;
|
|
1526
|
+
documentUrl?: string | undefined;
|
|
1470
1527
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
1471
1528
|
undo: (uid: string) => void;
|
|
1472
1529
|
redo: (uid: string) => void;
|
|
@@ -2831,7 +2888,7 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
2831
2888
|
'x-scalar-client-id': string;
|
|
2832
2889
|
description?: string | undefined;
|
|
2833
2890
|
};
|
|
2834
|
-
delete: (
|
|
2891
|
+
delete: (schemeUid: string) => void;
|
|
2835
2892
|
set: (item: {
|
|
2836
2893
|
type: "apiKey";
|
|
2837
2894
|
uid: string;
|
|
@@ -3219,16 +3276,16 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
3219
3276
|
serverMutators: {
|
|
3220
3277
|
rawAdd: (item: {
|
|
3221
3278
|
uid: string;
|
|
3279
|
+
url: string;
|
|
3222
3280
|
description?: string | undefined;
|
|
3223
|
-
url?: string | undefined;
|
|
3224
3281
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3225
3282
|
enum?: [string, ...string[]];
|
|
3226
3283
|
}> | undefined;
|
|
3227
3284
|
}) => void;
|
|
3228
3285
|
add: (payload: import("@scalar/oas-utils/entities/spec").ServerPayload, parentUid: string) => {
|
|
3229
3286
|
uid: string;
|
|
3287
|
+
url: string;
|
|
3230
3288
|
description?: string | undefined;
|
|
3231
|
-
url?: string | undefined;
|
|
3232
3289
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3233
3290
|
enum?: [string, ...string[]];
|
|
3234
3291
|
}> | undefined;
|
|
@@ -3236,52 +3293,52 @@ export declare const createWorkspaceStore: (router: Router, useLocalStorage?: bo
|
|
|
3236
3293
|
delete: (serverUid: string, collectionUid: string) => void;
|
|
3237
3294
|
set: (item: {
|
|
3238
3295
|
uid: string;
|
|
3296
|
+
url: string;
|
|
3239
3297
|
description?: string | undefined;
|
|
3240
|
-
url?: string | undefined;
|
|
3241
3298
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3242
3299
|
enum?: [string, ...string[]];
|
|
3243
3300
|
}> | undefined;
|
|
3244
3301
|
}) => void;
|
|
3245
3302
|
edit: <P extends "url" | "description" | "uid" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "url" | "description" | "uid" | "variables" ? {
|
|
3246
3303
|
uid: string;
|
|
3304
|
+
url: string;
|
|
3247
3305
|
description?: string | undefined;
|
|
3248
|
-
url?: string | undefined;
|
|
3249
3306
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3250
3307
|
enum?: [string, ...string[]];
|
|
3251
3308
|
}> | undefined;
|
|
3252
3309
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "url" | "description" | "uid" | "variables" ? R extends Path<{
|
|
3253
3310
|
uid: string;
|
|
3311
|
+
url: string;
|
|
3254
3312
|
description?: string | undefined;
|
|
3255
|
-
url?: string | undefined;
|
|
3256
3313
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3257
3314
|
enum?: [string, ...string[]];
|
|
3258
3315
|
}> | undefined;
|
|
3259
3316
|
}[K]> ? PathValue<{
|
|
3260
3317
|
uid: string;
|
|
3318
|
+
url: string;
|
|
3261
3319
|
description?: string | undefined;
|
|
3262
|
-
url?: string | undefined;
|
|
3263
3320
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3264
3321
|
enum?: [string, ...string[]];
|
|
3265
3322
|
}> | undefined;
|
|
3266
3323
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
3267
3324
|
untrackedEdit: <P extends "url" | "description" | "uid" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "url" | "description" | "uid" | "variables" ? {
|
|
3268
3325
|
uid: string;
|
|
3326
|
+
url: string;
|
|
3269
3327
|
description?: string | undefined;
|
|
3270
|
-
url?: string | undefined;
|
|
3271
3328
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3272
3329
|
enum?: [string, ...string[]];
|
|
3273
3330
|
}> | undefined;
|
|
3274
3331
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "url" | "description" | "uid" | "variables" ? R extends Path<{
|
|
3275
3332
|
uid: string;
|
|
3333
|
+
url: string;
|
|
3276
3334
|
description?: string | undefined;
|
|
3277
|
-
url?: string | undefined;
|
|
3278
3335
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3279
3336
|
enum?: [string, ...string[]];
|
|
3280
3337
|
}> | undefined;
|
|
3281
3338
|
}[K]> ? PathValue<{
|
|
3282
3339
|
uid: string;
|
|
3340
|
+
url: string;
|
|
3283
3341
|
description?: string | undefined;
|
|
3284
|
-
url?: string | undefined;
|
|
3285
3342
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3286
3343
|
enum?: [string, ...string[]];
|
|
3287
3344
|
}> | undefined;
|
|
@@ -3656,6 +3713,8 @@ export declare const useWorkspace: () => {
|
|
|
3656
3713
|
token: string;
|
|
3657
3714
|
clientSecret: string;
|
|
3658
3715
|
}>;
|
|
3716
|
+
watchForChanges: boolean;
|
|
3717
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
3659
3718
|
externalDocs?: {
|
|
3660
3719
|
url: string;
|
|
3661
3720
|
description?: string | undefined;
|
|
@@ -3680,6 +3739,7 @@ export declare const useWorkspace: () => {
|
|
|
3680
3739
|
} | undefined;
|
|
3681
3740
|
components?: Record<string, unknown> | undefined;
|
|
3682
3741
|
webhooks?: Record<string, unknown> | undefined;
|
|
3742
|
+
documentUrl?: string | undefined;
|
|
3683
3743
|
}>;
|
|
3684
3744
|
tags: Record<string, {
|
|
3685
3745
|
type: "tag";
|
|
@@ -3849,8 +3909,8 @@ export declare const useWorkspace: () => {
|
|
|
3849
3909
|
}>;
|
|
3850
3910
|
servers: Record<string, {
|
|
3851
3911
|
uid: string;
|
|
3912
|
+
url: string;
|
|
3852
3913
|
description?: string | undefined;
|
|
3853
|
-
url?: string | undefined;
|
|
3854
3914
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
3855
3915
|
enum?: [string, ...string[]];
|
|
3856
3916
|
}> | undefined;
|
|
@@ -3949,6 +4009,8 @@ export declare const useWorkspace: () => {
|
|
|
3949
4009
|
token: string;
|
|
3950
4010
|
clientSecret: string;
|
|
3951
4011
|
}>;
|
|
4012
|
+
watchForChanges: boolean;
|
|
4013
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
3952
4014
|
externalDocs?: {
|
|
3953
4015
|
url: string;
|
|
3954
4016
|
description?: string | undefined;
|
|
@@ -3973,6 +4035,7 @@ export declare const useWorkspace: () => {
|
|
|
3973
4035
|
} | undefined;
|
|
3974
4036
|
components?: Record<string, unknown> | undefined;
|
|
3975
4037
|
webhooks?: Record<string, unknown> | undefined;
|
|
4038
|
+
documentUrl?: string | undefined;
|
|
3976
4039
|
} | undefined>;
|
|
3977
4040
|
activeCookieId: import("vue").ComputedRef<string | undefined>;
|
|
3978
4041
|
activeExample: import("vue").ComputedRef<{
|
|
@@ -4127,8 +4190,8 @@ export declare const useWorkspace: () => {
|
|
|
4127
4190
|
}>;
|
|
4128
4191
|
activeServer: import("vue").ComputedRef<{
|
|
4129
4192
|
uid: string;
|
|
4193
|
+
url: string;
|
|
4130
4194
|
description?: string | undefined;
|
|
4131
|
-
url?: string | undefined;
|
|
4132
4195
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
4133
4196
|
enum?: [string, ...string[]];
|
|
4134
4197
|
}> | undefined;
|
|
@@ -4191,6 +4254,8 @@ export declare const useWorkspace: () => {
|
|
|
4191
4254
|
token: string;
|
|
4192
4255
|
clientSecret: string;
|
|
4193
4256
|
}>;
|
|
4257
|
+
watchForChanges: boolean;
|
|
4258
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4194
4259
|
externalDocs?: {
|
|
4195
4260
|
url: string;
|
|
4196
4261
|
description?: string | undefined;
|
|
@@ -4215,11 +4280,12 @@ export declare const useWorkspace: () => {
|
|
|
4215
4280
|
} | undefined;
|
|
4216
4281
|
components?: Record<string, unknown> | undefined;
|
|
4217
4282
|
webhooks?: Record<string, unknown> | undefined;
|
|
4283
|
+
documentUrl?: string | undefined;
|
|
4218
4284
|
}[]>;
|
|
4219
4285
|
activeWorkspaceServers: import("vue").ComputedRef<{
|
|
4220
4286
|
uid: string;
|
|
4287
|
+
url: string;
|
|
4221
4288
|
description?: string | undefined;
|
|
4222
|
-
url?: string | undefined;
|
|
4223
4289
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
4224
4290
|
enum?: [string, ...string[]];
|
|
4225
4291
|
}> | undefined;
|
|
@@ -4247,7 +4313,12 @@ export declare const useWorkspace: () => {
|
|
|
4247
4313
|
setSidebarWidth: (width: string) => void;
|
|
4248
4314
|
proxyUrl: import("vue").Ref<string, string>;
|
|
4249
4315
|
setProxyUrl: (url: string) => void;
|
|
4250
|
-
importSpecFile: (_spec: string | Record<string, any>, workspaceUid
|
|
4316
|
+
importSpecFile: (_spec: string | Record<string, any>, workspaceUid: string, { documentUrl, watchForChanges, overloadServers, preferredSecurityScheme, }?: {
|
|
4317
|
+
documentUrl?: string;
|
|
4318
|
+
watchForChanges?: boolean;
|
|
4319
|
+
overloadServers?: import("@scalar/types/legacy").Spec["servers"];
|
|
4320
|
+
preferredSecurityScheme?: import("../libs/index.js").ClientConfiguration["preferredSecurityScheme"];
|
|
4321
|
+
}) => Promise<{
|
|
4251
4322
|
type: "collection";
|
|
4252
4323
|
uid: string;
|
|
4253
4324
|
children: string[];
|
|
@@ -4286,6 +4357,8 @@ export declare const useWorkspace: () => {
|
|
|
4286
4357
|
token: string;
|
|
4287
4358
|
clientSecret: string;
|
|
4288
4359
|
}>;
|
|
4360
|
+
watchForChanges: boolean;
|
|
4361
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4289
4362
|
externalDocs?: {
|
|
4290
4363
|
url: string;
|
|
4291
4364
|
description?: string | undefined;
|
|
@@ -4310,8 +4383,19 @@ export declare const useWorkspace: () => {
|
|
|
4310
4383
|
} | undefined;
|
|
4311
4384
|
components?: Record<string, unknown> | undefined;
|
|
4312
4385
|
webhooks?: Record<string, unknown> | undefined;
|
|
4386
|
+
documentUrl?: string | undefined;
|
|
4313
4387
|
} | undefined>;
|
|
4314
|
-
importSpecFromUrl: (url: string,
|
|
4388
|
+
importSpecFromUrl: (url: string, workspaceUid: string, { proxy, overloadServers, watchForChanges, preferredSecurityScheme, }?: {
|
|
4389
|
+
watchForChanges?: boolean;
|
|
4390
|
+
overloadServers?: import("@scalar/types/legacy").Spec["servers"];
|
|
4391
|
+
preferredSecurityScheme?: import("../libs/index.js").ClientConfiguration["preferredSecurityScheme"];
|
|
4392
|
+
proxy?: string;
|
|
4393
|
+
}) => Promise<import("../libs/index.js").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, { documentUrl, watchForChanges, overloadServers, preferredSecurityScheme, }?: {
|
|
4394
|
+
documentUrl?: string;
|
|
4395
|
+
watchForChanges?: boolean;
|
|
4396
|
+
overloadServers?: import("@scalar/types/legacy").Spec["servers"];
|
|
4397
|
+
preferredSecurityScheme?: import("../libs/index.js").ClientConfiguration["preferredSecurityScheme"];
|
|
4398
|
+
}) => Promise<{
|
|
4315
4399
|
type: "collection";
|
|
4316
4400
|
uid: string;
|
|
4317
4401
|
children: string[];
|
|
@@ -4350,6 +4434,8 @@ export declare const useWorkspace: () => {
|
|
|
4350
4434
|
token: string;
|
|
4351
4435
|
clientSecret: string;
|
|
4352
4436
|
}>;
|
|
4437
|
+
watchForChanges: boolean;
|
|
4438
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4353
4439
|
externalDocs?: {
|
|
4354
4440
|
url: string;
|
|
4355
4441
|
description?: string | undefined;
|
|
@@ -4374,7 +4460,8 @@ export declare const useWorkspace: () => {
|
|
|
4374
4460
|
} | undefined;
|
|
4375
4461
|
components?: Record<string, unknown> | undefined;
|
|
4376
4462
|
webhooks?: Record<string, unknown> | undefined;
|
|
4377
|
-
|
|
4463
|
+
documentUrl?: string | undefined;
|
|
4464
|
+
} | undefined>>>>>;
|
|
4378
4465
|
cookieMutators: {
|
|
4379
4466
|
add: (item: {
|
|
4380
4467
|
value: string;
|
|
@@ -4520,6 +4607,8 @@ export declare const useWorkspace: () => {
|
|
|
4520
4607
|
token: string;
|
|
4521
4608
|
clientSecret: string;
|
|
4522
4609
|
}>;
|
|
4610
|
+
watchForChanges: boolean;
|
|
4611
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4523
4612
|
externalDocs?: {
|
|
4524
4613
|
url: string;
|
|
4525
4614
|
description?: string | undefined;
|
|
@@ -4544,6 +4633,7 @@ export declare const useWorkspace: () => {
|
|
|
4544
4633
|
} | undefined;
|
|
4545
4634
|
components?: Record<string, unknown> | undefined;
|
|
4546
4635
|
webhooks?: Record<string, unknown> | undefined;
|
|
4636
|
+
documentUrl?: string | undefined;
|
|
4547
4637
|
}) => void;
|
|
4548
4638
|
add: (payload: import("@scalar/oas-utils/entities/spec").CollectionPayload, workspaceUid: string) => {
|
|
4549
4639
|
type: "collection";
|
|
@@ -4584,6 +4674,8 @@ export declare const useWorkspace: () => {
|
|
|
4584
4674
|
token: string;
|
|
4585
4675
|
clientSecret: string;
|
|
4586
4676
|
}>;
|
|
4677
|
+
watchForChanges: boolean;
|
|
4678
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4587
4679
|
externalDocs?: {
|
|
4588
4680
|
url: string;
|
|
4589
4681
|
description?: string | undefined;
|
|
@@ -4608,6 +4700,7 @@ export declare const useWorkspace: () => {
|
|
|
4608
4700
|
} | undefined;
|
|
4609
4701
|
components?: Record<string, unknown> | undefined;
|
|
4610
4702
|
webhooks?: Record<string, unknown> | undefined;
|
|
4703
|
+
documentUrl?: string | undefined;
|
|
4611
4704
|
};
|
|
4612
4705
|
delete: (collection: import("@scalar/oas-utils/entities/spec").Collection, workspace: import("@scalar/oas-utils/entities/workspace").Workspace) => void;
|
|
4613
4706
|
set: (item: {
|
|
@@ -4649,6 +4742,8 @@ export declare const useWorkspace: () => {
|
|
|
4649
4742
|
token: string;
|
|
4650
4743
|
clientSecret: string;
|
|
4651
4744
|
}>;
|
|
4745
|
+
watchForChanges: boolean;
|
|
4746
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4652
4747
|
externalDocs?: {
|
|
4653
4748
|
url: string;
|
|
4654
4749
|
description?: string | undefined;
|
|
@@ -4673,8 +4768,9 @@ export declare const useWorkspace: () => {
|
|
|
4673
4768
|
} | undefined;
|
|
4674
4769
|
components?: Record<string, unknown> | undefined;
|
|
4675
4770
|
webhooks?: Record<string, unknown> | undefined;
|
|
4771
|
+
documentUrl?: string | undefined;
|
|
4676
4772
|
}) => void;
|
|
4677
|
-
edit: <P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | "x-scalar-icon" | `children.${number}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.url" | "info.contact.name" | "info.contact.email" | "info.license.url" | "info.license.name" | "info.license.identifier" | `auth.${string}` | `securitySchemes.${number}` | `requests.${number}` | `components.${string}` | `webhooks.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "selectedServerUid" | "x-scalar-icon" ? {
|
|
4773
|
+
edit: <P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | "x-scalar-icon" | "watchForChangesStatus" | `children.${number}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.url" | "info.contact.name" | "info.contact.email" | "info.license.url" | "info.license.name" | "info.license.identifier" | `auth.${string}` | `securitySchemes.${number}` | `requests.${number}` | `components.${string}` | `webhooks.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | "x-scalar-icon" | "watchForChangesStatus" ? {
|
|
4678
4774
|
type: "collection";
|
|
4679
4775
|
uid: string;
|
|
4680
4776
|
children: string[];
|
|
@@ -4713,6 +4809,8 @@ export declare const useWorkspace: () => {
|
|
|
4713
4809
|
token: string;
|
|
4714
4810
|
clientSecret: string;
|
|
4715
4811
|
}>;
|
|
4812
|
+
watchForChanges: boolean;
|
|
4813
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4716
4814
|
externalDocs?: {
|
|
4717
4815
|
url: string;
|
|
4718
4816
|
description?: string | undefined;
|
|
@@ -4737,7 +4835,8 @@ export declare const useWorkspace: () => {
|
|
|
4737
4835
|
} | undefined;
|
|
4738
4836
|
components?: Record<string, unknown> | undefined;
|
|
4739
4837
|
webhooks?: Record<string, unknown> | undefined;
|
|
4740
|
-
|
|
4838
|
+
documentUrl?: string | undefined;
|
|
4839
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | "x-scalar-icon" | "watchForChangesStatus" ? R extends Path<{
|
|
4741
4840
|
type: "collection";
|
|
4742
4841
|
uid: string;
|
|
4743
4842
|
children: string[];
|
|
@@ -4776,6 +4875,8 @@ export declare const useWorkspace: () => {
|
|
|
4776
4875
|
token: string;
|
|
4777
4876
|
clientSecret: string;
|
|
4778
4877
|
}>;
|
|
4878
|
+
watchForChanges: boolean;
|
|
4879
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4779
4880
|
externalDocs?: {
|
|
4780
4881
|
url: string;
|
|
4781
4882
|
description?: string | undefined;
|
|
@@ -4800,6 +4901,7 @@ export declare const useWorkspace: () => {
|
|
|
4800
4901
|
} | undefined;
|
|
4801
4902
|
components?: Record<string, unknown> | undefined;
|
|
4802
4903
|
webhooks?: Record<string, unknown> | undefined;
|
|
4904
|
+
documentUrl?: string | undefined;
|
|
4803
4905
|
}[K]> ? PathValue<{
|
|
4804
4906
|
type: "collection";
|
|
4805
4907
|
uid: string;
|
|
@@ -4839,6 +4941,8 @@ export declare const useWorkspace: () => {
|
|
|
4839
4941
|
token: string;
|
|
4840
4942
|
clientSecret: string;
|
|
4841
4943
|
}>;
|
|
4944
|
+
watchForChanges: boolean;
|
|
4945
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4842
4946
|
externalDocs?: {
|
|
4843
4947
|
url: string;
|
|
4844
4948
|
description?: string | undefined;
|
|
@@ -4863,8 +4967,9 @@ export declare const useWorkspace: () => {
|
|
|
4863
4967
|
} | undefined;
|
|
4864
4968
|
components?: Record<string, unknown> | undefined;
|
|
4865
4969
|
webhooks?: Record<string, unknown> | undefined;
|
|
4970
|
+
documentUrl?: string | undefined;
|
|
4866
4971
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
4867
|
-
untrackedEdit: <P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | "x-scalar-icon" | `children.${number}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.url" | "info.contact.name" | "info.contact.email" | "info.license.url" | "info.license.name" | "info.license.identifier" | `auth.${string}` | `securitySchemes.${number}` | `requests.${number}` | `components.${string}` | `webhooks.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "selectedServerUid" | "x-scalar-icon" ? {
|
|
4972
|
+
untrackedEdit: <P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | "x-scalar-icon" | "watchForChangesStatus" | `children.${number}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.url" | "info.contact.name" | "info.contact.email" | "info.license.url" | "info.license.name" | "info.license.identifier" | `auth.${string}` | `securitySchemes.${number}` | `requests.${number}` | `components.${string}` | `webhooks.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | "x-scalar-icon" | "watchForChangesStatus" ? {
|
|
4868
4973
|
type: "collection";
|
|
4869
4974
|
uid: string;
|
|
4870
4975
|
children: string[];
|
|
@@ -4903,6 +5008,8 @@ export declare const useWorkspace: () => {
|
|
|
4903
5008
|
token: string;
|
|
4904
5009
|
clientSecret: string;
|
|
4905
5010
|
}>;
|
|
5011
|
+
watchForChanges: boolean;
|
|
5012
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4906
5013
|
externalDocs?: {
|
|
4907
5014
|
url: string;
|
|
4908
5015
|
description?: string | undefined;
|
|
@@ -4927,7 +5034,8 @@ export declare const useWorkspace: () => {
|
|
|
4927
5034
|
} | undefined;
|
|
4928
5035
|
components?: Record<string, unknown> | undefined;
|
|
4929
5036
|
webhooks?: Record<string, unknown> | undefined;
|
|
4930
|
-
|
|
5037
|
+
documentUrl?: string | undefined;
|
|
5038
|
+
}[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "children" | "info" | "servers" | "uid" | "auth" | "securitySchemes" | "tags" | "requests" | "components" | "openapi" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "documentUrl" | "watchForChanges" | "selectedServerUid" | "x-scalar-icon" | "watchForChangesStatus" ? R extends Path<{
|
|
4931
5039
|
type: "collection";
|
|
4932
5040
|
uid: string;
|
|
4933
5041
|
children: string[];
|
|
@@ -4966,6 +5074,8 @@ export declare const useWorkspace: () => {
|
|
|
4966
5074
|
token: string;
|
|
4967
5075
|
clientSecret: string;
|
|
4968
5076
|
}>;
|
|
5077
|
+
watchForChanges: boolean;
|
|
5078
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
4969
5079
|
externalDocs?: {
|
|
4970
5080
|
url: string;
|
|
4971
5081
|
description?: string | undefined;
|
|
@@ -4990,6 +5100,7 @@ export declare const useWorkspace: () => {
|
|
|
4990
5100
|
} | undefined;
|
|
4991
5101
|
components?: Record<string, unknown> | undefined;
|
|
4992
5102
|
webhooks?: Record<string, unknown> | undefined;
|
|
5103
|
+
documentUrl?: string | undefined;
|
|
4993
5104
|
}[K]> ? PathValue<{
|
|
4994
5105
|
type: "collection";
|
|
4995
5106
|
uid: string;
|
|
@@ -5029,6 +5140,8 @@ export declare const useWorkspace: () => {
|
|
|
5029
5140
|
token: string;
|
|
5030
5141
|
clientSecret: string;
|
|
5031
5142
|
}>;
|
|
5143
|
+
watchForChanges: boolean;
|
|
5144
|
+
watchForChangesStatus: "IDLE" | "WATCHING" | "ERROR";
|
|
5032
5145
|
externalDocs?: {
|
|
5033
5146
|
url: string;
|
|
5034
5147
|
description?: string | undefined;
|
|
@@ -5053,6 +5166,7 @@ export declare const useWorkspace: () => {
|
|
|
5053
5166
|
} | undefined;
|
|
5054
5167
|
components?: Record<string, unknown> | undefined;
|
|
5055
5168
|
webhooks?: Record<string, unknown> | undefined;
|
|
5169
|
+
documentUrl?: string | undefined;
|
|
5056
5170
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
5057
5171
|
undo: (uid: string) => void;
|
|
5058
5172
|
redo: (uid: string) => void;
|
|
@@ -6417,7 +6531,7 @@ export declare const useWorkspace: () => {
|
|
|
6417
6531
|
'x-scalar-client-id': string;
|
|
6418
6532
|
description?: string | undefined;
|
|
6419
6533
|
};
|
|
6420
|
-
delete: (
|
|
6534
|
+
delete: (schemeUid: string) => void;
|
|
6421
6535
|
set: (item: {
|
|
6422
6536
|
type: "apiKey";
|
|
6423
6537
|
uid: string;
|
|
@@ -6805,16 +6919,16 @@ export declare const useWorkspace: () => {
|
|
|
6805
6919
|
serverMutators: {
|
|
6806
6920
|
rawAdd: (item: {
|
|
6807
6921
|
uid: string;
|
|
6922
|
+
url: string;
|
|
6808
6923
|
description?: string | undefined;
|
|
6809
|
-
url?: string | undefined;
|
|
6810
6924
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
6811
6925
|
enum?: [string, ...string[]];
|
|
6812
6926
|
}> | undefined;
|
|
6813
6927
|
}) => void;
|
|
6814
6928
|
add: (payload: import("@scalar/oas-utils/entities/spec").ServerPayload, parentUid: string) => {
|
|
6815
6929
|
uid: string;
|
|
6930
|
+
url: string;
|
|
6816
6931
|
description?: string | undefined;
|
|
6817
|
-
url?: string | undefined;
|
|
6818
6932
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
6819
6933
|
enum?: [string, ...string[]];
|
|
6820
6934
|
}> | undefined;
|
|
@@ -6822,52 +6936,52 @@ export declare const useWorkspace: () => {
|
|
|
6822
6936
|
delete: (serverUid: string, collectionUid: string) => void;
|
|
6823
6937
|
set: (item: {
|
|
6824
6938
|
uid: string;
|
|
6939
|
+
url: string;
|
|
6825
6940
|
description?: string | undefined;
|
|
6826
|
-
url?: string | undefined;
|
|
6827
6941
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
6828
6942
|
enum?: [string, ...string[]];
|
|
6829
6943
|
}> | undefined;
|
|
6830
6944
|
}) => void;
|
|
6831
6945
|
edit: <P extends "url" | "description" | "uid" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "url" | "description" | "uid" | "variables" ? {
|
|
6832
6946
|
uid: string;
|
|
6947
|
+
url: string;
|
|
6833
6948
|
description?: string | undefined;
|
|
6834
|
-
url?: string | undefined;
|
|
6835
6949
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
6836
6950
|
enum?: [string, ...string[]];
|
|
6837
6951
|
}> | undefined;
|
|
6838
6952
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "url" | "description" | "uid" | "variables" ? R extends Path<{
|
|
6839
6953
|
uid: string;
|
|
6954
|
+
url: string;
|
|
6840
6955
|
description?: string | undefined;
|
|
6841
|
-
url?: string | undefined;
|
|
6842
6956
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
6843
6957
|
enum?: [string, ...string[]];
|
|
6844
6958
|
}> | undefined;
|
|
6845
6959
|
}[K]> ? PathValue<{
|
|
6846
6960
|
uid: string;
|
|
6961
|
+
url: string;
|
|
6847
6962
|
description?: string | undefined;
|
|
6848
|
-
url?: string | undefined;
|
|
6849
6963
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
6850
6964
|
enum?: [string, ...string[]];
|
|
6851
6965
|
}> | undefined;
|
|
6852
6966
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
6853
6967
|
untrackedEdit: <P extends "url" | "description" | "uid" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "url" | "description" | "uid" | "variables" ? {
|
|
6854
6968
|
uid: string;
|
|
6969
|
+
url: string;
|
|
6855
6970
|
description?: string | undefined;
|
|
6856
|
-
url?: string | undefined;
|
|
6857
6971
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
6858
6972
|
enum?: [string, ...string[]];
|
|
6859
6973
|
}> | undefined;
|
|
6860
6974
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "url" | "description" | "uid" | "variables" ? R extends Path<{
|
|
6861
6975
|
uid: string;
|
|
6976
|
+
url: string;
|
|
6862
6977
|
description?: string | undefined;
|
|
6863
|
-
url?: string | undefined;
|
|
6864
6978
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
6865
6979
|
enum?: [string, ...string[]];
|
|
6866
6980
|
}> | undefined;
|
|
6867
6981
|
}[K]> ? PathValue<{
|
|
6868
6982
|
uid: string;
|
|
6983
|
+
url: string;
|
|
6869
6984
|
description?: string | undefined;
|
|
6870
|
-
url?: string | undefined;
|
|
6871
6985
|
variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
|
|
6872
6986
|
enum?: [string, ...string[]];
|
|
6873
6987
|
}> | undefined;
|