@scalar/api-client 2.23.0 → 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.
Files changed (88) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/style.css +1 -1
  3. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +13 -3
  4. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +68 -68
  6. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +5 -3
  7. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
  8. package/dist/v2/blocks/operation-block/helpers/build-request-security.js +1 -1
  9. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +3 -2
  10. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/index.d.ts +2 -1
  12. package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
  13. package/dist/v2/blocks/operation-block/index.js +7 -4
  14. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +3 -2
  15. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  16. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
  17. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +3 -2
  18. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  19. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +2 -2
  20. package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts.map +1 -1
  21. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +3 -2
  22. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  23. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +2 -2
  24. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts.map +1 -1
  25. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +8 -5
  26. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  27. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  28. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +4 -4
  29. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +49 -45
  31. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  32. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +4 -2
  33. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  34. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -181
  35. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  36. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +118 -107
  37. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -2
  38. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  39. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +30 -33
  40. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +11 -178
  41. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  42. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -110
  43. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.d.ts.map +1 -1
  44. package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +5 -29
  45. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts +6 -0
  46. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -0
  47. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +85 -0
  48. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +9 -0
  49. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -0
  50. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +15 -0
  51. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +3 -2
  52. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  53. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +23 -0
  54. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -0
  55. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +2 -2
  56. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
  57. package/dist/v2/blocks/scalar-auth-selector-block/index.js +4 -6
  58. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  59. package/dist/v2/features/app/App.vue.js +51 -42
  60. package/dist/v2/features/app/app-state.d.ts +1 -1
  61. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  62. package/dist/v2/features/app/app-state.js +40 -38
  63. package/dist/v2/features/app/helpers/routes.d.ts +1 -1
  64. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  65. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  66. package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
  67. package/dist/v2/features/collection/components/Authentication.vue2.js +14 -11
  68. package/dist/v2/features/import-listener/helpers/import-document-to-workspace.d.ts.map +1 -1
  69. package/dist/v2/features/import-listener/helpers/import-document-to-workspace.js +3 -1
  70. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  71. package/dist/v2/features/modal/Modal.vue.js +1 -1
  72. package/dist/v2/features/modal/Modal.vue2.js +14 -12
  73. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  74. package/dist/v2/features/operation/Operation.vue.js +44 -35
  75. package/dist/v2/features/operation/helpers/get-selected-security.d.ts +3 -5
  76. package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
  77. package/dist/v2/workspace-events.d.ts.map +1 -1
  78. package/dist/v2/workspace-events.js +116 -109
  79. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  80. package/package.json +14 -14
  81. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts +0 -2
  82. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts.map +0 -1
  83. package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts +0 -8
  84. package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts.map +0 -1
  85. package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.js +0 -33
  86. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts +0 -7
  87. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts.map +0 -1
  88. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.js +0 -13
@@ -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
@@ -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 { OAuthFlowsObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
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: OAuthFlowsObject, type: keyof OAuthFlowsObject, selectedScopes: string[],
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,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AA8DlD;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,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"}
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, mergeAuthConfig } from './helpers/merge-auth-config.js';
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,4BAA4B,EAAE,MAAM,2CAA2C,CAAA;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,KAAK,qBAAqB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA"}
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 { convertSecuritySchemeSecrets as f } from "./helpers/convert-security-scheme-secrets.js";
3
- import { isAuthOptional as c } from "./helpers/is-auth-optional.js";
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 convertSecuritySchemeSecrets,
8
- c as isAuthOptional,
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":"AA6PA,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,wBAsYC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
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,9 +1,9 @@
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 y, guardReactiveProps as h } from "vue";
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
3
  import { getThemeStyles as x } from "@scalar/themes";
4
4
  import { ScalarToasts as B } from "@scalar/use-toasts";
5
- import { extensions as M } from "@scalar/workspace-store/schemas/extensions";
6
- import { RouterView as E } from "vue-router";
5
+ import { extensions as E } from "@scalar/workspace-store/schemas/extensions";
6
+ import { RouterView as M } from "vue-router";
7
7
  import O from "./components/CreateWorkspaceModal.vue.js";
8
8
  import _ from "./components/SplashScreen.vue.js";
9
9
  import { useDocumentWatcher as A } from "./hooks/use-document-watcher.js";
@@ -13,12 +13,13 @@ 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
- import P from "../import-listener/ImportListener.vue.js";
17
- const H = ["innerHTML"], F = {
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 = {
18
19
  key: 0,
19
20
  class: "flex flex-1 flex-col"
20
- }, V = { class: "flex min-h-0 flex-1" }, R = { class: "bg-b-1 flex-1" }, z = { key: 1 }, G = {}, le = /* @__PURE__ */ W({
21
- ...G,
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,
22
23
  __name: "App",
23
24
  props: {
24
25
  layout: {},
@@ -26,49 +27,57 @@ const H = ["innerHTML"], F = {
26
27
  getAppState: { type: Function },
27
28
  getCommandPaletteState: { type: Function }
28
29
  },
29
- setup(s, { expose: k }) {
30
+ setup(r, { expose: k }) {
30
31
  k({
31
32
  openCreateWorkspace: () => c.show()
32
33
  });
33
- const e = s.getAppState(), w = s.getCommandPaletteState();
34
+ const e = r.getAppState(), w = r.getCommandPaletteState();
34
35
  typeof window < "u" && (window.dataDumpWorkspace = () => e.store.value, window.dumpAppState = () => e);
35
36
  const { isDarkMode: f } = D({ workspaceStore: e.store });
36
- I(e.eventBus, s.layout), A({
37
- documentName: () => e.store.value?.workspace[M.workspace.activeDocument],
37
+ I(e.eventBus, r.layout), A({
38
+ documentName: () => e.store.value?.workspace[E.workspace.activeDocument],
38
39
  store: e.store,
39
40
  initialTimeout: 5e3
40
41
  });
41
42
  const S = d(() => {
42
43
  if (e.store.value === null)
43
44
  return "";
44
- const r = e.store.value.workspace["x-scalar-theme"];
45
- return r ? `<style>${x(r)}</style>` : "";
46
- }), l = (r) => {
47
- if (!r)
45
+ const s = e.store.value.workspace["x-scalar-theme"];
46
+ return s ? `<style>${x(s)}</style>` : "";
47
+ }), l = (s) => {
48
+ if (!s)
48
49
  return;
49
50
  const a = e.workspace.workspaceList.value?.find(
50
- (o) => o.id === r
51
+ (o) => o.id === s
51
52
  );
52
53
  a && e.workspace.navigateToWorkspace(a.namespace, a.slug);
53
- }, c = g(), b = d(() => ({
54
- documentSlug: e.activeEntities.documentSlug.value ?? "",
55
- document: e.store.value?.workspace.activeDocument ?? null,
56
- environment: e.environment.value,
57
- eventBus: e.eventBus,
58
- exampleName: e.activeEntities.exampleName.value,
59
- layout: s.layout,
60
- method: e.activeEntities.method.value,
61
- path: e.activeEntities.path.value,
62
- workspaceStore: e.store.value,
63
- activeWorkspace: e.workspace.activeWorkspace.value,
64
- plugins: s.plugins,
65
- securitySchemes: e.document.value?.components?.securitySchemes ?? {}
66
- }));
67
- return (r, a) => (i(), p(t(C), null, {
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, {
68
77
  default: u(() => [
69
- m("div", { innerHTML: S.value }, null, 8, H),
78
+ m("div", { innerHTML: S.value }, null, 8, F),
70
79
  n(t(B)),
71
- n(t(P), {
80
+ n(t(H), {
72
81
  activeWorkspace: t(e).workspace.activeWorkspace.value,
73
82
  darkMode: t(f),
74
83
  workspaceStore: t(e).store.value,
@@ -83,8 +92,8 @@ const H = ["innerHTML"], F = {
83
92
  "onSelect:workspace": l
84
93
  }, {
85
94
  default: u(() => [
86
- t(e).store.value !== null && t(e).workspace.activeWorkspace.value !== null && !t(e).loading.value ? (i(), v("main", F, [
87
- s.layout === "desktop" ? (i(), p(N, {
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, {
88
97
  key: 0,
89
98
  activeTabIndex: t(e).tabs.activeTabIndex.value,
90
99
  eventBus: t(e).eventBus,
@@ -96,14 +105,14 @@ const H = ["innerHTML"], F = {
96
105
  "onCreate:workspace": a[0] || (a[0] = (o) => t(c).show()),
97
106
  "onSelect:workspace": l
98
107
  }, null, 8, ["activeWorkspace", "workspaces"])),
99
- m("div", V, [
108
+ m("div", R, [
100
109
  n(L, {
101
110
  isSidebarOpen: t(e).sidebar.isOpen.value,
102
111
  "onUpdate:isSidebarOpen": a[1] || (a[1] = (o) => t(e).sidebar.isOpen.value = o),
103
112
  activeWorkspace: t(e).workspace.activeWorkspace.value,
104
113
  eventBus: t(e).eventBus,
105
114
  isWorkspaceOpen: t(e).workspace.isOpen.value,
106
- layout: s.layout,
115
+ layout: r.layout,
107
116
  sidebarState: t(e).sidebar.state,
108
117
  sidebarWidth: t(e).sidebar.width.value,
109
118
  store: t(e).store.value,
@@ -115,12 +124,12 @@ const H = ["innerHTML"], F = {
115
124
  "onUpdate:sidebarWidth": t(e).sidebar.handleSidebarWidthUpdate
116
125
  }, {
117
126
  sidebarMenuActions: u(() => [
118
- T(r.$slots, "sidebar-menu-actions")
127
+ T(s.$slots, "sidebar-menu-actions")
119
128
  ]),
120
129
  _: 3
121
130
  }, 8, ["isSidebarOpen", "activeWorkspace", "eventBus", "isWorkspaceOpen", "layout", "sidebarState", "sidebarWidth", "store", "workspaces", "onClick:workspace", "onSelectItem", "onUpdate:sidebarWidth"]),
122
- m("div", R, [
123
- n(t(E), y(h(b.value)), null, 16)
131
+ m("div", z, [
132
+ n(t(M), h(y(b.value)), null, 16)
124
133
  ])
125
134
  ]),
126
135
  n(O, {
@@ -132,7 +141,7 @@ const H = ["innerHTML"], F = {
132
141
  paletteState: t(w),
133
142
  workspaceStore: t(e).store.value
134
143
  }, null, 8, ["eventBus", "paletteState", "workspaceStore"])
135
- ])) : (i(), v("main", z, [
144
+ ])) : (i(), v("main", G, [
136
145
  n(_)
137
146
  ]))
138
147
  ]),
@@ -144,5 +153,5 @@ const H = ["innerHTML"], F = {
144
153
  }
145
154
  });
146
155
  export {
147
- le as default
156
+ ue as default
148
157
  };
@@ -39,9 +39,9 @@ declare const createWorkspace: ({ key, name, }: {
39
39
  };
40
40
  name: string;
41
41
  }) => Promise<{
42
- slug: string;
43
42
  name: string;
44
43
  namespace: string;
44
+ slug: string;
45
45
  teamUid: string;
46
46
  } | undefined>;
47
47
  declare const sidebarState: {
@@ -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,mC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