@scalar/workspace-store 0.72.0 → 0.73.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 (40) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/client.d.ts +6 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +73 -28
  5. package/dist/entities/auth/schema.d.ts +40 -0
  6. package/dist/entities/auth/schema.d.ts.map +1 -1
  7. package/dist/mutators/auth.d.ts.map +1 -1
  8. package/dist/navigation/helpers/traverse-plugin-document.d.ts +11 -0
  9. package/dist/navigation/helpers/traverse-plugin-document.d.ts.map +1 -0
  10. package/dist/navigation/helpers/traverse-plugin-document.js +24 -0
  11. package/dist/navigation/helpers/update-order-ids.d.ts.map +1 -1
  12. package/dist/navigation/helpers/update-order-ids.js +2 -1
  13. package/dist/navigation/index.d.ts +1 -0
  14. package/dist/navigation/index.d.ts.map +1 -1
  15. package/dist/navigation/index.js +1 -0
  16. package/dist/plugins/bundler/openapi-document.d.ts.map +1 -1
  17. package/dist/plugins/bundler/openapi-document.js +2 -4
  18. package/dist/schemas/navigation.d.ts +32 -1
  19. package/dist/schemas/navigation.d.ts.map +1 -1
  20. package/dist/schemas/navigation.js +7 -0
  21. package/dist/schemas/plugin-document.d.ts +67 -0
  22. package/dist/schemas/plugin-document.d.ts.map +1 -0
  23. package/dist/schemas/plugin-document.js +20 -0
  24. package/dist/schemas/reference-config/index.d.ts +8 -0
  25. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  26. package/dist/schemas/reference-config/settings.d.ts +8 -0
  27. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  28. package/dist/schemas/type-guards.d.ts +4 -2
  29. package/dist/schemas/type-guards.d.ts.map +1 -1
  30. package/dist/schemas/type-guards.js +7 -4
  31. package/dist/schemas/v3.1/strict/openapi-document.d.ts +280 -0
  32. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  33. package/dist/schemas/v3.2/strict/openapi-document.d.ts +280 -0
  34. package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
  35. package/dist/schemas/workspace.d.ts +2 -1
  36. package/dist/schemas/workspace.d.ts.map +1 -1
  37. package/dist/schemas.d.ts +1 -0
  38. package/dist/schemas.d.ts.map +1 -1
  39. package/dist/schemas.js +1 -0
  40. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @scalar/workspace-store
2
2
 
3
+ ## 0.73.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#10816](https://github.com/scalar/scalar/pull/10816): Add `documentTypes` to `createWorkspaceStore`, so the store can ingest document formats it does not support natively. A registered type claims a document before the OpenAPI and AsyncAPI pipelines run, and the store keeps it as an opaque plugin document with `plugin` navigation entries built by the type.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#10816](https://github.com/scalar/scalar/pull/10816): Keep plugin document classification consistent through replacement, hydration, and rebasing. Exclude plugin documents from Ask AI and reject unsupported request, authentication, and mock-server processing even when plugin data contains OpenAPI or AsyncAPI fields.
12
+ - [#10983](https://github.com/scalar/scalar/pull/10983): Preserve literal $ref values in AsyncAPI examples, schema values, and extensions during initial loading and lazy resolution without fetching them. Index authored document keys without following virtual proxy links. Keep wrapper resolution independent of key order and ignore reference siblings in AsyncAPI parameter schemas and wrapped OpenAPI 3.0 and draft-04/06 schemas, including identifiers and anchors in those ignored siblings. Traverse only schema and identity keywords supported by the wrapped format so unknown keyword values stay literal, including draft-04 `id` and draft-06/07 `$id` handling.
13
+ - [#10983](https://github.com/scalar/scalar/pull/10983): Resolve references inside AsyncAPI Multi Format Schema Objects and OpenAPI 3.2 media type `itemSchema` fields while preserving literal schema values. Keep `schemaFormat` and `schema` annotations in ordinary JSON Schema objects as literal data. Resolve native AsyncAPI schema `externalDocs` and tuple `additionalItems` references without processing ordinary JSON Schema annotations. Preserve schema contexts inside AsyncAPI protocol bindings. Resolve named AsyncAPI servers, variables, and reusable components even when their names match literal-data keywords. Ignore reference siblings in native AsyncAPI and draft-07 schemas.
14
+
3
15
  ## 0.72.0
4
16
 
5
17
  ### Minor Changes
package/dist/client.d.ts CHANGED
@@ -7,6 +7,7 @@ import type { OperationMeta } from './events/definitions/operation.js';
7
7
  import { type ExternalExampleResolver } from './helpers/external-examples.js';
8
8
  import type { NavigationOptions } from './navigation/get-navigation-options.js';
9
9
  import type { InMemoryWorkspace } from './schemas/inmemory-workspace.js';
10
+ import { type DocumentTypeDefinition } from './schemas/plugin-document.js';
10
11
  import type { RequestBodyObject } from './schemas/v3.2/strict/openapi-document.js';
11
12
  import { type OpenApiDocument } from './schemas/v3.2/strict/openapi-document.js';
12
13
  import type { DocumentMetaExtensions, Workspace, WorkspaceDocument, WorkspaceDocumentMeta, WorkspaceExtensions, WorkspaceMeta } from './schemas/workspace.js';
@@ -75,6 +76,11 @@ type WorkspaceProps = {
75
76
  plugins?: WorkspacePlugin[];
76
77
  /** A file loader plugin for resolving local file references (for non browser environments) */
77
78
  fileLoader?: LoaderPlugin;
79
+ /**
80
+ * Document formats the store does not support natively. Each one is checked, in order, before the
81
+ * built-in OpenAPI and AsyncAPI pipelines.
82
+ */
83
+ documentTypes?: readonly DocumentTypeDefinition[];
78
84
  /**
79
85
  * Whether writes to the workspace are observable. Defaults to `true`.
80
86
  *
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAU,MAAM,2BAA2B,CAAA;AAErE,OAAO,EAAE,KAAK,UAAU,EAAe,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAQ7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAI5C,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,iBAAiB,CAAA;AACjE,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,oBAAoB,CAAA;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,g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AC,MAAM,EAAE,OAAO,CAAC,CAAA;SAC1C,KACF,OAAO,CAAC,IAAI,CAAC,CAAA;KACnB,CACJ,CAAA;CACF,CAAA;AA0DD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,oBAAqB,cAAc,KAAG,cA62CtE,CAAA;AAGD,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA"}
package/dist/client.js CHANGED
@@ -32,10 +32,11 @@ import { createOverridesProxy } from './helpers/overrides-proxy.js';
32
32
  import { resolveSecurityRequirements, restoreSecurityRequirements } from './helpers/resolve-security-requirements.js';
33
33
  import { snapshotRequestBodies } from './helpers/snapshot-request-bodies.js';
34
34
  import { unpackProxyObject } from './helpers/unpack-proxy.js';
35
- import { createNavigation, traverseAsyncApiDocument } from './navigation/index.js';
35
+ import { createNavigation, traverseAsyncApiDocument, traversePluginDocument } from './navigation/index.js';
36
36
  import { externalValueResolver, loadingStatus, normalizeAuthSchemes, normalizeRefs, openApiDocument, refsEverywhere, removeExtraScalarKeys, resolveOpenApiDocument, restoreOriginalRefs, syncPathParameters, } from './plugins/bundler/index.js';
37
37
  import { codeSampleSources } from './plugins/bundler/code-sample-sources.js';
38
38
  import { extensions } from './schemas/extensions.js';
39
+ import { PLUGIN_DOCUMENT_TYPE_KEY, findDocumentType, } from './schemas/plugin-document.js';
39
40
  import { isAsyncApiDocument, isOpenApiDocument } from './schemas/type-guards.js';
40
41
  import { generateSchema } from './schemas/v3.2/openapi/index.js';
41
42
  import { recursiveRef } from './schemas/v3.2/openapi/reference.js';
@@ -157,6 +158,7 @@ const purgeInternalDocumentKeys = (input) => {
157
158
  'x-scalar-original-document-hash',
158
159
  'x-scalar-original-source-url',
159
160
  'x-scalar-registry-meta',
161
+ PLUGIN_DOCUMENT_TYPE_KEY,
160
162
  ];
161
163
  // Remove top-level properties that should only exist temporarily or for internal usage
162
164
  // These properties are used for internal purposes and are not needed in the final bundled document
@@ -490,6 +492,16 @@ export const createWorkspaceStore = (workspaceProps) => {
490
492
  activeDocument['x-scalar-is-dirty'] = false;
491
493
  return true;
492
494
  };
495
+ /** The placeholder shown for a document that could not be loaded. */
496
+ const createLoadFailedDocument = (name, meta) => ({
497
+ ...meta,
498
+ openapi: '3.1.0',
499
+ info: {
500
+ title: `Document '${name}' could not be loaded`,
501
+ version: 'unknown',
502
+ },
503
+ 'x-scalar-original-document-hash': 'not-a-hash',
504
+ });
493
505
  // Add a document to the store synchronously from an in-memory OpenAPI or AsyncAPI document
494
506
  async function addInMemoryDocument(input, navigationOptions) {
495
507
  const { name } = input;
@@ -499,6 +511,9 @@ export const createWorkspaceStore = (workspaceProps) => {
499
511
  // else reads it, so every step below — including the check for a server-generated navigation —
500
512
  // sees the document a non-compact server store would have sent.
501
513
  withMeasurementSync('expandChunkIndex', () => expandChunkIndex(clonedRawInputDocument));
514
+ // The marker belongs to the store, never the source. Remove it before capturing the saved
515
+ // baseline so an export before the first save cannot leak it or misclassify the document.
516
+ delete clonedRawInputDocument[PLUGIN_DOCUMENT_TYPE_KEY];
502
517
  withMeasurementSync('initialize', () => {
503
518
  if (input.initialize !== false) {
504
519
  // Store the original document in the originalDocuments map
@@ -530,6 +545,46 @@ export const createWorkspaceStore = (workspaceProps) => {
530
545
  if (workspaceProps?.fileLoader) {
531
546
  loaders.push(workspaceProps.fileLoader);
532
547
  }
548
+ // Registered document types come first, so a format they claim never reaches the OpenAPI
549
+ // upgrade and coercion below (which would turn it into a broken OpenAPI document).
550
+ const documentType = findDocumentType(workspaceProps?.documentTypes, clonedRawInputDocument);
551
+ if (documentType) {
552
+ // Third-party code runs here, so a failure ends up as the usual "could not be loaded" document
553
+ // instead of leaving the workspace without this document.
554
+ try {
555
+ const ingestedDocument = await withMeasurementAsync('ingest', async () => (await documentType.ingest?.(deepClone(clonedRawInputDocument), { documentName: name })) ??
556
+ clonedRawInputDocument);
557
+ const pluginDocument = createMagicProxy({
558
+ ...ingestedDocument,
559
+ info: isObject(ingestedDocument.info) ? ingestedDocument.info : {},
560
+ ...meta,
561
+ [PLUGIN_DOCUMENT_TYPE_KEY]: documentType.type,
562
+ 'x-scalar-original-document-hash': input.documentHash,
563
+ 'x-scalar-original-source-url': input.documentSource,
564
+ });
565
+ if (documentType.bundle && pluginDocument[extensions.document.navigation] === undefined) {
566
+ await withMeasurementAsync('bundle', async () => await bundle(getRaw(pluginDocument), {
567
+ treeShake: false,
568
+ plugins: loaders,
569
+ urlMap: true,
570
+ origin: input.documentSource,
571
+ }));
572
+ }
573
+ if (pluginDocument[extensions.document.navigation] === undefined) {
574
+ pluginDocument[extensions.document.navigation] = traversePluginDocument(name, pluginDocument, documentType, navigationOptions);
575
+ }
576
+ const pluginOverrides = unpackProxyObject(overrides[name]);
577
+ workspace.documents[name] = needsOverridesProxy(pluginOverrides)
578
+ ? createOverridesProxy(pluginDocument, { overrides: pluginOverrides })
579
+ : pluginDocument;
580
+ return true;
581
+ }
582
+ catch (error) {
583
+ console.error(`Failed to load document '${name}' with document type '${documentType.type}':`, error);
584
+ workspace.documents[name] = createLoadFailedDocument(name, meta);
585
+ return false;
586
+ }
587
+ }
533
588
  // AsyncAPI ingestion: skip the OpenAPI-specific upgrade and validation pipeline.
534
589
  // The OpenAPI `coerce` step would otherwise inject an empty `openapi: ''` field
535
590
  // and break the type discriminator. We still run the AsyncAPI-specific upgrader so
@@ -550,6 +605,7 @@ export const createWorkspaceStore = (workspaceProps) => {
550
605
  });
551
606
  if (asyncApiDocument[extensions.document.navigation] === undefined) {
552
607
  await withMeasurementAsync('bundle', async () => await bundle(getRaw(asyncApiDocument), {
608
+ traversal: 'document',
553
609
  treeShake: false,
554
610
  plugins: loaders,
555
611
  urlMap: true,
@@ -566,7 +622,7 @@ export const createWorkspaceStore = (workspaceProps) => {
566
622
  workspace.documents[name] = needsOverridesProxy(asyncApiOverrides)
567
623
  ? createOverridesProxy(asyncApiDocument, { overrides: asyncApiOverrides })
568
624
  : asyncApiDocument;
569
- return;
625
+ return true;
570
626
  }
571
627
  const inputDocument = withMeasurementSync('upgrade', () => upgrade(deepClone(clonedRawInputDocument), '3.1'));
572
628
  const strictDocument = createMagicProxy({
@@ -632,6 +688,7 @@ export const createWorkspaceStore = (workspaceProps) => {
632
688
  : magicDocument;
633
689
  const baselineDocument = workspace.documents[name];
634
690
  requestBodyBaselines[name] = withMeasurementSync('snapshotRequestBodies', () => snapshotRequestBodies(baselineDocument));
691
+ return true;
635
692
  }
636
693
  // Asynchronously adds a new document to the workspace by loading and validating the input.
637
694
  // If loading fails, a placeholder error document is added instead.
@@ -647,37 +704,20 @@ export const createWorkspaceStore = (workspaceProps) => {
647
704
  return await withMeasurementAsync('addDocument', async () => {
648
705
  if (!resolve.ok) {
649
706
  console.error(`Failed to fetch document '${name}': request was not successful`);
650
- workspace.documents[name] = {
651
- ...meta,
652
- openapi: '3.1.0',
653
- info: {
654
- title: `Document '${name}' could not be loaded`,
655
- version: 'unknown',
656
- },
657
- 'x-scalar-original-document-hash': 'not-a-hash',
658
- };
707
+ workspace.documents[name] = createLoadFailedDocument(name, meta);
659
708
  return false;
660
709
  }
661
710
  if (!isObject(resolve.data)) {
662
711
  console.error(`Failed to load document '${name}': response data is not a valid object`);
663
- workspace.documents[name] = {
664
- ...meta,
665
- openapi: '3.1.0',
666
- info: {
667
- title: `Document '${name}' could not be loaded`,
668
- version: 'unknown',
669
- },
670
- 'x-scalar-original-document-hash': 'not-a-hash',
671
- };
712
+ workspace.documents[name] = createLoadFailedDocument(name, meta);
672
713
  return false;
673
714
  }
674
- await addInMemoryDocument({
715
+ return await addInMemoryDocument({
675
716
  ...input,
676
717
  document: resolve.data,
677
718
  documentSource: getDocumentSource(input),
678
719
  documentHash: generateHash(resolve.raw),
679
720
  }, navigationOptions);
680
- return true;
681
721
  });
682
722
  }
683
723
  const getOriginalDocument = (documentName) => {
@@ -1180,7 +1220,9 @@ export const createWorkspaceStore = (workspaceProps) => {
1180
1220
  message: `No changes detected for document '${name}': document hash matches the active document`,
1181
1221
  };
1182
1222
  }
1183
- const newDocumentOrigin = resolve.data;
1223
+ // Source markers are not classification evidence, including when rebasing a saved baseline.
1224
+ const newDocumentOrigin = deepClone(resolve.data);
1225
+ delete newDocumentOrigin[PLUGIN_DOCUMENT_TYPE_KEY];
1184
1226
  // ---- Override the configurations and metadata
1185
1227
  overrides[name] = input.overrides ?? {};
1186
1228
  extraDocumentConfigurations[name] = { fetch: input.fetch };
@@ -1220,7 +1262,8 @@ export const createWorkspaceStore = (workspaceProps) => {
1220
1262
  // If the caller provided a fully resolved document, use it as-is.
1221
1263
  return applyChangesInput.resolvedDocument;
1222
1264
  };
1223
- const mergedDocument = getNewActiveDocument();
1265
+ const mergedDocument = deepClone(getNewActiveDocument());
1266
+ delete mergedDocument[PLUGIN_DOCUMENT_TYPE_KEY];
1224
1267
  // Detect whether the rebase folded in any local edits. When the
1225
1268
  // merged result matches the upstream snapshot the pull was
1226
1269
  // effectively a fast-forward (no unsaved local work to carry
@@ -1258,9 +1301,6 @@ export const createWorkspaceStore = (workspaceProps) => {
1258
1301
  const activeServers = activeDocumentRaw.servers;
1259
1302
  const mergedHasServers = Array.isArray(mergedServers) && mergedServers.length > 0;
1260
1303
  const activeHasServers = Array.isArray(activeServers) && activeServers.length > 0;
1261
- const preservedServers = !isAsyncApiDocument(mergedDocument) && !mergedHasServers && activeHasServers
1262
- ? deepClone(activeServers)
1263
- : undefined;
1264
1304
  // add the new active document to the workspace but don't re-initialize
1265
1305
  await addInMemoryDocument({
1266
1306
  ...input,
@@ -1283,11 +1323,16 @@ export const createWorkspaceStore = (workspaceProps) => {
1283
1323
  'x-scalar-selected-server': activeDocumentRaw['x-scalar-selected-server'],
1284
1324
  ...(environments !== undefined ? { 'x-scalar-environments': environments } : {}),
1285
1325
  ...(order !== undefined ? { 'x-scalar-order': order } : {}),
1286
- ...(preservedServers !== undefined ? { servers: preservedServers } : {}),
1287
1326
  // Flag local edits that need pushing - see note above.
1288
1327
  'x-scalar-is-dirty': hasLocalChangesAgainstUpstream,
1289
1328
  },
1290
1329
  });
1330
+ // Re-ingestion determines the resulting format. Raw input can carry OpenAPI-looking fields
1331
+ // while being claimed by a plugin, so only preserve HTTP servers after classification.
1332
+ const rebasedDocument = workspace.documents[name];
1333
+ if (isOpenApi && isOpenApiDocument(rebasedDocument) && !mergedHasServers && activeHasServers) {
1334
+ rebasedDocument.servers = deepClone(activeServers);
1335
+ }
1291
1336
  },
1292
1337
  };
1293
1338
  },
@@ -3046,6 +3046,14 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
3046
3046
  type: import("@scalar/typebox").TLiteral<"models">;
3047
3047
  name: import("@scalar/typebox").TString;
3048
3048
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
3049
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
3050
+ id: import("@scalar/typebox").TString;
3051
+ title: import("@scalar/typebox").TString;
3052
+ }>, import("@scalar/typebox").TObject<{
3053
+ type: import("@scalar/typebox").TLiteral<"plugin">;
3054
+ documentType: import("@scalar/typebox").TString;
3055
+ kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3056
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
3049
3057
  }>]>]>;
3050
3058
  TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
3051
3059
  id: import("@scalar/typebox").TString;
@@ -5326,6 +5334,14 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
5326
5334
  type: import("@scalar/typebox").TLiteral<"models">;
5327
5335
  name: import("@scalar/typebox").TString;
5328
5336
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
5337
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
5338
+ id: import("@scalar/typebox").TString;
5339
+ title: import("@scalar/typebox").TString;
5340
+ }>, import("@scalar/typebox").TObject<{
5341
+ type: import("@scalar/typebox").TLiteral<"plugin">;
5342
+ documentType: import("@scalar/typebox").TString;
5343
+ kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5344
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
5329
5345
  }>]>]>;
5330
5346
  TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
5331
5347
  id: import("@scalar/typebox").TString;
@@ -7270,6 +7286,14 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
7270
7286
  type: import("@scalar/typebox").TLiteral<"models">;
7271
7287
  name: import("@scalar/typebox").TString;
7272
7288
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
7289
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
7290
+ id: import("@scalar/typebox").TString;
7291
+ title: import("@scalar/typebox").TString;
7292
+ }>, import("@scalar/typebox").TObject<{
7293
+ type: import("@scalar/typebox").TLiteral<"plugin">;
7294
+ documentType: import("@scalar/typebox").TString;
7295
+ kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7296
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
7273
7297
  }>]>]>;
7274
7298
  TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
7275
7299
  id: import("@scalar/typebox").TString;
@@ -9552,6 +9576,14 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
9552
9576
  type: import("@scalar/typebox").TLiteral<"models">;
9553
9577
  name: import("@scalar/typebox").TString;
9554
9578
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
9579
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
9580
+ id: import("@scalar/typebox").TString;
9581
+ title: import("@scalar/typebox").TString;
9582
+ }>, import("@scalar/typebox").TObject<{
9583
+ type: import("@scalar/typebox").TLiteral<"plugin">;
9584
+ documentType: import("@scalar/typebox").TString;
9585
+ kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
9586
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
9555
9587
  }>]>]>;
9556
9588
  TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
9557
9589
  id: import("@scalar/typebox").TString;
@@ -11496,6 +11528,14 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
11496
11528
  type: import("@scalar/typebox").TLiteral<"models">;
11497
11529
  name: import("@scalar/typebox").TString;
11498
11530
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
11531
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
11532
+ id: import("@scalar/typebox").TString;
11533
+ title: import("@scalar/typebox").TString;
11534
+ }>, import("@scalar/typebox").TObject<{
11535
+ type: import("@scalar/typebox").TLiteral<"plugin">;
11536
+ documentType: import("@scalar/typebox").TString;
11537
+ kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
11538
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
11499
11539
  }>]>]>;
11500
11540
  TraversedDocumentObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
11501
11541
  id: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/entities/auth/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AA+BnD,QAAA,MAAM,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IAAI,YAClB,iBAAiB,GAAG,IAAI,6BACP,UAAU,CAAC,oBAAoB,CAAC,SAwB5D,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,UACxB,cAAc,GAAG,IAAI,YAClB,iBAAiB,GAAG,IAAI,aACvB,UAAU,CAAC,6BAA6B,CAAC,SAsFrD,CAAA;AAED,eAAO,MAAM,mBAAmB,yBAG7B;IACD,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAA;CAC7B;IAEG,6BAA6B,YAAY,UAAU,CAAC,uCAAuC,CAAC;IAE5F,4BAA4B,YAAY,UAAU,CAAC,sCAAsC,CAAC;IAE1F,oBAAoB,SACZ,UAAU,CAAC,6BAA6B,CAAC,sBAC5B,2BAA2B,CAAC,iBAAiB,CAAC,KAChE,oBAAoB,GAAG,SAAS;IAgCnC,2BAA2B,YAAY,UAAU,CAAC,qCAAqC,CAAC;IAExF,yBAAyB,YAAY,UAAU,CAAC,mCAAmC,CAAC;IAEpF,0BAA0B,YAAY,UAAU,CAAC,oCAAoC,CAAC;IAEtF,qBAAqB,YAAY,UAAU,CAAC,0BAA0B,CAAC;IAEvE,oBAAoB,YAAY,UAAU,CAAC,6BAA6B,CAAC;IAEzE,WAAW,YAAY,UAAU,CAAC,oBAAoB,CAAC;IACvD,WAAW,YAAY,UAAU,CAAC,oBAAoB,CAAC;IACvD,oBAAoB,YAAY,UAAU,CAAC,6BAA6B,CAAC;CAG5E,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { type NavigationOptions } from '../get-navigation-options.js';
2
+ import type { TraversedDocument } from '../../schemas/navigation.js';
3
+ import type { DocumentTypeDefinition, PluginDocument } from '../../schemas/plugin-document.js';
4
+ /**
5
+ * Build the navigation root for a document claimed by a registered document type.
6
+ *
7
+ * The root entry (id, title, icon) follows the same conventions as OpenAPI and AsyncAPI documents so the
8
+ * sidebar, document selector and deep links treat it the same way; the children come from the type.
9
+ */
10
+ export declare const traversePluginDocument: (documentName: string, document: PluginDocument, documentType: DocumentTypeDefinition, options?: NavigationOptions) => TraversedDocument;
11
+ //# sourceMappingURL=traverse-plugin-document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"traverse-plugin-document.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/traverse-plugin-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAwB,MAAM,qCAAqC,CAAA;AAClG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,iBACnB,MAAM,YACV,cAAc,gBACV,sBAAsB,YAC1B,iBAAiB,KAC1B,iBAkBF,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { getNavigationOptions } from '../get-navigation-options.js';
2
+ /**
3
+ * Build the navigation root for a document claimed by a registered document type.
4
+ *
5
+ * The root entry (id, title, icon) follows the same conventions as OpenAPI and AsyncAPI documents so the
6
+ * sidebar, document selector and deep links treat it the same way; the children come from the type.
7
+ */
8
+ export const traversePluginDocument = (documentName, document, documentType, options) => {
9
+ const { generateId } = getNavigationOptions(documentName, options);
10
+ const title = document.info.title?.trim() || 'Untitled Document';
11
+ const documentId = generateId({
12
+ type: 'document',
13
+ info: { title, version: document.info.version ?? '' },
14
+ name: documentName,
15
+ });
16
+ return {
17
+ id: documentId,
18
+ type: 'document',
19
+ title,
20
+ name: documentName,
21
+ children: documentType.traverse({ documentName, documentId, document }),
22
+ icon: document['x-scalar-icon'],
23
+ };
24
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"update-order-ids.d.ts","sourceRoot":"","sources":["../../../src/navigation/helpers/update-order-ids.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;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O,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAA;IAC1E,SAAS,EAAE,eAAe,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb,GACD;IACE,6CAA6C;IAC7C,OAAO,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE,CAAA;IACnC,GAAG,EAAE,SAAS,CAAA;CACf,CACJ,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,mCAAoC,mBAAmB,SAiEjF,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { canHaveOrder, getOpenapiObject } from './get-openapi-object.js';
2
2
  import { getParentEntry } from './get-parent-entry.js';
3
+ import { isPluginDocument } from '../../schemas/plugin-document.js';
3
4
  import { isOpenApiDocument } from '../../schemas/type-guards.js';
4
5
  /**
5
6
  * Updates the order ID of an entry (operation or tag) in the sidebar.
@@ -50,7 +51,7 @@ export const updateOrderIds = ({ store, generateId, ...rest }) => {
50
51
  return;
51
52
  }
52
53
  // Operation/webhook entries: generate a new operation ID with the updated path and method
53
- const parentTag = entry.parent.type === 'tag' && 'name' in parentOpenAPIObject
54
+ const parentTag = entry.parent.type === 'tag' && 'name' in parentOpenAPIObject && !isPluginDocument(parentOpenAPIObject)
54
55
  ? { tag: parentOpenAPIObject, id: entry.parent.id }
55
56
  : undefined;
56
57
  order[index] = generateId({
@@ -5,5 +5,6 @@ export { type TagEntriesMap, getTagEntries } from './helpers/get-tag-entries.js'
5
5
  export { traverseAsyncApiDocument } from './helpers/traverse-asyncapi-document.js';
6
6
  export { traverseDocument as createNavigation } from './helpers/traverse-document.js';
7
7
  export { getUniqueExampleName } from './helpers/traverse-examples.js';
8
+ export { traversePluginDocument } from './helpers/traverse-plugin-document.js';
8
9
  export type { TraverseSpecOptions as createNavigationOptions } from './types.js';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/navigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAE,KAAK,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,KAAK,aAAa,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,EAAE,gBAAgB,IAAI,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,YAAY,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/navigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAE,KAAK,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,KAAK,aAAa,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,EAAE,gBAAgB,IAAI,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAC3E,YAAY,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,SAAS,CAAA"}
@@ -5,3 +5,4 @@ export { getTagEntries } from './helpers/get-tag-entries.js';
5
5
  export { traverseAsyncApiDocument } from './helpers/traverse-asyncapi-document.js';
6
6
  export { traverseDocument as createNavigation } from './helpers/traverse-document.js';
7
7
  export { getUniqueExampleName } from './helpers/traverse-examples.js';
8
+ export { traversePluginDocument } from './helpers/traverse-plugin-document.js';
@@ -1 +1 @@
1
- {"version":3,"file":"openapi-document.d.ts","sourceRoot":"","sources":["../../../src/plugins/bundler/openapi-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAwB,MAAM,2BAA2B,CAAA;AAE7G,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,EAAE,gBAcpC,CAAA;AAED,8FAA8F;AAC9F,eAAO,MAAM,eAAe,QAAO,eAwClC,CAAA"}
1
+ {"version":3,"file":"openapi-document.d.ts","sourceRoot":"","sources":["../../../src/plugins/bundler/openapi-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAwB,MAAM,2BAA2B,CAAA;AAI7G,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,EAAE,gBASpC,CAAA;AAED,8FAA8F;AAC9F,eAAO,MAAM,eAAe,QAAO,eAwClC,CAAA"}
@@ -1,11 +1,9 @@
1
1
  import { isObject } from '@scalar/helpers/object/is-object';
2
2
  import { resolveReferencePath } from '@scalar/json-magic/bundle';
3
+ import { isOpenApiDocument } from '../../schemas/type-guards.js';
3
4
  /** Resolves an OpenAPI document's declared identity against its retrieval location. */
4
5
  export const resolveOpenApiDocument = (document, retrievalUri) => {
5
- if (!isObject(document) ||
6
- typeof document.openapi !== 'string' ||
7
- !/^3\.2\.\d+$/.test(document.openapi) ||
8
- typeof document.$self !== 'string') {
6
+ if (!isOpenApiDocument(document) || !/^3\.2\.\d+$/.test(document.openapi) || typeof document.$self !== 'string') {
9
7
  return undefined;
10
8
  }
11
9
  const self = resolveReferencePath(retrievalUri, document.$self);
@@ -250,6 +250,29 @@ export type TraversedModels = BaseSchema & {
250
250
  name: string;
251
251
  children?: TraversedEntry[];
252
252
  };
253
+ export declare const TraversedPluginEntrySchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
254
+ id: import("@scalar/typebox").TString;
255
+ title: import("@scalar/typebox").TString;
256
+ }>, import("@scalar/typebox").TObject<{
257
+ type: import("@scalar/typebox").TLiteral<"plugin">;
258
+ documentType: import("@scalar/typebox").TString;
259
+ kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
260
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
261
+ }>]>;
262
+ /**
263
+ * An entry contributed by a registered document type (see `DocumentTypeDefinition`).
264
+ *
265
+ * The store and sidebar only rely on the base fields; `kind` lets the document type tell its own
266
+ * entries apart (e.g. a workflow and a step) when it renders them.
267
+ */
268
+ export type TraversedPluginEntry = BaseSchema & {
269
+ type: 'plugin';
270
+ /** The document type that produced the entry */
271
+ documentType: string;
272
+ /** Free-form discriminator owned by the document type */
273
+ kind?: string;
274
+ children?: TraversedEntry[];
275
+ };
253
276
  export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
254
277
  id: import("@scalar/typebox").TString;
255
278
  title: import("@scalar/typebox").TString;
@@ -341,8 +364,16 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
341
364
  type: import("@scalar/typebox").TLiteral<"models">;
342
365
  name: import("@scalar/typebox").TString;
343
366
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
367
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
368
+ id: import("@scalar/typebox").TString;
369
+ title: import("@scalar/typebox").TString;
370
+ }>, import("@scalar/typebox").TObject<{
371
+ type: import("@scalar/typebox").TLiteral<"plugin">;
372
+ documentType: import("@scalar/typebox").TString;
373
+ kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
374
+ children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
344
375
  }>]>]>;
345
- export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedAsyncApiOperation | TraversedAsyncApiChannel | TraversedAsyncApiMessage | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample | TraversedDocument | TraversedModels;
376
+ export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedAsyncApiOperation | TraversedAsyncApiChannel | TraversedAsyncApiMessage | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample | TraversedDocument | TraversedModels | TraversedPluginEntry;
346
377
  /**
347
378
  * Type helper for when we are storing the parent entry in the entry itself.
348
379
  * The parent is recursively defined to also include its own parent, except for