@scalar/api-client 2.18.1 → 2.18.3

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 (277) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
  3. package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
  4. package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
  5. package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
  6. package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
  8. package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
  14. package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
  15. package/dist/components/DataTable/DataTable.vue.js +17 -17
  16. package/dist/components/DataTable/DataTableCell.vue.js +9 -9
  17. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  18. package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
  19. package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
  20. package/dist/components/DataTable/DataTableText.vue.js +10 -10
  21. package/dist/components/Form/Form.vue.js +32 -32
  22. package/dist/components/Form/LabelInput.vue2.js +15 -15
  23. package/dist/components/HelpfulLink.vue.js +7 -7
  24. package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
  25. package/dist/components/IconSelector.vue.js +16 -16
  26. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
  27. package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
  28. package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ScalarAsciiArt.vue2.js +16 -16
  32. package/dist/components/SectionFilter.vue2.js +21 -21
  33. package/dist/components/SectionFilterButton.vue.js +7 -7
  34. package/dist/components/Server/ServerDropdown.vue.js +32 -32
  35. package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
  36. package/dist/components/Server/ServerSelector.vue.js +27 -27
  37. package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
  38. package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
  39. package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
  40. package/dist/components/Server/types.d.ts +2 -1
  41. package/dist/components/Server/types.d.ts.map +1 -1
  42. package/dist/components/SideNav/SideNavLink.vue.js +18 -18
  43. package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
  44. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
  45. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
  46. package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
  47. package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
  48. package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
  49. package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
  50. package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
  51. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
  52. package/dist/data/httpHeaders.d.ts +2 -1
  53. package/dist/data/httpHeaders.d.ts.map +1 -1
  54. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  55. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  56. package/dist/libs/create-client.d.ts.map +1 -1
  57. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  58. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
  59. package/dist/plugins/hooks/usePluginManager.js +4 -4
  60. package/dist/plugins/index.d.ts +1 -1
  61. package/dist/plugins/index.d.ts.map +1 -1
  62. package/dist/plugins/index.js +5 -5
  63. package/dist/plugins/plugin-manager.d.ts +0 -2
  64. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  65. package/dist/routes.d.ts +0 -10
  66. package/dist/routes.d.ts.map +1 -1
  67. package/dist/routes.js +0 -1
  68. package/dist/store/security-schemes.d.ts.map +1 -1
  69. package/dist/store/store.d.ts.map +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
  72. package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
  73. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  74. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
  75. package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
  76. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
  77. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
  78. package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
  79. package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
  80. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
  81. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  82. package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
  83. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
  84. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
  85. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
  86. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
  87. package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
  88. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  89. package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
  90. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
  91. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
  92. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  93. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  94. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
  95. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
  96. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
  97. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
  98. package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
  99. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
  100. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  101. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
  102. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
  103. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  104. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
  105. package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
  106. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  107. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  108. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
  109. package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
  110. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
  111. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  112. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
  113. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
  114. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
  115. package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
  116. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
  117. package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
  118. package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
  119. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
  120. package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
  121. package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
  122. package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
  123. package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
  124. package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
  125. package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
  126. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
  127. package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
  128. package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
  129. package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
  130. package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
  131. package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
  132. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
  133. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
  134. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
  135. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
  136. package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
  137. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +69 -69
  138. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
  139. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
  140. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +29 -29
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
  144. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +75 -75
  145. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
  146. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  147. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
  148. package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
  149. package/dist/v2/components/data-table/DataTable.vue.js +17 -17
  150. package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
  151. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
  152. package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
  153. package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
  154. package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
  155. package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
  156. package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
  157. package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
  158. package/dist/v2/components/resize/Resize.vue2.js +11 -11
  159. package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
  160. package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
  161. package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
  162. package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
  163. package/dist/v2/features/app/App.vue.js +25 -25
  164. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  165. package/dist/v2/features/app/app-events.js +55 -61
  166. package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
  167. package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
  168. package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
  169. package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
  170. package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
  171. package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
  172. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
  173. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  174. package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
  175. package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
  176. package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
  177. package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
  178. package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
  179. package/dist/v2/features/collection/components/Environment.vue.js +10 -10
  180. package/dist/v2/features/collection/components/Form.vue.js +21 -21
  181. package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
  182. package/dist/v2/features/collection/components/Servers.vue.js +37 -37
  183. package/dist/v2/features/collection/components/Settings.vue.js +22 -22
  184. package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
  185. package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
  186. package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
  187. package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
  188. package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
  189. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
  190. package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
  191. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
  192. package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
  193. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
  194. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  195. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
  196. package/dist/v2/features/command-palette/types.d.ts +11 -10
  197. package/dist/v2/features/command-palette/types.d.ts.map +1 -1
  198. package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
  199. package/dist/v2/features/environments/components/Environment.vue.js +16 -16
  200. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
  201. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
  202. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
  203. package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
  204. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
  205. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
  206. package/dist/v2/features/modal/Modal.vue2.js +56 -56
  207. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -1
  208. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  209. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
  210. package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
  211. package/dist/v2/features/operation/Operation.vue.js +34 -34
  212. package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
  213. package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
  214. package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
  215. package/dist/v2/features/search/types.d.ts +5 -4
  216. package/dist/v2/features/search/types.d.ts.map +1 -1
  217. package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
  218. package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
  219. package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
  220. package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
  221. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  222. package/dist/v2/helpers/handle-hotkeys.js +0 -2
  223. package/dist/v2/helpers/plugins.d.ts +2 -2
  224. package/dist/v2/helpers/plugins.d.ts.map +1 -1
  225. package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
  226. package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
  227. package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
  228. package/dist/views/Cookies/CookieModal.vue2.js +26 -26
  229. package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
  230. package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
  231. package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
  232. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
  233. package/dist/views/Request/Request.vue2.js +55 -55
  234. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
  235. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
  236. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
  237. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  238. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
  239. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  240. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
  241. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
  242. package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
  243. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
  244. package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
  245. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
  246. package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
  247. package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
  248. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
  249. package/dist/views/Request/RequestSection/index.d.ts +1 -1
  250. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  251. package/dist/views/Request/RequestSection/index.js +4 -4
  252. package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
  253. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
  254. package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
  255. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
  256. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
  257. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
  258. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
  259. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
  260. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
  261. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
  262. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
  263. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
  264. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
  265. package/package.json +23 -23
  266. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
  267. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
  268. package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
  269. package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
  270. package/dist/components/ScreenReader.vue.d.ts +0 -20
  271. package/dist/components/ScreenReader.vue.d.ts.map +0 -1
  272. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
  273. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
  274. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
  275. package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
  276. package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
  277. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, computed as d, createElementBlock as r, openBlock as s, withModifiers as y, createCommentVNode as m, createBlock as x, normalizeClass as n, Fragment as g, renderList as k, createElementVNode as u, toDisplayString as w, unref as B, withCtx as U, createVNode as C } from "vue";
1
+ import { defineComponent as f, computed as d, createElementBlock as c, openBlock as a, withModifiers as y, createCommentVNode as m, createBlock as g, normalizeClass as s, Fragment as p, renderList as k, createElementVNode as u, toDisplayString as w, unref as B, withCtx as U, createVNode as C } from "vue";
2
2
  import A from "./RequestAuthTab.vue.js";
3
3
  import z from "../../../components/data-table/DataTable.vue.js";
4
4
  const N = ["onClick"], O = { class: "relative z-10 font-medium whitespace-nowrap" }, T = {
@@ -17,47 +17,47 @@ const N = ["onClick"], O = { class: "relative z-10 font-medium whitespace-nowrap
17
17
  eventBus: {},
18
18
  meta: {}
19
19
  },
20
- setup(t, { expose: h }) {
21
- const i = d(
22
- () => t.selectedSchemeOptions[t.activeAuthIndex]
23
- ), b = d(() => t.selectedSchemeOptions.length > 1), v = (e) => t.eventBus.emit("auth:update:active-index", {
24
- index: e,
25
- meta: t.meta
26
- }), p = (e, a) => t.eventBus.emit("auth:update:security-scheme", {
27
- payload: e,
28
- name: a
29
- }), S = (e) => t.eventBus.emit("auth:update:selected-scopes", {
30
- ...e,
31
- meta: t.meta
32
- }), o = (e) => t.activeAuthIndex === e;
20
+ setup(e, { expose: h }) {
21
+ const r = d(
22
+ () => e.selectedSchemeOptions[e.activeAuthIndex]
23
+ ), b = d(() => e.selectedSchemeOptions.length > 1), v = (t) => e.eventBus.emit("auth:update:active-index", {
24
+ index: t,
25
+ meta: e.meta
26
+ }), x = (t, n) => e.eventBus.emit("auth:update:security-scheme", {
27
+ payload: t,
28
+ name: n
29
+ }), S = (t) => e.eventBus.emit("auth:update:selected-scopes", {
30
+ ...t,
31
+ meta: e.meta
32
+ }), o = (t) => e.activeAuthIndex === t;
33
33
  return h({
34
- activeScheme: i
35
- }), (e, a) => (s(), r("form", {
36
- onSubmit: a[0] || (a[0] = y(() => {
34
+ activeScheme: r
35
+ }), (t, n) => (a(), c("form", {
36
+ onSubmit: n[0] || (n[0] = y(() => {
37
37
  }, ["prevent"]))
38
38
  }, [
39
- b.value ? (s(), r("div", {
39
+ b.value ? (a(), c("div", {
40
40
  key: 0,
41
- class: n(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", { "border-x-0": !e.isStatic }]),
41
+ class: s(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", { "border-x-0": !e.isStatic }]),
42
42
  "data-testid": "auth-tabs"
43
43
  }, [
44
- (s(!0), r(g, null, k(e.selectedSchemeOptions, (l, c) => (s(), r("div", {
44
+ (a(!0), c(p, null, k(e.selectedSchemeOptions, (l, i) => (a(), c("div", {
45
45
  key: l.id,
46
46
  class: "relative z-1 -mb-[var(--scalar-border-width)] flex h-8"
47
47
  }, [
48
48
  u("button", {
49
- class: n(["floating-bg relative cursor-pointer border-b border-transparent py-1 text-sm font-medium transition-colors", o(c) ? "text-c-1" : "text-c-3"]),
49
+ class: s(["floating-bg relative cursor-pointer border-b border-transparent py-1 text-sm font-medium transition-colors", o(i) ? "text-c-1" : "text-c-3"]),
50
50
  type: "button",
51
- onClick: (I) => v(c)
51
+ onClick: (I) => v(i)
52
52
  }, [
53
53
  u("span", O, w(l.label), 1)
54
54
  ], 10, N),
55
- o(c) ? (s(), r("div", T)) : m("", !0)
55
+ o(i) ? (a(), c("div", T)) : m("", !0)
56
56
  ]))), 128))
57
57
  ], 2)) : m("", !0),
58
- i.value ? (s(), x(B(z), {
58
+ r.value ? (a(), g(B(z), {
59
59
  key: 1,
60
- class: n(["flex-1", { "bg-b-1 rounded-b-lg border border-t-0": e.isStatic }]),
60
+ class: s(["flex-1", { "bg-b-1 rounded-b-lg border border-t-0": e.isStatic }]),
61
61
  columns: [""],
62
62
  presentational: ""
63
63
  }, {
@@ -67,16 +67,16 @@ const N = ["onClick"], O = { class: "relative z-10 font-medium whitespace-nowrap
67
67
  isStatic: e.isStatic,
68
68
  proxyUrl: e.proxyUrl,
69
69
  securitySchemes: e.securitySchemes,
70
- selectedSecuritySchemas: i.value.value,
70
+ selectedSecuritySchemas: r.value.value,
71
71
  server: e.server,
72
- "onUpdate:securityScheme": p,
72
+ "onUpdate:securityScheme": x,
73
73
  "onUpdate:selectedScopes": S
74
74
  }, null, 8, ["environment", "isStatic", "proxyUrl", "securitySchemes", "selectedSecuritySchemas", "server"])
75
75
  ]),
76
76
  _: 1
77
- }, 8, ["class"])) : (s(), r("div", {
77
+ }, 8, ["class"])) : (a(), c("div", {
78
78
  key: 2,
79
- class: n(["bg-b-1 text-c-3 flex min-h-16 items-center justify-center border-t px-4 text-sm", { "min-h-[calc(4rem+0.5px)] rounded-b-lg border": e.isStatic }])
79
+ class: s(["bg-b-1 text-c-3 flex min-h-16 items-center justify-center border-t px-4 text-sm", { "min-h-[calc(4rem+0.5px)] rounded-b-lg border": e.isStatic }])
80
80
  }, " No authentication selected ", 2))
81
81
  ], 32));
82
82
  }
@@ -1,8 +1,8 @@
1
- import { defineComponent as p, mergeModels as u, useModel as f, useId as V, createBlock as y, openBlock as v, unref as o, mergeProps as C, withCtx as d, renderSlot as s, createElementVNode as B } from "vue";
2
- import b from "../../../components/data-table/DataTableInput.vue.js";
3
- const q = ["for"], $ = /* @__PURE__ */ p({
1
+ import { defineComponent as f, mergeModels as d, useModel as p, useId as V, createBlock as y, openBlock as c, unref as a, mergeProps as v, withCtx as i, renderSlot as s, createElementVNode as C } from "vue";
2
+ import B from "../../../components/data-table/DataTableInput.vue.js";
3
+ const b = ["for"], O = /* @__PURE__ */ f({
4
4
  __name: "RequestAuthDataTableInput",
5
- props: /* @__PURE__ */ u({
5
+ props: /* @__PURE__ */ d({
6
6
  containerClass: {},
7
7
  environment: {},
8
8
  readOnly: { type: Boolean, default: !1 },
@@ -12,35 +12,35 @@ const q = ["for"], $ = /* @__PURE__ */ p({
12
12
  modelValue: { default: "", required: !0 },
13
13
  modelModifiers: {}
14
14
  }),
15
- emits: /* @__PURE__ */ u(["inputFocus", "inputBlur", "selectVariable"], ["update:modelValue"]),
16
- setup(i, { emit: m }) {
17
- const t = m, r = f(i, "modelValue"), a = V();
18
- return (e, n) => (v(), y(o(b), C({ id: o(a) }, e.$attrs, {
19
- modelValue: r.value,
20
- "onUpdate:modelValue": n[0] || (n[0] = (l) => r.value = l),
21
- canAddCustomEnumValue: !e.readOnly,
22
- containerClass: e.containerClass,
23
- environment: e.environment,
15
+ emits: /* @__PURE__ */ d(["inputFocus", "inputBlur", "selectVariable"], ["update:modelValue"]),
16
+ setup(t, { emit: m }) {
17
+ const l = m, u = p(t, "modelValue"), r = V();
18
+ return (o, e) => (c(), y(a(B), v({ id: a(r) }, o.$attrs, {
19
+ modelValue: u.value,
20
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => u.value = n),
21
+ canAddCustomEnumValue: !t.readOnly,
22
+ containerClass: t.containerClass,
23
+ environment: t.environment,
24
24
  lineWrapping: "",
25
- readOnly: e.readOnly,
26
- required: e.required,
27
- type: e.type,
28
- onInputBlur: n[1] || (n[1] = (l) => t("inputBlur")),
29
- onInputFocus: n[2] || (n[2] = (l) => t("inputFocus")),
30
- onSelectVariable: n[3] || (n[3] = (l) => t("selectVariable", l))
25
+ readOnly: t.readOnly,
26
+ required: t.required,
27
+ type: t.type,
28
+ onInputBlur: e[1] || (e[1] = (n) => l("inputBlur")),
29
+ onInputFocus: e[2] || (e[2] = (n) => l("inputFocus")),
30
+ onSelectVariable: e[3] || (e[3] = (n) => l("selectVariable", n))
31
31
  }), {
32
- default: d(() => [
33
- B("label", { for: o(a) }, [
34
- s(e.$slots, "default")
35
- ], 8, q)
32
+ default: i(() => [
33
+ C("label", { for: a(r) }, [
34
+ s(o.$slots, "default")
35
+ ], 8, b)
36
36
  ]),
37
- icon: d(() => [
38
- s(e.$slots, "icon")
37
+ icon: i(() => [
38
+ s(o.$slots, "icon")
39
39
  ]),
40
40
  _: 3
41
41
  }, 16, ["id", "modelValue", "canAddCustomEnumValue", "containerClass", "environment", "readOnly", "required", "type"]));
42
42
  }
43
43
  });
44
44
  export {
45
- $ as default
45
+ O as default
46
46
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as O, computed as j, ref as A, createElementBlock as i, openBlock as l, Fragment as d, renderList as g, createBlock as y, createCommentVNode as m, unref as u, withCtx as r, createVNode as s, createElementVNode as V, toDisplayString as N, createTextVNode as v, normalizeClass as R, capitalize as P } from "vue";
2
- import { ScalarMarkdownSummary as Q } from "@scalar/components";
1
+ import { defineComponent as A, computed as N, ref as P, createElementBlock as u, openBlock as l, Fragment as c, renderList as g, createBlock as y, createCommentVNode as f, unref as d, withCtx as r, createVNode as i, createElementVNode as V, toDisplayString as R, createTextVNode as v, normalizeClass as z, capitalize as Q } from "vue";
2
+ import { ScalarMarkdownSummary as _ } from "@scalar/components";
3
3
  import { getResolvedRef as q } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
4
  import D from "./OAuth2.vue.js";
5
5
  import b from "./RequestAuthDataTableInput.vue.js";
6
- import p from "../../../components/data-table/DataTableRow.vue.js";
7
- import z from "../../../components/data-table/DataTableCell.vue.js";
8
- const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, H = { class: "flex min-h-8 border-t text-base" }, L = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, G = ["onClick"], J = { class: "relative z-10" }, ae = /* @__PURE__ */ O({
6
+ import m from "../../../components/data-table/DataTableRow.vue.js";
7
+ import I from "../../../components/data-table/DataTableCell.vue.js";
8
+ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, H = { class: "flex min-h-8 border-t text-base" }, L = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, G = ["onClick"], J = { class: "relative z-10" }, le = /* @__PURE__ */ A({
9
9
  __name: "RequestAuthTab",
10
10
  props: {
11
11
  environment: {},
@@ -16,74 +16,74 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
16
16
  server: {}
17
17
  },
18
18
  emits: ["update:securityScheme", "update:selectedScopes"],
19
- setup(f, { emit: I }) {
20
- const x = I, $ = j(
21
- () => Object.entries(f.selectedSecuritySchemas).map(([o, t = []]) => ({
22
- scheme: q(f.securitySchemes[o]),
19
+ setup(n, { emit: K }) {
20
+ const x = K, $ = N(
21
+ () => Object.entries(n.selectedSecuritySchemas).map(([o, t = []]) => ({
22
+ scheme: q(n.securitySchemes[o]),
23
23
  name: o,
24
24
  scopes: t
25
25
  }))
26
- ), w = A(""), C = j(() => $.value.length > 1), _ = (o, t) => {
27
- const e = P(o), a = t.description ? `: ${t.description}` : "";
26
+ ), w = P(""), C = N(() => $.value.length > 1), F = (o, t) => {
27
+ const e = Q(o), a = t.description ? `: ${t.description}` : "";
28
28
  switch (t.type) {
29
29
  case "apiKey":
30
30
  return `${e}${a || `: ${t.in}`}`;
31
31
  case "oauth2": {
32
- const k = Object.keys(t.flows ?? {})[0], n = w.value || k;
33
- return `${e}: ${n}${a}`;
32
+ const k = Object.keys(t.flows ?? {})[0], s = w.value || k;
33
+ return `${e}: ${s}${a}`;
34
34
  }
35
35
  case "http":
36
36
  return `${e}: ${t.scheme}${a}`;
37
37
  default:
38
38
  return `${e}${a || `: ${t.type}`}`;
39
39
  }
40
- }, F = (o, t) => w.value === o || t === 0 && !w.value, T = () => f.isStatic && "border-t", h = (o, t, e) => x(
40
+ }, T = (o, t) => w.value === o || t === 0 && !w.value, B = () => n.isStatic && "border-t", h = (o, t, e) => x(
41
41
  "update:securityScheme",
42
42
  {
43
43
  type: "http",
44
44
  [o]: t
45
45
  },
46
46
  e
47
- ), B = (o, t, e) => x(
47
+ ), j = (o, t, e) => x(
48
48
  "update:securityScheme",
49
49
  {
50
50
  type: "apiKey",
51
51
  [o]: t
52
52
  },
53
53
  e
54
- ), K = (o, t) => {
54
+ ), M = (o, t) => {
55
55
  x("update:selectedScopes", {
56
- id: Object.keys(f.selectedSecuritySchemas),
56
+ id: Object.keys(n.selectedSecuritySchemas),
57
57
  name: o,
58
58
  ...t
59
59
  });
60
- }, M = (o, t) => {
60
+ }, O = (o, t) => {
61
61
  const e = "floating-bg text-c-3 relative cursor-pointer border-b border-transparent py-1 text-base font-medium";
62
- return F(o, t) ? `${e} !text-c-1 !rounded-none border-b !border-current ${f.isStatic ? "opacity-100" : ""}` : e;
62
+ return T(o, t) ? `${e} !text-c-1 !rounded-none border-b !border-current ${n.isStatic ? "opacity-100" : ""}` : e;
63
63
  };
64
- return (o, t) => (l(!0), i(d, null, g($.value, ({ scheme: e, name: a, scopes: k }) => (l(), i(d, { key: a }, [
65
- C.value && e ? (l(), y(u(p), { key: 0 }, {
64
+ return (o, t) => (l(!0), u(c, null, g($.value, ({ scheme: e, name: a, scopes: k }) => (l(), u(c, { key: a }, [
65
+ C.value && e ? (l(), y(d(m), { key: 0 }, {
66
66
  default: r(() => [
67
- s(u(z), {
68
- "aria-label": _(a, e),
67
+ i(d(I), {
68
+ "aria-label": F(a, e),
69
69
  class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
70
70
  }, {
71
71
  default: r(() => [
72
- V("p", E, N(_(a, e)), 1)
72
+ V("p", E, R(F(a, e)), 1)
73
73
  ]),
74
74
  _: 2
75
75
  }, 1032, ["aria-label"])
76
76
  ]),
77
77
  _: 2
78
- }, 1024)) : m("", !0),
79
- e?.description && !C.value ? (l(), y(u(p), { key: 1 }, {
78
+ }, 1024)) : f("", !0),
79
+ e?.description && !C.value ? (l(), y(d(m), { key: 1 }, {
80
80
  default: r(() => [
81
- s(u(z), {
81
+ i(d(I), {
82
82
  "aria-label": e.description,
83
83
  class: "max-h-[auto]"
84
84
  }, {
85
85
  default: r(() => [
86
- s(u(Q), {
86
+ i(d(_), {
87
87
  class: "auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",
88
88
  value: e.description
89
89
  }, null, 8, ["value"])
@@ -92,17 +92,17 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
92
92
  }, 1032, ["aria-label"])
93
93
  ]),
94
94
  _: 2
95
- }, 1024)) : m("", !0),
96
- e?.type === "http" ? (l(), i(d, { key: 2 }, [
97
- e.scheme === "bearer" ? (l(), y(u(p), { key: 0 }, {
95
+ }, 1024)) : f("", !0),
96
+ e?.type === "http" ? (l(), u(c, { key: 2 }, [
97
+ e.scheme === "bearer" ? (l(), y(d(m), { key: 0 }, {
98
98
  default: r(() => [
99
- s(b, {
100
- containerClass: T(),
101
- environment: o.environment,
99
+ i(b, {
100
+ containerClass: B(),
101
+ environment: n.environment,
102
102
  modelValue: e["x-scalar-secret-token"],
103
103
  placeholder: "Token",
104
104
  type: "password",
105
- "onUpdate:modelValue": (n) => h("x-scalar-secret-token", n, a)
105
+ "onUpdate:modelValue": (s) => h("x-scalar-secret-token", s, a)
106
106
  }, {
107
107
  default: r(() => [...t[0] || (t[0] = [
108
108
  v(" Bearer Token ", -1)
@@ -111,16 +111,16 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
111
111
  }, 8, ["containerClass", "environment", "modelValue", "onUpdate:modelValue"])
112
112
  ]),
113
113
  _: 2
114
- }, 1024)) : e?.scheme === "basic" ? (l(), i(d, { key: 1 }, [
115
- s(u(p), null, {
114
+ }, 1024)) : e?.scheme === "basic" ? (l(), u(c, { key: 1 }, [
115
+ i(d(m), null, {
116
116
  default: r(() => [
117
- s(b, {
117
+ i(b, {
118
118
  class: "text-c-2",
119
- environment: o.environment,
119
+ environment: n.environment,
120
120
  modelValue: e["x-scalar-secret-username"],
121
121
  placeholder: "janedoe",
122
122
  required: "",
123
- "onUpdate:modelValue": (n) => h("x-scalar-secret-username", n, a)
123
+ "onUpdate:modelValue": (s) => h("x-scalar-secret-username", s, a)
124
124
  }, {
125
125
  default: r(() => [...t[1] || (t[1] = [
126
126
  v(" Username ", -1)
@@ -130,14 +130,14 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
130
130
  ]),
131
131
  _: 2
132
132
  }, 1024),
133
- s(u(p), null, {
133
+ i(d(m), null, {
134
134
  default: r(() => [
135
- s(b, {
136
- environment: o.environment,
135
+ i(b, {
136
+ environment: n.environment,
137
137
  modelValue: e["x-scalar-secret-password"],
138
138
  placeholder: "********",
139
139
  type: "password",
140
- "onUpdate:modelValue": (n) => h("x-scalar-secret-password", n, a)
140
+ "onUpdate:modelValue": (s) => h("x-scalar-secret-password", s, a)
141
141
  }, {
142
142
  default: r(() => [...t[2] || (t[2] = [
143
143
  v(" Password ", -1)
@@ -147,16 +147,16 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
147
147
  ]),
148
148
  _: 2
149
149
  }, 1024)
150
- ], 64)) : m("", !0)
151
- ], 64)) : e?.type === "apiKey" ? (l(), i(d, { key: 3 }, [
152
- s(u(p), null, {
150
+ ], 64)) : f("", !0)
151
+ ], 64)) : e?.type === "apiKey" ? (l(), u(c, { key: 3 }, [
152
+ i(d(m), null, {
153
153
  default: r(() => [
154
- s(b, {
155
- containerClass: T(),
156
- environment: o.environment,
154
+ i(b, {
155
+ containerClass: B(),
156
+ environment: n.environment,
157
157
  modelValue: e.name,
158
158
  placeholder: "api-key",
159
- "onUpdate:modelValue": (n) => B("name", n, a)
159
+ "onUpdate:modelValue": (s) => j("name", s, a)
160
160
  }, {
161
161
  default: r(() => [...t[3] || (t[3] = [
162
162
  v(" Name ", -1)
@@ -166,14 +166,14 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
166
166
  ]),
167
167
  _: 2
168
168
  }, 1024),
169
- s(u(p), null, {
169
+ i(d(m), null, {
170
170
  default: r(() => [
171
- s(b, {
172
- environment: o.environment,
171
+ i(b, {
172
+ environment: n.environment,
173
173
  modelValue: e["x-scalar-secret-token"],
174
174
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
175
175
  type: "password",
176
- "onUpdate:modelValue": (n) => B("x-scalar-secret-token", n, a)
176
+ "onUpdate:modelValue": (s) => j("x-scalar-secret-token", s, a)
177
177
  }, {
178
178
  default: r(() => [...t[4] || (t[4] = [
179
179
  v(" Value ", -1)
@@ -183,44 +183,44 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
183
183
  ]),
184
184
  _: 2
185
185
  }, 1024)
186
- ], 64)) : e?.type === "oauth2" ? (l(), i(d, { key: 4 }, [
187
- Object.keys(e.flows).length > 1 ? (l(), y(u(p), { key: 0 }, {
186
+ ], 64)) : e?.type === "oauth2" ? (l(), u(c, { key: 4 }, [
187
+ Object.keys(e.flows).length > 1 ? (l(), y(d(m), { key: 0 }, {
188
188
  default: r(() => [
189
189
  V("div", H, [
190
190
  V("div", L, [
191
- (l(!0), i(d, null, g(e.flows, (n, c, U) => (l(), i("button", {
192
- key: c,
193
- class: R(M(c, U)),
191
+ (l(!0), u(c, null, g(e.flows, (s, p, U) => (l(), u("button", {
192
+ key: p,
193
+ class: z(O(p, U)),
194
194
  type: "button",
195
- onClick: (S) => w.value = c
195
+ onClick: (S) => w.value = p
196
196
  }, [
197
- V("span", J, N(c), 1)
197
+ V("span", J, R(p), 1)
198
198
  ], 10, G))), 128))
199
199
  ])
200
200
  ])
201
201
  ]),
202
202
  _: 2
203
- }, 1024)) : m("", !0),
204
- (l(!0), i(d, null, g(e.flows, (n, c, U) => (l(), i(d, { key: c }, [
205
- F(c, U) ? (l(), y(D, {
203
+ }, 1024)) : f("", !0),
204
+ (l(!0), u(c, null, g(e.flows, (s, p, U) => (l(), u(c, { key: p }, [
205
+ T(p, U) ? (l(), y(D, {
206
206
  key: 0,
207
- environment: o.environment,
207
+ environment: n.environment,
208
208
  flows: e.flows,
209
- proxyUrl: o.proxyUrl,
209
+ proxyUrl: n.proxyUrl,
210
210
  selectedScopes: k,
211
- server: o.server,
212
- type: c,
211
+ server: n.server,
212
+ type: p,
213
213
  "onUpdate:securityScheme": (S) => x("update:securityScheme", S, a),
214
- "onUpdate:selectedScopes": (S) => K(a, S)
215
- }, null, 8, ["environment", "flows", "proxyUrl", "selectedScopes", "server", "type", "onUpdate:securityScheme", "onUpdate:selectedScopes"])) : m("", !0)
214
+ "onUpdate:selectedScopes": (S) => M(a, S)
215
+ }, null, 8, ["environment", "flows", "proxyUrl", "selectedScopes", "server", "type", "onUpdate:securityScheme", "onUpdate:selectedScopes"])) : f("", !0)
216
216
  ], 64))), 128))
217
- ], 64)) : e?.type === "openIdConnect" ? (l(), i("div", {
217
+ ], 64)) : e?.type === "openIdConnect" ? (l(), u("div", {
218
218
  key: 5,
219
- class: R(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": o.isStatic }])
220
- }, " Coming soon ", 2)) : m("", !0)
219
+ class: z(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": n.isStatic }])
220
+ }, " Coming soon ", 2)) : f("", !0)
221
221
  ], 64))), 128));
222
222
  }
223
223
  });
224
224
  export {
225
- ae as default
225
+ le as default
226
226
  };
@@ -1,16 +1,5 @@
1
1
  import type { OAuthFlowsObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  import type { ErrorResponse } from '../../../../libs/errors.js';
3
- /** Oauth2 security schemes which are not implicit */
4
- type NonImplicitFlows = Omit<OAuthFlowsObject, 'implicit'>;
5
- type PKCEState = {
6
- codeVerifier: string;
7
- codeChallenge: string;
8
- codeChallengeMethod: string;
9
- };
10
- /**
11
- * Creates a code challenge from the code verifier
12
- */
13
- export declare const generateCodeChallenge: (verifier: string, encoding: "SHA-256" | "plain") => Promise<string>;
14
3
  /**
15
4
  * Authorize oauth2 flow
16
5
  *
@@ -21,14 +10,4 @@ export declare const authorizeOauth2: (flows: OAuthFlowsObject, type: keyof OAut
21
10
  activeServer: ServerObject | null,
22
11
  /** If we want to use the proxy */
23
12
  proxyUrl: string) => Promise<ErrorResponse<string>>;
24
- /**
25
- * Makes the BE authorization call to grab the token server to server
26
- * Used for clientCredentials and authorizationCode
27
- */
28
- export declare const authorizeServers: (flows: NonImplicitFlows, type: keyof NonImplicitFlows, scopes: string, { code, pkce, proxyUrl, }: {
29
- code?: string;
30
- pkce?: PKCEState | null;
31
- proxyUrl?: string;
32
- } | undefined, activeServer: ServerObject | null) => Promise<ErrorResponse<string>>;
33
- export {};
34
13
  //# sourceMappingURL=oauth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAE1D,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAkB3G,CAAA;AAED;;;;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,CAiL/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,QAAQ,MAAM,EACd,2BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,YAAK,EACN,cAAc,YAAY,GAAG,IAAI,KAChC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAwF/B,CAAA"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAgDlD;;;;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,CAiL/B,CAAA"}
@@ -124,7 +124,5 @@ const S = () => {
124
124
  }
125
125
  };
126
126
  export {
127
- L as authorizeOauth2,
128
- U as authorizeServers,
129
- z as generateCodeChallenge
127
+ L as authorizeOauth2
130
128
  };