@scalar/api-client 2.3.7 → 2.3.9
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 +39 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +8 -8
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +2 -0
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +8 -8
- package/dist/layouts/App/create-api-client-app.d.ts +638 -466
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1297 -953
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +10 -9
- package/dist/layouts/Modal/index.d.ts +1 -1
- package/dist/layouts/Modal/index.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +638 -466
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +631 -459
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +4 -4
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +2 -2
- package/dist/libs/send-request/build-request-security.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.test.d.ts +49 -47
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +65 -61
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +30 -30
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +18 -18
- package/dist/store/environment.d.ts +9 -9
- package/dist/store/import-spec.d.ts +154 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +272 -272
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +44 -44
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +10 -10
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/servers.d.ts +50 -30
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/store.d.ts +635 -463
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts +10 -10
- package/dist/store/workspace.d.ts +44 -44
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +26 -19
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +191 -193
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +2 -0
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +50 -47
- package/package.json +15 -15
|
@@ -4,8 +4,8 @@ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
|
4
4
|
/** Initiate the workspace collections */
|
|
5
5
|
export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
6
6
|
collections: Record<string, {
|
|
7
|
-
type: "collection";
|
|
8
7
|
uid: string & import("zod").BRAND<"collection">;
|
|
8
|
+
type: "collection";
|
|
9
9
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
10
10
|
openapi: string;
|
|
11
11
|
info: {
|
|
@@ -47,12 +47,12 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
47
47
|
default: string;
|
|
48
48
|
description?: string | undefined;
|
|
49
49
|
}>;
|
|
50
|
-
description?: string | undefined;
|
|
51
50
|
color?: string | undefined;
|
|
51
|
+
description?: string | undefined;
|
|
52
52
|
}> | undefined;
|
|
53
53
|
'x-scalar-secrets'?: Record<string, {
|
|
54
|
-
example?: string | undefined;
|
|
55
54
|
description?: string | undefined;
|
|
55
|
+
example?: string | undefined;
|
|
56
56
|
}> | undefined;
|
|
57
57
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
58
58
|
documentUrl?: string | undefined;
|
|
@@ -60,8 +60,8 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
60
60
|
}>;
|
|
61
61
|
collectionMutators: {
|
|
62
62
|
add: (item: {
|
|
63
|
-
type: "collection";
|
|
64
63
|
uid: string & import("zod").BRAND<"collection">;
|
|
64
|
+
type: "collection";
|
|
65
65
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
66
66
|
openapi: string;
|
|
67
67
|
info: {
|
|
@@ -103,12 +103,12 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
103
103
|
default: string;
|
|
104
104
|
description?: string | undefined;
|
|
105
105
|
}>;
|
|
106
|
-
description?: string | undefined;
|
|
107
106
|
color?: string | undefined;
|
|
107
|
+
description?: string | undefined;
|
|
108
108
|
}> | undefined;
|
|
109
109
|
'x-scalar-secrets'?: Record<string, {
|
|
110
|
-
example?: string | undefined;
|
|
111
110
|
description?: string | undefined;
|
|
111
|
+
example?: string | undefined;
|
|
112
112
|
}> | undefined;
|
|
113
113
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
114
114
|
documentUrl?: string | undefined;
|
|
@@ -116,8 +116,8 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
116
116
|
}) => void;
|
|
117
117
|
delete: (uid: (string & import("zod").BRAND<"collection">) | null | undefined) => void;
|
|
118
118
|
set: (item: {
|
|
119
|
-
type: "collection";
|
|
120
119
|
uid: string & import("zod").BRAND<"collection">;
|
|
120
|
+
type: "collection";
|
|
121
121
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
122
122
|
openapi: string;
|
|
123
123
|
info: {
|
|
@@ -159,20 +159,20 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
159
159
|
default: string;
|
|
160
160
|
description?: string | undefined;
|
|
161
161
|
}>;
|
|
162
|
-
description?: string | undefined;
|
|
163
162
|
color?: string | undefined;
|
|
163
|
+
description?: string | undefined;
|
|
164
164
|
}> | undefined;
|
|
165
165
|
'x-scalar-secrets'?: Record<string, {
|
|
166
|
-
example?: string | undefined;
|
|
167
166
|
description?: string | undefined;
|
|
167
|
+
example?: string | undefined;
|
|
168
168
|
}> | undefined;
|
|
169
169
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
170
170
|
documentUrl?: string | undefined;
|
|
171
171
|
integration?: string | null | undefined;
|
|
172
172
|
}) => void;
|
|
173
173
|
edit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: (string & import("zod").BRAND<"collection">) | null | undefined, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
|
|
174
|
-
type: "collection";
|
|
175
174
|
uid: string & import("zod").BRAND<"collection">;
|
|
175
|
+
type: "collection";
|
|
176
176
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
177
177
|
openapi: string;
|
|
178
178
|
info: {
|
|
@@ -214,19 +214,19 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
214
214
|
default: string;
|
|
215
215
|
description?: string | undefined;
|
|
216
216
|
}>;
|
|
217
|
-
description?: string | undefined;
|
|
218
217
|
color?: string | undefined;
|
|
218
|
+
description?: string | undefined;
|
|
219
219
|
}> | undefined;
|
|
220
220
|
'x-scalar-secrets'?: Record<string, {
|
|
221
|
-
example?: string | undefined;
|
|
222
221
|
description?: string | undefined;
|
|
222
|
+
example?: string | undefined;
|
|
223
223
|
}> | undefined;
|
|
224
224
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
225
225
|
documentUrl?: string | undefined;
|
|
226
226
|
integration?: string | null | undefined;
|
|
227
227
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
228
|
-
type: "collection";
|
|
229
228
|
uid: string & import("zod").BRAND<"collection">;
|
|
229
|
+
type: "collection";
|
|
230
230
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
231
231
|
openapi: string;
|
|
232
232
|
info: {
|
|
@@ -268,19 +268,19 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
268
268
|
default: string;
|
|
269
269
|
description?: string | undefined;
|
|
270
270
|
}>;
|
|
271
|
-
description?: string | undefined;
|
|
272
271
|
color?: string | undefined;
|
|
272
|
+
description?: string | undefined;
|
|
273
273
|
}> | undefined;
|
|
274
274
|
'x-scalar-secrets'?: Record<string, {
|
|
275
|
-
example?: string | undefined;
|
|
276
275
|
description?: string | undefined;
|
|
276
|
+
example?: string | undefined;
|
|
277
277
|
}> | undefined;
|
|
278
278
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
279
279
|
documentUrl?: string | undefined;
|
|
280
280
|
integration?: string | null | undefined;
|
|
281
281
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
282
|
-
type: "collection";
|
|
283
282
|
uid: string & import("zod").BRAND<"collection">;
|
|
283
|
+
type: "collection";
|
|
284
284
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
285
285
|
openapi: string;
|
|
286
286
|
info: {
|
|
@@ -322,20 +322,20 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
322
322
|
default: string;
|
|
323
323
|
description?: string | undefined;
|
|
324
324
|
}>;
|
|
325
|
-
description?: string | undefined;
|
|
326
325
|
color?: string | undefined;
|
|
326
|
+
description?: string | undefined;
|
|
327
327
|
}> | undefined;
|
|
328
328
|
'x-scalar-secrets'?: Record<string, {
|
|
329
|
-
example?: string | undefined;
|
|
330
329
|
description?: string | undefined;
|
|
330
|
+
example?: string | undefined;
|
|
331
331
|
}> | undefined;
|
|
332
332
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
333
333
|
documentUrl?: string | undefined;
|
|
334
334
|
integration?: string | null | undefined;
|
|
335
335
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
336
336
|
untrackedEdit: <P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | `servers.${number}` | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string & import("zod").BRAND<"collection">, path: P, value: P extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
|
|
337
|
-
type: "collection";
|
|
338
337
|
uid: string & import("zod").BRAND<"collection">;
|
|
338
|
+
type: "collection";
|
|
339
339
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
340
340
|
openapi: string;
|
|
341
341
|
info: {
|
|
@@ -377,19 +377,19 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
377
377
|
default: string;
|
|
378
378
|
description?: string | undefined;
|
|
379
379
|
}>;
|
|
380
|
-
description?: string | undefined;
|
|
381
380
|
color?: string | undefined;
|
|
381
|
+
description?: string | undefined;
|
|
382
382
|
}> | undefined;
|
|
383
383
|
'x-scalar-secrets'?: Record<string, {
|
|
384
|
-
example?: string | undefined;
|
|
385
384
|
description?: string | undefined;
|
|
385
|
+
example?: string | undefined;
|
|
386
386
|
}> | undefined;
|
|
387
387
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
388
388
|
documentUrl?: string | undefined;
|
|
389
389
|
integration?: string | null | undefined;
|
|
390
390
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "info" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "servers" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
391
|
-
type: "collection";
|
|
392
391
|
uid: string & import("zod").BRAND<"collection">;
|
|
392
|
+
type: "collection";
|
|
393
393
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
394
394
|
openapi: string;
|
|
395
395
|
info: {
|
|
@@ -431,19 +431,19 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
431
431
|
default: string;
|
|
432
432
|
description?: string | undefined;
|
|
433
433
|
}>;
|
|
434
|
-
description?: string | undefined;
|
|
435
434
|
color?: string | undefined;
|
|
435
|
+
description?: string | undefined;
|
|
436
436
|
}> | undefined;
|
|
437
437
|
'x-scalar-secrets'?: Record<string, {
|
|
438
|
-
example?: string | undefined;
|
|
439
438
|
description?: string | undefined;
|
|
439
|
+
example?: string | undefined;
|
|
440
440
|
}> | undefined;
|
|
441
441
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
442
442
|
documentUrl?: string | undefined;
|
|
443
443
|
integration?: string | null | undefined;
|
|
444
444
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
445
|
-
type: "collection";
|
|
446
445
|
uid: string & import("zod").BRAND<"collection">;
|
|
446
|
+
type: "collection";
|
|
447
447
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
448
448
|
openapi: string;
|
|
449
449
|
info: {
|
|
@@ -485,12 +485,12 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
485
485
|
default: string;
|
|
486
486
|
description?: string | undefined;
|
|
487
487
|
}>;
|
|
488
|
-
description?: string | undefined;
|
|
489
488
|
color?: string | undefined;
|
|
489
|
+
description?: string | undefined;
|
|
490
490
|
}> | undefined;
|
|
491
491
|
'x-scalar-secrets'?: Record<string, {
|
|
492
|
-
example?: string | undefined;
|
|
493
492
|
description?: string | undefined;
|
|
493
|
+
example?: string | undefined;
|
|
494
494
|
}> | undefined;
|
|
495
495
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
496
496
|
documentUrl?: string | undefined;
|
|
@@ -504,8 +504,8 @@ export declare function createStoreCollections(useLocalStorage: boolean): {
|
|
|
504
504
|
/** Extended mutators and data for collections that required workspace access */
|
|
505
505
|
export declare function extendedCollectionDataFactory({ requests, requestMutators, requestExamples, requestExampleMutators, workspaces, workspaceMutators, collections, collectionMutators, tagMutators, serverMutators, }: StoreContext): {
|
|
506
506
|
addCollection: (payload: CollectionPayload, workspaceUid: Workspace["uid"]) => {
|
|
507
|
-
type: "collection";
|
|
508
507
|
uid: string & import("zod").BRAND<"collection">;
|
|
508
|
+
type: "collection";
|
|
509
509
|
children: ((string & import("zod").BRAND<"tag">) | (string & import("zod").BRAND<"operation">))[];
|
|
510
510
|
openapi: string;
|
|
511
511
|
info: {
|
|
@@ -547,12 +547,12 @@ export declare function extendedCollectionDataFactory({ requests, requestMutator
|
|
|
547
547
|
default: string;
|
|
548
548
|
description?: string | undefined;
|
|
549
549
|
}>;
|
|
550
|
-
description?: string | undefined;
|
|
551
550
|
color?: string | undefined;
|
|
551
|
+
description?: string | undefined;
|
|
552
552
|
}> | undefined;
|
|
553
553
|
'x-scalar-secrets'?: Record<string, {
|
|
554
|
-
example?: string | undefined;
|
|
555
554
|
description?: string | undefined;
|
|
555
|
+
example?: string | undefined;
|
|
556
556
|
}> | undefined;
|
|
557
557
|
selectedServerUid?: (string & import("zod").BRAND<"server">) | undefined;
|
|
558
558
|
documentUrl?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/store/collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAExB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,yCAAyC;AACzC,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,OAAO;;;;;;;;;uBAqHu2hB,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;oBAAoB,CAAC;0BAAmD,CAAC;mBAAqC,CAAC;;;;;;;;;;;;;;uBAA2hB,CAAC;;;;;;;;;2BAAuY,CAAC;;
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/store/collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAExB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,yCAAyC;AACzC,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,OAAO;;;;;;;;;uBAqHu2hB,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;oBAAoB,CAAC;0BAAmD,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qC,CAAC;;;;;;;;;;EA7G17kB;AAED,gFAAgF;AAChF,wBAAgB,6BAA6B,CAAC,EAC5C,QAAQ,EACR,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,cAAc,GACf,EAAE,YAAY;6BACmB,iBAAiB,gBAAgB,SAAS,CAAC,KAAK,CAAC;;;;;;;;uBA8Fm1hB,CAAC;mBAAqC,CAAC;0BAA4C,CAAC;mBAAqC,CAAC;oBAAoB,CAAC;mBAAqC,CAAC;qBAAuC,CAAC;;mBAA4D,CAAC;oBAAoB,CAAC;0BAAmD,CAAC;mBAAqC,CAAC;;;;;;;;;;;;;;uBAA2hB,CAAC;;;;;;;;;2BAAuY,CAAC;;iBAA+C,CAAC;uBAAyC,CAAC;;;uBAAuG,CAAC;mBAAqC,CAAC;;;;;;mCAlFn5kB,UAAU,aAAa,SAAS;gDAkDnD,MAAM,eACV,kBAAkB,iBAChB,UAAU,CAAC,KAAK,CAAC;mDAYoB,MAAM,iBAAiB,UAAU,CAAC,KAAK,CAAC;EAiB/F"}
|
package/dist/store/cookies.d.ts
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
/** Create cookie mutators for the workspace */
|
|
2
2
|
export declare function createStoreCookies(useLocalStorage: boolean): {
|
|
3
3
|
cookies: Record<string, {
|
|
4
|
-
value: string;
|
|
5
4
|
uid: string & import("zod").BRAND<"cookie">;
|
|
6
5
|
name: string;
|
|
7
|
-
|
|
6
|
+
value: string;
|
|
8
7
|
domain?: string | undefined;
|
|
8
|
+
path?: string | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
cookieMutators: {
|
|
11
11
|
add: (item: {
|
|
12
|
-
value: string;
|
|
13
12
|
uid: string & import("zod").BRAND<"cookie">;
|
|
14
13
|
name: string;
|
|
15
|
-
|
|
14
|
+
value: string;
|
|
16
15
|
domain?: string | undefined;
|
|
16
|
+
path?: string | undefined;
|
|
17
17
|
}) => void;
|
|
18
18
|
delete: (uid: (string & import("zod").BRAND<"cookie">) | null | undefined) => void;
|
|
19
19
|
set: (item: {
|
|
20
|
-
value: string;
|
|
21
20
|
uid: string & import("zod").BRAND<"cookie">;
|
|
22
21
|
name: string;
|
|
23
|
-
|
|
22
|
+
value: string;
|
|
24
23
|
domain?: string | undefined;
|
|
24
|
+
path?: string | undefined;
|
|
25
25
|
}) => void;
|
|
26
26
|
edit: <P extends "value" | "path" | "name" | "uid" | "domain">(uid: (string & import("zod").BRAND<"cookie">) | null | undefined, path: P, value: P extends "value" | "path" | "name" | "uid" | "domain" ? {
|
|
27
|
-
value: string;
|
|
28
27
|
uid: string & import("zod").BRAND<"cookie">;
|
|
29
28
|
name: string;
|
|
30
|
-
|
|
29
|
+
value: string;
|
|
31
30
|
domain?: string | undefined;
|
|
31
|
+
path?: string | undefined;
|
|
32
32
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "path" | "name" | "uid" | "domain" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
33
|
-
value: string;
|
|
34
33
|
uid: string & import("zod").BRAND<"cookie">;
|
|
35
34
|
name: string;
|
|
36
|
-
|
|
35
|
+
value: string;
|
|
37
36
|
domain?: string | undefined;
|
|
37
|
+
path?: string | undefined;
|
|
38
38
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
39
|
-
value: string;
|
|
40
39
|
uid: string & import("zod").BRAND<"cookie">;
|
|
41
40
|
name: string;
|
|
42
|
-
|
|
41
|
+
value: string;
|
|
43
42
|
domain?: string | undefined;
|
|
43
|
+
path?: string | undefined;
|
|
44
44
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
45
45
|
untrackedEdit: <P extends "value" | "path" | "name" | "uid" | "domain">(uid: string & import("zod").BRAND<"cookie">, path: P, value: P extends "value" | "path" | "name" | "uid" | "domain" ? {
|
|
46
|
-
value: string;
|
|
47
46
|
uid: string & import("zod").BRAND<"cookie">;
|
|
48
47
|
name: string;
|
|
49
|
-
|
|
48
|
+
value: string;
|
|
50
49
|
domain?: string | undefined;
|
|
50
|
+
path?: string | undefined;
|
|
51
51
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "path" | "name" | "uid" | "domain" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
52
|
-
value: string;
|
|
53
52
|
uid: string & import("zod").BRAND<"cookie">;
|
|
54
53
|
name: string;
|
|
55
|
-
|
|
54
|
+
value: string;
|
|
56
55
|
domain?: string | undefined;
|
|
56
|
+
path?: string | undefined;
|
|
57
57
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
58
|
-
value: string;
|
|
59
58
|
uid: string & import("zod").BRAND<"cookie">;
|
|
60
59
|
name: string;
|
|
61
|
-
|
|
60
|
+
value: string;
|
|
62
61
|
domain?: string | undefined;
|
|
62
|
+
path?: string | undefined;
|
|
63
63
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
64
64
|
undo: (uid: string & import("zod").BRAND<"cookie">) => void;
|
|
65
65
|
redo: (uid: string & import("zod").BRAND<"cookie">) => void;
|
|
@@ -3,63 +3,63 @@ import { type Environment } from '@scalar/oas-utils/entities/environment';
|
|
|
3
3
|
/** Generate reactive environments for the workspace */
|
|
4
4
|
export declare function createStoreEnvironments(useLocalStorage: boolean): {
|
|
5
5
|
environments: Record<string, {
|
|
6
|
-
value: string;
|
|
7
6
|
uid: string & import("zod").BRAND<"environment">;
|
|
8
7
|
name: string;
|
|
8
|
+
value: string;
|
|
9
9
|
color: string;
|
|
10
10
|
isDefault?: boolean | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
environmentMutators: {
|
|
13
13
|
add: (item: {
|
|
14
|
-
value: string;
|
|
15
14
|
uid: string & import("zod").BRAND<"environment">;
|
|
16
15
|
name: string;
|
|
16
|
+
value: string;
|
|
17
17
|
color: string;
|
|
18
18
|
isDefault?: boolean | undefined;
|
|
19
19
|
}) => void;
|
|
20
20
|
delete: (uid: (string & import("zod").BRAND<"environment">) | null | undefined) => void;
|
|
21
21
|
set: (item: {
|
|
22
|
-
value: string;
|
|
23
22
|
uid: string & import("zod").BRAND<"environment">;
|
|
24
23
|
name: string;
|
|
24
|
+
value: string;
|
|
25
25
|
color: string;
|
|
26
26
|
isDefault?: boolean | undefined;
|
|
27
27
|
}) => void;
|
|
28
28
|
edit: <P extends "value" | "name" | "uid" | "color" | "isDefault">(uid: (string & import("zod").BRAND<"environment">) | null | undefined, path: P, value: P extends "value" | "name" | "uid" | "color" | "isDefault" ? {
|
|
29
|
-
value: string;
|
|
30
29
|
uid: string & import("zod").BRAND<"environment">;
|
|
31
30
|
name: string;
|
|
31
|
+
value: string;
|
|
32
32
|
color: string;
|
|
33
33
|
isDefault?: boolean | undefined;
|
|
34
34
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "name" | "uid" | "color" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
35
|
-
value: string;
|
|
36
35
|
uid: string & import("zod").BRAND<"environment">;
|
|
37
36
|
name: string;
|
|
37
|
+
value: string;
|
|
38
38
|
color: string;
|
|
39
39
|
isDefault?: boolean | undefined;
|
|
40
40
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
41
|
-
value: string;
|
|
42
41
|
uid: string & import("zod").BRAND<"environment">;
|
|
43
42
|
name: string;
|
|
43
|
+
value: string;
|
|
44
44
|
color: string;
|
|
45
45
|
isDefault?: boolean | undefined;
|
|
46
46
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
47
47
|
untrackedEdit: <P extends "value" | "name" | "uid" | "color" | "isDefault">(uid: string & import("zod").BRAND<"environment">, path: P, value: P extends "value" | "name" | "uid" | "color" | "isDefault" ? {
|
|
48
|
-
value: string;
|
|
49
48
|
uid: string & import("zod").BRAND<"environment">;
|
|
50
49
|
name: string;
|
|
50
|
+
value: string;
|
|
51
51
|
color: string;
|
|
52
52
|
isDefault?: boolean | undefined;
|
|
53
53
|
}[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "name" | "uid" | "color" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
|
|
54
|
-
value: string;
|
|
55
54
|
uid: string & import("zod").BRAND<"environment">;
|
|
56
55
|
name: string;
|
|
56
|
+
value: string;
|
|
57
57
|
color: string;
|
|
58
58
|
isDefault?: boolean | undefined;
|
|
59
59
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
60
|
-
value: string;
|
|
61
60
|
uid: string & import("zod").BRAND<"environment">;
|
|
62
61
|
name: string;
|
|
62
|
+
value: string;
|
|
63
63
|
color: string;
|
|
64
64
|
isDefault?: boolean | undefined;
|
|
65
65
|
}[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
|
|
@@ -19,7 +19,83 @@ export declare function importSpecFileFactory({ requestMutators, collectionMutat
|
|
|
19
19
|
examples: import("@scalar/oas-utils/entities/spec").RequestExample[];
|
|
20
20
|
servers: import("@scalar/oas-utils/entities/spec").Server[];
|
|
21
21
|
tags: import("@scalar/oas-utils/entities/spec").Tag[];
|
|
22
|
-
securitySchemes:
|
|
22
|
+
securitySchemes: ({
|
|
23
|
+
uid: string & import("zod").BRAND<"securityScheme">;
|
|
24
|
+
name: string;
|
|
25
|
+
value: string;
|
|
26
|
+
type: "apiKey";
|
|
27
|
+
in: "cookie" | "query" | "header";
|
|
28
|
+
nameKey: string;
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
} | {
|
|
31
|
+
uid: string & import("zod").BRAND<"securityScheme">;
|
|
32
|
+
type: "http";
|
|
33
|
+
password: string;
|
|
34
|
+
nameKey: string;
|
|
35
|
+
scheme: "basic" | "bearer";
|
|
36
|
+
bearerFormat: string;
|
|
37
|
+
username: string;
|
|
38
|
+
token: string;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
} | {
|
|
41
|
+
uid: string & import("zod").BRAND<"securityScheme">;
|
|
42
|
+
type: "openIdConnect";
|
|
43
|
+
nameKey: string;
|
|
44
|
+
openIdConnectUrl: string;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
uid: string & import("zod").BRAND<"securityScheme">;
|
|
48
|
+
type: "oauth2";
|
|
49
|
+
nameKey: string;
|
|
50
|
+
flows: {
|
|
51
|
+
password?: {
|
|
52
|
+
type: "password";
|
|
53
|
+
password: string;
|
|
54
|
+
username: string;
|
|
55
|
+
token: string;
|
|
56
|
+
refreshUrl: string;
|
|
57
|
+
scopes: Record<string, string>;
|
|
58
|
+
selectedScopes: string[];
|
|
59
|
+
"x-scalar-client-id": string;
|
|
60
|
+
tokenUrl: string;
|
|
61
|
+
clientSecret: string;
|
|
62
|
+
} | undefined;
|
|
63
|
+
implicit?: {
|
|
64
|
+
type: "implicit";
|
|
65
|
+
token: string;
|
|
66
|
+
refreshUrl: string;
|
|
67
|
+
scopes: Record<string, string>;
|
|
68
|
+
selectedScopes: string[];
|
|
69
|
+
"x-scalar-client-id": string;
|
|
70
|
+
authorizationUrl: string;
|
|
71
|
+
"x-scalar-redirect-uri": string;
|
|
72
|
+
} | undefined;
|
|
73
|
+
clientCredentials?: {
|
|
74
|
+
type: "clientCredentials";
|
|
75
|
+
token: string;
|
|
76
|
+
refreshUrl: string;
|
|
77
|
+
scopes: Record<string, string>;
|
|
78
|
+
selectedScopes: string[];
|
|
79
|
+
"x-scalar-client-id": string;
|
|
80
|
+
tokenUrl: string;
|
|
81
|
+
clientSecret: string;
|
|
82
|
+
} | undefined;
|
|
83
|
+
authorizationCode?: {
|
|
84
|
+
type: "authorizationCode";
|
|
85
|
+
token: string;
|
|
86
|
+
refreshUrl: string;
|
|
87
|
+
scopes: Record<string, string>;
|
|
88
|
+
selectedScopes: string[];
|
|
89
|
+
"x-scalar-client-id": string;
|
|
90
|
+
authorizationUrl: string;
|
|
91
|
+
"x-scalar-redirect-uri": string;
|
|
92
|
+
tokenUrl: string;
|
|
93
|
+
clientSecret: string;
|
|
94
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
95
|
+
} | undefined;
|
|
96
|
+
};
|
|
97
|
+
description?: string | undefined;
|
|
98
|
+
})[];
|
|
23
99
|
} | undefined>;
|
|
24
100
|
importSpecFromUrl: (url: string, workspaceUid: string, { proxyUrl, ...options }?: Omit<ImportSpecFileArgs, "documentUrl"> & Pick<ApiReferenceConfiguration, "proxyUrl">) => Promise<ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: ImportSpecFileArgs) => Promise<{
|
|
25
101
|
error: false;
|
|
@@ -29,7 +105,83 @@ export declare function importSpecFileFactory({ requestMutators, collectionMutat
|
|
|
29
105
|
examples: import("@scalar/oas-utils/entities/spec").RequestExample[];
|
|
30
106
|
servers: import("@scalar/oas-utils/entities/spec").Server[];
|
|
31
107
|
tags: import("@scalar/oas-utils/entities/spec").Tag[];
|
|
32
|
-
securitySchemes:
|
|
108
|
+
securitySchemes: ({
|
|
109
|
+
uid: string & import("zod").BRAND<"securityScheme">;
|
|
110
|
+
name: string;
|
|
111
|
+
value: string;
|
|
112
|
+
type: "apiKey";
|
|
113
|
+
in: "cookie" | "query" | "header";
|
|
114
|
+
nameKey: string;
|
|
115
|
+
description?: string | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
uid: string & import("zod").BRAND<"securityScheme">;
|
|
118
|
+
type: "http";
|
|
119
|
+
password: string;
|
|
120
|
+
nameKey: string;
|
|
121
|
+
scheme: "basic" | "bearer";
|
|
122
|
+
bearerFormat: string;
|
|
123
|
+
username: string;
|
|
124
|
+
token: string;
|
|
125
|
+
description?: string | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
uid: string & import("zod").BRAND<"securityScheme">;
|
|
128
|
+
type: "openIdConnect";
|
|
129
|
+
nameKey: string;
|
|
130
|
+
openIdConnectUrl: string;
|
|
131
|
+
description?: string | undefined;
|
|
132
|
+
} | {
|
|
133
|
+
uid: string & import("zod").BRAND<"securityScheme">;
|
|
134
|
+
type: "oauth2";
|
|
135
|
+
nameKey: string;
|
|
136
|
+
flows: {
|
|
137
|
+
password?: {
|
|
138
|
+
type: "password";
|
|
139
|
+
password: string;
|
|
140
|
+
username: string;
|
|
141
|
+
token: string;
|
|
142
|
+
refreshUrl: string;
|
|
143
|
+
scopes: Record<string, string>;
|
|
144
|
+
selectedScopes: string[];
|
|
145
|
+
"x-scalar-client-id": string;
|
|
146
|
+
tokenUrl: string;
|
|
147
|
+
clientSecret: string;
|
|
148
|
+
} | undefined;
|
|
149
|
+
implicit?: {
|
|
150
|
+
type: "implicit";
|
|
151
|
+
token: string;
|
|
152
|
+
refreshUrl: string;
|
|
153
|
+
scopes: Record<string, string>;
|
|
154
|
+
selectedScopes: string[];
|
|
155
|
+
"x-scalar-client-id": string;
|
|
156
|
+
authorizationUrl: string;
|
|
157
|
+
"x-scalar-redirect-uri": string;
|
|
158
|
+
} | undefined;
|
|
159
|
+
clientCredentials?: {
|
|
160
|
+
type: "clientCredentials";
|
|
161
|
+
token: string;
|
|
162
|
+
refreshUrl: string;
|
|
163
|
+
scopes: Record<string, string>;
|
|
164
|
+
selectedScopes: string[];
|
|
165
|
+
"x-scalar-client-id": string;
|
|
166
|
+
tokenUrl: string;
|
|
167
|
+
clientSecret: string;
|
|
168
|
+
} | undefined;
|
|
169
|
+
authorizationCode?: {
|
|
170
|
+
type: "authorizationCode";
|
|
171
|
+
token: string;
|
|
172
|
+
refreshUrl: string;
|
|
173
|
+
scopes: Record<string, string>;
|
|
174
|
+
selectedScopes: string[];
|
|
175
|
+
"x-scalar-client-id": string;
|
|
176
|
+
authorizationUrl: string;
|
|
177
|
+
"x-scalar-redirect-uri": string;
|
|
178
|
+
tokenUrl: string;
|
|
179
|
+
clientSecret: string;
|
|
180
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
181
|
+
} | undefined;
|
|
182
|
+
};
|
|
183
|
+
description?: string | undefined;
|
|
184
|
+
})[];
|
|
33
185
|
} | undefined>>>>>;
|
|
34
186
|
};
|
|
35
187
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/store/import-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,QAAQ,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGzD,OAAO,EAAE,KAAK,yBAAyB,EAAyB,MAAM,8BAA8B,CAAA;AACpG,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAG5E,4BAA4B;AAC5B,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAA;CAAE,CAAM,CAAA;AAErH,KAAK,kBAAkB,GAAG,yBAAyB,GAAG,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAA;AAEhG,yDAAyD;AACzD,wBAAgB,qBAAqB,CAAC,EACpC,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,GACX,EAAE,YAAY;4BAEJ,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBACrB,MAAM,YACX,kBAAkB;;;;
|
|
1
|
+
{"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/store/import-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,QAAQ,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGzD,OAAO,EAAE,KAAK,yBAAyB,EAAyB,MAAM,8BAA8B,CAAA;AACpG,OAAO,KAAK,E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