@scalar/workspace-store 0.53.0 → 0.54.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 +36 -0
  2. package/dist/entities/auth/schema.d.ts +265 -5
  3. package/dist/entities/auth/schema.d.ts.map +1 -1
  4. package/dist/events/definitions/meta.d.ts +5 -3
  5. package/dist/events/definitions/meta.d.ts.map +1 -1
  6. package/dist/events/definitions/server.d.ts +21 -0
  7. package/dist/events/definitions/server.d.ts.map +1 -1
  8. package/dist/events/definitions/workspace.d.ts +7 -3
  9. package/dist/events/definitions/workspace.d.ts.map +1 -1
  10. package/dist/mutators/index.d.ts +4 -0
  11. package/dist/mutators/index.d.ts.map +1 -1
  12. package/dist/mutators/server.d.ts +26 -0
  13. package/dist/mutators/server.d.ts.map +1 -1
  14. package/dist/mutators/server.js +44 -1
  15. package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
  16. package/dist/request-example/builder/body/build-request-body.js +32 -1
  17. package/dist/request-example/builder/body/serialize-form-property.d.ts +23 -0
  18. package/dist/request-example/builder/body/serialize-form-property.d.ts.map +1 -0
  19. package/dist/request-example/builder/body/serialize-form-property.js +101 -0
  20. package/dist/request-example/builder/header/de-serialize-parameter.d.ts +4 -1
  21. package/dist/request-example/builder/header/de-serialize-parameter.d.ts.map +1 -1
  22. package/dist/request-example/builder/header/de-serialize-parameter.js +19 -13
  23. package/dist/request-example/builder/index.d.ts +1 -0
  24. package/dist/request-example/builder/index.d.ts.map +1 -1
  25. package/dist/request-example/builder/index.js +1 -0
  26. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts +1 -1
  27. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts.map +1 -1
  28. package/dist/request-example/context/security/extract-security-scheme-secrets.js +12 -8
  29. package/dist/request-example/context/security/merge-security.d.ts +1 -1
  30. package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
  31. package/dist/request-example/context/security/merge-security.js +2 -2
  32. package/dist/request-example/index.d.ts +1 -1
  33. package/dist/request-example/index.d.ts.map +1 -1
  34. package/dist/request-example/index.js +1 -1
  35. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +1 -3
  36. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
  37. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +0 -2
  38. package/dist/schemas/extensions/operation/index.d.ts +1 -1
  39. package/dist/schemas/extensions/operation/index.d.ts.map +1 -1
  40. package/dist/schemas/extensions/operation/x-code-samples.d.ts +71 -0
  41. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
  42. package/dist/schemas/extensions/operation/x-code-samples.js +50 -7
  43. package/dist/schemas/reference-config/index.d.ts +53 -1
  44. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  45. package/dist/schemas/reference-config/settings.d.ts +53 -1
  46. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  47. package/dist/schemas/v3.1/openapi/index.d.ts +0 -1
  48. package/dist/schemas/v3.1/openapi/index.d.ts.map +1 -1
  49. package/dist/schemas/v3.1/strict/info.d.ts +0 -1
  50. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
  51. package/dist/schemas/v3.1/strict/openapi-document.d.ts +1855 -35
  52. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  53. package/dist/schemas/v3.1/strict/operation.d.ts +25 -0
  54. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  55. package/dist/schemas/v3.1/strict/schema.d.ts +128 -0
  56. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  57. package/dist/schemas/v3.1/strict/schema.js +16 -0
  58. package/dist/schemas/workspace-specification/index.d.ts +1 -1
  59. package/dist/schemas/workspace.d.ts +2 -3
  60. package/dist/schemas/workspace.d.ts.map +1 -1
  61. package/dist/schemas/workspace.js +5 -1
  62. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"schema.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyC,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
@@ -1,4 +1,3 @@
1
- import type { AvailableClients } from '@scalar/types/snippetz';
2
1
  /** Event definitions for the workspace/document meta */
3
2
  export type MetaEvents = {
4
3
  /**
@@ -10,8 +9,11 @@ export type MetaEvents = {
10
9
  */
11
10
  'update:active-document': string;
12
11
  /**
13
- * Update the selected client on the workspace
12
+ * Update the selected client on the workspace.
13
+ * Either a built-in client id (e.g. `js/fetch`) or a custom sample id (e.g. `custom/python`).
14
+ *
15
+ * See the note in `workspace.ts` on why this is a plain string.
14
16
  */
15
- 'update:selected-client': AvailableClients[number];
17
+ 'update:selected-client': string;
16
18
  };
17
19
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,wDAAwD;AACxD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAA;IAC3B;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAA;IAChC;;OAEG;IACH,wBAAwB,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CACnD,CAAA"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/meta.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,kBAAkB,EAAE,OAAO,CAAA;IAC3B;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAA;IAChC;;;;;OAKG;IACH,wBAAwB,EAAE,MAAM,CAAA;CACjC,CAAA"}
@@ -75,5 +75,26 @@ export type ServerEvents = {
75
75
  /** The meta information for the server */
76
76
  meta: ServerMeta;
77
77
  };
78
+ /**
79
+ * Update the selected server for an AsyncAPI document.
80
+ *
81
+ * AsyncAPI servers are a named map (rather than an array of `url`), so the
82
+ * selection is identified by the server name instead of an index or URL.
83
+ */
84
+ 'asyncapi-server:update:selected': {
85
+ /** The name (key in `document.servers`) of the server to select */
86
+ name: string;
87
+ };
88
+ /**
89
+ * Update a server variable for an AsyncAPI document, identified by server name.
90
+ */
91
+ 'asyncapi-server:update:variables': {
92
+ /** The name (key in `document.servers`) of the server to update */
93
+ name: string;
94
+ /** The key of the variable to update */
95
+ key: string;
96
+ /** The new value of the variable */
97
+ value: string;
98
+ };
78
99
  };
79
100
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AA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,CAAA;KACjB,CAAA;CACF,CAAA"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAE1E,MAAM,MAAM,UAAU,GAClB;IACE,IAAI,EAAE,UAAU,CAAA;CACjB,GACD;IACE,IAAI,EAAE,WAAW,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;CACnB,CAAA;AAEL,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,2BAA2B,EAAE;QAC3B,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,mBAAmB,EAAE;QACnB,8CAA8C;QAC9C,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,kEAAkE;QAClE,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,sBAAsB,EAAE;QACtB,wCAAwC;QACxC,KAAK,EAAE,MAAM,CAAA;QACb,uCAAuC;QACvC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;QAC7B,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,yBAAyB,EAAE;QACzB,wCAAwC;QACxC,KAAK,EAAE,MAAM,CAAA;QACb,wCAAwC;QACxC,GAAG,EAAE,MAAM,CAAA;QACX,oCAAoC;QACpC,KAAK,EAAE,MAAM,CAAA;QACb,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,wBAAwB,EAAE;QACxB,sCAAsC;QACtC,GAAG,EAAE,MAAM,CAAA;QACX,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,sBAAsB,EAAE;QACtB,wCAAwC;QACxC,KAAK,EAAE,MAAM,CAAA;QACb,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;OAEG;IACH,sBAAsB,EAAE;QACtB,0CAA0C;QAC1C,IAAI,EAAE,UAAU,CAAA;KACjB,CAAA;IACD;;;;;OAKG;IACH,iCAAiC,EAAE;QACjC,mEAAmE;QACnE,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD;;OAEG;IACH,kCAAkC,EAAE;QAClC,mEAAmE;QACnE,IAAI,EAAE,MAAM,CAAA;QACZ,wCAAwC;QACxC,GAAG,EAAE,MAAM,CAAA;QACX,oCAAoC;QACpC,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA"}
@@ -1,4 +1,3 @@
1
- import type { AvailableClient } from '@scalar/types/snippetz';
2
1
  import type { ColorMode } from '../../schemas/workspace.js';
3
2
  /** Event definitions for the openapi document */
4
3
  export type WorkspaceEvents = {
@@ -15,9 +14,14 @@ export type WorkspaceEvents = {
15
14
  */
16
15
  'workspace:update:theme': string | undefined;
17
16
  /**
18
- * Update the selected client on the workspace
17
+ * Update the selected client on the workspace.
18
+ * Either a built-in client id (e.g. `js/fetch`) or a custom sample id (e.g. `custom/python`).
19
+ *
20
+ * Typed as a plain string: unioning the custom ids with the large client-id union trips
21
+ * TypeScript's "union too complex" limit when this event map is embedded in a Vue
22
+ * `defineProps`. The set of valid values is enforced at runtime instead.
19
23
  */
20
- 'workspace:update:selected-client': AvailableClient;
24
+ 'workspace:update:selected-client': string;
21
25
  /**
22
26
  * Update the active environment on the workspace
23
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9C;;OAEG;IACH,6BAA6B,EAAE,SAAS,CAAA;IACxC;;OAEG;IACH,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5C;;OAEG;IACH,kCAAkC,EAAE,eAAe,CAAA;IACnD;;OAEG;IACH,qCAAqC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpD;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAA;CAChC,CAAA"}
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9C;;OAEG;IACH,6BAA6B,EAAE,SAAS,CAAA;IACxC;;OAEG;IACH,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5C;;;;;;;OAOG;IACH,kCAAkC,EAAE,MAAM,CAAA;IAC1C;;OAEG;IACH,qCAAqC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpD;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAA;CAChC,CAAA"}
@@ -119,6 +119,8 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
119
119
  clearServers: (payload: import("../events/definitions/server.js").ServerEvents["server:clear:servers"]) => void;
120
120
  updateServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["server:update:variables"]) => import("../schemas/v3.1/strict/server-variable.js").ServerVariableObject | undefined;
121
121
  updateSelectedServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:selected"]) => string | undefined;
122
+ updateSelectedAsyncApiServer: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
123
+ updateAsyncApiServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:variables"]) => import("@scalar/types/asyncapi/3.1").AsyncApiServerVariableObject | undefined;
122
124
  };
123
125
  tag: {
124
126
  createTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:create:tag"]) => void;
@@ -208,6 +210,8 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
208
210
  clearServers: (payload: import("../events/definitions/server.js").ServerEvents["server:clear:servers"]) => void;
209
211
  updateServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["server:update:variables"]) => import("../schemas/v3.1/strict/server-variable.js").ServerVariableObject | undefined;
210
212
  updateSelectedServer: (payload: import("../events/definitions/server.js").ServerEvents["server:update:selected"]) => string | undefined;
213
+ updateSelectedAsyncApiServer: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
214
+ updateAsyncApiServerVariables: (payload: import("../events/definitions/server.js").ServerEvents["asyncapi-server:update:variables"]) => import("@scalar/types/asyncapi/3.1").AsyncApiServerVariableObject | undefined;
211
215
  };
212
216
  tag: {
213
217
  createTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:create:tag"]) => 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,3 +1,4 @@
1
+ import type { AsyncApiServerVariableObject } from '@scalar/types/asyncapi/3.1';
1
2
  import type { ServerEvents } from '../events/definitions/server.js';
2
3
  import { type ServerObject } from '../schemas/v3.1/strict/openapi-document.js';
3
4
  import type { WorkspaceDocument } from '../schemas/workspace.js';
@@ -62,6 +63,29 @@ export declare const updateServerVariables: (document: WorkspaceDocument | null,
62
63
  * @returns the url of the selected server or undefined if the target is not found
63
64
  */
64
65
  export declare const updateSelectedServer: (document: WorkspaceDocument | null, { url, meta }: ServerEvents["server:update:selected"]) => string | undefined;
66
+ /**
67
+ * Updates the selected server for an AsyncAPI document.
68
+ *
69
+ * AsyncAPI servers are a named map, so the selection is stored as the server
70
+ * name in `x-scalar-selected-server`. There is always an effective server
71
+ * (`getSelectedAsyncApiServer` falls back to the first one), so this simply sets
72
+ * the selection rather than toggling it off.
73
+ *
74
+ * @param document - The document to update the selected server in
75
+ * @param name - The name of the server to select
76
+ * @returns the name of the selected server or undefined if the document is not AsyncAPI
77
+ */
78
+ export declare const updateSelectedAsyncApiServer: (document: WorkspaceDocument | null, { name }: ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
79
+ /**
80
+ * Updates a server variable for an AsyncAPI document, identified by server name.
81
+ *
82
+ * @param document - The document to update the server variables in
83
+ * @param name - The name of the server to update
84
+ * @param key - The key of the variable to update
85
+ * @param value - The new value of the variable
86
+ * @returns the updated variable or undefined if it is not found
87
+ */
88
+ export declare const updateAsyncApiServerVariables: (document: WorkspaceDocument | null, { name, key, value }: ServerEvents["asyncapi-server:update:variables"]) => AsyncApiServerVariableObject | undefined;
65
89
  export declare const serverMutatorsFactory: ({ document }: {
66
90
  document: WorkspaceDocument | null;
67
91
  }) => {
@@ -72,5 +96,7 @@ export declare const serverMutatorsFactory: ({ document }: {
72
96
  clearServers: (payload: ServerEvents["server:clear:servers"]) => void;
73
97
  updateServerVariables: (payload: ServerEvents["server:update:variables"]) => import("../schemas/v3.1/strict/openapi-document.js").ServerVariableObject | undefined;
74
98
  updateSelectedServer: (payload: ServerEvents["server:update:selected"]) => string | undefined;
99
+ updateSelectedAsyncApiServer: (payload: ServerEvents["asyncapi-server:update:selected"]) => string | undefined;
100
+ updateAsyncApiServerVariables: (payload: ServerEvents["asyncapi-server:update:variables"]) => AsyncApiServerVariableObject | undefined;
75
101
  };
76
102
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mutators/server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,6BAA6B,CAAA;AAK3E,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,wCAAwC,CAAA;AAC9F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAyB5D;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAC5B,UAAU,iBAAiB,GAAG,IAAI,EAClC,UAAU,YAAY,CAAC,2BAA2B,CAAC,+BAUpD,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AAO,MAAM,4BAA4B,GACvC,UAAU,iBAAiB,GAAG,IAAI,EAClC,UAAU,YAAY,CAAC,iCAAiC,CAAC,KACxD,MAAM,GAAG,SAOX,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,iBAAiB,GAAG,IAAI,EAClC,sBAAsB,YAAY,CAAC,kCAAkC,CAAC,KACrE,4BAA4B,GAAG,SAcjC,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,cAAc;IAAE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAAE;iCAEzD,YAAY,CAAC,2BAA2B,CAAC;yBACjD,YAAY,CAAC,mBAAmB,CAAC;4BAC9B,YAAY,CAAC,sBAAsB,CAAC;4BACpC,YAAY,CAAC,sBAAsB,CAAC;4BACpC,YAAY,CAAC,sBAAsB,CAAC;qCAC3B,YAAY,CAAC,yBAAyB,CAAC;oCAExC,YAAY,CAAC,wBAAwB,CAAC;4CAC9B,YAAY,CAAC,iCAAiC,CAAC;6CAE9C,YAAY,CAAC,kCAAkC,CAAC;CAG5F,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { findVariables } from '@scalar/helpers/regex/find-variables';
2
2
  import { getResolvedRef } from '../helpers/get-resolved-ref.js';
3
3
  import { unpackProxyObject } from '../helpers/unpack-proxy.js';
4
- import { isOpenApiDocument } from '../schemas/type-guards.js';
4
+ import { isAsyncApiDocument, isOpenApiDocument } from '../schemas/type-guards.js';
5
5
  import { coerceValue } from '../schemas/typebox-coerce.js';
6
6
  import { ServerObjectSchema } from '../schemas/v3.1/strict/openapi-document.js';
7
7
  /**
@@ -218,6 +218,47 @@ export const updateSelectedServer = (document, { url, meta }) => {
218
218
  target['x-scalar-selected-server'] = target['x-scalar-selected-server'] === url ? '' : url;
219
219
  return target['x-scalar-selected-server'];
220
220
  };
221
+ /**
222
+ * Updates the selected server for an AsyncAPI document.
223
+ *
224
+ * AsyncAPI servers are a named map, so the selection is stored as the server
225
+ * name in `x-scalar-selected-server`. There is always an effective server
226
+ * (`getSelectedAsyncApiServer` falls back to the first one), so this simply sets
227
+ * the selection rather than toggling it off.
228
+ *
229
+ * @param document - The document to update the selected server in
230
+ * @param name - The name of the server to select
231
+ * @returns the name of the selected server or undefined if the document is not AsyncAPI
232
+ */
233
+ export const updateSelectedAsyncApiServer = (document, { name }) => {
234
+ if (!isAsyncApiDocument(document)) {
235
+ return undefined;
236
+ }
237
+ document['x-scalar-selected-server'] = name;
238
+ return document['x-scalar-selected-server'];
239
+ };
240
+ /**
241
+ * Updates a server variable for an AsyncAPI document, identified by server name.
242
+ *
243
+ * @param document - The document to update the server variables in
244
+ * @param name - The name of the server to update
245
+ * @param key - The key of the variable to update
246
+ * @param value - The new value of the variable
247
+ * @returns the updated variable or undefined if it is not found
248
+ */
249
+ export const updateAsyncApiServerVariables = (document, { name, key, value }) => {
250
+ if (!isAsyncApiDocument(document)) {
251
+ return undefined;
252
+ }
253
+ const server = getResolvedRef(document.servers?.[name]);
254
+ const variable = server?.variables?.[key] ? getResolvedRef(server.variables[key]) : undefined;
255
+ if (!variable) {
256
+ console.error('Variable not found', key, name);
257
+ return undefined;
258
+ }
259
+ variable.default = value;
260
+ return variable;
261
+ };
221
262
  export const serverMutatorsFactory = ({ document }) => {
222
263
  return {
223
264
  initializeServers: (payload) => initializeServers(document, payload),
@@ -227,5 +268,7 @@ export const serverMutatorsFactory = ({ document }) => {
227
268
  clearServers: (payload) => clearServers(document, payload),
228
269
  updateServerVariables: (payload) => updateServerVariables(document, payload),
229
270
  updateSelectedServer: (payload) => updateSelectedServer(document, payload),
271
+ updateSelectedAsyncApiServer: (payload) => updateSelectedAsyncApiServer(document, payload),
272
+ updateAsyncApiServerVariables: (payload) => updateAsyncApiServerVariables(document, payload),
230
273
  };
231
274
  };
@@ -1 +1 @@
1
- {"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/body/build-request-body.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;AAMjG,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;KACd,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;AAED,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,GAAG,QAAQ,GAAG,UAAU,GAAG,GAAG,CAAA;AAiCrD;;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,IA+OhB,CAAA"}
1
+ {"version":3,"file":"build-request-body.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/body/build-request-body.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAA;AAOjG,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;KACd,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;AAED,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,GAAG,QAAQ,GAAG,UAAU,GAAG,GAAG,CAAA;AAiCrD;;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,IAkRhB,CAAA"}
@@ -6,6 +6,7 @@ import { unpackProxyObject } from '@scalar/workspace-store/helpers/unpack-proxy'
6
6
  import { isObjectSchema } from '@scalar/workspace-store/schemas/v3.1/strict/type-guards';
7
7
  import { getExampleFromBody } from './get-request-body-example.js';
8
8
  import { getSelectedBodyContentType } from './get-selected-body-content-type.js';
9
+ import { serializeFormPropertyWithEncoding } from './serialize-form-property.js';
9
10
  const getMultipartEncodingContentType = (requestBody, bodyContentType, fieldName) => requestBody.content[bodyContentType]?.encoding?.[fieldName]?.contentType;
10
11
  /**
11
12
  * Build a predicate that recognizes multipart rows whose dotted name encodes a path
@@ -108,7 +109,18 @@ requestBodyCompositionSelection) => {
108
109
  if (!name) {
109
110
  return;
110
111
  }
111
- const partContentType = result.mode === 'formdata' ? getMultipartEncodingContentType(requestBody, bodyContentType, name) : undefined;
112
+ const partEncoding = requestBody.content[bodyContentType]?.encoding?.[name];
113
+ // When the encoding sets style/explode, serialize objects/arrays RFC6570-style
114
+ // (bracket or exploded notation) instead of JSON, so the wire request matches the
115
+ // generated code snippet.
116
+ const styleParts = serializeFormPropertyWithEncoding(name, value, partEncoding);
117
+ if (styleParts) {
118
+ for (const part of styleParts) {
119
+ result.value.push({ type: 'text', key: part.key, value: part.value });
120
+ }
121
+ return;
122
+ }
123
+ const partContentType = result.mode === 'formdata' ? partEncoding?.contentType : undefined;
112
124
  // Handle file uploads
113
125
  if (value instanceof File && result.mode === 'formdata') {
114
126
  /**
@@ -161,6 +173,15 @@ requestBodyCompositionSelection) => {
161
173
  // Convert object properties to form fields
162
174
  for (const [key, value] of Object.entries(example.value)) {
163
175
  if (key && value !== undefined && value !== null) {
176
+ const partEncoding = requestBody.content[bodyContentType]?.encoding?.[key];
177
+ // Encoding style/explode turns objects into bracket or exploded notation.
178
+ const styleParts = serializeFormPropertyWithEncoding(key, value, partEncoding);
179
+ if (styleParts) {
180
+ for (const part of styleParts) {
181
+ result.value.push({ key: part.key, value: part.value });
182
+ }
183
+ continue;
184
+ }
164
185
  const stringValue = typeof value === 'object' && value !== null ? JSON.stringify(unpackProxyObject(value)) : String(value);
165
186
  result.value.push({
166
187
  key,
@@ -180,6 +201,16 @@ requestBodyCompositionSelection) => {
180
201
  if (!key || value === undefined || value === null) {
181
202
  continue;
182
203
  }
204
+ const partEncoding = requestBody.content[bodyContentType]?.encoding?.[key];
205
+ // Encoding style/explode turns objects into bracket or exploded notation instead of
206
+ // the default single JSON part.
207
+ const styleParts = serializeFormPropertyWithEncoding(key, value, partEncoding);
208
+ if (styleParts) {
209
+ for (const part of styleParts) {
210
+ result.value.push({ type: 'text', key: part.key, value: part.value });
211
+ }
212
+ continue;
213
+ }
183
214
  const partContentType = getMultipartEncodingContentType(requestBody, bodyContentType, key);
184
215
  if (value instanceof File) {
185
216
  const unwrappedValue = unpackProxyObject(value);
@@ -0,0 +1,23 @@
1
+ import type { EncodingObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ /** A single serialized form field, ready to become a multipart part or a urlencoded pair. */
3
+ export type SerializedFormProperty = {
4
+ key: string;
5
+ value: string;
6
+ };
7
+ /**
8
+ * Serialize a `multipart/form-data` or `application/x-www-form-urlencoded` property
9
+ * according to its OpenAPI Encoding Object when `style` / `explode` / `allowReserved`
10
+ * is set. The value is serialized RFC6570-style (like a query parameter) into one or
11
+ * more key/value parts — for example `style: deepObject` turns `{ address: { city } }`
12
+ * into `address[city]=...` bracket notation, and `style: form, explode: true` breaks an
13
+ * object into one part per property.
14
+ *
15
+ * Returns `null` when the encoding does not opt into style-based serialization, so callers
16
+ * keep their default handling (JSON for objects, `contentType` parts, file uploads). This
17
+ * is shared by the request builder (`build-request-body`) and the code-snippet generator
18
+ * (`process-body`) so the request sent over the wire matches the generated snippet.
19
+ *
20
+ * @see https://spec.openapis.org/oas/v3.1.1.html#encoding-object
21
+ */
22
+ export declare const serializeFormPropertyWithEncoding: (key: string, value: unknown, encoding: EncodingObject | undefined) => SerializedFormProperty[] | null;
23
+ //# sourceMappingURL=serialize-form-property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialize-form-property.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/body/serialize-form-property.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AASlG,6FAA6F;AAC7F,MAAM,MAAM,sBAAsB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAcnE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iCAAiC,GAC5C,KAAK,MAAM,EACX,OAAO,OAAO,EACd,UAAU,cAAc,GAAG,SAAS,KACnC,sBAAsB,EAAE,GAAG,IA4E7B,CAAA"}
@@ -0,0 +1,101 @@
1
+ import { unpackProxyObject } from '@scalar/workspace-store/helpers/unpack-proxy';
2
+ import { serializeDeepObjectStyle, serializeFormStyle, serializePipeDelimitedStyle, serializeSpaceDelimitedStyle, } from '../header/serialize-parameter.js';
3
+ /**
4
+ * Stringify a value emitted by `serializeFormStyle` into a form field value.
5
+ *
6
+ * Form-style serialization only addresses one level of nesting per RFC6570; deeper
7
+ * structures (an object or array still sitting in `entry.value`) are spec-undefined.
8
+ * JSON-stringify them so the output stays readable instead of `String(value)` returning
9
+ * `"[object Object]"`. Primitives pass through `String()` to preserve the existing wire
10
+ * shape (e.g. `true` -> `"true"`).
11
+ */
12
+ const stringifyEntryValue = (value) => value !== null && typeof value === 'object' ? JSON.stringify(value) : String(value);
13
+ /**
14
+ * Serialize a `multipart/form-data` or `application/x-www-form-urlencoded` property
15
+ * according to its OpenAPI Encoding Object when `style` / `explode` / `allowReserved`
16
+ * is set. The value is serialized RFC6570-style (like a query parameter) into one or
17
+ * more key/value parts — for example `style: deepObject` turns `{ address: { city } }`
18
+ * into `address[city]=...` bracket notation, and `style: form, explode: true` breaks an
19
+ * object into one part per property.
20
+ *
21
+ * Returns `null` when the encoding does not opt into style-based serialization, so callers
22
+ * keep their default handling (JSON for objects, `contentType` parts, file uploads). This
23
+ * is shared by the request builder (`build-request-body`) and the code-snippet generator
24
+ * (`process-body`) so the request sent over the wire matches the generated snippet.
25
+ *
26
+ * @see https://spec.openapis.org/oas/v3.1.1.html#encoding-object
27
+ */
28
+ export const serializeFormPropertyWithEncoding = (key, value, encoding) => {
29
+ /**
30
+ * Per OpenAPI 3.1.x: when style, explode, or allowReserved is explicitly set, the value
31
+ * is serialized as if it were a query-style parameter and contentType is ignored.
32
+ */
33
+ const hasFormStyle = !!encoding &&
34
+ (encoding.style !== undefined || encoding.explode !== undefined || encoding.allowReserved !== undefined);
35
+ if (!hasFormStyle) {
36
+ return null;
37
+ }
38
+ /**
39
+ * Style is a no-op for primitives, and RFC6570 expansion of binary data is undefined
40
+ * (spec §Appendix C). Files and arrays containing Files keep their dedicated handling in
41
+ * the caller, so we bail out and let the default path emit those parts.
42
+ */
43
+ if (typeof value !== 'object' ||
44
+ value === null ||
45
+ value instanceof File ||
46
+ (Array.isArray(value) && value.some((item) => item instanceof File))) {
47
+ return null;
48
+ }
49
+ const unpacked = unpackProxyObject(value);
50
+ /**
51
+ * OAS Encoding follows query-parameter defaults: when no `style` is set the default is
52
+ * "form"; when no `explode` is set the default is `true` for "form" and `false` otherwise.
53
+ */
54
+ const style = encoding?.style ?? 'form';
55
+ const explode = encoding?.explode ?? style === 'form';
56
+ const params = [];
57
+ if (style === 'deepObject') {
58
+ if (Array.isArray(unpacked)) {
59
+ /**
60
+ * deepObject-on-array is marked n/a by the spec; fall back to the form/explode:true
61
+ * shape so the array still reaches the wire instead of being silently dropped.
62
+ */
63
+ const serialized = serializeFormStyle(unpacked, true);
64
+ if (Array.isArray(serialized)) {
65
+ for (const entry of serialized) {
66
+ params.push({ key: entry.key || key, value: stringifyEntryValue(entry.value) });
67
+ }
68
+ }
69
+ else {
70
+ params.push({ key, value: String(serialized) });
71
+ }
72
+ }
73
+ else {
74
+ for (const entry of serializeDeepObjectStyle(key, unpacked)) {
75
+ params.push({ key: entry.key, value: String(entry.value) });
76
+ }
77
+ }
78
+ }
79
+ else if (style === 'spaceDelimited') {
80
+ params.push({ key, value: String(serializeSpaceDelimitedStyle(unpacked)) });
81
+ }
82
+ else if (style === 'pipeDelimited') {
83
+ params.push({ key, value: String(serializePipeDelimitedStyle(unpacked)) });
84
+ }
85
+ else {
86
+ const serialized = serializeFormStyle(unpacked, explode);
87
+ if (Array.isArray(serialized)) {
88
+ for (const entry of serialized) {
89
+ /**
90
+ * Arrays: `entry.key === ''` -> fall back to the outer name.
91
+ * Objects: `entry.key` is the inner property name (the spec strips the outer name).
92
+ */
93
+ params.push({ key: entry.key || key, value: stringifyEntryValue(entry.value) });
94
+ }
95
+ }
96
+ else {
97
+ params.push({ key, value: String(serialized) });
98
+ }
99
+ }
100
+ return params;
101
+ };
@@ -1,4 +1,7 @@
1
1
  import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
- /** Helper that de-serializes the example value based on the parameter type */
2
+ /**
3
+ * Coerces a parameter example from the UI (always a string from CodeInput) into a value
4
+ * request building can serialize. Only structured types are parsed; primitives stay as strings.
5
+ */
3
6
  export declare const deSerializeParameter: (example: unknown, param: ParameterObject) => any;
4
7
  //# sourceMappingURL=de-serialize-parameter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"de-serialize-parameter.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/header/de-serialize-parameter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,8DAA8D,CAAA;AAErE,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,EAAE,OAAO,eAAe,QAS5E,CAAA"}
1
+ {"version":3,"file":"de-serialize-parameter.d.ts","sourceRoot":"","sources":["../../../../src/request-example/builder/header/de-serialize-parameter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,8DAA8D,CAAA;AAErE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,EAAE,OAAO,eAAe,QAS5E,CAAA"}
@@ -1,5 +1,8 @@
1
1
  import { getResolvedRef } from '@scalar/workspace-store/helpers/get-resolved-ref';
2
- /** Helper that de-serializes the example value based on the parameter type */
2
+ /**
3
+ * Coerces a parameter example from the UI (always a string from CodeInput) into a value
4
+ * request building can serialize. Only structured types are parsed; primitives stay as strings.
5
+ */
3
6
  export const deSerializeParameter = (example, param) => {
4
7
  if ('content' in param) {
5
8
  return deSerializeContentExample(example, Object.keys(param.content ?? {})[0] ?? '');
@@ -9,39 +12,42 @@ export const deSerializeParameter = (example, param) => {
9
12
  }
10
13
  return example;
11
14
  };
12
- /** De-serialize the example value based on the content type */
15
+ /**
16
+ * Content-based parameters (e.g. `application/json`) may hold full JSON payloads;
17
+ * parse those so nested structure is available to serializers.
18
+ */
13
19
  const deSerializeContentExample = (example, contentType) => {
14
20
  if (typeof example === 'string' && contentType.includes('json')) {
15
21
  try {
16
22
  return JSON.parse(example);
17
23
  }
18
24
  catch {
19
- // Ignore the error and return the original example
25
+ return example;
20
26
  }
21
27
  }
22
28
  return example;
23
29
  };
24
- /** Create a set of all the types we wish to parse as JSON */
25
- const parseableTypesSet = new Set(['array', 'object', 'boolean', 'number', 'integer', 'null']);
26
- /** De-serialize the example value based on the schema type */
30
+ /** Schema types that must become arrays/objects serializers branch on `Array.isArray` / objects. */
31
+ const structuredSchemaTypes = new Set(['array', 'object']);
32
+ /**
33
+ * Schema-based parameters from the request editor.
34
+ *
35
+ * Primitives (`string`, `integer`, `number`, `boolean`, `null`) are left as the typed string
36
+ * Only `array` and `object` values are parsed so OpenAPI style serialization can expand them.
37
+ */
27
38
  const deSerializeSchemaExample = (example, schema) => {
28
39
  const resolvedSchema = getResolvedRef(schema);
29
40
  if (typeof example === 'string' && resolvedSchema && 'type' in resolvedSchema) {
30
41
  const type = Array.isArray(resolvedSchema.type) ? resolvedSchema.type[0] : resolvedSchema.type;
31
- if (type && parseableTypesSet.has(type)) {
42
+ if (type && structuredSchemaTypes.has(type)) {
32
43
  try {
33
44
  return JSON.parse(example);
34
45
  }
35
46
  catch {
36
- // For array types, fall back to splitting comma-separated values.
37
- // Users commonly enter array values as "foo,bar" or "foo, bar" in the UI
38
- // text field, which is not valid JSON. Per the OpenAPI spec, the default
39
- // serialization for query array parameters is style=form + explode=true,
40
- // meaning each value should be sent as a separate query parameter.
47
+ // Arrays: users often type `foo,bar` instead of JSON — split to match default form+explode query style.
41
48
  if (type === 'array') {
42
49
  return example.split(/,\s?/).filter((v) => v !== '');
43
50
  }
44
- // Ignore the error and return the original example for other types
45
51
  }
46
52
  }
47
53
  }
@@ -1,5 +1,6 @@
1
1
  export { getExampleFromBody } from './body/get-request-body-example.js';
2
2
  export { getSelectedBodyContentType } from './body/get-selected-body-content-type.js';
3
+ export { type SerializedFormProperty, serializeFormPropertyWithEncoding } from './body/serialize-form-property.js';
3
4
  export { BUILD_REQUEST_FAILED, type BuildRequestData, type BuildRequestFailureCode, type BuildRequestResult, type RequestPayload, buildRequest, resolveExecutableRequestUrl, } from './build-request.js';
4
5
  export { deSerializeParameter } from './header/de-serialize-parameter.js';
5
6
  export { filterGlobalCookie } from './header/filter-global-cookies.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,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,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,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,wBAAwB,GACzB,MAAM,+BAA+B,CAAA;AACtC,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,KAAK,sBAAsB,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAA;AAC/G,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,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,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,wBAAwB,GACzB,MAAM,+BAA+B,CAAA;AACtC,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,5 +1,6 @@
1
1
  export { getExampleFromBody } from './body/get-request-body-example.js';
2
2
  export { getSelectedBodyContentType } from './body/get-selected-body-content-type.js';
3
+ export { serializeFormPropertyWithEncoding } from './body/serialize-form-property.js';
3
4
  export { BUILD_REQUEST_FAILED, buildRequest, resolveExecutableRequestUrl, } from './build-request.js';
4
5
  export { deSerializeParameter } from './header/de-serialize-parameter.js';
5
6
  export { filterGlobalCookie } from './header/filter-global-cookies.js';
@@ -6,5 +6,5 @@ import type { SecuritySchemeObjectSecret } from '../../../request-example/builde
6
6
  /** A combined scheme that includes both the auth store secrets and a deep partial of the config auth */
7
7
  export type ConfigAuthScheme = SecuritySchemeObject & DeepPartial<SecurityScheme>;
8
8
  /** Extract the secrets from the config and the auth store */
9
- export declare const extractSecuritySchemeSecrets: (scheme: SecuritySchemeObject & DeepPartial<SecurityScheme>, authStore: AuthStore, name: string, documentSlug: string) => SecuritySchemeObjectSecret;
9
+ export declare const extractSecuritySchemeSecrets: (scheme: SecuritySchemeObject & DeepPartial<SecurityScheme>, authStore: AuthStore, name: string, documentSlug: string, oauth2RedirectUri?: string) => SecuritySchemeObjectSecret;
10
10
  //# sourceMappingURL=extract-security-scheme-secrets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extract-security-scheme-secrets.d.ts","sourceRoot":"","sources":["../../../../src/request-example/context/security/extract-security-scheme-secrets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAA2C,MAAM,uCAAuC,CAAA;AAC/G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAQlF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAExG,OAAO,KAAK,EAUV,0BAA0B,EAC3B,MAAM,iDAAiD,CAAA;AAExD,wGAAwG;AACxG,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAA;AAiLjF,6DAA6D;AAC7D,eAAO,MAAM,4BAA4B,GAEvC,QAAQ,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,EAC1D,WAAW,SAAS,EACpB,MAAM,MAAM,EACZ,cAAc,MAAM,KACnB,0BA2DF,CAAA"}
1
+ {"version":3,"file":"extract-security-scheme-secrets.d.ts","sourceRoot":"","sources":["../../../../src/request-example/context/security/extract-security-scheme-secrets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,SAAS,EAA2C,MAAM,uCAAuC,CAAA;AAC/G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iDAAiD,CAAA;AAQlF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAExG,OAAO,KAAK,EAUV,0BAA0B,EAC3B,MAAM,iDAAiD,CAAA;AAExD,wGAAwG;AACxG,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAA;AAyLjF,6DAA6D;AAC7D,eAAO,MAAM,4BAA4B,GAEvC,QAAQ,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,EAC1D,WAAW,SAAS,EACpB,MAAM,MAAM,EACZ,cAAc,MAAM,EACpB,oBAAoB,MAAM,KACzB,0BA4DF,CAAA"}