@scalar/api-client 2.5.35 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts +0 -3
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  4. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  5. package/dist/components/CodeInput/CodeInput.vue2.js +60 -62
  6. package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -3
  7. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  8. package/dist/components/CodeInput/codeVariableWidget.js +25 -32
  9. package/dist/components/DataTable/DataTableInput.vue.d.ts +0 -2
  10. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  11. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  12. package/dist/components/DataTable/DataTableInput.vue2.js +17 -19
  13. package/dist/layouts/App/create-api-client-app.d.ts +10 -10
  14. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  15. package/dist/layouts/Modal/create-api-client-modal.d.ts +20 -20
  16. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  17. package/dist/layouts/Web/create-api-client-web.d.ts +10 -10
  18. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  19. package/dist/libs/create-client.d.ts +10 -10
  20. package/dist/libs/create-client.d.ts.map +1 -1
  21. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  22. package/dist/store/security-schemes.d.ts +10 -10
  23. package/dist/store/security-schemes.d.ts.map +1 -1
  24. package/dist/store/store.d.ts +10 -10
  25. package/dist/store/store.d.ts.map +1 -1
  26. package/dist/style.css +1 -1
  27. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts +2 -0
  28. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts.map +1 -0
  29. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts +14 -0
  30. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -0
  31. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +55 -0
  32. package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue2.js +4 -0
  33. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts +2 -0
  34. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts.map +1 -0
  35. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +104 -0
  36. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -0
  37. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +7 -0
  38. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +237 -0
  39. package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +41 -0
  40. package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts.map +1 -0
  41. package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +20 -0
  42. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts +2 -0
  43. package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts.map +1 -0
  44. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +20 -0
  45. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts.map +1 -0
  46. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +4 -0
  47. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts +2 -0
  48. package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts.map +1 -0
  49. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +17 -0
  50. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -0
  51. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +30 -0
  52. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts +2 -0
  53. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts.map +1 -0
  54. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +29 -0
  55. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -0
  56. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +209 -0
  57. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts +2 -0
  58. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts.map +1 -0
  59. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +26 -0
  60. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -0
  61. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +29 -0
  62. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts +2 -0
  63. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts.map +1 -0
  64. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +4 -0
  65. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts.map +1 -0
  66. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.js +10 -0
  67. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts +2 -0
  68. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts.map +1 -0
  69. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts +7 -0
  70. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts.map +1 -0
  71. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.js +28 -0
  72. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts +2 -0
  73. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts.map +1 -0
  74. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +52 -0
  75. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -0
  76. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +59 -0
  77. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts +2 -0
  78. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts.map +1 -0
  79. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +12 -0
  80. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -0
  81. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +57 -0
  82. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts +2 -0
  83. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts.map +1 -0
  84. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +25 -0
  85. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -0
  86. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +212 -0
  87. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts +2 -0
  88. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts.map +1 -0
  89. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +15 -0
  90. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts.map +1 -0
  91. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.js +55 -0
  92. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts +2 -0
  93. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts.map +1 -0
  94. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts +6 -0
  95. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts.map +1 -0
  96. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +18 -0
  97. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts +2 -0
  98. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts.map +1 -0
  99. package/dist/v2/blocks/operation-code-sample/index.d.ts +3 -0
  100. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -0
  101. package/dist/v2/blocks/operation-code-sample/index.js +6 -0
  102. package/dist/v2/blocks/operation-code-sample/types.d.ts +29 -0
  103. package/dist/v2/blocks/operation-code-sample/types.d.ts.map +1 -0
  104. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts +2 -0
  105. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts.map +1 -0
  106. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +65 -0
  107. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -0
  108. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +7 -0
  109. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +122 -0
  110. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts +2 -0
  111. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts.map +1 -0
  112. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts +25 -0
  113. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts.map +1 -0
  114. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +7 -0
  115. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +90 -0
  116. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +55 -0
  117. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -0
  118. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +39 -0
  119. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +2 -0
  120. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -0
  121. package/dist/v2/blocks/scalar-address-bar-block/index.js +4 -0
  122. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts +2 -0
  123. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts.map +1 -0
  124. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +49 -0
  125. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -0
  126. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -0
  127. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +172 -0
  128. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts +2 -0
  129. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts.map +1 -0
  130. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +17 -0
  131. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +1 -0
  132. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +52 -0
  133. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +4 -0
  134. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts +2 -0
  135. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts.map +1 -0
  136. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +45 -0
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +254 -0
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +4 -0
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts +2 -0
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts.map +1 -0
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +16 -0
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -0
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +134 -0
  145. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +4 -0
  146. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts +2 -0
  147. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts.map +1 -0
  148. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +33 -0
  149. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -0
  150. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +7 -0
  151. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +82 -0
  152. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +48 -0
  153. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -0
  154. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +48 -0
  155. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +4 -0
  156. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts +2 -0
  157. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts.map +1 -0
  158. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +29 -0
  159. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
  160. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +232 -0
  161. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +4 -0
  162. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +29 -0
  163. package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +1 -0
  164. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.d.ts +9 -0
  165. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.d.ts.map +1 -0
  166. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +121 -0
  167. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +34 -0
  168. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -0
  169. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +111 -0
  170. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts +2 -0
  171. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts.map +1 -0
  172. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +39 -0
  173. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -0
  174. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +52 -0
  175. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts +2 -0
  176. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts.map +1 -0
  177. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +2 -0
  178. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -0
  179. package/dist/v2/blocks/scalar-auth-selector-block/index.js +4 -0
  180. package/dist/v2/components/server/ServerDropdown.test.d.ts +2 -0
  181. package/dist/v2/components/server/ServerDropdown.test.d.ts.map +1 -0
  182. package/dist/v2/components/server/ServerDropdown.vue.d.ts +33 -0
  183. package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -0
  184. package/dist/v2/components/server/ServerDropdown.vue.js +87 -0
  185. package/dist/v2/components/server/ServerDropdown.vue2.js +4 -0
  186. package/dist/v2/components/server/ServerDropdownItem.test.d.ts +2 -0
  187. package/dist/v2/components/server/ServerDropdownItem.test.d.ts.map +1 -0
  188. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +21 -0
  189. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -0
  190. package/dist/v2/components/server/ServerDropdownItem.vue.js +7 -0
  191. package/dist/v2/components/server/ServerDropdownItem.vue2.js +51 -0
  192. package/dist/v2/components/server/index.d.ts +2 -0
  193. package/dist/v2/components/server/index.d.ts.map +1 -0
  194. package/dist/v2/components/server/index.js +4 -0
  195. package/dist/views/Request/Request.vue.js +1 -1
  196. package/dist/views/Request/Request.vue2.js +4 -4
  197. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +2 -2
  198. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  199. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +2 -2
  200. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  201. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  202. package/dist/vitest.setup.d.ts.map +1 -1
  203. package/package.json +14 -10
@@ -0,0 +1,90 @@
1
+ import { defineComponent as h, createBlock as n, openBlock as a, unref as t, withCtx as o, createVNode as r, createSlots as g, createCommentVNode as _, createElementVNode as s, normalizeStyle as v, createElementBlock as x, Fragment as y, renderList as k, toDisplayString as l, normalizeClass as C } from "vue";
2
+ import { Menu as S, MenuButton as b, MenuItems as B, MenuItem as H } from "@headlessui/vue";
3
+ import { ScalarFloating as M, ScalarIcon as z, ScalarFloatingBackdrop as I } from "@scalar/components";
4
+ import { httpStatusCodes as w } from "@scalar/oas-utils/helpers";
5
+ import { formatMs as F } from "../../../../libs/formatters.js";
6
+ import { getStatusCodeColor as N } from "./httpStatusCodeColors.js";
7
+ import V from "../../../../components/HttpMethod/HttpMethod.vue.js";
8
+ const E = { class: "min-w-0" }, q = { class: "text-c-1 min-w-0 truncate" }, O = /* @__PURE__ */ h({
9
+ __name: "AddressBarHistory",
10
+ props: {
11
+ target: {},
12
+ history: {}
13
+ },
14
+ emits: ["selectHistoryItem"],
15
+ setup(A, { emit: m }) {
16
+ const u = m;
17
+ return (i, c) => (a(), n(t(S), { as: "div" }, {
18
+ default: o(({ open: p }) => [
19
+ r(t(M), {
20
+ offset: 0,
21
+ resize: "",
22
+ target: i.target
23
+ }, g({
24
+ default: o(() => [
25
+ i.history.length ? (a(), n(t(b), {
26
+ key: 0,
27
+ class: "address-bar-history-button z-context-plus text-c-3 focus:text-c-1 relative mr-1 rounded-lg p-1.5"
28
+ }, {
29
+ default: o(() => [
30
+ r(t(z), {
31
+ icon: "History",
32
+ size: "sm",
33
+ thickness: "2.25"
34
+ }),
35
+ c[0] || (c[0] = s("span", { class: "sr-only" }, "Request History", -1))
36
+ ]),
37
+ _: 1,
38
+ __: [0]
39
+ })) : _("", !0)
40
+ ]),
41
+ _: 2
42
+ }, [
43
+ p ? {
44
+ name: "floating",
45
+ fn: o(({ width: f }) => [
46
+ r(t(B), {
47
+ class: "custom-scroll grid max-h-[inherit] grid-cols-[44px_1fr_repeat(3,auto)] items-center border-t p-0.75",
48
+ static: "",
49
+ style: v({ width: f })
50
+ }, {
51
+ default: o(() => [
52
+ (a(!0), x(y, null, k(i.history, (e, d) => (a(), n(t(H), {
53
+ key: e.id,
54
+ as: "button",
55
+ class: "font-code ui-active:*:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 *:first:rounded-l *:last:rounded-r",
56
+ value: d,
57
+ onClick: (D) => u("selectHistoryItem", { index: d })
58
+ }, {
59
+ default: o(() => [
60
+ r(t(V), {
61
+ class: "text-[11px]",
62
+ method: e.method
63
+ }, null, 8, ["method"]),
64
+ s("div", E, [
65
+ s("div", q, l(e.path), 1)
66
+ ]),
67
+ s("div", null, l(t(F)(e.duration)), 1),
68
+ s("div", {
69
+ class: C([t(N)(e.status).color])
70
+ }, l(e.status), 3),
71
+ s("div", null, l(t(w)[e.status]?.name), 1)
72
+ ]),
73
+ _: 2
74
+ }, 1032, ["value", "onClick"]))), 128))
75
+ ]),
76
+ _: 2
77
+ }, 1032, ["style"]),
78
+ r(t(I), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
79
+ ]),
80
+ key: "0"
81
+ } : void 0
82
+ ]), 1032, ["target"])
83
+ ]),
84
+ _: 1
85
+ }));
86
+ }
87
+ });
88
+ export {
89
+ O as default
90
+ };
@@ -0,0 +1,55 @@
1
+ export declare const STATUS_CODES_COLORS: {
2
+ readonly 100: {
3
+ readonly color: "text-yellow";
4
+ };
5
+ readonly 200: {
6
+ readonly color: "text-green";
7
+ };
8
+ readonly 202: {
9
+ readonly color: "text-green";
10
+ };
11
+ readonly 300: {
12
+ readonly color: "text-blue";
13
+ };
14
+ readonly 304: {
15
+ readonly color: "text-blue";
16
+ };
17
+ readonly 400: {
18
+ readonly color: "text-red";
19
+ };
20
+ readonly 401: {
21
+ readonly color: "text-orange";
22
+ };
23
+ readonly 422: {
24
+ readonly color: "text-yellow";
25
+ };
26
+ readonly 423: {
27
+ readonly color: "text-purple";
28
+ };
29
+ readonly 505: {
30
+ readonly color: "text-orange";
31
+ };
32
+ };
33
+ export type StatusCode = keyof typeof STATUS_CODES_COLORS;
34
+ export declare const getStatusCodeColor: (statusCode: number) => {
35
+ readonly color: "text-yellow";
36
+ } | {
37
+ readonly color: "text-green";
38
+ } | {
39
+ readonly color: "text-green";
40
+ } | {
41
+ readonly color: "text-blue";
42
+ } | {
43
+ readonly color: "text-blue";
44
+ } | {
45
+ readonly color: "text-red";
46
+ } | {
47
+ readonly color: "text-orange";
48
+ } | {
49
+ readonly color: "text-yellow";
50
+ } | {
51
+ readonly color: "text-purple";
52
+ } | {
53
+ readonly color: "text-orange";
54
+ };
55
+ //# sourceMappingURL=httpStatusCodeColors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpStatusCodeColors.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BtB,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,mBAAmB,CAAA;AAEzD,eAAO,MAAM,kBAAkB,GAAI,YAAY,MAAM;;;;;;;;;;;;;;;;;;;;CAQpD,CAAA"}
@@ -0,0 +1,39 @@
1
+ const e = {
2
+ 100: {
3
+ color: "text-yellow"
4
+ },
5
+ 200: {
6
+ color: "text-green"
7
+ },
8
+ 202: {
9
+ color: "text-green"
10
+ },
11
+ 300: {
12
+ color: "text-blue"
13
+ },
14
+ 304: {
15
+ color: "text-blue"
16
+ },
17
+ 400: {
18
+ color: "text-red"
19
+ },
20
+ 401: {
21
+ color: "text-orange"
22
+ },
23
+ 422: {
24
+ color: "text-yellow"
25
+ },
26
+ 423: {
27
+ color: "text-purple"
28
+ },
29
+ 505: {
30
+ color: "text-orange"
31
+ }
32
+ }, r = (o) => e[o] || {
33
+ /** default color */
34
+ color: "text-grey"
35
+ };
36
+ export {
37
+ e as STATUS_CODES_COLORS,
38
+ r as getStatusCodeColor
39
+ };
@@ -0,0 +1,2 @@
1
+ export { default as AddressBar } from './components/AddressBar.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-address-bar-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as d } from "./components/AddressBar.vue.js";
2
+ export {
3
+ d as AddressBar
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AuthSelector.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthSelector.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,49 @@
1
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
2
+ import type { OpenApiDocument, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ import { type EnvVariable } from '../../../../store/index.js';
4
+ import type { UpdateSecuritySchemeEvent } from '../../../../v2/blocks/scalar-auth-selector-block/event-types';
5
+ import { type SecuritySchemeOption } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js';
6
+ type __VLS_Props = {
7
+ environment: Environment;
8
+ envVariables: EnvVariable[];
9
+ layout: 'client' | 'reference';
10
+ security: OpenApiDocument['security'];
11
+ selectedSecurity: OpenApiDocument['security'];
12
+ securitySchemes: NonNullable<OpenApiDocument['components']>['securitySchemes'];
13
+ server: ServerObject | undefined;
14
+ title: string;
15
+ };
16
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
17
+ authIndicator: import("vue").ComputedRef<{
18
+ icon: "Lock" | "Unlock";
19
+ text: string;
20
+ } | null>;
21
+ selectedSchemeOptions: import("vue").ComputedRef<SecuritySchemeOption[]>;
22
+ schemeOptions: import("vue").ComputedRef<SecuritySchemeOption[] | import("../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js").SecuritySchemeGroup[]>;
23
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
24
+ "update:selectedScopes": (payload: {
25
+ id: string[];
26
+ name: string;
27
+ scopes: string[];
28
+ }) => any;
29
+ "update:securityScheme": (payload: UpdateSecuritySchemeEvent) => any;
30
+ deleteOperationAuth: (names: string[]) => any;
31
+ "update:selectedSecurity": (payload: {
32
+ value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
33
+ create: SecuritySchemeObject[];
34
+ }) => any;
35
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ "onUpdate:selectedScopes"?: ((payload: {
37
+ id: string[];
38
+ name: string;
39
+ scopes: string[];
40
+ }) => any) | undefined;
41
+ "onUpdate:securityScheme"?: ((payload: UpdateSecuritySchemeEvent) => any) | undefined;
42
+ onDeleteOperationAuth?: ((names: string[]) => any) | undefined;
43
+ "onUpdate:selectedSecurity"?: ((payload: {
44
+ value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
45
+ create: SecuritySchemeObject[];
46
+ }) => any) | undefined;
47
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
+ export default _default;
49
+ //# sourceMappingURL=AuthSelector.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"AAyWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAGzE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAA;AACnG,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gEAAgE,CAAA;AAIvE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,gBAAgB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IAC7C,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;;;;;;;;YAiBiB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;eAK9C,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;gBACzD,oBAAoB,EAAE;;;;YANjB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;eAK9C,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;gBACzD,oBAAoB,EAAE;;;AA4epC,wBAQG"}
@@ -0,0 +1,7 @@
1
+ import o from "./AuthSelector.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a3aa1264"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,172 @@
1
+ import { defineComponent as M, useId as N, ref as b, computed as S, createBlock as x, openBlock as r, unref as o, withCtx as u, createVNode as m, createCommentVNode as g, createElementVNode as i, createElementBlock as h, Fragment as k, createTextVNode as C, toDisplayString as v, withModifiers as U, normalizeClass as j } from "vue";
2
+ import { useModal as z, ScalarComboboxMultiselect as E, ScalarButton as F, ScalarListboxCheckbox as P, ScalarIconButton as W } from "@scalar/components";
3
+ import { ScalarIconCaretDown as G, ScalarIconTrash as H } from "@scalar/icons";
4
+ import { isDefined as B } from "@scalar/oas-utils/helpers";
5
+ import { getResolvedRef as J } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
+ import K from "./DeleteRequestAuthModal.vue.js";
7
+ import { formatComplexScheme as Q, formatScheme as X, getSecuritySchemeOptions as Y } from "../helpers/security-scheme.js";
8
+ import Z from "./RequestAuthDataTable.vue.js";
9
+ import _ from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
10
+ import { useLayout as ee } from "../../../../hooks/useLayout.js";
11
+ const te = ["id"], le = { class: "flex flex-1" }, oe = { class: "min-w-0 flex-1 truncate" }, ye = /* @__PURE__ */ M({
12
+ __name: "AuthSelector",
13
+ props: {
14
+ environment: {},
15
+ envVariables: {},
16
+ layout: {},
17
+ security: {},
18
+ selectedSecurity: {},
19
+ securitySchemes: {},
20
+ server: {},
21
+ title: {}
22
+ },
23
+ emits: ["deleteOperationAuth", "update:securityScheme", "update:selectedScopes", "update:selectedSecurity"],
24
+ setup(n, { expose: I, emit: T }) {
25
+ const d = T, { layout: O } = ee(), V = N(), A = b(null), p = z(), a = b(null), D = b(!1), y = S(() => {
26
+ if (!n.security?.length)
27
+ return null;
28
+ const e = !n.security.some(
29
+ (f) => Object.keys(f).length > 1
30
+ ) && n.security.some((f) => Object.keys(f).length === 0);
31
+ return { icon: e ? "Unlock" : "Lock", text: e ? "Optional" : "Required" };
32
+ }), s = S(() => n.selectedSecurity?.length ? n.selectedSecurity.map((t) => {
33
+ const e = Object.keys(t);
34
+ if (e.length > 1)
35
+ return Q(t);
36
+ const l = e[0];
37
+ if (!l)
38
+ return;
39
+ const c = J(n.securitySchemes?.[l]);
40
+ if (c)
41
+ return X({ name: l, type: c.type, value: { [l]: [] } });
42
+ }).filter(B) : []);
43
+ function R({
44
+ label: t,
45
+ value: e
46
+ }) {
47
+ a.value = { label: t, payload: e }, p.show();
48
+ }
49
+ const w = S(() => Y(
50
+ n.security ?? [],
51
+ n.securitySchemes ?? {},
52
+ O === "modal" || n.layout === "reference"
53
+ )), $ = (t) => {
54
+ D.value && t.stopPropagation(), A.value?.$el.click();
55
+ }, q = (t) => {
56
+ d("update:selectedSecurity", {
57
+ value: t.map((e) => e.value),
58
+ create: t.map((e) => e.payload).filter(B)
59
+ });
60
+ }, L = () => {
61
+ a.value && (d("deleteOperationAuth", Object.keys(a.value.payload)), a.value = null, p.hide());
62
+ };
63
+ return I({
64
+ authIndicator: y,
65
+ selectedSchemeOptions: s,
66
+ schemeOptions: w
67
+ }), (t, e) => (r(), x(o(_), {
68
+ class: "group/params relative",
69
+ itemCount: s.value.length,
70
+ layout: t.layout,
71
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => D.value = l)
72
+ }, {
73
+ title: u(() => [
74
+ i("div", {
75
+ id: o(V),
76
+ class: "inline-flex items-center gap-0.5 leading-[20px]"
77
+ }, [
78
+ i("span", null, v(t.title), 1),
79
+ y.value ? (r(), h("span", {
80
+ key: 0,
81
+ class: j(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": y.value.text === "Required" }]),
82
+ "data-testid": "auth-indicator",
83
+ onClick: $
84
+ }, v(y.value.text), 3)) : g("", !0)
85
+ ], 8, te)
86
+ ]),
87
+ actions: u(() => [
88
+ i("div", le, [
89
+ m(o(E), {
90
+ class: "w-72 text-xs",
91
+ modelValue: s.value,
92
+ multiple: "",
93
+ options: w.value,
94
+ placement: "bottom-end",
95
+ teleport: "",
96
+ onDelete: R,
97
+ "onUpdate:modelValue": q
98
+ }, {
99
+ option: u(({ option: l, selected: c }) => [
100
+ m(o(P), {
101
+ multiselect: "",
102
+ selected: c
103
+ }, null, 8, ["selected"]),
104
+ i("div", oe, v(l.label), 1),
105
+ l.isDeletable ?? (o(O) !== "modal" && t.layout !== "reference") ? (r(), x(o(W), {
106
+ key: 0,
107
+ class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
108
+ icon: o(H),
109
+ label: `Delete ${l.label}`,
110
+ size: "xs",
111
+ onClick: U((f) => R(l), ["stop"])
112
+ }, null, 8, ["icon", "label", "onClick"])) : g("", !0)
113
+ ]),
114
+ default: u(() => [
115
+ m(o(F), {
116
+ ref_key: "comboboxButtonRef",
117
+ ref: A,
118
+ "aria-describedby": o(V),
119
+ class: "group/combobox-button hover:text-c-1 text-c-2 flex h-fit items-center gap-1 px-0.75 py-0.25 text-base font-normal transition-transform",
120
+ fullWidth: "",
121
+ variant: "ghost"
122
+ }, {
123
+ default: u(() => [
124
+ s.value.length === 1 ? (r(), h(k, { key: 0 }, [
125
+ e[4] || (e[4] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
126
+ C(" " + v(s.value[0]?.label), 1)
127
+ ], 64)) : s.value.length > 1 ? (r(), h(k, { key: 1 }, [
128
+ e[5] || (e[5] = C(" Multiple ")),
129
+ e[6] || (e[6] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
130
+ ], 64)) : (r(), h(k, { key: 2 }, [
131
+ e[7] || (e[7] = i("span", { class: "sr-only" }, "Select", -1)),
132
+ e[8] || (e[8] = C(" Auth Type "))
133
+ ], 64)),
134
+ m(o(G), {
135
+ class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
136
+ weight: "bold"
137
+ })
138
+ ]),
139
+ _: 1
140
+ }, 8, ["aria-describedby"])
141
+ ]),
142
+ _: 1
143
+ }, 8, ["modelValue", "options"])
144
+ ])
145
+ ]),
146
+ default: u(() => [
147
+ m(Z, {
148
+ envVariables: t.envVariables,
149
+ environment: t.environment,
150
+ layout: t.layout,
151
+ securitySchemes: t.securitySchemes,
152
+ selectedSchemeOptions: s.value,
153
+ server: t.server,
154
+ "onUpdate:securityScheme": e[0] || (e[0] = (l) => d("update:securityScheme", l)),
155
+ "onUpdate:selectedScopes": e[1] || (e[1] = (l) => d("update:selectedScopes", l))
156
+ }, null, 8, ["envVariables", "environment", "layout", "securitySchemes", "selectedSchemeOptions", "server"]),
157
+ a.value ? (r(), x(K, {
158
+ key: 0,
159
+ label: a.value.label,
160
+ scheme: a.value,
161
+ state: o(p),
162
+ onClose: e[2] || (e[2] = (l) => o(p).hide()),
163
+ onDelete: L
164
+ }, null, 8, ["label", "scheme", "state"])) : g("", !0)
165
+ ]),
166
+ _: 1
167
+ }, 8, ["itemCount", "layout"]));
168
+ }
169
+ });
170
+ export {
171
+ ye as default
172
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DeleteRequestAuthModal.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteRequestAuthModal.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ state: {
3
+ open: boolean;
4
+ show: () => void;
5
+ hide: () => void;
6
+ };
7
+ label: string;
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ delete: () => any;
11
+ close: () => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onDelete?: (() => any) | undefined;
14
+ onClose?: (() => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
17
+ //# sourceMappingURL=DeleteRequestAuthModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteRequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue"],"names":[],"mappings":"AA+CA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE,CAAA;IAC5D,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;;;;;;AAwIF,wBAOG"}
@@ -0,0 +1,52 @@
1
+ import { defineComponent as m, createBlock as p, openBlock as f, unref as o, withCtx as n, createElementVNode as s, toDisplayString as a, createVNode as r, createTextVNode as i } from "vue";
2
+ import { ScalarModal as h, ScalarButton as c } from "@scalar/components";
3
+ const x = { class: "text-c-2 mb-4 text-sm leading-normal" }, _ = { class: "flex justify-between gap-2" }, C = /* @__PURE__ */ m({
4
+ __name: "DeleteRequestAuthModal",
5
+ props: {
6
+ state: {},
7
+ label: {}
8
+ },
9
+ emits: ["close", "delete"],
10
+ setup(b, { emit: u }) {
11
+ const l = u, d = () => {
12
+ l("delete");
13
+ };
14
+ return (t, e) => (f(), p(o(h), {
15
+ size: "xxs",
16
+ state: t.state,
17
+ title: "Delete Security Scheme"
18
+ }, {
19
+ default: n(() => [
20
+ s("p", x, " This cannot be undone. You're about to delete the " + a(t.label) + " security scheme from the collection. ", 1),
21
+ s("div", _, [
22
+ r(o(c), {
23
+ class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
24
+ type: "button",
25
+ variant: "outlined",
26
+ onClick: e[0] || (e[0] = (y) => l("close"))
27
+ }, {
28
+ default: n(() => e[1] || (e[1] = [
29
+ i(" Cancel ")
30
+ ])),
31
+ _: 1,
32
+ __: [1]
33
+ }),
34
+ r(o(c), {
35
+ class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
36
+ type: "submit",
37
+ onClick: d
38
+ }, {
39
+ default: n(() => [
40
+ i(" Delete " + a(t.label), 1)
41
+ ]),
42
+ _: 1
43
+ })
44
+ ])
45
+ ]),
46
+ _: 1
47
+ }, 8, ["state"]));
48
+ }
49
+ });
50
+ export {
51
+ C as default
52
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./DeleteRequestAuthModal.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=OAuth2.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OAuth2.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
2
+ import type { OAuthFlowsObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ import { type EnvVariable } from '../../../../store/index.js';
4
+ type __VLS_Props = {
5
+ environment: Environment;
6
+ envVariables: EnvVariable[];
7
+ flows: OAuthFlowsObject;
8
+ type: keyof OAuthFlowsObject;
9
+ selectedScopes: string[];
10
+ server: ServerObject | undefined;
11
+ proxyUrl: string;
12
+ };
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ "update:selectedScopes": (payload: {
15
+ scopes: string[];
16
+ }) => any;
17
+ "update:securityScheme": (payload: Partial<{
18
+ authUrl: string;
19
+ tokenUrl: string;
20
+ token: string;
21
+ redirectUrl: string;
22
+ clientId: string;
23
+ clientSecret: string;
24
+ usePkce: "no" | "SHA-256" | "plain";
25
+ username: string;
26
+ password: string;
27
+ }>) => any;
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ "onUpdate:selectedScopes"?: ((payload: {
30
+ scopes: string[];
31
+ }) => any) | undefined;
32
+ "onUpdate:securityScheme"?: ((payload: Partial<{
33
+ authUrl: string;
34
+ tokenUrl: string;
35
+ token: string;
36
+ redirectUrl: string;
37
+ clientId: string;
38
+ clientSecret: string;
39
+ usePkce: "no" | "SHA-256" | "plain";
40
+ username: string;
41
+ password: string;
42
+ }>) => any) | undefined;
43
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
+ export default _default;
45
+ //# sourceMappingURL=OAuth2.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue"],"names":[],"mappings":"AAiQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAGzE,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAIrE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAO1C,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,KAAK,EAAE,gBAAgB,CAAA;IACvB,IAAI,EAAE,MAAM,gBAAgB,CAAA;IAC5B,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAC;;;gBAYgD,MAAM,EAAE;;;;;;;;;;;;;;;gBAAR,MAAM,EAAE;;;;;;;;;;;;;;AAohB1D,wBAOG"}