@scalar/api-client 2.5.5 → 2.5.6

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 (30) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +60 -57
  5. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
  6. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  7. package/dist/layouts/App/create-api-client-app.d.ts +21 -20
  8. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  9. package/dist/layouts/Modal/create-api-client-modal.d.ts +42 -40
  10. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  11. package/dist/layouts/Web/create-api-client-web.d.ts +21 -20
  12. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  13. package/dist/libs/create-client.d.ts +21 -20
  14. package/dist/libs/create-client.d.ts.map +1 -1
  15. package/dist/libs/create-client.js +96 -92
  16. package/dist/libs/find-request.d.ts +2 -2
  17. package/dist/libs/find-request.d.ts.map +1 -1
  18. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  19. package/dist/libs/send-request/create-request-operation.js +26 -26
  20. package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
  21. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  22. package/dist/store/active-entities.d.ts +2 -2
  23. package/dist/store/active-entities.d.ts.map +1 -1
  24. package/dist/store/requests.d.ts +22 -22
  25. package/dist/store/requests.d.ts.map +1 -1
  26. package/dist/store/store.d.ts +20 -20
  27. package/dist/store/store.d.ts.map +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  30. package/package.json +16 -16
@@ -1,89 +1,89 @@
1
- import { CLIENT_CONFIGURATION_SYMBOL as K } from "../hooks/useClientConfig.js";
2
- import { LAYOUT_SYMBOL as D } from "../hooks/useLayout.js";
3
- import { createSidebarState as G, SIDEBAR_SYMBOL as V } from "../hooks/useSidebar.js";
4
- import { getRequestUidByPathMethod as z } from "./get-request-uid-by-path-method.js";
5
- import { loadAllResources as H } from "./local-storage.js";
6
- import { createActiveEntitiesStore as J, ACTIVE_ENTITIES_SYMBOL as Q } from "../store/active-entities.js";
7
- import { createWorkspaceStore as X, WORKSPACE_SYMBOL as Z } from "../store/store.js";
8
- import { workspaceSchema as $ } from "@scalar/oas-utils/entities/workspace";
9
- import { prettyPrintJson as ee } from "@scalar/oas-utils/helpers";
10
- import { LS_KEYS as te } from "@scalar/helpers/object/local-storage";
11
- import { DATA_VERSION_LS_LEY as re, DATA_VERSION as oe } from "@scalar/oas-utils/migrations";
12
- import { apiClientConfigurationSchema as x } from "@scalar/types/api-reference";
13
- import { ref as ae, createApp as se, watch as ie } from "vue";
14
- import { createPluginManager as ce } from "../plugins/plugin-manager.js";
15
- import { PLUGIN_MANAGER_SYMBOL as le } from "../plugins/hooks/usePluginManager.js";
16
- const Ue = ({
17
- el: C,
18
- appComponent: L,
19
- configuration: b = {},
1
+ import { CLIENT_CONFIGURATION_SYMBOL as D } from "../hooks/useClientConfig.js";
2
+ import { LAYOUT_SYMBOL as G } from "../hooks/useLayout.js";
3
+ import { createSidebarState as V, SIDEBAR_SYMBOL as z } from "../hooks/useSidebar.js";
4
+ import { getRequestUidByPathMethod as H } from "./get-request-uid-by-path-method.js";
5
+ import { loadAllResources as J } from "./local-storage.js";
6
+ import { createActiveEntitiesStore as Q, ACTIVE_ENTITIES_SYMBOL as X } from "../store/active-entities.js";
7
+ import { createWorkspaceStore as Z, WORKSPACE_SYMBOL as $ } from "../store/store.js";
8
+ import { workspaceSchema as ee } from "@scalar/oas-utils/entities/workspace";
9
+ import { prettyPrintJson as te } from "@scalar/oas-utils/helpers";
10
+ import { LS_KEYS as re } from "@scalar/helpers/object/local-storage";
11
+ import { DATA_VERSION_LS_LEY as oe, DATA_VERSION as ae } from "@scalar/oas-utils/migrations";
12
+ import { apiClientConfigurationSchema as C } from "@scalar/types/api-reference";
13
+ import { ref as se, createApp as ie, watch as ce } from "vue";
14
+ import { createPluginManager as le } from "../plugins/plugin-manager.js";
15
+ import { PLUGIN_MANAGER_SYMBOL as ne } from "../plugins/hooks/usePluginManager.js";
16
+ const xe = ({
17
+ el: L,
18
+ appComponent: b,
19
+ configuration: y = {},
20
20
  isReadOnly: n = !1,
21
- store: y,
22
- persistData: E = !0,
23
- mountOnInitialize: k = !0,
21
+ store: E,
22
+ persistData: k = !0,
23
+ mountOnInitialize: I = !0,
24
24
  layout: m = "desktop",
25
25
  router: u
26
26
  }) => {
27
- const s = ae(x.parse(b)), a = y || X({
27
+ const s = se(C.parse(y)), a = E || Z({
28
28
  proxyUrl: s.value.proxyUrl,
29
29
  theme: s.value.theme,
30
30
  showSidebar: s.value.showSidebar ?? !0,
31
31
  hideClientButton: s.value.hideClientButton ?? !1,
32
32
  _integration: s.value._integration,
33
- useLocalStorage: E
34
- }), f = J({ ...a, router: u }), I = G({ layout: m }), q = ce({
33
+ useLocalStorage: k
34
+ }), f = Q({ ...a, router: u }), q = V({ layout: m }), B = le({
35
35
  plugins: s.value.plugins ?? []
36
- }), v = () => {
36
+ }), S = () => {
37
37
  try {
38
38
  return typeof window < "u" && window.localStorage !== void 0;
39
39
  } catch {
40
40
  return !1;
41
41
  }
42
42
  };
43
- if (v() && localStorage.getItem(te.WORKSPACE) && !n)
43
+ if (S() && localStorage.getItem(re.WORKSPACE) && !n)
44
44
  try {
45
- const t = {};
46
- let e = 0, r = 0, o = "";
45
+ const e = {};
46
+ let t = 0, r = 0, o = "";
47
47
  for (o in localStorage)
48
- Object.prototype.hasOwnProperty.call(localStorage, o) && (r = (localStorage[o].length + o.length) * 2, e += r, t[o] = (r / 1024).toFixed(2) + " KB");
49
- t.Total = (e / 1024).toFixed(2) + " KB", console.table(t), H(a);
50
- } catch (t) {
51
- console.warn("Failed to load from localStorage:", t);
48
+ Object.prototype.hasOwnProperty.call(localStorage, o) && (r = (localStorage[o].length + o.length) * 2, t += r, e[o] = (r / 1024).toFixed(2) + " KB");
49
+ e.Total = (t / 1024).toFixed(2) + " KB", console.table(e), J(a);
50
+ } catch (e) {
51
+ console.warn("Failed to load from localStorage:", e);
52
52
  }
53
53
  else if (!n && !s.value.url && !s.value.content) {
54
54
  if (a.workspaceMutators.add({
55
55
  uid: "default",
56
56
  name: "Workspace",
57
57
  proxyUrl: s.value.proxyUrl
58
- }), v())
58
+ }), S())
59
59
  try {
60
- localStorage.setItem(re, oe);
61
- } catch (t) {
62
- console.warn("Failed to set localStorage version:", t);
60
+ localStorage.setItem(oe, ae);
61
+ } catch (e) {
62
+ console.warn("Failed to set localStorage version:", e);
63
63
  }
64
64
  } else {
65
- const t = $.parse({
65
+ const e = ee.parse({
66
66
  uid: "default",
67
67
  name: "Workspace",
68
68
  proxyUrl: s.value.proxyUrl
69
69
  });
70
- a.workspaceMutators.rawAdd(t);
70
+ a.workspaceMutators.rawAdd(e);
71
71
  }
72
- const i = se(L);
73
- i.use(u), i.provide(Z, a), i.provide(D, m), i.provide(Q, f), i.provide(V, I), i.provide(K, s), i.provide(le, q), i.config.idPrefix = "scalar-client";
72
+ const i = ie(b);
73
+ i.use(u), i.provide($, a), i.provide(G, m), i.provide(X, f), i.provide(z, q), i.provide(D, s), i.provide(ne, B), i.config.idPrefix = "scalar-client";
74
74
  const {
75
- collectionMutators: B,
76
- importSpecFile: P,
77
- importSpecFromUrl: T,
78
- modalState: S,
75
+ collectionMutators: P,
76
+ importSpecFile: T,
77
+ importSpecFromUrl: R,
78
+ modalState: v,
79
79
  requests: h,
80
- securitySchemes: R,
81
- securitySchemeMutators: Y,
80
+ securitySchemes: Y,
81
+ securitySchemeMutators: N,
82
82
  servers: g,
83
- workspaceMutators: N,
84
- requestExampleMutators: F
85
- } = a, { activeCollection: p, activeWorkspace: d } = f, w = (t = C) => {
86
- if (!t) {
83
+ workspaceMutators: F,
84
+ requestExampleMutators: j
85
+ } = a, { activeCollection: p, activeWorkspace: d } = f, w = (e = L) => {
86
+ if (!e) {
87
87
  console.error(
88
88
  "[@scalar/api-client-modal] Could not create the API client.",
89
89
  "Invalid HTML element provided.",
@@ -91,38 +91,42 @@ const Ue = ({
91
91
  );
92
92
  return;
93
93
  }
94
- i.mount(t);
94
+ i.mount(e);
95
95
  };
96
- k && w();
97
- const M = (t) => {
98
- const e = z(h, t);
99
- e ? u.push({
96
+ I && w();
97
+ const M = (e) => {
98
+ const t = H(h, e);
99
+ t ? u.push({
100
100
  name: "request",
101
- query: t != null && t._source ? { source: t._source } : {},
101
+ query: e != null && e._source ? { source: e._source } : {},
102
102
  params: {
103
103
  workspace: "default",
104
- request: e
104
+ request: t
105
105
  }
106
- }) : console.warn("[@scalar/api-client] Could not find request for path and method", t);
106
+ }) : console.warn("[@scalar/api-client] Could not find request for path and method", e);
107
+ }, A = () => {
108
+ var e;
109
+ a.collectionMutators.reset(), a.requestMutators.reset(), a.requestExampleMutators.reset(), a.securitySchemeMutators.reset(), a.serverMutators.reset(), a.tagMutators.reset(), F.edit((e = d.value) == null ? void 0 : e.uid, "collections", []);
107
110
  };
108
111
  return {
109
112
  /** The vue app instance for the modal, be careful with this */
110
113
  app: i,
114
+ resetStore: A,
111
115
  /**
112
116
  * Update the API client config
113
117
  *
114
118
  * Deletes the current store before importing again for now, in the future will Diff and only update what is needed
115
119
  */
116
- updateConfig: async (t) => {
117
- var r, o, c;
118
- const e = x.parse(t);
119
- if (e.url || e.content || e.servers || e.authentication || e.slug || e.title || e.baseServerURL || e.proxyUrl || e.showSidebar) {
120
- a.collectionMutators.reset(), a.requestMutators.reset(), a.requestExampleMutators.reset(), a.securitySchemeMutators.reset(), a.serverMutators.reset(), a.tagMutators.reset(), N.edit((r = d.value) == null ? void 0 : r.uid, "collections", []);
121
- const l = {
122
- ...e,
120
+ updateConfig: async (e) => {
121
+ var r, o;
122
+ const t = C.parse(e);
123
+ if (t.url || t.content || t.servers || t.authentication || t.slug || t.title || t.baseServerURL || t.proxyUrl || t.showSidebar) {
124
+ A();
125
+ const c = {
126
+ ...t,
123
127
  useCollectionSecurity: n
124
128
  };
125
- s.value = l, e.url ? await T(e.url, ((o = d.value) == null ? void 0 : o.uid) ?? "default", l) : e.content ? await P(e.content, ((c = d.value) == null ? void 0 : c.uid) ?? "default", l) : console.error(
129
+ s.value = c, t.url ? await R(t.url, ((r = d.value) == null ? void 0 : r.uid) ?? "default", c) : t.content ? await T(t.content, ((o = d.value) == null ? void 0 : o.uid) ?? "default", c) : console.error(
126
130
  "[@scalar/api-client-modal] Could not create the API client.",
127
131
  'Please provide an OpenAPI document: { url: "…" }',
128
132
  "Read more: https://github.com/scalar/scalar/tree/main/packages/api-client"
@@ -130,21 +134,21 @@ const Ue = ({
130
134
  }
131
135
  },
132
136
  /** Update the currently selected server via URL */
133
- updateServer: (t) => {
137
+ updateServer: (e) => {
134
138
  var r;
135
- const e = Object.values(g).find((o) => o.url === t);
136
- e && p.value && B.edit((r = p.value) == null ? void 0 : r.uid, "selectedServerUid", e.uid);
139
+ const t = Object.values(g).find((o) => o.url === e);
140
+ t && p.value && P.edit((r = p.value) == null ? void 0 : r.uid, "selectedServerUid", t.uid);
137
141
  },
138
142
  /** Update the currently selected server via URL */
139
- onUpdateServer: (t) => {
140
- ie(
143
+ onUpdateServer: (e) => {
144
+ ce(
141
145
  () => {
142
- var e;
143
- return (e = p.value) == null ? void 0 : e.selectedServerUid;
146
+ var t;
147
+ return (t = p.value) == null ? void 0 : t.selectedServerUid;
144
148
  },
145
- (e) => {
146
- const r = Object.values(g).find((o) => o.uid === e);
147
- r != null && r.url && t(r.url);
149
+ (t) => {
150
+ const r = Object.values(g).find((o) => o.uid === t);
151
+ r != null && r.url && e(r.url);
148
152
  }
149
153
  );
150
154
  },
@@ -152,41 +156,41 @@ const Ue = ({
152
156
  * Update the auth values, we currently don't change the auth selection
153
157
  */
154
158
  updateAuth: ({
155
- nameKey: t,
156
- propertyKey: e,
159
+ nameKey: e,
160
+ propertyKey: t,
157
161
  value: r
158
162
  }) => {
159
- const c = Object.values(R).find((l) => l.nameKey === t);
160
- c && Y.edit(c.uid, e, r);
163
+ const c = Object.values(Y).find((l) => l.nameKey === e);
164
+ c && N.edit(c.uid, t, r);
161
165
  },
162
166
  /** Route to a method + path */
163
167
  route: M,
164
168
  /** Open the API client modal and optionally route to a request */
165
- open: (t) => {
166
- const { method: e, path: r, requestUid: o } = t ?? {};
167
- (e && r || o) && M(t), S.open = !0;
169
+ open: (e) => {
170
+ const { method: t, path: r, requestUid: o } = e ?? {};
171
+ (t && r || o) && M(e), v.open = !0;
168
172
  },
169
173
  /** Mount the references to a given element */
170
174
  mount: w,
171
175
  /** State for controlling the modal */
172
- modalState: S,
176
+ modalState: v,
173
177
  /* The workspace store */
174
178
  store: a,
175
179
  /** Update the currently selected example */
176
- updateExample: (t, e) => {
177
- var l, A, _, O, U;
178
- if (!t || !e)
180
+ updateExample: (e, t) => {
181
+ var l, _, O, U, x;
182
+ if (!e || !t)
179
183
  return;
180
184
  const r = Object.values(h).find(
181
- ({ operationId: j, path: W }) => j === e || W === e
185
+ ({ operationId: W, path: K }) => W === t || K === t
182
186
  );
183
187
  if (!r)
184
188
  return;
185
- const o = Object.keys(((l = r.requestBody) == null ? void 0 : l.content) || {})[0] || "", c = (U = (O = (_ = (A = r.requestBody) == null ? void 0 : A.content) == null ? void 0 : _[o]) == null ? void 0 : O.examples) == null ? void 0 : U[t];
186
- c && F.edit(r.examples[0], "body.raw.value", ee(c.value));
189
+ const o = Object.keys(((l = r.requestBody) == null ? void 0 : l.content) || {})[0] || "", c = (x = (U = (O = (_ = r.requestBody) == null ? void 0 : _.content) == null ? void 0 : O[o]) == null ? void 0 : U.examples) == null ? void 0 : x[e];
190
+ c && j.edit(r.examples[0], "body.raw.value", te(c.value));
187
191
  }
188
192
  };
189
193
  };
190
194
  export {
191
- Ue as createApiClient
195
+ xe as createApiClient
192
196
  };
@@ -16,7 +16,7 @@ export declare const findRequestByPathMethod: (path: string, method: string, req
16
16
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
17
17
  servers: (string & import("zod").BRAND<"server">)[];
18
18
  examples: (string & import("zod").BRAND<"example">)[];
19
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
19
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
20
20
  description?: string | undefined;
21
21
  summary?: string | undefined;
22
22
  externalDocs?: {
@@ -41,10 +41,10 @@ export declare const findRequestByPathMethod: (path: string, method: string, req
41
41
  summary?: string | undefined;
42
42
  externalValue?: string | undefined;
43
43
  }> | undefined;
44
- schema?: unknown;
45
44
  content?: unknown;
46
45
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
47
46
  explode?: boolean | undefined;
47
+ schema?: unknown;
48
48
  }[] | undefined;
49
49
  requestBody?: any;
50
50
  responses?: Record<string, any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"find-request.d.ts","sourceRoot":"","sources":["../../src/libs/find-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAE9D,0FAA0F;AAC1F,eAAO,MAAM,WAAW,SAAU,MAAM,WASvC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,SAAU,MAAM,UAAU,MAAM,YAAY,OAAO,EAAE;;;;;;;;;;;;;;uBA+B6q1B,CAAC;;;;;;;;;;;;;uBAA0c,CAAC;mBAAqC,CAAC;oBAA2B,CAAC;qBAAgD,CAAC;uBAA8B,CAAC;6BAA+C,CAAC;;kBAA4D,CAAC;mBAA0B,CAAC;iBAAwB,CAAC;mBAAyH,CAAC;;;;;;;;;iBAAuW,CAAC;gBAAkC,CAAC;;;;iBAAyG,CAAC;gBAAkC,CAAC;;;;iBAA4G,CAAC;gBAAkC,CAAC;;;;aA9B9w4B,MAAM;eAAS,MAAM;;CA6B7C,CAAA"}
1
+ {"version":3,"file":"find-request.d.ts","sourceRoot":"","sources":["../../src/libs/find-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAE9D,0FAA0F;AAC1F,eAAO,MAAM,WAAW,SAAU,MAAM,WASvC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,SAAU,MAAM,UAAU,MAAM,YAAY,OAAO,EAAE;;;;;;;;;;;;;;uBA+B6q1B,CAAC;;;;;;;;;;;;;uBAA0c,CAAC;mBAAqC,CAAC;oBAA2B,CAAC;qBAAgD,CAAC;uBAA8B,CAAC;6BAA+C,CAAC;;mBAA6D,CAAC;iBAAwB,CAAC;mBAAyH,CAAC;kBAAqC,CAAC;;;;;;;;;iBAA2V,CAAC;gBAAkC,CAAC;;;;iBAAyG,CAAC;gBAAkC,CAAC;;;;iBAA4G,CAAC;gBAAkC,CAAC;;;;aA9B9w4B,MAAM;eAAS,MAAM;;CA6B7C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-request-operation.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/create-request-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAQhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,uGAAuG;AACvG,KAAK,mBAAmB,GAAG,OAAO,CAChC,aAAa,CAAC;IACZ,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAC,CACH,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA;AAE/D,0BAA0B;AAC1B,eAAO,MAAM,sBAAsB,4IAWhC;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,0BAA0B,CAAC,EAAE,SAAS,CAAC,4BAA4B,CAAC,CAAA;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;IAChC,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,WAAW,EAAE,MAAM,mBAAmB,CAAA;IACtC,OAAO,EAAE,OAAO,CAAA;CACjB,CAgPA,CAAA"}
1
+ {"version":3,"file":"create-request-operation.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/create-request-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAQhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AAMxC,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAEtD,uGAAuG;AACvG,KAAK,mBAAmB,GAAG,OAAO,CAChC,aAAa,CAAC;IACZ,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAC,CACH,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA;AAE/D,0BAA0B;AAC1B,eAAO,MAAM,sBAAsB,4IAWhC;IACD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,SAAS,CAAA;IAClB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,0BAA0B,CAAC,EAAE,SAAS,CAAC,4BAA4B,CAAC,CAAA;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;IAChC,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B,KAAG,aAAa,CAAC;IAChB,UAAU,EAAE,eAAe,CAAA;IAC3B,WAAW,EAAE,MAAM,mBAAmB,CAAA;IACtC,OAAO,EAAE,OAAO,CAAA;CACjB,CAmPA,CAAA"}
@@ -1,15 +1,15 @@
1
1
  import { ERRORS as P, normalizeError as U } from "../errors.js";
2
- import { normalizeHeaders as J } from "../normalize-headers.js";
3
- import { createFetchBody as N } from "./create-fetch-body.js";
4
- import { createFetchHeaders as Z } from "./create-fetch-headers.js";
5
- import { createFetchQueryParams as $ } from "./create-fetch-query-params.js";
6
- import { decodeBuffer as M } from "./decode-buffer.js";
7
- import { setRequestCookies as ee, getCookieHeader as oe } from "./set-request-cookies.js";
8
- import { replaceTemplateVariables as m } from "../string-template.js";
2
+ import { normalizeHeaders as N } from "../normalize-headers.js";
3
+ import { createFetchBody as Z } from "./create-fetch-body.js";
4
+ import { createFetchHeaders as $ } from "./create-fetch-headers.js";
5
+ import { createFetchQueryParams as M } from "./create-fetch-query-params.js";
6
+ import { decodeBuffer as ee } from "./decode-buffer.js";
7
+ import { setRequestCookies as oe, getCookieHeader as te } from "./set-request-cookies.js";
8
+ import { replaceTemplateVariables as h } from "../string-template.js";
9
9
  import { isElectron as q } from "../electron.js";
10
- import { isDefined as te, mergeUrls as re, shouldUseProxy as D, redirectToProxy as se, httpStatusCodes as ne } from "@scalar/oas-utils/helpers";
11
- import { buildRequestSecurity as ae } from "./build-request-security.js";
12
- const Re = ({
10
+ import { isDefined as re, mergeUrls as se, shouldUseProxy as D, redirectToProxy as ne, httpStatusCodes as ae } from "@scalar/oas-utils/helpers";
11
+ import { buildRequestSecurity as ie } from "./build-request-security.js";
12
+ const Ce = ({
13
13
  environment: E,
14
14
  example: a,
15
15
  globalCookies: L,
@@ -22,37 +22,37 @@ const Re = ({
22
22
  pluginManager: f
23
23
  }) => {
24
24
  try {
25
- const t = E ?? {}, k = new AbortController(), w = a.parameters.path.reduce((e, s) => (s.enabled && (e[s.key] = m(s.value, t)), e), {}), F = m((d == null ? void 0 : d.url) ?? "", t), p = m(m(i.path, t), w);
25
+ const t = E ?? {}, b = new AbortController(), w = a.parameters.path.reduce((e, s) => (s.enabled && (e[s.key] = h(s.value, t)), e), {}), F = h((d == null ? void 0 : d.url) ?? "", t), p = h(h(i.path, t), w);
26
26
  let n = F || p;
27
27
  if (!n)
28
28
  throw P.URL_EMPTY;
29
29
  Object.entries((d == null ? void 0 : d.variables) ?? {}).forEach(([e, s]) => {
30
- n = m(n, {
30
+ n = h(n, {
31
31
  [e]: w[e] || s.default
32
32
  });
33
33
  });
34
- const _ = $(a, t, i), O = Z(a, t), { body: W } = N(i.method, a, t), { cookieParams: x } = ee({
34
+ const _ = M(a, t, i), O = $(a, t), { body: W } = Z(i.method, a, t), { cookieParams: x } = oe({
35
35
  example: a,
36
36
  env: t,
37
37
  globalCookies: L,
38
38
  serverUrl: n,
39
39
  proxyUrl: u
40
- }), A = B.flat().map((e) => z[e]).filter(te), S = ae(A, t), c = { ...Object.entries(S.headers).reduce(
40
+ }), A = B.flat().map((e) => z[e]).filter(re), S = ie(A, t), c = { ...Object.entries(S.headers).reduce(
41
41
  (e, [s, y]) => (e[s.toLowerCase()] = y, e),
42
42
  {}
43
43
  ), ...O }, X = [...x, ...S.cookies], j = new URLSearchParams([..._, ...S.urlParams]);
44
- q() && c["user-agent"] && (c["X-Scalar-User-Agent"] = c["user-agent"]), n = re(n, p, j);
45
- const b = m(oe(X, c.Cookie), t);
46
- b && (q() || D(u, n) ? (console.warn(
44
+ q() && c["user-agent"] && (c["X-Scalar-User-Agent"] = c["user-agent"]), n = se(n, p, j);
45
+ const k = h(te(X, c.Cookie), t);
46
+ k && (q() || D(u, n) ? (console.warn(
47
47
  "We’re using a `X-Scalar-Cookie` custom header to the request. The proxy will forward this as a `Cookie` header. We do this to avoid the browser omitting the `Cookie` header for cross-origin requests for security reasons."
48
- ), c["X-Scalar-Cookie"] = b) : (console.warn(
48
+ ), c["X-Scalar-Cookie"] = k) : (console.warn(
49
49
  `We’re trying to add a Cookie header, but browsers often omit them for cross-origin requests for various security reasons. If it’s not working, that’s probably why. Here are the requirements for it to work:
50
50
 
51
51
  - The browser URL must be on the same domain as the server URL.
52
52
  - The connection must be made over HTTPS.
53
53
  `
54
- ), c.Cookie = b));
55
- const I = se(u, n), R = new Request(I, {
54
+ ), c.Cookie = k));
55
+ const I = ne(u, n), R = new Request(I, {
56
56
  method: i.method.toUpperCase(),
57
57
  body: W ?? null,
58
58
  headers: c
@@ -67,13 +67,13 @@ const Re = ({
67
67
  const e = Date.now();
68
68
  try {
69
69
  const r = await fetch(R, {
70
- signal: k.signal
70
+ signal: b.signal
71
71
  }), Q = (s = r.headers.get("content-type")) == null ? void 0 : s.startsWith("text/event-stream");
72
72
  o == null || o.emit("stop");
73
- const V = Date.now() - e, v = r.clone(), g = J(r.headers, D(u, n)), K = r.headers.get("content-type") ?? "text/plain;charset=UTF-8", T = await v.arrayBuffer(), Y = M(T, K), h = r.clone(), G = h.statusText || ((y = ne[h.status]) == null ? void 0 : y.name) || "", l = new Response(h.body, {
74
- status: h.status,
73
+ const V = Date.now() - e, v = r.clone(), g = N(r.headers, D(u, n)), K = r.headers.get("content-type") ?? "text/plain;charset=UTF-8", T = await v.arrayBuffer(), Y = ee(T, K), m = r.clone(), G = m.statusText || ((y = ae[m.status]) == null ? void 0 : y.name) || "", J = [204, 205, 304].includes(m.status), l = new Response(J ? null : m.body, {
74
+ status: m.status,
75
75
  statusText: G,
76
- headers: h.headers
76
+ headers: m.headers
77
77
  });
78
78
  f && f.executeHook("onResponseReceived", { response: l, operation: i });
79
79
  const H = "getSetCookie" in l.headers && typeof l.headers.getSetCookie == "function" ? l.headers.getSetCookie() : [];
@@ -114,7 +114,7 @@ const Re = ({
114
114
  return o == null || o.emit("abort"), [U(r, P.REQUEST_FAILED), null];
115
115
  }
116
116
  },
117
- controller: k
117
+ controller: b
118
118
  }
119
119
  ];
120
120
  } catch (t) {
@@ -122,5 +122,5 @@ const Re = ({
122
122
  }
123
123
  };
124
124
  export {
125
- Re as createRequestOperation
125
+ Ce as createRequestOperation
126
126
  };
@@ -19,7 +19,7 @@ export declare const createRequestPayload: (metaRequestPayload?: MetaRequestPayl
19
19
  selectedServerUid: (string & z.BRAND<"server">) | null;
20
20
  servers: (string & z.BRAND<"server">)[];
21
21
  examples: (string & z.BRAND<"example">)[];
22
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
22
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
23
23
  description?: string | undefined;
24
24
  summary?: string | undefined;
25
25
  externalDocs?: {
@@ -44,10 +44,10 @@ export declare const createRequestPayload: (metaRequestPayload?: MetaRequestPayl
44
44
  summary?: string | undefined;
45
45
  externalValue?: string | undefined;
46
46
  }> | undefined;
47
- schema?: unknown;
48
47
  content?: unknown;
49
48
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
50
49
  explode?: boolean | undefined;
50
+ schema?: unknown;
51
51
  }[] | undefined;
52
52
  requestBody?: any;
53
53
  responses?: Record<string, any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"create-request-operation.test.d.ts","sourceRoot":"","sources":["../../../src/libs/send-request/create-request-operation.test.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,oBAAoB,EAIrB,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAU5B,eAAO,MAAM,QAAQ,0BAAkC,CAAA;AAEvD,KAAK,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,KAAK,kBAAkB,GAAG;IACxB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,qBAAqB,CAAC,EAAE,qBAAqB,CAAA;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,qDAAqD;AACrD,eAAO,MAAM,oBAAoB,wBAAwB,kBAAkB;;;sBA6+Bb,EAAG,KAAK;;;+CAKhD,EAAG,KAAK,gCAClB,EAAE,KAAK;qCACP,EAAG,KAAK;2BACQ,EAAI,KAAI;4BAElB,EAAG,KAAK;;;;;;uBASlB,CAAC;;;;;;;;;;;;;uBAe6C,CAAA;mBAC7B,CAAC;oBAEf,CAAA;qBACH,CAAN;uBAA8B,CAAC;6BAErB,CAAT;;kBACS,CAAN;mBAA0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;oBAAsC,CAAC;uBAAoD,CAAC;2BAA6C,CAAC;uBAAyC,CAAC;wBAA2B,CAAC;oBAAuC,CAAC;sBAA0C,CAAC;wBAA0C,CAAC;oBAAqC,CAAC;wBAA2B,CAAC;;;;;;uBAA0J,CAAC;oBAAsC,CAAC;uBAAoD,CAAC;2BAA6C,CAAC;uBAAyC,CAAC;wBAA2B,CAAC;oBAAuC,CAAC;sBAA0C,CAAC;wBAA0C,CAAC;oBAAqC,CAAC;wBAA2B,CAAC;;;;;;uBAA4J,CAAC;oBAAsC,CAAC;uBAAoD,CAAC;2BAA6C,CAAC;uBAAyC,CAAC;wBAA2B,CAAC;oBAAuC,CAAC;sBAA0C,CAAC;wBAA0C,CAAC;oBAAqC,CAAC;wBAA2B,CAAC;;;;;;uBAA4J,CAAC;oBAAsC,CAAC;uBAAoD,CAAC;2BAA6C,CAAC;uBAAyC,CAAC;wBAA2B,CAAC;oBAAuC,CAAC;sBAA0C,CAAC;wBAA0C,CAAC;oBAAqC,CAAC;wBAA2B,CAAC;;;+BAAqE,EAAG,KAAK;;;;sBA54BtzW,EACf,KAAR;;;;iBAUD,CAAC;uBAAyC,CAAC;mBAEpC,CAAC;gBACF,CAAC;;;;;CAnOX,CAAA"}
@@ -195,7 +195,7 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
195
195
  selectedServerUid: (string & import("zod").BRAND<"server">) | null;
196
196
  servers: (string & import("zod").BRAND<"server">)[];
197
197
  examples: (string & import("zod").BRAND<"example">)[];
198
- method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
198
+ method: "options" | "get" | "put" | "post" | "delete" | "head" | "patch" | "trace" | "connect";
199
199
  description?: string | undefined;
200
200
  summary?: string | undefined;
201
201
  externalDocs?: {
@@ -220,10 +220,10 @@ export declare const createActiveEntitiesStore: ({ collections, requestExamples,
220
220
  summary?: string | undefined;
221
221
  externalValue?: string | undefined;
222
222
  }> | undefined;
223
- schema?: unknown;
224
223
  content?: unknown;
225
224
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
226
225
  explode?: boolean | undefined;
226
+ schema?: unknown;
227
227
  }[] | undefined;
228
228
  requestBody?: any;
229
229
  responses?: Record<string, any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"active-entities.d.ts","sourceRoot":"","sources":["../../src/store/active-entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAErE,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAGxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAE/D,KAAK,+BAA+B,GAAG;IACrC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;IACvC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IACzC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACrC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,GAAG,CAAA;IACV,MAAM,EAAE,QAAQ,GAAG,YAAY,CAAA;CAChC,CAAA;AAED;;;;GAIG;A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