@scalar/workspace-store 0.43.1 → 0.45.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 +17 -0
  2. package/dist/entities/auth/schema.d.ts +30 -0
  3. package/dist/entities/auth/schema.d.ts.map +1 -1
  4. package/dist/events/definitions/document.d.ts +5 -0
  5. package/dist/events/definitions/document.d.ts.map +1 -1
  6. package/dist/events/definitions/ui.d.ts +4 -1
  7. package/dist/events/definitions/ui.d.ts.map +1 -1
  8. package/dist/mutators/document.d.ts +6 -0
  9. package/dist/mutators/document.d.ts.map +1 -1
  10. package/dist/mutators/document.js +11 -0
  11. package/dist/mutators/index.d.ts +2 -0
  12. package/dist/mutators/index.d.ts.map +1 -1
  13. package/dist/request-example/builder/build-request.d.ts.map +1 -1
  14. package/dist/request-example/builder/build-request.js +41 -55
  15. package/dist/request-example/builder/index.d.ts +1 -0
  16. package/dist/request-example/builder/index.d.ts.map +1 -1
  17. package/dist/request-example/builder/request-factory.d.ts +150 -12
  18. package/dist/request-example/builder/request-factory.d.ts.map +1 -1
  19. package/dist/request-example/builder/request-factory.js +3 -9
  20. package/dist/request-example/builder/resolve-request-factory-url.d.ts +11 -0
  21. package/dist/request-example/builder/resolve-request-factory-url.d.ts.map +1 -0
  22. package/dist/request-example/builder/resolve-request-factory-url.js +28 -0
  23. package/dist/request-example/builder/security/build-request-security.d.ts +39 -6
  24. package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
  25. package/dist/request-example/builder/security/build-request-security.js +14 -6
  26. package/dist/request-example/index.d.ts +4 -2
  27. package/dist/request-example/index.d.ts.map +1 -1
  28. package/dist/request-example/index.js +1 -0
  29. package/dist/request-example/variable-store/index.d.ts +7 -0
  30. package/dist/request-example/variable-store/index.d.ts.map +1 -0
  31. package/dist/request-example/variable-store/index.js +41 -0
  32. package/dist/request-example/variable-store/types.d.ts +59 -0
  33. package/dist/request-example/variable-store/types.d.ts.map +1 -0
  34. package/dist/request-example/variable-store/types.js +11 -0
  35. package/dist/schemas/extensions/general/x-post-response.d.ts.map +1 -0
  36. package/dist/schemas/extensions/general/x-pre-request.d.ts +25 -0
  37. package/dist/schemas/extensions/general/x-pre-request.d.ts.map +1 -0
  38. package/dist/schemas/extensions/general/x-pre-request.js +26 -0
  39. package/dist/schemas/extensions/operation/index.d.ts +0 -1
  40. package/dist/schemas/extensions/operation/index.d.ts.map +1 -1
  41. package/dist/schemas/extensions/operation/index.js +0 -1
  42. package/dist/schemas/inmemory-workspace.d.ts +18 -0
  43. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  44. package/dist/schemas/reference-config/index.d.ts +6 -0
  45. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  46. package/dist/schemas/reference-config/settings.d.ts +6 -0
  47. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  48. package/dist/schemas/v3.1/openapi/index.d.ts +4 -0
  49. package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
  50. package/dist/schemas/v3.1/openapi/index.js +5 -1
  51. package/dist/schemas/v3.1/strict/openapi-document.d.ts +217 -1
  52. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  53. package/dist/schemas/v3.1/strict/openapi-document.js +3 -1
  54. package/dist/schemas/v3.1/strict/operation.d.ts +5 -2
  55. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  56. package/dist/schemas/v3.1/strict/operation.js +3 -2
  57. package/dist/schemas/workspace.d.ts +18 -0
  58. package/dist/schemas/workspace.d.ts.map +1 -1
  59. package/package.json +3 -3
  60. package/dist/schemas/extensions/operation/x-post-response.d.ts.map +0 -1
  61. /package/dist/schemas/extensions/{operation → general}/x-post-response.d.ts +0 -0
  62. /package/dist/schemas/extensions/{operation → general}/x-post-response.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @scalar/workspace-store
2
2
 
3
+ ## 0.45.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#8761](https://github.com/scalar/scalar/pull/8761): feat: pass new option on operation create event
8
+
9
+ ## 0.44.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#8762](https://github.com/scalar/scalar/pull/8762): feat: request factory interface improvements
14
+ - [#8695](https://github.com/scalar/scalar/pull/8695): feat: support pre/post request script on operation and document level
15
+
16
+ ### Patch Changes
17
+
18
+ - [#8742](https://github.com/scalar/scalar/pull/8742): fix(workspace-store): openIdConnect retrieve stored token for Authorization header
19
+
3
20
  ## 0.43.1
4
21
 
5
22
  ### Patch Changes
@@ -902,6 +902,8 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
902
902
  }>>;
903
903
  }>, import("@scalar/typebox").TObject<{
904
904
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
905
+ }>, import("@scalar/typebox").TObject<{
906
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
905
907
  }>, import("@scalar/typebox").TObject<{
906
908
  'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
907
909
  }>, import("@scalar/typebox").TObject<{
@@ -1911,6 +1913,10 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
1911
1913
  namespace: import("@scalar/typebox").TString;
1912
1914
  slug: import("@scalar/typebox").TString;
1913
1915
  }>>;
1916
+ }>, import("@scalar/typebox").TObject<{
1917
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1918
+ }>, import("@scalar/typebox").TObject<{
1919
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
1914
1920
  }>]>]>;
1915
1921
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
1916
1922
  id: import("@scalar/typebox").TString;
@@ -2522,6 +2528,8 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
2522
2528
  }>>;
2523
2529
  }>, import("@scalar/typebox").TObject<{
2524
2530
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2531
+ }>, import("@scalar/typebox").TObject<{
2532
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2525
2533
  }>, import("@scalar/typebox").TObject<{
2526
2534
  'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
2527
2535
  }>, import("@scalar/typebox").TObject<{
@@ -3531,6 +3539,10 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
3531
3539
  namespace: import("@scalar/typebox").TString;
3532
3540
  slug: import("@scalar/typebox").TString;
3533
3541
  }>>;
3542
+ }>, import("@scalar/typebox").TObject<{
3543
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3544
+ }>, import("@scalar/typebox").TObject<{
3545
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3534
3546
  }>]>]>;
3535
3547
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
3536
3548
  id: import("@scalar/typebox").TString;
@@ -3959,6 +3971,8 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
3959
3971
  }>>;
3960
3972
  }>, import("@scalar/typebox").TObject<{
3961
3973
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3974
+ }>, import("@scalar/typebox").TObject<{
3975
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3962
3976
  }>, import("@scalar/typebox").TObject<{
3963
3977
  'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
3964
3978
  }>, import("@scalar/typebox").TObject<{
@@ -4968,6 +4982,10 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
4968
4982
  namespace: import("@scalar/typebox").TString;
4969
4983
  slug: import("@scalar/typebox").TString;
4970
4984
  }>>;
4985
+ }>, import("@scalar/typebox").TObject<{
4986
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
4987
+ }>, import("@scalar/typebox").TObject<{
4988
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
4971
4989
  }>]>]>;
4972
4990
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
4973
4991
  id: import("@scalar/typebox").TString;
@@ -5581,6 +5599,8 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
5581
5599
  }>>;
5582
5600
  }>, import("@scalar/typebox").TObject<{
5583
5601
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5602
+ }>, import("@scalar/typebox").TObject<{
5603
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5584
5604
  }>, import("@scalar/typebox").TObject<{
5585
5605
  'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
5586
5606
  }>, import("@scalar/typebox").TObject<{
@@ -6590,6 +6610,10 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
6590
6610
  namespace: import("@scalar/typebox").TString;
6591
6611
  slug: import("@scalar/typebox").TString;
6592
6612
  }>>;
6613
+ }>, import("@scalar/typebox").TObject<{
6614
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6615
+ }>, import("@scalar/typebox").TObject<{
6616
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6593
6617
  }>]>]>;
6594
6618
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
6595
6619
  id: import("@scalar/typebox").TString;
@@ -7018,6 +7042,8 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
7018
7042
  }>>;
7019
7043
  }>, import("@scalar/typebox").TObject<{
7020
7044
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7045
+ }>, import("@scalar/typebox").TObject<{
7046
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
7021
7047
  }>, import("@scalar/typebox").TObject<{
7022
7048
  'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
7023
7049
  }>, import("@scalar/typebox").TObject<{
@@ -8027,6 +8053,10 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
8027
8053
  namespace: import("@scalar/typebox").TString;
8028
8054
  slug: import("@scalar/typebox").TString;
8029
8055
  }>>;
8056
+ }>, import("@scalar/typebox").TObject<{
8057
+ 'x-pre-request': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
8058
+ }>, import("@scalar/typebox").TObject<{
8059
+ 'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
8030
8060
  }>]>]>;
8031
8061
  TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
8032
8062
  id: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/entities/auth/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAoBnD,QAAA,MAAM,mBAAmB;;;;IAKxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,QAAA,MAAM,iBAAiB;;;;;;;IAMtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAQ1D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB3B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEtE,QAAA,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyC,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
@@ -34,5 +34,10 @@ export type DocumentEvents = {
34
34
  /** The name of the document to delete */
35
35
  name: string;
36
36
  };
37
+ /**
38
+ * Update extension fields on the document (e.g. x-pre-request, x-post-response).
39
+ * Merged into the document root.
40
+ */
41
+ 'document:update:extension': Record<string, unknown>;
37
42
  };
38
43
  //# sourceMappingURL=document.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAE5D,iDAAiD;AACjD,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,sBAAsB,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;IAC/C;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAA;IAC9B;;;;OAIG;IACH,4BAA4B,EAAE,OAAO,CAAA;IACrC;;OAEG;IACH,gCAAgC,EAAE;QAChC,+CAA+C;QAC/C,IAAI,EAAE,MAAM,CAAA;QACZ,+CAA+C;QAC/C,IAAI,EAAE,MAAM,CAAA;QACZ,wDAAwD;QACxD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;KACtC,CAAA;IACD;;OAEG;IACH,0BAA0B,EAAE;QAC1B,yCAAyC;QACzC,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA"}
1
+ {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAE5D,iDAAiD;AACjD,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,sBAAsB,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;IAC/C;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAA;IAC9B;;;;OAIG;IACH,4BAA4B,EAAE,OAAO,CAAA;IACrC;;OAEG;IACH,gCAAgC,EAAE;QAChC,+CAA+C;QAC/C,IAAI,EAAE,MAAM,CAAA;QACZ,+CAA+C;QAC/C,IAAI,EAAE,MAAM,CAAA;QACZ,wDAAwD;QACxD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;KACtC,CAAA;IACD;;OAEG;IACH,0BAA0B,EAAE;QAC1B,yCAAyC;QACzC,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD;;;OAGG;IACH,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACrD,CAAA"}
@@ -106,7 +106,10 @@ export type UIEvents = {
106
106
  * Focus the address bar input field.
107
107
  * Typically triggered by keyboard shortcuts for quick navigation.
108
108
  */
109
- 'ui:focus:address-bar': KeyboardEventPayload | undefined;
109
+ 'ui:focus:address-bar': KeyboardEventPayload | {
110
+ /** Whether to clear the address bar before focusing */
111
+ clear?: boolean;
112
+ };
110
113
  /**
111
114
  * Focus the send button to execute a request.
112
115
  * Useful for keyboard-driven workflows.
@@ -1 +1 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAE1E;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,qGAAqG;IACrG,0CAA0C,EAAE,SAAS,CAAA;IACrD,6CAA6C;IAC7C,yBAAyB,EAAE,SAAS,CAAA;IACpC,yCAAyC;IACzC,SAAS,EAAE;QACT,iDAAiD;QACjD,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,gCAAgC;IAChC,UAAU,EAAE;QACV,2DAA2D;QAC3D,GAAG,EAAE,YAAY,CAAA;QACjB,kDAAkD;QAClD,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;IACD,gCAAgC;IAChC,gBAAgB,EAAE;QAChB,wDAAwD;QACxD,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,kDAAkD;QAClD,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;IACD,+CAA+C;IAC/C,aAAa,EAAE;QACb,qDAAqD;QACrD,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,6CAA6C;QAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAA;IACD,cAAc,EAAE;QACd,0BAA0B;QAC1B,OAAO,EAAE,gBAAgB,CAAA;QACzB,+CAA+C;QAC/C,YAAY,EAAE,MAAM,CAAA;QACpB,8CAA8C;QAC9C,WAAW,EAAE,MAAM,CAAA;KACpB,CAAA;IACD,kDAAkD;IAClD,qBAAqB,EAAE;QACrB,kDAAkD;QAClD,UAAU,EA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O,CAAC,EAAE,OAAO,CAAA;QACjB,oDAAoD;QACpD,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,+CAA+C;QAC/C,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,2DAA2D;QAC3D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAA;KACjD,GAAG,CACA;QACE,IAAI,EAAE,UAAU,CAAA;QAChB,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,aAAa,GAAG,gBAAgB,GAAG,SAAS,GAAG,UAAU,CAAA;QACxF,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,GACD;QACE,IAAI,EAAE,WAAW,CAAA;QACjB,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;KAC7C,GACD;QACE,IAAI,EAAE,SAAS,CAAA;QACf,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,UAAU,CAAA;QAClB,WAAW,EAAE,MAAM,CAAA;KACpB,GACD;QACE,IAAI,EAAE,WAAW,CAAA;QACjB,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAA;QAC/C,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,UAAU,CAAA;QAClB,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,CACJ,CAAA;CACF,CAAA"}
@@ -1,6 +1,11 @@
1
1
  import type { WorkspaceStore } from '../client.js';
2
2
  import type { DocumentEvents } from '../events/definitions/document.js';
3
3
  import type { WorkspaceDocument } from '../schemas.js';
4
+ /**
5
+ * Updates extension fields on the document (e.g. x-pre-request, x-post-response).
6
+ * Merges the payload into the document root.
7
+ */
8
+ export declare const updateDocumentExtension: (document: WorkspaceDocument | null, payload: DocumentEvents["document:update:extension"]) => void;
4
9
  /**
5
10
  * Updates the "watch mode" state of the given document.
6
11
  *
@@ -49,6 +54,7 @@ export declare const documentMutatorsFactory: ({ document, store, }: {
49
54
  document: WorkspaceDocument | null;
50
55
  store: WorkspaceStore | null;
51
56
  }) => {
57
+ updateDocumentExtension: (payload: DocumentEvents["document:update:extension"]) => void;
52
58
  updateDocumentInfo: (payload: DocumentEvents["document:update:info"]) => void;
53
59
  updateWatchMode: (payload: DocumentEvents["document:update:watch-mode"]) => void;
54
60
  updateDocumentIcon: (payload: DocumentEvents["document:update:icon"]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/mutators/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,iBAAiB,GAAG,IAAI,EAAE,WAAW,OAAO,SAOrF,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,iBAAiB,GAAG,IAAI,EAClC,SAAS,cAAc,CAAC,sBAAsB,CAAC,SAchD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,iBAAiB,GAAG,IAAI,EAAE,MAAM,MAAM,SASlF,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,cAAc,GAAG,IAAI,EAC5B,SAAS,cAAc,CAAC,gCAAgC,CAAC,kBA8B1D,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,cAAc,GAAG,IAAI,EAAE,SAAS,cAAc,CAAC,0BAA0B,CAAC,SAM/G,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,sBAGrC;IACD,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAA;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ClC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAA;CAC7B;uCAEsC,cAAc,CAAC,2BAA2B,CAAC;kCAEhD,cAAc,CAAC,sBAAsB,CAAC;+BACzC,cAAc,CAAC,4BAA4B,CAAC;kCACzC,cAAc,CAAC,sBAAsB,CAAC;mCACrC,cAAc,CAAC,gCAAgC,CAAC;8BAErD,cAAc,CAAC,0BAA0B,CAAC;CAEvE,CAAA"}
@@ -1,4 +1,14 @@
1
1
  import { mergeObjects } from '../helpers/merge-object.js';
2
+ /**
3
+ * Updates extension fields on the document (e.g. x-pre-request, x-post-response).
4
+ * Merges the payload into the document root.
5
+ */
6
+ export const updateDocumentExtension = (document, payload) => {
7
+ if (!document) {
8
+ return;
9
+ }
10
+ mergeObjects(document, payload);
11
+ };
2
12
  /**
3
13
  * Updates the "watch mode" state of the given document.
4
14
  *
@@ -102,6 +112,7 @@ export const deleteDocument = (store, payload) => {
102
112
  };
103
113
  export const documentMutatorsFactory = ({ document, store, }) => {
104
114
  return {
115
+ updateDocumentExtension: (payload) => updateDocumentExtension(document, payload),
105
116
  updateDocumentInfo: (payload) => updateDocumentInfo(document, payload),
106
117
  updateWatchMode: (payload) => updateWatchMode(document, payload),
107
118
  updateDocumentIcon: (payload) => updateDocumentIcon(document, payload),
@@ -83,6 +83,7 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
83
83
  }) => boolean;
84
84
  };
85
85
  document: {
86
+ updateDocumentExtension: (payload: import("../events/definitions/document.js").DocumentEvents["document:update:extension"]) => void;
86
87
  updateDocumentInfo: (payload: import("../events/definitions/document.js").DocumentEvents["document:update:info"]) => void;
87
88
  updateWatchMode: (payload: import("../events/definitions/document.js").DocumentEvents["document:update:watch-mode"]) => void;
88
89
  updateDocumentIcon: (payload: import("../events/definitions/document.js").DocumentEvents["document:update:icon"]) => void;
@@ -169,6 +170,7 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
169
170
  }) => boolean;
170
171
  };
171
172
  document: {
173
+ updateDocumentExtension: (payload: import("../events/definitions/document.js").DocumentEvents["document:update:extension"]) => void;
172
174
  updateDocumentInfo: (payload: import("../events/definitions/document.js").DocumentEvents["document:update:info"]) => void;
173
175
  updateWatchMode: (payload: import("../events/definitions/document.js").DocumentEvents["document:update:watch-mode"]) => void;
174
176
  updateDocumentIcon: (payload: import("../events/definitions/document.js").DocumentEvents["document:update:icon"]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mutators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAa9C;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAqC/D;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;OAIG;gBACS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mutators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAa9C;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAqC/D;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;OAIG;gBACS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-request.d.ts","sourceRoot":"","sources":["../../../src/request-example/builder/build-request.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAA;AAG/E,eAAO,MAAM,YAAY,GACvB,SAAS,cAAc,EACvB,SAAS;IACP,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACrC;;;;CAwKF,CAAA"}
1
+ {"version":3,"file":"build-request.d.ts","sourceRoot":"","sources":["../../../src/request-example/builder/build-request.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAA;AAI/E,eAAO,MAAM,YAAY,GACvB,SAAS,cAAc,EACvB,SAAS;IACP,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACrC;;;;CA4IF,CAAA"}
@@ -1,9 +1,9 @@
1
- import { replaceEnvVariables, replacePathVariables } from '@scalar/helpers/regex/replace-variables';
2
- import { mergeUrls } from '@scalar/helpers/url/merge-urls';
1
+ import { replaceEnvVariables } from '@scalar/helpers/regex/replace-variables';
3
2
  import { redirectToProxy, shouldUseProxy } from '@scalar/helpers/url/redirect-to-proxy';
4
3
  import { encode as encodeBase64 } from 'js-base64';
5
4
  import { buildRequestCookieHeader } from '../../request-example/builder/header/build-request-cookie-header.js';
6
5
  import { applyAllowReservedToUrl } from '../../request-example/builder/helpers/apply-allow-reserved-to-url.js';
6
+ import { resolveRequestFactoryUrl } from '../../request-example/builder/resolve-request-factory-url.js';
7
7
  export const buildRequest = (request, options) => {
8
8
  const controller = new AbortController();
9
9
  const headers = (() => {
@@ -43,62 +43,48 @@ export const buildRequest = (request, options) => {
43
43
  })();
44
44
  const securityQueryParams = new URLSearchParams();
45
45
  const securityCookies = [];
46
- // Build the request security
47
- request.security.forEach((security) => {
48
- const name = replaceEnvVariables(security.name, options.envVariables);
49
- const securityValue = replaceEnvVariables(security.value, options.envVariables);
50
- if (security.in === 'header') {
51
- // Build the value for the header
52
- const buildValue = (() => {
53
- if (security.type === 'basic') {
54
- return `Basic ${encodeBase64(securityValue)}`;
46
+ // Build the request security unless the consumer opted out via disableSecurity
47
+ if (!request.options?.disableSecurity) {
48
+ request.security.forEach((security) => {
49
+ const name = replaceEnvVariables(security.name, options.envVariables);
50
+ // Format the security value based on its authentication scheme.
51
+ // - For 'basic': prefix with 'Basic' and base64-encode the value (username:password).
52
+ // - For 'bearer': prefix with 'Bearer'.
53
+ // - Otherwise: use the substituted value as is (for API keys, etc).
54
+ const securityValue = (() => {
55
+ const substitutedValue = replaceEnvVariables(security.value, options.envVariables);
56
+ if (security.format === 'basic') {
57
+ return `Basic ${encodeBase64(substitutedValue)}`;
55
58
  }
56
- if (security.type === 'bearer') {
57
- return `Bearer ${securityValue}`;
59
+ if (security.format === 'bearer') {
60
+ return `Bearer ${substitutedValue}`;
58
61
  }
59
- return securityValue;
62
+ return substitutedValue;
60
63
  })();
61
- // Set the header (use replaced header name so {{ env }} placeholders work)
62
- headers.set(name, buildValue);
63
- return;
64
- }
65
- if (security.in === 'query') {
66
- securityQueryParams.set(name, securityValue);
67
- return;
68
- }
69
- if (security.in === 'cookie') {
70
- securityCookies.push({
71
- name: name,
72
- value: securityValue,
73
- isDisabled: false,
74
- });
75
- return;
76
- }
64
+ if (security.in === 'header') {
65
+ // Set the header (use replaced header name so {{ env }} placeholders work)
66
+ headers.set(name, securityValue);
67
+ return;
68
+ }
69
+ if (security.in === 'query') {
70
+ securityQueryParams.set(name, securityValue);
71
+ return;
72
+ }
73
+ if (security.in === 'cookie') {
74
+ securityCookies.push({
75
+ name: name,
76
+ value: securityValue,
77
+ isDisabled: false,
78
+ });
79
+ }
80
+ });
81
+ }
82
+ const requestUrl = resolveRequestFactoryUrl(request, {
83
+ envVariables: options.envVariables,
84
+ securityQueryParams: securityQueryParams,
77
85
  });
78
- const requestUrl = (() => {
79
- // construct replaced path variables
80
- const pathVariables = Object.fromEntries(Object.entries(request.path.variables).map(([key, value]) => [
81
- key,
82
- encodeURIComponent(replaceEnvVariables(value, options.envVariables)),
83
- ]));
84
- const baseUrl = replaceEnvVariables(request.baseUrl, options.envVariables);
85
- const path = replacePathVariables(request.path.raw, pathVariables);
86
- const mergedUrl = mergeUrls(baseUrl, path);
87
- const urlBase = globalThis.window?.location?.origin ?? 'http://localhost:3000';
88
- // Replace the path variables with the environment variables and server variables
89
- const url = new URL(mergedUrl, urlBase);
90
- // Merge security query params
91
- for (const [key, value] of securityQueryParams.entries()) {
92
- url.searchParams.set(replaceEnvVariables(key, options.envVariables), replaceEnvVariables(value, options.envVariables));
93
- }
94
- // Replace the query params with the environment variables
95
- for (const [key, value] of request.query.params.entries()) {
96
- url.searchParams.set(replaceEnvVariables(key, options.envVariables), replaceEnvVariables(value, options.envVariables));
97
- }
98
- return url.toString();
99
- })();
100
- const isUsingProxy = shouldUseProxy(request.proxy.proxyUrl, requestUrl);
101
- const cookies = [...request.cookies.list, ...securityCookies].map((c) => ({
86
+ const isUsingProxy = shouldUseProxy(request.proxyUrl, requestUrl);
87
+ const cookies = [...request.cookies, ...securityCookies].map((c) => ({
102
88
  ...c,
103
89
  name: replaceEnvVariables(c.name, options.envVariables),
104
90
  value: replaceEnvVariables(c.value, options.envVariables),
@@ -115,7 +101,7 @@ export const buildRequest = (request, options) => {
115
101
  }
116
102
  // final url
117
103
  const encodedUrl = applyAllowReservedToUrl(requestUrl, request.allowedReservedQueryParameters ?? new Set());
118
- const finalUrl = isUsingProxy ? redirectToProxy(request.proxy.proxyUrl, encodedUrl) : encodedUrl;
104
+ const finalUrl = isUsingProxy ? redirectToProxy(request.proxyUrl, encodedUrl) : encodedUrl;
119
105
  return {
120
106
  request: new Request(finalUrl, {
121
107
  /**
@@ -9,6 +9,7 @@ export { getExample } from './helpers/get-example.js';
9
9
  export { getExampleFromSchema } from './helpers/get-example-from-schema.js';
10
10
  export { getResolvedUrl } from './helpers/get-resolved-url.js';
11
11
  export { getServerVariables } from './helpers/get-server-variables.js';
12
+ export type { RequestFactory } from './request-factory.js';
12
13
  export { requestFactory } from './request-factory.js';
13
14
  export { buildRequestSecurity } from './security/build-request-security.js';
14
15
  export type { ApiKeyObjectSecret, HttpObjectSecret, OAuth2ObjectSecret, OAuthFlowAuthorizationCodeSecret, OAuthFlowClientCredentialsSecret, OAuthFlowImplicitSecret, OAuthFlowPasswordSecret, OAuthFlowsObjectSecret, OpenIdConnectObjectSecret, SecuritySchemeObjectSecret, } from './security/secret-types.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,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EACL,qBAAqB,EACrB,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,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACxE,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gCAAgC,EAChC,gCAAgC,EAChC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,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,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EACL,qBAAqB,EACrB,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,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACxE,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gCAAgC,EAChC,gCAAgC,EAChC,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,yBAAyB,CAAA"}
@@ -6,30 +6,168 @@ import { type BuildRequestSecurityResult } from '../../request-example/builder/s
6
6
  import type { SecuritySchemeObjectSecret } from '../../request-example/builder/security/secret-types.js';
7
7
  import type { RequestExampleMeta } from '../../request-example/types.js';
8
8
  import { type RequestBody } from './body/build-request-body.js';
9
+ /**
10
+ * RequestFactory
11
+ *
12
+ * Describes the structure of a pre-built request "preview" object for an OpenAPI operation example.
13
+ * This object contains all information about the request input state as currently assembled in the
14
+ * UI or builder, ready to be displayed, edited, or further processed to produce an actual HTTP request.
15
+ *
16
+ * ---
17
+ *
18
+ * ⚠️ EXPERIMENTAL API
19
+ *
20
+ * This type is experimental and may have breaking changes in future releases.
21
+ * Use at your own risk when building custom request handling logic.
22
+ *
23
+ * ---
24
+ *
25
+ * ⚠️ NOTE: Values in this object are NOT environment substituted yet.
26
+ * This type carries raw, user-input or schema-derived values; variable and environment expansion
27
+ * (e.g., turning `/users/{userId}` into `/users/1234`) has NOT been performed at this stage.
28
+ * This allows environment switching and request previews to remain dynamic until just before send.
29
+ *
30
+ * All fields are designed to preserve editable state and display metadata.
31
+ *
32
+ * ---
33
+ *
34
+ * ## Usage
35
+ *
36
+ * You can use the `RequestFactory` object to modify the request before it is sent by the browser.
37
+ * This is useful for custom authentication schemes, request transformations, or debugging.
38
+ *
39
+ * ### Disabling default security handling
40
+ *
41
+ * To apply custom security logic (e.g., custom token prefixes), disable the built-in security handling:
42
+ *
43
+ * ```ts
44
+ * factory.options = { ...factory.options, disableSecurity: true }
45
+ * ```
46
+ *
47
+ * ### Adding a custom prefix to bearer tokens
48
+ *
49
+ * After disabling security, you can iterate over security schemes and apply custom formatting:
50
+ *
51
+ * ```ts
52
+ * factory.options = { ...factory.options, disableSecurity: true }
53
+ *
54
+ * for (const security of factory.security) {
55
+ * if (security.in === 'header' && security.format === 'bearer') {
56
+ * factory.headers.set(security.name, `Bearer CustomPrefix-${security.value}`)
57
+ * }
58
+ * }
59
+ * ```
60
+ *
61
+ * ### Modifying headers
62
+ *
63
+ * ```ts
64
+ * factory.headers.set('X-Custom-Header', 'my-value')
65
+ * factory.headers.delete('User-Agent')
66
+ * ```
67
+ *
68
+ * ### Modifying query parameters
69
+ *
70
+ * ```ts
71
+ * factory.query.set('debug', 'true')
72
+ * factory.query.append('tags', 'foo')
73
+ * ```
74
+ */
9
75
  export type RequestFactory = {
76
+ /**
77
+ * The base API server URL prior to environment or server variable substitution.
78
+ * May still contain placeholders such as `{version}` or `{region}`.
79
+ *
80
+ * @example "https://api.example.com/{version}"
81
+ */
10
82
  baseUrl: string;
83
+ /**
84
+ * Path-related properties for the request.
85
+ */
11
86
  path: {
87
+ /**
88
+ * The variable names and their (unsubstituted) values for all path variables required in this operation.
89
+ * These may still reference environment variables or placeholders if unresolved.
90
+ *
91
+ * @example { "userId": "{env.USER_ID}" }
92
+ */
12
93
  variables: Record<string, string>;
94
+ /**
95
+ * The raw request path string, as entered by the user or read from the OpenAPI schema.
96
+ * Placeholders are not yet substituted.
97
+ *
98
+ * @example "/users/{userId}/settings"
99
+ */
13
100
  raw: string;
14
101
  };
102
+ /**
103
+ * The HTTP method to be used for the request (always uppercase).
104
+ *
105
+ * @example "POST"
106
+ */
15
107
  method: string;
16
- proxy: {
17
- proxyUrl: string;
18
- };
19
- query: {
20
- params: URLSearchParams;
21
- };
108
+ /**
109
+ * The current proxy URL source to use for this request. If used, this typically means the request
110
+ * will be routed through a local dev proxy to support features such as cookie management, CORS, or special
111
+ * authentication.
112
+ * This value is unsubstituted and may reflect environment-driven data.
113
+ *
114
+ * @example "https://proxy.scalar.com"
115
+ */
116
+ proxyUrl?: string;
117
+ /**
118
+ * The raw, (unsubstituted) query parameters for this request, including all from spec and user input.
119
+ * The actual query string is assembled later, after variable and environment expansion.
120
+ */
121
+ query: URLSearchParams;
122
+ /**
123
+ * Headers to be sent with this request, combining spec-provided defaults, user overrides,
124
+ * and (potentially) security-related fields. All header values are unsubstituted at this stage.
125
+ */
22
126
  headers: Headers;
127
+ /**
128
+ * The body payload for the request, or null if not applicable.
129
+ * This supports all body representations specified by OpenAPI (JSON, form, file, etc).
130
+ * Body values are raw and not environment resolved.
131
+ */
23
132
  body: RequestBody | null;
24
- cookies: {
25
- list: XScalarCookie[];
26
- };
133
+ /**
134
+ * The cookies to apply with this request.
135
+ * This array may contain both global cookies and operation-specific cookies.
136
+ * Values are still unsubstituted -- environment/template variables may be present.
137
+ */
138
+ cookies: XScalarCookie[];
139
+ /**
140
+ * The cache mode ("default", "reload", etc) to use for this request.
141
+ * Passed to the fetch client or adapter.
142
+ */
27
143
  cache: RequestCache;
144
+ /**
145
+ * List of all security requirements for this request (e.g., API key, OAuth2, etc.)
146
+ * Each entry reflects a selected Security Scheme.
147
+ * Values (e.g., tokens, secrets) may still be unsubstituted at this point.
148
+ */
28
149
  security: BuildRequestSecurityResult[];
150
+ /**
151
+ * (optional) A set of query parameter keys that should be preserved as-is for reserved/transparent passthrough.
152
+ * This permits special cases where parameters (such as those starting with "_") are not to be validated or rewritten.
153
+ */
29
154
  allowedReservedQueryParameters?: Set<string>;
30
- options?: {
31
- isElectron?: boolean;
32
- };
155
+ /**
156
+ * Advanced request options flag object.
157
+ * These options allow downstream handling to detect and apply additional request context such as runtime type or custom security handling.
158
+ */
159
+ options: Partial<{
160
+ /**
161
+ * If true, the request will be made in an Electron context (node-like).
162
+ * This alters certain behaviors, such as file handling or header management.
163
+ */
164
+ isElectron: boolean;
165
+ /**
166
+ * If true, disables request builder security handling (headers, cookies, etc) in favor of custom logic.
167
+ * Used in cases where the consumer wants to inject security information themselves, possibly with extra prefixes or formatting.
168
+ */
169
+ disableSecurity: boolean;
170
+ }>;
33
171
  };
34
172
  /**
35
173
  * Builds a request object fastory which can be used to build a request object.