@scalar/api-client 2.23.0 → 2.23.3

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 (95) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/dist/style.css +1 -1
  3. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +13 -3
  4. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +68 -68
  6. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
  7. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +54 -53
  8. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +5 -3
  9. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
  10. package/dist/v2/blocks/operation-block/helpers/build-request-security.js +1 -1
  11. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +3 -2
  12. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  13. package/dist/v2/blocks/operation-block/index.d.ts +2 -1
  14. package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
  15. package/dist/v2/blocks/operation-block/index.js +7 -4
  16. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +3 -2
  17. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  18. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
  19. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +3 -2
  20. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  21. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
  22. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +78 -78
  23. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +2 -2
  24. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts.map +1 -1
  25. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +3 -2
  26. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  27. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +2 -2
  28. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts.map +1 -1
  29. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +8 -5
  30. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  31. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  32. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +4 -4
  33. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
  34. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +49 -45
  35. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  36. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +63 -51
  37. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  38. package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +2 -2
  39. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +4 -2
  40. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  41. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -181
  42. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  43. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +118 -107
  44. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -2
  45. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  46. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +30 -33
  47. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +11 -178
  48. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  49. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -110
  50. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.d.ts.map +1 -1
  51. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +5 -29
  52. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts +6 -0
  53. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -0
  54. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +85 -0
  55. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +9 -0
  56. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -0
  57. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +15 -0
  58. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +3 -2
  59. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  60. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +23 -0
  61. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -0
  62. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +2 -2
  63. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
  64. package/dist/v2/blocks/scalar-auth-selector-block/index.js +4 -6
  65. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  66. package/dist/v2/features/app/App.vue.js +51 -42
  67. package/dist/v2/features/app/app-state.d.ts +1 -1
  68. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  69. package/dist/v2/features/app/app-state.js +40 -38
  70. package/dist/v2/features/app/helpers/routes.d.ts +1 -1
  71. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  72. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  73. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  74. package/dist/v2/features/collection/components/Authentication.vue2.js +14 -11
  75. package/dist/v2/features/import-listener/helpers/import-document-to-workspace.d.ts.map +1 -1
  76. package/dist/v2/features/import-listener/helpers/import-document-to-workspace.js +3 -1
  77. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  78. package/dist/v2/features/modal/Modal.vue.js +1 -1
  79. package/dist/v2/features/modal/Modal.vue2.js +14 -12
  80. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  81. package/dist/v2/features/operation/Operation.vue.js +44 -35
  82. package/dist/v2/features/operation/helpers/get-selected-security.d.ts +3 -5
  83. package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
  84. package/dist/v2/workspace-events.d.ts.map +1 -1
  85. package/dist/v2/workspace-events.js +116 -109
  86. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  87. package/package.json +17 -17
  88. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts +0 -2
  89. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts.map +0 -1
  90. package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts +0 -8
  91. package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts.map +0 -1
  92. package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.js +0 -33
  93. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts +0 -7
  94. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts.map +0 -1
  95. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.js +0 -13
@@ -1,11 +1,11 @@
1
- import { defineComponent as A, computed as N, ref as P, createElementBlock as u, openBlock as l, Fragment as c, renderList as g, createBlock as y, createCommentVNode as f, unref as d, withCtx as r, createVNode as i, createElementVNode as V, toDisplayString as R, createTextVNode as v, normalizeClass as z, capitalize as Q } from "vue";
2
- import { ScalarMarkdownSummary as _ } from "@scalar/components";
3
- import { getResolvedRef as q } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
- import D from "./OAuth2.vue.js";
1
+ import { defineComponent as P, computed as T, ref as Q, createElementBlock as u, openBlock as n, Fragment as c, renderList as k, createBlock as f, createCommentVNode as v, unref as d, withCtx as r, createVNode as i, createElementVNode as w, toDisplayString as j, createTextVNode as y, normalizeClass as K, capitalize as q } from "vue";
2
+ import { ScalarMarkdownSummary as D } from "@scalar/components";
3
+ import { getResolvedRef as E } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
+ import H from "./OAuth2.vue.js";
5
5
  import b from "./RequestAuthDataTableInput.vue.js";
6
6
  import m from "../../../components/data-table/DataTableRow.vue.js";
7
- import I from "../../../components/data-table/DataTableCell.vue.js";
8
- const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, H = { class: "flex min-h-8 border-t text-base" }, L = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, G = ["onClick"], J = { class: "relative z-10" }, le = /* @__PURE__ */ A({
7
+ import N from "../../../components/data-table/DataTableCell.vue.js";
8
+ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, G = { class: "flex min-h-8 border-t text-base" }, J = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, W = ["onClick"], X = { class: "relative z-10" }, oe = /* @__PURE__ */ P({
9
9
  __name: "RequestAuthTab",
10
10
  props: {
11
11
  environment: {},
@@ -13,117 +13,113 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
13
13
  proxyUrl: {},
14
14
  selectedSecuritySchemas: {},
15
15
  securitySchemes: {},
16
- server: {}
16
+ server: {},
17
+ eventBus: {}
17
18
  },
18
- emits: ["update:securityScheme", "update:selectedScopes"],
19
- setup(n, { emit: K }) {
20
- const x = K, $ = N(
21
- () => Object.entries(n.selectedSecuritySchemas).map(([o, t = []]) => ({
22
- scheme: q(n.securitySchemes[o]),
23
- name: o,
24
- scopes: t
19
+ emits: ["update:selectedScopes"],
20
+ setup(a, { emit: R }) {
21
+ const z = R, g = T(
22
+ () => Object.entries(a.selectedSecuritySchemas).map(([l, e = []]) => ({
23
+ scheme: E(a.securitySchemes[l]),
24
+ name: l,
25
+ scopes: e
25
26
  }))
26
- ), w = P(""), C = N(() => $.value.length > 1), F = (o, t) => {
27
- const e = Q(o), a = t.description ? `: ${t.description}` : "";
28
- switch (t.type) {
27
+ ), x = Q(""), U = T(() => g.value.length > 1), $ = (l, e) => {
28
+ const t = q(l), o = e.description ? `: ${e.description}` : "";
29
+ switch (e.type) {
29
30
  case "apiKey":
30
- return `${e}${a || `: ${t.in}`}`;
31
+ return `${t}${o || `: ${e.in}`}`;
31
32
  case "oauth2": {
32
- const k = Object.keys(t.flows ?? {})[0], s = w.value || k;
33
- return `${e}: ${s}${a}`;
33
+ const V = Object.keys(e.flows ?? {})[0], s = x.value || V;
34
+ return `${t}: ${s}${o}`;
34
35
  }
35
36
  case "http":
36
- return `${e}: ${t.scheme}${a}`;
37
+ return `${t}: ${e.scheme}${o}`;
37
38
  default:
38
- return `${e}${a || `: ${t.type}`}`;
39
+ return `${t}${o || `: ${e.type}`}`;
39
40
  }
40
- }, T = (o, t) => w.value === o || t === 0 && !w.value, B = () => n.isStatic && "border-t", h = (o, t, e) => x(
41
- "update:securityScheme",
42
- {
43
- type: "http",
44
- [o]: t
45
- },
46
- e
47
- ), j = (o, t, e) => x(
48
- "update:securityScheme",
49
- {
50
- type: "apiKey",
51
- [o]: t
52
- },
53
- e
54
- ), M = (o, t) => {
55
- x("update:selectedScopes", {
56
- id: Object.keys(n.selectedSecuritySchemas),
57
- name: o,
58
- ...t
41
+ }, C = (l, e) => x.value === l || e === 0 && !x.value, B = () => a.isStatic && "border-t", S = (l, e) => a.eventBus.emit("auth:update:security-scheme-secrets", {
42
+ payload: { type: "http", ...l },
43
+ name: e
44
+ }), I = (l, e) => a.eventBus.emit("auth:update:security-scheme-secrets", {
45
+ payload: { type: "apiKey", ...l },
46
+ name: e
47
+ }), A = (l, e) => a.eventBus.emit("auth:update:security-scheme", {
48
+ payload: { type: "apiKey", ...l },
49
+ name: e
50
+ }), M = (l, e) => {
51
+ z("update:selectedScopes", {
52
+ id: Object.keys(a.selectedSecuritySchemas),
53
+ name: l,
54
+ ...e
59
55
  });
60
- }, O = (o, t) => {
61
- const e = "floating-bg text-c-3 relative cursor-pointer border-b border-transparent py-1 text-base font-medium";
62
- return T(o, t) ? `${e} !text-c-1 !rounded-none border-b !border-current ${n.isStatic ? "opacity-100" : ""}` : e;
56
+ }, O = (l, e) => {
57
+ const t = "floating-bg text-c-3 relative cursor-pointer border-b border-transparent py-1 text-base font-medium";
58
+ return C(l, e) ? `${t} !text-c-1 !rounded-none border-b !border-current ${a.isStatic ? "opacity-100" : ""}` : t;
63
59
  };
64
- return (o, t) => (l(!0), u(c, null, g($.value, ({ scheme: e, name: a, scopes: k }) => (l(), u(c, { key: a }, [
65
- C.value && e ? (l(), y(d(m), { key: 0 }, {
60
+ return (l, e) => (n(!0), u(c, null, k(g.value, ({ scheme: t, name: o, scopes: V }) => (n(), u(c, { key: o }, [
61
+ U.value && t ? (n(), f(d(m), { key: 0 }, {
66
62
  default: r(() => [
67
- i(d(I), {
68
- "aria-label": F(a, e),
63
+ i(d(N), {
64
+ "aria-label": $(o, t),
69
65
  class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
70
66
  }, {
71
67
  default: r(() => [
72
- V("p", E, R(F(a, e)), 1)
68
+ w("p", L, j($(o, t)), 1)
73
69
  ]),
74
70
  _: 2
75
71
  }, 1032, ["aria-label"])
76
72
  ]),
77
73
  _: 2
78
- }, 1024)) : f("", !0),
79
- e?.description && !C.value ? (l(), y(d(m), { key: 1 }, {
74
+ }, 1024)) : v("", !0),
75
+ t?.description && !U.value ? (n(), f(d(m), { key: 1 }, {
80
76
  default: r(() => [
81
- i(d(I), {
82
- "aria-label": e.description,
77
+ i(d(N), {
78
+ "aria-label": t.description,
83
79
  class: "max-h-[auto]"
84
80
  }, {
85
81
  default: r(() => [
86
- i(d(_), {
82
+ i(d(D), {
87
83
  class: "auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",
88
- value: e.description
84
+ value: t.description
89
85
  }, null, 8, ["value"])
90
86
  ]),
91
87
  _: 2
92
88
  }, 1032, ["aria-label"])
93
89
  ]),
94
90
  _: 2
95
- }, 1024)) : f("", !0),
96
- e?.type === "http" ? (l(), u(c, { key: 2 }, [
97
- e.scheme === "bearer" ? (l(), y(d(m), { key: 0 }, {
91
+ }, 1024)) : v("", !0),
92
+ t?.type === "http" ? (n(), u(c, { key: 2 }, [
93
+ t.scheme === "bearer" ? (n(), f(d(m), { key: 0 }, {
98
94
  default: r(() => [
99
95
  i(b, {
100
96
  containerClass: B(),
101
- environment: n.environment,
102
- modelValue: e["x-scalar-secret-token"],
97
+ environment: a.environment,
98
+ modelValue: t["x-scalar-secret-token"],
103
99
  placeholder: "Token",
104
100
  type: "password",
105
- "onUpdate:modelValue": (s) => h("x-scalar-secret-token", s, a)
101
+ "onUpdate:modelValue": (s) => S({ "x-scalar-secret-token": s }, o)
106
102
  }, {
107
- default: r(() => [...t[0] || (t[0] = [
108
- v(" Bearer Token ", -1)
103
+ default: r(() => [...e[0] || (e[0] = [
104
+ y(" Bearer Token ", -1)
109
105
  ])]),
110
106
  _: 1
111
107
  }, 8, ["containerClass", "environment", "modelValue", "onUpdate:modelValue"])
112
108
  ]),
113
109
  _: 2
114
- }, 1024)) : e?.scheme === "basic" ? (l(), u(c, { key: 1 }, [
110
+ }, 1024)) : t?.scheme === "basic" ? (n(), u(c, { key: 1 }, [
115
111
  i(d(m), null, {
116
112
  default: r(() => [
117
113
  i(b, {
118
114
  class: "text-c-2",
119
- environment: n.environment,
120
- modelValue: e["x-scalar-secret-username"],
115
+ environment: a.environment,
116
+ modelValue: t["x-scalar-secret-username"],
121
117
  placeholder: "janedoe",
122
118
  required: "",
123
- "onUpdate:modelValue": (s) => h("x-scalar-secret-username", s, a)
119
+ "onUpdate:modelValue": (s) => S({ "x-scalar-secret-username": s }, o)
124
120
  }, {
125
- default: r(() => [...t[1] || (t[1] = [
126
- v(" Username ", -1)
121
+ default: r(() => [...e[1] || (e[1] = [
122
+ y(" Username ", -1)
127
123
  ])]),
128
124
  _: 1
129
125
  }, 8, ["environment", "modelValue", "onUpdate:modelValue"])
@@ -133,33 +129,33 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
133
129
  i(d(m), null, {
134
130
  default: r(() => [
135
131
  i(b, {
136
- environment: n.environment,
137
- modelValue: e["x-scalar-secret-password"],
132
+ environment: a.environment,
133
+ modelValue: t["x-scalar-secret-password"],
138
134
  placeholder: "********",
139
135
  type: "password",
140
- "onUpdate:modelValue": (s) => h("x-scalar-secret-password", s, a)
136
+ "onUpdate:modelValue": (s) => S({ "x-scalar-secret-password": s }, o)
141
137
  }, {
142
- default: r(() => [...t[2] || (t[2] = [
143
- v(" Password ", -1)
138
+ default: r(() => [...e[2] || (e[2] = [
139
+ y(" Password ", -1)
144
140
  ])]),
145
141
  _: 1
146
142
  }, 8, ["environment", "modelValue", "onUpdate:modelValue"])
147
143
  ]),
148
144
  _: 2
149
145
  }, 1024)
150
- ], 64)) : f("", !0)
151
- ], 64)) : e?.type === "apiKey" ? (l(), u(c, { key: 3 }, [
146
+ ], 64)) : v("", !0)
147
+ ], 64)) : t?.type === "apiKey" ? (n(), u(c, { key: 3 }, [
152
148
  i(d(m), null, {
153
149
  default: r(() => [
154
150
  i(b, {
155
151
  containerClass: B(),
156
- environment: n.environment,
157
- modelValue: e.name,
152
+ environment: a.environment,
153
+ modelValue: t.name,
158
154
  placeholder: "api-key",
159
- "onUpdate:modelValue": (s) => j("name", s, a)
155
+ "onUpdate:modelValue": (s) => A({ name: s }, o)
160
156
  }, {
161
- default: r(() => [...t[3] || (t[3] = [
162
- v(" Name ", -1)
157
+ default: r(() => [...e[3] || (e[3] = [
158
+ y(" Name ", -1)
163
159
  ])]),
164
160
  _: 1
165
161
  }, 8, ["containerClass", "environment", "modelValue", "onUpdate:modelValue"])
@@ -169,58 +165,59 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
169
165
  i(d(m), null, {
170
166
  default: r(() => [
171
167
  i(b, {
172
- environment: n.environment,
173
- modelValue: e["x-scalar-secret-token"],
168
+ environment: a.environment,
169
+ modelValue: t["x-scalar-secret-token"],
174
170
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
175
171
  type: "password",
176
- "onUpdate:modelValue": (s) => j("x-scalar-secret-token", s, a)
172
+ "onUpdate:modelValue": (s) => I({ "x-scalar-secret-token": s }, o)
177
173
  }, {
178
- default: r(() => [...t[4] || (t[4] = [
179
- v(" Value ", -1)
174
+ default: r(() => [...e[4] || (e[4] = [
175
+ y(" Value ", -1)
180
176
  ])]),
181
177
  _: 1
182
178
  }, 8, ["environment", "modelValue", "onUpdate:modelValue"])
183
179
  ]),
184
180
  _: 2
185
181
  }, 1024)
186
- ], 64)) : e?.type === "oauth2" ? (l(), u(c, { key: 4 }, [
187
- Object.keys(e.flows).length > 1 ? (l(), y(d(m), { key: 0 }, {
182
+ ], 64)) : t?.type === "oauth2" ? (n(), u(c, { key: 4 }, [
183
+ Object.keys(t.flows).length > 1 ? (n(), f(d(m), { key: 0 }, {
188
184
  default: r(() => [
189
- V("div", H, [
190
- V("div", L, [
191
- (l(!0), u(c, null, g(e.flows, (s, p, U) => (l(), u("button", {
185
+ w("div", G, [
186
+ w("div", J, [
187
+ (n(!0), u(c, null, k(t.flows, (s, p, h) => (n(), u("button", {
192
188
  key: p,
193
- class: z(O(p, U)),
189
+ class: K(O(p, h)),
194
190
  type: "button",
195
- onClick: (S) => w.value = p
191
+ onClick: (F) => x.value = p
196
192
  }, [
197
- V("span", J, R(p), 1)
198
- ], 10, G))), 128))
193
+ w("span", X, j(p), 1)
194
+ ], 10, W))), 128))
199
195
  ])
200
196
  ])
201
197
  ]),
202
198
  _: 2
203
- }, 1024)) : f("", !0),
204
- (l(!0), u(c, null, g(e.flows, (s, p, U) => (l(), u(c, { key: p }, [
205
- T(p, U) ? (l(), y(D, {
199
+ }, 1024)) : v("", !0),
200
+ (n(!0), u(c, null, k(t.flows, (s, p, h) => (n(), u(c, { key: p }, [
201
+ C(p, h) ? (n(), f(H, {
206
202
  key: 0,
207
- environment: n.environment,
208
- flows: e.flows,
209
- proxyUrl: n.proxyUrl,
210
- selectedScopes: k,
211
- server: n.server,
203
+ environment: a.environment,
204
+ eventBus: a.eventBus,
205
+ flows: t.flows,
206
+ name: o,
207
+ proxyUrl: a.proxyUrl,
208
+ selectedScopes: V,
209
+ server: a.server,
212
210
  type: p,
213
- "onUpdate:securityScheme": (S) => x("update:securityScheme", S, a),
214
- "onUpdate:selectedScopes": (S) => M(a, S)
215
- }, null, 8, ["environment", "flows", "proxyUrl", "selectedScopes", "server", "type", "onUpdate:securityScheme", "onUpdate:selectedScopes"])) : f("", !0)
211
+ "onUpdate:selectedScopes": (F) => M(o, F)
212
+ }, null, 8, ["environment", "eventBus", "flows", "name", "proxyUrl", "selectedScopes", "server", "type", "onUpdate:selectedScopes"])) : v("", !0)
216
213
  ], 64))), 128))
217
- ], 64)) : e?.type === "openIdConnect" ? (l(), u("div", {
214
+ ], 64)) : t?.type === "openIdConnect" ? (n(), u("div", {
218
215
  key: 5,
219
- class: z(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": n.isStatic }])
220
- }, " Coming soon ", 2)) : f("", !0)
216
+ class: K(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": a.isStatic }])
217
+ }, " Coming soon ", 2)) : v("", !0)
221
218
  ], 64))), 128));
222
219
  }
223
220
  });
224
221
  export {
225
- le as default
222
+ oe as default
226
223
  };
@@ -1 +1 @@
1
- {"version":3,"file":"auth-options.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/auth-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAExG,KAAK,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAElE,wCAAwC;AACxC,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAqHlD,CAAA"}
1
+ {"version":3,"file":"auth-options.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/auth-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAExG,KAAK,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAElE,wCAAwC;AACxC,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CA6FlD,CAAA"}
@@ -4,8 +4,7 @@ const e = {
4
4
  payload: {
5
5
  type: "apiKey",
6
6
  in: "cookie",
7
- name: "apiKeyCookie",
8
- "x-scalar-secret-token": ""
7
+ name: "apiKeyCookie"
9
8
  }
10
9
  },
11
10
  apiKeyHeader: {
@@ -13,8 +12,7 @@ const e = {
13
12
  payload: {
14
13
  type: "apiKey",
15
14
  in: "header",
16
- name: "apiKeyHeader",
17
- "x-scalar-secret-token": ""
15
+ name: "apiKeyHeader"
18
16
  }
19
17
  },
20
18
  apiKeyQuery: {
@@ -22,28 +20,21 @@ const e = {
22
20
  payload: {
23
21
  type: "apiKey",
24
22
  in: "query",
25
- name: "apiKeyQuery",
26
- "x-scalar-secret-token": ""
23
+ name: "apiKeyQuery"
27
24
  }
28
25
  },
29
26
  httpBasic: {
30
27
  label: "HTTP Basic",
31
28
  payload: {
32
29
  type: "http",
33
- scheme: "basic",
34
- "x-scalar-secret-token": "",
35
- "x-scalar-secret-username": "",
36
- "x-scalar-secret-password": ""
30
+ scheme: "basic"
37
31
  }
38
32
  },
39
33
  httpBearer: {
40
34
  label: "HTTP Bearer",
41
35
  payload: {
42
36
  type: "http",
43
- scheme: "bearer",
44
- "x-scalar-secret-token": "",
45
- "x-scalar-secret-username": "",
46
- "x-scalar-secret-password": ""
37
+ scheme: "bearer"
47
38
  }
48
39
  },
49
40
  oauth2Implicit: {
@@ -54,9 +45,6 @@ const e = {
54
45
  implicit: {
55
46
  authorizationUrl: "",
56
47
  refreshUrl: "",
57
- "x-scalar-secret-client-id": "",
58
- "x-scalar-secret-redirect-uri": "",
59
- "x-scalar-secret-token": "",
60
48
  scopes: {}
61
49
  }
62
50
  }
@@ -70,11 +58,6 @@ const e = {
70
58
  password: {
71
59
  tokenUrl: "",
72
60
  refreshUrl: "",
73
- "x-scalar-secret-client-id": "",
74
- "x-scalar-secret-username": "",
75
- "x-scalar-secret-password": "",
76
- "x-scalar-secret-token": "",
77
- "x-scalar-secret-client-secret": "",
78
61
  scopes: {}
79
62
  }
80
63
  }
@@ -88,9 +71,6 @@ const e = {
88
71
  clientCredentials: {
89
72
  tokenUrl: "",
90
73
  refreshUrl: "",
91
- "x-scalar-secret-client-id": "",
92
- "x-scalar-secret-token": "",
93
- "x-scalar-secret-client-secret": "",
94
74
  scopes: {}
95
75
  }
96
76
  }
@@ -105,10 +85,6 @@ const e = {
105
85
  authorizationUrl: "",
106
86
  tokenUrl: "",
107
87
  refreshUrl: "",
108
- "x-scalar-secret-client-id": "",
109
- "x-scalar-secret-client-secret": "",
110
- "x-scalar-secret-token": "",
111
- "x-scalar-secret-redirect-uri": "",
112
88
  "x-usePkce": "no",
113
89
  scopes: {}
114
90
  }
@@ -0,0 +1,6 @@
1
+ import type { AuthStore } from '@scalar/workspace-store/entities/auth';
2
+ import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ import type { SecuritySchemeObjectSecret } from './secret-types';
4
+ /** Extract the secrets from the config and the auth store */
5
+ export declare const extractSecuritySchemeSecrets: (scheme: SecuritySchemeObject, authStore: AuthStore, name: string, documentSlug: string) => SecuritySchemeObjectSecret;
6
+ //# sourceMappingURL=extract-security-scheme-secrets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract-security-scheme-secrets.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,uCAAuC,CAAA;AAOnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAExG,OAAO,KAAK,EAUV,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AA+CvB,6DAA6D;AAC7D,eAAO,MAAM,4BAA4B,GAEvC,QAAQ,oBAAoB,EAC5B,WAAW,SAAS,EACpB,MAAM,MAAM,EACZ,cAAc,MAAM,KACnB,0BA0GF,CAAA"}
@@ -0,0 +1,85 @@
1
+ import { objectEntries as d } from "@scalar/helpers/object/object-entries";
2
+ const o = ({
3
+ schemeName: e,
4
+ authStore: s,
5
+ documentSlug: c,
6
+ type: a
7
+ }) => {
8
+ const r = s.getAuthSecrets(c, e);
9
+ if (r?.type === a)
10
+ return r;
11
+ }, u = {
12
+ clientSecret: "x-scalar-secret-client-secret",
13
+ password: "x-scalar-secret-password",
14
+ token: "x-scalar-secret-token",
15
+ username: "x-scalar-secret-username",
16
+ value: "x-scalar-secret-token",
17
+ "x-scalar-client-id": "x-scalar-secret-client-id",
18
+ "x-scalar-redirect-uri": "x-scalar-secret-redirect-uri"
19
+ }, l = (e) => d(u).reduce((s, [c, a]) => {
20
+ const r = e[c];
21
+ return r !== void 0 && typeof r == "string" && (s[a] = r), s;
22
+ }, {}), f = (e, s, c, a) => {
23
+ if (e.type === "apiKey") {
24
+ const r = o({ schemeName: c, type: "apiKey", authStore: s, documentSlug: a });
25
+ return {
26
+ ...e,
27
+ "x-scalar-secret-token": "",
28
+ ...l(e),
29
+ ...r
30
+ };
31
+ }
32
+ if (e.type === "http") {
33
+ const r = o({ schemeName: c, type: "http", authStore: s, documentSlug: a });
34
+ return {
35
+ ...e,
36
+ "x-scalar-secret-password": "",
37
+ "x-scalar-secret-token": "",
38
+ "x-scalar-secret-username": "",
39
+ ...l(e),
40
+ ...r
41
+ };
42
+ }
43
+ if (e.type === "oauth2") {
44
+ const r = o({ schemeName: c, type: "oauth2", authStore: s, documentSlug: a }), x = /* @__PURE__ */ new Set();
45
+ return {
46
+ ...e,
47
+ flows: d(e?.flows ?? {}).reduce((n, [i, t]) => (t && ("selectedScopes" in t && Array.isArray(t.selectedScopes) && t.selectedScopes?.forEach((p) => x.add(p)), i === "implicit" && (n.implicit = {
48
+ ...t,
49
+ "x-scalar-secret-client-id": "",
50
+ "x-scalar-secret-redirect-uri": "",
51
+ "x-scalar-secret-token": "",
52
+ ...l(t),
53
+ ...r?.implicit
54
+ }), i === "password" && (n[i] = {
55
+ ...t,
56
+ "x-scalar-secret-client-id": "",
57
+ "x-scalar-secret-client-secret": "",
58
+ "x-scalar-secret-username": "",
59
+ "x-scalar-secret-password": "",
60
+ "x-scalar-secret-token": "",
61
+ ...l(t),
62
+ ...r?.password
63
+ }), i === "clientCredentials" && (n[i] = {
64
+ ...t,
65
+ "x-scalar-secret-client-id": "",
66
+ "x-scalar-secret-client-secret": "",
67
+ "x-scalar-secret-token": "",
68
+ ...l(t),
69
+ ...r?.clientCredentials
70
+ }), i === "authorizationCode" && (n[i] = {
71
+ ...t,
72
+ "x-scalar-secret-client-id": "",
73
+ "x-scalar-secret-client-secret": "",
74
+ "x-scalar-secret-redirect-uri": "",
75
+ "x-scalar-secret-token": "",
76
+ ...r?.authorizationCode
77
+ })), n), {}),
78
+ "x-default-scopes": Array.from(x)
79
+ };
80
+ }
81
+ return e.type === "openIdConnect", e;
82
+ };
83
+ export {
84
+ f as extractSecuritySchemeSecrets
85
+ };
@@ -0,0 +1,9 @@
1
+ import type { AuthenticationConfiguration } from '@scalar/types/api-reference';
2
+ import type { AuthStore } from '@scalar/workspace-store/entities/auth';
3
+ import type { ComponentsObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
4
+ import type { SecuritySchemeObjectSecret } from './secret-types';
5
+ /** Document security merged with the config security schemes */
6
+ export type MergedSecuritySchemes = Record<string, SecuritySchemeObjectSecret>;
7
+ /** Merge the authentication config with the document security schemes + the auth store secrets */
8
+ export declare const mergeSecurity: (documentSecuritySchemes: ComponentsObject["securitySchemes"], configSecuritySchemes: AuthenticationConfiguration["securitySchemes"], authStore: AuthStore, documentSlug: string) => MergedSecuritySchemes;
9
+ //# sourceMappingURL=merge-security.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-security.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/merge-security.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AAItE,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAA;AAEhE,gEAAgE;AAChE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;AAE9E,kGAAkG;AAClG,eAAO,MAAM,aAAa,GACxB,yBAAyB,gBAAgB,CAAC,iBAAiB,CAAM,EACjE,uBAAuB,2BAA2B,CAAC,iBAAiB,CAAM,EAC1E,WAAW,SAAS,EACpB,cAAc,MAAM,KACnB,qBAoBF,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { objectEntries as o } from "@scalar/helpers/object/object-entries";
2
+ import { getResolvedRef as p } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { mergeObjects as S } from "@scalar/workspace-store/helpers/merge-object";
4
+ import { unpackProxyObject as d } from "@scalar/workspace-store/helpers/unpack-proxy";
5
+ import { extractSecuritySchemeSecrets as f } from "./extract-security-scheme-secrets.js";
6
+ const l = (m = {}, c = {}, u, s) => {
7
+ const i = o(m).reduce(
8
+ (e, [r, t]) => (e[r] = structuredClone(d(p(t))), e),
9
+ {}
10
+ ), n = S(i, c) ?? {};
11
+ return o(n).reduce((e, [r, t]) => (e[r] = f(t, u, r, s), e), {});
12
+ };
13
+ export {
14
+ l as mergeSecurity
15
+ };
@@ -1,11 +1,12 @@
1
- import type { OAuthFlowsObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  import type { ErrorResponse } from '../../../../libs/errors.js';
3
+ import type { OAuthFlowsObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
3
4
  /**
4
5
  * Authorize oauth2 flow
5
6
  *
6
7
  * @returns the accessToken
7
8
  */
8
- export declare const authorizeOauth2: (flows: OAuthFlowsObject, type: keyof OAuthFlowsObject, selectedScopes: string[],
9
+ export declare const authorizeOauth2: (flows: OAuthFlowsObjectSecret, type: keyof OAuthFlowsObjectSecret, selectedScopes: string[],
9
10
  /** We use the active server to set a base for relative redirect uris */
10
11
  activeServer: ServerObject | null,
11
12
  /** If we want to use the proxy */
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AA8DlD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,IAAI;AACjC,kCAAkC;AAClC,UAAU,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+K/B,CAAA"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAA;AA8DzG;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,sBAAsB,EAC7B,MAAM,MAAM,sBAAsB,EAClC,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,IAAI;AACjC,kCAAkC;AAClC,UAAU,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+K/B,CAAA"}
@@ -0,0 +1,23 @@
1
+ import type { XScalarSecretClientId, XScalarSecretClientSecret, XScalarSecretHTTP, XScalarSecretRedirectUri, XScalarSecretToken } from '@scalar/workspace-store/schemas/extensions/security';
2
+ import type { OAuthFlowAuthorizationCode, OAuthFlowClientCredentials, OAuthFlowImplicit, OAuthFlowPassword } from '@scalar/workspace-store/schemas/v3.1/strict/oauth-flow';
3
+ import type { ApiKeyObject, HttpObject, OAuth2Object, OpenIdConnectObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
4
+ type OAuthFlowCommonSecret = XScalarSecretClientId & XScalarSecretToken;
5
+ export type OAuthFlowImplicitSecret = OAuthFlowImplicit & OAuthFlowCommonSecret & XScalarSecretRedirectUri;
6
+ export type OAuthFlowPasswordSecret = OAuthFlowPassword & OAuthFlowCommonSecret & XScalarSecretHTTP & XScalarSecretClientSecret;
7
+ export type OAuthFlowClientCredentialsSecret = OAuthFlowClientCredentials & OAuthFlowCommonSecret & XScalarSecretClientSecret;
8
+ export type OAuthFlowAuthorizationCodeSecret = OAuthFlowAuthorizationCode & OAuthFlowCommonSecret & XScalarSecretClientSecret & XScalarSecretRedirectUri;
9
+ export type OAuthFlowsObjectSecret = {
10
+ implicit?: OAuthFlowImplicitSecret;
11
+ password?: OAuthFlowPasswordSecret;
12
+ clientCredentials?: OAuthFlowClientCredentialsSecret;
13
+ authorizationCode?: OAuthFlowAuthorizationCodeSecret;
14
+ };
15
+ export type ApiKeyObjectSecret = ApiKeyObject & XScalarSecretToken;
16
+ export type HttpObjectSecret = HttpObject & XScalarSecretHTTP & XScalarSecretToken;
17
+ export type OAuth2ObjectSecret = Omit<OAuth2Object, 'flows'> & {
18
+ flows: OAuthFlowsObjectSecret;
19
+ };
20
+ export type OpenIdConnectObjectSecret = OpenIdConnectObject;
21
+ export type SecuritySchemeObjectSecret = ApiKeyObjectSecret | HttpObjectSecret | OAuth2ObjectSecret | OpenIdConnectObjectSecret;
22
+ export {};
23
+ //# sourceMappingURL=secret-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret-types.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/secret-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,qDAAqD,CAAA;AAC5D,OAAO,KAAK,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,wDAAwD,CAAA;AAC/D,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,mBAAmB,EACpB,MAAM,8DAA8D,CAAA;AAErE,KAAK,qBAAqB,GAAG,qBAAqB,GAAG,kBAAkB,CAAA;AAEvE,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,wBAAwB,CAAA;AAE1G,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GACrD,qBAAqB,GACrB,iBAAiB,GACjB,yBAAyB,CAAA;AAE3B,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,GACvE,qBAAqB,GACrB,yBAAyB,CAAA;AAE3B,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,GACvE,qBAAqB,GACrB,yBAAyB,GACzB,wBAAwB,CAAA;AAE1B,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;IAClC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;IAClC,iBAAiB,CAAC,EAAE,gCAAgC,CAAA;IACpD,iBAAiB,CAAC,EAAE,gCAAgC,CAAA;CACrD,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,CAAA;AAClE,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,iBAAiB,GAAG,kBAAkB,CAAA;AAClF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,EAAE,sBAAsB,CAAA;CAAE,CAAA;AAChG,MAAM,MAAM,yBAAyB,GAAG,mBAAmB,CAAA;AAE3D,MAAM,MAAM,0BAA0B,GAClC,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,yBAAyB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export { default as AuthSelector } from './components/AuthSelector.vue.js';
2
- export { convertSecuritySchemeSecrets } from './helpers/convert-security-scheme-secrets.js';
3
2
  export { isAuthOptional } from './helpers/is-auth-optional.js';
4
- export { type MergedSecuritySchemes, mergeAuthConfig } from './helpers/merge-auth-config.js';
3
+ export { type MergedSecuritySchemes, mergeSecurity } from './helpers/merge-security.js';
4
+ export type { SecuritySchemeObjectSecret } from './helpers/secret-types';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAA;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,KAAK,qBAAqB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,KAAK,qBAAqB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACpF,YAAY,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAA"}