@scalar/api-reference 1.36.0 → 1.36.1
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 +16 -0
- package/dist/browser/standalone.js +14762 -14744
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +2 -0
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue2.js +52 -41
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +9 -8
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
- package/dist/components/Content/Models/ModernLayout.vue2.js +46 -42
- package/dist/components/Content/Schema/Schema.vue.d.ts +3 -4
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +72 -75
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +4 -5
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +46 -49
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +2 -7
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +29 -40
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -5
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +72 -76
- package/dist/components/Content/Schema/types.d.ts +17 -0
- package/dist/components/Content/Schema/types.d.ts.map +1 -0
- package/dist/features/Operation/components/Header.vue.d.ts +2 -0
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Header.vue.js +15 -10
- package/dist/features/Operation/components/Headers.vue.d.ts +2 -0
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.js +1 -1
- package/dist/features/Operation/components/Headers.vue2.js +23 -21
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +55 -48
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +74 -61
- package/dist/features/api-client-modal/useApiClient.d.ts +20 -20
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/helpers/convert-security-scheme.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +5 -6
- package/package.json +10 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa09c486"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,114 +1,127 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import { getResolvedRef as
|
|
4
|
-
import { isTypeObject as
|
|
5
|
-
import { sortPropertyNames as O, reduceNamesToObject as
|
|
6
|
-
import { useConfig as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as B, computed as p, ref as P, createElementBlock as i, createCommentVNode as l, openBlock as d, createElementVNode as q, createVNode as a, renderSlot as f, unref as r } from "vue";
|
|
2
|
+
import { ScalarMarkdown as R } from "@scalar/components";
|
|
3
|
+
import { getResolvedRef as S } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
|
+
import { isTypeObject as k } from "../../../components/Content/Schema/helpers/is-type-object.js";
|
|
5
|
+
import { sortPropertyNames as O, reduceNamesToObject as v } from "../../../components/Content/Schema/helpers/sort-property-names.js";
|
|
6
|
+
import { useConfig as _ } from "../../../hooks/useConfig.js";
|
|
7
|
+
import F from "./ContentTypeSelect.vue.js";
|
|
8
|
+
import y from "../../../components/Content/Schema/Schema.vue.js";
|
|
9
|
+
const V = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "request-body"
|
|
12
|
-
},
|
|
12
|
+
}, N = { class: "request-body-header" }, g = { class: "request-body-title" }, C = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "request-body-required"
|
|
15
|
-
},
|
|
15
|
+
}, E = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "request-body-description"
|
|
18
|
-
},
|
|
18
|
+
}, T = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "request-body-schema"
|
|
21
|
-
},
|
|
21
|
+
}, j = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "request-body-schema"
|
|
24
|
-
},
|
|
24
|
+
}, b = 12, z = /* @__PURE__ */ B({
|
|
25
25
|
__name: "RequestBody",
|
|
26
26
|
props: {
|
|
27
27
|
breadcrumb: {},
|
|
28
28
|
requestBody: {}
|
|
29
29
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
() => Object.keys(
|
|
33
|
-
),
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
() =>
|
|
37
|
-
),
|
|
38
|
-
if (!
|
|
30
|
+
setup(c) {
|
|
31
|
+
const o = _(), h = p(
|
|
32
|
+
() => Object.keys(c.requestBody?.content ?? {})
|
|
33
|
+
), u = P("application/json");
|
|
34
|
+
c.requestBody?.content && h.value.length > 0 && (u.value = h.value[0]);
|
|
35
|
+
const t = p(
|
|
36
|
+
() => S(c.requestBody?.content?.[u.value]?.schema)
|
|
37
|
+
), m = p(() => {
|
|
38
|
+
if (!t.value || !k(t.value))
|
|
39
39
|
return null;
|
|
40
40
|
const e = O(
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
t.value,
|
|
42
|
+
t.value.discriminator,
|
|
43
43
|
{
|
|
44
44
|
hideReadOnly: !0,
|
|
45
|
-
orderSchemaPropertiesBy:
|
|
46
|
-
orderRequiredPropertiesFirst:
|
|
45
|
+
orderSchemaPropertiesBy: o.value.orderSchemaPropertiesBy,
|
|
46
|
+
orderRequiredPropertiesFirst: o.value.orderRequiredPropertiesFirst
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
|
-
if (e.length <=
|
|
49
|
+
if (e.length <= b)
|
|
50
50
|
return null;
|
|
51
|
-
const { properties:
|
|
52
|
-
return
|
|
51
|
+
const { properties: s, ...n } = t.value;
|
|
52
|
+
return s ? {
|
|
53
53
|
visibleProperties: {
|
|
54
|
-
...
|
|
55
|
-
properties:
|
|
56
|
-
e.slice(0,
|
|
57
|
-
|
|
54
|
+
...n,
|
|
55
|
+
properties: v(
|
|
56
|
+
e.slice(0, b),
|
|
57
|
+
s
|
|
58
58
|
)
|
|
59
59
|
},
|
|
60
60
|
collapsedProperties: {
|
|
61
|
-
...
|
|
62
|
-
properties:
|
|
63
|
-
e.slice(
|
|
64
|
-
|
|
61
|
+
...n,
|
|
62
|
+
properties: v(
|
|
63
|
+
e.slice(b),
|
|
64
|
+
s
|
|
65
65
|
)
|
|
66
66
|
}
|
|
67
67
|
} : null;
|
|
68
68
|
});
|
|
69
|
-
return (e,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
e.requestBody.required ? (
|
|
69
|
+
return (e, s) => e.requestBody ? (d(), i("div", V, [
|
|
70
|
+
q("div", N, [
|
|
71
|
+
q("span", g, [
|
|
72
|
+
f(e.$slots, "title", {}, void 0, !0),
|
|
73
|
+
e.requestBody.required ? (d(), i("div", C, " required ")) : l("", !0)
|
|
74
74
|
]),
|
|
75
|
-
a(
|
|
76
|
-
modelValue:
|
|
77
|
-
"onUpdate:modelValue":
|
|
75
|
+
a(F, {
|
|
76
|
+
modelValue: u.value,
|
|
77
|
+
"onUpdate:modelValue": s[0] || (s[0] = (n) => u.value = n),
|
|
78
78
|
content: e.requestBody.content
|
|
79
79
|
}, null, 8, ["modelValue", "content"]),
|
|
80
|
-
e.requestBody.description ? (
|
|
81
|
-
a(
|
|
80
|
+
e.requestBody.description ? (d(), i("div", E, [
|
|
81
|
+
a(r(R), {
|
|
82
82
|
value: e.requestBody.description
|
|
83
83
|
}, null, 8, ["value"])
|
|
84
84
|
])) : l("", !0)
|
|
85
85
|
]),
|
|
86
|
-
|
|
87
|
-
a(
|
|
86
|
+
m.value ? (d(), i("div", T, [
|
|
87
|
+
a(r(y), {
|
|
88
88
|
breadcrumb: e.breadcrumb,
|
|
89
89
|
compact: "",
|
|
90
|
-
hideReadOnly: !0,
|
|
91
90
|
name: "Request Body",
|
|
92
91
|
noncollapsible: "",
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
options: {
|
|
93
|
+
hideReadOnly: !0,
|
|
94
|
+
orderRequiredPropertiesFirst: r(o).orderRequiredPropertiesFirst,
|
|
95
|
+
orderSchemaPropertiesBy: r(o).orderSchemaPropertiesBy
|
|
96
|
+
},
|
|
97
|
+
schema: m.value.visibleProperties
|
|
98
|
+
}, null, 8, ["breadcrumb", "options", "schema"]),
|
|
99
|
+
a(r(y), {
|
|
96
100
|
additionalProperties: "",
|
|
97
101
|
breadcrumb: e.breadcrumb,
|
|
98
102
|
compact: "",
|
|
99
|
-
hideReadOnly: !0,
|
|
100
103
|
name: "Request Body",
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
options: {
|
|
105
|
+
hideReadOnly: !0,
|
|
106
|
+
orderRequiredPropertiesFirst: r(o).orderRequiredPropertiesFirst,
|
|
107
|
+
orderSchemaPropertiesBy: r(o).orderSchemaPropertiesBy
|
|
108
|
+
},
|
|
109
|
+
schema: m.value.collapsedProperties
|
|
110
|
+
}, null, 8, ["breadcrumb", "options", "schema"])
|
|
111
|
+
])) : t.value ? (d(), i("div", j, [
|
|
112
|
+
a(r(y), {
|
|
105
113
|
breadcrumb: e.breadcrumb,
|
|
106
114
|
compact: "",
|
|
107
115
|
hideReadOnly: !0,
|
|
108
116
|
name: "Request Body",
|
|
109
117
|
noncollapsible: "",
|
|
110
|
-
|
|
111
|
-
|
|
118
|
+
options: {
|
|
119
|
+
hideReadOnly: !0,
|
|
120
|
+
orderRequiredPropertiesFirst: r(o).orderRequiredPropertiesFirst,
|
|
121
|
+
orderSchemaPropertiesBy: r(o).orderSchemaPropertiesBy
|
|
122
|
+
},
|
|
123
|
+
schema: t.value
|
|
124
|
+
}, null, 8, ["breadcrumb", "options", "schema"])
|
|
112
125
|
])) : l("", !0)
|
|
113
126
|
])) : l("", !0);
|
|
114
127
|
}
|
|
@@ -144,7 +144,7 @@ declare const client: import("vue").Ref<{
|
|
|
144
144
|
} | undefined;
|
|
145
145
|
};
|
|
146
146
|
description?: string | undefined;
|
|
147
|
-
"x-default-scopes"?: string
|
|
147
|
+
"x-default-scopes"?: string[] | undefined;
|
|
148
148
|
}>;
|
|
149
149
|
requests: Record<string, {
|
|
150
150
|
uid: string & import("zod").BRAND<"operation">;
|
|
@@ -2762,7 +2762,7 @@ declare const client: import("vue").Ref<{
|
|
|
2762
2762
|
} | undefined;
|
|
2763
2763
|
};
|
|
2764
2764
|
description?: string | undefined;
|
|
2765
|
-
"x-default-scopes"?: string
|
|
2765
|
+
"x-default-scopes"?: string[] | undefined;
|
|
2766
2766
|
}) => void;
|
|
2767
2767
|
add: (payload: import("@scalar/types/entities").SecuritySchemePayload, collectionUid: import("@scalar/oas-utils/entities/spec").Collection["uid"]) => {
|
|
2768
2768
|
type: "apiKey";
|
|
@@ -2855,7 +2855,7 @@ declare const client: import("vue").Ref<{
|
|
|
2855
2855
|
} | undefined;
|
|
2856
2856
|
};
|
|
2857
2857
|
description?: string | undefined;
|
|
2858
|
-
"x-default-scopes"?: string
|
|
2858
|
+
"x-default-scopes"?: string[] | undefined;
|
|
2859
2859
|
};
|
|
2860
2860
|
delete: (schemeUid: import("@scalar/types/entities").SecurityScheme["uid"]) => void;
|
|
2861
2861
|
set: (item: {
|
|
@@ -2949,7 +2949,7 @@ declare const client: import("vue").Ref<{
|
|
|
2949
2949
|
} | undefined;
|
|
2950
2950
|
};
|
|
2951
2951
|
description?: string | undefined;
|
|
2952
|
-
"x-default-scopes"?: string
|
|
2952
|
+
"x-default-scopes"?: string[] | undefined;
|
|
2953
2953
|
}) => void;
|
|
2954
2954
|
edit: <P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-security-query" | "flows.implicit.x-scalar-security-body" | "flows.implicit.x-tokenName" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | `flows.implicit.x-scalar-security-query.${string}` | `flows.implicit.x-scalar-security-body.${string}` | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.x-scalar-security-query" | "flows.password.x-scalar-security-body" | "flows.password.x-tokenName" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | `flows.password.x-scalar-security-query.${string}` | `flows.password.x-scalar-security-body.${string}` | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.x-scalar-credentials-location" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.x-scalar-security-query" | "flows.clientCredentials.x-scalar-security-body" | "flows.clientCredentials.x-tokenName" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.x-scalar-security-query.${string}` | `flows.clientCredentials.x-scalar-security-body.${string}` | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.x-scalar-credentials-location" | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-security-query" | "flows.authorizationCode.x-scalar-security-body" | "flows.authorizationCode.x-tokenName" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.x-scalar-security-query.${string}` | `flows.authorizationCode.x-scalar-security-body.${string}` | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.x-scalar-credentials-location" | "flows.authorizationCode.x-usePkce">(uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" ? {
|
|
2955
2955
|
type: "apiKey";
|
|
@@ -3090,7 +3090,7 @@ declare const client: import("vue").Ref<{
|
|
|
3090
3090
|
} | undefined;
|
|
3091
3091
|
};
|
|
3092
3092
|
description?: string | undefined;
|
|
3093
|
-
"x-default-scopes"?: string
|
|
3093
|
+
"x-default-scopes"?: string[] | undefined;
|
|
3094
3094
|
}[P] : P extends `${infer K}.${infer R_3}` ? K extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? R_3 extends import("@scalar/object-utils/nested").Path<{
|
|
3095
3095
|
type: "oauth2";
|
|
3096
3096
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -3158,7 +3158,7 @@ declare const client: import("vue").Ref<{
|
|
|
3158
3158
|
} | undefined;
|
|
3159
3159
|
};
|
|
3160
3160
|
description?: string | undefined;
|
|
3161
|
-
"x-default-scopes"?: string
|
|
3161
|
+
"x-default-scopes"?: string[] | undefined;
|
|
3162
3162
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
3163
3163
|
type: "oauth2";
|
|
3164
3164
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -3226,7 +3226,7 @@ declare const client: import("vue").Ref<{
|
|
|
3226
3226
|
} | undefined;
|
|
3227
3227
|
};
|
|
3228
3228
|
description?: string | undefined;
|
|
3229
|
-
"x-default-scopes"?: string
|
|
3229
|
+
"x-default-scopes"?: string[] | undefined;
|
|
3230
3230
|
}[K], R_3> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
3231
3231
|
untrackedEdit: <P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-security-query" | "flows.implicit.x-scalar-security-body" | "flows.implicit.x-tokenName" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | `flows.implicit.x-scalar-security-query.${string}` | `flows.implicit.x-scalar-security-body.${string}` | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.x-scalar-security-query" | "flows.password.x-scalar-security-body" | "flows.password.x-tokenName" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | `flows.password.x-scalar-security-query.${string}` | `flows.password.x-scalar-security-body.${string}` | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.x-scalar-credentials-location" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.x-scalar-security-query" | "flows.clientCredentials.x-scalar-security-body" | "flows.clientCredentials.x-tokenName" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.x-scalar-security-query.${string}` | `flows.clientCredentials.x-scalar-security-body.${string}` | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.x-scalar-credentials-location" | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-security-query" | "flows.authorizationCode.x-scalar-security-body" | "flows.authorizationCode.x-tokenName" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.x-scalar-security-query.${string}` | `flows.authorizationCode.x-scalar-security-body.${string}` | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.x-scalar-credentials-location" | "flows.authorizationCode.x-usePkce">(uid: string & import("zod").BRAND<"securityScheme">, path: P, value: (P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" ? {
|
|
3232
3232
|
type: "apiKey";
|
|
@@ -3367,7 +3367,7 @@ declare const client: import("vue").Ref<{
|
|
|
3367
3367
|
} | undefined;
|
|
3368
3368
|
};
|
|
3369
3369
|
description?: string | undefined;
|
|
3370
|
-
"x-default-scopes"?: string
|
|
3370
|
+
"x-default-scopes"?: string[] | undefined;
|
|
3371
3371
|
}[P] : P extends `${infer K}.${infer R_3}` ? K extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? R_3 extends import("@scalar/object-utils/nested").Path<{
|
|
3372
3372
|
type: "oauth2";
|
|
3373
3373
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -3435,7 +3435,7 @@ declare const client: import("vue").Ref<{
|
|
|
3435
3435
|
} | undefined;
|
|
3436
3436
|
};
|
|
3437
3437
|
description?: string | undefined;
|
|
3438
|
-
"x-default-scopes"?: string
|
|
3438
|
+
"x-default-scopes"?: string[] | undefined;
|
|
3439
3439
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
3440
3440
|
type: "oauth2";
|
|
3441
3441
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -3503,7 +3503,7 @@ declare const client: import("vue").Ref<{
|
|
|
3503
3503
|
} | undefined;
|
|
3504
3504
|
};
|
|
3505
3505
|
description?: string | undefined;
|
|
3506
|
-
"x-default-scopes"?: string
|
|
3506
|
+
"x-default-scopes"?: string[] | undefined;
|
|
3507
3507
|
}[K], R_3> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
3508
3508
|
undo: (uid: string & import("zod").BRAND<"securityScheme">) => void;
|
|
3509
3509
|
redo: (uid: string & import("zod").BRAND<"securityScheme">) => void;
|
|
@@ -4102,7 +4102,7 @@ declare const client: import("vue").Ref<{
|
|
|
4102
4102
|
} | undefined;
|
|
4103
4103
|
};
|
|
4104
4104
|
description?: string | undefined;
|
|
4105
|
-
"x-default-scopes"?: string
|
|
4105
|
+
"x-default-scopes"?: string[] | undefined;
|
|
4106
4106
|
}>;
|
|
4107
4107
|
requests: Record<string, {
|
|
4108
4108
|
uid: string & import("zod").BRAND<"operation">;
|
|
@@ -6720,7 +6720,7 @@ declare const client: import("vue").Ref<{
|
|
|
6720
6720
|
} | undefined;
|
|
6721
6721
|
};
|
|
6722
6722
|
description?: string | undefined;
|
|
6723
|
-
"x-default-scopes"?: string
|
|
6723
|
+
"x-default-scopes"?: string[] | undefined;
|
|
6724
6724
|
}) => void;
|
|
6725
6725
|
add: (payload: import("@scalar/types/entities").SecuritySchemePayload, collectionUid: import("@scalar/oas-utils/entities/spec").Collection["uid"]) => {
|
|
6726
6726
|
type: "apiKey";
|
|
@@ -6813,7 +6813,7 @@ declare const client: import("vue").Ref<{
|
|
|
6813
6813
|
} | undefined;
|
|
6814
6814
|
};
|
|
6815
6815
|
description?: string | undefined;
|
|
6816
|
-
"x-default-scopes"?: string
|
|
6816
|
+
"x-default-scopes"?: string[] | undefined;
|
|
6817
6817
|
};
|
|
6818
6818
|
delete: (schemeUid: import("@scalar/types/entities").SecurityScheme["uid"]) => void;
|
|
6819
6819
|
set: (item: {
|
|
@@ -6907,7 +6907,7 @@ declare const client: import("vue").Ref<{
|
|
|
6907
6907
|
} | undefined;
|
|
6908
6908
|
};
|
|
6909
6909
|
description?: string | undefined;
|
|
6910
|
-
"x-default-scopes"?: string
|
|
6910
|
+
"x-default-scopes"?: string[] | undefined;
|
|
6911
6911
|
}) => void;
|
|
6912
6912
|
edit: <P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-security-query" | "flows.implicit.x-scalar-security-body" | "flows.implicit.x-tokenName" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | `flows.implicit.x-scalar-security-query.${string}` | `flows.implicit.x-scalar-security-body.${string}` | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.x-scalar-security-query" | "flows.password.x-scalar-security-body" | "flows.password.x-tokenName" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | `flows.password.x-scalar-security-query.${string}` | `flows.password.x-scalar-security-body.${string}` | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.x-scalar-credentials-location" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.x-scalar-security-query" | "flows.clientCredentials.x-scalar-security-body" | "flows.clientCredentials.x-tokenName" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.x-scalar-security-query.${string}` | `flows.clientCredentials.x-scalar-security-body.${string}` | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.x-scalar-credentials-location" | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-security-query" | "flows.authorizationCode.x-scalar-security-body" | "flows.authorizationCode.x-tokenName" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.x-scalar-security-query.${string}` | `flows.authorizationCode.x-scalar-security-body.${string}` | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.x-scalar-credentials-location" | "flows.authorizationCode.x-usePkce">(uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" ? {
|
|
6913
6913
|
type: "apiKey";
|
|
@@ -7048,7 +7048,7 @@ declare const client: import("vue").Ref<{
|
|
|
7048
7048
|
} | undefined;
|
|
7049
7049
|
};
|
|
7050
7050
|
description?: string | undefined;
|
|
7051
|
-
"x-default-scopes"?: string
|
|
7051
|
+
"x-default-scopes"?: string[] | undefined;
|
|
7052
7052
|
}[P] : P extends `${infer K}.${infer R_3}` ? K extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? R_3 extends import("@scalar/object-utils/nested").Path<{
|
|
7053
7053
|
type: "oauth2";
|
|
7054
7054
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -7116,7 +7116,7 @@ declare const client: import("vue").Ref<{
|
|
|
7116
7116
|
} | undefined;
|
|
7117
7117
|
};
|
|
7118
7118
|
description?: string | undefined;
|
|
7119
|
-
"x-default-scopes"?: string
|
|
7119
|
+
"x-default-scopes"?: string[] | undefined;
|
|
7120
7120
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
7121
7121
|
type: "oauth2";
|
|
7122
7122
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -7184,7 +7184,7 @@ declare const client: import("vue").Ref<{
|
|
|
7184
7184
|
} | undefined;
|
|
7185
7185
|
};
|
|
7186
7186
|
description?: string | undefined;
|
|
7187
|
-
"x-default-scopes"?: string
|
|
7187
|
+
"x-default-scopes"?: string[] | undefined;
|
|
7188
7188
|
}[K], R_3> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
7189
7189
|
untrackedEdit: <P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "x-default-scopes" | "flows" | "password" | "username" | "token" | `x-default-scopes.${number}` | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.x-scalar-client-id" | "flows.implicit.authorizationUrl" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-security-query" | "flows.implicit.x-scalar-security-body" | "flows.implicit.x-tokenName" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | `flows.implicit.x-scalar-security-query.${string}` | `flows.implicit.x-scalar-security-body.${string}` | "flows.password.type" | "flows.password.password" | "flows.password.username" | "flows.password.token" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | "flows.password.x-scalar-client-id" | "flows.password.x-scalar-security-query" | "flows.password.x-scalar-security-body" | "flows.password.x-tokenName" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | `flows.password.x-scalar-security-query.${string}` | `flows.password.x-scalar-security-body.${string}` | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.x-scalar-credentials-location" | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.x-scalar-security-query" | "flows.clientCredentials.x-scalar-security-body" | "flows.clientCredentials.x-tokenName" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | `flows.clientCredentials.x-scalar-security-query.${string}` | `flows.clientCredentials.x-scalar-security-body.${string}` | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.x-scalar-credentials-location" | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.authorizationUrl" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-security-query" | "flows.authorizationCode.x-scalar-security-body" | "flows.authorizationCode.x-tokenName" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}` | `flows.authorizationCode.x-scalar-security-query.${string}` | `flows.authorizationCode.x-scalar-security-body.${string}` | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.x-scalar-credentials-location" | "flows.authorizationCode.x-usePkce">(uid: string & import("zod").BRAND<"securityScheme">, path: P, value: (P extends "value" | "description" | "type" | "uid" | "name" | "in" | "nameKey" ? {
|
|
7190
7190
|
type: "apiKey";
|
|
@@ -7325,7 +7325,7 @@ declare const client: import("vue").Ref<{
|
|
|
7325
7325
|
} | undefined;
|
|
7326
7326
|
};
|
|
7327
7327
|
description?: string | undefined;
|
|
7328
|
-
"x-default-scopes"?: string
|
|
7328
|
+
"x-default-scopes"?: string[] | undefined;
|
|
7329
7329
|
}[P] : P extends `${infer K}.${infer R_3}` ? K extends "description" | "type" | "uid" | "nameKey" | "x-default-scopes" | "flows" ? R_3 extends import("@scalar/object-utils/nested").Path<{
|
|
7330
7330
|
type: "oauth2";
|
|
7331
7331
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -7393,7 +7393,7 @@ declare const client: import("vue").Ref<{
|
|
|
7393
7393
|
} | undefined;
|
|
7394
7394
|
};
|
|
7395
7395
|
description?: string | undefined;
|
|
7396
|
-
"x-default-scopes"?: string
|
|
7396
|
+
"x-default-scopes"?: string[] | undefined;
|
|
7397
7397
|
}[K]> ? import("@scalar/object-utils/nested").PathValue<{
|
|
7398
7398
|
type: "oauth2";
|
|
7399
7399
|
uid: string & import("zod").BRAND<"securityScheme">;
|
|
@@ -7461,7 +7461,7 @@ declare const client: import("vue").Ref<{
|
|
|
7461
7461
|
} | undefined;
|
|
7462
7462
|
};
|
|
7463
7463
|
description?: string | undefined;
|
|
7464
|
-
"x-default-scopes"?: string
|
|
7464
|
+
"x-default-scopes"?: string[] | undefined;
|
|
7465
7465
|
}[K], R_3> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
|
|
7466
7466
|
undo: (uid: string & import("zod").BRAND<"securityScheme">) => void;
|
|
7467
7467
|
redo: (uid: string & import("zod").BRAND<"securityScheme">) => void;
|