@scalar/workspace-store 0.19.0 → 0.20.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/events/definitions/auth.d.ts +20 -2
  3. package/dist/events/definitions/auth.d.ts.map +1 -1
  4. package/dist/events/definitions/document.d.ts +5 -1
  5. package/dist/events/definitions/document.d.ts.map +1 -1
  6. package/dist/events/definitions/index.d.ts +1 -2
  7. package/dist/events/definitions/index.d.ts.map +1 -1
  8. package/dist/events/definitions/server.d.ts +20 -28
  9. package/dist/events/definitions/server.d.ts.map +1 -1
  10. package/dist/events/index.d.ts +2 -2
  11. package/dist/events/index.d.ts.map +1 -1
  12. package/dist/events/index.js.map +2 -2
  13. package/dist/mutators/auth.d.ts +10 -73
  14. package/dist/mutators/auth.d.ts.map +1 -1
  15. package/dist/mutators/auth.js +24 -91
  16. package/dist/mutators/auth.js.map +2 -2
  17. package/dist/mutators/document.d.ts +6 -0
  18. package/dist/mutators/document.d.ts.map +1 -0
  19. package/dist/mutators/document.js +10 -0
  20. package/dist/mutators/document.js.map +7 -0
  21. package/dist/mutators/index.d.ts +10 -7
  22. package/dist/mutators/index.d.ts.map +1 -1
  23. package/dist/mutators/index.js +36 -1
  24. package/dist/mutators/index.js.map +3 -3
  25. package/dist/mutators/server.d.ts +43 -8
  26. package/dist/mutators/server.d.ts.map +1 -1
  27. package/dist/mutators/server.js +112 -20
  28. package/dist/mutators/server.js.map +2 -2
  29. package/dist/navigation/helpers/traverse-document.d.ts +1 -0
  30. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  31. package/dist/navigation/helpers/traverse-document.js +2 -1
  32. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  33. package/dist/plugins/client/persistence.d.ts +2 -1
  34. package/dist/plugins/client/persistence.d.ts.map +1 -1
  35. package/dist/plugins/client/persistence.js +11 -9
  36. package/dist/plugins/client/persistence.js.map +2 -2
  37. package/dist/schemas/extensions/document/x-scalar-document-security.d.ts +13 -0
  38. package/dist/schemas/extensions/document/x-scalar-document-security.d.ts.map +1 -0
  39. package/dist/schemas/extensions/document/x-scalar-document-security.js +8 -0
  40. package/dist/schemas/extensions/document/x-scalar-document-security.js.map +7 -0
  41. package/dist/schemas/extensions/security/x-scalar-selected-security.d.ts +7 -7
  42. package/dist/schemas/extensions/security/x-scalar-selected-security.d.ts.map +1 -1
  43. package/dist/schemas/extensions/security/x-scalar-selected-security.js +2 -2
  44. package/dist/schemas/extensions/security/x-scalar-selected-security.js.map +2 -2
  45. package/dist/schemas/extensions/server/x-scalar-selected-server.d.ts +8 -0
  46. package/dist/schemas/extensions/server/x-scalar-selected-server.d.ts.map +1 -0
  47. package/dist/schemas/extensions/server/x-scalar-selected-server.js +8 -0
  48. package/dist/schemas/extensions/server/x-scalar-selected-server.js.map +7 -0
  49. package/dist/schemas/inmemory-workspace.d.ts +20 -8
  50. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  51. package/dist/schemas/navigation.d.ts +5 -0
  52. package/dist/schemas/navigation.d.ts.map +1 -1
  53. package/dist/schemas/navigation.js +1 -0
  54. package/dist/schemas/navigation.js.map +2 -2
  55. package/dist/schemas/reference-config/index.d.ts +10 -4
  56. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  57. package/dist/schemas/reference-config/settings.d.ts +10 -4
  58. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  59. package/dist/schemas/v3.1/strict/openapi-document.d.ts +343 -137
  60. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  61. package/dist/schemas/v3.1/strict/openapi-document.js +8 -0
  62. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  63. package/dist/schemas/v3.1/strict/operation.d.ts +2 -2
  64. package/dist/schemas/workspace-specification/config.d.ts +10 -4
  65. package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
  66. package/dist/schemas/workspace-specification/index.d.ts +10 -4
  67. package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
  68. package/dist/schemas/workspace.d.ts +70 -28
  69. package/dist/schemas/workspace.d.ts.map +1 -1
  70. package/package.json +5 -5
  71. package/dist/helpers/debounce.d.ts +0 -28
  72. package/dist/helpers/debounce.d.ts.map +0 -1
  73. package/dist/helpers/debounce.js +0 -31
  74. package/dist/helpers/debounce.js.map +0 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/navigation/helpers/traverse-document.ts"],
4
- "sourcesContent": ["import { getNavigationOptions } from '@/navigation/get-navigation-options'\nimport type { TagsMap } from '@/navigation/types'\nimport type { TraversedDocument, TraversedEntry } from '@/schemas/navigation'\nimport type { OpenApiDocument } from '@/schemas/v3.1/strict/openapi-document'\nimport type { DocumentConfiguration } from '@/schemas/workspace-specification/config'\n\nimport { traverseDescription } from './traverse-description'\nimport { traversePaths } from './traverse-paths'\nimport { traverseSchemas } from './traverse-schemas'\nimport { traverseTags } from './traverse-tags'\nimport { traverseWebhooks } from './traverse-webhooks'\n\n/**\n * Traverses an OpenAPI Document to generate navigation structure and metadata.\n *\n * This function processes the OpenAPI document to create:\n * - A hierarchical navigation structure for the sidebar\n * - A mapping of IDs to titles for mobile header navigation\n * - Tag-based organization of operations and webhooks\n * - Optional schema/model documentation\n */\nexport const traverseDocument = (documentName: string, document: OpenApiDocument, config?: DocumentConfiguration) => {\n const { hideModels, tagsSorter, operationsSorter, generateId } = getNavigationOptions(documentName, config)\n\n const documentId = generateId({\n type: 'document',\n info: document.info,\n name: documentName,\n })\n\n /** Map of tags and their entries */\n const tagsMap: TagsMap = new Map(\n document.tags?.map((tag) => [\n tag.name ?? 'Untitled Tag',\n { id: generateId({ type: 'tag', tag, parentId: documentId }), parentId: documentId, tag, entries: [] },\n ]) ?? [],\n )\n\n /** Generate entries for the document info description field */\n const entries: TraversedEntry[] = traverseDescription({\n generateId,\n parentId: documentId,\n info: document.info,\n })\n\n /** Traverse all the document path */\n traversePaths({ document, tagsMap, generateId, documentId })\n\n const untaggedWebhooksParentId = generateId({\n type: 'webhook',\n name: '',\n parentId: documentId,\n })\n\n const untaggedWebhooks = traverseWebhooks({\n document,\n generateId,\n tagsMap,\n untaggedWebhooksParentId,\n documentId,\n })\n\n const tagsEntries = traverseTags({\n document,\n tagsMap,\n documentId,\n options: { tagsSorter, operationsSorter, generateId },\n })\n\n // Add tagged operations, webhooks and tagGroups\n entries.push(...tagsEntries)\n\n // Add untagged webhooks\n if (untaggedWebhooks.length) {\n entries.push({\n type: 'tag',\n id: untaggedWebhooksParentId,\n title: 'Webhooks',\n name: 'Webhooks',\n children: untaggedWebhooks,\n isGroup: false,\n isWebhooks: true,\n })\n }\n\n // Add models if they are not hidden\n if (!hideModels && document.components?.schemas) {\n const untaggedModels = traverseSchemas({\n documentId,\n document,\n generateId,\n tagsMap,\n })\n\n if (untaggedModels.length) {\n entries.push({\n type: 'models',\n id: generateId({\n type: 'model',\n parentId: documentId,\n }),\n title: 'Models',\n name: 'Models',\n children: untaggedModels,\n })\n }\n }\n\n return {\n id: documentId,\n type: 'document',\n title: documentName,\n children: entries,\n } satisfies TraversedDocument\n}\n"],
5
- "mappings": "AAAA,SAAS,4BAA4B;AAMrC,SAAS,2BAA2B;AACpC,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AAW1B,MAAM,mBAAmB,CAAC,cAAsB,UAA2B,WAAmC;AACnH,QAAM,EAAE,YAAY,YAAY,kBAAkB,WAAW,IAAI,qBAAqB,cAAc,MAAM;AAE1G,QAAM,aAAa,WAAW;AAAA,IAC5B,MAAM;AAAA,IACN,MAAM,SAAS;AAAA,IACf,MAAM;AAAA,EACR,CAAC;AAGD,QAAM,UAAmB,IAAI;AAAA,IAC3B,SAAS,MAAM,IAAI,CAAC,QAAQ;AAAA,MAC1B,IAAI,QAAQ;AAAA,MACZ,EAAE,IAAI,WAAW,EAAE,MAAM,OAAO,KAAK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;AAAA,EACZ;AACF;",
4
+ "sourcesContent": ["import { getNavigationOptions } from '@/navigation/get-navigation-options'\nimport type { TagsMap } from '@/navigation/types'\nimport type { TraversedDocument, TraversedEntry } from '@/schemas/navigation'\nimport type { OpenApiDocument } from '@/schemas/v3.1/strict/openapi-document'\nimport type { DocumentConfiguration } from '@/schemas/workspace-specification/config'\n\nimport { traverseDescription } from './traverse-description'\nimport { traversePaths } from './traverse-paths'\nimport { traverseSchemas } from './traverse-schemas'\nimport { traverseTags } from './traverse-tags'\nimport { traverseWebhooks } from './traverse-webhooks'\n\n/**\n * Traverses an OpenAPI Document to generate navigation structure and metadata.\n *\n * This function processes the OpenAPI document to create:\n * - A hierarchical navigation structure for the sidebar\n * - A mapping of IDs to titles for mobile header navigation\n * - Tag-based organization of operations and webhooks\n * - Optional schema/model documentation\n */\nexport const traverseDocument = (documentName: string, document: OpenApiDocument, config?: DocumentConfiguration) => {\n const { hideModels, tagsSorter, operationsSorter, generateId } = getNavigationOptions(documentName, config)\n\n const documentId = generateId({\n type: 'document',\n info: document.info,\n name: documentName,\n })\n\n /** Map of tags and their entries */\n const tagsMap: TagsMap = new Map(\n document.tags?.map((tag) => [\n tag.name ?? 'Untitled Tag',\n { id: generateId({ type: 'tag', tag, parentId: documentId }), parentId: documentId, tag, entries: [] },\n ]) ?? [],\n )\n\n /** Generate entries for the document info description field */\n const entries: TraversedEntry[] = traverseDescription({\n generateId,\n parentId: documentId,\n info: document.info,\n })\n\n /** Traverse all the document path */\n traversePaths({ document, tagsMap, generateId, documentId })\n\n const untaggedWebhooksParentId = generateId({\n type: 'webhook',\n name: '',\n parentId: documentId,\n })\n\n const untaggedWebhooks = traverseWebhooks({\n document,\n generateId,\n tagsMap,\n untaggedWebhooksParentId,\n documentId,\n })\n\n const tagsEntries = traverseTags({\n document,\n tagsMap,\n documentId,\n options: { tagsSorter, operationsSorter, generateId },\n })\n\n // Add tagged operations, webhooks and tagGroups\n entries.push(...tagsEntries)\n\n // Add untagged webhooks\n if (untaggedWebhooks.length) {\n entries.push({\n type: 'tag',\n id: untaggedWebhooksParentId,\n title: 'Webhooks',\n name: 'Webhooks',\n children: untaggedWebhooks,\n isGroup: false,\n isWebhooks: true,\n })\n }\n\n // Add models if they are not hidden\n if (!hideModels && document.components?.schemas) {\n const untaggedModels = traverseSchemas({\n documentId,\n document,\n generateId,\n tagsMap,\n })\n\n if (untaggedModels.length) {\n entries.push({\n type: 'models',\n id: generateId({\n type: 'model',\n parentId: documentId,\n }),\n title: 'Models',\n name: 'Models',\n children: untaggedModels,\n })\n }\n }\n\n return {\n id: documentId,\n type: 'document',\n title: document.info.title,\n name: documentName,\n children: entries,\n } satisfies TraversedDocument\n}\n"],
5
+ "mappings": "AAAA,SAAS,4BAA4B;AAMrC,SAAS,2BAA2B;AACpC,SAAS,qBAAqB;AAC9B,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AAW1B,MAAM,mBAAmB,CAAC,cAAsB,UAA2B,WAAmC;AACnH,QAAM,EAAE,YAAY,YAAY,kBAAkB,WAAW,IAAI,qBAAqB,cAAc,MAAM;AAE1G,QAAM,aAAa,WAAW;AAAA,IAC5B,MAAM;AAAA,IACN,MAAM,SAAS;AAAA,IACf,MAAM;AAAA,EACR,CAAC;AAGD,QAAM,UAAmB,IAAI;AAAA,IAC3B,SAAS,MAAM,IAAI,CAAC,QAAQ;AAAA,MAC1B,IAAI,QAAQ;AAAA,MACZ,EAAE,IAAI,WAAW,EAAE,MAAM,OAAO,KAAK,UAAU,WAAW,CAAC,GAAG,UAAU,YAAY,KAAK,SAAS,CAAC,EAAE;AAAA,IACvG,CAAC,KAAK,CAAC;AAAA,EACT;AAGA,QAAM,UAA4B,oBAAoB;AAAA,IACpD;AAAA,IACA,UAAU;AAAA,IACV,MAAM,SAAS;AAAA,EACjB,CAAC;AAGD,gBAAc,EAAE,UAAU,SAAS,YAAY,WAAW,CAAC;AAE3D,QAAM,2BAA2B,WAAW;AAAA,IAC1C,MAAM;AAAA,IACN,MAAM;AAAA,IACN,UAAU;AAAA,EACZ,CAAC;AAED,QAAM,mBAAmB,iBAAiB;AAAA,IACxC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,cAAc,aAAa;AAAA,IAC/B;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS,EAAE,YAAY,kBAAkB,WAAW;AAAA,EACtD,CAAC;AAGD,UAAQ,KAAK,GAAG,WAAW;AAG3B,MAAI,iBAAiB,QAAQ;AAC3B,YAAQ,KAAK;AAAA,MACX,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,MACV,SAAS;AAAA,MACT,YAAY;AAAA,IACd,CAAC;AAAA,EACH;AAGA,MAAI,CAAC,cAAc,SAAS,YAAY,SAAS;AAC/C,UAAM,iBAAiB,gBAAgB;AAAA,MACrC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAED,QAAI,eAAe,QAAQ;AACzB,cAAQ,KAAK;AAAA,QACX,MAAM;AAAA,QACN,IAAI,WAAW;AAAA,UACb,MAAM;AAAA,UACN,UAAU;AAAA,QACZ,CAAC;AAAA,QACD,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,EACF;AAEA,SAAO;AAAA,IACL,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,OAAO,SAAS,KAAK;AAAA,IACrB,MAAM;AAAA,IACN,UAAU;AAAA,EACZ;AACF;",
6
6
  "names": []
7
7
  }
@@ -6,8 +6,9 @@ import type { WorkspacePlugin } from '../../workspace-plugin.js';
6
6
  *
7
7
  * This avoids excessive writes to IndexedDB or other persistence layer when changes occur rapidly.
8
8
  */
9
- export declare const persistencePlugin: ({ workspaceId, debounceDelay, }: {
9
+ export declare const persistencePlugin: ({ workspaceId, debounceDelay, maxWait, }: {
10
10
  workspaceId: string;
11
11
  debounceDelay?: number;
12
+ maxWait?: number;
12
13
  }) => Promise<WorkspacePlugin>;
13
14
  //# sourceMappingURL=persistence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"persistence.d.ts","sourceRoot":"","sources":["../../../src/plugins/client/persistence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAU,iCAGrC;IACD,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,KAAG,OAAO,CAAC,eAAe,CA0D1B,CAAA"}
1
+ {"version":3,"file":"persistence.d.ts","sourceRoot":"","sources":["../../../src/plugins/client/persistence.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAU,0CAKrC;IACD,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,KAAG,OAAO,CAAC,eAAe,CA0D1B,CAAA"}
@@ -1,11 +1,13 @@
1
- import { debounce } from "../../helpers/debounce.js";
1
+ import { debounce } from "@scalar/helpers/general/debounce";
2
2
  import { createWorkspaceStorePersistence } from "../../persistence/index.js";
3
3
  const persistencePlugin = async ({
4
4
  workspaceId,
5
- debounceDelay
5
+ debounceDelay = 500,
6
+ /** Maximum time in milliseconds to wait before forcing execution, even with continuous calls. */
7
+ maxWait = 1e4
6
8
  }) => {
7
9
  const persistence = await createWorkspaceStorePersistence();
8
- const { execute } = debounce({ delay: debounceDelay ?? 500 });
10
+ const { execute } = debounce({ delay: debounceDelay, maxWait });
9
11
  return {
10
12
  hooks: {
11
13
  /**
@@ -14,35 +16,35 @@ const persistencePlugin = async ({
14
16
  */
15
17
  onWorkspaceStateChanges(event) {
16
18
  if (event.type === "meta") {
17
- return execute(["meta", workspaceId], () => persistence.meta.setItem(workspaceId, event.value));
19
+ return execute(`meta-${workspaceId}`, () => persistence.meta.setItem(workspaceId, event.value));
18
20
  }
19
21
  if (event.type === "documentConfigs") {
20
22
  return execute(
21
- ["documentConfigs", workspaceId, event.documentName],
23
+ `documentConfigs-${workspaceId}-${event.documentName}`,
22
24
  () => persistence.documentConfigs.setItem(workspaceId, event.documentName, event.value)
23
25
  );
24
26
  }
25
27
  if (event.type === "documents") {
26
28
  return execute(
27
- ["documents", workspaceId, event.documentName],
29
+ `documents-${workspaceId}-${event.documentName}`,
28
30
  () => persistence.documents.setItem(workspaceId, event.documentName, event.value)
29
31
  );
30
32
  }
31
33
  if (event.type === "intermediateDocuments") {
32
34
  return execute(
33
- ["intermediateDocuments", workspaceId, event.documentName],
35
+ `intermediateDocuments-${workspaceId}-${event.documentName}`,
34
36
  () => persistence.intermediateDocuments.setItem(workspaceId, event.documentName, event.value)
35
37
  );
36
38
  }
37
39
  if (event.type === "originalDocuments") {
38
40
  return execute(
39
- ["originalDocuments", workspaceId, event.documentName],
41
+ `originalDocuments-${workspaceId}-${event.documentName}`,
40
42
  () => persistence.originalDocuments.setItem(workspaceId, event.documentName, event.value)
41
43
  );
42
44
  }
43
45
  if (event.type === "overrides") {
44
46
  return execute(
45
- ["overrides", workspaceId, event.documentName],
47
+ `overrides-${workspaceId}-${event.documentName}`,
46
48
  () => persistence.overrides.setItem(workspaceId, event.documentName, event.value)
47
49
  );
48
50
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/plugins/client/persistence.ts"],
4
- "sourcesContent": ["import { debounce } from '@/helpers/debounce'\nimport { createWorkspaceStorePersistence } from '@/persistence'\nimport type { WorkspacePlugin } from '@/workspace-plugin'\n\n/**\n * Plugin to persist workspace state changes with debounced writes.\n * Each type of change (meta, documentConfigs, documents, etc.) is debounced by key (type + workspaceId + optional documentName).\n * The debounce delay can be customized, defaults to 500ms.\n *\n * This avoids excessive writes to IndexedDB or other persistence layer when changes occur rapidly.\n */\nexport const persistencePlugin = async ({\n workspaceId,\n debounceDelay,\n}: {\n workspaceId: string\n debounceDelay?: number\n}): Promise<WorkspacePlugin> => {\n // Create the persistence instance (e.g., IndexedDB, localForage, etc.)\n const persistence = await createWorkspaceStorePersistence()\n // Debounced execute function for batching similar state changes\n const { execute } = debounce({ delay: debounceDelay ?? 500 })\n\n return {\n hooks: {\n /**\n * Handles all workspace state change events.\n * Each write is debounced by a composite key to prevent frequent writes for the same entity.\n */\n onWorkspaceStateChanges(event) {\n // If the event is for workspace meta data, debounce by workspaceId\n if (event.type === 'meta') {\n return execute(['meta', workspaceId], () => persistence.meta.setItem(workspaceId, event.value))\n }\n\n // Debounce per document config and workspace\n if (event.type === 'documentConfigs') {\n return execute(['documentConfigs', workspaceId, event.documentName], () =>\n persistence.documentConfigs.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // Debounce per document content and workspace\n if (event.type === 'documents') {\n return execute(['documents', workspaceId, event.documentName], () =>\n persistence.documents.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // Debounce per intermediate document and workspace\n if (event.type === 'intermediateDocuments') {\n return execute(['intermediateDocuments', workspaceId, event.documentName], () =>\n persistence.intermediateDocuments.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // Debounce per original document and workspace\n if (event.type === 'originalDocuments') {\n return execute(['originalDocuments', workspaceId, event.documentName], () =>\n persistence.originalDocuments.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // Debounce per document override and workspace\n if (event.type === 'overrides') {\n return execute(['overrides', workspaceId, event.documentName], () =>\n persistence.overrides.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // No action for other event types\n return\n },\n },\n }\n}\n"],
5
- "mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,uCAAuC;AAUzC,MAAM,oBAAoB,OAAO;AAAA,EACtC;AAAA,EACA;AACF,MAGgC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AA,QACF;AAGA;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import { debounce } from '@scalar/helpers/general/debounce'\n\nimport { createWorkspaceStorePersistence } from '@/persistence'\nimport type { WorkspacePlugin } from '@/workspace-plugin'\n\n/**\n * Plugin to persist workspace state changes with debounced writes.\n * Each type of change (meta, documentConfigs, documents, etc.) is debounced by key (type + workspaceId + optional documentName).\n * The debounce delay can be customized, defaults to 500ms.\n *\n * This avoids excessive writes to IndexedDB or other persistence layer when changes occur rapidly.\n */\nexport const persistencePlugin = async ({\n workspaceId,\n debounceDelay = 500,\n /** Maximum time in milliseconds to wait before forcing execution, even with continuous calls. */\n maxWait = 10000,\n}: {\n workspaceId: string\n debounceDelay?: number\n maxWait?: number\n}): Promise<WorkspacePlugin> => {\n // Create the persistence instance (e.g., IndexedDB, localForage, etc.)\n const persistence = await createWorkspaceStorePersistence()\n // Debounced execute function for batching similar state changes\n const { execute } = debounce({ delay: debounceDelay, maxWait })\n\n return {\n hooks: {\n /**\n * Handles all workspace state change events.\n * Each write is debounced by a composite key to prevent frequent writes for the same entity.\n */\n onWorkspaceStateChanges(event) {\n // If the event is for workspace meta data, debounce by workspaceId\n if (event.type === 'meta') {\n return execute(`meta-${workspaceId}`, () => persistence.meta.setItem(workspaceId, event.value))\n }\n\n // Debounce per document config and workspace\n if (event.type === 'documentConfigs') {\n return execute(`documentConfigs-${workspaceId}-${event.documentName}`, () =>\n persistence.documentConfigs.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // Debounce per document content and workspace\n if (event.type === 'documents') {\n return execute(`documents-${workspaceId}-${event.documentName}`, () =>\n persistence.documents.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // Debounce per intermediate document and workspace\n if (event.type === 'intermediateDocuments') {\n return execute(`intermediateDocuments-${workspaceId}-${event.documentName}`, () =>\n persistence.intermediateDocuments.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // Debounce per original document and workspace\n if (event.type === 'originalDocuments') {\n return execute(`originalDocuments-${workspaceId}-${event.documentName}`, () =>\n persistence.originalDocuments.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // Debounce per document override and workspace\n if (event.type === 'overrides') {\n return execute(`overrides-${workspaceId}-${event.documentName}`, () =>\n persistence.overrides.setItem(workspaceId, event.documentName, event.value),\n )\n }\n\n // No action for other event types\n return\n },\n },\n }\n}\n"],
5
+ "mappings": "AAAA,SAAS,gBAAgB;AAEzB,SAAS,uCAAuC;AAUzC,MAAM,oBAAoB,OAAO;AAAA,EACtC;AAAA,EACA,gBAAgB;AAAA;AAAA,EAEhB,UAAU;AACZ,MAIgC;AAE9B,QAAM,cAAc,MAAM,gCAAgC;AAE1D,QAAM,EAAE,QAAQ,IAAI,SAAS,EAAE,OAAO,eAAe,QAAQ,CAAC;AAE9D,SAAO;AAAA,IACL,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,MAKL,wBAAwB,OAAO;AAE7B,YAAI,MAAM,SAAS,QAAQ;AACzB,iBAAO,QAAQ,QAAQ,WAAW,IAAI,MAAM,YAAY,KAAK,QAAQ,aAAa,MAAM,KAAK,CAAC;AAAA,QAChG;AAGA,YAAI,MAAM,SAAS,mBAAmB;AACpC,iBAAO;AAAA,YAAQ,mBAAmB,WAAW,IAAI,MAAM,YAAY;AAAA,YAAI,MACrE,YAAY,gBAAgB,QAAQ,aAAa,MAAM,cAAc,MAAM,KAAK;AAAA,UAClF;AAAA,QACF;AAGA,YAAI,MAAM,SAAS,aAAa;AAC9B,iBAAO;AAAA,YAAQ,aAAa,WAAW,IAAI,MAAM,YAAY;AAAA,YAAI,MAC/D,YAAY,UAAU,QAAQ,aAAa,MAAM,cAAc,MAAM,KAAK;AAAA,UAC5E;AAAA,QACF;AAGA,YAAI,MAAM,SAAS,yBAAyB;AAC1C,iBAAO;AAAA,YAAQ,yBAAyB,WAAW,IAAI,MAAM,YAAY;AAAA,YAAI,MAC3E,YAAY,sBAAsB,QAAQ,aAAa,MAAM,cAAc,MAAM,KAAK;AAAA,UACxF;AAAA,QACF;AAGA,YAAI,MAAM,SAAS,qBAAqB;AACtC,iBAAO;AAAA,YAAQ,qBAAqB,WAAW,IAAI,MAAM,YAAY;AAAA,YAAI,MACvE,YAAY,kBAAkB,QAAQ,aAAa,MAAM,cAAc,MAAM,KAAK;AAAA,UACpF;AAAA,QACF;AAGA,YAAI,MAAM,SAAS,aAAa;AAC9B,iBAAO;AAAA,YAAQ,aAAa,WAAW,IAAI,MAAM,YAAY;AAAA,YAAI,MAC/D,YAAY,UAAU,QAAQ,aAAa,MAAM,cAAc,MAAM,KAAK;AAAA,UAC5E;AAAA,QACF;AAGA;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,13 @@
1
+ export declare const XScalarDocumentSecuritySchema: import("@scalar/typebox").TObject<{
2
+ 'x-scalar-document-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
3
+ }>;
4
+ export type XScalarDocumentSecurity = {
5
+ /**
6
+ * XScalarDocumentSecurity Extension
7
+ *
8
+ * If enabled we use/set the selected security schemes on the document level
9
+ * If disabled we use/set the selected security schemes on the operation level
10
+ */
11
+ 'x-scalar-document-security'?: boolean;
12
+ };
13
+ //# sourceMappingURL=x-scalar-document-security.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-scalar-document-security.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/document/x-scalar-document-security.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B;;EAExC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;OAKG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAA;CACvC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@scalar/typebox";
2
+ const XScalarDocumentSecuritySchema = Type.Object({
3
+ "x-scalar-document-security": Type.Optional(Type.Boolean())
4
+ });
5
+ export {
6
+ XScalarDocumentSecuritySchema
7
+ };
8
+ //# sourceMappingURL=x-scalar-document-security.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/document/x-scalar-document-security.ts"],
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XScalarDocumentSecuritySchema = Type.Object({\n 'x-scalar-document-security': Type.Optional(Type.Boolean()),\n})\n\nexport type XScalarDocumentSecurity = {\n /**\n * XScalarDocumentSecurity Extension\n *\n * If enabled we use/set the selected security schemes on the document level\n * If disabled we use/set the selected security schemes on the operation level\n */\n 'x-scalar-document-security'?: boolean\n}\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,gCAAgC,KAAK,OAAO;AAAA,EACvD,8BAA8B,KAAK,SAAS,KAAK,QAAQ,CAAC;AAC5D,CAAC;",
6
+ "names": []
7
+ }
@@ -1,17 +1,17 @@
1
1
  import type { SecurityRequirementObject } from '../../../schemas/v3.1/strict/security-requirement.js';
2
- /**
3
- * Selected security schemes and the currently selected tab
4
- */
5
2
  export declare const XScalarSelectedSecuritySchema: import("@scalar/typebox").TObject<{
6
3
  'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
7
- 'x-selected-index': import("@scalar/typebox").TInteger;
8
- 'x-schemes': import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
4
+ selectedIndex: import("@scalar/typebox").TInteger;
5
+ selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
9
6
  }>>;
10
7
  }>;
11
8
  export type XScalarSelectedSecurity = {
9
+ /**
10
+ * Selected security schemes and the currently selected tab
11
+ */
12
12
  'x-scalar-selected-security'?: {
13
- 'x-selected-index': number;
14
- 'x-schemes': SecurityRequirementObject[];
13
+ selectedIndex: number;
14
+ selectedSchemes: SecurityRequirementObject[];
15
15
  };
16
16
  };
17
17
  //# sourceMappingURL=x-scalar-selected-security.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"x-scalar-selected-security.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-selected-security.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAA;AAE3F;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;EAOxC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,4BAA4B,CAAC,EAAE;QAC7B,kBAAkB,EAAE,MAAM,CAAA;QAC1B,WAAW,EAAE,yBAAyB,EAAE,CAAA;KACzC,CAAA;CACF,CAAA"}
1
+ {"version":3,"file":"x-scalar-selected-security.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/security/x-scalar-selected-security.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAA;AAE3F,eAAO,MAAM,6BAA6B;;;;;EAOxC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,4BAA4B,CAAC,EAAE;QAC7B,aAAa,EAAE,MAAM,CAAA;QACrB,eAAe,EAAE,yBAAyB,EAAE,CAAA;KAC7C,CAAA;CACF,CAAA"}
@@ -3,8 +3,8 @@ import { SecurityRequirementObjectRef } from "../../../schemas/v3.1/strict/ref-d
3
3
  const XScalarSelectedSecuritySchema = Type.Object({
4
4
  "x-scalar-selected-security": Type.Optional(
5
5
  Type.Object({
6
- "x-selected-index": Type.Integer(),
7
- "x-schemes": Type.Array(SecurityRequirementObjectRef)
6
+ selectedIndex: Type.Integer(),
7
+ selectedSchemes: Type.Array(SecurityRequirementObjectRef)
8
8
  })
9
9
  )
10
10
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/extensions/security/x-scalar-selected-security.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { SecurityRequirementObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\nimport type { SecurityRequirementObject } from '@/schemas/v3.1/strict/security-requirement'\n\n/**\n * Selected security schemes and the currently selected tab\n */\nexport const XScalarSelectedSecuritySchema = Type.Object({\n 'x-scalar-selected-security': Type.Optional(\n Type.Object({\n 'x-selected-index': Type.Integer(),\n 'x-schemes': Type.Array(SecurityRequirementObjectRef),\n }),\n ),\n})\n\nexport type XScalarSelectedSecurity = {\n 'x-scalar-selected-security'?: {\n 'x-selected-index': number\n 'x-schemes': SecurityRequirementObject[]\n }\n}\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,oCAAoC;AAMtC,MAAM,gCAAgC,KAAK,OAAO;AAAA,EACvD,8BAA8B,KAAK;AAAA,IACjC,KAAK,OAAO;AAAA,MACV,oBAAoB,KAAK,QAAQ;AAAA,MACjC,aAAa,KAAK,MAAM,4BAA4B;AAAA,IACtD,CAAC;AAAA,EACH;AACF,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { SecurityRequirementObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\nimport type { SecurityRequirementObject } from '@/schemas/v3.1/strict/security-requirement'\n\nexport const XScalarSelectedSecuritySchema = Type.Object({\n 'x-scalar-selected-security': Type.Optional(\n Type.Object({\n selectedIndex: Type.Integer(),\n selectedSchemes: Type.Array(SecurityRequirementObjectRef),\n }),\n ),\n})\n\nexport type XScalarSelectedSecurity = {\n /**\n * Selected security schemes and the currently selected tab\n */\n 'x-scalar-selected-security'?: {\n selectedIndex: number\n selectedSchemes: SecurityRequirementObject[]\n }\n}\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,oCAAoC;AAGtC,MAAM,gCAAgC,KAAK,OAAO;AAAA,EACvD,8BAA8B,KAAK;AAAA,IACjC,KAAK,OAAO;AAAA,MACV,eAAe,KAAK,QAAQ;AAAA,MAC5B,iBAAiB,KAAK,MAAM,4BAA4B;AAAA,IAC1D,CAAC;AAAA,EACH;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,8 @@
1
+ export declare const XScalarSelectedServerSchema: import("@scalar/typebox").TObject<{
2
+ 'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3
+ }>;
4
+ export type XScalarSelectedServer = {
5
+ /** The URL of the currently selected server */
6
+ 'x-scalar-selected-server'?: string;
7
+ };
8
+ //# sourceMappingURL=x-scalar-selected-server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-scalar-selected-server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/server/x-scalar-selected-server.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;EAEtC,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,+CAA+C;IAC/C,0BAA0B,CAAC,EAAE,MAAM,CAAA;CACpC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@scalar/typebox";
2
+ const XScalarSelectedServerSchema = Type.Object({
3
+ "x-scalar-selected-server": Type.Optional(Type.String())
4
+ });
5
+ export {
6
+ XScalarSelectedServerSchema
7
+ };
8
+ //# sourceMappingURL=x-scalar-selected-server.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/server/x-scalar-selected-server.ts"],
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XScalarSelectedServerSchema = Type.Object({\n 'x-scalar-selected-server': Type.Optional(Type.String()),\n})\n\nexport type XScalarSelectedServer = {\n /** The URL of the currently selected server */\n 'x-scalar-selected-server'?: string\n}\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,8BAA8B,KAAK,OAAO;AAAA,EACrD,4BAA4B,KAAK,SAAS,KAAK,OAAO,CAAC;AACzD,CAAC;",
6
+ "names": []
7
+ }
@@ -280,8 +280,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
280
280
  }>]>]>>>;
281
281
  }>, import("@scalar/typebox").TObject<{
282
282
  'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
283
- 'x-selected-index': import("@scalar/typebox").TInteger;
284
- 'x-schemes': import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
283
+ selectedIndex: import("@scalar/typebox").TInteger;
284
+ selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
285
285
  }>>;
286
286
  }>, import("@scalar/typebox").TObject<{
287
287
  'x-badges': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
@@ -1289,9 +1289,13 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
1289
1289
  }>>>;
1290
1290
  }>, import("@scalar/typebox").TObject<{
1291
1291
  'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
1292
- 'x-selected-index': import("@scalar/typebox").TInteger;
1293
- 'x-schemes': import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
1292
+ selectedIndex: import("@scalar/typebox").TInteger;
1293
+ selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
1294
1294
  }>>;
1295
+ }>, import("@scalar/typebox").TObject<{
1296
+ 'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1297
+ }>, import("@scalar/typebox").TObject<{
1298
+ 'x-scalar-document-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1295
1299
  }>, import("@scalar/typebox").TObject<{
1296
1300
  'x-scalar-original-document-hash': import("@scalar/typebox").TString;
1297
1301
  }>]>]>;
@@ -1397,6 +1401,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
1397
1401
  title: import("@scalar/typebox").TString;
1398
1402
  }>, import("@scalar/typebox").TObject<{
1399
1403
  type: import("@scalar/typebox").TLiteral<"document">;
1404
+ name: import("@scalar/typebox").TString;
1400
1405
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1401
1406
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1402
1407
  id: import("@scalar/typebox").TString;
@@ -1411,6 +1416,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
1411
1416
  title: import("@scalar/typebox").TString;
1412
1417
  }>, import("@scalar/typebox").TObject<{
1413
1418
  type: import("@scalar/typebox").TLiteral<"document">;
1419
+ name: import("@scalar/typebox").TString;
1414
1420
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1415
1421
  }>]>;
1416
1422
  }, "ServerObject">>>;
@@ -1719,8 +1725,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
1719
1725
  }>]>]>>>;
1720
1726
  }>, import("@scalar/typebox").TObject<{
1721
1727
  'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
1722
- 'x-selected-index': import("@scalar/typebox").TInteger;
1723
- 'x-schemes': import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
1728
+ selectedIndex: import("@scalar/typebox").TInteger;
1729
+ selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
1724
1730
  }>>;
1725
1731
  }>, import("@scalar/typebox").TObject<{
1726
1732
  'x-badges': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
@@ -2728,9 +2734,13 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
2728
2734
  }>>>;
2729
2735
  }>, import("@scalar/typebox").TObject<{
2730
2736
  'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
2731
- 'x-selected-index': import("@scalar/typebox").TInteger;
2732
- 'x-schemes': import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
2737
+ selectedIndex: import("@scalar/typebox").TInteger;
2738
+ selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
2733
2739
  }>>;
2740
+ }>, import("@scalar/typebox").TObject<{
2741
+ 'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2742
+ }>, import("@scalar/typebox").TObject<{
2743
+ 'x-scalar-document-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
2734
2744
  }>, import("@scalar/typebox").TObject<{
2735
2745
  'x-scalar-original-document-hash': import("@scalar/typebox").TString;
2736
2746
  }>]>]>;
@@ -2836,6 +2846,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
2836
2846
  title: import("@scalar/typebox").TString;
2837
2847
  }>, import("@scalar/typebox").TObject<{
2838
2848
  type: import("@scalar/typebox").TLiteral<"document">;
2849
+ name: import("@scalar/typebox").TString;
2839
2850
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
2840
2851
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
2841
2852
  id: import("@scalar/typebox").TString;
@@ -2850,6 +2861,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
2850
2861
  title: import("@scalar/typebox").TString;
2851
2862
  }>, import("@scalar/typebox").TObject<{
2852
2863
  type: import("@scalar/typebox").TLiteral<"document">;
2864
+ name: import("@scalar/typebox").TString;
2853
2865
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
2854
2866
  }>]>;
2855
2867
  }, "OpenApiDocument">]>>;
@@ -1 +1 @@
1
- {"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":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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,6 +23,7 @@ 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">>>;
27
28
  }>]>;
28
29
  /**
@@ -32,6 +33,9 @@ export declare const TraversedDocumentSchemaDefinition: import("@scalar/typebox"
32
33
  */
33
34
  export type TraversedDocument = BaseSchema & {
34
35
  type: 'document';
36
+ /** Document name */
37
+ name: string;
38
+ /** Child entries under the document */
35
39
  children?: TraversedEntry[];
36
40
  };
37
41
  export declare const TraversedDescriptionSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
@@ -216,6 +220,7 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
216
220
  title: import("@scalar/typebox").TString;
217
221
  }>, import("@scalar/typebox").TObject<{
218
222
  type: TLiteral<"document">;
223
+ name: import("@scalar/typebox").TString;
219
224
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
220
225
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
221
226
  id: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACjF,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAGrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,eAAO,MAAM,8BAA8B;;;EAGzC,CAAA;AAEF,KAAK,UAAU,GAAG;IAChB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAA;IACV,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,iCAAiC;;;;;;IAM7C,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG;IAC3C,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,CAAC,EAAE,cAAc,EAAE,C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M,CAAA;IACd,IAAI,EAAE,WAAW,CAAA;IACjB,SAAS,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,SAAS,CAAA;IACf,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB,CAAA;AAED,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,gBAAgB,GACxB,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,6 +10,7 @@ const TraversedDocumentSchemaDefinition = compose(
10
10
  NavigationBaseSchemaDefinition,
11
11
  Type.Object({
12
12
  type: Type.Literal("document"),
13
+ name: Type.String(),
13
14
  children: Type.Optional(Type.Array(TraversedEntryObjectRef))
14
15
  })
15
16
  );
@@ -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: 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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M,CAAC,CAAC;AAAA,IACrE,MAAM,KAAK,OAAO;AAAA,IAClB,cAAc,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EAC5C,CAAC;AACH;AAaO,MAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,KAAK;AAAA,IACxB,MAAM,KAAK,OAAO;AAAA,IAClB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,IACxC,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,IAC3D,SAAS,KAAK,QAAQ;AAAA,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;",
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 }),\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}\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,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AAA,EAC1C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,KAAK;AAAA,IACxB,MAAM,KAAK,OAAO;AAAA,IAClB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,IACxC,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,IAC3D,SAAS,KAAK,QAAQ;AAAA,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
  }
@@ -282,8 +282,8 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
282
282
  }>]>]>>>;
283
283
  }>, import("@scalar/typebox").TObject<{
284
284
  'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
285
- 'x-selected-index': import("@scalar/typebox").TInteger;
286
- 'x-schemes': TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
285
+ selectedIndex: import("@scalar/typebox").TInteger;
286
+ selectedSchemes: TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
287
287
  }>>;
288
288
  }>, import("@scalar/typebox").TObject<{
289
289
  'x-badges': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TObject<{
@@ -1291,9 +1291,13 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
1291
1291
  }>>>;
1292
1292
  }>, import("@scalar/typebox").TObject<{
1293
1293
  'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
1294
- 'x-selected-index': import("@scalar/typebox").TInteger;
1295
- 'x-schemes': TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
1294
+ selectedIndex: import("@scalar/typebox").TInteger;
1295
+ selectedSchemes: TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
1296
1296
  }>>;
1297
+ }>, import("@scalar/typebox").TObject<{
1298
+ 'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1299
+ }>, import("@scalar/typebox").TObject<{
1300
+ 'x-scalar-document-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1297
1301
  }>, import("@scalar/typebox").TObject<{
1298
1302
  'x-scalar-original-document-hash': import("@scalar/typebox").TString;
1299
1303
  }>]>]>;
@@ -1399,6 +1403,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
1399
1403
  title: import("@scalar/typebox").TString;
1400
1404
  }>, import("@scalar/typebox").TObject<{
1401
1405
  type: TLiteral<"document">;
1406
+ name: import("@scalar/typebox").TString;
1402
1407
  children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1403
1408
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1404
1409
  id: import("@scalar/typebox").TString;
@@ -1413,6 +1418,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
1413
1418
  title: import("@scalar/typebox").TString;
1414
1419
  }>, import("@scalar/typebox").TObject<{
1415
1420
  type: TLiteral<"document">;
1421
+ name: import("@scalar/typebox").TString;
1416
1422
  children: import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1417
1423
  }>]>;
1418
1424
  }, "ServerObject">>>;
@@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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBjC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,WAAW,CAAC,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,EAAE,CAAA;CACnD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,eAAe,CAgChE,CAAA"}
@@ -268,8 +268,8 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
268
268
  }>]>]>>>;
269
269
  }>, import("@scalar/typebox").TObject<{
270
270
  'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
271
- 'x-selected-index': import("@scalar/typebox").TInteger;
272
- 'x-schemes': import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
271
+ selectedIndex: import("@scalar/typebox").TInteger;
272
+ selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
273
273
  }>>;
274
274
  }>, import("@scalar/typebox").TObject<{
275
275
  'x-badges': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
@@ -1277,9 +1277,13 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1277
1277
  }>>>;
1278
1278
  }>, import("@scalar/typebox").TObject<{
1279
1279
  'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
1280
- 'x-selected-index': import("@scalar/typebox").TInteger;
1281
- 'x-schemes': import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
1280
+ selectedIndex: import("@scalar/typebox").TInteger;
1281
+ selectedSchemes: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>;
1282
1282
  }>>;
1283
+ }>, import("@scalar/typebox").TObject<{
1284
+ 'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1285
+ }>, import("@scalar/typebox").TObject<{
1286
+ 'x-scalar-document-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
1283
1287
  }>, import("@scalar/typebox").TObject<{
1284
1288
  'x-scalar-original-document-hash': import("@scalar/typebox").TString;
1285
1289
  }>]>]>;
@@ -1385,6 +1389,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1385
1389
  title: import("@scalar/typebox").TString;
1386
1390
  }>, import("@scalar/typebox").TObject<{
1387
1391
  type: import("@scalar/typebox").TLiteral<"document">;
1392
+ name: import("@scalar/typebox").TString;
1388
1393
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1389
1394
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1390
1395
  id: import("@scalar/typebox").TString;
@@ -1399,6 +1404,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
1399
1404
  title: import("@scalar/typebox").TString;
1400
1405
  }>, import("@scalar/typebox").TObject<{
1401
1406
  type: import("@scalar/typebox").TLiteral<"document">;
1407
+ name: import("@scalar/typebox").TString;
1402
1408
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
1403
1409
  }>]>;
1404
1410
  }, "ServerObject">>>;