@scalar/workspace-store 0.66.0 → 0.67.1

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 (49) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/entities/auth/schema.d.ts +22 -22
  3. package/dist/entities/auth/schema.d.ts.map +1 -1
  4. package/dist/entities/auth/schema.js +6 -4
  5. package/dist/events/definitions/operation.d.ts +2 -0
  6. package/dist/events/definitions/operation.d.ts.map +1 -1
  7. package/dist/helpers/encode-chunk-name.d.ts.map +1 -1
  8. package/dist/helpers/encode-chunk-name.js +6 -1
  9. package/dist/helpers/merge-object.d.ts.map +1 -1
  10. package/dist/helpers/merge-object.js +9 -3
  11. package/dist/request-example/builder/body/build-request-body.d.ts +1 -1
  12. package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
  13. package/dist/request-example/builder/body/build-request-body.js +2 -2
  14. package/dist/request-example/builder/body/get-request-body-example.d.ts +4 -4
  15. package/dist/request-example/builder/body/get-request-body-example.d.ts.map +1 -1
  16. package/dist/request-example/builder/body/get-request-body-example.js +29 -5
  17. package/dist/request-example/builder/helpers/example-evaluation.d.ts +19 -0
  18. package/dist/request-example/builder/helpers/example-evaluation.d.ts.map +1 -0
  19. package/dist/request-example/builder/helpers/example-evaluation.js +2 -0
  20. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +11 -3
  21. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
  22. package/dist/request-example/builder/helpers/get-example-from-schema.js +66 -17
  23. package/dist/request-example/builder/helpers/get-example.d.ts.map +1 -1
  24. package/dist/request-example/builder/helpers/get-example.js +35 -21
  25. package/dist/request-example/builder/request-factory.d.ts +3 -1
  26. package/dist/request-example/builder/request-factory.d.ts.map +1 -1
  27. package/dist/request-example/builder/request-factory.js +2 -2
  28. package/dist/request-example/index.d.ts +4 -0
  29. package/dist/request-example/index.d.ts.map +1 -1
  30. package/dist/request-example/index.js +3 -0
  31. package/dist/request-example/xml/get-xml-body-example.d.ts +8 -0
  32. package/dist/request-example/xml/get-xml-body-example.d.ts.map +1 -0
  33. package/dist/request-example/xml/get-xml-body-example.js +21 -0
  34. package/dist/request-example/xml/get-xml-example.d.ts +21 -0
  35. package/dist/request-example/xml/get-xml-example.d.ts.map +1 -0
  36. package/dist/request-example/xml/get-xml-example.js +352 -0
  37. package/dist/request-example/xml/match-xml-property-pattern.d.ts +10 -0
  38. package/dist/request-example/xml/match-xml-property-pattern.d.ts.map +1 -0
  39. package/dist/request-example/xml/match-xml-property-pattern.js +48 -0
  40. package/dist/request-example/xml/serialize-xml-part.d.ts +4 -5
  41. package/dist/request-example/xml/serialize-xml-part.d.ts.map +1 -1
  42. package/dist/request-example/xml/serialize-xml-part.js +14 -8
  43. package/dist/request-example/xml/write-xml.d.ts +9 -0
  44. package/dist/request-example/xml/write-xml.d.ts.map +1 -0
  45. package/dist/request-example/xml/write-xml.js +119 -0
  46. package/dist/request-example/xml/xml-node.d.ts +32 -0
  47. package/dist/request-example/xml/xml-node.d.ts.map +1 -0
  48. package/dist/request-example/xml/xml-node.js +1 -0
  49. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @scalar/workspace-store
2
2
 
3
+ ## 0.67.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#10383](https://github.com/scalar/scalar/pull/10383): Populate object parameter values from property examples when no parameter or root schema value is provided.
8
+ - [#10361](https://github.com/scalar/scalar/pull/10361): Preserve configured OAuth redirect URLs when changing credentials or clearing tokens, and hide refresh controls when no refresh token is available.
9
+
10
+ Previously saved redirect overrides, including empty strings and prefilled page origins, remain unchanged because they cannot be distinguished from intentional user choices. Users affected by the earlier bug must enter the intended redirect URL again.
11
+
12
+ The public `@scalar/workspace-store` OAuth secrets types now expose `x-scalar-secret-redirect-uri` as optional (`string | undefined`). Consumers must handle an absent override separately from an explicit empty string.
13
+
14
+ ## 0.67.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#10192](https://github.com/scalar/scalar/pull/10192): Mock-server XML response bytes now use the shared schema-aware serializer instead of `json2xml`, including attributes, namespaces, and root naming. Existing XML response snapshots may need updating. Supplied serialized XML remains unchanged.
19
+
20
+ Generate XML examples from schema metadata, preserving attributes, namespaces, array wrappers, repeated elements, and OpenAPI 3.2 text and CDATA nodes. Use the same XML serialization for request bodies, code snippets, response examples, mock responses, and Markdown documentation. Preserve serialized media examples and escape schema string examples as element text.
21
+
22
+ Explain XML generation failures in response example panels, including the serialized-example escape hatch for large payloads. Expose XML generation failures in mock response headers with `X-Scalar-XML-Error`, containing the first error diagnostic code. Report diagnostics to other consumers through a callback or the developer console, and format element-only descendants within mixed content without changing text values.
23
+
24
+ ### Patch Changes
25
+
26
+ - [#10341](https://github.com/scalar/scalar/pull/10341): Avoid excessive processing time when encoding chunk names with long runs of dots.
27
+ - [#10342](https://github.com/scalar/scalar/pull/10342): Prevent prototype pollution when merging documents and writing nested values or JSON references, while preserving prototype-named JSON data properties.
28
+
29
+ Dot-separated mutations now reject new `constructor` and `prototype` keys, as well as `__proto__`, instead of creating these keys through inherited properties.
30
+
31
+ - [#10334](https://github.com/scalar/scalar/pull/10334): Include optional form fields when selecting files or editing values, while preserving explicitly unchecked fields.
32
+ - [#10192](https://github.com/scalar/scalar/pull/10192): Apply edited XML bodies instead of their original serialized or data examples, render schema-free XML examples in Markdown, and share reference decoding and response provenance selection.
33
+
3
34
  ## 0.66.0
4
35
 
5
36
  ### Minor Changes
@@ -33,7 +33,7 @@ declare const SecretsOAuthFlowsSchema: import("@scalar/typebox").TObject<{
33
33
  }>, import("@scalar/typebox").TObject<{
34
34
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
35
35
  }>]>, import("@scalar/typebox").TObject<{
36
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
36
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
37
37
  }>]>>;
38
38
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
39
39
  'x-scalar-secret-client-id': import("@scalar/typebox").TString;
@@ -69,7 +69,7 @@ declare const SecretsOAuthFlowsSchema: import("@scalar/typebox").TObject<{
69
69
  }>]>, import("@scalar/typebox").TObject<{
70
70
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
71
71
  }>, import("@scalar/typebox").TObject<{
72
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
72
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
73
73
  }>, import("@scalar/typebox").TObject<{
74
74
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
75
75
  }>]>>;
@@ -96,7 +96,7 @@ declare const OAuthSchema: import("@scalar/typebox").TIntersect<[import("@scalar
96
96
  }>, import("@scalar/typebox").TObject<{
97
97
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
98
98
  }>]>, import("@scalar/typebox").TObject<{
99
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
99
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
100
100
  }>]>>;
101
101
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
102
102
  'x-scalar-secret-client-id': import("@scalar/typebox").TString;
@@ -132,7 +132,7 @@ declare const OAuthSchema: import("@scalar/typebox").TIntersect<[import("@scalar
132
132
  }>]>, import("@scalar/typebox").TObject<{
133
133
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
134
134
  }>, import("@scalar/typebox").TObject<{
135
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
135
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
136
136
  }>, import("@scalar/typebox").TObject<{
137
137
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
138
138
  }>]>>;
@@ -200,7 +200,7 @@ export declare const OpenIDConnectSchema: import("@scalar/typebox").TObject<{
200
200
  }>, import("@scalar/typebox").TObject<{
201
201
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
202
202
  }>]>, import("@scalar/typebox").TObject<{
203
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
203
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
204
204
  }>]>>;
205
205
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
206
206
  refreshUrl: import("@scalar/typebox").TString;
@@ -302,7 +302,7 @@ export declare const OpenIDConnectSchema: import("@scalar/typebox").TObject<{
302
302
  }>]>, import("@scalar/typebox").TObject<{
303
303
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
304
304
  }>, import("@scalar/typebox").TObject<{
305
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
305
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
306
306
  }>, import("@scalar/typebox").TObject<{
307
307
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
308
308
  }>]>>;
@@ -374,7 +374,7 @@ export declare const SecretsAuthUnionSchema: import("@scalar/typebox").TUnion<[i
374
374
  }>, import("@scalar/typebox").TObject<{
375
375
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
376
376
  }>]>, import("@scalar/typebox").TObject<{
377
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
377
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
378
378
  }>]>>;
379
379
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
380
380
  'x-scalar-secret-client-id': import("@scalar/typebox").TString;
@@ -410,7 +410,7 @@ export declare const SecretsAuthUnionSchema: import("@scalar/typebox").TUnion<[i
410
410
  }>]>, import("@scalar/typebox").TObject<{
411
411
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
412
412
  }>, import("@scalar/typebox").TObject<{
413
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
413
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
414
414
  }>, import("@scalar/typebox").TObject<{
415
415
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
416
416
  }>]>>;
@@ -475,7 +475,7 @@ export declare const SecretsAuthUnionSchema: import("@scalar/typebox").TUnion<[i
475
475
  }>, import("@scalar/typebox").TObject<{
476
476
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
477
477
  }>]>, import("@scalar/typebox").TObject<{
478
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
478
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
479
479
  }>]>>;
480
480
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
481
481
  refreshUrl: import("@scalar/typebox").TString;
@@ -577,7 +577,7 @@ export declare const SecretsAuthUnionSchema: import("@scalar/typebox").TUnion<[i
577
577
  }>]>, import("@scalar/typebox").TObject<{
578
578
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
579
579
  }>, import("@scalar/typebox").TObject<{
580
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
580
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
581
581
  }>, import("@scalar/typebox").TObject<{
582
582
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
583
583
  }>]>>;
@@ -634,7 +634,7 @@ export declare const SecretsAuthSchema: import("@scalar/typebox").TRecord<import
634
634
  }>, import("@scalar/typebox").TObject<{
635
635
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
636
636
  }>]>, import("@scalar/typebox").TObject<{
637
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
637
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
638
638
  }>]>>;
639
639
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
640
640
  'x-scalar-secret-client-id': import("@scalar/typebox").TString;
@@ -670,7 +670,7 @@ export declare const SecretsAuthSchema: import("@scalar/typebox").TRecord<import
670
670
  }>]>, import("@scalar/typebox").TObject<{
671
671
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
672
672
  }>, import("@scalar/typebox").TObject<{
673
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
673
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
674
674
  }>, import("@scalar/typebox").TObject<{
675
675
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
676
676
  }>]>>;
@@ -735,7 +735,7 @@ export declare const SecretsAuthSchema: import("@scalar/typebox").TRecord<import
735
735
  }>, import("@scalar/typebox").TObject<{
736
736
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
737
737
  }>]>, import("@scalar/typebox").TObject<{
738
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
738
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
739
739
  }>]>>;
740
740
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
741
741
  refreshUrl: import("@scalar/typebox").TString;
@@ -837,7 +837,7 @@ export declare const SecretsAuthSchema: import("@scalar/typebox").TRecord<import
837
837
  }>]>, import("@scalar/typebox").TObject<{
838
838
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
839
839
  }>, import("@scalar/typebox").TObject<{
840
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
840
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
841
841
  }>, import("@scalar/typebox").TObject<{
842
842
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
843
843
  }>]>>;
@@ -2799,7 +2799,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
2799
2799
  }>, import("@scalar/typebox").TObject<{
2800
2800
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2801
2801
  }>]>, import("@scalar/typebox").TObject<{
2802
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
2802
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2803
2803
  }>]>>;
2804
2804
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
2805
2805
  'x-scalar-secret-client-id': import("@scalar/typebox").TString;
@@ -2835,7 +2835,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
2835
2835
  }>]>, import("@scalar/typebox").TObject<{
2836
2836
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
2837
2837
  }>, import("@scalar/typebox").TObject<{
2838
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
2838
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2839
2839
  }>, import("@scalar/typebox").TObject<{
2840
2840
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
2841
2841
  }>]>>;
@@ -2900,7 +2900,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
2900
2900
  }>, import("@scalar/typebox").TObject<{
2901
2901
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2902
2902
  }>]>, import("@scalar/typebox").TObject<{
2903
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
2903
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2904
2904
  }>]>>;
2905
2905
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
2906
2906
  refreshUrl: import("@scalar/typebox").TString;
@@ -3002,7 +3002,7 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
3002
3002
  }>]>, import("@scalar/typebox").TObject<{
3003
3003
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
3004
3004
  }>, import("@scalar/typebox").TObject<{
3005
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
3005
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3006
3006
  }>, import("@scalar/typebox").TObject<{
3007
3007
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
3008
3008
  }>]>>;
@@ -6869,7 +6869,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
6869
6869
  }>, import("@scalar/typebox").TObject<{
6870
6870
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6871
6871
  }>]>, import("@scalar/typebox").TObject<{
6872
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
6872
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6873
6873
  }>]>>;
6874
6874
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
6875
6875
  'x-scalar-secret-client-id': import("@scalar/typebox").TString;
@@ -6905,7 +6905,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
6905
6905
  }>]>, import("@scalar/typebox").TObject<{
6906
6906
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
6907
6907
  }>, import("@scalar/typebox").TObject<{
6908
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
6908
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6909
6909
  }>, import("@scalar/typebox").TObject<{
6910
6910
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
6911
6911
  }>]>>;
@@ -6970,7 +6970,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
6970
6970
  }>, import("@scalar/typebox").TObject<{
6971
6971
  'x-scalar-secret-refresh-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6972
6972
  }>]>, import("@scalar/typebox").TObject<{
6973
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
6973
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6974
6974
  }>]>>;
6975
6975
  password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
6976
6976
  refreshUrl: import("@scalar/typebox").TString;
@@ -7072,7 +7072,7 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
7072
7072
  }>]>, import("@scalar/typebox").TObject<{
7073
7073
  'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
7074
7074
  }>, import("@scalar/typebox").TObject<{
7075
- 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
7075
+ 'x-scalar-secret-redirect-uri': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7076
7076
  }>, import("@scalar/typebox").TObject<{
7077
7077
  'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
7078
7078
  }>]>>;
@@ -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;AAwBnD,QAAA,MAAM,mBAAmB;;;;IAKxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,QAAA,MAAM,iBAAiB;;;;;;;IAMtB,CAAA;AAED,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyC,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
@@ -11,12 +11,14 @@ const SecretsHttpSchema = compose(Type.Object({
11
11
  type: Type.Literal('http'),
12
12
  }), XScalarSecretTokenSchema, XScalarSecretHTTPSchema);
13
13
  const SecretsOAuthFlowCommonSchema = compose(XScalarSecretClientIdSchema, XScalarSecretTokenSchema, XScalarSecretRefreshTokenSchema);
14
+ /** An absent stored redirect must fall back to configuration; an empty string means the user cleared it. */
15
+ const StoredRedirectUriSchema = Type.Partial(XScalarSecretRedirectUriSchema);
14
16
  const SecretsOAuthFlowsSchema = Type.Object({
15
17
  deviceAuthorization: Type.Optional(compose(SecretsOAuthFlowCommonSchema, XScalarSecretClientSecretSchema, XScalarCredentialsLocationSchema)),
16
- implicit: Type.Optional(compose(SecretsOAuthFlowCommonSchema, XScalarSecretRedirectUriSchema)),
18
+ implicit: Type.Optional(compose(SecretsOAuthFlowCommonSchema, StoredRedirectUriSchema)),
17
19
  password: Type.Optional(compose(SecretsOAuthFlowCommonSchema, XScalarSecretHTTPSchema, XScalarSecretClientSecretSchema, XScalarCredentialsLocationSchema)),
18
20
  clientCredentials: Type.Optional(compose(SecretsOAuthFlowCommonSchema, XScalarSecretClientSecretSchema, XScalarCredentialsLocationSchema)),
19
- authorizationCode: Type.Optional(compose(SecretsOAuthFlowCommonSchema, XScalarSecretClientSecretSchema, XScalarSecretRedirectUriSchema, XScalarCredentialsLocationSchema)),
21
+ authorizationCode: Type.Optional(compose(SecretsOAuthFlowCommonSchema, XScalarSecretClientSecretSchema, StoredRedirectUriSchema, XScalarCredentialsLocationSchema)),
20
22
  });
21
23
  const OAuthSchema = compose(Type.Object({
22
24
  type: Type.Literal('oauth2'),
@@ -25,10 +27,10 @@ const OAuthSchema = compose(Type.Object({
25
27
  export const OpenIDConnectSchema = Type.Object({
26
28
  deviceAuthorization: Type.Optional(compose(OAuthFlowDeviceAuthorizationSchema, SecretsOAuthFlowCommonSchema, XScalarSecretClientSecretSchema, XScalarCredentialsLocationSchema)),
27
29
  type: Type.Literal('openIdConnect'),
28
- implicit: Type.Optional(compose(OAuthFlowImplicitSchema, SecretsOAuthFlowCommonSchema, XScalarSecretRedirectUriSchema)),
30
+ implicit: Type.Optional(compose(OAuthFlowImplicitSchema, SecretsOAuthFlowCommonSchema, StoredRedirectUriSchema)),
29
31
  password: Type.Optional(compose(OAuthFlowPasswordSchema, SecretsOAuthFlowCommonSchema, XScalarSecretHTTPSchema, XScalarSecretClientSecretSchema, XScalarCredentialsLocationSchema)),
30
32
  clientCredentials: Type.Optional(compose(OAuthFlowClientCredentialsSchema, SecretsOAuthFlowCommonSchema, XScalarSecretClientSecretSchema, XScalarCredentialsLocationSchema)),
31
- authorizationCode: Type.Optional(compose(OAuthFlowAuthorizationCodeSchema, SecretsOAuthFlowCommonSchema, XScalarSecretClientSecretSchema, XScalarSecretRedirectUriSchema, XScalarCredentialsLocationSchema)),
33
+ authorizationCode: Type.Optional(compose(OAuthFlowAuthorizationCodeSchema, SecretsOAuthFlowCommonSchema, XScalarSecretClientSecretSchema, StoredRedirectUriSchema, XScalarCredentialsLocationSchema)),
32
34
  });
33
35
  /**
34
36
  * AsyncAPI SASL-style broker schemes: all of them authenticate with a username + password pair,
@@ -257,6 +257,8 @@ export type OperationEvents = {
257
257
  name: string;
258
258
  value: string | File | unknown[] | undefined;
259
259
  isDisabled: boolean;
260
+ /** Distinguishes untouched optional fields from deliberate checkbox choices. */
261
+ isDisabledByDefault?: boolean;
260
262
  isArray?: boolean;
261
263
  }[];
262
264
  /** The content type of the request body */
@@ -1 +1 @@
1
- {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAE9F;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,eAAe,GAAG;IAK5B;;;OAGG;IACH,+BAA+B,EAAE,SAAS,CAAA;IAE1C,qCAAqC;IACrC,0BAA0B,EAAE,SAAS,CAAA;IAMrC;;;OAGG;IACH,4BAA4B,EAAE;QAC5B,8DAA8D;QA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AAA;SACpB,CAAA;QACD,uFAAuF;QACvF,IAAI,EAAE,oBAAoB,CAAA;KAC3B,CAAA;IAED;;;OAGG;IACH,oCAAoC,EAAE;QACpC,iDAAiD;QACjD,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;QAClC,2CAA2C;QAC3C,WAAW,EAAE,MAAM,CAAA;QACnB,6FAA6F;QAC7F,IAAI,EAAE,oBAAoB,CAAA;KAC3B,CAAA;IAED;;;;OAIG;IACH,wCAAwC,EAAE;QACxC,iDAAiD;QACjD,OAAO,EAAE;YACP,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,GAAG,SAAS,CAAA;YAC5C,UAAU,EAAE,OAAO,CAAA;YACnB,gFAAgF;YAChF,mBAAmB,CAAC,EAAE,OAAO,CAAA;YAC7B,OAAO,CAAC,EAAE,OAAO,CAAA;SAClB,EAAE,CAAA;QACH,2CAA2C;QAC3C,WAAW,EAAE,MAAM,CAAA;QACnB,6FAA6F;QAC7F,IAAI,EAAE,oBAAoB,CAAA;KAC3B,CAAA;IACD;;OAEG;IACH,0BAA0B,EAAE;QAC1B,6DAA6D;QAC7D,IAAI,EAAE,aAAa,CAAA;QACnB,8CAA8C;QAC9C,KAAK,EAAE,MAAM,CAAA;QACb,wDAAwD;QACxD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAA;KAChD,CAAA;CACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"encode-chunk-name.d.ts","sourceRoot":"","sources":["../../src/helpers/encode-chunk-name.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAU9C,CAAA"}
1
+ {"version":3,"file":"encode-chunk-name.d.ts","sourceRoot":"","sources":["../../src/helpers/encode-chunk-name.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAe9C,CAAA"}
@@ -3,7 +3,12 @@ import { escapeJsonPointer } from '@scalar/json-magic/helpers/escape-json-pointe
3
3
  export const encodeChunkName = (name) => {
4
4
  // JSON Pointer escaping preserves existing names and reserves ~x for filesystem escapes.
5
5
  const escaped = escapeJsonPointer(name).replace(/[^a-zA-Z0-9_.~{}-]/gu, (character) => `~x${character.codePointAt(0)?.toString(16)}~`);
6
- const portable = escaped.replace(/\.+$/, (dots) => dots.replaceAll('.', '~x2e~'));
6
+ // Scan once from the end to avoid regex backtracking over long runs of interior dots.
7
+ let trailingDotsStart = escaped.length;
8
+ while (trailingDotsStart > 0 && escaped[trailingDotsStart - 1] === '.') {
9
+ trailingDotsStart--;
10
+ }
11
+ const portable = escaped.slice(0, trailingDotsStart) + '~x2e~'.repeat(escaped.length - trailingDotsStart);
7
12
  // Windows device names remain reserved even when followed by a file extension.
8
13
  return /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\.|$)/i.test(portable) || portable === '' ? `~x~${portable}` : portable;
9
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"merge-object.d.ts","sourceRoot":"","sources":["../../src/helpers/merge-object.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,YAAY,GACvB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;AAC1B;;;GAGG;AACH,uBAAqB,EACrB,QAAO,GAAG,CAAC,OAAO,CAAa,KAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAsCxB,CAAA"}
1
+ {"version":3,"file":"merge-object.d.ts","sourceRoot":"","sources":["../../src/helpers/merge-object.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,YAAY,GACvB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;AAC1B;;;GAGG;AACH,uBAAqB,EACrB,QAAO,GAAG,CAAC,OAAO,CAAa,KAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CA2CxB,CAAA"}
@@ -35,9 +35,15 @@ export const mergeObjects = (a, b,
35
35
  * Alternatively we may want to prevent this behaviour when merging with defaults and replace the whole array instead
36
36
  */
37
37
  replaceArrays = false, cache = new Set()) => {
38
- for (const key in b) {
39
- if (!(key in a)) {
40
- a[key] = b[key];
38
+ for (const key of Object.keys(b)) {
39
+ if (!Object.hasOwn(a, key)) {
40
+ // A JSON property named __proto__ is data, not an instruction to replace the prototype.
41
+ if (key === '__proto__') {
42
+ Object.defineProperty(a, key, { value: b[key], enumerable: true, configurable: true, writable: true });
43
+ }
44
+ else {
45
+ a[key] = b[key];
46
+ }
41
47
  }
42
48
  else {
43
49
  const aValue = a[key];
@@ -43,6 +43,6 @@ export declare const buildRequestBody: (requestBody: RequestBodyObject | undefin
43
43
  /** The key of the current example */
44
44
  exampleName?: string,
45
45
  /** Selected anyOf/oneOf request-body variants keyed by schema path */
46
- requestBodyCompositionSelection?: Record<string, number>) => RequestBody | null;
46
+ requestBodyCompositionSelection?: Record<string, number>, openapiVersion?: string) => RequestBody | null;
47
47
  export {};
48
48
  //# sourceMappingURL=build-request-body.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/body/build-request-body.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;AAKjG,OAAO,EACL,KAAK,aAAa,EAKnB,MAAM,mBAAmB,CAAA;AAO1B,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,UAAU,CAAA;IAChB,KAAK,EAAE,CACH;QACE,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,GACD;QACE,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,IAAI,CAAA;QACX,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,GACD;QACE,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,IAAI,CAAA;QACX,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CACJ,EAAE,CAAA;CACJ,CAAA;AAwBD,KAAK,UAAU,GAAG;IAChB,IAAI,EAAE,YAAY,CAAA;IAClB,KAAK,EAAE;QACL,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;KACd,EAAE,CAAA;CACJ,CAAA;AAED,KAAK,GAAG,GAAG;IACT,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,UAAU,GACV,GAAG,GACH;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,aAAa,EAAE,CAAA;CAAE,CAAA;AA2CtE;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,iBAAiB,GAAG,SAAS;AAC1C,qCAAqC;AACrC,oBAAuB;AACvB,sEAAsE;AACtE,kCAAkC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACvD,WAAW,GAAG,IA8WhB,CAAA"}
1
+ {"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/body/build-request-body.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;AAKjG,OAAO,EACL,KAAK,aAAa,EAKnB,MAAM,mB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,7 +67,7 @@ export const buildRequestBody = (requestBody,
67
67
  /** The key of the current example */
68
68
  exampleName = 'default',
69
69
  /** Selected anyOf/oneOf request-body variants keyed by schema path */
70
- requestBodyCompositionSelection) => {
70
+ requestBodyCompositionSelection, openapiVersion) => {
71
71
  if (!requestBody) {
72
72
  return null;
73
73
  }
@@ -77,7 +77,7 @@ requestBodyCompositionSelection) => {
77
77
  return null;
78
78
  }
79
79
  /** An example value */
80
- const example = getExampleFromBody(requestBody, bodyContentType, exampleName, requestBodyCompositionSelection);
80
+ const example = getExampleFromBody(requestBody, bodyContentType, exampleName, requestBodyCompositionSelection, openapiVersion);
81
81
  if (!example) {
82
82
  return null;
83
83
  }
@@ -5,14 +5,14 @@ import type { ExampleObject, RequestBodyObject } from '@scalar/workspace-store/s
5
5
  * This is the schema-generation half of {@link getExampleFromBody}. It is exposed on its own so
6
6
  * callers that need to regenerate a body for a freshly selected composition branch (rather than the
7
7
  * edited example that would otherwise shadow it) produce the exact same value the initial example
8
- * does. The schema is deep-resolved first so nested `$ref` members (common for composition branches)
9
- * are materialized instead of emitting `null` for referenced sub-objects.
8
+ * does. Data generation deep-resolves nested `$ref` members. XML retains reference sites so node
9
+ * naming and version-specific wrappers survive serialization.
10
10
  *
11
11
  * Returns `undefined` when there is no schema for the content type.
12
12
  */
13
- export declare const getSchemaExampleFromBody: (requestBody: RequestBodyObject, contentType: string, requestBodyCompositionSelection?: Record<string, number>) => unknown;
13
+ export declare const getSchemaExampleFromBody: (requestBody: RequestBodyObject, contentType: string, requestBodyCompositionSelection?: Record<string, number>, openapiVersion?: string) => unknown;
14
14
  /**
15
15
  * Basically getExample + we generate an example from the schema if no example is found
16
16
  */
17
- export declare const getExampleFromBody: (requestBody: RequestBodyObject, contentType: string, exampleName: string, requestBodyCompositionSelection?: Record<string, number>) => ExampleObject | null;
17
+ export declare const getExampleFromBody: (requestBody: RequestBodyObject, contentType: string, exampleName: string, requestBodyCompositionSelection?: Record<string, number>, openapiVersion?: string) => ExampleObject | null;
18
18
  //# sourceMappingURL=get-request-body-example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-request-body-example.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/body/get-request-body-example.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EAElB,MAAM,8DAA8D,CAAA;AAQrE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GACnC,aAAa,iBAAiB,EAC9B,aAAa,MAAM,EACnB,kCAAkC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACvD,OAwBF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,aAAa,iBAAiB,EAC9B,aAAa,MAAM,EACnB,aAAa,MAAM,EACnB,kCAAkC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACvD,aAAa,GAAG,IAwBlB,CAAA"}
1
+ {"version":3,"file":"get-request-body-example.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/body/get-request-body-example.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EAElB,MAAM,8DAA8D,CAAA;AASrE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GACnC,aAAa,iBAAiB,EAC9B,aAAa,MAAM,EACnB,kCAAkC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACxD,iBAAiB,MAAM,KACtB,OAgCF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,aAAa,iBAAiB,EAC9B,aAAa,MAAM,EACnB,aAAa,MAAM,EACnB,kCAAkC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACxD,iBAAiB,MAAM,KACtB,aAAa,GAAG,IA0ClB,CAAA"}
@@ -1,26 +1,36 @@
1
+ import { isXmlMediaType } from '@scalar/helpers/http/is-xml-media-type';
1
2
  import { parseMimeType } from '@scalar/helpers/http/mime-type';
2
3
  import { getExampleValue } from '../../../helpers/get-example-value.js';
3
4
  import { getResolvedRefDeep } from '../../../helpers/get-resolved-ref-deep.js';
4
5
  import { serializeStreamExample } from '../../../helpers/serialize-stream-example.js';
5
6
  import { getExample } from '../../../request-example/builder/helpers/get-example.js';
6
7
  import { getExampleFromSchema } from '../../../request-example/builder/helpers/get-example-from-schema.js';
8
+ import { getXmlBodyExample } from '../../../request-example/xml/get-xml-body-example.js';
7
9
  /**
8
10
  * Generate a write-mode example directly from a request body's schema, ignoring any stored example.
9
11
  *
10
12
  * This is the schema-generation half of {@link getExampleFromBody}. It is exposed on its own so
11
13
  * callers that need to regenerate a body for a freshly selected composition branch (rather than the
12
14
  * edited example that would otherwise shadow it) produce the exact same value the initial example
13
- * does. The schema is deep-resolved first so nested `$ref` members (common for composition branches)
14
- * are materialized instead of emitting `null` for referenced sub-objects.
15
+ * does. Data generation deep-resolves nested `$ref` members. XML retains reference sites so node
16
+ * naming and version-specific wrappers survive serialization.
15
17
  *
16
18
  * Returns `undefined` when there is no schema for the content type.
17
19
  */
18
- export const getSchemaExampleFromBody = (requestBody, contentType, requestBodyCompositionSelection) => {
20
+ export const getSchemaExampleFromBody = (requestBody, contentType, requestBodyCompositionSelection, openapiVersion) => {
19
21
  const mediaType = requestBody.content?.[contentType];
20
22
  const schema = mediaType?.schema ??
21
23
  (mediaType?.itemSchema && parseMimeType(contentType).type === 'multipart'
22
24
  ? { type: 'array', items: mediaType.itemSchema }
23
25
  : mediaType?.itemSchema);
26
+ if (isXmlMediaType(contentType)) {
27
+ return getXmlBodyExample(mediaType?.schema, undefined, {
28
+ openapiVersion,
29
+ mode: 'write',
30
+ compositionSelection: requestBodyCompositionSelection,
31
+ schemaPath: ['requestBody'],
32
+ }).xml;
33
+ }
24
34
  if (!schema) {
25
35
  return undefined;
26
36
  }
@@ -36,11 +46,25 @@ export const getSchemaExampleFromBody = (requestBody, contentType, requestBodyCo
36
46
  /**
37
47
  * Basically getExample + we generate an example from the schema if no example is found
38
48
  */
39
- export const getExampleFromBody = (requestBody, contentType, exampleName, requestBodyCompositionSelection) => {
49
+ export const getExampleFromBody = (requestBody, contentType, exampleName, requestBodyCompositionSelection, openapiVersion) => {
40
50
  // Return the existing example when it carries a usable value. An example that only has an
41
51
  // `externalValue` (not yet resolved to a `value`) is treated as missing, so we fall back to a
42
52
  // schema-generated example instead of building an empty request body.
43
53
  const example = getExample(requestBody, exampleName, contentType);
54
+ if (isXmlMediaType(contentType)) {
55
+ const result = getXmlBodyExample(requestBody.content?.[contentType]?.schema, example, {
56
+ openapiVersion,
57
+ mode: 'write',
58
+ compositionSelection: requestBodyCompositionSelection,
59
+ schemaPath: ['requestBody'],
60
+ });
61
+ if (result.xml === undefined)
62
+ return null;
63
+ // Consumers select dataValue before value, so retain the serialized result for editor and wire output.
64
+ return example?.dataValue !== undefined
65
+ ? { ...example, value: result.xml, serializedValue: result.xml }
66
+ : { ...example, value: result.xml };
67
+ }
44
68
  const selected = getExampleValue(example);
45
69
  if (example && selected) {
46
70
  const stream = typeof selected.value === 'string' ? undefined : serializeStreamExample(selected.value, contentType, false);
@@ -52,7 +76,7 @@ export const getExampleFromBody = (requestBody, contentType, exampleName, reques
52
76
  return selected.source === 'value' ? example : { ...example, value: selected.value };
53
77
  }
54
78
  // Generate an example from the schema
55
- const schemaExample = getSchemaExampleFromBody(requestBody, contentType, requestBodyCompositionSelection);
79
+ const schemaExample = getSchemaExampleFromBody(requestBody, contentType, requestBodyCompositionSelection, openapiVersion);
56
80
  if (schemaExample === undefined || schemaExample === null) {
57
81
  return null;
58
82
  }
@@ -0,0 +1,19 @@
1
+ import type { DynamicScope } from '../../../helpers/dynamic-ref.js';
2
+ import type { SchemaObject } from '../../../schemas/v3.1/strict/openapi-document.js';
3
+ /** Schema provenance collected only when a format needs more than the generated data. */
4
+ export type ExampleEvaluation = {
5
+ schema: SchemaObject;
6
+ value: unknown;
7
+ path: string[];
8
+ name?: string;
9
+ dynamicScope: DynamicScope;
10
+ children: ExampleEvaluation[];
11
+ };
12
+ /** Per-call capture state; never shared with the JSON result cache. */
13
+ export type ExampleEvaluationState = {
14
+ stack: ExampleEvaluation[];
15
+ root?: ExampleEvaluation;
16
+ };
17
+ /** Internal option: keep the default JSON generation path free of provenance allocations. */
18
+ export declare const EXAMPLE_EVALUATION: unique symbol;
19
+ //# sourceMappingURL=example-evaluation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example-evaluation.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/helpers/example-evaluation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAE1E,yFAAyF;AACzF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,YAAY,CAAA;IACpB,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,YAAY,CAAA;IAC1B,QAAQ,EAAE,iBAAiB,EAAE,CAAA;CAC9B,CAAA;AAED,uEAAuE;AACvE,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,iBAAiB,EAAE,CAAA;IAC1B,IAAI,CAAC,EAAE,iBAAiB,CAAA;CACzB,CAAA;AAED,6FAA6F;AAC7F,eAAO,MAAM,kBAAkB,eAA+B,CAAA"}
@@ -0,0 +1,2 @@
1
+ /** Internal option: keep the default JSON generation path free of provenance allocations. */
2
+ export const EXAMPLE_EVALUATION = Symbol('example-evaluation');