@scalar/api-client 2.19.2 → 2.20.0

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 (148) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  3. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  4. package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts.map +1 -1
  5. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  6. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  7. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  8. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  9. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  10. package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
  11. package/dist/components/SectionFilterButton.vue.d.ts.map +1 -1
  12. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  13. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
  14. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
  15. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  16. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  17. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  18. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  19. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  20. package/dist/hooks/useFileDialog.d.ts +4 -4
  21. package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +0 -9
  24. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  25. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +126 -67
  26. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +6 -0
  27. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  28. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  29. package/dist/v2/blocks/operation-block/components/Header.vue2.js +25 -24
  30. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +1 -1
  31. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -1
  32. package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +1 -1
  33. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +0 -1
  34. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
  35. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +96 -48
  36. package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
  37. package/dist/v2/blocks/operation-block/helpers/build-request.js +41 -39
  38. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.d.ts +42 -0
  39. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.d.ts.map +1 -0
  40. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +31 -0
  41. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts +66 -0
  42. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts.map +1 -0
  43. package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js +43 -0
  44. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -0
  45. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
  46. package/dist/v2/blocks/operation-block/helpers/send-request.js +40 -38
  47. package/dist/v2/blocks/operation-block/helpers/serialize-parameter.d.ts +96 -0
  48. package/dist/v2/blocks/operation-block/helpers/serialize-parameter.d.ts.map +1 -0
  49. package/dist/v2/blocks/operation-block/helpers/serialize-parameter.js +49 -0
  50. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
  51. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +16 -17
  52. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -2
  53. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  54. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +109 -152
  55. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  56. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  57. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
  58. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -1
  59. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -1
  60. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  61. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +6 -0
  62. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  63. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  64. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +24 -23
  65. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts +2 -3
  66. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.d.ts.map +1 -1
  67. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +2 -2
  68. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +20 -20
  69. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  70. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  71. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
  72. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  73. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  74. package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
  75. package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
  76. package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
  77. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +5 -0
  78. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  79. package/dist/v2/components/sidebar/Sidebar.vue.js +60 -54
  80. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  81. package/dist/v2/features/app/app-events.js +53 -42
  82. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  83. package/dist/v2/features/app/app-state.js +72 -72
  84. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  85. package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
  86. package/dist/v2/features/app/components/AppSidebar.vue2.js +84 -76
  87. package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -1
  88. package/dist/v2/features/app/helpers/routes.d.ts +2 -2
  89. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  90. package/dist/v2/features/collection/DocumentCollection.vue.js +82 -43
  91. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  92. package/dist/v2/features/collection/components/Settings.vue.js +9 -10
  93. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +1 -3
  94. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  95. package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts.map +1 -1
  96. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +1 -1
  97. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -1
  98. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  99. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  100. package/dist/v2/features/modal/Modal.vue.js +2 -2
  101. package/dist/v2/features/modal/Modal.vue2.js +31 -31
  102. package/dist/v2/features/modal/helpers/map-hidden-clients-config.d.ts +8 -0
  103. package/dist/v2/features/modal/helpers/map-hidden-clients-config.d.ts.map +1 -0
  104. package/dist/v2/features/modal/helpers/map-hidden-clients-config.js +36 -0
  105. package/dist/v2/features/modal/index.d.ts +1 -0
  106. package/dist/v2/features/modal/index.d.ts.map +1 -1
  107. package/dist/v2/features/modal/index.js +4 -2
  108. package/dist/v2/features/operation/Operation.vue.d.ts +5 -2
  109. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  110. package/dist/v2/features/operation/Operation.vue.js +48 -35
  111. package/dist/v2/features/operation/helpers/get-selected-server.d.ts +2 -1
  112. package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -1
  113. package/dist/v2/features/operation/helpers/get-selected-server.js +2 -2
  114. package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +1 -1
  115. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +0 -2
  116. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
  117. package/dist/v2/features/settings/CollectionSettings.vue.js +110 -135
  118. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -1
  119. package/dist/v2/helpers/get-servers.d.ts +23 -0
  120. package/dist/v2/helpers/get-servers.d.ts.map +1 -0
  121. package/dist/v2/helpers/get-servers.js +66 -0
  122. package/dist/v2/helpers/index.d.ts +1 -0
  123. package/dist/v2/helpers/index.d.ts.map +1 -1
  124. package/dist/v2/helpers/index.js +4 -2
  125. package/dist/v2/workspace-events.d.ts.map +1 -1
  126. package/dist/v2/workspace-events.js +12 -6
  127. package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +1 -1
  128. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  129. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  130. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  131. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  132. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  135. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  136. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  138. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  139. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  140. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  141. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -1
  142. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  143. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  144. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  145. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  146. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -1
  147. package/package.json +12 -12
  148. package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -15
@@ -7,7 +7,6 @@ import type { OpenApiDocument, ServerObject } from '@scalar/workspace-store/sche
7
7
  import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation';
8
8
  import type { ClientLayout } from '../../../hooks/index.js';
9
9
  import type { ExtendedScalarCookie } from '../../../v2/blocks/request-block/RequestBlock.vue.js';
10
- import { type History } from '../../../v2/blocks/scalar-address-bar-block/index.js';
11
10
  import type { MergedSecuritySchemes } from '../../../v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.js';
12
11
  import { type ClientPlugin } from '../../../v2/helpers/plugins.js';
13
12
  /**
@@ -48,10 +47,6 @@ declare const _default: import("vue").DefineComponent<{
48
47
  selectedClient: WorkspaceStore["workspace"]["x-scalar-default-client"];
49
48
  /** Server list available for operation/document */
50
49
  servers: ServerObject[];
51
- /** List of request history */
52
- history: History[];
53
- /** Total number of performed requests */
54
- totalPerformedRequests: number;
55
50
  /** Hides the client button on the header */
56
51
  hideClientButton?: boolean;
57
52
  /** Client integration */
@@ -103,10 +98,6 @@ declare const _default: import("vue").DefineComponent<{
103
98
  selectedClient: WorkspaceStore["workspace"]["x-scalar-default-client"];
104
99
  /** Server list available for operation/document */
105
100
  servers: ServerObject[];
106
- /** List of request history */
107
- history: History[];
108
- /** Total number of performed requests */
109
- totalPerformedRequests: number;
110
101
  /** Hides the client button on the header */
111
102
  hideClientButton?: boolean;
112
103
  /** Client integration */
@@ -1 +1 @@
1
- {"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"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"}
@@ -1,23 +1,25 @@
1
- import { defineComponent as C, computed as r, ref as a, onMounted as R, onBeforeUnmount as k, watch as U, createElementBlock as b, openBlock as E, createElementVNode as O, createVNode as n, withCtx as g, unref as c } from "vue";
2
- import { AVAILABLE_CLIENTS as V } from "@scalar/types/snippetz";
3
- import { useToasts as K } from "@scalar/use-toasts";
4
- import w from "../../../components/ViewLayout/ViewLayout.vue.js";
5
- import P from "../../../components/ViewLayout/ViewLayoutContent.vue.js";
6
- import { ERRORS as M } from "../../../libs/errors.js";
7
- import { createStoreEvents as A } from "../../../store/events.js";
8
- import { buildRequest as L } from "./helpers/build-request.js";
9
- import { getSecuritySchemes as T } from "./helpers/build-request-security.js";
10
- import { sendRequest as N } from "./helpers/send-request.js";
11
- import I from "./components/Header.vue.js";
12
- import { generateClientOptions as $ } from "../operation-code-sample/helpers/generate-client-options.js";
13
- import { getSecurityRequirements as j } from "../../features/operation/helpers/get-security-requirements.js";
14
- import { getSelectedSecurity as D } from "../../features/operation/helpers/get-selected-security.js";
15
- import H from "../request-block/RequestBlock.vue.js";
16
- import Q from "../response-block/ResponseBlock.vue.js";
17
- const z = { class: "bg-b-1 flex h-full flex-col" }, F = { class: "lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-0" }, G = {
1
+ import { defineComponent as K, computed as a, ref as m, onMounted as O, onBeforeUnmount as g, watch as V, createElementBlock as w, openBlock as T, createElementVNode as I, createVNode as s, withCtx as q, unref as d } from "vue";
2
+ import { AVAILABLE_CLIENTS as M } from "@scalar/types/snippetz";
3
+ import { useToasts as A } from "@scalar/use-toasts";
4
+ import L from "../../../components/ViewLayout/ViewLayout.vue.js";
5
+ import N from "../../../components/ViewLayout/ViewLayoutContent.vue.js";
6
+ import { ERRORS as P } from "../../../libs/errors.js";
7
+ import { createStoreEvents as H } from "../../../store/events.js";
8
+ import { buildRequest as F } from "./helpers/build-request.js";
9
+ import { getSecuritySchemes as $ } from "./helpers/build-request-security.js";
10
+ import { harToFetchRequest as j } from "./helpers/har-to-fetch-request.js";
11
+ import { harToFetchResponse as D } from "./helpers/har-to-fetch-response.js";
12
+ import { sendRequest as Q } from "./helpers/send-request.js";
13
+ import z from "./components/Header.vue.js";
14
+ import { generateClientOptions as G } from "../operation-code-sample/helpers/generate-client-options.js";
15
+ import { getSecurityRequirements as J } from "../../features/operation/helpers/get-security-requirements.js";
16
+ import { getSelectedSecurity as W } from "../../features/operation/helpers/get-selected-security.js";
17
+ import X from "../request-block/RequestBlock.vue.js";
18
+ import Y from "../response-block/ResponseBlock.vue.js";
19
+ const Z = { class: "bg-b-1 flex h-full flex-col" }, p = { class: "lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-0" }, _ = {
18
20
  name: "OperationBlock"
19
- }, ae = /* @__PURE__ */ C({
20
- ...G,
21
+ }, Se = /* @__PURE__ */ K({
22
+ ..._,
21
23
  props: {
22
24
  eventBus: {},
23
25
  documentSecurity: {},
@@ -26,13 +28,11 @@ const z = { class: "bg-b-1 flex h-full flex-col" }, F = { class: "lg:min-h-heade
26
28
  globalCookies: { default: () => [] },
27
29
  path: {},
28
30
  method: {},
29
- httpClients: { default: () => V },
31
+ httpClients: { default: () => M },
30
32
  layout: {},
31
33
  server: {},
32
34
  selectedClient: {},
33
35
  servers: {},
34
- history: {},
35
- totalPerformedRequests: {},
36
36
  hideClientButton: { type: Boolean },
37
37
  integration: {},
38
38
  documentUrl: {},
@@ -48,60 +48,118 @@ const z = { class: "bg-b-1 flex h-full flex-col" }, F = { class: "lg:min-h-heade
48
48
  },
49
49
  emits: ["update:servers"],
50
50
  setup(e, { emit: B }) {
51
- const x = B, q = r(() => $(e.httpClients)), m = r(
52
- () => j(e.documentSecurity, e.operation.security)
53
- ), d = r(
54
- () => D(
51
+ const R = B, C = a(() => G(e.httpClients)), h = a(
52
+ () => J(e.documentSecurity, e.operation.security)
53
+ ), v = a(
54
+ () => W(
55
55
  e.documentSelectedSecurity,
56
56
  e.operation["x-scalar-selected-security"],
57
- m.value,
57
+ h.value,
58
58
  e.setOperationSecurity
59
59
  )
60
- ), v = r(
61
- () => T(e.securitySchemes, d.value.selectedSchemes)
62
- ), { toast: y } = K(), h = a(null), l = a(null), u = a(null), f = () => h.value?.abort(M.REQUEST_ABORTED), o = async () => {
63
- const [s, t] = L({
60
+ ), y = a(
61
+ () => $(e.securitySchemes, v.value.selectedSchemes)
62
+ ), { toast: f } = A(), x = m(null), l = m(null), u = m(null), i = () => x.value?.abort(P.REQUEST_ABORTED), c = async () => {
63
+ const [t, n] = F({
64
64
  environment: e.environment,
65
65
  exampleKey: e.exampleKey,
66
66
  globalCookies: e.globalCookies,
67
67
  method: e.method,
68
68
  operation: e.operation,
69
69
  path: e.path,
70
- selectedSecuritySchemes: v.value,
70
+ selectedSecuritySchemes: y.value,
71
71
  server: e.server,
72
72
  proxyUrl: e.proxyUrl
73
73
  });
74
- if (s) {
75
- y(s.message, "error");
74
+ if (t) {
75
+ f(t.message, "error");
76
76
  return;
77
77
  }
78
- h.value = t.controller, e.eventBus.emit("hooks:on:request:sent");
79
- const [i, S] = await N({
80
- isUsingProxy: t.isUsingProxy,
78
+ x.value = n.controller, e.eventBus.emit("hooks:on:request:sent", {
79
+ meta: {
80
+ method: e.method,
81
+ path: e.path,
82
+ exampleKey: e.exampleKey
83
+ }
84
+ });
85
+ const [o, r] = await Q({
86
+ isUsingProxy: n.isUsingProxy,
81
87
  operation: e.operation,
82
88
  plugins: e.plugins,
83
- request: t.request
89
+ request: n.request
84
90
  });
85
- if (e.eventBus.emit("hooks:on:request:complete"), i) {
86
- y(i.message, "error");
91
+ if (e.eventBus.emit("hooks:on:request:complete", {
92
+ payload: r ? {
93
+ response: r.originalResponse,
94
+ request: r.request.clone(),
95
+ duration: r.response.duration,
96
+ timestamp: r.timestamp
97
+ } : void 0,
98
+ meta: {
99
+ method: e.method,
100
+ path: e.path,
101
+ exampleKey: e.exampleKey
102
+ }
103
+ }), o) {
104
+ f(o.message, "error");
87
105
  return;
88
106
  }
89
- l.value = S.response, u.value = S.request;
107
+ l.value = r.response, u.value = r.request;
108
+ };
109
+ O(() => {
110
+ e.eventBus.on("operation:send:request:hotkey", c), e.eventBus.on("operation:cancel:request", i);
111
+ }), g(() => {
112
+ e.eventBus.off("operation:send:request:hotkey", c), e.eventBus.off("operation:cancel:request", i);
113
+ });
114
+ const S = a(
115
+ () => (e.operation["x-scalar-history"] ?? []).map((t) => ({
116
+ method: t.request.method,
117
+ path: t.request.url,
118
+ duration: t.time,
119
+ status: t.response.status
120
+ })).reverse()
121
+ ), k = ({ index: t }) => {
122
+ const n = (e.operation["x-scalar-history"]?.length ?? 0) - t - 1, o = e.operation["x-scalar-history"]?.[n];
123
+ if (!o)
124
+ return;
125
+ const r = () => e.eventBus.emit("ui:route:example", {
126
+ exampleName: "draft",
127
+ callback: async (U) => {
128
+ if (U === "error")
129
+ return;
130
+ const b = D({
131
+ harResponse: o.response,
132
+ url: o.request.url,
133
+ method: e.method,
134
+ path: e.path,
135
+ duration: o.time
136
+ }), E = j({
137
+ harRequest: o.request
138
+ });
139
+ l.value = b, u.value = E;
140
+ }
141
+ });
142
+ e.eventBus.emit("operation:reload:history", {
143
+ meta: {
144
+ path: e.path,
145
+ method: e.method
146
+ },
147
+ index: n,
148
+ callback: r
149
+ });
90
150
  };
91
- return R(() => {
92
- e.eventBus.on("operation:send:request:hotkey", o), e.eventBus.on("operation:cancel:request", f);
93
- }), k(() => {
94
- e.eventBus.off("operation:send:request:hotkey", o), e.eventBus.off("operation:cancel:request", f);
95
- }), U([() => e.path, () => e.method, () => e.exampleKey], () => {
96
- l.value = null, u.value = null;
97
- }), (s, t) => (E(), b("div", z, [
98
- O("div", F, [
99
- n(I, {
151
+ return V([() => e.path, () => e.method, () => e.exampleKey], () => {
152
+ l.value = null, u.value = null, i();
153
+ }), g(() => {
154
+ i();
155
+ }), (t, n) => (T(), w("div", Z, [
156
+ I("div", p, [
157
+ s(z, {
100
158
  documentUrl: e.documentUrl,
101
159
  environment: e.environment,
102
160
  eventBus: e.eventBus,
103
161
  hideClientButton: e.hideClientButton,
104
- history: e.history,
162
+ history: S.value,
105
163
  integration: e.integration,
106
164
  layout: e.layout,
107
165
  method: e.method,
@@ -109,17 +167,18 @@ const z = { class: "bg-b-1 flex h-full flex-col" }, F = { class: "lg:min-h-heade
109
167
  server: e.server,
110
168
  servers: e.servers,
111
169
  source: e.source,
112
- onExecute: o,
113
- "onUpdate:servers": t[0] || (t[0] = (i) => x("update:servers"))
170
+ onExecute: c,
171
+ "onSelect:history:item": k,
172
+ "onUpdate:servers": n[0] || (n[0] = (o) => R("update:servers"))
114
173
  }, null, 8, ["documentUrl", "environment", "eventBus", "hideClientButton", "history", "integration", "layout", "method", "path", "server", "servers", "source"])
115
174
  ]),
116
- n(w, { class: "border-t" }, {
117
- default: g(() => [
118
- n(P, { class: "flex-1" }, {
119
- default: g(() => [
120
- n(c(H), {
175
+ s(L, { class: "border-t" }, {
176
+ default: q(() => [
177
+ s(N, { class: "flex-1" }, {
178
+ default: q(() => [
179
+ s(d(X), {
121
180
  authMeta: e.authMeta,
122
- clientOptions: q.value,
181
+ clientOptions: C.value,
123
182
  environment: e.environment,
124
183
  eventBus: e.eventBus,
125
184
  exampleKey: e.exampleKey,
@@ -130,23 +189,23 @@ const z = { class: "bg-b-1 flex h-full flex-col" }, F = { class: "lg:min-h-heade
130
189
  path: e.path,
131
190
  plugins: e.plugins,
132
191
  proxyUrl: e.proxyUrl,
133
- securityRequirements: m.value,
192
+ securityRequirements: h.value,
134
193
  securitySchemes: e.securitySchemes,
135
194
  selectedClient: e.selectedClient,
136
- selectedSecurity: d.value,
137
- selectedSecuritySchemes: v.value,
195
+ selectedSecurity: v.value,
196
+ selectedSecuritySchemes: y.value,
138
197
  server: e.server
139
198
  }, null, 8, ["authMeta", "clientOptions", "environment", "eventBus", "exampleKey", "globalCookies", "layout", "method", "operation", "path", "plugins", "proxyUrl", "securityRequirements", "securitySchemes", "selectedClient", "selectedSecurity", "selectedSecuritySchemes", "server"]),
140
- n(c(Q), {
199
+ s(d(Y), {
141
200
  appVersion: e.appVersion,
142
201
  eventBus: e.eventBus,
143
- events: c(A)(),
202
+ events: d(H)(),
144
203
  layout: e.layout,
145
204
  plugins: e.plugins,
146
205
  request: u.value,
147
206
  response: l.value,
148
- totalPerformedRequests: e.totalPerformedRequests,
149
- onSendRequest: o
207
+ totalPerformedRequests: S.value.length,
208
+ onSendRequest: c
150
209
  }, null, 8, ["appVersion", "eventBus", "events", "layout", "plugins", "request", "response", "totalPerformedRequests"])
151
210
  ]),
152
211
  _: 1
@@ -158,5 +217,5 @@ const z = { class: "bg-b-1 flex h-full flex-col" }, F = { class: "lg:min-h-heade
158
217
  }
159
218
  });
160
219
  export {
161
- ae as default
220
+ Se as default
162
221
  };
@@ -33,9 +33,15 @@ type __VLS_Props = {
33
33
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
34
34
  execute: () => any;
35
35
  "update:servers": () => any;
36
+ "select:history:item": (payload: {
37
+ index: number;
38
+ }) => any;
36
39
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
37
40
  onExecute?: (() => any) | undefined;
38
41
  "onUpdate:servers"?: (() => any) | undefined;
42
+ "onSelect:history:item"?: ((payload: {
43
+ index: number;
44
+ }) => any) | undefined;
39
45
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
46
  export default _default;
41
47
  //# sourceMappingURL=Header.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAE/E,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,UAAU,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oBAAoB;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,eAAe,CAAA;IACpC,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,4BAA4B;IAC5B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;;;;AAyNF,wBAOG"}
1
+ {"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"names":[],"mappings":"AAsIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAE/E,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,UAAU,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oBAAoB;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,eAAe,CAAA;IACpC,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,4BAA4B;IAC5B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;eAO6C,MAAM;;;;;;eAAN,MAAM;;;AAwNrD,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Header.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d73c7e3d"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-43c7b0fc"]]);
5
5
  export {
6
- d as default
6
+ e as default
7
7
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as c, createElementBlock as i, openBlock as o, createElementVNode as n, createVNode as s, unref as l, createBlock as v, createCommentVNode as u } from "vue";
1
+ import { defineComponent as c, createElementBlock as s, openBlock as l, createElementVNode as o, createVNode as u, unref as i, createBlock as v, createCommentVNode as m } from "vue";
2
2
  import { ScalarIcon as a } from "@scalar/components";
3
3
  import f from "../../scalar-address-bar-block/components/AddressBar.vue.js";
4
- import g from "../../../../components/OpenApiClientButton.vue.js";
5
- const y = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center p-2 pt-2 lg:p-1 lg:pt-1" }, x = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, w = /* @__PURE__ */ c({
4
+ import y from "../../../../components/OpenApiClientButton.vue.js";
5
+ const g = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center p-2 pt-2 lg:p-1 lg:pt-1" }, x = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, w = /* @__PURE__ */ c({
6
6
  __name: "Header",
7
7
  props: {
8
8
  path: {},
@@ -18,14 +18,14 @@ const y = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
18
18
  eventBus: {},
19
19
  environment: {}
20
20
  },
21
- emits: ["execute", "update:servers"],
21
+ emits: ["execute", "update:servers", "select:history:item"],
22
22
  setup(e, { emit: d }) {
23
- const m = d;
24
- return (b, t) => (o(), i("div", y, [
25
- t[6] || (t[6] = n("div", { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, [
26
- n("div", { class: "size-8" })
23
+ const r = d;
24
+ return (b, t) => (l(), s("div", g, [
25
+ t[7] || (t[7] = o("div", { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, [
26
+ o("div", { class: "size-8" })
27
27
  ], -1)),
28
- s(l(f), {
28
+ u(i(f), {
29
29
  environment: e.environment,
30
30
  eventBus: e.eventBus,
31
31
  history: e.history,
@@ -34,44 +34,45 @@ const y = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
34
34
  path: e.path,
35
35
  server: e.server,
36
36
  servers: e.servers,
37
- onExecute: t[0] || (t[0] = (r) => m("execute")),
38
- "onUpdate:servers": t[1] || (t[1] = (r) => m("update:servers"))
37
+ onExecute: t[0] || (t[0] = (n) => r("execute")),
38
+ "onSelect:history:item": t[1] || (t[1] = (n) => r("select:history:item", n)),
39
+ "onUpdate:servers": t[2] || (t[2] = (n) => r("update:servers"))
39
40
  }, null, 8, ["environment", "eventBus", "history", "layout", "method", "path", "server", "servers"]),
40
- n("div", x, [
41
- e.layout === "modal" && e.documentUrl && !e.hideClientButton ? (o(), v(l(g), {
41
+ o("div", x, [
42
+ e.layout === "modal" && e.documentUrl && !e.hideClientButton ? (l(), v(i(y), {
42
43
  key: 0,
43
44
  buttonSource: "modal",
44
45
  class: "!w-fit lg:-mr-1",
45
46
  integration: e.integration ?? null,
46
47
  source: e.source ?? "api-reference",
47
48
  url: e.documentUrl
48
- }, null, 8, ["integration", "source", "url"])) : u("", !0),
49
- e.layout === "modal" && e.source !== "gitbook" ? (o(), i("button", {
49
+ }, null, 8, ["integration", "source", "url"])) : m("", !0),
50
+ e.layout === "modal" && e.source !== "gitbook" ? (l(), s("button", {
50
51
  key: 1,
51
52
  class: "app-exit-button zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",
52
53
  type: "button",
53
- onClick: t[2] || (t[2] = (r) => e.eventBus.emit("ui:close:client-modal"))
54
+ onClick: t[3] || (t[3] = (n) => e.eventBus.emit("ui:close:client-modal"))
54
55
  }, [
55
- s(l(a), {
56
+ u(i(a), {
56
57
  icon: "Close",
57
58
  size: "lg",
58
59
  thickness: "2"
59
60
  }),
60
- t[4] || (t[4] = n("span", { class: "sr-only" }, "Close Client", -1))
61
- ])) : u("", !0),
62
- e.layout === "modal" && e.source === "gitbook" ? (o(), i("button", {
61
+ t[5] || (t[5] = o("span", { class: "sr-only" }, "Close Client", -1))
62
+ ])) : m("", !0),
63
+ e.layout === "modal" && e.source === "gitbook" ? (l(), s("button", {
63
64
  key: 2,
64
65
  class: "text-c-1 hover:bg-b-2 active:text-c-1 -mr-1.5 rounded p-2",
65
66
  type: "button",
66
- onClick: t[3] || (t[3] = (r) => e.eventBus.emit("ui:close:client-modal"))
67
+ onClick: t[4] || (t[4] = (n) => e.eventBus.emit("ui:close:client-modal"))
67
68
  }, [
68
- s(l(a), {
69
+ u(i(a), {
69
70
  icon: "Close",
70
71
  size: "md",
71
72
  thickness: "1.75"
72
73
  }),
73
- t[5] || (t[5] = n("span", { class: "sr-only" }, "Close Client", -1))
74
- ])) : u("", !0)
74
+ t[6] || (t[6] = o("span", { class: "sr-only" }, "Close Client", -1))
75
+ ])) : m("", !0)
75
76
  ])
76
77
  ]));
77
78
  }
@@ -14,7 +14,7 @@ export declare const buildRequestCookieHeader: ({ paramCookies, globalCookies, e
14
14
  /** Environment variables flattened into a key-value object */
15
15
  env: Record<string, string>;
16
16
  /** Cookie header that previously exists from the spec OR from the user */
17
- originalCookieHeader: string | undefined;
17
+ originalCookieHeader: string | undefined | null;
18
18
  /** The url of the request used to filter global cookies by domain */
19
19
  url: string;
20
20
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"build-request-cookie-header.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-cookie-header.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,qEAAqE,CAAA;AAa5E;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc,aAAa,EAAE,EAAE,sBAAsB,MAAM,GAAG,SAAS,KAAG,MAWzG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,gHAQtC;IACD,uEAAuE;IACvE,YAAY,EAAE,aAAa,EAAE,CAAA;IAC7B,qDAAqD;IACrD,aAAa,EAAE,aAAa,EAAE,CAAA;IAC9B,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3B,0EAA0E;IAC1E,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC,qEAAqE;IACrE,GAAG,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,qBAAqB,EAAE,OAAO,CAAA;IAC9B,0DAA0D;IAC1D,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/C,KAAG,IAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CA4BvC,CAAA"}
1
+ {"version":3,"file":"build-request-cookie-header.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-cookie-header.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,qEAAqE,CAAA;AAa5E;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc,aAAa,EAAE,EAAE,sBAAsB,MAAM,GAAG,SAAS,KAAG,MAWzG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,gHAQtC;IACD,uEAAuE;IACvE,YAAY,EAAE,aAAa,EAAE,CAAA;IAC7B,qDAAqD;IACrD,aAAa,EAAE,aAAa,EAAE,CAAA;IAC9B,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3B,0EAA0E;IAC1E,oBAAoB,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;IAC/C,qEAAqE;IACrE,GAAG,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,qBAAqB,EAAE,OAAO,CAAA;IAC9B,0DAA0D;IAC1D,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/C,KAAG,IAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CA4BvC,CAAA"}
@@ -22,7 +22,7 @@ const d = "We're using a `X-Scalar-Cookie` custom header to the request. The pro
22
22
  ...r,
23
23
  name: i(r.name, e),
24
24
  value: i(r.value, e)
25
- })), s = C([...l, ...a], t);
25
+ })), s = C([...l, ...a], t ?? void 0);
26
26
  return s ? u ? (console.warn(d), { name: "X-Scalar-Cookie", value: s }) : (console.warn(b), { name: "Cookie", value: s }) : null;
27
27
  };
28
28
  export {
@@ -9,7 +9,6 @@ import type { ParameterObject, ReferenceType } from '@scalar/workspace-store/sch
9
9
  * @param parameters - Unfiltered parameters
10
10
  * @param env - Environment variables flattened into a key-value object
11
11
  * @param exampleKey - The key of the current example
12
- * @param contentType - Content type for content based parameters
13
12
  * @returns A set of headers, cookies and url params
14
13
  */
15
14
  export declare const buildRequestParameters: (
@@ -1 +1 @@
1
- {"version":3,"file":"build-request-parameters.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-parameters.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,qEAAqE,CAAA;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAOlH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB;AACjC,qBAAqB;AACrB,aAAY,aAAa,CAAC,eAAe,CAAC,EAAO;AACjD,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qCAAqC;AACrC,aAAY,MAAkB,KAC7B;IACD,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,SAAS,EAAE,eAAe,CAAA;CAsG3B,CAAA"}
1
+ {"version":3,"file":"build-request-parameters.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,qEAAqE,CAAA;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAmBlH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB;AACjC,qBAAqB;AACrB,aAAY,aAAa,CAAC,eAAe,CAAC,EAAO;AACjD,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qCAAqC;AACrC,aAAY,MAAkB,KAC7B;IACD,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,SAAS,EAAE,eAAe,CAAA;CA8E3B,CAAA"}