@scalar/api-client 2.22.3 → 2.23.2
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/CHANGELOG.md +49 -0
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +13 -3
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +68 -68
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +5 -3
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +3 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/index.d.ts +2 -1
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/index.js +7 -4
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +3 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +3 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +3 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +8 -5
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +4 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +49 -45
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +4 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -181
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +118 -107
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +30 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +11 -178
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -110
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +5 -29
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts +6 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +85 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +9 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +15 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +3 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +23 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/index.js +4 -6
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +127 -92
- package/dist/v2/features/app/app-state.d.ts +1 -1
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +145 -142
- package/dist/v2/features/app/helpers/routes.d.ts +1 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +31 -25
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue2.js +14 -11
- package/dist/v2/features/import-listener/ImportListener.vue.d.ts +52 -0
- package/dist/v2/features/import-listener/ImportListener.vue.d.ts.map +1 -0
- package/dist/v2/features/import-listener/ImportListener.vue.js +91 -0
- package/dist/v2/features/import-listener/ImportListener.vue2.js +4 -0
- package/dist/v2/features/import-listener/components/DropEventListener.vue.d.ts +7 -0
- package/dist/v2/features/import-listener/components/DropEventListener.vue.d.ts.map +1 -0
- package/dist/v2/features/import-listener/components/DropEventListener.vue.js +81 -0
- package/dist/v2/features/import-listener/components/DropEventListener.vue2.js +4 -0
- package/dist/v2/features/import-listener/components/ImportModal.vue.d.ts +40 -0
- package/dist/v2/features/import-listener/components/ImportModal.vue.d.ts.map +1 -0
- package/dist/v2/features/import-listener/components/ImportModal.vue.js +170 -0
- package/dist/v2/features/import-listener/components/ImportModal.vue3.js +5 -0
- package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.d.ts +29 -0
- package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.d.ts.map +1 -0
- package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.js +83 -0
- package/dist/v2/features/import-listener/components/WorkspaceSelector.vue2.js +4 -0
- package/dist/v2/features/import-listener/helpers/generate-unique-slug.d.ts +16 -0
- package/dist/v2/features/import-listener/helpers/generate-unique-slug.d.ts.map +1 -0
- package/dist/v2/features/import-listener/helpers/generate-unique-slug.js +11 -0
- package/dist/v2/features/import-listener/helpers/get-url-query-parameter.d.ts +8 -0
- package/dist/v2/features/import-listener/helpers/get-url-query-parameter.d.ts.map +1 -0
- package/dist/v2/features/import-listener/helpers/get-url-query-parameter.js +4 -0
- package/dist/v2/features/import-listener/helpers/import-document-to-workspace.d.ts +30 -0
- package/dist/v2/features/import-listener/helpers/import-document-to-workspace.d.ts.map +1 -0
- package/dist/v2/features/import-listener/helpers/import-document-to-workspace.js +33 -0
- package/dist/v2/features/import-listener/helpers/load-document-from-source.d.ts +15 -0
- package/dist/v2/features/import-listener/helpers/load-document-from-source.d.ts.map +1 -0
- package/dist/v2/features/import-listener/helpers/load-document-from-source.js +28 -0
- package/dist/v2/features/import-listener/helpers/wait-for-condition.d.ts +15 -0
- package/dist/v2/features/import-listener/helpers/wait-for-condition.d.ts.map +1 -0
- package/dist/v2/features/import-listener/helpers/wait-for-condition.js +16 -0
- package/dist/v2/features/import-listener/index.d.ts +2 -0
- package/dist/v2/features/import-listener/index.d.ts.map +1 -0
- package/dist/v2/features/import-listener/index.js +4 -0
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +14 -12
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +44 -35
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +3 -5
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +116 -109
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +19 -14
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts +0 -8
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.js +0 -33
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts +0 -7
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.js +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AA0iBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EAEV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAU1E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAA;AAC7G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAWxD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,QAAQ,EAAE,UAAU,GAAG,WAAW,CAAA;CACnC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,oBAAoB,EAAE,CAAA;IACrC,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;IACrD,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;AAmqBF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fe19bfef"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -24,12 +24,12 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
24
24
|
}, xe = ["id", "role"], Ne = /* @__PURE__ */ j({
|
|
25
25
|
__name: "RequestBlock",
|
|
26
26
|
props: {
|
|
27
|
-
selectedSecurity: {},
|
|
28
27
|
authMeta: { default: () => ({ type: "document" }) },
|
|
29
28
|
clientOptions: {},
|
|
30
29
|
environment: {},
|
|
31
30
|
eventBus: {},
|
|
32
31
|
exampleKey: {},
|
|
32
|
+
globalCookies: {},
|
|
33
33
|
layout: {},
|
|
34
34
|
method: {},
|
|
35
35
|
operation: {},
|
|
@@ -39,9 +39,9 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
39
39
|
securityRequirements: {},
|
|
40
40
|
securitySchemes: {},
|
|
41
41
|
selectedClient: {},
|
|
42
|
+
selectedSecurity: {},
|
|
42
43
|
selectedSecuritySchemes: {},
|
|
43
|
-
server: {}
|
|
44
|
-
globalCookies: {}
|
|
44
|
+
server: {}
|
|
45
45
|
},
|
|
46
46
|
setup(e) {
|
|
47
47
|
const r = n(() => ({
|
|
@@ -315,7 +315,7 @@ const ve = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
315
315
|
]),
|
|
316
316
|
_: 2
|
|
317
317
|
}, 1024))), 128)),
|
|
318
|
-
a[1] || (a[1] = K("div", { class: "flex
|
|
318
|
+
a[1] || (a[1] = K("div", { class: "flex grow" }, null, -1)),
|
|
319
319
|
c(m(ue, {
|
|
320
320
|
clientOptions: e.clientOptions,
|
|
321
321
|
eventBus: e.eventBus,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCodeSnippet.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestCodeSnippet.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestCodeSnippet.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestCodeSnippet.vue"],"names":[],"mappings":"AAmKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAQvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sEAAsE,CAAA;AAQpH,KAAK,WAAW,GAAG,wBAAwB,GAAG;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AAiR9E,wBAMG"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { ScalarIconCaretDown as
|
|
4
|
-
import { generateCodeSnippet as
|
|
5
|
-
import { getClients as
|
|
6
|
-
import { getCustomCodeSamples as
|
|
7
|
-
import { getSecrets as
|
|
1
|
+
import { defineComponent as g, computed as s, ref as S, watch as x, withDirectives as b, createBlock as y, openBlock as w, unref as l, withCtx as o, createVNode as n, createElementVNode as u, createTextVNode as m, toDisplayString as k, normalizeClass as B, vShow as V } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as D, ScalarCodeBlock as T, ScalarCombobox as E, ScalarButton as N } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as O } from "@scalar/icons";
|
|
4
|
+
import { generateCodeSnippet as z } from "../../operation-code-sample/helpers/generate-code-snippet.js";
|
|
5
|
+
import { getClients as I } from "../../operation-code-sample/helpers/get-clients.js";
|
|
6
|
+
import { getCustomCodeSamples as R } from "../../operation-code-sample/helpers/get-custom-code-samples.js";
|
|
7
|
+
import { getSecrets as W } from "../../operation-code-sample/helpers/get-secrets.js";
|
|
8
8
|
import { findClient as f } from "../../operation-code-sample/helpers/find-client.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const
|
|
9
|
+
import $ from "../../../components/layout/CollapsibleSection.vue.js";
|
|
10
|
+
import q from "../../../components/data-table/DataTable.vue.js";
|
|
11
|
+
import F from "../../../components/data-table/DataTableRow.vue.js";
|
|
12
|
+
const H = { class: "flex flex-1" }, L = { class: "overflow-hidden" }, Z = /* @__PURE__ */ g({
|
|
13
13
|
__name: "RequestCodeSnippet",
|
|
14
14
|
props: {
|
|
15
15
|
integration: {},
|
|
@@ -29,22 +29,22 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
29
29
|
globalCookies: {}
|
|
30
30
|
},
|
|
31
31
|
setup(e) {
|
|
32
|
-
const d = s(() =>
|
|
33
|
-
() =>
|
|
34
|
-
), i =
|
|
32
|
+
const d = s(() => R(e.operation)), c = s(
|
|
33
|
+
() => I(d.value, e.clientOptions)
|
|
34
|
+
), i = S(
|
|
35
35
|
f(c.value, e.selectedClient)
|
|
36
36
|
);
|
|
37
|
-
|
|
37
|
+
x(
|
|
38
38
|
() => e.selectedClient,
|
|
39
|
-
(
|
|
40
|
-
const
|
|
41
|
-
|
|
39
|
+
(t) => {
|
|
40
|
+
const a = f(c.value, t);
|
|
41
|
+
a && (i.value = a);
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
|
-
const p = s(() =>
|
|
45
|
-
i.value =
|
|
44
|
+
const p = s(() => W(e.securitySchemes ?? [])), C = (t) => {
|
|
45
|
+
i.value = t, t && !t.id.startsWith("custom") && e.eventBus.emit("workspace:update:selected-client", t.id);
|
|
46
46
|
}, v = s(
|
|
47
|
-
() =>
|
|
47
|
+
() => z({
|
|
48
48
|
clientId: i.value?.id,
|
|
49
49
|
customCodeSamples: d.value,
|
|
50
50
|
operation: e.operation,
|
|
@@ -57,32 +57,34 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
57
57
|
globalCookies: e.globalCookies,
|
|
58
58
|
includeDefaultHeaders: e.integration === "client"
|
|
59
59
|
})
|
|
60
|
+
), h = s(
|
|
61
|
+
() => c.value.some((t) => t.options.length > 0)
|
|
60
62
|
);
|
|
61
|
-
return (
|
|
63
|
+
return (t, a) => b((w(), y(l($), {
|
|
62
64
|
class: "group/preview w-full border-t",
|
|
63
65
|
defaultOpen: !1
|
|
64
66
|
}, {
|
|
65
|
-
title:
|
|
66
|
-
|
|
67
|
+
title: o(() => [...a[1] || (a[1] = [
|
|
68
|
+
m("Code Snippet", -1)
|
|
67
69
|
])]),
|
|
68
|
-
actions:
|
|
69
|
-
|
|
70
|
-
n(
|
|
70
|
+
actions: o(() => [
|
|
71
|
+
u("div", H, [
|
|
72
|
+
n(l(E), {
|
|
71
73
|
modelValue: i.value,
|
|
72
74
|
options: c.value,
|
|
73
75
|
placement: "bottom-end",
|
|
74
|
-
"onUpdate:modelValue":
|
|
76
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => C(r))
|
|
75
77
|
}, {
|
|
76
|
-
default:
|
|
77
|
-
n(
|
|
78
|
+
default: o(({ open: r }) => [
|
|
79
|
+
n(l(N), {
|
|
78
80
|
class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-0.5 py-0 text-base font-normal",
|
|
79
81
|
"data-testid": "client-picker",
|
|
80
82
|
variant: "ghost"
|
|
81
83
|
}, {
|
|
82
|
-
default:
|
|
83
|
-
|
|
84
|
-
n(
|
|
85
|
-
class:
|
|
84
|
+
default: o(() => [
|
|
85
|
+
m(k(i.value?.title) + " ", 1),
|
|
86
|
+
n(l(O), {
|
|
87
|
+
class: B(["mt-0.25 size-3 transition-transform duration-100", r && "rotate-180"]),
|
|
86
88
|
weight: "bold"
|
|
87
89
|
}, null, 8, ["class"])
|
|
88
90
|
]),
|
|
@@ -93,18 +95,18 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
93
95
|
}, 8, ["modelValue", "options"])
|
|
94
96
|
])
|
|
95
97
|
]),
|
|
96
|
-
default:
|
|
97
|
-
n(
|
|
98
|
-
default:
|
|
99
|
-
n(
|
|
98
|
+
default: o(() => [
|
|
99
|
+
n(l(D), null, {
|
|
100
|
+
default: o(() => [
|
|
101
|
+
n(l(q), {
|
|
100
102
|
columns: [""],
|
|
101
103
|
presentational: ""
|
|
102
104
|
}, {
|
|
103
|
-
default:
|
|
104
|
-
n(
|
|
105
|
-
default:
|
|
106
|
-
|
|
107
|
-
n(
|
|
105
|
+
default: o(() => [
|
|
106
|
+
n(l(F), null, {
|
|
107
|
+
default: o(() => [
|
|
108
|
+
u("div", L, [
|
|
109
|
+
n(l(T), {
|
|
108
110
|
class: "text-base -outline-offset-2",
|
|
109
111
|
content: v.value,
|
|
110
112
|
hideCredentials: p.value,
|
|
@@ -123,9 +125,11 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
123
125
|
})
|
|
124
126
|
]),
|
|
125
127
|
_: 1
|
|
126
|
-
}))
|
|
128
|
+
}, 512)), [
|
|
129
|
+
[V, h.value]
|
|
130
|
+
]);
|
|
127
131
|
}
|
|
128
132
|
});
|
|
129
133
|
export {
|
|
130
|
-
|
|
134
|
+
Z as default
|
|
131
135
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { canMethodHaveBody as p } from "@scalar/helpers/http/can-method-have-body";
|
|
2
2
|
import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
3
|
import { isElectron as u } from "../../../../libs/electron.js";
|
|
4
|
-
const i = "2.
|
|
4
|
+
const i = "2.23.2", m = "application/json", h = "*/*", c = (r, t, o) => ({
|
|
5
5
|
name: r,
|
|
6
6
|
defaultValue: t,
|
|
7
7
|
isOverridden: o.has(r.toLowerCase())
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type Icon } from '@scalar/components';
|
|
2
|
+
import type { SelectedSecurity } from '@scalar/workspace-store/entities/auth';
|
|
2
3
|
import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
4
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
5
|
import type { OpenApiDocument, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
|
+
import type { MergedSecuritySchemes } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/merge-security.js';
|
|
5
7
|
import { type SecuritySchemeOption } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js';
|
|
6
8
|
type __VLS_Props = {
|
|
7
9
|
environment: XScalarEnvironment;
|
|
@@ -11,8 +13,8 @@ type __VLS_Props = {
|
|
|
11
13
|
meta: AuthMeta;
|
|
12
14
|
proxyUrl: string;
|
|
13
15
|
securityRequirements: OpenApiDocument['security'];
|
|
14
|
-
securitySchemes:
|
|
15
|
-
selectedSecurity:
|
|
16
|
+
securitySchemes: MergedSecuritySchemes;
|
|
17
|
+
selectedSecurity: SelectedSecurity | undefined;
|
|
16
18
|
server: ServerObject | null;
|
|
17
19
|
title: string;
|
|
18
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"AAmTA,OAAO,EAML,KAAK,IAAI,EAEV,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EAEf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAA;AAC1G,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gEAAgE,CAAA;AAKvE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,qBAAqB,CAAA;IACtC,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAC9C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;cA8BqC,IAAI;cAAQ,MAAM;;;;;AA4bzD,wBAOG"}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
1
2
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
-
import type {
|
|
3
|
+
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
+
import type { OAuthFlowsObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
3
5
|
type __VLS_Props = {
|
|
6
|
+
/** Current environment configuration */
|
|
4
7
|
environment: XScalarEnvironment;
|
|
5
|
-
flows
|
|
6
|
-
|
|
8
|
+
/** OAuth flows */
|
|
9
|
+
flows: OAuthFlowsObjectSecret;
|
|
10
|
+
/** Current environment configuration */
|
|
11
|
+
/** Type of the OAuth flow */
|
|
12
|
+
type: keyof OAuthFlowsObjectSecret;
|
|
13
|
+
/** Selected scopes */
|
|
7
14
|
selectedScopes: string[];
|
|
15
|
+
/** Current server configuration */
|
|
8
16
|
server: ServerObject | null;
|
|
17
|
+
/** Proxy URL */
|
|
9
18
|
proxyUrl: string;
|
|
19
|
+
/** Name of the security scheme */
|
|
20
|
+
name: string;
|
|
21
|
+
/** Event bus for authentication updates */
|
|
22
|
+
eventBus: WorkspaceEventBus;
|
|
10
23
|
};
|
|
11
24
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
25
|
"update:selectedScopes": (payload: Pick<{
|
|
@@ -16,98 +29,10 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
16
29
|
newScopePayload?: {
|
|
17
30
|
name: string;
|
|
18
31
|
description: string;
|
|
19
|
-
flowType: keyof OAuthFlowsObject;
|
|
32
|
+
flowType: keyof import("@scalar/workspace-store/schemas/v3.1/strict/oauthflows").OAuthFlowsObject;
|
|
20
33
|
};
|
|
21
34
|
meta: import("@scalar/workspace-store/events").AuthMeta;
|
|
22
35
|
}, "scopes" | "newScopePayload">) => any;
|
|
23
|
-
"update:securityScheme": (payload: ({
|
|
24
|
-
type: "http";
|
|
25
|
-
} & Partial<Omit<import("@scalar/workspace-store/schemas/v3.1/strict/security-scheme").HttpObject, "type">>) | ({
|
|
26
|
-
type: "apiKey";
|
|
27
|
-
} & Partial<Omit<import("@scalar/workspace-store/schemas/v3.1/strict/security-scheme").ApiKeyObject, "type">>) | ({
|
|
28
|
-
type: "oauth2";
|
|
29
|
-
} & {
|
|
30
|
-
description?: string | undefined;
|
|
31
|
-
'x-default-scopes'?: string[] | undefined;
|
|
32
|
-
flows?: {
|
|
33
|
-
implicit?: {
|
|
34
|
-
refreshUrl?: string | undefined;
|
|
35
|
-
scopes?: {
|
|
36
|
-
[x: string]: string | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
'x-scalar-secret-client-id'?: string | undefined;
|
|
39
|
-
'x-scalar-secret-token'?: string | undefined;
|
|
40
|
-
'x-scalar-security-query'?: {
|
|
41
|
-
[x: string]: string | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
'x-scalar-security-body'?: {
|
|
44
|
-
[x: string]: string | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
'x-tokenName'?: string | undefined;
|
|
47
|
-
authorizationUrl?: string | undefined;
|
|
48
|
-
'x-scalar-secret-redirect-uri'?: string | undefined;
|
|
49
|
-
} | undefined;
|
|
50
|
-
password?: {
|
|
51
|
-
refreshUrl?: string | undefined;
|
|
52
|
-
scopes?: {
|
|
53
|
-
[x: string]: string | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
'x-scalar-secret-client-id'?: string | undefined;
|
|
56
|
-
'x-scalar-secret-token'?: string | undefined;
|
|
57
|
-
'x-scalar-security-query'?: {
|
|
58
|
-
[x: string]: string | undefined;
|
|
59
|
-
} | undefined;
|
|
60
|
-
'x-scalar-security-body'?: {
|
|
61
|
-
[x: string]: string | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
'x-tokenName'?: string | undefined;
|
|
64
|
-
tokenUrl?: string | undefined;
|
|
65
|
-
'x-scalar-secret-username'?: string | undefined;
|
|
66
|
-
'x-scalar-secret-password'?: string | undefined;
|
|
67
|
-
'x-scalar-secret-client-secret'?: string | undefined;
|
|
68
|
-
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
clientCredentials?: {
|
|
71
|
-
refreshUrl?: string | undefined;
|
|
72
|
-
scopes?: {
|
|
73
|
-
[x: string]: string | undefined;
|
|
74
|
-
} | undefined;
|
|
75
|
-
'x-scalar-secret-client-id'?: string | undefined;
|
|
76
|
-
'x-scalar-secret-token'?: string | undefined;
|
|
77
|
-
'x-scalar-security-query'?: {
|
|
78
|
-
[x: string]: string | undefined;
|
|
79
|
-
} | undefined;
|
|
80
|
-
'x-scalar-security-body'?: {
|
|
81
|
-
[x: string]: string | undefined;
|
|
82
|
-
} | undefined;
|
|
83
|
-
'x-tokenName'?: string | undefined;
|
|
84
|
-
tokenUrl?: string | undefined;
|
|
85
|
-
'x-scalar-secret-client-secret'?: string | undefined;
|
|
86
|
-
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
authorizationCode?: {
|
|
89
|
-
refreshUrl?: string | undefined;
|
|
90
|
-
scopes?: {
|
|
91
|
-
[x: string]: string | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
'x-scalar-secret-client-id'?: string | undefined;
|
|
94
|
-
'x-scalar-secret-token'?: string | undefined;
|
|
95
|
-
'x-scalar-security-query'?: {
|
|
96
|
-
[x: string]: string | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
'x-scalar-security-body'?: {
|
|
99
|
-
[x: string]: string | undefined;
|
|
100
|
-
} | undefined;
|
|
101
|
-
'x-tokenName'?: string | undefined;
|
|
102
|
-
authorizationUrl?: string | undefined;
|
|
103
|
-
tokenUrl?: string | undefined;
|
|
104
|
-
'x-scalar-secret-client-secret'?: string | undefined;
|
|
105
|
-
'x-scalar-secret-redirect-uri'?: string | undefined;
|
|
106
|
-
'x-usePkce'?: "SHA-256" | "plain" | "no" | undefined;
|
|
107
|
-
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
108
|
-
} | undefined;
|
|
109
|
-
} | undefined;
|
|
110
|
-
})) => any;
|
|
111
36
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
112
37
|
"onUpdate:selectedScopes"?: ((payload: Pick<{
|
|
113
38
|
id: string[];
|
|
@@ -116,98 +41,10 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
116
41
|
newScopePayload?: {
|
|
117
42
|
name: string;
|
|
118
43
|
description: string;
|
|
119
|
-
flowType: keyof OAuthFlowsObject;
|
|
44
|
+
flowType: keyof import("@scalar/workspace-store/schemas/v3.1/strict/oauthflows").OAuthFlowsObject;
|
|
120
45
|
};
|
|
121
46
|
meta: import("@scalar/workspace-store/events").AuthMeta;
|
|
122
47
|
}, "scopes" | "newScopePayload">) => any) | undefined;
|
|
123
|
-
"onUpdate:securityScheme"?: ((payload: ({
|
|
124
|
-
type: "http";
|
|
125
|
-
} & Partial<Omit<import("@scalar/workspace-store/schemas/v3.1/strict/security-scheme").HttpObject, "type">>) | ({
|
|
126
|
-
type: "apiKey";
|
|
127
|
-
} & Partial<Omit<import("@scalar/workspace-store/schemas/v3.1/strict/security-scheme").ApiKeyObject, "type">>) | ({
|
|
128
|
-
type: "oauth2";
|
|
129
|
-
} & {
|
|
130
|
-
description?: string | undefined;
|
|
131
|
-
'x-default-scopes'?: string[] | undefined;
|
|
132
|
-
flows?: {
|
|
133
|
-
implicit?: {
|
|
134
|
-
refreshUrl?: string | undefined;
|
|
135
|
-
scopes?: {
|
|
136
|
-
[x: string]: string | undefined;
|
|
137
|
-
} | undefined;
|
|
138
|
-
'x-scalar-secret-client-id'?: string | undefined;
|
|
139
|
-
'x-scalar-secret-token'?: string | undefined;
|
|
140
|
-
'x-scalar-security-query'?: {
|
|
141
|
-
[x: string]: string | undefined;
|
|
142
|
-
} | undefined;
|
|
143
|
-
'x-scalar-security-body'?: {
|
|
144
|
-
[x: string]: string | undefined;
|
|
145
|
-
} | undefined;
|
|
146
|
-
'x-tokenName'?: string | undefined;
|
|
147
|
-
authorizationUrl?: string | undefined;
|
|
148
|
-
'x-scalar-secret-redirect-uri'?: string | undefined;
|
|
149
|
-
} | undefined;
|
|
150
|
-
password?: {
|
|
151
|
-
refreshUrl?: string | undefined;
|
|
152
|
-
scopes?: {
|
|
153
|
-
[x: string]: string | undefined;
|
|
154
|
-
} | undefined;
|
|
155
|
-
'x-scalar-secret-client-id'?: string | undefined;
|
|
156
|
-
'x-scalar-secret-token'?: string | undefined;
|
|
157
|
-
'x-scalar-security-query'?: {
|
|
158
|
-
[x: string]: string | undefined;
|
|
159
|
-
} | undefined;
|
|
160
|
-
'x-scalar-security-body'?: {
|
|
161
|
-
[x: string]: string | undefined;
|
|
162
|
-
} | undefined;
|
|
163
|
-
'x-tokenName'?: string | undefined;
|
|
164
|
-
tokenUrl?: string | undefined;
|
|
165
|
-
'x-scalar-secret-username'?: string | undefined;
|
|
166
|
-
'x-scalar-secret-password'?: string | undefined;
|
|
167
|
-
'x-scalar-secret-client-secret'?: string | undefined;
|
|
168
|
-
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
169
|
-
} | undefined;
|
|
170
|
-
clientCredentials?: {
|
|
171
|
-
refreshUrl?: string | undefined;
|
|
172
|
-
scopes?: {
|
|
173
|
-
[x: string]: string | undefined;
|
|
174
|
-
} | undefined;
|
|
175
|
-
'x-scalar-secret-client-id'?: string | undefined;
|
|
176
|
-
'x-scalar-secret-token'?: string | undefined;
|
|
177
|
-
'x-scalar-security-query'?: {
|
|
178
|
-
[x: string]: string | undefined;
|
|
179
|
-
} | undefined;
|
|
180
|
-
'x-scalar-security-body'?: {
|
|
181
|
-
[x: string]: string | undefined;
|
|
182
|
-
} | undefined;
|
|
183
|
-
'x-tokenName'?: string | undefined;
|
|
184
|
-
tokenUrl?: string | undefined;
|
|
185
|
-
'x-scalar-secret-client-secret'?: string | undefined;
|
|
186
|
-
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
187
|
-
} | undefined;
|
|
188
|
-
authorizationCode?: {
|
|
189
|
-
refreshUrl?: string | undefined;
|
|
190
|
-
scopes?: {
|
|
191
|
-
[x: string]: string | undefined;
|
|
192
|
-
} | undefined;
|
|
193
|
-
'x-scalar-secret-client-id'?: string | undefined;
|
|
194
|
-
'x-scalar-secret-token'?: string | undefined;
|
|
195
|
-
'x-scalar-security-query'?: {
|
|
196
|
-
[x: string]: string | undefined;
|
|
197
|
-
} | undefined;
|
|
198
|
-
'x-scalar-security-body'?: {
|
|
199
|
-
[x: string]: string | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
'x-tokenName'?: string | undefined;
|
|
202
|
-
authorizationUrl?: string | undefined;
|
|
203
|
-
tokenUrl?: string | undefined;
|
|
204
|
-
'x-scalar-secret-client-secret'?: string | undefined;
|
|
205
|
-
'x-scalar-secret-redirect-uri'?: string | undefined;
|
|
206
|
-
'x-usePkce'?: "SHA-256" | "plain" | "no" | undefined;
|
|
207
|
-
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
208
|
-
} | undefined;
|
|
209
|
-
} | undefined;
|
|
210
|
-
})) => any) | undefined;
|
|
211
48
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
212
49
|
export default _default;
|
|
213
50
|
//# sourceMappingURL=OAuth2.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue"],"names":[],"mappings":"AAiWA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,8DAA8D,CAAA;AAMrE,OAAO,KAAK,EAIV,sBAAsB,EACvB,MAAM,6DAA6D,CAAA;AAIpE,KAAK,WAAW,GAAG;IACjB,wCAAwC;IACxC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,kBAAkB;IAClB,KAAK,EAAE,sBAAsB,CAAA;IAC7B,wCAAwC;IACxC,6BAA6B;IAC7B,IAAI,EAAE,MAAM,sBAAsB,CAAA;IAClC,sBAAsB;IACtB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,mCAAmC;IACnC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,2CAA2C;IAC3C,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAmoBF,wBAOG"}
|