@scalar/api-client 2.2.48 → 2.2.50

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 (217) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts +15 -3
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBar.vue2.js +102 -94
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -0
  7. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  9. package/dist/components/AddressBar/AddressBarHistory.vue2.js +54 -58
  10. package/dist/components/CodeInput/CodeInput.vue.d.ts +9 -0
  11. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  12. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  13. package/dist/components/CodeInput/CodeInput.vue2.js +95 -93
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  15. package/dist/components/CodeInput/codeVariableWidget.js +1 -3
  16. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -22
  18. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +13 -13
  20. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
  22. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +54 -49
  24. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  25. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +9 -9
  26. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  27. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  28. package/dist/components/DataTable/DataTableCell.vue.js +11 -8
  29. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -0
  30. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  31. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  32. package/dist/components/DataTable/DataTableInput.vue2.js +36 -30
  33. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  34. package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -15
  35. package/dist/components/Form/Form.vue.d.ts +3 -1
  36. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  37. package/dist/components/Form/Form.vue.js +30 -25
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  39. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +41 -41
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +24 -24
  41. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  42. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  43. package/dist/components/Server/ServerDropdown.vue.js +13 -13
  44. package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
  45. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  46. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  47. package/dist/components/Server/ServerDropdownItem.vue2.js +19 -19
  48. package/dist/layouts/App/create-api-client-app.d.ts +387 -477
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/Modal/create-api-client-modal.d.ts +774 -954
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  52. package/dist/layouts/Web/create-api-client-web.d.ts +387 -477
  53. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  54. package/dist/libs/create-client.d.ts +390 -479
  55. package/dist/libs/create-client.d.ts.map +1 -1
  56. package/dist/libs/create-client.js +3 -15
  57. package/dist/libs/env-helpers.d.ts.map +1 -1
  58. package/dist/libs/find-request.d.ts +7 -7
  59. package/dist/libs/find-request.d.ts.map +1 -1
  60. package/dist/libs/hot-keys.d.ts +3 -1
  61. package/dist/libs/hot-keys.d.ts.map +1 -1
  62. package/dist/libs/hot-keys.js +11 -15
  63. package/dist/libs/hot-keys.test.d.ts +2 -0
  64. package/dist/libs/hot-keys.test.d.ts.map +1 -0
  65. package/dist/libs/index.js +27 -26
  66. package/dist/libs/send-request/build-request-security.d.ts +1 -1
  67. package/dist/libs/send-request/build-request-security.js +19 -16
  68. package/dist/libs/send-request/create-request-operation.test.d.ts +10 -10
  69. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  70. package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
  71. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  72. package/dist/libs/send-request/set-request-cookies.js +37 -34
  73. package/dist/store/active-entities.d.ts +58 -67
  74. package/dist/store/active-entities.d.ts.map +1 -1
  75. package/dist/store/active-entities.js +61 -74
  76. package/dist/store/collections.d.ts +90 -90
  77. package/dist/store/collections.d.ts.map +1 -1
  78. package/dist/store/collections.js +4 -17
  79. package/dist/store/cookies.d.ts +14 -14
  80. package/dist/store/environment.d.ts +19 -18
  81. package/dist/store/environment.d.ts.map +1 -1
  82. package/dist/store/environment.js +2 -8
  83. package/dist/store/import-spec.d.ts +16 -106
  84. package/dist/store/import-spec.d.ts.map +1 -1
  85. package/dist/store/import-spec.js +9 -14
  86. package/dist/store/request-example.d.ts +25 -25
  87. package/dist/store/request-example.d.ts.map +1 -1
  88. package/dist/store/request-example.js +15 -20
  89. package/dist/store/requests.d.ts +84 -84
  90. package/dist/store/requests.d.ts.map +1 -1
  91. package/dist/store/requests.js +17 -40
  92. package/dist/store/router-params.d.ts +13 -11
  93. package/dist/store/router-params.d.ts.map +1 -1
  94. package/dist/store/router-params.js +5 -5
  95. package/dist/store/security-schemes.d.ts +58 -58
  96. package/dist/store/security-schemes.d.ts.map +1 -1
  97. package/dist/store/security-schemes.js +1 -3
  98. package/dist/store/servers.d.ts +17 -17
  99. package/dist/store/servers.d.ts.map +1 -1
  100. package/dist/store/servers.js +2 -9
  101. package/dist/store/store.d.ts +387 -477
  102. package/dist/store/store.d.ts.map +1 -1
  103. package/dist/store/store.js +2 -4
  104. package/dist/store/tags.d.ts +28 -28
  105. package/dist/store/tags.d.ts.map +1 -1
  106. package/dist/store/tags.js +19 -34
  107. package/dist/store/workspace.d.ts +36 -36
  108. package/dist/store/workspace.d.ts.map +1 -1
  109. package/dist/store/workspace.js +1 -5
  110. package/dist/style.css +1 -1
  111. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  112. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  113. package/dist/views/Cookies/CookieForm.vue.js +18 -18
  114. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  116. package/dist/views/Cookies/Cookies.vue2.js +24 -24
  117. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  118. package/dist/views/Environment/Environment.vue2.js +140 -132
  119. package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -2
  120. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  121. package/dist/views/Environment/EnvironmentModal.vue.js +15 -15
  122. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  123. package/dist/views/Request/Request.vue.js +2 -2
  124. package/dist/views/Request/Request.vue2.js +160 -141
  125. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
  126. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -7
  128. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +6 -2
  129. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +99 -95
  131. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +4 -0
  132. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +70 -64
  135. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +4 -0
  136. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  138. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +40 -34
  139. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -0
  140. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +32 -26
  142. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +4 -0
  143. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  145. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +93 -85
  146. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +9 -0
  147. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  148. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  149. package/dist/views/Request/RequestSection/RequestBody.vue2.js +214 -244
  150. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +10 -1
  151. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  152. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  153. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +77 -80
  154. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
  155. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  156. package/dist/views/Request/RequestSection/RequestParams.vue.js +89 -96
  157. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +10 -2
  158. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  159. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +59 -66
  160. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +11 -0
  161. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  162. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  163. package/dist/views/Request/RequestSection/RequestSection.vue2.js +176 -155
  164. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +6 -0
  165. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  166. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  167. package/dist/views/Request/RequestSection/RequestTable.vue2.js +97 -100
  168. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  169. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
  170. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +31 -22
  171. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +2 -2
  172. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
  173. package/dist/views/Request/RequestSection/helpers/getting-started.js +11 -13
  174. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  175. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  176. package/dist/views/Request/RequestSidebar.vue2.js +50 -48
  177. package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
  178. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  179. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  180. package/dist/views/Request/RequestSidebarItem.vue2.js +38 -44
  181. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +10 -0
  182. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  183. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  184. package/dist/views/Request/RequestSubpageHeader.vue2.js +77 -69
  185. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +7 -7
  186. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
  187. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  188. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  189. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +41 -39
  190. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
  191. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  192. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  193. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
  194. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  195. package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
  196. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  197. package/dist/views/Request/handle-drag.d.ts +1 -1
  198. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  199. package/dist/views/Request/handle-drag.js +38 -55
  200. package/dist/views/Request/libs/auth.d.ts +2 -2
  201. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  202. package/dist/views/Request/libs/auth.js +28 -29
  203. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  204. package/dist/views/Request/libs/oauth2.js +42 -65
  205. package/dist/views/Request/libs/request.d.ts +5 -0
  206. package/dist/views/Request/libs/request.d.ts.map +1 -1
  207. package/dist/views/Request/libs/request.js +37 -2
  208. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  209. package/dist/views/Request/libs/watch-mode.js +10 -34
  210. package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
  211. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  212. package/dist/views/Servers/ServerForm.vue.js +21 -22
  213. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  214. package/dist/views/Servers/Servers.vue2.js +73 -81
  215. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  216. package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
  217. package/package.json +14 -14
@@ -1,18 +1,18 @@
1
1
  import type { StoreContext } from '../store/store-context';
2
- import { type SecuritySchemePayload } from '@scalar/oas-utils/entities/spec';
2
+ import { type Collection, type SecurityScheme, type SecuritySchemePayload } from '@scalar/oas-utils/entities/spec';
3
3
  /** Create storage entities for security schemes */
4
4
  export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
5
5
  securitySchemes: Record<string, {
6
6
  type: "apiKey";
7
7
  value: string;
8
- uid: string;
8
+ uid: string & import("zod").BRAND<"securityScheme">;
9
9
  name: string;
10
10
  nameKey: string;
11
- in: "query" | "header" | "cookie";
11
+ in: "cookie" | "query" | "header";
12
12
  description?: string | undefined;
13
13
  } | {
14
14
  type: "http";
15
- uid: string;
15
+ uid: string & import("zod").BRAND<"securityScheme">;
16
16
  nameKey: string;
17
17
  scheme: "basic" | "bearer";
18
18
  bearerFormat: string;
@@ -22,13 +22,13 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
22
22
  description?: string | undefined;
23
23
  } | {
24
24
  type: "openIdConnect";
25
- uid: string;
25
+ uid: string & import("zod").BRAND<"securityScheme">;
26
26
  nameKey: string;
27
27
  openIdConnectUrl: string;
28
28
  description?: string | undefined;
29
29
  } | {
30
30
  type: "oauth2";
31
- uid: string;
31
+ uid: string & import("zod").BRAND<"securityScheme">;
32
32
  nameKey: string;
33
33
  flows: {
34
34
  password?: {
@@ -83,14 +83,14 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
83
83
  add: (item: {
84
84
  type: "apiKey";
85
85
  value: string;
86
- uid: string;
86
+ uid: string & import("zod").BRAND<"securityScheme">;
87
87
  name: string;
88
88
  nameKey: string;
89
- in: "query" | "header" | "cookie";
89
+ in: "cookie" | "query" | "header";
90
90
  description?: string | undefined;
91
91
  } | {
92
92
  type: "http";
93
- uid: string;
93
+ uid: string & import("zod").BRAND<"securityScheme">;
94
94
  nameKey: string;
95
95
  scheme: "basic" | "bearer";
96
96
  bearerFormat: string;
@@ -100,13 +100,13 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
100
100
  description?: string | undefined;
101
101
  } | {
102
102
  type: "openIdConnect";
103
- uid: string;
103
+ uid: string & import("zod").BRAND<"securityScheme">;
104
104
  nameKey: string;
105
105
  openIdConnectUrl: string;
106
106
  description?: string | undefined;
107
107
  } | {
108
108
  type: "oauth2";
109
- uid: string;
109
+ uid: string & import("zod").BRAND<"securityScheme">;
110
110
  nameKey: string;
111
111
  flows: {
112
112
  password?: {
@@ -157,18 +157,18 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
157
157
  };
158
158
  description?: string | undefined;
159
159
  }) => void;
160
- delete: (uid: string) => void;
160
+ delete: (uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined) => void;
161
161
  set: (item: {
162
162
  type: "apiKey";
163
163
  value: string;
164
- uid: string;
164
+ uid: string & import("zod").BRAND<"securityScheme">;
165
165
  name: string;
166
166
  nameKey: string;
167
- in: "query" | "header" | "cookie";
167
+ in: "cookie" | "query" | "header";
168
168
  description?: string | undefined;
169
169
  } | {
170
170
  type: "http";
171
- uid: string;
171
+ uid: string & import("zod").BRAND<"securityScheme">;
172
172
  nameKey: string;
173
173
  scheme: "basic" | "bearer";
174
174
  bearerFormat: string;
@@ -178,13 +178,13 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
178
178
  description?: string | undefined;
179
179
  } | {
180
180
  type: "openIdConnect";
181
- uid: string;
181
+ uid: string & import("zod").BRAND<"securityScheme">;
182
182
  nameKey: string;
183
183
  openIdConnectUrl: string;
184
184
  description?: string | undefined;
185
185
  } | {
186
186
  type: "oauth2";
187
- uid: string;
187
+ uid: string & import("zod").BRAND<"securityScheme">;
188
188
  nameKey: string;
189
189
  flows: {
190
190
  password?: {
@@ -235,33 +235,33 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
235
235
  };
236
236
  description?: string | undefined;
237
237
  }) => void;
238
- edit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: string, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
238
+ edit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: (string & import("zod").BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
239
239
  type: "apiKey";
240
240
  value: string;
241
- uid: string;
241
+ uid: string & import("zod").BRAND<"securityScheme">;
242
242
  name: string;
243
243
  nameKey: string;
244
- in: "query" | "header" | "cookie";
244
+ in: "cookie" | "query" | "header";
245
245
  description?: string | undefined;
246
246
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? R extends import("@scalar/object-utils/nested").Path<{
247
247
  type: "apiKey";
248
248
  value: string;
249
- uid: string;
249
+ uid: string & import("zod").BRAND<"securityScheme">;
250
250
  name: string;
251
251
  nameKey: string;
252
- in: "query" | "header" | "cookie";
252
+ in: "cookie" | "query" | "header";
253
253
  description?: string | undefined;
254
254
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
255
255
  type: "apiKey";
256
256
  value: string;
257
- uid: string;
257
+ uid: string & import("zod").BRAND<"securityScheme">;
258
258
  name: string;
259
259
  nameKey: string;
260
- in: "query" | "header" | "cookie";
260
+ in: "cookie" | "query" | "header";
261
261
  description?: string | undefined;
262
262
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? {
263
263
  type: "http";
264
- uid: string;
264
+ uid: string & import("zod").BRAND<"securityScheme">;
265
265
  nameKey: string;
266
266
  scheme: "basic" | "bearer";
267
267
  bearerFormat: string;
@@ -271,7 +271,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
271
271
  description?: string | undefined;
272
272
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? R extends import("@scalar/object-utils/nested").Path<{
273
273
  type: "http";
274
- uid: string;
274
+ uid: string & import("zod").BRAND<"securityScheme">;
275
275
  nameKey: string;
276
276
  scheme: "basic" | "bearer";
277
277
  bearerFormat: string;
@@ -281,7 +281,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
281
281
  description?: string | undefined;
282
282
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
283
283
  type: "http";
284
- uid: string;
284
+ uid: string & import("zod").BRAND<"securityScheme">;
285
285
  nameKey: string;
286
286
  scheme: "basic" | "bearer";
287
287
  bearerFormat: string;
@@ -291,25 +291,25 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
291
291
  description?: string | undefined;
292
292
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
293
293
  type: "openIdConnect";
294
- uid: string;
294
+ uid: string & import("zod").BRAND<"securityScheme">;
295
295
  nameKey: string;
296
296
  openIdConnectUrl: string;
297
297
  description?: string | undefined;
298
298
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
299
299
  type: "openIdConnect";
300
- uid: string;
300
+ uid: string & import("zod").BRAND<"securityScheme">;
301
301
  nameKey: string;
302
302
  openIdConnectUrl: string;
303
303
  description?: string | undefined;
304
304
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
305
305
  type: "openIdConnect";
306
- uid: string;
306
+ uid: string & import("zod").BRAND<"securityScheme">;
307
307
  nameKey: string;
308
308
  openIdConnectUrl: string;
309
309
  description?: string | undefined;
310
310
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
311
311
  type: "oauth2";
312
- uid: string;
312
+ uid: string & import("zod").BRAND<"securityScheme">;
313
313
  nameKey: string;
314
314
  flows: {
315
315
  password?: {
@@ -361,7 +361,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
361
361
  description?: string | undefined;
362
362
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
363
363
  type: "oauth2";
364
- uid: string;
364
+ uid: string & import("zod").BRAND<"securityScheme">;
365
365
  nameKey: string;
366
366
  flows: {
367
367
  password?: {
@@ -413,7 +413,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
413
413
  description?: string | undefined;
414
414
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
415
415
  type: "oauth2";
416
- uid: string;
416
+ uid: string & import("zod").BRAND<"securityScheme">;
417
417
  nameKey: string;
418
418
  flows: {
419
419
  password?: {
@@ -464,33 +464,33 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
464
464
  };
465
465
  description?: string | undefined;
466
466
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
467
- untrackedEdit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: string, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
467
+ untrackedEdit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: string & import("zod").BRAND<"securityScheme">, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
468
468
  type: "apiKey";
469
469
  value: string;
470
- uid: string;
470
+ uid: string & import("zod").BRAND<"securityScheme">;
471
471
  name: string;
472
472
  nameKey: string;
473
- in: "query" | "header" | "cookie";
473
+ in: "cookie" | "query" | "header";
474
474
  description?: string | undefined;
475
475
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? R extends import("@scalar/object-utils/nested").Path<{
476
476
  type: "apiKey";
477
477
  value: string;
478
- uid: string;
478
+ uid: string & import("zod").BRAND<"securityScheme">;
479
479
  name: string;
480
480
  nameKey: string;
481
- in: "query" | "header" | "cookie";
481
+ in: "cookie" | "query" | "header";
482
482
  description?: string | undefined;
483
483
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
484
484
  type: "apiKey";
485
485
  value: string;
486
- uid: string;
486
+ uid: string & import("zod").BRAND<"securityScheme">;
487
487
  name: string;
488
488
  nameKey: string;
489
- in: "query" | "header" | "cookie";
489
+ in: "cookie" | "query" | "header";
490
490
  description?: string | undefined;
491
491
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? {
492
492
  type: "http";
493
- uid: string;
493
+ uid: string & import("zod").BRAND<"securityScheme">;
494
494
  nameKey: string;
495
495
  scheme: "basic" | "bearer";
496
496
  bearerFormat: string;
@@ -500,7 +500,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
500
500
  description?: string | undefined;
501
501
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? R extends import("@scalar/object-utils/nested").Path<{
502
502
  type: "http";
503
- uid: string;
503
+ uid: string & import("zod").BRAND<"securityScheme">;
504
504
  nameKey: string;
505
505
  scheme: "basic" | "bearer";
506
506
  bearerFormat: string;
@@ -510,7 +510,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
510
510
  description?: string | undefined;
511
511
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
512
512
  type: "http";
513
- uid: string;
513
+ uid: string & import("zod").BRAND<"securityScheme">;
514
514
  nameKey: string;
515
515
  scheme: "basic" | "bearer";
516
516
  bearerFormat: string;
@@ -520,25 +520,25 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
520
520
  description?: string | undefined;
521
521
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
522
522
  type: "openIdConnect";
523
- uid: string;
523
+ uid: string & import("zod").BRAND<"securityScheme">;
524
524
  nameKey: string;
525
525
  openIdConnectUrl: string;
526
526
  description?: string | undefined;
527
527
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
528
528
  type: "openIdConnect";
529
- uid: string;
529
+ uid: string & import("zod").BRAND<"securityScheme">;
530
530
  nameKey: string;
531
531
  openIdConnectUrl: string;
532
532
  description?: string | undefined;
533
533
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
534
534
  type: "openIdConnect";
535
- uid: string;
535
+ uid: string & import("zod").BRAND<"securityScheme">;
536
536
  nameKey: string;
537
537
  openIdConnectUrl: string;
538
538
  description?: string | undefined;
539
539
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
540
540
  type: "oauth2";
541
- uid: string;
541
+ uid: string & import("zod").BRAND<"securityScheme">;
542
542
  nameKey: string;
543
543
  flows: {
544
544
  password?: {
@@ -590,7 +590,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
590
590
  description?: string | undefined;
591
591
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
592
592
  type: "oauth2";
593
- uid: string;
593
+ uid: string & import("zod").BRAND<"securityScheme">;
594
594
  nameKey: string;
595
595
  flows: {
596
596
  password?: {
@@ -642,7 +642,7 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
642
642
  description?: string | undefined;
643
643
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
644
644
  type: "oauth2";
645
- uid: string;
645
+ uid: string & import("zod").BRAND<"securityScheme">;
646
646
  nameKey: string;
647
647
  flows: {
648
648
  password?: {
@@ -693,24 +693,24 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
693
693
  };
694
694
  description?: string | undefined;
695
695
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
696
- undo: (uid: string) => void;
697
- redo: (uid: string) => void;
696
+ undo: (uid: string & import("zod").BRAND<"securityScheme">) => void;
697
+ redo: (uid: string & import("zod").BRAND<"securityScheme">) => void;
698
698
  reset: () => void;
699
699
  };
700
700
  };
701
701
  /** Extended mutators and data for security schemas */
702
702
  export declare function extendedSecurityDataFactory({ securitySchemeMutators, collectionMutators, collections, requests, requestMutators, }: StoreContext): {
703
- addSecurityScheme: (payload: SecuritySchemePayload, collectionUid: string) => {
703
+ addSecurityScheme: (payload: SecuritySchemePayload, collectionUid: Collection["uid"]) => {
704
704
  type: "apiKey";
705
705
  value: string;
706
- uid: string;
706
+ uid: string & import("zod").BRAND<"securityScheme">;
707
707
  name: string;
708
708
  nameKey: string;
709
- in: "query" | "header" | "cookie";
709
+ in: "cookie" | "query" | "header";
710
710
  description?: string | undefined;
711
711
  } | {
712
712
  type: "http";
713
- uid: string;
713
+ uid: string & import("zod").BRAND<"securityScheme">;
714
714
  nameKey: string;
715
715
  scheme: "basic" | "bearer";
716
716
  bearerFormat: string;
@@ -720,13 +720,13 @@ export declare function extendedSecurityDataFactory({ securitySchemeMutators, co
720
720
  description?: string | undefined;
721
721
  } | {
722
722
  type: "openIdConnect";
723
- uid: string;
723
+ uid: string & import("zod").BRAND<"securityScheme">;
724
724
  nameKey: string;
725
725
  openIdConnectUrl: string;
726
726
  description?: string | undefined;
727
727
  } | {
728
728
  type: "oauth2";
729
- uid: string;
729
+ uid: string & import("zod").BRAND<"securityScheme">;
730
730
  nameKey: string;
731
731
  flows: {
732
732
  password?: {
@@ -777,6 +777,6 @@ export declare function extendedSecurityDataFactory({ securitySchemeMutators, co
777
777
  };
778
778
  description?: string | undefined;
779
779
  };
780
- deleteSecurityScheme: (schemeUid: string) => void;
780
+ deleteSecurityScheme: (schemeUid: SecurityScheme["uid"]) => void;
781
781
  };
782
782
  //# sourceMappingURL=security-schemes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"security-schemes.d.ts","sourceRoot":"","sources":["../../src/store/security-schemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,iCAAiC,CAAA;AAKxC,mDAAmD;AACnD,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAwF40pD,CAAC;;;;;;;;;;;;oBAA4X,CAAC;;;;;;;;;;6BAA4V,CAAC;;;;;;;;;;6BAAkV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;EA5E57rD;AAED,sDAAsD;AACtD,wBAAgB,2BAA2B,CAAC,EAC1C,sBAAsB,EACtB,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAChB,EAAE,YAAY;iCAGF,qBAAqB,iBAEf,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA8Ds3pD,CAAC;;;;;;;;;;;;oBAA4X,CAAC;;;;;;;;;;6BAA4V,CAAC;;;;;;;;;;6BAAkV,CAAC;;;;;;;;;;;;;;;;sCA7Cl5rD,MAAM;EA4ChD"}
1
+ {"version":3,"file":"security-schemes.d.ts","sourceRoot":"","sources":["../../src/store/security-schemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAE3B,MAAM,iCAAiC,CAAA;AAKxC,mDAAmD;AACnD,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsFwxqD,CAAC;;;;;;;;;;;;oBAA4X,CAAC;;;;;;;;;;6BAA4V,CAAC;;;;;;;;;;6BAAkV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;wBAA9iC,CAAC;;;;;;;;;;;;wBAA4X,CAAC;;;;;;;;;;iCAA4V,CAAC;;;;;;;;;;iCAAkV,CAAC;;;;;;;;;;;;;;;;;;;;EA1Ex4sD;AAED,sDAAsD;AACtD,wBAAgB,2BAA2B,CAAC,EAC1C,sBAAsB,EACtB,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAChB,EAAE,YAAY;iCAGF,qBAAqB,iBAEf,UAAU,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA4DuzqD,CAAC;;;;;;;;;;;;oBAA4X,CAAC;;;;;;;;;;6BAA4V,CAAC;;;;;;;;;;6BAAkV,CAAC;;;;;;;;;;;;;;;;sCA3C91sD,cAAc,CAAC,KAAK,CAAC;EA0C/D"}
@@ -40,9 +40,7 @@ function k({
40
40
  (r = e.security) != null && r.some((c) => Object.keys(c).includes(t)) && y.edit(
41
41
  e.uid,
42
42
  "security",
43
- (d = (m = s[e.uid]) == null ? void 0 : m.security) == null ? void 0 : d.filter(
44
- (c) => !Object.keys(c).includes(t)
45
- )
43
+ (d = (m = s[e.uid]) == null ? void 0 : m.security) == null ? void 0 : d.filter((c) => !Object.keys(c).includes(t))
46
44
  ), e.selectedSecuritySchemeUids.flat().includes(t) && y.edit(
47
45
  e.uid,
48
46
  "selectedSecuritySchemeUids",
@@ -1,9 +1,9 @@
1
1
  import type { StoreContext } from '../store/store-context';
2
- import { type ServerPayload } from '@scalar/oas-utils/entities/spec';
2
+ import { type Collection, type Server, type ServerPayload } from '@scalar/oas-utils/entities/spec';
3
3
  /** Create storage objects for servers */
4
4
  export declare function createStoreServers(useLocalStorage: boolean): {
5
5
  servers: Record<string, {
6
- uid: string;
6
+ uid: string & import("zod").BRAND<"server">;
7
7
  url: string;
8
8
  description?: string | undefined;
9
9
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -13,7 +13,7 @@ export declare function createStoreServers(useLocalStorage: boolean): {
13
13
  }>;
14
14
  serverMutators: {
15
15
  add: (item: {
16
- uid: string;
16
+ uid: string & import("zod").BRAND<"server">;
17
17
  url: string;
18
18
  description?: string | undefined;
19
19
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -21,9 +21,9 @@ export declare function createStoreServers(useLocalStorage: boolean): {
21
21
  value?: string;
22
22
  }> | undefined;
23
23
  }) => void;
24
- delete: (uid: string) => void;
24
+ delete: (uid: (string & import("zod").BRAND<"server">) | null | undefined) => void;
25
25
  set: (item: {
26
- uid: string;
26
+ uid: string & import("zod").BRAND<"server">;
27
27
  url: string;
28
28
  description?: string | undefined;
29
29
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -31,8 +31,8 @@ export declare function createStoreServers(useLocalStorage: boolean): {
31
31
  value?: string;
32
32
  }> | undefined;
33
33
  }) => void;
34
- edit: <P extends "description" | "uid" | "url" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "description" | "uid" | "url" | "variables" ? {
35
- uid: string;
34
+ edit: <P extends "description" | "uid" | "url" | "variables" | `variables.${string}`>(uid: (string & import("zod").BRAND<"server">) | null | undefined, path: P, value: P extends "description" | "uid" | "url" | "variables" ? {
35
+ uid: string & import("zod").BRAND<"server">;
36
36
  url: string;
37
37
  description?: string | undefined;
38
38
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -40,7 +40,7 @@ export declare function createStoreServers(useLocalStorage: boolean): {
40
40
  value?: string;
41
41
  }> | undefined;
42
42
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "uid" | "url" | "variables" ? R extends import("@scalar/object-utils/nested").Path<{
43
- uid: string;
43
+ uid: string & import("zod").BRAND<"server">;
44
44
  url: string;
45
45
  description?: string | undefined;
46
46
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -48,7 +48,7 @@ export declare function createStoreServers(useLocalStorage: boolean): {
48
48
  value?: string;
49
49
  }> | undefined;
50
50
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
51
- uid: string;
51
+ uid: string & import("zod").BRAND<"server">;
52
52
  url: string;
53
53
  description?: string | undefined;
54
54
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -56,8 +56,8 @@ export declare function createStoreServers(useLocalStorage: boolean): {
56
56
  value?: string;
57
57
  }> | undefined;
58
58
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
59
- untrackedEdit: <P extends "description" | "uid" | "url" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "description" | "uid" | "url" | "variables" ? {
60
- uid: string;
59
+ untrackedEdit: <P extends "description" | "uid" | "url" | "variables" | `variables.${string}`>(uid: string & import("zod").BRAND<"server">, path: P, value: P extends "description" | "uid" | "url" | "variables" ? {
60
+ uid: string & import("zod").BRAND<"server">;
61
61
  url: string;
62
62
  description?: string | undefined;
63
63
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -65,7 +65,7 @@ export declare function createStoreServers(useLocalStorage: boolean): {
65
65
  value?: string;
66
66
  }> | undefined;
67
67
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "uid" | "url" | "variables" ? R extends import("@scalar/object-utils/nested").Path<{
68
- uid: string;
68
+ uid: string & import("zod").BRAND<"server">;
69
69
  url: string;
70
70
  description?: string | undefined;
71
71
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -73,7 +73,7 @@ export declare function createStoreServers(useLocalStorage: boolean): {
73
73
  value?: string;
74
74
  }> | undefined;
75
75
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
76
- uid: string;
76
+ uid: string & import("zod").BRAND<"server">;
77
77
  url: string;
78
78
  description?: string | undefined;
79
79
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -81,15 +81,15 @@ export declare function createStoreServers(useLocalStorage: boolean): {
81
81
  value?: string;
82
82
  }> | undefined;
83
83
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
84
- undo: (uid: string) => void;
85
- redo: (uid: string) => void;
84
+ undo: (uid: string & import("zod").BRAND<"server">) => void;
85
+ redo: (uid: string & import("zod").BRAND<"server">) => void;
86
86
  reset: () => void;
87
87
  };
88
88
  };
89
89
  /** Extended mutators and data for servers */
90
90
  export declare function extendedServerDataFactory({ serverMutators, collections, collectionMutators, requests, requestMutators, }: StoreContext): {
91
91
  addServer: (payload: ServerPayload, parentUid: string) => {
92
- uid: string;
92
+ uid: string & import("zod").BRAND<"server">;
93
93
  url: string;
94
94
  description?: string | undefined;
95
95
  variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -97,6 +97,6 @@ export declare function extendedServerDataFactory({ serverMutators, collections,
97
97
  value?: string;
98
98
  }> | undefined;
99
99
  };
100
- deleteServer: (serverUid: string, collectionUid: string) => void;
100
+ deleteServer: (serverUid: Server["uid"], collectionUid: Collection["uid"]) => void;
101
101
  };
102
102
  //# sourceMappingURL=servers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/store/servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,iCAAiC,CAAA;AAKxC,yCAAyC;AACzC,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,OAAO;;;;;;gBAuE6yE,CAAC;iBAAsC,CAAC;;;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;EA1D/4E;AAED,6CAA6C;AAC7C,wBAAgB,yBAAyB,CAAC,EACxC,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,eAAe,GAChB,EAAE,YAAY;yBAKe,aAAa,aAAa,MAAM;;;;;gBA4C0yE,CAAC;iBAAsC,CAAC;;;8BAnB72E,MAAM,iBAAiB,MAAM;EAkB/D"}
1
+ {"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/store/servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EACL,KAAK,UAAU,EAEf,KAAK,MAAM,EACX,KAAK,aAAa,EAEnB,MAAM,iCAAiC,CAAA;AAKxC,yCAAyC;AACzC,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,OAAO;;;;;;gBAgEuyE,CAAC;iBAAsC,CAAC;;;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;oBAAxC,CAAC;qBAAsC,CAAC;;;;;;;EAvDz4E;AAED,6CAA6C;AAC7C,wBAAgB,yBAAyB,CAAC,EACxC,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,eAAe,GAChB,EAAE,YAAY;yBAKe,aAAa,aAAa,MAAM;;;;;gBAyCoyE,CAAC;iBAAsC,CAAC;;;8BAnBv2E,MAAM,CAAC,KAAK,CAAC,iBAAiB,UAAU,CAAC,KAAK,CAAC;EAkBjF"}
@@ -3,11 +3,7 @@ import { LS_KEYS as u } from "@scalar/oas-utils/helpers";
3
3
  import { mutationFactory as a } from "@scalar/object-utils/mutator-record";
4
4
  import { reactive as m } from "vue";
5
5
  function R(s) {
6
- const r = m({}), v = a(
7
- r,
8
- m({}),
9
- s && u.SERVER
10
- );
6
+ const r = m({}), v = a(r, m({}), s && u.SERVER);
11
7
  return {
12
8
  servers: r,
13
9
  serverMutators: v
@@ -26,10 +22,7 @@ function h({
26
22
  return r[e] ? v.edit(e, "servers", [
27
23
  ...r[e].servers,
28
24
  t.uid
29
- ]) : f[e] && d.edit(e, "servers", [
30
- ...f[e].servers,
31
- t.uid
32
- ]), s.add(t), t;
25
+ ]) : f[e] && d.edit(e, "servers", [...f[e].servers, t.uid]), s.add(t), t;
33
26
  },
34
27
  deleteServer: (S, e) => {
35
28
  r[e] && (v.edit(