@nice2dev/ui-api 1.4.32 → 1.4.33

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.
package/dist/core.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var en = Object.defineProperty;
2
2
  var tn = (e, t, n) => t in e ? en(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var $e = (e, t, n) => tn(e, typeof t != "symbol" ? t + "" : t, n);
4
- const Cs = [
4
+ const Us = [
5
5
  "GET",
6
6
  "POST",
7
7
  "PUT",
@@ -10,7 +10,7 @@ const Cs = [
10
10
  "HEAD",
11
11
  "OPTIONS",
12
12
  "TRACE"
13
- ], Us = [
13
+ ], Es = [
14
14
  "inherit",
15
15
  "none",
16
16
  "apiKey",
@@ -57,14 +57,14 @@ function be(e = {}) {
57
57
  variables: e.variables ?? []
58
58
  };
59
59
  }
60
- function me(e, t = []) {
60
+ function le(e, t = []) {
61
61
  const n = [];
62
62
  for (const s of e)
63
- s.kind === "folder" ? n.push(...me(s.items, [...t, s])) : n.push({ request: s, folders: [...t] });
63
+ s.kind === "folder" ? n.push(...le(s.items, [...t, s])) : n.push({ request: s, folders: [...t] });
64
64
  return n;
65
65
  }
66
66
  const mt = "#/components/schemas/";
67
- function Es(e, t, n) {
67
+ function _s(e, t, n) {
68
68
  var a;
69
69
  if (!n || t === n || !((a = e.schemas) != null && a[t]) || e.schemas[n])
70
70
  return e;
@@ -101,7 +101,7 @@ function sn(e, t, n) {
101
101
  function L(e) {
102
102
  return e.enabled !== !1;
103
103
  }
104
- function _s(e) {
104
+ function qs(e) {
105
105
  const t = {};
106
106
  for (const n of e)
107
107
  L(n) && (t[n.key] = n.value);
@@ -110,7 +110,7 @@ function _s(e) {
110
110
  function rn(e, t) {
111
111
  return e.params.filter((n) => n.in === t && L(n));
112
112
  }
113
- function qs(e, t) {
113
+ function Is(e, t) {
114
114
  var s;
115
115
  const n = t.toLowerCase();
116
116
  return (s = rn(e, "header").find((r) => r.key.toLowerCase() === n)) == null ? void 0 : s.value;
@@ -237,10 +237,10 @@ function Ut(e, t, n = {}) {
237
237
  }
238
238
  return a;
239
239
  }
240
- function Is(e, t, n = {}) {
240
+ function Ls(e, t, n = {}) {
241
241
  return Ct(Ut(e, t, n));
242
242
  }
243
- function Ls(e, t) {
243
+ function Ps(e, t) {
244
244
  const n = [];
245
245
  for (const s of e)
246
246
  for (const r of (s == null ? void 0 : s.variableSets) ?? []) {
@@ -249,7 +249,7 @@ function Ls(e, t) {
249
249
  }
250
250
  return n;
251
251
  }
252
- function Ps(e, t, n, s) {
252
+ function Rs(e, t, n, s) {
253
253
  const r = {}, o = (i) => {
254
254
  for (const a of i ?? [])
255
255
  L(a) && a.key && (r[a.key] = a.value);
@@ -324,7 +324,7 @@ function Ue(e, t = (n) => n) {
324
324
  );
325
325
  return o + (i.length ? `?${i.join("&")}` : "") + t(r);
326
326
  }
327
- function Rs(e, t) {
327
+ function Ms(e, t) {
328
328
  return e ? t ? `${e.replace(/\/+$/, "")}/${t.replace(/^\/+/, "")}` : e : t;
329
329
  }
330
330
  function dn(e) {
@@ -1839,7 +1839,7 @@ function Ye(e) {
1839
1839
  return {};
1840
1840
  }
1841
1841
  }
1842
- function Ms(e, t) {
1842
+ function Ds(e, t) {
1843
1843
  var p;
1844
1844
  const n = (p = e.examples) == null ? void 0 : p[0];
1845
1845
  if (n) {
@@ -1879,10 +1879,10 @@ function $t(e, t) {
1879
1879
  }
1880
1880
  return r;
1881
1881
  }
1882
- function ue(e) {
1882
+ function fe(e) {
1883
1883
  return e == null ? "" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : JSON.stringify(e);
1884
1884
  }
1885
- function We(e) {
1885
+ function Be(e) {
1886
1886
  const t = Object.keys(e), n = [
1887
1887
  (s) => s === "application/json",
1888
1888
  (s) => /\+json$|\/json/.test(s),
@@ -1898,13 +1898,13 @@ function We(e) {
1898
1898
  return [r, N(e[r]) ? e[r] : {}];
1899
1899
  }
1900
1900
  }
1901
- function Wn(e, t = {}) {
1901
+ function Bn(e, t = {}) {
1902
1902
  var x, _, M;
1903
1903
  let n = typeof e == "string" ? Ge(e, t.parseYaml) : e;
1904
1904
  if (!N(n))
1905
1905
  throw new Error("Not an OpenAPI document");
1906
1906
  if (typeof n.swagger == "string")
1907
- n = Bn(n);
1907
+ n = Wn(n);
1908
1908
  else if (typeof n.openapi != "string")
1909
1909
  throw new Error('Not an OpenAPI document: no "openapi" or "swagger" version');
1910
1910
  const s = n, r = t.baseUrlVariable ?? "baseUrl", o = /* @__PURE__ */ new Map(), i = (h) => {
@@ -1987,7 +1987,7 @@ function Wn(e, t = {}) {
1987
1987
  };
1988
1988
  }
1989
1989
  case "oauth2": {
1990
- const C = N(A.flows) ? A.flows : {}, I = ["authorizationCode", "clientCredentials", "password", "implicit"].find((re) => N(C[re])) ?? "clientCredentials", D = C[I] ?? {}, B = Array.isArray(g) && g.length ? g.join(" ") : void 0;
1990
+ const C = N(A.flows) ? A.flows : {}, I = ["authorizationCode", "clientCredentials", "password", "implicit"].find((re) => N(C[re])) ?? "clientCredentials", D = C[I] ?? {}, W = Array.isArray(g) && g.length ? g.join(" ") : void 0;
1991
1991
  return {
1992
1992
  type: "oauth2",
1993
1993
  grant: I,
@@ -1995,7 +1995,7 @@ function Wn(e, t = {}) {
1995
1995
  authUrl: z(D.authorizationUrl),
1996
1996
  clientId: m("clientId"),
1997
1997
  clientSecret: I === "implicit" ? void 0 : m("clientSecret", !0),
1998
- scope: B,
1998
+ scope: W,
1999
1999
  usePkce: I === "authorizationCode" || void 0,
2000
2000
  username: I === "password" ? m("username") : void 0,
2001
2001
  password: I === "password" ? m("password", !0) : void 0
@@ -2031,14 +2031,14 @@ function Wn(e, t = {}) {
2031
2031
  }
2032
2032
  }
2033
2033
  }, $ = (h) => {
2034
- var B, re;
2034
+ var W, re;
2035
2035
  const g = a(h);
2036
2036
  if (!N(g) || typeof g.name != "string")
2037
2037
  return null;
2038
2038
  const A = zn.find((ie) => ie === g.in);
2039
2039
  if (!A || A === "header" && /^(accept|content-type|authorization)$/i.test(g.name))
2040
2040
  return null;
2041
- const U = c(g.schema) ?? (N(g.content) ? c((B = We(g.content)) == null ? void 0 : B[1].schema) : void 0), C = U != null && U.$ref ? d(U.$ref) : U, q = g.example ?? f(g.examples) ?? (C == null ? void 0 : C.example) ?? (C == null ? void 0 : C.default) ?? ((re = C == null ? void 0 : C.enum) == null ? void 0 : re[0]), I = A === "path" || g.required === !0, D = { key: g.name, value: ue(q), in: A };
2041
+ const U = c(g.schema) ?? (N(g.content) ? c((W = Be(g.content)) == null ? void 0 : W[1].schema) : void 0), C = U != null && U.$ref ? d(U.$ref) : U, q = g.example ?? f(g.examples) ?? (C == null ? void 0 : C.example) ?? (C == null ? void 0 : C.default) ?? ((re = C == null ? void 0 : C.enum) == null ? void 0 : re[0]), I = A === "path" || g.required === !0, D = { key: g.name, value: fe(q), in: A };
2042
2042
  return I && (D.required = !0), !I && q === void 0 && (D.enabled = !1), typeof g.description == "string" && (D.description = g.description), U && (D.schema = U), typeof g.style == "string" && (D.style = g.style), typeof g.explode == "boolean" && (D.explode = g.explode), D;
2043
2043
  }, T = (h, g) => {
2044
2044
  const A = c(g.schema), U = g.example ?? f(g.examples), C = U !== void 0 ? U : Rt(A, { resolveRef: d, usage: "request" }), q = (I) => {
@@ -2049,25 +2049,25 @@ function Wn(e, t = {}) {
2049
2049
  const I = N(C) ? C : {};
2050
2050
  return {
2051
2051
  kind: "form",
2052
- fields: (Object.keys(I).length ? Object.keys(I) : Object.keys(q(A))).map((B) => ({ key: B, value: ue(I[B]) }))
2052
+ fields: (Object.keys(I).length ? Object.keys(I) : Object.keys(q(A))).map((W) => ({ key: W, value: fe(I[W]) }))
2053
2053
  };
2054
2054
  }
2055
2055
  if (h.startsWith("multipart/")) {
2056
2056
  const I = N(C) ? C : {};
2057
2057
  return {
2058
2058
  kind: "multipart",
2059
- parts: Object.entries(q(A)).map(([D, B]) => {
2059
+ parts: Object.entries(q(A)).map(([D, W]) => {
2060
2060
  var ie;
2061
- return B.format === "binary" || B.format === "base64" || B.contentMediaType !== void 0 || B.type === "array" && ((ie = B.items) == null ? void 0 : ie.format) === "binary" ? { key: D, value: "", type: "file" } : { key: D, value: ue(I[D]), type: "text" };
2061
+ return W.format === "binary" || W.format === "base64" || W.contentMediaType !== void 0 || W.type === "array" && ((ie = W.items) == null ? void 0 : ie.format) === "binary" ? { key: D, value: "", type: "file" } : { key: D, value: fe(I[D]), type: "text" };
2062
2062
  })
2063
2063
  };
2064
2064
  }
2065
2065
  return /json/.test(h) ? {
2066
2066
  kind: "json",
2067
2067
  text: typeof C == "string" ? C : JSON.stringify(C ?? {}, null, 2)
2068
- } : h === "application/graphql" ? { kind: "graphql", query: ue(C) } : /xml/.test(h) ? { kind: "xml", text: typeof C == "string" ? C : "" } : h.startsWith("text/") ? {
2068
+ } : h === "application/graphql" ? { kind: "graphql", query: fe(C) } : /xml/.test(h) ? { kind: "xml", text: typeof C == "string" ? C : "" } : h.startsWith("text/") ? {
2069
2069
  kind: "text",
2070
- text: ue(C),
2070
+ text: fe(C),
2071
2071
  contentType: h === "text/plain" ? void 0 : h
2072
2072
  } : { kind: "binary", contentType: h };
2073
2073
  }, b = (h) => {
@@ -2076,7 +2076,7 @@ function Wn(e, t = {}) {
2076
2076
  return {};
2077
2077
  const A = {};
2078
2078
  typeof g.description == "string" && (A.description = g.description);
2079
- const U = N(g.content) ? We(g.content) : void 0;
2079
+ const U = N(g.content) ? Be(g.content) : void 0;
2080
2080
  if (U) {
2081
2081
  const [C, q] = U;
2082
2082
  A.contentType = C;
@@ -2108,9 +2108,9 @@ function Wn(e, t = {}) {
2108
2108
  ft >= 0 ? I[ft] = ce : I.push(ce);
2109
2109
  }
2110
2110
  let D = { kind: "none" };
2111
- const B = a(q.requestBody);
2112
- if (N(B) && N(B.content)) {
2113
- const G = We(B.content);
2111
+ const W = a(q.requestBody);
2112
+ if (N(W) && N(W.content)) {
2113
+ const G = Be(W.content);
2114
2114
  G && (D = T(G[0], G[1]), ((x = Ce(D)) == null ? void 0 : x.split(";")[0]) !== G[0] && D.kind !== "multipart" && I.push({ key: "Content-Type", value: G[0], in: "header" }));
2115
2115
  }
2116
2116
  const re = {};
@@ -2121,7 +2121,7 @@ function Wn(e, t = {}) {
2121
2121
  ie != null && ie.contentType && ie.contentType !== "*/*" && I.push({ key: "Accept", value: ie.contentType, in: "header" });
2122
2122
  let Ee = v(q.security);
2123
2123
  Ee && S && JSON.stringify(Ee) === JSON.stringify(S) && (Ee = void 0);
2124
- const le = Array.isArray(q.tags) ? q.tags.filter((G) => typeof G == "string") : void 0, Zt = ge({
2124
+ const ue = Array.isArray(q.tags) ? q.tags.filter((G) => typeof G == "string") : void 0, Zt = ge({
2125
2125
  name: z(q.summary) ?? z(q.operationId) ?? `${C.toUpperCase()} ${h}`,
2126
2126
  method: C.toUpperCase(),
2127
2127
  url: `{{${r}}}${h}`,
@@ -2130,11 +2130,11 @@ function Wn(e, t = {}) {
2130
2130
  auth: Ee,
2131
2131
  description: z(q.description),
2132
2132
  operationId: z(q.operationId),
2133
- tags: le != null && le.length ? le : void 0,
2133
+ tags: ue != null && ue.length ? ue : void 0,
2134
2134
  deprecated: q.deprecated === !0 || void 0,
2135
2135
  responses: Object.keys(re).length ? re : void 0
2136
2136
  });
2137
- w.push({ request: Zt, tag: le == null ? void 0 : le[0], segment: h.split("/").filter(Boolean)[0] });
2137
+ w.push({ request: Zt, tag: ue == null ? void 0 : ue[0], segment: h.split("/").filter(Boolean)[0] });
2138
2138
  }
2139
2139
  }
2140
2140
  const P = [], R = t.groupBy ?? "tag";
@@ -2159,13 +2159,13 @@ function Wn(e, t = {}) {
2159
2159
  let g = z(h.url) ?? "";
2160
2160
  if (N(h.variables))
2161
2161
  for (const [A, U] of Object.entries(h.variables))
2162
- N(U) && (g = g.split(`{${A}}`).join(ue(U.default)));
2162
+ N(U) && (g = g.split(`{${A}}`).join(fe(U.default)));
2163
2163
  return { url: g, description: z(h.description) };
2164
2164
  }), j = N(s.info) ? s.info : {};
2165
2165
  return be({
2166
2166
  name: z(j.title) ?? "API",
2167
2167
  description: z(j.description),
2168
- version: j.version === void 0 ? void 0 : ue(j.version),
2168
+ version: j.version === void 0 ? void 0 : fe(j.version),
2169
2169
  items: P,
2170
2170
  variables: [{ key: r, value: ((M = H[0]) == null ? void 0 : M.url) ?? "" }, ...l.values()],
2171
2171
  auth: S,
@@ -2173,7 +2173,7 @@ function Wn(e, t = {}) {
2173
2173
  schemas: Object.keys(u).length ? u : void 0
2174
2174
  });
2175
2175
  }
2176
- function Bn(e) {
2176
+ function Wn(e) {
2177
2177
  const t = (y) => {
2178
2178
  if (Array.isArray(y))
2179
2179
  return y.map(t);
@@ -2333,7 +2333,7 @@ function Bn(e) {
2333
2333
  }
2334
2334
  };
2335
2335
  }
2336
- function Ds(e) {
2336
+ function Hs(e) {
2337
2337
  const t = /* @__PURE__ */ new Map(), n = (s, r) => {
2338
2338
  if (!s || s.type === "none" || s.type === "inherit")
2339
2339
  return;
@@ -2350,7 +2350,7 @@ function Ds(e) {
2350
2350
  r ? i.requestIds.push(r) : i.collectionDefault = !0, t.set(o.name, i);
2351
2351
  };
2352
2352
  n(e.auth);
2353
- for (const { request: s, folders: r } of me(e.items)) {
2353
+ for (const { request: s, folders: r } of le(e.items)) {
2354
2354
  let o = s.auth;
2355
2355
  for (let i = r.length - 1; (!o || o.type === "inherit") && i >= 0; i--)
2356
2356
  o = r[i].auth;
@@ -2523,7 +2523,7 @@ function Kn(e, t = {}) {
2523
2523
  if (S)
2524
2524
  return i[S.name] = S.scheme, [{ [S.name]: S.scopes }];
2525
2525
  }, c = a(e.auth), p = {}, u = /* @__PURE__ */ new Map();
2526
- for (const { request: b, folders: S } of me(e.items)) {
2526
+ for (const { request: b, folders: S } of le(e.items)) {
2527
2527
  const w = Fn(b.url, o), O = b.method.toLowerCase();
2528
2528
  if (p[w] ?? (p[w] = {}), p[w][O])
2529
2529
  continue;
@@ -2575,17 +2575,17 @@ function Kn(e, t = {}) {
2575
2575
  const f = {};
2576
2576
  return e.schemas && Object.keys(e.schemas).length && (f.schemas = e.schemas), Object.keys(i).length && (f.securitySchemes = i), Object.keys(f).length && (d.components = f), d;
2577
2577
  }
2578
- function Hs(e, t = {}) {
2578
+ function zs(e, t = {}) {
2579
2579
  return Mn(Kn(e, t));
2580
2580
  }
2581
- const W = (e) => !!e && typeof e == "object" && !Array.isArray(e), E = (e) => typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : void 0, ke = (e) => Array.isArray(e) ? e.filter(W) : [], Jn = "https://schema.getpostman.com/json/collection/v2.1.0/collection.json";
2581
+ const B = (e) => !!e && typeof e == "object" && !Array.isArray(e), E = (e) => typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : void 0, ke = (e) => Array.isArray(e) ? e.filter(B) : [], Jn = "https://schema.getpostman.com/json/collection/v2.1.0/collection.json";
2582
2582
  function Ht(e) {
2583
- return W(e) && W(e.info) && Array.isArray(e.item);
2583
+ return B(e) && B(e.info) && Array.isArray(e.item);
2584
2584
  }
2585
2585
  function ye(e) {
2586
2586
  if (typeof e == "string")
2587
2587
  return e || void 0;
2588
- if (W(e))
2588
+ if (B(e))
2589
2589
  return E(e.content);
2590
2590
  }
2591
2591
  function Se(e) {
@@ -2597,13 +2597,13 @@ function Se(e) {
2597
2597
  });
2598
2598
  }
2599
2599
  function lt(e) {
2600
- if (!W(e) || typeof e.type != "string")
2600
+ if (!B(e) || typeof e.type != "string")
2601
2601
  return;
2602
2602
  const t = e[e.type], n = (s) => {
2603
2603
  var r;
2604
2604
  if (Array.isArray(t))
2605
- return E((r = t.filter(W).find((o) => o.key === s)) == null ? void 0 : r.value);
2606
- if (W(t))
2605
+ return E((r = t.filter(B).find((o) => o.key === s)) == null ? void 0 : r.value);
2606
+ if (B(t))
2607
2607
  return E(t[s]);
2608
2608
  };
2609
2609
  switch (e.type) {
@@ -2670,14 +2670,14 @@ function Qn(e) {
2670
2670
  const { base: o, query: i, hash: a } = pe(e);
2671
2671
  return { url: o + a, params: i.map((c) => ({ ...c, in: "query" })) };
2672
2672
  }
2673
- if (!W(e))
2673
+ if (!B(e))
2674
2674
  return { url: "", params: [] };
2675
2675
  const t = E(e.raw);
2676
2676
  let n;
2677
2677
  if (t !== void 0)
2678
2678
  n = pe(t).base;
2679
2679
  else {
2680
- const o = E(e.protocol), i = Array.isArray(e.host) ? e.host.join(".") : E(e.host) ?? "", a = E(e.port), c = Array.isArray(e.path) ? e.path.map((p) => (W(p) ? E(p.value) : E(p)) ?? "").join("/") : E(e.path) ?? "";
2680
+ const o = E(e.protocol), i = Array.isArray(e.host) ? e.host.join(".") : E(e.host) ?? "", a = E(e.port), c = Array.isArray(e.path) ? e.path.map((p) => (B(p) ? E(p.value) : E(p)) ?? "").join("/") : E(e.path) ?? "";
2681
2681
  n = `${o ? `${o}://` : ""}${i}${a ? `:${a}` : ""}${c ? `/${c.replace(/^\//, "")}` : ""}`;
2682
2682
  }
2683
2683
  const s = Array.isArray(e.query) ? Se(e.query).map((o) => ({ ...o, in: "query" })) : t !== void 0 ? pe(t).query.map((o) => ({ ...o, in: "query" })) : [], r = Se(e.variable).map((o) => ({
@@ -2688,11 +2688,11 @@ function Qn(e) {
2688
2688
  return { url: n, params: [...r, ...s] };
2689
2689
  }
2690
2690
  function Gn(e) {
2691
- if (!W(e))
2691
+ if (!B(e))
2692
2692
  return { kind: "none" };
2693
2693
  switch (e.mode) {
2694
2694
  case "raw": {
2695
- const t = E(e.raw) ?? "", n = W(e.options) && W(e.options.raw) ? E(e.options.raw.language) : void 0;
2695
+ const t = E(e.raw) ?? "", n = B(e.options) && B(e.options.raw) ? E(e.options.raw.language) : void 0;
2696
2696
  return n === "json" ? { kind: "json", text: t } : n === "xml" ? /<(\w+:)?Envelope[\s>]/.test(t) ? { kind: "soap", envelope: t, version: "1.1" } : { kind: "xml", text: t } : n === "html" ? { kind: "text", text: t, contentType: "text/html" } : n === "javascript" ? { kind: "text", text: t, contentType: "application/javascript" } : !n && /^\s*[[{]/.test(t) ? { kind: "json", text: t } : { kind: "text", text: t };
2697
2697
  }
2698
2698
  case "urlencoded":
@@ -2712,9 +2712,9 @@ function Gn(e) {
2712
2712
  })
2713
2713
  };
2714
2714
  case "file":
2715
- return { kind: "binary", fileName: W(e.file) ? E(e.file.src) : void 0 };
2715
+ return { kind: "binary", fileName: B(e.file) ? E(e.file.src) : void 0 };
2716
2716
  case "graphql": {
2717
- const t = W(e.graphql) ? e.graphql : {};
2717
+ const t = B(e.graphql) ? e.graphql : {};
2718
2718
  return { kind: "graphql", query: E(t.query) ?? "", variables: E(t.variables) };
2719
2719
  }
2720
2720
  default:
@@ -2724,14 +2724,14 @@ function Gn(e) {
2724
2724
  function zt(e) {
2725
2725
  const t = {};
2726
2726
  for (const n of ke(e)) {
2727
- const s = W(n.script) ? n.script : {}, r = Array.isArray(s.exec) ? s.exec.map((o) => E(o) ?? "").join(`
2727
+ const s = B(n.script) ? n.script : {}, r = Array.isArray(s.exec) ? s.exec.map((o) => E(o) ?? "").join(`
2728
2728
  `) : E(s.exec) ?? "";
2729
2729
  r.trim() && (n.listen === "prerequest" && (t.preRequest = r), n.listen === "test" && (t.test = r));
2730
2730
  }
2731
2731
  return t.preRequest || t.test ? t : void 0;
2732
2732
  }
2733
2733
  function Yn(e) {
2734
- const t = W(e.request) ? e.request : typeof e.request == "string" ? { url: e.request } : {}, { url: n, params: s } = Qn(t.url), r = Se(t.header).map((i) => ({ ...i, in: "header" })), o = ke(e.response).map((i) => ({
2734
+ const t = B(e.request) ? e.request : typeof e.request == "string" ? { url: e.request } : {}, { url: n, params: s } = Qn(t.url), r = Se(t.header).map((i) => ({ ...i, in: "header" })), o = ke(e.response).map((i) => ({
2735
2735
  name: E(i.name) ?? "Example",
2736
2736
  status: Number(i.code ?? 200) || 200,
2737
2737
  headers: Se(i.header),
@@ -2750,18 +2750,18 @@ function Yn(e) {
2750
2750
  examples: o.length ? o : void 0
2751
2751
  });
2752
2752
  }
2753
- function Wt(e) {
2753
+ function Bt(e) {
2754
2754
  return ke(e).map(
2755
2755
  (t) => Array.isArray(t.item) ? Te({
2756
2756
  id: E(t.id) ?? void 0,
2757
2757
  name: E(t.name) ?? "Folder",
2758
2758
  description: ye(t.description),
2759
- items: Wt(t.item),
2759
+ items: Bt(t.item),
2760
2760
  auth: lt(t.auth)
2761
2761
  }) : Yn(t)
2762
2762
  );
2763
2763
  }
2764
- function Bt(e) {
2764
+ function Wt(e) {
2765
2765
  return ke(e).map((t) => {
2766
2766
  const n = { key: E(t.key) ?? "", value: E(t.value) ?? "" };
2767
2767
  t.type === "secret" && (n.secret = !0), (t.disabled === !0 || t.enabled === !1) && (n.enabled = !1);
@@ -2777,9 +2777,9 @@ function Xn(e) {
2777
2777
  id: E(s._postman_id) ?? void 0,
2778
2778
  name: E(s.name) ?? "Postman collection",
2779
2779
  description: ye(s.description),
2780
- version: W(s.version) ? E(s.version.raw) : E(s.version),
2781
- items: Wt(n.item),
2782
- variables: Bt(n.variable),
2780
+ version: B(s.version) ? E(s.version.raw) : E(s.version),
2781
+ items: Bt(n.item),
2782
+ variables: Wt(n.variable),
2783
2783
  auth: lt(n.auth)
2784
2784
  });
2785
2785
  if (r) {
@@ -2792,12 +2792,12 @@ function Xn(e) {
2792
2792
  }
2793
2793
  function Zn(e) {
2794
2794
  const t = typeof e == "string" ? JSON.parse(e) : e;
2795
- if (!W(t) || !Array.isArray(t.values))
2795
+ if (!B(t) || !Array.isArray(t.values))
2796
2796
  throw new Error("Not a Postman environment");
2797
2797
  return {
2798
2798
  id: E(t.id) ?? Ne("e"),
2799
2799
  name: E(t.name) ?? "Environment",
2800
- values: Bt(t.values)
2800
+ values: Wt(t.values)
2801
2801
  };
2802
2802
  }
2803
2803
  const V = (e, t) => ({
@@ -2961,7 +2961,7 @@ function Ft(e) {
2961
2961
  body: a.body ?? ""
2962
2962
  })), o;
2963
2963
  }
2964
- function zs(e) {
2964
+ function Bs(e) {
2965
2965
  const t = {
2966
2966
  info: {
2967
2967
  _postman_id: e.id,
@@ -2991,12 +2991,12 @@ function Ws(e) {
2991
2991
  _postman_variable_scope: "environment"
2992
2992
  };
2993
2993
  }
2994
- const fe = (e) => !!e && typeof e == "object" && !Array.isArray(e), K = (e) => typeof e == "string" ? e : void 0, Ze = (e) => Array.isArray(e) ? e.filter(fe) : [], ss = /^(image|font|audio|video)\/|^text\/css|javascript|^application\/(x-)?font|wasm/;
2994
+ const de = (e) => !!e && typeof e == "object" && !Array.isArray(e), K = (e) => typeof e == "string" ? e : void 0, Ze = (e) => Array.isArray(e) ? e.filter(de) : [], ss = /^(image|font|audio|video)\/|^text\/css|javascript|^application\/(x-)?font|wasm/;
2995
2995
  function we(e) {
2996
2996
  return Ze(e).map((t) => ({ key: K(t.name) ?? "", value: K(t.value) ?? "" }));
2997
2997
  }
2998
2998
  function Vt(e) {
2999
- return fe(e) && fe(e.log) && Array.isArray(e.log.entries);
2999
+ return de(e) && de(e.log) && Array.isArray(e.log.entries);
3000
3000
  }
3001
3001
  function rs(e, t = {}) {
3002
3002
  const n = typeof e == "string" ? JSON.parse(e) : e;
@@ -3006,7 +3006,7 @@ function rs(e, t = {}) {
3006
3006
  for (const i of s) {
3007
3007
  if (t.filter && !t.filter(i))
3008
3008
  continue;
3009
- const a = fe(i.request) ? i.request : {}, c = fe(i.response) ? i.response : {}, p = fe(c.content) ? c.content : {}, u = (K(p.mimeType) ?? "").toLowerCase();
3009
+ const a = de(i.request) ? i.request : {}, c = de(i.response) ? i.response : {}, p = de(c.content) ? c.content : {}, u = (K(p.mimeType) ?? "").toLowerCase();
3010
3010
  if (r && ss.test(u))
3011
3011
  continue;
3012
3012
  const { base: d, query: f } = pe(K(a.url) ?? ""), l = Array.isArray(a.queryString) ? we(a.queryString) : f, m = we(a.cookies), k = we(a.headers).filter(
@@ -3017,7 +3017,7 @@ function rs(e, t = {}) {
3017
3017
  ...m.map((w) => ({ ...w, in: "cookie" }))
3018
3018
  ];
3019
3019
  let v = { kind: "none" };
3020
- const $ = fe(a.postData) ? a.postData : void 0;
3020
+ const $ = de(a.postData) ? a.postData : void 0;
3021
3021
  if ($) {
3022
3022
  const w = K($.mimeType) ?? "", O = Ze($.params);
3023
3023
  O.length && w.includes("multipart") ? v = {
@@ -3056,17 +3056,17 @@ function rs(e, t = {}) {
3056
3056
  }
3057
3057
  return be({ name: t.name ?? "HAR import", items: o });
3058
3058
  }
3059
- const Be = (e) => ({ name: e.key, value: e.value });
3060
- function Bs(e, t = {}) {
3061
- const n = Array.isArray(e) ? e : me(e.items).map((i) => i.request), s = t.transform ?? ((i) => i), r = (t.now ?? (() => /* @__PURE__ */ new Date()))().toISOString(), o = n.map((i) => {
3059
+ const We = (e) => ({ name: e.key, value: e.value });
3060
+ function Fs(e, t = {}) {
3061
+ const n = Array.isArray(e) ? e : le(e.items).map((i) => i.request), s = t.transform ?? ((i) => i), r = (t.now ?? (() => /* @__PURE__ */ new Date()))().toISOString(), o = n.map((i) => {
3062
3062
  var k, y, v, $, T;
3063
3063
  const a = Ue(i, s), c = i.params.filter((b) => b.in === "header" && L(b)).map((b) => ({ key: s(b.key), value: s(b.value) })), p = i.params.filter((b) => b.in === "cookie" && L(b)).map((b) => ({ key: s(b.key), value: s(b.value) })), u = ((k = c.find((b) => /^content-type$/i.test(b.key))) == null ? void 0 : k.value) ?? Ce(i.body), d = {
3064
3064
  method: i.method.toUpperCase(),
3065
3065
  url: a,
3066
3066
  httpVersion: "HTTP/1.1",
3067
- headers: c.map(Be),
3067
+ headers: c.map(We),
3068
3068
  queryString: i.params.filter((b) => b.in === "query" && L(b)).map((b) => ({ name: s(b.key), value: s(b.value) })),
3069
- cookies: p.map(Be),
3069
+ cookies: p.map(We),
3070
3070
  headersSize: -1,
3071
3071
  bodySize: -1
3072
3072
  }, f = i.body;
@@ -3090,7 +3090,7 @@ function Bs(e, t = {}) {
3090
3090
  // the example's name is "201 Created" when it came from a HAR
3091
3091
  statusText: l ? l.name.replace(new RegExp(`^${l.status}\\s*`), "") : "",
3092
3092
  httpVersion: "HTTP/1.1",
3093
- headers: ((l == null ? void 0 : l.headers) ?? []).map(Be),
3093
+ headers: ((l == null ? void 0 : l.headers) ?? []).map(We),
3094
3094
  cookies: [],
3095
3095
  content: {
3096
3096
  size: ((T = l == null ? void 0 : l.body) == null ? void 0 : T.length) ?? 0,
@@ -3113,7 +3113,7 @@ function Bs(e, t = {}) {
3113
3113
  }
3114
3114
  };
3115
3115
  }
3116
- const Fs = `query IntrospectionQuery {
3116
+ const Vs = `query IntrospectionQuery {
3117
3117
  __schema {
3118
3118
  queryType { name }
3119
3119
  mutationType { name }
@@ -3295,7 +3295,7 @@ function ls(e, t = {}) {
3295
3295
  variables: [{ key: "graphqlUrl", value: t.endpoint ?? "" }]
3296
3296
  });
3297
3297
  }
3298
- const Q = "http://schemas.xmlsoap.org/wsdl/", Fe = "http://schemas.xmlsoap.org/wsdl/soap/", Ve = "http://schemas.xmlsoap.org/wsdl/soap12/", de = "http://www.w3.org/2001/XMLSchema", us = "http://schemas.xmlsoap.org/soap/envelope/", fs = "http://www.w3.org/2003/05/soap-envelope", ee = (e, t) => `{${e ?? ""}}${t}`;
3298
+ const Q = "http://schemas.xmlsoap.org/wsdl/", Fe = "http://schemas.xmlsoap.org/wsdl/soap/", Ve = "http://schemas.xmlsoap.org/wsdl/soap12/", me = "http://www.w3.org/2001/XMLSchema", us = "http://schemas.xmlsoap.org/soap/envelope/", fs = "http://www.w3.org/2003/05/soap-envelope", ee = (e, t) => `{${e ?? ""}}${t}`;
3299
3299
  function X(e, t, n) {
3300
3300
  return Array.from(e.childNodes).filter(
3301
3301
  (s) => s.nodeType === 1 && s.localName === n && (t === null || s.namespaceURI === t)
@@ -3326,14 +3326,14 @@ function ms(e, t = ds()) {
3326
3326
  if (!s || s.localName !== "definitions" || s.namespaceURI !== Q)
3327
3327
  throw new Error("Not a WSDL 1.1 document");
3328
3328
  const r = s.getAttribute("targetNamespace") ?? void 0, o = { elements: /* @__PURE__ */ new Map(), types: /* @__PURE__ */ new Map(), qualified: /* @__PURE__ */ new Map() }, i = ne(s, Q, "types");
3329
- for (const d of i ? X(i, de, "schema") : []) {
3329
+ for (const d of i ? X(i, me, "schema") : []) {
3330
3330
  const f = d.getAttribute("targetNamespace") ?? void 0;
3331
3331
  o.qualified.set(f ?? "", d.getAttribute("elementFormDefault") === "qualified");
3332
- for (const l of X(d, de, "element")) {
3332
+ for (const l of X(d, me, "element")) {
3333
3333
  const m = l.getAttribute("name");
3334
3334
  m && o.elements.set(ee(f, m), l);
3335
3335
  }
3336
- for (const l of [...X(d, de, "complexType"), ...X(d, de, "simpleType")]) {
3336
+ for (const l of [...X(d, me, "complexType"), ...X(d, me, "simpleType")]) {
3337
3337
  const m = l.getAttribute("name");
3338
3338
  m && o.types.set(ee(f, m), l);
3339
3339
  }
@@ -3418,9 +3418,9 @@ function Qt(e, t, n, s, r, o, i) {
3418
3418
  }
3419
3419
  const u = c.getAttribute("name") ?? a.split(":").pop() ?? a, d = r && p ? nt(p, s) : "", f = d ? `${d}:${u}` : u, m = c.getAttribute("minOccurs") === "0" || t.getAttribute("minOccurs") === "0" ? `${o}<!--Optional:-->
3420
3420
  ` : "";
3421
- let k = ne(c, de, "complexType");
3421
+ let k = ne(c, me, "complexType");
3422
3422
  const y = ae(c, c.getAttribute("type"));
3423
- if (!k && y && y.namespace !== de) {
3423
+ if (!k && y && y.namespace !== me) {
3424
3424
  const $ = e.schema.types.get(ee(y.namespace, y.name));
3425
3425
  ($ == null ? void 0 : $.localName) === "complexType" && (k = $);
3426
3426
  }
@@ -3437,7 +3437,7 @@ function hs(e, t, n, s, r, o) {
3437
3437
  if (u.nodeType !== 1)
3438
3438
  continue;
3439
3439
  const d = u;
3440
- if (d.namespaceURI === de) {
3440
+ if (d.namespaceURI === me) {
3441
3441
  if (d.localName === "element")
3442
3442
  a.push(Qt(e, d, n, s, i, `${r} `, o + 1));
3443
3443
  else if (["sequence", "all", "choice", "complexContent", "extension"].includes(d.localName)) {
@@ -3792,7 +3792,7 @@ async function At(e, t = {}) {
3792
3792
  } else r.type === "awsSigV4" ? await vs(f, r, l) : r.type === "hmac" && await As(f, r, l);
3793
3793
  return f;
3794
3794
  }
3795
- async function Vs(e, t, n = {}, s) {
3795
+ async function Ks(e, t, n = {}, s) {
3796
3796
  let r = await At(e, n), o = await t(r, s);
3797
3797
  const i = n.auth ?? e.auth;
3798
3798
  if (o.status === 401 && (i == null ? void 0 : i.type) === "digest" && !i.nonce) {
@@ -3816,7 +3816,7 @@ function xt(e, t) {
3816
3816
  const n = Uint8Array.from(atob(e), (s) => s.charCodeAt(0));
3817
3817
  return new Blob([n], t ? { type: t } : void 0);
3818
3818
  }
3819
- function Ks(e = (...t) => fetch(...t)) {
3819
+ function Js(e = (...t) => fetch(...t)) {
3820
3820
  return async (t, n) => {
3821
3821
  var p, u, d;
3822
3822
  const s = new Headers();
@@ -3868,13 +3868,13 @@ function Ks(e = (...t) => fetch(...t)) {
3868
3868
  function Tt(e) {
3869
3869
  return ut(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
3870
3870
  }
3871
- async function Js() {
3871
+ async function Qs() {
3872
3872
  const e = new Uint8Array(32);
3873
3873
  globalThis.crypto.getRandomValues(e);
3874
3874
  const t = Tt(e), n = Tt(await Re("SHA-256", t));
3875
3875
  return { verifier: t, challenge: n };
3876
3876
  }
3877
- function Qs(e, t = {}) {
3877
+ function Gs(e, t = {}) {
3878
3878
  const n = new URLSearchParams();
3879
3879
  n.set("response_type", e.grant === "implicit" ? "token" : "code"), n.set("client_id", e.clientId), e.redirectUri && n.set("redirect_uri", e.redirectUri), e.scope && n.set("scope", e.scope), e.audience && n.set("audience", e.audience), t.state && n.set("state", t.state), t.challenge && (n.set("code_challenge", t.challenge), n.set("code_challenge_method", "S256"));
3880
3880
  const s = e.authUrl ?? "";
@@ -3918,7 +3918,7 @@ async function Oe(e, t, n) {
3918
3918
  idToken: typeof i.id_token == "string" ? i.id_token : void 0
3919
3919
  };
3920
3920
  }
3921
- async function Gs(e, t) {
3921
+ async function Ys(e, t) {
3922
3922
  if (e.grant === "clientCredentials")
3923
3923
  return Oe(e, { grant_type: "client_credentials" }, t);
3924
3924
  if (e.grant === "password")
@@ -3931,14 +3931,14 @@ async function Gs(e, t) {
3931
3931
  `OAuth 2: the ${e.grant} grant needs the user — use buildAuthorizationUrl / startDeviceAuthorization`
3932
3932
  );
3933
3933
  }
3934
- async function Ys(e, t, n, s) {
3934
+ async function Xs(e, t, n, s) {
3935
3935
  const r = { grant_type: "authorization_code", code: t };
3936
3936
  return e.redirectUri && (r.redirect_uri = e.redirectUri), s && (r.code_verifier = s), Oe(e, r, n);
3937
3937
  }
3938
- async function Xs(e, t, n) {
3938
+ async function Zs(e, t, n) {
3939
3939
  return Oe(e, { grant_type: "refresh_token", refresh_token: t }, n);
3940
3940
  }
3941
- async function Zs(e, t) {
3941
+ async function er(e, t) {
3942
3942
  if (!e.deviceUrl)
3943
3943
  throw new Error("OAuth 2: no device authorization URL");
3944
3944
  const n = new URLSearchParams({ client_id: e.clientId });
@@ -3963,7 +3963,7 @@ async function Zs(e, t) {
3963
3963
  expiresIn: r.expires_in === void 0 ? void 0 : Number(r.expires_in)
3964
3964
  };
3965
3965
  }
3966
- async function er(e, t, n) {
3966
+ async function tr(e, t, n) {
3967
3967
  try {
3968
3968
  return await Oe(
3969
3969
  e,
@@ -4096,7 +4096,7 @@ function js(e, t, n, s, r, o) {
4096
4096
  }
4097
4097
  return a;
4098
4098
  }
4099
- function tr(e, t = {}) {
4099
+ function nr(e, t = {}) {
4100
4100
  var o;
4101
4101
  const n = { ...Ts, ...t.labels }, s = [`# ${e.name}`, ""];
4102
4102
  e.description && s.push(e.description, ""), e.version && s.push(`**${n.version}:** ${e.version}`, ""), (o = e.servers) != null && o.length && s.push(
@@ -4148,13 +4148,13 @@ function Os(e, t = {}) {
4148
4148
  if (r.__schema || o != null && o.__schema)
4149
4149
  return "graphql";
4150
4150
  }
4151
- function nr(e, t = {}) {
4151
+ function sr(e, t = {}) {
4152
4152
  const n = Os(e, t), s = () => Yt(e.trim(), t.parseYaml);
4153
4153
  switch (n) {
4154
4154
  case "curl":
4155
4155
  return { kind: n, request: $n(e) };
4156
4156
  case "openapi":
4157
- return { kind: n, collection: Wn(s(), t) };
4157
+ return { kind: n, collection: Bn(s(), t) };
4158
4158
  case "postman":
4159
4159
  return { kind: n, collection: Xn(s()) };
4160
4160
  case "postman-environment":
@@ -4171,7 +4171,7 @@ function nr(e, t = {}) {
4171
4171
  );
4172
4172
  }
4173
4173
  }
4174
- const sr = [
4174
+ const rr = [
4175
4175
  "rest",
4176
4176
  "graphql",
4177
4177
  "soap",
@@ -4183,7 +4183,7 @@ const sr = [
4183
4183
  "database",
4184
4184
  "sftp"
4185
4185
  ];
4186
- function rr(e = {}) {
4186
+ function ir(e = {}) {
4187
4187
  return {
4188
4188
  ...e,
4189
4189
  key: e.key ?? Ne("i"),
@@ -4207,7 +4207,7 @@ function Xt(e, t) {
4207
4207
  i.secret && o[i.key] === void 0 && (o[i.key] = `{{secret:${i.key}}}`);
4208
4208
  return o;
4209
4209
  }
4210
- function ir(e, t, n) {
4210
+ function or(e, t, n) {
4211
4211
  const s = /* @__PURE__ */ new Set();
4212
4212
  let r = e.sets.find((a) => a.id === t), o = !0;
4213
4213
  for (; r && !s.has(r.id); ) {
@@ -4218,7 +4218,7 @@ function ir(e, t, n) {
4218
4218
  const i = e.variables.find((a) => a.key === n);
4219
4219
  return (i == null ? void 0 : i.defaultValue) !== void 0 ? { value: i.defaultValue, from: "default" } : { from: "none" };
4220
4220
  }
4221
- function or(e) {
4221
+ function ar(e) {
4222
4222
  return e.sets.map((t) => ({
4223
4223
  id: t.id,
4224
4224
  name: t.name,
@@ -4232,7 +4232,7 @@ function or(e) {
4232
4232
  })
4233
4233
  }));
4234
4234
  }
4235
- function ar(e, t) {
4235
+ function cr(e, t) {
4236
4236
  return (t ? e.sets.find((n) => {
4237
4237
  var s;
4238
4238
  return ((s = n.appliesTo) == null ? void 0 : s.database) === t;
@@ -4252,7 +4252,7 @@ function ot(e, t = []) {
4252
4252
  ot(n, t);
4253
4253
  return t;
4254
4254
  }
4255
- function cr(e, t = { variables: [], sets: [] }, n = {}) {
4255
+ function pr(e, t = { variables: [], sets: [] }, n = {}) {
4256
4256
  var a, c;
4257
4257
  const s = [], r = new Set(t.variables.map((p) => p.key)), o = /* @__PURE__ */ new Set();
4258
4258
  for (const p of e.integrations) {
@@ -4279,7 +4279,7 @@ function cr(e, t = { variables: [], sets: [] }, n = {}) {
4279
4279
  message: `${u}: {{${m}}} is not declared in the environment variables`
4280
4280
  });
4281
4281
  const f = new Set(
4282
- me(p.endpoints.items).map(({ request: m }) => m.id)
4282
+ le(p.endpoints.items).map(({ request: m }) => m.id)
4283
4283
  ), l = new Set((p.expose ?? []).map((m) => m.key));
4284
4284
  for (const m of p.operations ?? [])
4285
4285
  m.endpoint && !f.has(m.endpoint) && !l.has(m.endpoint) && s.push({
@@ -4328,11 +4328,11 @@ function cr(e, t = { variables: [], sets: [] }, n = {}) {
4328
4328
  }
4329
4329
  return s;
4330
4330
  }
4331
- function pr(e, t) {
4331
+ function lr(e, t) {
4332
4332
  var p, u, d;
4333
4333
  if (!e || !t)
4334
4334
  return [];
4335
- const n = (p = me(e.items).find(
4335
+ const n = (p = le(e.items).find(
4336
4336
  (f) => f.request.id === t
4337
4337
  )) == null ? void 0 : p.request, s = ((u = n == null ? void 0 : n.responses) == null ? void 0 : u["200"]) ?? ((d = n == null ? void 0 : n.responses) == null ? void 0 : d["201"]), r = pt(e.schemas), o = (f, l = 0) => {
4338
4338
  if (!f || l > 8)
@@ -4364,7 +4364,24 @@ function pr(e, t) {
4364
4364
  }
4365
4365
  return a;
4366
4366
  }
4367
- function lr(e) {
4367
+ function Ns(e) {
4368
+ return e.split(/[^A-Za-z0-9]+/).filter(Boolean).map((n, s) => (s === 0 ? n.charAt(0).toLowerCase() : n.charAt(0).toUpperCase()) + n.slice(1)).join("") || "call";
4369
+ }
4370
+ function ur(e) {
4371
+ var n;
4372
+ const t = [];
4373
+ for (const s of e.integrations)
4374
+ for (const { request: r } of le(((n = s.endpoints) == null ? void 0 : n.items) ?? []))
4375
+ t.push({
4376
+ path: `integrations/${s.key}/${r.operationId || Ns(r.name)}`,
4377
+ name: r.name,
4378
+ kind: "endpoint",
4379
+ group: s.name,
4380
+ description: `${r.method.toUpperCase()} ${r.url}`
4381
+ });
4382
+ return t;
4383
+ }
4384
+ function fr(e) {
4368
4385
  const t = /* @__PURE__ */ new Map();
4369
4386
  for (const s of e) {
4370
4387
  const r = s.package ?? "";
@@ -4378,8 +4395,8 @@ function lr(e) {
4378
4395
  directions: n.filter((o) => r.has(o)).map((o) => ({ direction: o, integrations: r.get(o) }))
4379
4396
  }));
4380
4397
  }
4381
- function ur(e) {
4382
- const t = me(e.endpoints.items).map(
4398
+ function dr(e) {
4399
+ const t = le(e.endpoints.items).map(
4383
4400
  ({ request: s }) => ({
4384
4401
  id: s.id,
4385
4402
  label: `${s.method} ${s.name}`,
@@ -4393,74 +4410,75 @@ function ur(e) {
4393
4410
  return [...t, ...n];
4394
4411
  }
4395
4412
  export {
4396
- Fs as GRAPHQL_INTROSPECTION_QUERY,
4397
- Us as NICE_API_AUTH_TYPES,
4413
+ Vs as GRAPHQL_INTROSPECTION_QUERY,
4414
+ Es as NICE_API_AUTH_TYPES,
4398
4415
  An as NICE_API_CODE_LANGUAGES,
4399
4416
  Ts as NICE_API_MARKDOWN_LABELS,
4400
- Cs as NICE_API_METHODS,
4401
- sr as NICE_CONNECTION_PROTOCOLS,
4417
+ Us as NICE_API_METHODS,
4418
+ rr as NICE_CONNECTION_PROTOCOLS,
4402
4419
  Z as NiceYamlError,
4403
4420
  Jn as POSTMAN_SCHEMA_V21,
4404
- Ds as apiSecuritySchemes,
4405
- Ls as assignedVariableSets,
4421
+ Hs as apiSecuritySchemes,
4422
+ Ps as assignedVariableSets,
4406
4423
  Ce as bodyContentType,
4407
4424
  jt as bodyFromText,
4408
4425
  oe as bodyText,
4409
- Qs as buildAuthorizationUrl,
4426
+ Gs as buildAuthorizationUrl,
4410
4427
  ps as buildGraphqlOperation,
4411
4428
  Ue as buildRequestUrl,
4412
4429
  ys as buildSoapEnvelope,
4413
- tr as collectionToMarkdown,
4414
- Js as createPkcePair,
4430
+ nr as collectionToMarkdown,
4431
+ Qs as createPkcePair,
4415
4432
  Os as detectApiDocument,
4416
4433
  Re as digest,
4417
4434
  ws as digestAuthorization,
4418
4435
  on as effectiveAuth,
4419
- ar as environmentSetFor,
4420
- Ys as exchangeAuthorizationCode,
4421
- Bs as exportHar,
4436
+ cr as environmentSetFor,
4437
+ Xs as exchangeAuthorizationCode,
4438
+ Fs as exportHar,
4422
4439
  Kn as exportOpenApi,
4423
- Hs as exportOpenApiYaml,
4424
- zs as exportPostman,
4440
+ zs as exportOpenApiYaml,
4441
+ Bs as exportPostman,
4425
4442
  Ws as exportPostmanEnvironment,
4426
- Gs as fetchOAuth2Token,
4427
- Ks as fetchTransport,
4443
+ Ys as fetchOAuth2Token,
4444
+ Js as fetchTransport,
4428
4445
  nn as findApiItem,
4429
4446
  Ct as findVariables,
4430
- me as flattenApiRequests,
4447
+ le as flattenApiRequests,
4431
4448
  Et as fromBase64,
4432
4449
  Cn as generateCode,
4433
4450
  qe as graphqlExampleValue,
4434
4451
  os as graphqlOperations,
4435
4452
  et as graphqlTypeName,
4436
- lr as groupIntegrations,
4437
- qs as headerValue,
4453
+ fr as groupIntegrations,
4454
+ Is as headerValue,
4438
4455
  he as hmac,
4439
- nr as importApiDocument,
4456
+ sr as importApiDocument,
4440
4457
  ls as importGraphqlIntrospection,
4441
4458
  rs as importHar,
4442
- Wn as importOpenApi,
4459
+ Bn as importOpenApi,
4443
4460
  Xn as importPostman,
4444
4461
  Zn as importPostmanEnvironment,
4445
4462
  gs as importWsdl,
4446
4463
  Ye as inferSchema,
4447
- ur as integrationEndpoints,
4464
+ dr as integrationEndpoints,
4465
+ ur as integrationFunctions,
4448
4466
  Ut as interpolate,
4449
4467
  dn as isCurlCommand,
4450
4468
  L as isEnabled,
4451
4469
  Vt as isHar,
4452
4470
  Ht as isPostmanCollection,
4453
- Rs as joinUrl,
4471
+ Ms as joinUrl,
4454
4472
  $t as jsonPointer,
4455
4473
  Gt as md5Hex,
4456
4474
  Rt as mockFromSchema,
4457
- Ms as mockResponse,
4475
+ Ds as mockResponse,
4458
4476
  Kt as namedType,
4459
4477
  be as newApiCollection,
4460
4478
  Te as newApiFolder,
4461
4479
  Ne as newApiId,
4462
4480
  ge as newApiRequest,
4463
- rr as newIntegration,
4481
+ ir as newIntegration,
4464
4482
  rn as paramsIn,
4465
4483
  $n as parseCurl,
4466
4484
  $s as parseDigestChallenge,
@@ -4470,32 +4488,32 @@ export {
4470
4488
  ms as parseWsdl,
4471
4489
  In as parseYaml,
4472
4490
  pn as pathParamNames,
4473
- er as pollDeviceToken,
4474
- Xs as refreshOAuth2Token,
4475
- Es as renameApiSchema,
4491
+ tr as pollDeviceToken,
4492
+ Zs as refreshOAuth2Token,
4493
+ _s as renameApiSchema,
4476
4494
  _t as requestName,
4477
4495
  Xt as resolveEnvironmentSet,
4478
4496
  ct as resolvePlainScalar,
4479
4497
  At as resolveRequest,
4480
- pr as responseFieldPaths,
4481
- _s as rowsToRecord,
4498
+ lr as responseFieldPaths,
4499
+ qs as rowsToRecord,
4482
4500
  pt as schemaResolver,
4483
- Vs as sendApiRequest,
4501
+ Ks as sendApiRequest,
4484
4502
  un as setRequestUrl,
4485
4503
  vs as signAwsV4,
4486
4504
  As as signHmac,
4487
4505
  pe as splitUrl,
4488
- Zs as startDeviceAuthorization,
4506
+ er as startDeviceAuthorization,
4489
4507
  Mn as stringifyYaml,
4490
- Bn as swagger2ToOpenApi3,
4508
+ Wn as swagger2ToOpenApi3,
4491
4509
  ln as syncPathParams,
4492
- or as toApiEnvironments,
4510
+ ar as toApiEnvironments,
4493
4511
  at as toBase64,
4494
4512
  De as toCurl,
4495
4513
  hn as tokenizeCommand,
4496
- Is as unresolvedVariables,
4514
+ Ls as unresolvedVariables,
4497
4515
  sn as updateApiItem,
4498
- cr as validateIntegrations,
4499
- ir as valueOrigin,
4500
- Ps as variableScope
4516
+ pr as validateIntegrations,
4517
+ or as valueOrigin,
4518
+ Rs as variableScope
4501
4519
  };