@scalar/workspace-store 0.76.0 → 0.77.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 (62) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +76 -62
  4. package/dist/entities/auth/index.d.ts.map +1 -1
  5. package/dist/entities/auth/index.js +26 -14
  6. package/dist/entities/auth/schema.d.ts +65 -0
  7. package/dist/entities/auth/schema.d.ts.map +1 -1
  8. package/dist/entities/history/index.d.ts.map +1 -1
  9. package/dist/entities/history/index.js +25 -14
  10. package/dist/helpers/dynamic-ref.d.ts +4 -25
  11. package/dist/helpers/dynamic-ref.d.ts.map +1 -1
  12. package/dist/helpers/dynamic-ref.js +33 -76
  13. package/dist/helpers/resolve-form-schema.js +1 -1
  14. package/dist/helpers/resolve-schema-with-annotations.js +1 -1
  15. package/dist/mutators/document.js +3 -3
  16. package/dist/navigation/get-navigation-options.d.ts.map +1 -1
  17. package/dist/navigation/get-navigation-options.js +10 -0
  18. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -1
  19. package/dist/navigation/helpers/traverse-asyncapi-document.js +37 -3
  20. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
  21. package/dist/request-example/builder/helpers/get-example-from-schema.js +21 -16
  22. package/dist/request-example/builder/helpers/get-example.js +1 -1
  23. package/dist/request-example/builder/helpers/get-resolved-url.d.ts.map +1 -1
  24. package/dist/request-example/builder/helpers/get-resolved-url.js +2 -4
  25. package/dist/request-example/builder/helpers/get-server-variables.d.ts +1 -1
  26. package/dist/request-example/builder/helpers/get-server-variables.d.ts.map +1 -1
  27. package/dist/request-example/builder/helpers/get-server-variables.js +2 -12
  28. package/dist/request-example/builder/helpers/resolve-server-url.d.ts +4 -0
  29. package/dist/request-example/builder/helpers/resolve-server-url.d.ts.map +1 -0
  30. package/dist/request-example/builder/helpers/resolve-server-url.js +4 -0
  31. package/dist/request-example/builder/index.d.ts +1 -0
  32. package/dist/request-example/builder/index.d.ts.map +1 -1
  33. package/dist/request-example/builder/index.js +1 -0
  34. package/dist/request-example/builder/request-factory.d.ts.map +1 -1
  35. package/dist/request-example/builder/request-factory.js +2 -5
  36. package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
  37. package/dist/request-example/context/security/merge-security.js +13 -1
  38. package/dist/request-example/index.d.ts +1 -1
  39. package/dist/request-example/index.d.ts.map +1 -1
  40. package/dist/request-example/index.js +1 -1
  41. package/dist/request-example/xml/get-xml-example.js +7 -5
  42. package/dist/request-example/xml/write-xml.d.ts +2 -0
  43. package/dist/request-example/xml/write-xml.d.ts.map +1 -1
  44. package/dist/request-example/xml/write-xml.js +14 -4
  45. package/dist/{resolve.d.ts → resolve/index.d.ts} +3 -3
  46. package/dist/resolve/index.d.ts.map +1 -0
  47. package/dist/{resolve.js → resolve/index.js} +7 -5
  48. package/dist/schemas/navigation.d.ts +47 -2
  49. package/dist/schemas/navigation.d.ts.map +1 -1
  50. package/dist/schemas/navigation.js +11 -0
  51. package/dist/schemas/reference-config/index.d.ts +13 -0
  52. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  53. package/dist/schemas/reference-config/settings.d.ts +13 -0
  54. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  55. package/dist/schemas/v3.1/strict/openapi-document.d.ts +455 -0
  56. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  57. package/dist/schemas/v3.2/strict/openapi-document.d.ts +455 -0
  58. package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
  59. package/dist/server.d.ts.map +1 -1
  60. package/dist/server.js +11 -10
  61. package/package.json +13 -13
  62. package/dist/resolve.d.ts.map +0 -1
@@ -8,7 +8,7 @@ import { getResolvedRef } from '../../../helpers/get-resolved-ref.js';
8
8
  import { isFileSchema } from '../../../helpers/is-file-schema.js';
9
9
  import { resolveFormSchema } from '../../../helpers/resolve-form-schema.js';
10
10
  import { unpackProxyObject } from '../../../helpers/unpack-proxy.js';
11
- import { resolve } from '../../../resolve.js';
11
+ import { resolve } from '../../../resolve/index.js';
12
12
  import { generateContainsArray, getArrayDialect } from './array-contains.js';
13
13
  import { EXAMPLE_EVALUATION } from './example-evaluation.js';
14
14
  /** Maximum recursion depth to prevent infinite loops in circular references */
@@ -826,11 +826,14 @@ const handleArraySchema = (schema, options, level, seen, cacheKey, schemaPath, d
826
826
  // (e.g. a category whose children reference the same anchor) render their nested levels instead of
827
827
  // tripping the shared guard. Depth stays bounded by `MAX_LEVELS_DEEP`.
828
828
  let itemsSeen = seen;
829
+ let itemsScope = childScope;
829
830
  if (items && isDynamicRef(items)) {
830
- const resolvedDynamic = resolveDynamicRef(items.$dynamicRef, childScope);
831
+ const referenceScope = pushDynamicScope(childScope, items);
832
+ const resolvedDynamic = resolveDynamicRef(items.$dynamicRef, referenceScope);
831
833
  if (resolvedDynamic) {
832
834
  items = resolvedDynamic;
833
835
  itemsSeen = new WeakSet();
836
+ itemsScope = referenceScope;
834
837
  }
835
838
  }
836
839
  const itemsSchemaPath = [...schemaPath, 'items'];
@@ -870,7 +873,7 @@ const handleArraySchema = (schema, options, level, seen, cacheKey, schemaPath, d
870
873
  parentSchema: schema,
871
874
  schemaPath: itemsSchemaPath,
872
875
  seen: itemsSeen,
873
- dynamicScope: childScope,
876
+ dynamicScope: itemsScope,
874
877
  });
875
878
  return completeArrayExample(isDefined(merged) ? [merged] : []);
876
879
  }
@@ -880,7 +883,7 @@ const handleArraySchema = (schema, options, level, seen, cacheKey, schemaPath, d
880
883
  parentSchema: schema,
881
884
  schemaPath: itemsSchemaPath,
882
885
  seen: itemsSeen,
883
- dynamicScope: childScope,
886
+ dynamicScope: itemsScope,
884
887
  }))
885
888
  .filter(isDefined);
886
889
  // Let generation resolve references, declarations and union selections before deciding whether
@@ -909,7 +912,7 @@ const handleArraySchema = (schema, options, level, seen, cacheKey, schemaPath, d
909
912
  parentSchema: schema,
910
913
  schemaPath: itemsSchemaPath,
911
914
  seen: itemsSeen,
912
- dynamicScope: childScope,
915
+ dynamicScope: itemsScope,
913
916
  });
914
917
  if (ex === undefined) {
915
918
  return values.length > 0 ? cache(schema, values, cacheKey, skipCache) : undefined;
@@ -928,7 +931,7 @@ const handleArraySchema = (schema, options, level, seen, cacheKey, schemaPath, d
928
931
  level: level + 1,
929
932
  schemaPath: itemsSchemaPath,
930
933
  seen: itemsSeen,
931
- dynamicScope: childScope,
934
+ dynamicScope: itemsScope,
932
935
  });
933
936
  // Propagate an omitted recursive item so optional arrays do not serialize it as null.
934
937
  if (ex === undefined) {
@@ -1155,10 +1158,11 @@ const getCompositionRequiredNames = (schema, options, schemaPath, level, seen, d
1155
1158
  visited.set(target, contexts);
1156
1159
  // Requirements behind a dynamic reference constrain the same instance as its composition siblings.
1157
1160
  // Follow the same binding as the example walk, within this collector's existing depth and step bounds.
1161
+ const childScope = pushDynamicScope(current.dynamicScope, current.schema);
1158
1162
  if (isDynamicRef(current.schema)) {
1159
- const resolved = resolveDynamicRef(current.schema.$dynamicRef, current.dynamicScope);
1163
+ const resolved = resolveDynamicRef(current.schema.$dynamicRef, childScope);
1160
1164
  if (resolved) {
1161
- pending.push({ ...current, schema: resolved, depth: current.depth + 1 });
1165
+ pending.push({ ...current, schema: resolved, dynamicScope: childScope, depth: current.depth + 1 });
1162
1166
  continue;
1163
1167
  }
1164
1168
  }
@@ -1204,7 +1208,7 @@ const getCompositionRequiredNames = (schema, options, schemaPath, level, seen, d
1204
1208
  schema: resolved,
1205
1209
  options: consumeCompositionSelection(current.options, current.schemaPath, keyword),
1206
1210
  schemaPath: current.schemaPath,
1207
- dynamicScope: pushDynamicScope(current.dynamicScope, current.schema),
1211
+ dynamicScope: childScope,
1208
1212
  depth: current.depth + 1,
1209
1213
  });
1210
1214
  }
@@ -1219,7 +1223,7 @@ const getCompositionRequiredNames = (schema, options, schemaPath, level, seen, d
1219
1223
  schema: resolved,
1220
1224
  options: current.options,
1221
1225
  schemaPath: isChoiceMember ? [...current.schemaPath, String(choiceIndex++)] : current.schemaPath,
1222
- dynamicScope: pushDynamicScope(current.dynamicScope, current.schema),
1226
+ dynamicScope: childScope,
1223
1227
  depth: current.depth + 1,
1224
1228
  });
1225
1229
  }
@@ -1456,10 +1460,13 @@ const generateExampleFromSchema = (schema, options, { level = 0, parentSchema, n
1456
1460
  if (typeof _schema.$schema === 'string') {
1457
1461
  options = { ...options, jsonSchemaDialect: _schema.$schema };
1458
1462
  }
1459
- // Resolve a `$dynamicRef` against the active dynamic scope, then continue with the bound schema.
1460
- // When nothing matches, fall through and render the reference as before (no regression).
1463
+ // Grow the scope with this schema so nested references can bind to its `$dynamicAnchor`s.
1464
+ const childScope = pushDynamicScope(dynamicScope, _schema);
1465
+ // Resolve a `$dynamicRef` against the scope including this schema, then continue with the bound schema.
1466
+ // A reference declared on a resource belongs to that resource, matching the magic proxy's
1467
+ // `$dynamicRef-value`. When nothing matches, fall through and render the reference as before.
1461
1468
  if (isDynamicRef(_schema)) {
1462
- const resolvedDynamic = resolveDynamicRef(_schema.$dynamicRef, dynamicScope);
1469
+ const resolvedDynamic = resolveDynamicRef(_schema.$dynamicRef, childScope);
1463
1470
  if (resolvedDynamic) {
1464
1471
  // The `seen` set guards against cycles in the static schema graph, but a `$dynamicRef` is resolved
1465
1472
  // per evaluation path and intentionally points outside that graph. Re-entering the bound type with a
@@ -1471,14 +1478,12 @@ const generateExampleFromSchema = (schema, options, { level = 0, parentSchema, n
1471
1478
  name,
1472
1479
  seen: new WeakSet(),
1473
1480
  schemaPath,
1474
- dynamicScope,
1481
+ dynamicScope: childScope,
1475
1482
  requiredScope,
1476
1483
  isRequiredProperty,
1477
1484
  });
1478
1485
  }
1479
1486
  }
1480
- // Grow the scope with this schema so nested references can bind to its `$dynamicAnchor`s.
1481
- const childScope = pushDynamicScope(dynamicScope, _schema);
1482
1487
  // The same shared node can resolve differently per scope, so skip the result cache under a scope.
1483
1488
  const skipCache = dynamicScope.length > 0 || !!options?.[EXAMPLE_EVALUATION];
1484
1489
  // Unpack from all proxies to get the raw schema object for cycle detection
@@ -1,5 +1,5 @@
1
1
  import { getResolvedRef } from '../../../helpers/get-resolved-ref.js';
2
- import { resolve } from '../../../resolve.js';
2
+ import { resolve } from '../../../resolve/index.js';
3
3
  // Keep suggestion provenance out of API descriptions and persisted user examples.
4
4
  const generatedExamples = new WeakSet();
5
5
  /** Whether an example contains only enum suggestions rather than authored values. */
@@ -1 +1 @@
1
- {"version":3,"file":"get-resolved-url.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/helpers/get-resolved-url.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,iCAIxB;IACD,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,4BAA4B,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3C,WAGA,CAAA"}
1
+ {"version":3,"file":"get-resolved-url.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/helpers/get-resolved-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAIhE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,iCAIxB;IACD,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,4BAA4B,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3C,KAAG,MAEH,CAAA"}
@@ -1,6 +1,5 @@
1
- import { replaceVariables } from '@scalar/helpers/regex/replace-variables';
2
1
  import { mergeUrls } from '@scalar/helpers/url/merge-urls';
3
- import { getServerVariables } from './get-server-variables.js';
2
+ import { resolveServerUrl } from './resolve-server-url.js';
4
3
  /**
5
4
  * Resolves the full request URL by:
6
5
  * 1. Applying OpenAPI server variables to the server URL template.
@@ -14,6 +13,5 @@ import { getServerVariables } from './get-server-variables.js';
14
13
  * @returns The resolved URL as a string
15
14
  */
16
15
  export const getResolvedUrl = ({ server, path, urlParams, }) => {
17
- const serverVariables = getServerVariables(server);
18
- return mergeUrls(replaceVariables(server?.url ?? '', serverVariables), path, urlParams);
16
+ return mergeUrls(resolveServerUrl(server), path, urlParams);
19
17
  };
@@ -1,7 +1,7 @@
1
1
  import type { ServerObject } from '../../../schemas/v3.2/strict/server.js';
2
2
  /**
3
3
  * Extracts the default values of variables defined in a ServerObject into a simple key-value map.
4
- * Ignores variables with no default value.
4
+ * Keeps empty string defaults because an empty value is a valid substitution. Ignores variables with no default value.
5
5
  *
6
6
  * @param server The OpenAPI ServerObject (may be null).
7
7
  * @returns Record of variableName -> defaultValue.
@@ -1 +1 @@
1
- {"version":3,"file":"get-server-variables.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/helpers/get-server-variables.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,WAAY,YAAY,GAAG,IAAI,2BAU7D,CAAA"}
1
+ {"version":3,"file":"get-server-variables.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/helpers/get-server-variables.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,WAAY,YAAY,GAAG,IAAI,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAKnF,CAAA"}
@@ -1,19 +1,9 @@
1
1
  import { objectEntries } from '@scalar/helpers/object/object-entries';
2
2
  /**
3
3
  * Extracts the default values of variables defined in a ServerObject into a simple key-value map.
4
- * Ignores variables with no default value.
4
+ * Keeps empty string defaults because an empty value is a valid substitution. Ignores variables with no default value.
5
5
  *
6
6
  * @param server The OpenAPI ServerObject (may be null).
7
7
  * @returns Record of variableName -> defaultValue.
8
8
  */
9
- export const getServerVariables = (server) => {
10
- if (!server) {
11
- return {};
12
- }
13
- return objectEntries(server?.variables ?? {}).reduce((acc, [name, variable]) => {
14
- if (variable.default) {
15
- acc[name] = variable.default;
16
- }
17
- return acc;
18
- }, {});
19
- };
9
+ export const getServerVariables = (server) => Object.fromEntries(objectEntries(server?.variables ?? {}).flatMap(([name, variable]) => variable.default === undefined ? [] : [[name, variable.default]]));
@@ -0,0 +1,4 @@
1
+ import type { ServerObject } from '../../../schemas/v3.2/strict/server.js';
2
+ /** Substitutes OpenAPI server variable defaults in the selected server URL. */
3
+ export declare const resolveServerUrl: (server: ServerObject | null) => string;
4
+ //# sourceMappingURL=resolve-server-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-server-url.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/helpers/resolve-server-url.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAIhE,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,WAAY,YAAY,GAAG,IAAI,KAAG,MACM,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { replacePathVariables } from '@scalar/helpers/regex/replace-variables';
2
+ import { getServerVariables } from './get-server-variables.js';
3
+ /** Substitutes OpenAPI server variable defaults in the selected server URL. */
4
+ export const resolveServerUrl = (server) => replacePathVariables(server?.url ?? '', getServerVariables(server));
@@ -14,6 +14,7 @@ export { getExample } from './helpers/get-example.js';
14
14
  export { getExampleFromSchema } from './helpers/get-example-from-schema.js';
15
15
  export { getResolvedUrl } from './helpers/get-resolved-url.js';
16
16
  export { getServerVariables } from './helpers/get-server-variables.js';
17
+ export { resolveServerUrl } from './helpers/resolve-server-url.js';
17
18
  export type { RequestFactory } from './request-factory.js';
18
19
  export { requestFactory } from './request-factory.js';
19
20
  export { INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, type ResolveRequestFactoryUrlError, type ResolveRequestFactoryUrlResult, resolveRequestFactoryUrl, } from './resolve-request-factory-url.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/request-example/builder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAA;AAClF,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,KAAK,sBAAsB,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAA;AAC/G,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC1E,OAAO,EACL,oBAAoB,EACpB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,YAAY,EACZ,2BAA2B,GAC5B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,kBAAkB,EAClB,4BAA4B,EAC5B,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,wBAAwB,GACzB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACxE,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gCAAgC,EAChC,gCAAgC,EAChC,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,gBAAgB,EAChB,0BAA0B,EAC1B,gBAAgB,GACjB,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/request-example/builder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAA;AAClF,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,KAAK,sBAAsB,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAA;AAC/G,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC1E,OAAO,EACL,oBAAoB,EACpB,KAAK,gBAAgB,EACrB,K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kB,EAClB,gCAAgC,EAChC,gCAAgC,EAChC,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,gBAAgB,EAChB,0BAA0B,EAC1B,gBAAgB,GACjB,MAAM,yBAAyB,CAAA"}
@@ -14,6 +14,7 @@ export { getExample } from './helpers/get-example.js';
14
14
  export { getExampleFromSchema } from './helpers/get-example-from-schema.js';
15
15
  export { getResolvedUrl } from './helpers/get-resolved-url.js';
16
16
  export { getServerVariables } from './helpers/get-server-variables.js';
17
+ export { resolveServerUrl } from './helpers/resolve-server-url.js';
17
18
  export { requestFactory } from './request-factory.js';
18
19
  export { INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, resolveRequestFactoryUrl, } from './resolve-request-factory-url.js';
19
20
  export { isEncryptionSchemeType, isSaslSchemeType } from './security/broker-scheme-types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"request-factory.d.ts","sourceRoot":"","sources":["../../../src/request-example/builder/request-factory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAE5F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAC5E,OAAO,EAAE,KAAK,oBAAoB,EAA2B,MAAM,iCAAiC,CAAA;AAEpG,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,2DAA2D,CAAA;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AACjG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA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f;;;WAGG;QACH,UAAU,EAAE,OAAO,CAAA;QACnB;;;WAGG;QACH,eAAe,EAAE,OAAO,CAAA;KACzB,CAAC,CAAA;CACH,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,yNAexB,kBAAkB,GAAG;IACtB,2BAA2B;IAC3B,SAAS,EAAE,eAAe,CAAA;IAC1B,8CAA8C;IAC9C,WAAW,EAAE,kBAAkB,CAAA;IAC/B,mCAAmC;IACnC,aAAa,EAAE,aAAa,EAAE,CAAA;IAC9B,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAA;IAChB,wBAAwB;IACxB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtC,qEAAqE;IACrE,UAAU,EAAE,OAAO,CAAA;IACnB,8DAA8D;IAC9D,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;IACrD,sEAAsE;IACtE,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,+BAA+B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxD,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC,KAAG;IACF,OAAO,EAAE,cAAc,CAAA;CAkFxB,CAAA"}
1
+ {"version":3,"file":"request-factory.d.ts","sourceRoot":"","sources":["../../../src/request-example/builder/request-factory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,eAAe,EAAE,MAA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Body } from '@scalar/helpers/http/can-method-have-body';
2
2
  import { isHttpMethod } from '@scalar/helpers/http/is-http-method';
3
- import { replacePathVariables } from '@scalar/helpers/regex/replace-variables';
4
3
  import { getResolvedRef } from '@scalar/workspace-store/helpers/get-resolved-ref';
5
4
  import { getQuerystringParameter } from '../../helpers/querystring-parameter.js';
6
- import { getServerVariables } from './helpers/get-server-variables.js';
5
+ import { resolveServerUrl } from './helpers/resolve-server-url.js';
7
6
  import { buildRequestSecurity, } from './security/build-request-security.js';
8
7
  import { filterDisabledDefaultHeaders } from '../context/headers.js';
9
8
  import { buildRequestBody } from './body/build-request-body.js';
@@ -37,9 +36,7 @@ export const requestFactory = ({ exampleName, globalCookies, method, operation,
37
36
  if (body?.mode === 'formdata' || body?.mode === 'urlencoded') {
38
37
  headers.delete('Content-Type');
39
38
  }
40
- /** Combine the server url, path and url params into a single url */
41
- const serverVariables = getServerVariables(server);
42
- const baseUrl = replacePathVariables(server?.url ?? '', serverVariables);
39
+ const baseUrl = resolveServerUrl(server);
43
40
  const globalCookieFilter = operation['x-scalar-disable-parameters']?.['global-cookies']?.[exampleName] ?? {};
44
41
  const cookiesList = [
45
42
  ...globalCookies.map((c) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"merge-security.d.ts","sourceRoot":"","sources":["../../../../src/request-example/context/security/merge-security.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,KAAK,EAAE,wBAAwB,EAAgC,MAAM,4BAA4B,CAAA;AACxG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AAKtE,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AAKjG,gEAAgE;AAChE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;AA4E9E;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,4BAEpB,gBAAgB,CAAC,iBAAiB,CAAC,GACnC,WAAW,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAC,yBACrC,2BAA2B,CAAC,iBAAiB,CAAC,aAC1D,SAAS,gBACN,MAAM,sBACA,MAAM,KACzB,qBAoEF,CAAA"}
1
+ {"version":3,"file":"merge-security.d.ts","sourceRoot":"","sources":["../../../../src/request-example/context/security/merge-security.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,KAAK,EAAE,wBAAwB,EAAgC,MAAM,4BAA4B,CAAA;AACxG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AAKtE,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AAKjG,gEAAgE;AAChE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;AA4E9E;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,4BAEpB,gBAAgB,CAAC,iBAAiB,CAAC,GACnC,WAAW,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAC,yBACrC,2BAA2B,CAAC,iBAAiB,CAAC,aAC1D,SAAS,gBACN,MAAM,sBACA,MAAM,KACzB,qBAgFF,CAAA"}
@@ -1,4 +1,4 @@
1
- import { isObjectLike } from '@scalar/helpers/object/is-object';
1
+ import { isObject, isObjectLike } from '@scalar/helpers/object/is-object';
2
2
  import { objectEntries } from '@scalar/helpers/object/object-entries';
3
3
  import { Type } from '@scalar/typebox';
4
4
  import { deepClone } from '@scalar/workspace-store/helpers/deep-clone';
@@ -119,6 +119,18 @@ export const mergeSecurity = (documentSecuritySchemes = {}, configSecurityScheme
119
119
  }
120
120
  // We coerce in case the scheme is missing any key fields like type.
121
121
  const coerced = coerceValue(SecuritySchemeObjectSchema, scheme);
122
+ if (coerced.type === 'oauth2' && isObjectLike(scheme) && isObjectLike(scheme.flows)) {
123
+ // Casting fills missing fields but can drop flow configuration such as the client ID.
124
+ // Restore those fields per flow so normalized nested values still replace invalid inputs.
125
+ const flows = coerced.flows;
126
+ for (const [flowName, flow] of objectEntries(flows)) {
127
+ const originalFlow = scheme.flows[flowName];
128
+ if (isObject(flow) && isObject(originalFlow)) {
129
+ // Spread treats JSON keys as data, including __proto__.
130
+ flows[flowName] = { ...originalFlow, ...flow };
131
+ }
132
+ }
133
+ }
122
134
  const merged = { ...(isObjectLike(scheme) ? scheme : {}), ...coerced };
123
135
  const extracted = extractSecuritySchemeSecrets(merged, authStore, name, documentName, oauth2RedirectUri);
124
136
  const configured = Object.hasOwn(configSecuritySchemes, name) ? configSecuritySchemes[name] : undefined;
@@ -1,5 +1,5 @@
1
1
  export type { ApiKeyObjectSecret, BuildRequestData, BuildRequestFailureCode, BuildRequestResult, EncryptionObjectSecret, GssapiObjectSecret, HttpObjectSecret, OAuth2ObjectSecret, OAuthFlowAuthorizationCodeSecret, OAuthFlowClientCredentialsSecret, OAuthFlowDeviceAuthorizationSecret, OAuthFlowImplicitSecret, OAuthFlowPasswordSecret, OAuthFlowsObjectSecret, OpenIdConnectObjectSecret, RequestPayload, ResolveRequestFactoryUrlError, ResolveRequestFactoryUrlResult, SaslObjectSecret, SecuritySchemeObjectSecret, X509ObjectSecret, } from './builder/index.js';
2
- export { BUILD_REQUEST_FAILED, INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, type RequestFactory, type SerializedFormProperty, buildDottedNestedRowPredicate, buildRequest, buildRequestSecurity, coerceLeafValueToSchemaType, coerceUntypedValue, deSerializeParameter, deSerializeSchemaValue, filterDisabledProperties, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSchemaExampleFromBody, getSelectedBodyContentType, getServerVariables, isEncryptionSchemeType, isParamDisabled, isSaslSchemeType, requestFactory, resolveExecutableRequestUrl, resolveLeafSchema, resolveRequestFactoryUrl, serializeContentValue, serializeCookieStyle, serializeDeepObjectStyle, serializeFormPropertyWithEncoding, serializeFormStyle, serializeFormStyleForCookies, serializeMultipartArray, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
2
+ export { BUILD_REQUEST_FAILED, INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, type RequestFactory, type SerializedFormProperty, buildDottedNestedRowPredicate, buildRequest, buildRequestSecurity, coerceLeafValueToSchemaType, coerceUntypedValue, deSerializeParameter, deSerializeSchemaValue, filterDisabledProperties, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSchemaExampleFromBody, getSelectedBodyContentType, getServerVariables, isEncryptionSchemeType, isParamDisabled, isSaslSchemeType, requestFactory, resolveExecutableRequestUrl, resolveLeafSchema, resolveRequestFactoryUrl, resolveServerUrl, serializeContentValue, serializeCookieStyle, serializeDeepObjectStyle, serializeFormPropertyWithEncoding, serializeFormStyle, serializeFormStyleForCookies, serializeMultipartArray, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
3
3
  export { getAspNetFormFields, usesAspNetFormNaming, } from './builder/body/aspnet-form-fields.js';
4
4
  export { getMultipartItemSchema, needsMultipartEncoding } from './builder/body/build-multipart.js';
5
5
  export { buildRequestBody } from './builder/body/build-request-body.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request-example/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gCAAgC,EAChC,gCAAgC,EAChC,kCAAkC,EAClC,uBAA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AAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,aAAa,EACb,qCAAqC,EACrC,6BAA6B,GAC9B,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAA;AAClG,OAAO,EACL,sBAAsB,EACtB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,6BAA6B,EAC7B,gBAAgB,EAChB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAA;AACjE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,KAAK,iBAAiB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request-example/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gCAAgC,EAChC,gCAAgC,EAChC,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,6BAA6B,EAC7B,8BAA8B,EAC9B,gBAAgB,EAChB,0BAA0B,EAC1B,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,6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mBAAmB,EACxB,6BAA6B,EAC7B,gBAAgB,EAChB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAA;AACjE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,KAAK,iBAAiB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,4 +1,4 @@
1
- export { BUILD_REQUEST_FAILED, INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, buildDottedNestedRowPredicate, buildRequest, buildRequestSecurity, coerceLeafValueToSchemaType, coerceUntypedValue, deSerializeParameter, deSerializeSchemaValue, filterDisabledProperties, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSchemaExampleFromBody, getSelectedBodyContentType, getServerVariables, isEncryptionSchemeType, isParamDisabled, isSaslSchemeType, requestFactory, resolveExecutableRequestUrl, resolveLeafSchema, resolveRequestFactoryUrl, serializeContentValue, serializeCookieStyle, serializeDeepObjectStyle, serializeFormPropertyWithEncoding, serializeFormStyle, serializeFormStyleForCookies, serializeMultipartArray, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
1
+ export { BUILD_REQUEST_FAILED, INVALID_REQUEST_FACTORY_URL, MISSING_REQUEST_SERVER_BASE, buildDottedNestedRowPredicate, buildRequest, buildRequestSecurity, coerceLeafValueToSchemaType, coerceUntypedValue, deSerializeParameter, deSerializeSchemaValue, filterDisabledProperties, filterGlobalCookie, getEnvironmentVariables, getExample, getExampleFromBody, getExampleFromSchema, getResolvedUrl, getSchemaExampleFromBody, getSelectedBodyContentType, getServerVariables, isEncryptionSchemeType, isParamDisabled, isSaslSchemeType, requestFactory, resolveExecutableRequestUrl, resolveLeafSchema, resolveRequestFactoryUrl, resolveServerUrl, serializeContentValue, serializeCookieStyle, serializeDeepObjectStyle, serializeFormPropertyWithEncoding, serializeFormStyle, serializeFormStyleForCookies, serializeMultipartArray, serializePipeDelimitedStyle, serializeSimpleStyle, serializeSpaceDelimitedStyle, } from './builder/index.js';
2
2
  export { getAspNetFormFields, usesAspNetFormNaming, } from './builder/body/aspnet-form-fields.js';
3
3
  export { getMultipartItemSchema, needsMultipartEncoding } from './builder/body/build-multipart.js';
4
4
  export { buildRequestBody } from './builder/body/build-request-body.js';
@@ -84,13 +84,14 @@ const buildXmlExample = (value, input, options, evaluation) => {
84
84
  return { schema: source, scope: context.scope, evaluations: context.evaluation?.children ?? [] };
85
85
  }
86
86
  let schema = getResolvedRef(source, mergeSiblingReferences);
87
+ // A reference declared on a resource bookends against that resource, matching the magic proxy.
88
+ const scope = pushDynamicScope(context.scope, schema);
87
89
  if (isDynamicRef(schema)) {
88
- const bound = resolveDynamicRef(schema.$dynamicRef, context.scope);
90
+ const bound = resolveDynamicRef(schema.$dynamicRef, scope);
89
91
  if (bound) {
90
- return shape(bound, context, seen);
92
+ return shape(bound, { ...context, scope }, seen);
91
93
  }
92
94
  }
93
- const scope = pushDynamicScope(context.scope, schema);
94
95
  const evaluations = [...(context.evaluation?.children ?? [])];
95
96
  const contributions = context.evaluation?.children.filter((child) => child.path.length === context.path.length ||
96
97
  (child.name === undefined &&
@@ -168,7 +169,8 @@ const buildXmlExample = (value, input, options, evaluation) => {
168
169
  // In 3.2 a reference site and its target can describe different XML nodes.
169
170
  // Resolving them into one object would erase an explicit wrapper or a transparent target.
170
171
  const referenceTarget = source && '$ref-value' in source ? source['$ref-value'] : undefined;
171
- const dynamicTarget = isDynamicRef(source) ? resolveDynamicRef(source.$dynamicRef, context.scope) : undefined;
172
+ const sourceScope = pushDynamicScope(context.scope, source);
173
+ const dynamicTarget = isDynamicRef(source) ? resolveDynamicRef(source.$dynamicRef, sourceScope) : undefined;
172
174
  const target = referenceTarget ?? dynamicTarget;
173
175
  if (version32 && target && typeof target === 'object') {
174
176
  const localXml = source.xml ?? {};
@@ -181,7 +183,7 @@ const buildXmlExample = (value, input, options, evaluation) => {
181
183
  const children = map(data, target, referenceName ?? inheritedName, {
182
184
  ...context,
183
185
  depth: context.depth + 1,
184
- scope: pushDynamicScope(context.scope, source),
186
+ scope: sourceScope,
185
187
  evaluation: dynamicTarget ? context.evaluation?.children[0] : context.evaluation,
186
188
  }, attributes);
187
189
  if (localKind === 'none') {
@@ -3,6 +3,8 @@ import type { XmlExampleResult, XmlNode } from './xml-node.js';
3
3
  export type WriteXmlOptions = {
4
4
  format?: boolean;
5
5
  xmlDeclaration?: boolean;
6
+ /** Use character references for line breaks and non-ASCII data in HTTP header examples. */
7
+ escapeForHttpHeader?: boolean;
6
8
  };
7
9
  /** Serialize an XML document, validating names, characters, and namespace bindings. */
8
10
  export declare const writeXml: (nodes: XmlNode[], options?: WriteXmlOptions) => XmlExampleResult;
@@ -1 +1 @@
1
- {"version":3,"file":"write-xml.d.ts","sourceRoot":"","sources":["../../../src/request-example/xml/write-xml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,gBAAgB,EAAW,OAAO,EAAE,MAAM,YAAY,CAAA;AAWnF,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAE5E,uFAAuF;AACvF,eAAO,MAAM,QAAQ,UAAW,OAAO,EAAE,YAAW,eAAe,KAAQ,gBA6H1E,CAAA"}
1
+ {"version":3,"file":"write-xml.d.ts","sourceRoot":"","sources":["../../../src/request-example/xml/write-xml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,gBAAgB,EAAW,OAAO,EAAE,MAAM,YAAY,CAAA;AAWnF,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2FAA2F;IAC3F,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED,uFAAuF;AACvF,eAAO,MAAM,QAAQ,UAAW,OAAO,EAAE,YAAW,eAAe,KAAQ,gBAuI1E,CAAA"}
@@ -11,13 +11,20 @@ export const writeXml = (nodes, options = {}) => {
11
11
  const fail = (code, message, path) => {
12
12
  diagnostics.push({ severity: 'error', code, message, path });
13
13
  };
14
+ // XML parsers normalize carriage returns even in CDATA. Header examples also need single-line, ASCII data.
15
+ const referenceCharacters = options.escapeForHttpHeader ? /[\r\n\u007f-\u{10ffff}]/gu : /\r/g;
16
+ const characterReference = (character) => `&#${character.codePointAt(0)};`;
14
17
  const escapeXml = (value, attribute, path) => {
15
18
  if (invalidCharacter.test(value)) {
16
19
  fail('invalid-character', 'The value contains a character XML 1.0 cannot represent.', path);
17
20
  }
18
- const escaped = value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\r/g, '&#13;');
21
+ const escaped = value
22
+ .replace(/&/g, '&amp;')
23
+ .replace(/</g, '&lt;')
24
+ .replace(/>/g, '&gt;')
25
+ .replace(referenceCharacters, characterReference);
19
26
  // XML parsers normalize literal whitespace in attributes, so encode it explicitly.
20
- return attribute ? escaped.replace(/"/g, '&quot;').replace(/\n/g, '&#10;').replace(/\t/g, '&#9;') : escaped;
27
+ return attribute ? escaped.replace(/\n/g, '&#10;').replace(/"/g, '&quot;').replace(/\t/g, '&#9;') : escaped;
21
28
  };
22
29
  let generatedPrefix = 0;
23
30
  let count = 0;
@@ -33,8 +40,11 @@ export const writeXml = (nodes, options = {}) => {
33
40
  if (invalidCharacter.test(node.value)) {
34
41
  fail('invalid-character', 'The CDATA contains a character XML 1.0 cannot represent.', path);
35
42
  }
36
- // Carriage returns must be outside CDATA to survive XML line-ending normalization.
37
- return `<![CDATA[${node.value.replace(/]]>/g, ']]]]><![CDATA[>').replace(/\r/g, ']]>&#13;<![CDATA[')}]]>`;
43
+ // References are interpreted only outside CDATA.
44
+ const cdata = node.value
45
+ .replace(/]]>/g, ']]]]><![CDATA[>')
46
+ .replace(referenceCharacters, (character) => `]]>${characterReference(character)}<![CDATA[`);
47
+ return `<![CDATA[${cdata}]]>`;
38
48
  }
39
49
  const bindings = new Map(inherited);
40
50
  const declarations = new Map();
@@ -1,4 +1,5 @@
1
- import type { MaybeRefSchemaObject, SchemaObject } from './schemas/v3.2/strict/schema.js';
1
+ import type { MaybeRefSchemaObject, SchemaObject } from '../schemas/v3.2/strict/schema.js';
2
+ export { DYNAMIC_REF_VALUE } from '@scalar/json-magic/magic-proxy';
2
3
  /**
3
4
  * A resolved schema is a read-only view.
4
5
  *
@@ -13,5 +14,4 @@ type ResolvedSchema<T> = T extends undefined ? undefined : Readonly<SchemaObject
13
14
  export declare const resolve: {
14
15
  schema: <T extends MaybeRefSchemaObject | boolean | undefined>(schema: T) => ResolvedSchema<T>;
15
16
  };
16
- export {};
17
- //# sourceMappingURL=resolve.d.ts.map
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resolve/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAGtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE;;;;;;;GAOG;AACH,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC,YAAY,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAoBrG,eAAO,MAAM,OAAO;IAClB,MAAM,GAAG,CAAC,SAAS,oBAAoB,GAAG,OAAO,GAAG,SAAS,UAAU,CAAC,KAAG,cAAc,CAAC,CAAC,CAAC;CAc7F,CAAA"}
@@ -1,9 +1,11 @@
1
1
  import { Type } from '@scalar/typebox';
2
- import { getBooleanSchema } from './helpers/get-boolean-schema.js';
3
- import { getResolvedRef, mergeSiblingReferences } from './helpers/get-resolved-ref.js';
4
- import { compose } from './schemas/compose.js';
5
- import { coerceValue } from './schemas/typebox-coerce.js';
6
- import { SchemaObjectSchema } from './schemas/v3.2/strict/openapi-document.js';
2
+ import { getBooleanSchema } from '../helpers/get-boolean-schema.js';
3
+ import { getResolvedRef, mergeSiblingReferences } from '../helpers/get-resolved-ref.js';
4
+ import { compose } from '../schemas/compose.js';
5
+ import { coerceValue } from '../schemas/typebox-coerce.js';
6
+ import { SchemaObjectSchema } from '../schemas/v3.2/strict/openapi-document.js';
7
+ // Consumers resolve schema references through the store, including virtual dynamic bindings.
8
+ export { DYNAMIC_REF_VALUE } from '@scalar/json-magic/magic-proxy';
7
9
  /**
8
10
  * The coercion target: a schema object that may still carry the `$ref` it was resolved from.
9
11
  *
@@ -171,6 +171,32 @@ export type TraversedAsyncApiMessage = BaseSchema & {
171
171
  /** Parent channel key in `document.channels` */
172
172
  channelName: string;
173
173
  };
174
+ export declare const TraversedAsyncApiReusableMessageSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
175
+ id: import("@scalar/typebox").TString;
176
+ title: import("@scalar/typebox").TString;
177
+ }>, import("@scalar/typebox").TObject<{
178
+ type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
179
+ name: import("@scalar/typebox").TString;
180
+ }>]>;
181
+ /** A reusable message keyed by its name in `document.components.messages`. */
182
+ export type TraversedAsyncApiReusableMessage = BaseSchema & {
183
+ type: 'asyncapi-reusable-message';
184
+ name: string;
185
+ };
186
+ export declare const TraversedAsyncApiMessagesSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
187
+ id: import("@scalar/typebox").TString;
188
+ title: import("@scalar/typebox").TString;
189
+ }>, import("@scalar/typebox").TObject<{
190
+ type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
191
+ name: import("@scalar/typebox").TString;
192
+ children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
193
+ }>]>;
194
+ /** The top-level Messages section for reusable AsyncAPI messages. */
195
+ export type TraversedAsyncApiMessages = BaseSchema & {
196
+ type: 'asyncapi-messages';
197
+ name: string;
198
+ children: TraversedEntry[];
199
+ };
174
200
  export declare const TraversedSchemaSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
175
201
  id: import("@scalar/typebox").TString;
176
202
  title: import("@scalar/typebox").TString;
@@ -351,6 +377,19 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
351
377
  }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
352
378
  id: import("@scalar/typebox").TString;
353
379
  title: import("@scalar/typebox").TString;
380
+ }>, import("@scalar/typebox").TObject<{
381
+ type: import("@scalar/typebox").TLiteral<"asyncapi-messages">;
382
+ name: import("@scalar/typebox").TString;
383
+ children: import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>;
384
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
385
+ id: import("@scalar/typebox").TString;
386
+ title: import("@scalar/typebox").TString;
387
+ }>, import("@scalar/typebox").TObject<{
388
+ type: import("@scalar/typebox").TLiteral<"asyncapi-reusable-message">;
389
+ name: import("@scalar/typebox").TString;
390
+ }>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
391
+ id: import("@scalar/typebox").TString;
392
+ title: import("@scalar/typebox").TString;
354
393
  }>, import("@scalar/typebox").TObject<{
355
394
  type: import("@scalar/typebox").TLiteral<"model">;
356
395
  ref: import("@scalar/typebox").TString;
@@ -422,7 +461,7 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
422
461
  kind: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
423
462
  children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
424
463
  }>]>]>;
425
- export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedAsyncApiOperation | TraversedAsyncApiChannel | TraversedAsyncApiMessage | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample | TraversedDocument | TraversedModels | TraversedPluginEntry;
464
+ export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedAsyncApiOperation | TraversedAsyncApiChannel | TraversedAsyncApiMessage | TraversedAsyncApiMessages | TraversedAsyncApiReusableMessage | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample | TraversedDocument | TraversedModels | TraversedPluginEntry;
426
465
  /**
427
466
  * Type helper for when we are storing the parent entry in the entry itself.
428
467
  * The parent is recursively defined to also include its own parent, except for
@@ -510,7 +549,13 @@ type AsyncApiMessageProps = {
510
549
  channelName: string;
511
550
  type: 'asyncapi-message';
512
551
  };
513
- export type IdGeneratorProps = DocumentIdProps | DescriptionIdProps | TagProps | OperationProps | AsyncApiOperationProps | AsyncApiChannelProps | AsyncApiMessageProps | WebhookProps | ModelProps | ExampleProps;
552
+ type AsyncApiReusableMessageProps = {
553
+ parentId: string;
554
+ /** Omitted when generating the Messages section ID. */
555
+ name?: string;
556
+ type: 'asyncapi-reusable-message';
557
+ };
558
+ export type IdGeneratorProps = DocumentIdProps | DescriptionIdProps | TagProps | OperationProps | AsyncApiOperationProps | AsyncApiChannelProps | AsyncApiMessageProps | AsyncApiReusableMessageProps | WebhookProps | ModelProps | ExampleProps;
514
559
  export type IdGenerator = (props: IdGeneratorProps) => string;
515
560
  export {};
516
561
  //# sourceMappingURL=navigation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],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