@scalar/api-client 2.3.31 → 2.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +63 -61
- package/dist/components/DataTable/DataTable.vue.js +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +58 -48
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +34 -32
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
- package/dist/hooks/useClientConfig.d.ts +3 -0
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +64 -24
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +128 -48
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +64 -24
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +64 -24
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/index.js +26 -25
- package/dist/libs/local-storage.d.ts +8 -0
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +28 -24
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +8 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/decode-buffer.js +4 -4
- package/dist/store/active-entities.d.ts +2 -2
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +22 -22
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +42 -2
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +64 -24
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.js +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue2.js +32 -32
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue.js +3 -2
- package/dist/views/Collection/CollectionEnvironment.vue2.js +233 -9
- package/dist/views/Collection/CollectionNavigation.vue.js +36 -36
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +6 -6
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +13 -0
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +1 -0
- package/dist/views/Collection/components/EnvironmentForm.vue.js +7 -0
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +274 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +15 -13
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +35 -34
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +3 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +74 -31
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +3 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +8 -6
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +32 -28
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +67 -65
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +94 -97
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +116 -99
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +27 -25
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +114 -73
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +54 -59
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +27 -26
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +8 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +17 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +2 -0
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +87 -84
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +11 -11
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/consts/index.js +7 -5
- package/dist/views/Request/consts/mediaTypes.d.ts +4 -0
- package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -1
- package/dist/views/Request/consts/mediaTypes.js +22 -4
- package/dist/views/Request/consts/mediaTypes.test.d.ts +2 -0
- package/dist/views/Request/consts/mediaTypes.test.d.ts.map +1 -0
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +53 -47
- package/package.json +16 -16
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as _, ref as
|
|
2
|
-
import { ScalarModal as T, ScalarListbox as $, ScalarButton as
|
|
1
|
+
import { defineComponent as _, ref as m, computed as h, watch as w, createBlock as u, openBlock as v, unref as s, withCtx as a, createVNode as r, createElementVNode as p, createTextVNode as I, normalizeClass as E, toDisplayString as N } from "vue";
|
|
2
|
+
import { ScalarModal as T, ScalarListbox as $, ScalarButton as x, ScalarIcon as z } from "@scalar/components";
|
|
3
3
|
import { useToasts as B } from "@scalar/use-toasts";
|
|
4
4
|
import D from "../../components/CommandPalette/CommandActionForm.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useWorkspace as
|
|
8
|
-
const
|
|
5
|
+
import P from "../../components/CommandPalette/CommandActionInput.vue.js";
|
|
6
|
+
import U from "./EnvironmentColors.vue.js";
|
|
7
|
+
import { useWorkspace as W } from "../../store/store.js";
|
|
8
|
+
const j = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
9
9
|
__name: "EnvironmentModal",
|
|
10
10
|
props: {
|
|
11
11
|
state: {},
|
|
@@ -13,8 +13,8 @@ const M = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
|
13
13
|
collectionId: {}
|
|
14
14
|
},
|
|
15
15
|
emits: ["cancel", "submit"],
|
|
16
|
-
setup(
|
|
17
|
-
const n =
|
|
16
|
+
setup(g, { emit: F }) {
|
|
17
|
+
const n = g, f = F, { events: S } = W(), i = m(""), c = m("#FFFFFF"), d = h(() => [
|
|
18
18
|
...n.activeWorkspaceCollections.filter((t) => {
|
|
19
19
|
var e;
|
|
20
20
|
return ((e = t.info) == null ? void 0 : e.title) !== "Drafts";
|
|
@@ -25,54 +25,58 @@ const M = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
|
25
25
|
label: ((e = t.info) == null ? void 0 : e.title) ?? "Untitled Collection"
|
|
26
26
|
};
|
|
27
27
|
})
|
|
28
|
-
]), l =
|
|
28
|
+
]), l = m(
|
|
29
29
|
d.value.find((t) => t.id === n.collectionId)
|
|
30
|
-
), { toast:
|
|
30
|
+
), { toast: b } = B(), V = (t) => {
|
|
31
31
|
c.value = t;
|
|
32
32
|
};
|
|
33
33
|
w(
|
|
34
34
|
() => n.state.open,
|
|
35
35
|
(t) => {
|
|
36
|
-
t && (
|
|
36
|
+
t && (i.value = "", c.value = "#FFFFFF", n.collectionId ? l.value = d.value.find(
|
|
37
37
|
(e) => e.id === n.collectionId
|
|
38
38
|
) : l.value = void 0);
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
const k = () => {
|
|
42
|
-
var t, e, o,
|
|
42
|
+
var t, e, o, C;
|
|
43
|
+
if (!i.value.trim()) {
|
|
44
|
+
b("Please enter a name before adding an environment.", "error");
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
43
47
|
if (!((t = l.value) != null && t.id)) {
|
|
44
|
-
|
|
48
|
+
b("Please select a collection before adding an environment.", "error");
|
|
45
49
|
return;
|
|
46
50
|
}
|
|
47
51
|
f("submit", {
|
|
48
|
-
name:
|
|
52
|
+
name: i.value,
|
|
49
53
|
color: c.value,
|
|
50
54
|
type: ((e = l.value) == null ? void 0 : e.id) === "global" ? "global" : "collection",
|
|
51
|
-
collectionId: ((o = l.value) == null ? void 0 : o.id) !== "global" ? (
|
|
55
|
+
collectionId: ((o = l.value) == null ? void 0 : o.id) !== "global" ? (C = l.value) == null ? void 0 : C.id : void 0
|
|
52
56
|
});
|
|
53
57
|
}, y = () => {
|
|
54
|
-
n.state.hide(),
|
|
58
|
+
n.state.hide(), S.commandPalette.emit({ commandName: "Create Collection" });
|
|
55
59
|
};
|
|
56
|
-
return (t, e) => (v(),
|
|
60
|
+
return (t, e) => (v(), u(s(T), {
|
|
57
61
|
bodyClass: "border-t-0 rounded-t-lg",
|
|
58
62
|
size: "xs",
|
|
59
63
|
state: t.state
|
|
60
64
|
}, {
|
|
61
65
|
default: a(() => [
|
|
62
|
-
|
|
63
|
-
disabled: !l.value,
|
|
66
|
+
r(D, {
|
|
67
|
+
disabled: !l.value || !i.value.trim(),
|
|
64
68
|
onCancel: e[2] || (e[2] = (o) => f("cancel")),
|
|
65
69
|
onSubmit: k
|
|
66
70
|
}, {
|
|
67
71
|
options: a(() => [
|
|
68
|
-
s(
|
|
72
|
+
r(s($), {
|
|
69
73
|
modelValue: l.value,
|
|
70
74
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => l.value = o),
|
|
71
75
|
options: d.value,
|
|
72
76
|
placeholder: "Select Type"
|
|
73
77
|
}, {
|
|
74
78
|
default: a(() => [
|
|
75
|
-
d.value.length > 0 ? (v(),
|
|
79
|
+
d.value.length > 0 ? (v(), u(s(x), {
|
|
76
80
|
key: 0,
|
|
77
81
|
class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
|
|
78
82
|
variant: "outlined"
|
|
@@ -81,14 +85,14 @@ const M = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
|
81
85
|
p("span", {
|
|
82
86
|
class: E(l.value ? "text-c-1" : "text-c-3")
|
|
83
87
|
}, N(l.value ? l.value.label : "Select Collection"), 3),
|
|
84
|
-
s(
|
|
88
|
+
r(s(z), {
|
|
85
89
|
class: "text-c-3",
|
|
86
90
|
icon: "ChevronDown",
|
|
87
91
|
size: "xs"
|
|
88
92
|
})
|
|
89
93
|
]),
|
|
90
94
|
_: 1
|
|
91
|
-
})) : (v(),
|
|
95
|
+
})) : (v(), u(s(x), {
|
|
92
96
|
key: 1,
|
|
93
97
|
class: "hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",
|
|
94
98
|
variant: "outlined",
|
|
@@ -107,16 +111,16 @@ const M = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
|
107
111
|
I(" Add Environment ")
|
|
108
112
|
])),
|
|
109
113
|
default: a(() => [
|
|
110
|
-
p("div",
|
|
111
|
-
|
|
114
|
+
p("div", j, [
|
|
115
|
+
r(U, {
|
|
112
116
|
activeColor: c.value,
|
|
113
117
|
class: "peer",
|
|
114
118
|
selector: "",
|
|
115
119
|
onSelect: V
|
|
116
120
|
}, null, 8, ["activeColor"]),
|
|
117
|
-
|
|
118
|
-
modelValue:
|
|
119
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) =>
|
|
121
|
+
r(P, {
|
|
122
|
+
modelValue: i.value,
|
|
123
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => i.value = o),
|
|
120
124
|
class: "-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",
|
|
121
125
|
placeholder: "Environment name"
|
|
122
126
|
}, null, 8, ["modelValue"])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAwQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,WAAW,EAAE,OAAO,CAAA;IACpB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAifF,wBAMG"}
|
|
@@ -1,49 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, createElementBlock as V, openBlock as d, Fragment as U, createBlock as k, createCommentVNode as w, createVNode as a, unref as r, withCtx as o, mergeProps as m, createTextVNode as u, createElementVNode as $ } from "vue";
|
|
2
2
|
import { useLoadingState as T, ScalarButton as b } from "@scalar/components";
|
|
3
3
|
import { pkceOptions as P } from "@scalar/oas-utils/entities/spec";
|
|
4
|
-
import { useToasts as
|
|
5
|
-
import { useWorkspace as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
4
|
+
import { useToasts as A } from "@scalar/use-toasts";
|
|
5
|
+
import { useWorkspace as B } from "../../../../store/store.js";
|
|
6
|
+
import { updateScheme as L } from "../helpers/update-scheme.js";
|
|
7
|
+
import R from "./OAuthScopesInput.vue.js";
|
|
8
|
+
import p from "./RequestAuthDataTableInput.vue.js";
|
|
9
|
+
import f from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
9
10
|
import { authorizeOauth2 as F } from "../../libs/oauth2.js";
|
|
10
|
-
const I = { class: "border-t-1/2 flex h-8 items-center justify-end gap-2" },
|
|
11
|
+
const I = { class: "border-t-1/2 flex h-8 items-center justify-end gap-2" }, N = { class: "border-t-1/2 flex h-8 w-full items-center justify-end" }, Y = /* @__PURE__ */ z({
|
|
11
12
|
__name: "OAuth2",
|
|
12
13
|
props: {
|
|
13
14
|
collection: {},
|
|
14
15
|
environment: {},
|
|
15
16
|
envVariables: {},
|
|
16
17
|
flow: {},
|
|
18
|
+
persistAuth: { type: Boolean, default: !1 },
|
|
17
19
|
scheme: {},
|
|
18
20
|
server: {},
|
|
19
21
|
workspace: {}
|
|
20
22
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const y = T(), { toast: g } =
|
|
23
|
+
setup(s) {
|
|
24
|
+
const y = T(), { toast: g } = A(), C = B(), n = (l, e) => L(s.scheme.uid, l, e, C, s.persistAuth), S = async () => {
|
|
23
25
|
var t, v;
|
|
24
|
-
if (y.isLoading || !((t =
|
|
26
|
+
if (y.isLoading || !((t = s.collection) != null && t.uid))
|
|
25
27
|
return;
|
|
26
|
-
if (!
|
|
28
|
+
if (!s.server) {
|
|
27
29
|
g("No server selected", "error");
|
|
28
30
|
return;
|
|
29
31
|
}
|
|
30
32
|
y.startLoading();
|
|
31
33
|
const [l, e] = await F(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
(v =
|
|
34
|
+
s.flow,
|
|
35
|
+
s.server,
|
|
36
|
+
(v = s.workspace) == null ? void 0 : v.proxyUrl
|
|
35
37
|
).finally(() => y.stopLoading());
|
|
36
|
-
e ? n(`flows.${
|
|
37
|
-
},
|
|
38
|
-
environment:
|
|
39
|
-
envVariables:
|
|
40
|
-
workspace:
|
|
38
|
+
e ? n(`flows.${s.flow.type}.token`, e) : (console.error(l), g((l == null ? void 0 : l.message) ?? "Failed to authorize", "error"));
|
|
39
|
+
}, i = {
|
|
40
|
+
environment: s.environment,
|
|
41
|
+
envVariables: s.envVariables,
|
|
42
|
+
workspace: s.workspace
|
|
41
43
|
};
|
|
42
|
-
return (l, e) => (
|
|
43
|
-
l.flow.token ? (
|
|
44
|
-
a(r(
|
|
44
|
+
return (l, e) => (d(), V(U, null, [
|
|
45
|
+
l.flow.token ? (d(), V(U, { key: 0 }, [
|
|
46
|
+
a(r(f), null, {
|
|
45
47
|
default: o(() => [
|
|
46
|
-
a(
|
|
48
|
+
a(p, m(i, {
|
|
47
49
|
class: "border-r-transparent",
|
|
48
50
|
modelValue: l.flow.token,
|
|
49
51
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
@@ -51,14 +53,14 @@ const I = { class: "border-t-1/2 flex h-8 items-center justify-end gap-2" }, A =
|
|
|
51
53
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => n(`flows.${l.flow.type}.token`, t))
|
|
52
54
|
}), {
|
|
53
55
|
default: o(() => e[10] || (e[10] = [
|
|
54
|
-
|
|
56
|
+
u(" Access Token ")
|
|
55
57
|
])),
|
|
56
58
|
_: 1
|
|
57
59
|
}, 16, ["modelValue"])
|
|
58
60
|
]),
|
|
59
61
|
_: 1
|
|
60
62
|
}),
|
|
61
|
-
a(r(
|
|
63
|
+
a(r(f), { class: "min-w-full" }, {
|
|
62
64
|
default: o(() => [
|
|
63
65
|
$("div", I, [
|
|
64
66
|
a(r(b), {
|
|
@@ -69,7 +71,7 @@ const I = { class: "border-t-1/2 flex h-8 items-center justify-end gap-2" }, A =
|
|
|
69
71
|
onClick: e[1] || (e[1] = (t) => n(`flows.${l.flow.type}.token`, ""))
|
|
70
72
|
}, {
|
|
71
73
|
default: o(() => e[11] || (e[11] = [
|
|
72
|
-
|
|
74
|
+
u(" Clear ")
|
|
73
75
|
])),
|
|
74
76
|
_: 1
|
|
75
77
|
}, 8, ["loading"])
|
|
@@ -77,116 +79,116 @@ const I = { class: "border-t-1/2 flex h-8 items-center justify-end gap-2" }, A =
|
|
|
77
79
|
]),
|
|
78
80
|
_: 1
|
|
79
81
|
})
|
|
80
|
-
], 64)) : (
|
|
81
|
-
a(r(
|
|
82
|
+
], 64)) : (d(), V(U, { key: 1 }, [
|
|
83
|
+
a(r(f), null, {
|
|
82
84
|
default: o(() => [
|
|
83
|
-
"authorizationUrl" in l.flow ? (
|
|
85
|
+
"authorizationUrl" in l.flow ? (d(), k(p, m({ key: 0 }, i, {
|
|
84
86
|
containerClass: "border-r-0",
|
|
85
87
|
modelValue: l.flow.authorizationUrl,
|
|
86
88
|
placeholder: "https://galaxy.scalar.com/authorize",
|
|
87
89
|
"onUpdate:modelValue": e[2] || (e[2] = (t) => n(`flows.${l.flow.type}.authorizationUrl`, t))
|
|
88
90
|
}), {
|
|
89
91
|
default: o(() => e[12] || (e[12] = [
|
|
90
|
-
|
|
92
|
+
u(" Auth URL ")
|
|
91
93
|
])),
|
|
92
94
|
_: 1
|
|
93
|
-
}, 16, ["modelValue"])) :
|
|
94
|
-
"tokenUrl" in l.flow ? (
|
|
95
|
+
}, 16, ["modelValue"])) : w("", !0),
|
|
96
|
+
"tokenUrl" in l.flow ? (d(), k(p, m({ key: 1 }, i, {
|
|
95
97
|
modelValue: l.flow.tokenUrl,
|
|
96
98
|
placeholder: "https://galaxy.scalar.com/token",
|
|
97
99
|
"onUpdate:modelValue": e[3] || (e[3] = (t) => n(`flows.${l.flow.type}.tokenUrl`, t))
|
|
98
100
|
}), {
|
|
99
101
|
default: o(() => e[13] || (e[13] = [
|
|
100
|
-
|
|
102
|
+
u(" Token URL ")
|
|
101
103
|
])),
|
|
102
104
|
_: 1
|
|
103
|
-
}, 16, ["modelValue"])) :
|
|
105
|
+
}, 16, ["modelValue"])) : w("", !0)
|
|
104
106
|
]),
|
|
105
107
|
_: 1
|
|
106
108
|
}),
|
|
107
|
-
"x-scalar-redirect-uri" in l.flow ? (
|
|
109
|
+
"x-scalar-redirect-uri" in l.flow ? (d(), k(r(f), { key: 0 }, {
|
|
108
110
|
default: o(() => [
|
|
109
|
-
a(
|
|
111
|
+
a(p, m(i, {
|
|
110
112
|
modelValue: l.flow["x-scalar-redirect-uri"],
|
|
111
113
|
placeholder: "https://galaxy.scalar.com/callback",
|
|
112
114
|
"onUpdate:modelValue": e[4] || (e[4] = (t) => n(`flows.${l.flow.type}.x-scalar-redirect-uri`, t))
|
|
113
115
|
}), {
|
|
114
116
|
default: o(() => e[14] || (e[14] = [
|
|
115
|
-
|
|
117
|
+
u(" Redirect URL ")
|
|
116
118
|
])),
|
|
117
119
|
_: 1
|
|
118
120
|
}, 16, ["modelValue"])
|
|
119
121
|
]),
|
|
120
122
|
_: 1
|
|
121
|
-
})) :
|
|
122
|
-
l.flow.type === "password" ? (
|
|
123
|
-
a(r(
|
|
123
|
+
})) : w("", !0),
|
|
124
|
+
l.flow.type === "password" ? (d(), V(U, { key: 1 }, [
|
|
125
|
+
a(r(f), null, {
|
|
124
126
|
default: o(() => [
|
|
125
|
-
a(
|
|
127
|
+
a(p, m(i, {
|
|
126
128
|
class: "text-c-2",
|
|
127
129
|
modelValue: l.flow.username,
|
|
128
130
|
placeholder: "janedoe",
|
|
129
131
|
"onUpdate:modelValue": e[5] || (e[5] = (t) => n(`flows.${l.flow.type}.username`, t))
|
|
130
132
|
}), {
|
|
131
133
|
default: o(() => e[15] || (e[15] = [
|
|
132
|
-
|
|
134
|
+
u(" Username ")
|
|
133
135
|
])),
|
|
134
136
|
_: 1
|
|
135
137
|
}, 16, ["modelValue"])
|
|
136
138
|
]),
|
|
137
139
|
_: 1
|
|
138
140
|
}),
|
|
139
|
-
a(r(
|
|
141
|
+
a(r(f), null, {
|
|
140
142
|
default: o(() => [
|
|
141
|
-
a(
|
|
143
|
+
a(p, m(i, {
|
|
142
144
|
modelValue: l.flow.password,
|
|
143
145
|
placeholder: "********",
|
|
144
146
|
type: "password",
|
|
145
147
|
"onUpdate:modelValue": e[6] || (e[6] = (t) => n(`flows.${l.flow.type}.password`, t))
|
|
146
148
|
}), {
|
|
147
149
|
default: o(() => e[16] || (e[16] = [
|
|
148
|
-
|
|
150
|
+
u(" Password ")
|
|
149
151
|
])),
|
|
150
152
|
_: 1
|
|
151
153
|
}, 16, ["modelValue"])
|
|
152
154
|
]),
|
|
153
155
|
_: 1
|
|
154
156
|
})
|
|
155
|
-
], 64)) :
|
|
156
|
-
a(r(
|
|
157
|
+
], 64)) : w("", !0),
|
|
158
|
+
a(r(f), null, {
|
|
157
159
|
default: o(() => [
|
|
158
|
-
a(
|
|
160
|
+
a(p, m(i, {
|
|
159
161
|
modelValue: l.flow["x-scalar-client-id"],
|
|
160
162
|
placeholder: "12345",
|
|
161
163
|
"onUpdate:modelValue": e[7] || (e[7] = (t) => n(`flows.${l.flow.type}.x-scalar-client-id`, t))
|
|
162
164
|
}), {
|
|
163
165
|
default: o(() => e[17] || (e[17] = [
|
|
164
|
-
|
|
166
|
+
u(" Client ID ")
|
|
165
167
|
])),
|
|
166
168
|
_: 1
|
|
167
169
|
}, 16, ["modelValue"])
|
|
168
170
|
]),
|
|
169
171
|
_: 1
|
|
170
172
|
}),
|
|
171
|
-
"clientSecret" in l.flow ? (
|
|
173
|
+
"clientSecret" in l.flow ? (d(), k(r(f), { key: 2 }, {
|
|
172
174
|
default: o(() => [
|
|
173
|
-
a(
|
|
175
|
+
a(p, m(i, {
|
|
174
176
|
modelValue: l.flow.clientSecret,
|
|
175
177
|
placeholder: "XYZ123",
|
|
176
178
|
type: "password",
|
|
177
179
|
"onUpdate:modelValue": e[8] || (e[8] = (t) => n(`flows.${l.flow.type}.clientSecret`, t))
|
|
178
180
|
}), {
|
|
179
181
|
default: o(() => e[18] || (e[18] = [
|
|
180
|
-
|
|
182
|
+
u(" Client Secret ")
|
|
181
183
|
])),
|
|
182
184
|
_: 1
|
|
183
185
|
}, 16, ["modelValue"])
|
|
184
186
|
]),
|
|
185
187
|
_: 1
|
|
186
|
-
})) :
|
|
187
|
-
"x-usePkce" in l.flow ? (
|
|
188
|
+
})) : w("", !0),
|
|
189
|
+
"x-usePkce" in l.flow ? (d(), k(r(f), { key: 3 }, {
|
|
188
190
|
default: o(() => [
|
|
189
|
-
a(
|
|
191
|
+
a(p, m(i, {
|
|
190
192
|
enum: r(P),
|
|
191
193
|
modelValue: l.flow["x-usePkce"],
|
|
192
194
|
readOnly: "",
|
|
@@ -196,38 +198,38 @@ const I = { class: "border-t-1/2 flex h-8 items-center justify-end gap-2" }, A =
|
|
|
196
198
|
))
|
|
197
199
|
}), {
|
|
198
200
|
default: o(() => e[19] || (e[19] = [
|
|
199
|
-
|
|
201
|
+
u(" Use PKCE ")
|
|
200
202
|
])),
|
|
201
203
|
_: 1
|
|
202
204
|
}, 16, ["enum", "modelValue"])
|
|
203
205
|
]),
|
|
204
206
|
_: 1
|
|
205
|
-
})) :
|
|
206
|
-
Object.keys(l.flow.scopes ?? {}).length ? (
|
|
207
|
+
})) : w("", !0),
|
|
208
|
+
Object.keys(l.flow.scopes ?? {}).length ? (d(), k(r(f), { key: 4 }, {
|
|
207
209
|
default: o(() => [
|
|
208
|
-
a(
|
|
210
|
+
a(R, {
|
|
209
211
|
flow: l.flow,
|
|
210
212
|
updateScheme: n
|
|
211
213
|
}, null, 8, ["flow"])
|
|
212
214
|
]),
|
|
213
215
|
_: 1
|
|
214
|
-
})) :
|
|
216
|
+
})) : w("", !0)
|
|
215
217
|
], 64)),
|
|
216
|
-
l.flow.token ?
|
|
218
|
+
l.flow.token ? w("", !0) : (d(), k(r(f), {
|
|
217
219
|
key: 2,
|
|
218
220
|
class: "min-w-full"
|
|
219
221
|
}, {
|
|
220
222
|
default: o(() => [
|
|
221
|
-
$("div",
|
|
223
|
+
$("div", N, [
|
|
222
224
|
a(r(b), {
|
|
223
225
|
class: "mr-0.75 p-0 px-2 py-0.5",
|
|
224
226
|
loading: r(y),
|
|
225
227
|
size: "sm",
|
|
226
228
|
variant: "outlined",
|
|
227
|
-
onClick:
|
|
229
|
+
onClick: S
|
|
228
230
|
}, {
|
|
229
231
|
default: o(() => e[20] || (e[20] = [
|
|
230
|
-
|
|
232
|
+
u(" Authorize ")
|
|
231
233
|
])),
|
|
232
234
|
_: 1
|
|
233
235
|
}, 8, ["loading"])
|
|
@@ -239,5 +241,5 @@ const I = { class: "border-t-1/2 flex h-8 items-center justify-end gap-2" }, A =
|
|
|
239
241
|
}
|
|
240
242
|
});
|
|
241
243
|
export {
|
|
242
|
-
|
|
244
|
+
Y as default
|
|
243
245
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAQjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;
|
|
1
|
+
{"version":3,"file":"OAuthScopesInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAQjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAC;;AAqSF,wBAOG"}
|