@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
package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AuthStore } from '@scalar/workspace-store/entities/auth';
|
|
2
|
+
import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
+
import type { SecuritySchemeObjectSecret } from './secret-types';
|
|
4
|
+
/** Extract the secrets from the config and the auth store */
|
|
5
|
+
export declare const extractSecuritySchemeSecrets: (scheme: SecuritySchemeObject, authStore: AuthStore, name: string, documentSlug: string) => SecuritySchemeObjectSecret;
|
|
6
|
+
//# sourceMappingURL=extract-security-scheme-secrets.d.ts.map
|
package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-security-scheme-secrets.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,uCAAuC,CAAA;AAOnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAExG,OAAO,KAAK,EAUV,0BAA0B,EAC3B,MAAM,gBAAgB,CAAA;AA+CvB,6DAA6D;AAC7D,eAAO,MAAM,4BAA4B,GAEvC,QAAQ,oBAAoB,EAC5B,WAAW,SAAS,EACpB,MAAM,MAAM,EACZ,cAAc,MAAM,KACnB,0BA0GF,CAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { objectEntries as d } from "@scalar/helpers/object/object-entries";
|
|
2
|
+
const o = ({
|
|
3
|
+
schemeName: e,
|
|
4
|
+
authStore: s,
|
|
5
|
+
documentSlug: c,
|
|
6
|
+
type: a
|
|
7
|
+
}) => {
|
|
8
|
+
const r = s.getAuthSecrets(c, e);
|
|
9
|
+
if (r?.type === a)
|
|
10
|
+
return r;
|
|
11
|
+
}, u = {
|
|
12
|
+
clientSecret: "x-scalar-secret-client-secret",
|
|
13
|
+
password: "x-scalar-secret-password",
|
|
14
|
+
token: "x-scalar-secret-token",
|
|
15
|
+
username: "x-scalar-secret-username",
|
|
16
|
+
value: "x-scalar-secret-token",
|
|
17
|
+
"x-scalar-client-id": "x-scalar-secret-client-id",
|
|
18
|
+
"x-scalar-redirect-uri": "x-scalar-secret-redirect-uri"
|
|
19
|
+
}, l = (e) => d(u).reduce((s, [c, a]) => {
|
|
20
|
+
const r = e[c];
|
|
21
|
+
return r !== void 0 && typeof r == "string" && (s[a] = r), s;
|
|
22
|
+
}, {}), f = (e, s, c, a) => {
|
|
23
|
+
if (e.type === "apiKey") {
|
|
24
|
+
const r = o({ schemeName: c, type: "apiKey", authStore: s, documentSlug: a });
|
|
25
|
+
return {
|
|
26
|
+
...e,
|
|
27
|
+
"x-scalar-secret-token": "",
|
|
28
|
+
...l(e),
|
|
29
|
+
...r
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
if (e.type === "http") {
|
|
33
|
+
const r = o({ schemeName: c, type: "http", authStore: s, documentSlug: a });
|
|
34
|
+
return {
|
|
35
|
+
...e,
|
|
36
|
+
"x-scalar-secret-password": "",
|
|
37
|
+
"x-scalar-secret-token": "",
|
|
38
|
+
"x-scalar-secret-username": "",
|
|
39
|
+
...l(e),
|
|
40
|
+
...r
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (e.type === "oauth2") {
|
|
44
|
+
const r = o({ schemeName: c, type: "oauth2", authStore: s, documentSlug: a }), x = /* @__PURE__ */ new Set();
|
|
45
|
+
return {
|
|
46
|
+
...e,
|
|
47
|
+
flows: d(e?.flows ?? {}).reduce((n, [i, t]) => (t && ("selectedScopes" in t && Array.isArray(t.selectedScopes) && t.selectedScopes?.forEach((p) => x.add(p)), i === "implicit" && (n.implicit = {
|
|
48
|
+
...t,
|
|
49
|
+
"x-scalar-secret-client-id": "",
|
|
50
|
+
"x-scalar-secret-redirect-uri": "",
|
|
51
|
+
"x-scalar-secret-token": "",
|
|
52
|
+
...l(t),
|
|
53
|
+
...r?.implicit
|
|
54
|
+
}), i === "password" && (n[i] = {
|
|
55
|
+
...t,
|
|
56
|
+
"x-scalar-secret-client-id": "",
|
|
57
|
+
"x-scalar-secret-client-secret": "",
|
|
58
|
+
"x-scalar-secret-username": "",
|
|
59
|
+
"x-scalar-secret-password": "",
|
|
60
|
+
"x-scalar-secret-token": "",
|
|
61
|
+
...l(t),
|
|
62
|
+
...r?.password
|
|
63
|
+
}), i === "clientCredentials" && (n[i] = {
|
|
64
|
+
...t,
|
|
65
|
+
"x-scalar-secret-client-id": "",
|
|
66
|
+
"x-scalar-secret-client-secret": "",
|
|
67
|
+
"x-scalar-secret-token": "",
|
|
68
|
+
...l(t),
|
|
69
|
+
...r?.clientCredentials
|
|
70
|
+
}), i === "authorizationCode" && (n[i] = {
|
|
71
|
+
...t,
|
|
72
|
+
"x-scalar-secret-client-id": "",
|
|
73
|
+
"x-scalar-secret-client-secret": "",
|
|
74
|
+
"x-scalar-secret-redirect-uri": "",
|
|
75
|
+
"x-scalar-secret-token": "",
|
|
76
|
+
...r?.authorizationCode
|
|
77
|
+
})), n), {}),
|
|
78
|
+
"x-default-scopes": Array.from(x)
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
return e.type === "openIdConnect", e;
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
f as extractSecuritySchemeSecrets
|
|
85
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AuthenticationConfiguration } from '@scalar/types/api-reference';
|
|
2
|
+
import type { AuthStore } from '@scalar/workspace-store/entities/auth';
|
|
3
|
+
import type { ComponentsObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
+
import type { SecuritySchemeObjectSecret } from './secret-types';
|
|
5
|
+
/** Document security merged with the config security schemes */
|
|
6
|
+
export type MergedSecuritySchemes = Record<string, SecuritySchemeObjectSecret>;
|
|
7
|
+
/** Merge the authentication config with the document security schemes + the auth store secrets */
|
|
8
|
+
export declare const mergeSecurity: (documentSecuritySchemes: ComponentsObject["securitySchemes"], configSecuritySchemes: AuthenticationConfiguration["securitySchemes"], authStore: AuthStore, documentSlug: string) => MergedSecuritySchemes;
|
|
9
|
+
//# sourceMappingURL=merge-security.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-security.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/merge-security.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AAItE,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAA;AAEhE,gEAAgE;AAChE,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;AAE9E,kGAAkG;AAClG,eAAO,MAAM,aAAa,GACxB,yBAAyB,gBAAgB,CAAC,iBAAiB,CAAM,EACjE,uBAAuB,2BAA2B,CAAC,iBAAiB,CAAM,EAC1E,WAAW,SAAS,EACpB,cAAc,MAAM,KACnB,qBAoBF,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { objectEntries as o } from "@scalar/helpers/object/object-entries";
|
|
2
|
+
import { getResolvedRef as p } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { mergeObjects as S } from "@scalar/workspace-store/helpers/merge-object";
|
|
4
|
+
import { unpackProxyObject as d } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
5
|
+
import { extractSecuritySchemeSecrets as f } from "./extract-security-scheme-secrets.js";
|
|
6
|
+
const l = (m = {}, c = {}, u, s) => {
|
|
7
|
+
const i = o(m).reduce(
|
|
8
|
+
(e, [r, t]) => (e[r] = structuredClone(d(p(t))), e),
|
|
9
|
+
{}
|
|
10
|
+
), n = S(i, c) ?? {};
|
|
11
|
+
return o(n).reduce((e, [r, t]) => (e[r] = f(t, u, r, s), e), {});
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
l as mergeSecurity
|
|
15
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
2
|
import type { ErrorResponse } from '../../../../libs/errors.js';
|
|
3
|
+
import type { OAuthFlowsObjectSecret } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/secret-types';
|
|
3
4
|
/**
|
|
4
5
|
* Authorize oauth2 flow
|
|
5
6
|
*
|
|
6
7
|
* @returns the accessToken
|
|
7
8
|
*/
|
|
8
|
-
export declare const authorizeOauth2: (flows:
|
|
9
|
+
export declare const authorizeOauth2: (flows: OAuthFlowsObjectSecret, type: keyof OAuthFlowsObjectSecret, selectedScopes: string[],
|
|
9
10
|
/** We use the active server to set a base for relative redirect uris */
|
|
10
11
|
activeServer: ServerObject | null,
|
|
11
12
|
/** If we want to use the proxy */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6DAA6D,CAAA;AA8DzG;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,sBAAsB,EAC7B,MAAM,MAAM,sBAAsB,EAClC,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,IAAI;AACjC,kCAAkC;AAClC,UAAU,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+K/B,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { XScalarSecretClientId, XScalarSecretClientSecret, XScalarSecretHTTP, XScalarSecretRedirectUri, XScalarSecretToken } from '@scalar/workspace-store/schemas/extensions/security';
|
|
2
|
+
import type { OAuthFlowAuthorizationCode, OAuthFlowClientCredentials, OAuthFlowImplicit, OAuthFlowPassword } from '@scalar/workspace-store/schemas/v3.1/strict/oauth-flow';
|
|
3
|
+
import type { ApiKeyObject, HttpObject, OAuth2Object, OpenIdConnectObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
|
+
type OAuthFlowCommonSecret = XScalarSecretClientId & XScalarSecretToken;
|
|
5
|
+
export type OAuthFlowImplicitSecret = OAuthFlowImplicit & OAuthFlowCommonSecret & XScalarSecretRedirectUri;
|
|
6
|
+
export type OAuthFlowPasswordSecret = OAuthFlowPassword & OAuthFlowCommonSecret & XScalarSecretHTTP & XScalarSecretClientSecret;
|
|
7
|
+
export type OAuthFlowClientCredentialsSecret = OAuthFlowClientCredentials & OAuthFlowCommonSecret & XScalarSecretClientSecret;
|
|
8
|
+
export type OAuthFlowAuthorizationCodeSecret = OAuthFlowAuthorizationCode & OAuthFlowCommonSecret & XScalarSecretClientSecret & XScalarSecretRedirectUri;
|
|
9
|
+
export type OAuthFlowsObjectSecret = {
|
|
10
|
+
implicit?: OAuthFlowImplicitSecret;
|
|
11
|
+
password?: OAuthFlowPasswordSecret;
|
|
12
|
+
clientCredentials?: OAuthFlowClientCredentialsSecret;
|
|
13
|
+
authorizationCode?: OAuthFlowAuthorizationCodeSecret;
|
|
14
|
+
};
|
|
15
|
+
export type ApiKeyObjectSecret = ApiKeyObject & XScalarSecretToken;
|
|
16
|
+
export type HttpObjectSecret = HttpObject & XScalarSecretHTTP & XScalarSecretToken;
|
|
17
|
+
export type OAuth2ObjectSecret = Omit<OAuth2Object, 'flows'> & {
|
|
18
|
+
flows: OAuthFlowsObjectSecret;
|
|
19
|
+
};
|
|
20
|
+
export type OpenIdConnectObjectSecret = OpenIdConnectObject;
|
|
21
|
+
export type SecuritySchemeObjectSecret = ApiKeyObjectSecret | HttpObjectSecret | OAuth2ObjectSecret | OpenIdConnectObjectSecret;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=secret-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-types.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/secret-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,qDAAqD,CAAA;AAC5D,OAAO,KAAK,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,wDAAwD,CAAA;AAC/D,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,mBAAmB,EACpB,MAAM,8DAA8D,CAAA;AAErE,KAAK,qBAAqB,GAAG,qBAAqB,GAAG,kBAAkB,CAAA;AAEvE,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,wBAAwB,CAAA;AAE1G,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GACrD,qBAAqB,GACrB,iBAAiB,GACjB,yBAAyB,CAAA;AAE3B,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,GACvE,qBAAqB,GACrB,yBAAyB,CAAA;AAE3B,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,GACvE,qBAAqB,GACrB,yBAAyB,GACzB,wBAAwB,CAAA;AAE1B,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;IAClC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;IAClC,iBAAiB,CAAC,EAAE,gCAAgC,CAAA;IACpD,iBAAiB,CAAC,EAAE,gCAAgC,CAAA;CACrD,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,CAAA;AAClE,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,iBAAiB,GAAG,kBAAkB,CAAA;AAClF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,EAAE,sBAAsB,CAAA;CAAE,CAAA;AAChG,MAAM,MAAM,yBAAyB,GAAG,mBAAmB,CAAA;AAE3D,MAAM,MAAM,0BAA0B,GAClC,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,yBAAyB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as AuthSelector } from './components/AuthSelector.vue.js';
|
|
2
|
-
export { convertSecuritySchemeSecrets } from './helpers/convert-security-scheme-secrets.js';
|
|
3
2
|
export { isAuthOptional } from './helpers/is-auth-optional.js';
|
|
4
|
-
export { type MergedSecuritySchemes,
|
|
3
|
+
export { type MergedSecuritySchemes, mergeSecurity } from './helpers/merge-security.js';
|
|
4
|
+
export type { SecuritySchemeObjectSecret } from './helpers/secret-types';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,KAAK,qBAAqB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACpF,YAAY,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { default as t } from "./components/AuthSelector.vue.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { mergeAuthConfig as u } from "./helpers/merge-auth-config.js";
|
|
2
|
+
import { isAuthOptional as f } from "./helpers/is-auth-optional.js";
|
|
3
|
+
import { mergeSecurity as p } from "./helpers/merge-security.js";
|
|
5
4
|
export {
|
|
6
5
|
t as AuthSelector,
|
|
7
|
-
f as
|
|
8
|
-
|
|
9
|
-
u as mergeAuthConfig
|
|
6
|
+
f as isAuthOptional,
|
|
7
|
+
p as mergeSecurity
|
|
10
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AA2QA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAA;AAC7F,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAA;AAM3C;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;4BACH,MAAM,mBAAmB;;;;YAHzC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;cAC5B,YAAY,EAAE;iBACX,MAAM,QAAQ;4BACH,MAAM,mBAAmB;;IAUjD;;;OAGG;4BACqB,EAAE;;AAnB5B,wBAkZC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as W, computed as d, createBlock as p, openBlock as i, unref as t, withCtx as u, createElementVNode as m, createVNode as n, createElementBlock as v, renderSlot as T, normalizeProps as h, guardReactiveProps as y } from "vue";
|
|
2
2
|
import { useModal as g, ScalarTeleportRoot as C } from "@scalar/components";
|
|
3
|
-
import { getThemeStyles as
|
|
4
|
-
import { ScalarToasts as
|
|
3
|
+
import { getThemeStyles as x } from "@scalar/themes";
|
|
4
|
+
import { ScalarToasts as B } from "@scalar/use-toasts";
|
|
5
5
|
import { extensions as E } from "@scalar/workspace-store/schemas/extensions";
|
|
6
|
-
import { RouterView as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useDocumentWatcher as
|
|
10
|
-
import
|
|
11
|
-
import { useColorMode as
|
|
12
|
-
import { useGlobalHotKeys as
|
|
6
|
+
import { RouterView as M } from "vue-router";
|
|
7
|
+
import O from "./components/CreateWorkspaceModal.vue.js";
|
|
8
|
+
import _ from "./components/SplashScreen.vue.js";
|
|
9
|
+
import { useDocumentWatcher as A } from "./hooks/use-document-watcher.js";
|
|
10
|
+
import U from "../command-palette/TheCommandPalette.vue.js";
|
|
11
|
+
import { useColorMode as D } from "../../hooks/use-color-mode.js";
|
|
12
|
+
import { useGlobalHotKeys as I } from "../../hooks/use-global-hot-keys.js";
|
|
13
13
|
import L from "./components/AppSidebar.vue.js";
|
|
14
14
|
import N from "./components/DesktopTabs.vue.js";
|
|
15
15
|
import $ from "./components/WebTopNav.vue.js";
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
import { mergeSecurity as P } from "../../blocks/scalar-auth-selector-block/helpers/merge-security.js";
|
|
17
|
+
import H from "../import-listener/ImportListener.vue.js";
|
|
18
|
+
const F = ["innerHTML"], V = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "flex flex-1 flex-col"
|
|
21
|
+
}, R = { class: "flex min-h-0 flex-1" }, z = { class: "bg-b-1 flex-1" }, G = { key: 1 }, K = {}, ue = /* @__PURE__ */ W({
|
|
22
|
+
...K,
|
|
18
23
|
__name: "App",
|
|
19
24
|
props: {
|
|
20
25
|
layout: {},
|
|
@@ -22,101 +27,131 @@ const P = ["innerHTML"], F = { class: "flex min-h-0 flex-1" }, H = { class: "bg-
|
|
|
22
27
|
getAppState: { type: Function },
|
|
23
28
|
getCommandPaletteState: { type: Function }
|
|
24
29
|
},
|
|
25
|
-
setup(
|
|
26
|
-
|
|
27
|
-
openCreateWorkspace: () =>
|
|
30
|
+
setup(r, { expose: k }) {
|
|
31
|
+
k({
|
|
32
|
+
openCreateWorkspace: () => c.show()
|
|
28
33
|
});
|
|
29
|
-
const e =
|
|
30
|
-
typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e)
|
|
34
|
+
const e = r.getAppState(), w = r.getCommandPaletteState();
|
|
35
|
+
typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e);
|
|
36
|
+
const { isDarkMode: f } = D({ workspaceStore: e.store });
|
|
37
|
+
I(e.eventBus, r.layout), A({
|
|
31
38
|
documentName: () => e.store.value?.workspace[E.workspace.activeDocument],
|
|
32
39
|
store: e.store,
|
|
33
40
|
initialTimeout: 5e3
|
|
34
41
|
});
|
|
35
|
-
const
|
|
42
|
+
const S = d(() => {
|
|
36
43
|
if (e.store.value === null)
|
|
37
44
|
return "";
|
|
38
45
|
const s = e.store.value.workspace["x-scalar-theme"];
|
|
39
|
-
return s ? `<style>${
|
|
40
|
-
}),
|
|
46
|
+
return s ? `<style>${x(s)}</style>` : "";
|
|
47
|
+
}), l = (s) => {
|
|
41
48
|
if (!s)
|
|
42
49
|
return;
|
|
43
50
|
const a = e.workspace.workspaceList.value?.find(
|
|
44
|
-
(
|
|
51
|
+
(o) => o.id === s
|
|
45
52
|
);
|
|
46
53
|
a && e.workspace.navigateToWorkspace(a.namespace, a.slug);
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
54
|
+
}, c = g(), b = d(() => {
|
|
55
|
+
const s = e.store.value?.auth ? P(
|
|
56
|
+
e.document.value?.components?.securitySchemes ?? {},
|
|
57
|
+
{},
|
|
58
|
+
e.store.value.auth,
|
|
59
|
+
e.activeEntities.documentSlug.value ?? ""
|
|
60
|
+
) : {};
|
|
61
|
+
return {
|
|
62
|
+
documentSlug: e.activeEntities.documentSlug.value ?? "",
|
|
63
|
+
document: e.store.value?.workspace.activeDocument ?? null,
|
|
64
|
+
environment: e.environment.value,
|
|
65
|
+
eventBus: e.eventBus,
|
|
66
|
+
exampleName: e.activeEntities.exampleName.value,
|
|
67
|
+
layout: r.layout,
|
|
68
|
+
method: e.activeEntities.method.value,
|
|
69
|
+
path: e.activeEntities.path.value,
|
|
70
|
+
workspaceStore: e.store.value,
|
|
71
|
+
activeWorkspace: e.workspace.activeWorkspace.value,
|
|
72
|
+
plugins: r.plugins,
|
|
73
|
+
securitySchemes: s
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
return (s, a) => (i(), p(t(C), null, {
|
|
77
|
+
default: u(() => [
|
|
78
|
+
m("div", { innerHTML: S.value }, null, 8, F),
|
|
79
|
+
n(t(B)),
|
|
80
|
+
n(t(H), {
|
|
81
|
+
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
82
|
+
darkMode: t(f),
|
|
83
|
+
workspaceStore: t(e).store.value,
|
|
84
|
+
workspaces: t(e).workspace.workspaceList.value,
|
|
85
|
+
"onCreate:workspace": a[4] || (a[4] = (o) => t(e).workspace.create(o)),
|
|
86
|
+
"onNavigateTo:document": a[5] || (a[5] = (o) => t(e).router.value?.push({
|
|
87
|
+
name: "document.overview",
|
|
88
|
+
params: {
|
|
89
|
+
documentSlug: o
|
|
90
|
+
}
|
|
91
|
+
})),
|
|
92
|
+
"onSelect:workspace": l
|
|
93
|
+
}, {
|
|
94
|
+
default: u(() => [
|
|
95
|
+
t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (i(), v("main", V, [
|
|
96
|
+
r.layout === "desktop" ? (i(), p(N, {
|
|
97
|
+
key: 0,
|
|
98
|
+
activeTabIndex: t(e).tabs.activeTabIndex.value,
|
|
99
|
+
eventBus: t(e).eventBus,
|
|
100
|
+
tabs: t(e).tabs.state.value
|
|
101
|
+
}, null, 8, ["activeTabIndex", "eventBus", "tabs"])) : (i(), p($, {
|
|
102
|
+
key: 1,
|
|
103
|
+
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
104
|
+
workspaces: t(e).workspace.workspaceList.value,
|
|
105
|
+
"onCreate:workspace": a[0] || (a[0] = (o) => t(c).show()),
|
|
106
|
+
"onSelect:workspace": l
|
|
107
|
+
}, null, 8, ["activeWorkspace", "workspaces"])),
|
|
108
|
+
m("div", R, [
|
|
109
|
+
n(L, {
|
|
110
|
+
isSidebarOpen: t(e).sidebar.isOpen.value,
|
|
111
|
+
"onUpdate:isSidebarOpen": a[1] || (a[1] = (o) => t(e).sidebar.isOpen.value = o),
|
|
112
|
+
activeWorkspace: t(e).workspace.activeWorkspace.value,
|
|
113
|
+
eventBus: t(e).eventBus,
|
|
114
|
+
isWorkspaceOpen: t(e).workspace.isOpen.value,
|
|
115
|
+
layout: r.layout,
|
|
116
|
+
sidebarState: t(e).sidebar.state,
|
|
117
|
+
sidebarWidth: t(e).sidebar.width.value,
|
|
118
|
+
store: t(e).store.value,
|
|
119
|
+
workspaces: t(e).workspace.workspaceList.value,
|
|
120
|
+
"onClick:workspace": t(e).workspace.navigateToWorkspace,
|
|
121
|
+
"onCreate:workspace": a[2] || (a[2] = (o) => t(c).show()),
|
|
122
|
+
"onSelect:workspace": l,
|
|
123
|
+
onSelectItem: t(e).sidebar.handleSelectItem,
|
|
124
|
+
"onUpdate:sidebarWidth": t(e).sidebar.handleSidebarWidthUpdate
|
|
125
|
+
}, {
|
|
126
|
+
sidebarMenuActions: u(() => [
|
|
127
|
+
T(s.$slots, "sidebar-menu-actions")
|
|
128
|
+
]),
|
|
129
|
+
_: 3
|
|
130
|
+
}, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onClick:workspace", "onSelectItem", "onUpdate:sidebarWidth"]),
|
|
131
|
+
m("div", z, [
|
|
132
|
+
n(t(M), h(y(b.value)), null, 16)
|
|
133
|
+
])
|
|
98
134
|
]),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
state
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
paletteState
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
], 64)) : (c(), l(M, { key: 1 }));
|
|
135
|
+
n(O, {
|
|
136
|
+
state: t(c),
|
|
137
|
+
"onCreate:workspace": a[3] || (a[3] = (o) => t(e).workspace.create(o))
|
|
138
|
+
}, null, 8, ["state"]),
|
|
139
|
+
n(U, {
|
|
140
|
+
eventBus: t(e).eventBus,
|
|
141
|
+
paletteState: t(w),
|
|
142
|
+
workspaceStore: t(e).store.value
|
|
143
|
+
}, null, 8, ["eventBus", "paletteState", "workspaceStore"])
|
|
144
|
+
])) : (i(), v("main", G, [
|
|
145
|
+
n(_)
|
|
146
|
+
]))
|
|
147
|
+
]),
|
|
148
|
+
_: 3
|
|
149
|
+
}, 8, ["activeWorkspace", "darkMode", "workspaceStore", "workspaces"])
|
|
150
|
+
]),
|
|
151
|
+
_: 3
|
|
152
|
+
}));
|
|
118
153
|
}
|
|
119
154
|
});
|
|
120
155
|
export {
|
|
121
|
-
|
|
156
|
+
ue as default
|
|
122
157
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-state.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/app-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAG7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,gCAAgC,CAAA;AAC1F,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,gCAAgC,CAAA;AAKvC,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oEAAoE,CAAA;AAC7F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAChF,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAE,KAAK,UAAU,EAAoC,MAAM,KAAK,CAAA;AACnG,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAoExE,KAAK,eAAe,GAAG,mBAAmB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"app-state.d.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