@scalar/workspace-store 0.73.0 → 0.75.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 (122) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +10 -0
  3. package/dist/client.d.ts +3 -0
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +77 -10
  6. package/dist/entities/auth/schema.d.ts +405 -40
  7. package/dist/entities/auth/schema.d.ts.map +1 -1
  8. package/dist/helpers/async-api-schema-resources/load-inline.d.ts +7 -0
  9. package/dist/helpers/async-api-schema-resources/load-inline.d.ts.map +1 -0
  10. package/dist/helpers/async-api-schema-resources/load-inline.js +31 -0
  11. package/dist/helpers/async-api-schema-resources/protobuf-imports.d.ts +8 -0
  12. package/dist/helpers/async-api-schema-resources/protobuf-imports.d.ts.map +1 -0
  13. package/dist/helpers/async-api-schema-resources/protobuf-imports.js +25 -0
  14. package/dist/helpers/async-api-schema-resources/raml-source.d.ts +12 -0
  15. package/dist/helpers/async-api-schema-resources/raml-source.d.ts.map +1 -0
  16. package/dist/helpers/async-api-schema-resources/raml-source.js +32 -0
  17. package/dist/helpers/async-api-schema-resources/resolver.d.ts +12 -0
  18. package/dist/helpers/async-api-schema-resources/resolver.d.ts.map +1 -0
  19. package/dist/helpers/async-api-schema-resources/resolver.js +31 -0
  20. package/dist/helpers/async-api-schema-resources/resources.d.ts +13 -0
  21. package/dist/helpers/async-api-schema-resources/resources.d.ts.map +1 -0
  22. package/dist/helpers/async-api-schema-resources/resources.js +133 -0
  23. package/dist/helpers/async-api-schema-resources/schema-resource-path.d.ts +3 -0
  24. package/dist/helpers/async-api-schema-resources/schema-resource-path.d.ts.map +1 -0
  25. package/dist/helpers/async-api-schema-resources/schema-resource-path.js +9 -0
  26. package/dist/helpers/async-api-schema-resources/schema-wrappers.d.ts +9 -0
  27. package/dist/helpers/async-api-schema-resources/schema-wrappers.d.ts.map +1 -0
  28. package/dist/helpers/async-api-schema-resources/schema-wrappers.js +69 -0
  29. package/dist/helpers/async-api-schema-resources/track-edits.d.ts +3 -0
  30. package/dist/helpers/async-api-schema-resources/track-edits.d.ts.map +1 -0
  31. package/dist/helpers/async-api-schema-resources/track-edits.js +46 -0
  32. package/dist/helpers/compact-upgrade-metadata.d.ts +3 -0
  33. package/dist/helpers/compact-upgrade-metadata.d.ts.map +1 -0
  34. package/dist/helpers/compact-upgrade-metadata.js +71 -0
  35. package/dist/helpers/is-file-schema.js +1 -1
  36. package/dist/helpers/querystring-parameter.d.ts +3 -1
  37. package/dist/helpers/querystring-parameter.d.ts.map +1 -1
  38. package/dist/helpers/querystring-parameter.js +2 -2
  39. package/dist/helpers/resolve-async-api-schema.d.ts +2 -0
  40. package/dist/helpers/resolve-async-api-schema.d.ts.map +1 -1
  41. package/dist/helpers/resolve-async-api-schema.js +25 -1
  42. package/dist/helpers/use-async-api-schema-resources.d.ts +12 -0
  43. package/dist/helpers/use-async-api-schema-resources.d.ts.map +1 -0
  44. package/dist/helpers/use-async-api-schema-resources.js +24 -0
  45. package/dist/mutators/operation/parameters.d.ts.map +1 -1
  46. package/dist/mutators/operation/parameters.js +9 -1
  47. package/dist/mutators/operation/reset-request-body.d.ts.map +1 -1
  48. package/dist/mutators/operation/reset-request-body.js +3 -1
  49. package/dist/navigation/helpers/get-x-badges.d.ts +10 -0
  50. package/dist/navigation/helpers/get-x-badges.d.ts.map +1 -0
  51. package/dist/navigation/helpers/get-x-badges.js +26 -0
  52. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  53. package/dist/navigation/helpers/traverse-paths.js +3 -0
  54. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  55. package/dist/navigation/helpers/traverse-schemas.js +3 -0
  56. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  57. package/dist/navigation/helpers/traverse-tags.js +3 -0
  58. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  59. package/dist/navigation/helpers/traverse-webhooks.js +3 -0
  60. package/dist/plugins/bundler/async-api-schema-resources.d.ts +4 -0
  61. package/dist/plugins/bundler/async-api-schema-resources.d.ts.map +1 -0
  62. package/dist/plugins/bundler/async-api-schema-resources.js +20 -0
  63. package/dist/plugins/bundler/index.d.ts +1 -1
  64. package/dist/plugins/bundler/index.d.ts.map +1 -1
  65. package/dist/plugins/bundler/index.js +7 -4
  66. package/dist/plugins/bundler/openapi-document.d.ts +5 -1
  67. package/dist/plugins/bundler/openapi-document.d.ts.map +1 -1
  68. package/dist/plugins/bundler/openapi-document.js +7 -3
  69. package/dist/plugins/bundler/upgrade-documents.d.ts +4 -0
  70. package/dist/plugins/bundler/upgrade-documents.d.ts.map +1 -0
  71. package/dist/plugins/bundler/upgrade-documents.js +357 -0
  72. package/dist/request-example/builder/body/build-request-body.d.ts +1 -1
  73. package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
  74. package/dist/request-example/builder/body/build-request-body.js +2 -2
  75. package/dist/request-example/builder/body/get-request-body-example.d.ts +2 -2
  76. package/dist/request-example/builder/body/get-request-body-example.d.ts.map +1 -1
  77. package/dist/request-example/builder/body/get-request-body-example.js +7 -3
  78. package/dist/request-example/builder/build-request.d.ts.map +1 -1
  79. package/dist/request-example/builder/build-request.js +3 -2
  80. package/dist/request-example/builder/helpers/array-contains.d.ts +15 -0
  81. package/dist/request-example/builder/helpers/array-contains.d.ts.map +1 -0
  82. package/dist/request-example/builder/helpers/array-contains.js +199 -0
  83. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +9 -0
  84. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
  85. package/dist/request-example/builder/helpers/get-example-from-schema.js +162 -31
  86. package/dist/request-example/builder/request-factory.d.ts +5 -1
  87. package/dist/request-example/builder/request-factory.d.ts.map +1 -1
  88. package/dist/request-example/builder/request-factory.js +5 -3
  89. package/dist/request-example/builder/security/build-request-security.d.ts +6 -4
  90. package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
  91. package/dist/request-example/builder/security/build-request-security.js +1 -0
  92. package/dist/schemas/extensions/security/x-scalar-token-prefix.d.ts +11 -0
  93. package/dist/schemas/extensions/security/x-scalar-token-prefix.d.ts.map +1 -0
  94. package/dist/schemas/extensions/security/x-scalar-token-prefix.js +8 -0
  95. package/dist/schemas/navigation.d.ts +49 -0
  96. package/dist/schemas/navigation.d.ts.map +1 -1
  97. package/dist/schemas/navigation.js +5 -0
  98. package/dist/schemas/reference-config/index.d.ts +81 -8
  99. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  100. package/dist/schemas/reference-config/settings.d.ts +81 -8
  101. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  102. package/dist/schemas/v3.1/strict/openapi-document.d.ts +2835 -280
  103. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  104. package/dist/schemas/v3.1/strict/schema.d.ts +62 -10
  105. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  106. package/dist/schemas/v3.1/strict/schema.js +10 -2
  107. package/dist/schemas/v3.1/strict/security-scheme.d.ts +4 -1
  108. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  109. package/dist/schemas/v3.1/strict/security-scheme.js +2 -1
  110. package/dist/schemas/v3.2/openapi/index.d.ts.map +1 -1
  111. package/dist/schemas/v3.2/openapi/index.js +7 -2
  112. package/dist/schemas/v3.2/strict/openapi-document.d.ts +2835 -280
  113. package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
  114. package/dist/schemas/v3.2/strict/schema.d.ts +62 -10
  115. package/dist/schemas/v3.2/strict/schema.d.ts.map +1 -1
  116. package/dist/schemas/v3.2/strict/schema.js +10 -2
  117. package/dist/schemas/v3.2/strict/security-scheme.d.ts +4 -1
  118. package/dist/schemas/v3.2/strict/security-scheme.d.ts.map +1 -1
  119. package/dist/schemas/v3.2/strict/security-scheme.js +2 -1
  120. package/dist/server.d.ts.map +1 -1
  121. package/dist/server.js +33 -3
  122. package/package.json +16 -15
@@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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoMF,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { LoaderPlugin } from '@scalar/json-magic/bundle';
2
+ import type { AsyncApiDocument } from '@scalar/types/asyncapi/3.1';
3
+ /** Prepare inline native schemas before server chunking; external AsyncAPI references stay deferred. */
4
+ export declare const loadInlineAsyncApiSchemaResources: (document: AsyncApiDocument, origin: string, loaders: LoaderPlugin[], options?: {
5
+ lazy?: boolean;
6
+ }) => Promise<void>;
7
+ //# sourceMappingURL=load-inline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-inline.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/load-inline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAOlE,wGAAwG;AACxG,eAAO,MAAM,iCAAiC,aAClC,gBAAgB,UAClB,MAAM,WACL,YAAY,EAAE,YACd;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,KAC1B,OAAO,CAAC,IAAI,CAoBd,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { isObject } from '@scalar/helpers/object/is-object';
2
+ import { resolveTraits } from '../resolve-traits.js';
3
+ import { unpackProxyShallow } from '../unpack-proxy.js';
4
+ import { createSchemaResourceLoader, deferSchemaResources } from './resources.js';
5
+ import { getInlineAsyncApiSchemaWrappers } from './schema-wrappers.js';
6
+ /** Prepare inline native schemas before server chunking; external AsyncAPI references stay deferred. */
7
+ export const loadInlineAsyncApiSchemaResources = async (document, origin, loaders, options = {}) => {
8
+ const load = createSchemaResourceLoader();
9
+ const legacy = /^2\./.test(document.asyncapi);
10
+ const wrappers = getInlineAsyncApiSchemaWrappers(document, (node) => {
11
+ if (legacy && 'payload' in node) {
12
+ const format = resolveTraits(node, Array.isArray(node.traits) ? node.traits.filter(isObject) : []).schemaFormat;
13
+ if (typeof format === 'string')
14
+ node.payload = { schemaFormat: format, schema: node.payload };
15
+ }
16
+ });
17
+ const loaded = new WeakSet();
18
+ for (const { node } of wrappers) {
19
+ const identity = unpackProxyShallow(node);
20
+ if (loaded.has(identity))
21
+ continue;
22
+ loaded.add(identity);
23
+ if (typeof node.schemaFormat !== 'string')
24
+ continue;
25
+ const resources = options.lazy
26
+ ? deferSchemaResources(node.schemaFormat, origin)
27
+ : await load(node.schemaFormat, node.schema, origin, loaders);
28
+ if (resources)
29
+ node['x-scalar-schema-resources'] = resources;
30
+ }
31
+ };
@@ -0,0 +1,8 @@
1
+ /** Import visibility is distinct from loading: only public imports are re-exported. */
2
+ export type ProtobufImport = {
3
+ path: string;
4
+ visibility: 'private' | 'public' | 'weak';
5
+ };
6
+ /** Read import declarations without mistaking comments or option strings for dependencies. */
7
+ export declare const protobufImports: (source: string) => ProtobufImport[];
8
+ //# sourceMappingURL=protobuf-imports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protobuf-imports.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/protobuf-imports.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAA;CAAE,CAAA;AAExF,8FAA8F;AAC9F,eAAO,MAAM,eAAe,WAAY,MAAM,KAAG,cAAc,EAqB9D,CAAA"}
@@ -0,0 +1,25 @@
1
+ /** Read import declarations without mistaking comments or option strings for dependencies. */
2
+ export const protobufImports = (source) => {
3
+ const tokens = source.match(/\/\*[\s\S]*?\*\/|\/\/[^\r\n]*|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|[A-Za-z_][A-Za-z_0-9]*|[^\s]/g) ??
4
+ [];
5
+ const meaningful = tokens.filter((token) => !token.startsWith('//') && !token.startsWith('/*'));
6
+ const imports = [];
7
+ const state = { depth: 0 };
8
+ for (const [index, token] of meaningful.entries()) {
9
+ if (token === '{')
10
+ state.depth++;
11
+ if (token === '}')
12
+ state.depth--;
13
+ if (token !== 'import' || state.depth !== 0)
14
+ continue;
15
+ const modifier = meaningful[index + 1];
16
+ const visibility = modifier === 'public' || modifier === 'weak' ? modifier : 'private';
17
+ const offset = visibility === 'private' ? 1 : 2;
18
+ const literal = meaningful[index + offset];
19
+ if (!literal || !/^(?:"[^"\\]*"|'[^'\\]*')$/.test(literal) || meaningful[index + offset + 1] !== ';') {
20
+ throw new Error('Unsupported Protobuf import');
21
+ }
22
+ imports.push({ path: literal.slice(1, -1), visibility });
23
+ }
24
+ return imports;
25
+ };
@@ -0,0 +1,12 @@
1
+ /** A tagged include stays distinct from authored objects and ordinary scalar strings. */
2
+ export declare class RamlInclude {
3
+ readonly path: string;
4
+ constructor(path: string);
5
+ }
6
+ /** Parse RAML while retaining include tags for location-aware resolution. */
7
+ export declare const parseRamlSource: (source: string) => unknown;
8
+ /** The RAML grammar position controls whether an include contains schemas, text, or literal data. */
9
+ export type RamlPosition = 'schema' | 'properties' | 'text' | 'data' | 'library';
10
+ /** Keep dependency discovery and include expansion on the same child-position rules. */
11
+ export declare const ramlChildPosition: (position: RamlPosition, key: string) => RamlPosition;
12
+ //# sourceMappingURL=raml-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raml-source.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/raml-source.ts"],"names":[],"mappings":"AAGA,yFAAyF;AACzF,qBAAa,WAAW;IACV,QAAQ,CAAC,IAAI,EAAE,MAAM;IAAjC,YAAqB,IAAI,EAAE,MAAM,EAAI;CACtC;AAED,6EAA6E;AAC7E,eAAO,MAAM,eAAe,WAAY,MAAM,KAAG,OAMhD,CAAA;AAED,qGAAqG;AACrG,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;AAEhF,wFAAwF;AACxF,eAAO,MAAM,iBAAiB,aAAc,YAAY,OAAO,MAAM,KAAG,YAOvE,CAAA"}
@@ -0,0 +1,32 @@
1
+ import { YAML_MAX_ALIAS_COUNT } from '@scalar/helpers/general/yaml-max-alias-count';
2
+ import { parseDocument } from 'yaml';
3
+ /** A tagged include stays distinct from authored objects and ordinary scalar strings. */
4
+ export class RamlInclude {
5
+ path;
6
+ constructor(path) {
7
+ this.path = path;
8
+ }
9
+ }
10
+ /** Parse RAML while retaining include tags for location-aware resolution. */
11
+ export const parseRamlSource = (source) => {
12
+ const document = parseDocument(source, {
13
+ customTags: [{ tag: '!include', resolve: (path) => new RamlInclude(path) }],
14
+ });
15
+ if (document.errors.length || document.warnings.length)
16
+ throw new Error('Invalid RAML YAML');
17
+ return document.toJS({ maxAliasCount: YAML_MAX_ALIAS_COUNT });
18
+ };
19
+ /** Keep dependency discovery and include expansion on the same child-position rules. */
20
+ export const ramlChildPosition = (position, key) => {
21
+ if (position === 'properties')
22
+ return 'schema';
23
+ if (position === 'data' || position === 'text')
24
+ return 'data';
25
+ if (key === 'properties' || (position === 'library' && key === 'types'))
26
+ return 'properties';
27
+ if (['description', 'displayName', 'usage'].includes(key))
28
+ return 'text';
29
+ if (['example', 'examples', 'default', 'enum'].includes(key))
30
+ return 'data';
31
+ return 'schema';
32
+ };
@@ -0,0 +1,12 @@
1
+ import type { LoaderPlugin } from '@scalar/json-magic/bundle';
2
+ import { fetchUrls } from '@scalar/json-magic/bundle/plugins/browser';
3
+ import { type AsyncApiSchemaResources } from './resources.js';
4
+ /** The renderer supplies authored source and the origin captured before bundling relocates it. */
5
+ export type AsyncApiSchemaResourceResolver = (format: string, source: unknown, resources?: AsyncApiSchemaResources) => Promise<AsyncApiSchemaResources | undefined>;
6
+ /** Keep downloads and complete graphs outside authored state, scoped to one document revision. */
7
+ export declare const createAsyncApiSchemaResourceResolver: (options?: Parameters<typeof fetchUrls>[0] & {
8
+ origin?: string;
9
+ fileLoader?: LoaderPlugin;
10
+ usePreparedResources?: boolean;
11
+ }) => AsyncApiSchemaResourceResolver;
12
+ //# sourceMappingURL=resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA;AAErE,OAAO,EAAE,KAAK,uBAAuB,EAA8B,MAAM,aAAa,CAAA;AAEtF,kGAAkG;AAClG,MAAM,MAAM,8BAA8B,GAAG,CAC3C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,EACf,SAAS,CAAC,EAAE,uBAAuB,KAChC,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAAA;AAEjD,kGAAkG;AAClG,eAAO,MAAM,oCAAoC,aACtC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG;IACzC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,YAAY,CAAA;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B,KACA,8BAwBF,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { fetchUrls } from '@scalar/json-magic/bundle/plugins/browser';
2
+ import { createSchemaResourceLoader } from './resources.js';
3
+ /** Keep downloads and complete graphs outside authored state, scoped to one document revision. */
4
+ export const createAsyncApiSchemaResourceResolver = (options = {}) => {
5
+ const load = createSchemaResourceLoader();
6
+ const urlLoader = fetchUrls({ ...options, limit: 10 });
7
+ const loaders = [urlLoader, ...(options.fileLoader ? [options.fileLoader] : [])];
8
+ const graphs = new Map();
9
+ return (format, source, resources) => {
10
+ // Prebuilt server graphs remain portable, including filesystem resources inaccessible to a browser.
11
+ if (resources && !resources.deferred && options.usePreparedResources !== false)
12
+ return Promise.resolve(resources);
13
+ const resourceOrigin = resources?.origin ?? options.origin ?? '/';
14
+ // Authored metadata cannot grant local file access to a remotely loaded document.
15
+ const remoteOrigin = options.origin !== undefined && urlLoader.validate(options.origin) ? options.origin : undefined;
16
+ const origin = remoteOrigin !== undefined && !urlLoader.validate(resourceOrigin) ? remoteOrigin : resourceOrigin;
17
+ const graphLoaders = remoteOrigin !== undefined || urlLoader.validate(origin) ? [urlLoader] : loaders;
18
+ try {
19
+ const key = JSON.stringify([format, source, origin]);
20
+ const cached = graphs.get(key);
21
+ if (cached)
22
+ return cached;
23
+ const pending = load(format, source, origin, graphLoaders);
24
+ graphs.set(key, pending);
25
+ return pending;
26
+ }
27
+ catch {
28
+ return Promise.resolve({ origin, files: {}, failed: true });
29
+ }
30
+ };
31
+ };
@@ -0,0 +1,13 @@
1
+ import type { LoaderPlugin } from '@scalar/json-magic/bundle';
2
+ /** Raw dependencies travel with a schema across server chunks, without changing its authored source. */
3
+ export type AsyncApiSchemaResources = {
4
+ origin: string;
5
+ files: Record<string, string>;
6
+ failed?: true;
7
+ deferred?: true;
8
+ };
9
+ /** Record the containing file without downloading native dependencies during browser ingestion. */
10
+ export declare const deferSchemaResources: (format: string, origin: string) => AsyncApiSchemaResources | undefined;
11
+ /** Bound both individual graphs and their shared downloads within one ingestion. */
12
+ export declare const createSchemaResourceLoader: () => ((format: string, source: unknown, origin: string, loaders: LoaderPlugin[]) => Promise<AsyncApiSchemaResources | undefined>);
13
+ //# sourceMappingURL=resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/resources.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAM7D,wGAAwG;AACxG,MAAM,MAAM,uBAAuB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,IAAI,CAAA;CAAE,CAAA;AAEvH,mGAAmG;AACnG,eAAO,MAAM,oBAAoB,WAAY,MAAM,UAAU,MAAM,KAAG,uBAAuB,GAAG,SACd,CAAA;AAalF,oFAAoF;AACpF,eAAO,MAAM,0BAA0B,QAAO,CAAC,CAC7C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,YAAY,EAAE,KACpB,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CA+GhD,CAAA"}
@@ -0,0 +1,133 @@
1
+ import { isObject } from '@scalar/helpers/object/is-object';
2
+ import { protobufImports } from './protobuf-imports.js';
3
+ import { RamlInclude, parseRamlSource, ramlChildPosition } from './raml-source.js';
4
+ import { schemaResourcePath } from './schema-resource-path.js';
5
+ /** Record the containing file without downloading native dependencies during browser ingestion. */
6
+ export const deferSchemaResources = (format, origin) => nativeSchemaLanguage(format) ? { origin, files: {}, deferred: true } : undefined;
7
+ const nativeSchemaLanguage = (format) => {
8
+ const normalized = format
9
+ .toLowerCase()
10
+ .split(';')
11
+ .map((part) => part.trim())
12
+ .join(';');
13
+ if (/^application\/raml\+yaml;version\s*=\s*(?:"1\.0"|1\.0)$/.test(normalized))
14
+ return 'raml';
15
+ if (/^application\/vnd\.google\.protobuf;version\s*=\s*(?:"[23]"|[23])$/.test(normalized))
16
+ return 'proto';
17
+ return undefined;
18
+ };
19
+ /** Bound both individual graphs and their shared downloads within one ingestion. */
20
+ export const createSchemaResourceLoader = () => {
21
+ const cache = new Map();
22
+ const parsedRamlFiles = new Map();
23
+ const ingestion = { size: 0 };
24
+ return async (format, source, origin, loaders) => {
25
+ const language = nativeSchemaLanguage(format);
26
+ if (!language)
27
+ return undefined;
28
+ const proto = language === 'proto';
29
+ const files = {};
30
+ const state = { size: typeof source === 'string' ? source.length : 0, nodes: 0 };
31
+ const done = new Set();
32
+ const active = new Set();
33
+ const load = async (reference, base, depth, position = 'schema') => {
34
+ if (depth >= 20)
35
+ throw new Error('Dependency graph is too deep');
36
+ const url = schemaResourcePath(base, reference);
37
+ const identity = `${position}:${url}`;
38
+ if (active.has(identity))
39
+ throw new Error('Cyclic schema dependencies');
40
+ if (done.has(identity))
41
+ return;
42
+ if (!Object.hasOwn(files, url) && Object.keys(files).length >= 64)
43
+ throw new Error('Too many schema dependencies');
44
+ active.add(identity);
45
+ if (!cache.has(url)) {
46
+ if (cache.size >= 64 || ingestion.size >= 1_000_000)
47
+ throw new Error('Too many document dependencies');
48
+ const loader = loaders.find((candidate) => candidate.validate(url));
49
+ if (!loader)
50
+ throw new Error('No resource loader');
51
+ cache.set(url, (async () => {
52
+ const result = await loader.exec(url, { parseAs: 'text' });
53
+ if (!result.ok || typeof result.raw !== 'string' || result.raw.length > 200_000)
54
+ throw new Error('Unavailable schema dependency');
55
+ ingestion.size += result.raw.length;
56
+ if (ingestion.size > 1_000_000)
57
+ throw new Error('Document dependencies are too large');
58
+ return result.raw;
59
+ })());
60
+ }
61
+ const text = await cache.get(url);
62
+ if (!Object.hasOwn(files, url))
63
+ state.size += text.length;
64
+ if (state.size > 1_000_000)
65
+ throw new Error('Schema dependencies are too large');
66
+ Object.defineProperty(files, url, { value: text, enumerable: true });
67
+ await scan(text, url, depth + 1, position);
68
+ active.delete(identity);
69
+ done.add(identity);
70
+ };
71
+ const scan = async (value, base, depth, position = 'schema') => {
72
+ if (position === 'text')
73
+ return;
74
+ if (depth > 40 || ++state.nodes > 10_000)
75
+ throw new Error('Schema is too large');
76
+ if (proto) {
77
+ if (typeof value !== 'string')
78
+ throw new Error('Expected Protobuf source');
79
+ for (const dependency of protobufImports(value))
80
+ await load(dependency.path, base, depth);
81
+ return;
82
+ }
83
+ // Inline schemas can share an origin but have different source; only external files have stable URI identity.
84
+ if (typeof value === 'string' && depth > 0 && !parsedRamlFiles.has(base))
85
+ parsedRamlFiles.set(base, parseRamlSource(value));
86
+ const parsed = typeof value === 'string' ? (depth > 0 ? parsedRamlFiles.get(base) : parseRamlSource(value)) : value;
87
+ if (depth > 0 &&
88
+ position === 'schema' &&
89
+ isObject(parsed) &&
90
+ 'uses' in parsed &&
91
+ !(typeof value === 'string' && /^#%RAML 1\.0 (?:DataType|Library)[ \t]*(?:\r?\n|$)/.test(value)))
92
+ throw new Error('Only typed RAML fragments can declare libraries');
93
+ const seen = new Set();
94
+ const library = typeof value === 'string' && /^#%RAML 1\.0 Library/.test(value);
95
+ const walk = async (node, level, position) => {
96
+ if (level > 40 || ++state.nodes > 10_000)
97
+ throw new Error('RAML is too large');
98
+ if (node instanceof RamlInclude) {
99
+ await load(node.path, base, depth, position);
100
+ }
101
+ else if (isObject(node) || Array.isArray(node)) {
102
+ if (seen.has(node))
103
+ throw new Error('Cyclic RAML YAML aliases');
104
+ seen.add(node);
105
+ for (const [key, child] of Object.entries(node)) {
106
+ if (node === parsed && position === 'schema' && key === 'uses' && isObject(child)) {
107
+ for (const path of Object.values(child)) {
108
+ if (typeof path !== 'string')
109
+ throw new Error('Invalid RAML library path');
110
+ await load(path, base, depth);
111
+ }
112
+ }
113
+ else {
114
+ const next = ramlChildPosition(library && node === parsed && position === 'schema' ? 'library' : position, key);
115
+ await walk(child, level + 1, next);
116
+ }
117
+ }
118
+ seen.delete(node);
119
+ }
120
+ };
121
+ await walk(parsed, 0, position);
122
+ };
123
+ try {
124
+ if (state.size > 200_000)
125
+ throw new Error('Schema is too large');
126
+ await scan(source, origin, 0);
127
+ return { origin, files };
128
+ }
129
+ catch {
130
+ return { origin, files: {}, failed: true };
131
+ }
132
+ };
133
+ };
@@ -0,0 +1,3 @@
1
+ /** Resolve only whole native files. Unknown inline locations never borrow a browser or process base. */
2
+ export declare const schemaResourcePath: (origin: string, reference: string) => string;
3
+ //# sourceMappingURL=schema-resource-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-resource-path.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/schema-resource-path.ts"],"names":[],"mappings":"AAEA,wGAAwG;AACxG,eAAO,MAAM,kBAAkB,WAAY,MAAM,aAAa,MAAM,KAAG,MAKtE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { resolveReferencePath } from '@scalar/json-magic/bundle';
2
+ /** Resolve only whole native files. Unknown inline locations never borrow a browser or process base. */
3
+ export const schemaResourcePath = (origin, reference) => {
4
+ if (!reference || reference.includes('#') || /[\u0000-\u0020]/.test(reference))
5
+ throw new Error('Invalid dependency path');
6
+ if ((!origin || origin === '/') && !/^(?:https?:\/\/|\/)/i.test(reference))
7
+ throw new Error('Unknown schema location');
8
+ return resolveReferencePath(origin || '/', reference);
9
+ };
@@ -0,0 +1,9 @@
1
+ import type { AsyncApiDocument } from '@scalar/types/asyncapi/3.1';
2
+ /** Stable schema positions survive object replacement and retain per-location overrides. */
3
+ export type InlineAsyncApiSchemaWrapper = {
4
+ node: Record<string, unknown>;
5
+ path: string[];
6
+ };
7
+ /** Visit schema positions, including resolved aliases, without treating examples or extensions as schemas. */
8
+ export declare const getInlineAsyncApiSchemaWrappers: (document: AsyncApiDocument, beforeMessage?: (message: Record<string, unknown>) => void) => InlineAsyncApiSchemaWrapper[];
9
+ //# sourceMappingURL=schema-wrappers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-wrappers.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/schema-wrappers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAKlE,4FAA4F;AAC5F,MAAM,MAAM,2BAA2B,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAAA;AAE3F,8GAA8G;AAC9G,eAAO,MAAM,+BAA+B,aAChC,gBAAgB,kBACV,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KACzD,2BAA2B,EAqD7B,CAAA"}
@@ -0,0 +1,69 @@
1
+ import { isObject } from '@scalar/helpers/object/is-object';
2
+ import { getResolvedAsyncApiRef } from '../get-resolved-async-api-ref.js';
3
+ import { unpackProxyShallow } from '../unpack-proxy.js';
4
+ /** Visit schema positions, including resolved aliases, without treating examples or extensions as schemas. */
5
+ export const getInlineAsyncApiSchemaWrappers = (document, beforeMessage) => {
6
+ const schemas = [];
7
+ const schema = (value, path) => {
8
+ const node = getResolvedAsyncApiRef(value);
9
+ if (isObject(node) && typeof node.schemaFormat === 'string')
10
+ schemas.push({ node, path });
11
+ };
12
+ const trait = (value, path) => {
13
+ const node = getResolvedAsyncApiRef(value);
14
+ if (isObject(node))
15
+ schema(node.headers, [...path, 'headers']);
16
+ };
17
+ const normalizedMessages = new WeakSet();
18
+ const activeMessages = new WeakSet();
19
+ const message = (value, path) => {
20
+ const node = getResolvedAsyncApiRef(value);
21
+ if (!isObject(node))
22
+ return;
23
+ const identity = unpackProxyShallow(node);
24
+ if (activeMessages.has(identity))
25
+ return;
26
+ activeMessages.add(identity);
27
+ if (!normalizedMessages.has(identity)) {
28
+ normalizedMessages.add(identity);
29
+ beforeMessage?.(node);
30
+ }
31
+ schema(node.payload, [...path, 'payload']);
32
+ trait(node, path);
33
+ if (Array.isArray(node.traits))
34
+ node.traits.forEach((child, index) => trait(child, [...path, 'traits', String(index)]));
35
+ if (Array.isArray(node.oneOf))
36
+ node.oneOf.forEach((child, index) => message(child, [...path, 'oneOf', String(index)]));
37
+ activeMessages.delete(identity);
38
+ };
39
+ const channel = (value, path) => {
40
+ const node = getResolvedAsyncApiRef(value);
41
+ if (!isObject(node))
42
+ return;
43
+ if (isObject(node.messages))
44
+ for (const [name, child] of Object.entries(node.messages))
45
+ message(child, [...path, 'messages', name]);
46
+ for (const name of ['publish', 'subscribe']) {
47
+ const operation = node[name];
48
+ if (isObject(operation) && !('$ref' in operation))
49
+ message(operation.message, [...path, name, 'message']);
50
+ }
51
+ };
52
+ const components = getResolvedAsyncApiRef(document.components) ?? {};
53
+ if (isObject(components.schemas))
54
+ for (const [name, node] of Object.entries(components.schemas))
55
+ schema(node, ['components', 'schemas', name]);
56
+ if (isObject(components.messages))
57
+ for (const [name, node] of Object.entries(components.messages))
58
+ message(node, ['components', 'messages', name]);
59
+ if (isObject(components.messageTraits))
60
+ for (const [name, node] of Object.entries(components.messageTraits))
61
+ trait(node, ['components', 'messageTraits', name]);
62
+ if (isObject(components.channels))
63
+ for (const [name, node] of Object.entries(components.channels))
64
+ channel(node, ['components', 'channels', name]);
65
+ if (isObject(document.channels))
66
+ for (const [name, node] of Object.entries(document.channels))
67
+ channel(node, ['channels', name]);
68
+ return schemas;
69
+ };
@@ -0,0 +1,3 @@
1
+ /** Compare effective native sources at stable locations while allowing newly loaded chunks. */
2
+ export declare const createNativeSchemaEditTracker: () => ((document: object) => boolean);
3
+ //# sourceMappingURL=track-edits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"track-edits.d.ts","sourceRoot":"","sources":["../../../src/helpers/async-api-schema-resources/track-edits.ts"],"names":[],"mappings":"AAoBA,+FAA+F;AAC/F,eAAO,MAAM,6BAA6B,QAAO,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CA6B9E,CAAA"}
@@ -0,0 +1,46 @@
1
+ import { isObject } from '@scalar/helpers/object/is-object';
2
+ import { isAsyncApiDocument } from '../../schemas/type-guards.js';
3
+ import { isOverridesProxyObject, unpackOverridesProxy } from '../overrides-proxy.js';
4
+ import { unpackProxyShallow } from '../unpack-proxy.js';
5
+ import { deferSchemaResources } from './resources.js';
6
+ import { getInlineAsyncApiSchemaWrappers } from './schema-wrappers.js';
7
+ /** Cyclic source remains on the source-only path until the cycle is removed. */
8
+ const sourceSnapshot = (wrapper) => {
9
+ const resources = wrapper['x-scalar-schema-resources'];
10
+ const origin = isObject(resources) && typeof resources.origin === 'string' ? resources.origin : undefined;
11
+ try {
12
+ return JSON.stringify([wrapper.schemaFormat, wrapper.schema, origin]);
13
+ }
14
+ catch {
15
+ return undefined;
16
+ }
17
+ };
18
+ /** Compare effective native sources at stable locations while allowing newly loaded chunks. */
19
+ export const createNativeSchemaEditTracker = () => {
20
+ const snapshots = new WeakMap();
21
+ return (document) => {
22
+ if (!isAsyncApiDocument(document))
23
+ return false;
24
+ const identity = unpackProxyShallow(document);
25
+ const previous = snapshots.get(identity);
26
+ const sources = new Map();
27
+ let overriddenNewSource = false;
28
+ for (const { node: wrapper, path } of getInlineAsyncApiSchemaWrappers(document)) {
29
+ if (typeof wrapper.schemaFormat !== 'string' || !deferSchemaResources(wrapper.schemaFormat, '/'))
30
+ continue;
31
+ const position = JSON.stringify(path);
32
+ const source = sourceSnapshot(wrapper);
33
+ sources.set(position, source);
34
+ // A new chunk may already have overrides; its prepared files describe the original source.
35
+ if (!previous?.has(position) &&
36
+ isOverridesProxyObject(wrapper) &&
37
+ source !== sourceSnapshot(unpackOverridesProxy(wrapper)))
38
+ overriddenNewSource = true;
39
+ }
40
+ snapshots.set(identity, sources);
41
+ // New chunks can introduce unchanged schemas without invalidating shared downloads or budgets.
42
+ return (overriddenNewSource ||
43
+ (previous !== undefined &&
44
+ [...previous].some(([position, source]) => !sources.has(position) || sources.get(position) !== source)));
45
+ };
46
+ };
@@ -0,0 +1,3 @@
1
+ /** Retain only upgrade bookkeeping needed by references that still load external resources. */
2
+ export declare const compactUpgradeMetadata: (document: Record<string, unknown>) => void;
3
+ //# sourceMappingURL=compact-upgrade-metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compact-upgrade-metadata.d.ts","sourceRoot":"","sources":["../../src/helpers/compact-upgrade-metadata.ts"],"names":[],"mappings":"AAEA,+FAA+F;AAC/F,eAAO,MAAM,sBAAsB,aAAc,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,IAqE1E,CAAA"}