@scalar/workspace-store 0.19.0 → 0.21.0
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 +44 -0
- package/README.md +2 -2
- package/dist/client.d.ts +40 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +58 -23
- package/dist/client.js.map +2 -2
- package/dist/events/bus.d.ts +13 -1
- package/dist/events/bus.d.ts.map +1 -1
- package/dist/events/bus.js +46 -10
- package/dist/events/bus.js.map +3 -3
- package/dist/events/definitions/auth.d.ts +20 -2
- package/dist/events/definitions/auth.d.ts.map +1 -1
- package/dist/events/definitions/cookie.d.ts +20 -0
- package/dist/events/definitions/cookie.d.ts.map +1 -0
- package/dist/events/definitions/cookie.js +1 -0
- package/dist/events/definitions/cookie.js.map +7 -0
- package/dist/events/definitions/document.d.ts +11 -1
- package/dist/events/definitions/document.d.ts.map +1 -1
- package/dist/events/definitions/index.d.ts +4 -2
- package/dist/events/definitions/index.d.ts.map +1 -1
- package/dist/events/definitions/operation.d.ts +0 -13
- package/dist/events/definitions/operation.d.ts.map +1 -1
- package/dist/events/definitions/server.d.ts +20 -28
- package/dist/events/definitions/server.d.ts.map +1 -1
- package/dist/events/definitions/tabs.d.ts +40 -0
- package/dist/events/definitions/tabs.d.ts.map +1 -0
- package/dist/events/definitions/tabs.js +1 -0
- package/dist/events/definitions/tabs.js.map +7 -0
- package/dist/events/definitions/ui.d.ts +39 -4
- package/dist/events/definitions/ui.d.ts.map +1 -1
- package/dist/events/definitions/workspace.d.ts +18 -0
- package/dist/events/definitions/workspace.d.ts.map +1 -0
- package/dist/events/definitions/workspace.js +1 -0
- package/dist/events/definitions/workspace.js.map +7 -0
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js.map +2 -2
- package/dist/helpers/generate-unique-value.d.ts +19 -6
- package/dist/helpers/generate-unique-value.d.ts.map +1 -1
- package/dist/helpers/generate-unique-value.js +12 -7
- package/dist/helpers/generate-unique-value.js.map +2 -2
- package/dist/helpers/unpack-proxy.d.ts +14 -1
- package/dist/helpers/unpack-proxy.d.ts.map +1 -1
- package/dist/helpers/unpack-proxy.js +51 -1
- package/dist/helpers/unpack-proxy.js.map +3 -3
- package/dist/mutators/auth.d.ts +10 -73
- package/dist/mutators/auth.d.ts.map +1 -1
- package/dist/mutators/auth.js +47 -111
- package/dist/mutators/auth.js.map +2 -2
- package/dist/mutators/cookie.d.ts +21 -13
- package/dist/mutators/cookie.d.ts.map +1 -1
- package/dist/mutators/cookie.js +34 -26
- package/dist/mutators/cookie.js.map +3 -3
- package/dist/mutators/document.d.ts +13 -0
- package/dist/mutators/document.d.ts.map +1 -0
- package/dist/mutators/document.js +25 -0
- package/dist/mutators/document.js.map +7 -0
- package/dist/mutators/index.d.ts +13 -20
- package/dist/mutators/index.d.ts.map +1 -1
- package/dist/mutators/index.js +49 -8
- package/dist/mutators/index.js.map +3 -3
- package/dist/mutators/operation.d.ts +23 -101
- package/dist/mutators/operation.d.ts.map +1 -1
- package/dist/mutators/operation.js +132 -96
- package/dist/mutators/operation.js.map +2 -2
- package/dist/mutators/server.d.ts +43 -8
- package/dist/mutators/server.d.ts.map +1 -1
- package/dist/mutators/server.js +113 -20
- package/dist/mutators/server.js.map +2 -2
- package/dist/mutators/workspace.d.ts +6 -0
- package/dist/mutators/workspace.d.ts.map +1 -0
- package/dist/mutators/workspace.js +24 -0
- package/dist/mutators/workspace.js.map +7 -0
- package/dist/navigation/get-navigation-options.d.ts.map +1 -1
- package/dist/navigation/get-navigation-options.js +4 -4
- package/dist/navigation/get-navigation-options.js.map +2 -2
- package/dist/navigation/helpers/traverse-document.d.ts +2 -0
- package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-document.js +18 -3
- package/dist/navigation/helpers/traverse-document.js.map +2 -2
- package/dist/navigation/helpers/traverse-examples.js +2 -2
- package/dist/navigation/helpers/traverse-examples.js.map +2 -2
- package/dist/navigation/helpers/traverse-paths.d.ts +6 -3
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +4 -9
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +0 -1
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +57 -49
- package/dist/navigation/helpers/traverse-tags.js.map +3 -3
- package/dist/persistence/index.d.ts +6 -0
- package/dist/persistence/index.d.ts.map +1 -1
- package/dist/persistence/index.js +18 -0
- package/dist/persistence/index.js.map +2 -2
- package/dist/persistence/indexdb.d.ts +1 -0
- package/dist/persistence/indexdb.d.ts.map +1 -1
- package/dist/persistence/indexdb.js +6 -1
- package/dist/persistence/indexdb.js.map +2 -2
- package/dist/plugins/client/persistence.d.ts +2 -1
- package/dist/plugins/client/persistence.d.ts.map +1 -1
- package/dist/plugins/client/persistence.js +17 -9
- package/dist/plugins/client/persistence.js.map +2 -2
- package/dist/schemas/extensions/document/x-scalar-environments.d.ts +1 -0
- package/dist/schemas/extensions/document/x-scalar-environments.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-environments.js.map +2 -2
- package/dist/schemas/extensions/document/x-scalar-set-operation-security.d.ts +13 -0
- package/dist/schemas/extensions/document/x-scalar-set-operation-security.d.ts.map +1 -0
- package/dist/schemas/extensions/document/x-scalar-set-operation-security.js +8 -0
- package/dist/schemas/extensions/document/x-scalar-set-operation-security.js.map +7 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.d.ts +36 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.d.ts.map +1 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.js +15 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.js.map +7 -0
- package/dist/schemas/extensions/general/x-scalar-order.d.ts +12 -0
- package/dist/schemas/extensions/general/x-scalar-order.d.ts.map +1 -0
- package/dist/schemas/extensions/general/x-scalar-order.js +8 -0
- package/dist/schemas/extensions/general/x-scalar-order.js.map +7 -0
- package/dist/schemas/extensions/security/x-scalar-selected-security.d.ts +7 -7
- package/dist/schemas/extensions/security/x-scalar-selected-security.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-selected-security.js +2 -2
- package/dist/schemas/extensions/security/x-scalar-selected-security.js.map +2 -2
- package/dist/schemas/extensions/server/x-scalar-selected-server.d.ts +8 -0
- package/dist/schemas/extensions/server/x-scalar-selected-server.d.ts.map +1 -0
- package/dist/schemas/extensions/server/x-scalar-selected-server.js +8 -0
- package/dist/schemas/extensions/server/x-scalar-selected-server.js.map +7 -0
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +10 -5
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js +15 -10
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +2 -2
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.d.ts +18 -0
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.d.ts.map +1 -0
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.js +8 -0
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.js.map +7 -0
- package/dist/schemas/extensions.d.ts +1 -1
- package/dist/schemas/extensions.js +1 -1
- package/dist/schemas/extensions.js.map +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +59 -33
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/navigation.d.ts +9 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +3 -1
- package/dist/schemas/navigation.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +29 -16
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +29 -16
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js +2 -0
- package/dist/schemas/reference-config/settings.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +992 -549
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +14 -6
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +3 -7
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +1 -5
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/tag.d.ts +4 -1
- package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +3 -1
- package/dist/schemas/v3.1/strict/tag.js.map +2 -2
- package/dist/schemas/v3.1/strict/type-guards.d.ts +6 -0
- package/dist/schemas/v3.1/strict/type-guards.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/type-guards.js +4 -0
- package/dist/schemas/v3.1/strict/type-guards.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +29 -16
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.d.ts +30 -17
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace.d.ts +233 -130
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +8 -6
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +1 -1
- package/dist/workspace-plugin.d.ts +3 -0
- package/dist/workspace-plugin.d.ts.map +1 -1
- package/package.json +8 -7
- package/dist/helpers/debounce.d.ts +0 -28
- package/dist/helpers/debounce.d.ts.map +0 -1
- package/dist/helpers/debounce.js +0 -31
- package/dist/helpers/debounce.js.map +0 -7
- package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.d.ts +0 -13
- package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.d.ts.map +0 -1
- package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.js +0 -9
- package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.js.map +0 -7
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +0 -32
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +0 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js +0 -13
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +0 -7
|
@@ -2,7 +2,7 @@ import { type WorkspaceDocument, type WorkspaceMeta } from '../schemas/workspace
|
|
|
2
2
|
import { type Config } from '../schemas/workspace-specification/config.js';
|
|
3
3
|
export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<{
|
|
4
4
|
meta: import("@scalar/typebox").TObject<{
|
|
5
|
-
"x-scalar-
|
|
5
|
+
"x-scalar-color-mode": import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"system">, import("@scalar/typebox").TLiteral<"light">, import("@scalar/typebox").TLiteral<"dark">]>>;
|
|
6
6
|
"x-scalar-default-client": import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "fsharp/httpclient" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">[]>>;
|
|
7
7
|
"x-scalar-active-document": import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8
8
|
"x-scalar-theme": import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none">[]>>;
|
|
@@ -120,6 +120,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
120
120
|
'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
121
121
|
}>, import("@scalar/typebox").TObject<{
|
|
122
122
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
123
|
+
}>, import("@scalar/typebox").TObject<{
|
|
124
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
123
125
|
}>]>;
|
|
124
126
|
CallbackObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
125
127
|
$ref: import("@scalar/typebox").TString;
|
|
@@ -280,8 +282,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
280
282
|
}>]>]>>>;
|
|
281
283
|
}>, import("@scalar/typebox").TObject<{
|
|
282
284
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
283
|
-
|
|
284
|
-
|
|
285
|
+
selectedIndex: import("@scalar/typebox").TInteger;
|
|
286
|
+
selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
|
|
285
287
|
}>>;
|
|
286
288
|
}>, import("@scalar/typebox").TObject<{
|
|
287
289
|
'x-badges': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
@@ -311,9 +313,6 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
311
313
|
}>>>;
|
|
312
314
|
}>, import("@scalar/typebox").TObject<{
|
|
313
315
|
'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"deprecated">, import("@scalar/typebox").TLiteral<"experimental">, import("@scalar/typebox").TLiteral<"stable">]>>;
|
|
314
|
-
}>, import("@scalar/typebox").TObject<{
|
|
315
|
-
'x-scalar-path': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
316
|
-
'x-scalar-method': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
317
316
|
}>]>;
|
|
318
317
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
319
318
|
__scalar_: import("@scalar/typebox").TString;
|
|
@@ -1259,22 +1258,17 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1259
1258
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
1260
1259
|
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1261
1260
|
'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1262
|
-
'x-scalar-client-config-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1263
|
-
'x-scalar-client-config-cookies': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
1264
|
-
name: import("@scalar/typebox").TString;
|
|
1265
|
-
value: import("@scalar/typebox").TString;
|
|
1266
|
-
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1267
|
-
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1268
|
-
}>>>;
|
|
1269
1261
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1270
1262
|
'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1271
1263
|
'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1272
1264
|
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
|
|
1273
1265
|
}>, import("@scalar/typebox").TObject<{
|
|
1274
|
-
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
1266
|
+
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1275
1267
|
name: import("@scalar/typebox").TString;
|
|
1276
1268
|
tags: import("@scalar/typebox").TArray<import("@scalar/typebox").TString>;
|
|
1277
|
-
}
|
|
1269
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1270
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
1271
|
+
}>]>>>;
|
|
1278
1272
|
}>, import("@scalar/typebox").TObject<{
|
|
1279
1273
|
'x-scalar-environments': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
1280
1274
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1289,9 +1283,24 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1289
1283
|
}>>>;
|
|
1290
1284
|
}>, import("@scalar/typebox").TObject<{
|
|
1291
1285
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
1292
|
-
|
|
1293
|
-
|
|
1286
|
+
selectedIndex: import("@scalar/typebox").TInteger;
|
|
1287
|
+
selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
|
|
1294
1288
|
}>>;
|
|
1289
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1290
|
+
'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1291
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1292
|
+
'x-scalar-set-operation-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1293
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1294
|
+
'x-scalar-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1295
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1296
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
1297
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1298
|
+
'x-scalar-cookies': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
1299
|
+
name: import("@scalar/typebox").TString;
|
|
1300
|
+
value: import("@scalar/typebox").TString;
|
|
1301
|
+
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1302
|
+
isDisabled: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1303
|
+
}>>>;
|
|
1295
1304
|
}>, import("@scalar/typebox").TObject<{
|
|
1296
1305
|
'x-scalar-original-document-hash': import("@scalar/typebox").TString;
|
|
1297
1306
|
}>]>]>;
|
|
@@ -1397,7 +1406,9 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1397
1406
|
title: import("@scalar/typebox").TString;
|
|
1398
1407
|
}>, import("@scalar/typebox").TObject<{
|
|
1399
1408
|
type: import("@scalar/typebox").TLiteral<"document">;
|
|
1409
|
+
name: import("@scalar/typebox").TString;
|
|
1400
1410
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1411
|
+
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1401
1412
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1402
1413
|
id: import("@scalar/typebox").TString;
|
|
1403
1414
|
title: import("@scalar/typebox").TString;
|
|
@@ -1411,7 +1422,9 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1411
1422
|
title: import("@scalar/typebox").TString;
|
|
1412
1423
|
}>, import("@scalar/typebox").TObject<{
|
|
1413
1424
|
type: import("@scalar/typebox").TLiteral<"document">;
|
|
1425
|
+
name: import("@scalar/typebox").TString;
|
|
1414
1426
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1427
|
+
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1415
1428
|
}>]>;
|
|
1416
1429
|
}, "ServerObject">>>;
|
|
1417
1430
|
baseServerUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1559,6 +1572,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1559
1572
|
'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1560
1573
|
}>, import("@scalar/typebox").TObject<{
|
|
1561
1574
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1575
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1576
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
1562
1577
|
}>]>;
|
|
1563
1578
|
CallbackObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1564
1579
|
$ref: import("@scalar/typebox").TString;
|
|
@@ -1719,8 +1734,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1719
1734
|
}>]>]>>>;
|
|
1720
1735
|
}>, import("@scalar/typebox").TObject<{
|
|
1721
1736
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
1722
|
-
|
|
1723
|
-
|
|
1737
|
+
selectedIndex: import("@scalar/typebox").TInteger;
|
|
1738
|
+
selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
|
|
1724
1739
|
}>>;
|
|
1725
1740
|
}>, import("@scalar/typebox").TObject<{
|
|
1726
1741
|
'x-badges': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
@@ -1750,9 +1765,6 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1750
1765
|
}>>>;
|
|
1751
1766
|
}>, import("@scalar/typebox").TObject<{
|
|
1752
1767
|
'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"deprecated">, import("@scalar/typebox").TLiteral<"experimental">, import("@scalar/typebox").TLiteral<"stable">]>>;
|
|
1753
|
-
}>, import("@scalar/typebox").TObject<{
|
|
1754
|
-
'x-scalar-path': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1755
|
-
'x-scalar-method': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1756
1768
|
}>]>;
|
|
1757
1769
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1758
1770
|
__scalar_: import("@scalar/typebox").TString;
|
|
@@ -2698,22 +2710,17 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2698
2710
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
2699
2711
|
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2700
2712
|
'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2701
|
-
'x-scalar-client-config-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2702
|
-
'x-scalar-client-config-cookies': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
2703
|
-
name: import("@scalar/typebox").TString;
|
|
2704
|
-
value: import("@scalar/typebox").TString;
|
|
2705
|
-
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2706
|
-
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2707
|
-
}>>>;
|
|
2708
2713
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2709
2714
|
'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2710
2715
|
'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2711
2716
|
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
|
|
2712
2717
|
}>, import("@scalar/typebox").TObject<{
|
|
2713
|
-
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
2718
|
+
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2714
2719
|
name: import("@scalar/typebox").TString;
|
|
2715
2720
|
tags: import("@scalar/typebox").TArray<import("@scalar/typebox").TString>;
|
|
2716
|
-
}
|
|
2721
|
+
}>, import("@scalar/typebox").TObject<{
|
|
2722
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
2723
|
+
}>]>>>;
|
|
2717
2724
|
}>, import("@scalar/typebox").TObject<{
|
|
2718
2725
|
'x-scalar-environments': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
2719
2726
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -2728,9 +2735,24 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2728
2735
|
}>>>;
|
|
2729
2736
|
}>, import("@scalar/typebox").TObject<{
|
|
2730
2737
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
2731
|
-
|
|
2732
|
-
|
|
2738
|
+
selectedIndex: import("@scalar/typebox").TInteger;
|
|
2739
|
+
selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
|
|
2733
2740
|
}>>;
|
|
2741
|
+
}>, import("@scalar/typebox").TObject<{
|
|
2742
|
+
'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2743
|
+
}>, import("@scalar/typebox").TObject<{
|
|
2744
|
+
'x-scalar-set-operation-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2745
|
+
}>, import("@scalar/typebox").TObject<{
|
|
2746
|
+
'x-scalar-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2747
|
+
}>, import("@scalar/typebox").TObject<{
|
|
2748
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
2749
|
+
}>, import("@scalar/typebox").TObject<{
|
|
2750
|
+
'x-scalar-cookies': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
2751
|
+
name: import("@scalar/typebox").TString;
|
|
2752
|
+
value: import("@scalar/typebox").TString;
|
|
2753
|
+
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2754
|
+
isDisabled: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
2755
|
+
}>>>;
|
|
2734
2756
|
}>, import("@scalar/typebox").TObject<{
|
|
2735
2757
|
'x-scalar-original-document-hash': import("@scalar/typebox").TString;
|
|
2736
2758
|
}>]>]>;
|
|
@@ -2836,7 +2858,9 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2836
2858
|
title: import("@scalar/typebox").TString;
|
|
2837
2859
|
}>, import("@scalar/typebox").TObject<{
|
|
2838
2860
|
type: import("@scalar/typebox").TLiteral<"document">;
|
|
2861
|
+
name: import("@scalar/typebox").TString;
|
|
2839
2862
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
2863
|
+
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2840
2864
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2841
2865
|
id: import("@scalar/typebox").TString;
|
|
2842
2866
|
title: import("@scalar/typebox").TString;
|
|
@@ -2850,7 +2874,9 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
2850
2874
|
title: import("@scalar/typebox").TString;
|
|
2851
2875
|
}>, import("@scalar/typebox").TObject<{
|
|
2852
2876
|
type: import("@scalar/typebox").TLiteral<"document">;
|
|
2877
|
+
name: import("@scalar/typebox").TString;
|
|
2853
2878
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
2879
|
+
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
2854
2880
|
}>]>;
|
|
2855
2881
|
}, "OpenApiDocument">]>>;
|
|
2856
2882
|
originalDocuments: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAEnB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,0CAA0C,CAAA;AAIpF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAEnB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,0CAA0C,CAAA;AAIpF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAA;IACnB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACvC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;IAC5C,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAC1D,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAC9D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CAAA"}
|
|
@@ -23,7 +23,9 @@ export declare const TraversedDocumentSchemaDefinition: import("@scalar/typebox"
|
|
|
23
23
|
title: import("@scalar/typebox").TString;
|
|
24
24
|
}>, import("@scalar/typebox").TObject<{
|
|
25
25
|
type: TLiteral<"document">;
|
|
26
|
+
name: import("@scalar/typebox").TString;
|
|
26
27
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
28
|
+
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
27
29
|
}>]>;
|
|
28
30
|
/**
|
|
29
31
|
* An entry representing an OpenAPI in the navigation structure.
|
|
@@ -32,7 +34,11 @@ export declare const TraversedDocumentSchemaDefinition: import("@scalar/typebox"
|
|
|
32
34
|
*/
|
|
33
35
|
export type TraversedDocument = BaseSchema & {
|
|
34
36
|
type: 'document';
|
|
37
|
+
/** Document name */
|
|
38
|
+
name: string;
|
|
39
|
+
/** Child entries under the document */
|
|
35
40
|
children?: TraversedEntry[];
|
|
41
|
+
icon?: string;
|
|
36
42
|
};
|
|
37
43
|
export declare const TraversedDescriptionSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
38
44
|
id: import("@scalar/typebox").TString;
|
|
@@ -216,7 +222,9 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
216
222
|
title: import("@scalar/typebox").TString;
|
|
217
223
|
}>, import("@scalar/typebox").TObject<{
|
|
218
224
|
type: TLiteral<"document">;
|
|
225
|
+
name: import("@scalar/typebox").TString;
|
|
219
226
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
227
|
+
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
220
228
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
221
229
|
id: import("@scalar/typebox").TString;
|
|
222
230
|
title: import("@scalar/typebox").TString;
|
|
@@ -254,7 +262,7 @@ type OperationProps = {
|
|
|
254
262
|
path: string;
|
|
255
263
|
method: string;
|
|
256
264
|
type: 'operation';
|
|
257
|
-
parentTag
|
|
265
|
+
parentTag?: ParentTag;
|
|
258
266
|
};
|
|
259
267
|
type WebhookProps = {
|
|
260
268
|
parentId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,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eAAe,GACf,kBAAkB,GAClB,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,UAAU,GACV,YAAY,CAAA;AAEhB,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,CAAA"}
|
|
@@ -10,7 +10,9 @@ const TraversedDocumentSchemaDefinition = compose(
|
|
|
10
10
|
NavigationBaseSchemaDefinition,
|
|
11
11
|
Type.Object({
|
|
12
12
|
type: Type.Literal("document"),
|
|
13
|
-
|
|
13
|
+
name: Type.String(),
|
|
14
|
+
children: Type.Optional(Type.Array(TraversedEntryObjectRef)),
|
|
15
|
+
icon: Type.Optional(Type.String())
|
|
14
16
|
})
|
|
15
17
|
);
|
|
16
18
|
const TraversedDescriptionSchemaDefinition = compose(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/schemas/navigation.ts"],
|
|
4
|
-
"sourcesContent": ["import { HTTP_METHODS, type HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport type { InfoObject } from '@/schemas/v3.1/strict/info'\nimport type { OperationObject } from '@/schemas/v3.1/strict/operation'\nimport { TraversedEntryObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\nimport type { SchemaObject } from '@/schemas/v3.1/strict/schema'\nimport type { TagObject } from '@/schemas/v3.1/strict/tag'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\ntype BaseSchema = {\n /**\n * The unique identifier for the entry\n *\n * Must be unique across the entire navigation structure.\n */\n id: string\n /** The user readable title of the entry */\n title: string\n}\n\nexport const TraversedDocumentSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('document'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\n/**\n * An entry representing an OpenAPI in the navigation structure.\n *\n * Used in the client to represent the root document and its operations or tags.\n */\nexport type TraversedDocument = BaseSchema & {\n type: 'document'\n children?: TraversedEntry[]\n}\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\n/**\n * An entry representing a markdown description in the navigation structure.\n */\nexport type TraversedDescription = BaseSchema & {\n type: 'text'\n children?: TraversedEntry[]\n}\n\nexport const TraversedExampleSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('example'),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing an operation example in the navigation structure.\n */\nexport type TraversedExample = BaseSchema & {\n type: 'example'\n name: string\n}\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * An entry representing an operation in the navigation structure.\n */\nexport type TraversedOperation = BaseSchema & {\n type: 'operation'\n ref: string\n method: HttpMethod\n path: string\n isDeprecated?: boolean\n children?: TraversedEntry[]\n}\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing a model in the navigation structure.\n */\nexport type TraversedSchema = BaseSchema & {\n type: 'model'\n ref: string\n name: string\n}\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\n/**\n * An entry representing a webhook in the navigation structure.\n */\nexport type TraversedWebhook = BaseSchema & {\n type: 'webhook'\n ref: string\n method: HttpMethod\n name: string\n isDeprecated?: boolean\n}\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\n/**\n * An entry representing a tag in the navigation structure.\n *\n * Used to group operations or webhooks under a common heading.\n */\nexport type TraversedTag = BaseSchema & {\n type: 'tag'\n name: string\n description?: string\n children?: TraversedEntry[]\n isGroup: boolean\n isWebhooks?: boolean\n xKeys?: Record<string, unknown>\n}\n\nexport const TraversedModelsSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('models'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * Top level models navigation entry.\n */\nexport type TraversedModels = BaseSchema & {\n type: 'models'\n name: string\n children?: TraversedEntry[]\n}\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedTagSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n TraversedExampleSchemaDefinition,\n TraversedDocumentSchemaDefinition,\n TraversedModelsSchemaDefinition,\n])\n\nexport type TraversedEntry =\n | TraversedDescription\n | TraversedOperation\n | TraversedSchema\n | TraversedTag\n | TraversedWebhook\n | TraversedExample\n | TraversedDocument\n | TraversedModels\n\nexport type DocumentIdProps = {\n name: string\n info: InfoObject\n type: 'document'\n}\n\ntype DescriptionIdProps = {\n info: InfoObject\n type: 'text'\n slug?: string\n depth?: number\n value: string\n parentId: string\n}\n\nexport type ParentTag = {\n tag: TagObject\n id: string\n}\n\ntype TagProps = {\n parentId: string\n tag: TagObject\n type: 'tag'\n}\n\ntype OperationProps = {\n parentId: string\n operation: OperationObject\n path: string\n method: string\n type: 'operation'\n parentTag
|
|
5
|
-
"mappings": "AAAA,SAAS,oBAAqC;AAC9C,SAAwB,YAAY;AAEpC,SAAS,eAAe;AAGxB,SAAS,+BAA+B;AAIjC,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,IAAI,KAAK,OAAO;AAAA,EAChB,OAAO,KAAK,OAAO;AACrB,CAAC;AAaM,MAAM,oCAAoC;AAAA,EAC/C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,UAAU;AAAA,IAC7B,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,
|
|
4
|
+
"sourcesContent": ["import { HTTP_METHODS, type HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport type { InfoObject } from '@/schemas/v3.1/strict/info'\nimport type { OperationObject } from '@/schemas/v3.1/strict/operation'\nimport { TraversedEntryObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\nimport type { SchemaObject } from '@/schemas/v3.1/strict/schema'\nimport type { TagObject } from '@/schemas/v3.1/strict/tag'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\ntype BaseSchema = {\n /**\n * The unique identifier for the entry\n *\n * Must be unique across the entire navigation structure.\n */\n id: string\n /** The user readable title of the entry */\n title: string\n}\n\nexport const TraversedDocumentSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('document'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n icon: Type.Optional(Type.String()),\n }),\n)\n\n/**\n * An entry representing an OpenAPI in the navigation structure.\n *\n * Used in the client to represent the root document and its operations or tags.\n */\nexport type TraversedDocument = BaseSchema & {\n type: 'document'\n /** Document name */\n name: string\n /** Child entries under the document */\n children?: TraversedEntry[]\n icon?: string\n}\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\n/**\n * An entry representing a markdown description in the navigation structure.\n */\nexport type TraversedDescription = BaseSchema & {\n type: 'text'\n children?: TraversedEntry[]\n}\n\nexport const TraversedExampleSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('example'),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing an operation example in the navigation structure.\n */\nexport type TraversedExample = BaseSchema & {\n type: 'example'\n name: string\n}\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * An entry representing an operation in the navigation structure.\n */\nexport type TraversedOperation = BaseSchema & {\n type: 'operation'\n ref: string\n method: HttpMethod\n path: string\n isDeprecated?: boolean\n children?: TraversedEntry[]\n}\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing a model in the navigation structure.\n */\nexport type TraversedSchema = BaseSchema & {\n type: 'model'\n ref: string\n name: string\n}\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\n/**\n * An entry representing a webhook in the navigation structure.\n */\nexport type TraversedWebhook = BaseSchema & {\n type: 'webhook'\n ref: string\n method: HttpMethod\n name: string\n isDeprecated?: boolean\n}\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\n/**\n * An entry representing a tag in the navigation structure.\n *\n * Used to group operations or webhooks under a common heading.\n */\nexport type TraversedTag = BaseSchema & {\n type: 'tag'\n name: string\n description?: string\n children?: TraversedEntry[]\n isGroup: boolean\n isWebhooks?: boolean\n xKeys?: Record<string, unknown>\n}\n\nexport const TraversedModelsSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('models'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * Top level models navigation entry.\n */\nexport type TraversedModels = BaseSchema & {\n type: 'models'\n name: string\n children?: TraversedEntry[]\n}\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedTagSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n TraversedExampleSchemaDefinition,\n TraversedDocumentSchemaDefinition,\n TraversedModelsSchemaDefinition,\n])\n\nexport type TraversedEntry =\n | TraversedDescription\n | TraversedOperation\n | TraversedSchema\n | TraversedTag\n | TraversedWebhook\n | TraversedExample\n | TraversedDocument\n | TraversedModels\n\nexport type DocumentIdProps = {\n name: string\n info: InfoObject\n type: 'document'\n}\n\ntype DescriptionIdProps = {\n info: InfoObject\n type: 'text'\n slug?: string\n depth?: number\n value: string\n parentId: string\n}\n\nexport type ParentTag = {\n tag: TagObject\n id: string\n}\n\ntype TagProps = {\n parentId: string\n tag: TagObject\n type: 'tag'\n}\n\ntype OperationProps = {\n parentId: string\n operation: OperationObject\n path: string\n method: string\n type: 'operation'\n parentTag?: ParentTag\n}\n\ntype WebhookProps = {\n parentId: string\n webhook?: OperationObject\n name: string\n method?: string\n type: 'webhook'\n parentTag?: ParentTag\n}\n\ntype ModelProps = {\n parentId: string\n schema?: SchemaObject\n name?: string\n type: 'model'\n parentTag?: ParentTag\n}\n\ntype ExampleProps = {\n parentId: string\n name: string\n type: 'example'\n}\n\nexport type IdGeneratorProps =\n | DocumentIdProps\n | DescriptionIdProps\n | TagProps\n | OperationProps\n | WebhookProps\n | ModelProps\n | ExampleProps\n\nexport type IdGenerator = (props: IdGeneratorProps) => string\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,oBAAqC;AAC9C,SAAwB,YAAY;AAEpC,SAAS,eAAe;AAGxB,SAAS,+BAA+B;AAIjC,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,IAAI,KAAK,OAAO;AAAA,EAChB,OAAO,KAAK,OAAO;AACrB,CAAC;AAaM,MAAM,oCAAoC;AAAA,EAC/C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,UAAU;AAAA,IAC7B,MAAM,KAAK,OAAO;AAAA,IAClB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,IAC3D,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACnC,CAAC;AACH;AAgBO,MAAM,uCAAuC;AAAA,EAClD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,MAAM;AAAA,IACzB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAUO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,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A,IACtB,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IACxC,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC;AAAA,EACjE,CAAC;AACH;AAiBO,MAAM,kCAAkC;AAAA,EAC7C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,QAAQ;AAAA,IAC3B,MAAM,KAAK,OAAO;AAAA,IAClB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAUO,MAAM,iCAAiC,KAAK,MAAM;AAAA,EACvD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -122,6 +122,8 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
122
122
|
'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
123
123
|
}>, import("@scalar/typebox").TObject<{
|
|
124
124
|
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
125
|
+
}>, import("@scalar/typebox").TObject<{
|
|
126
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TString>>;
|
|
125
127
|
}>]>;
|
|
126
128
|
CallbackObject: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
127
129
|
$ref: import("@scalar/typebox").TString;
|
|
@@ -282,8 +284,8 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
282
284
|
}>]>]>>>;
|
|
283
285
|
}>, import("@scalar/typebox").TObject<{
|
|
284
286
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
285
|
-
|
|
286
|
-
|
|
287
|
+
selectedIndex: import("@scalar/typebox").TInteger;
|
|
288
|
+
selectedSchemes: TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
|
|
287
289
|
}>>;
|
|
288
290
|
}>, import("@scalar/typebox").TObject<{
|
|
289
291
|
'x-badges': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TObject<{
|
|
@@ -313,9 +315,6 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
313
315
|
}>>>;
|
|
314
316
|
}>, import("@scalar/typebox").TObject<{
|
|
315
317
|
'x-scalar-stability': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[TLiteral<"deprecated">, TLiteral<"experimental">, TLiteral<"stable">]>>;
|
|
316
|
-
}>, import("@scalar/typebox").TObject<{
|
|
317
|
-
'x-scalar-path': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
318
|
-
'x-scalar-method': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
319
318
|
}>]>;
|
|
320
319
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
321
320
|
__scalar_: import("@scalar/typebox").TString;
|
|
@@ -1261,22 +1260,17 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1261
1260
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
1262
1261
|
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1263
1262
|
'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1264
|
-
'x-scalar-client-config-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1265
|
-
'x-scalar-client-config-cookies': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
1266
|
-
name: import("@scalar/typebox").TString;
|
|
1267
|
-
value: import("@scalar/typebox").TString;
|
|
1268
|
-
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1269
|
-
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1270
|
-
}>>>;
|
|
1271
1263
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1272
1264
|
'x-scalar-original-source-url': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1273
1265
|
'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1274
1266
|
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"TraversedDocumentObject">>;
|
|
1275
1267
|
}>, import("@scalar/typebox").TObject<{
|
|
1276
|
-
'x-tagGroups': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TObject<{
|
|
1268
|
+
'x-tagGroups': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1277
1269
|
name: import("@scalar/typebox").TString;
|
|
1278
1270
|
tags: TArray<import("@scalar/typebox").TString>;
|
|
1279
|
-
}
|
|
1271
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1272
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TString>>;
|
|
1273
|
+
}>]>>>;
|
|
1280
1274
|
}>, import("@scalar/typebox").TObject<{
|
|
1281
1275
|
'x-scalar-environments': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
1282
1276
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1291,9 +1285,24 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1291
1285
|
}>>>;
|
|
1292
1286
|
}>, import("@scalar/typebox").TObject<{
|
|
1293
1287
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
1294
|
-
|
|
1295
|
-
|
|
1288
|
+
selectedIndex: import("@scalar/typebox").TInteger;
|
|
1289
|
+
selectedSchemes: TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
|
|
1296
1290
|
}>>;
|
|
1291
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1292
|
+
'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1293
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1294
|
+
'x-scalar-set-operation-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1295
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1296
|
+
'x-scalar-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1297
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1298
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TString>>;
|
|
1299
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1300
|
+
'x-scalar-cookies': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TObject<{
|
|
1301
|
+
name: import("@scalar/typebox").TString;
|
|
1302
|
+
value: import("@scalar/typebox").TString;
|
|
1303
|
+
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1304
|
+
isDisabled: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1305
|
+
}>>>;
|
|
1297
1306
|
}>, import("@scalar/typebox").TObject<{
|
|
1298
1307
|
'x-scalar-original-document-hash': import("@scalar/typebox").TString;
|
|
1299
1308
|
}>]>]>;
|
|
@@ -1399,7 +1408,9 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1399
1408
|
title: import("@scalar/typebox").TString;
|
|
1400
1409
|
}>, import("@scalar/typebox").TObject<{
|
|
1401
1410
|
type: TLiteral<"document">;
|
|
1411
|
+
name: import("@scalar/typebox").TString;
|
|
1402
1412
|
children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1413
|
+
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1403
1414
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1404
1415
|
id: import("@scalar/typebox").TString;
|
|
1405
1416
|
title: import("@scalar/typebox").TString;
|
|
@@ -1413,7 +1424,9 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1413
1424
|
title: import("@scalar/typebox").TString;
|
|
1414
1425
|
}>, import("@scalar/typebox").TObject<{
|
|
1415
1426
|
type: TLiteral<"document">;
|
|
1427
|
+
name: import("@scalar/typebox").TString;
|
|
1416
1428
|
children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1429
|
+
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1417
1430
|
}>]>;
|
|
1418
1431
|
}, "ServerObject">>>;
|
|
1419
1432
|
baseServerUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,EAAE,KAAK,UAAU,EAAuC,MAAM,cAAc,CAAA;AACnF,OAAO,EAAE,KAAK,QAAQ,EAAmC,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAE,KAAK,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