@scalar/api-client 2.1.52 → 2.2.1

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 (205) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue2.js +36 -43
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  7. package/dist/components/AddressBar/AddressBarHistory.vue2.js +25 -24
  8. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  9. package/dist/components/AddressBar/AddressBarServer.vue.js +32 -39
  10. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
  11. package/dist/components/AddressBar/AddressBarServerItem.vue.js +10 -15
  12. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  13. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  14. package/dist/components/CodeInput/CodeInput.vue2.js +48 -47
  15. package/dist/components/CodeInput/codeVariableWidget.d.ts +3 -2
  16. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  18. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +15 -14
  19. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  20. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +18 -23
  21. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  22. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +27 -26
  23. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  24. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +19 -20
  25. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  26. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +19 -24
  27. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  28. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +23 -22
  29. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  30. package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
  31. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +47 -46
  32. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  33. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  34. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  35. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -28
  36. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  37. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +127 -96
  39. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +28 -27
  41. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +1 -1
  42. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  43. package/dist/components/ImportCollection/IntegrationLogo.vue.js +14 -18
  44. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  45. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -14
  46. package/dist/components/Search/useSearch.d.ts.map +1 -1
  47. package/dist/components/Search/useSearch.js +20 -19
  48. package/dist/components/SideNav/SideNav.vue.js +4 -4
  49. package/dist/components/SideNav/SideNavRouterLink.vue.js +9 -9
  50. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  51. package/dist/components/TopNav/TopNav.vue.js +165 -5
  52. package/dist/components/TopNav/TopNav.vue2.js +2 -164
  53. package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
  54. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  55. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  56. package/dist/components/TopNav/TopNavItem.vue2.js +5 -5
  57. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  58. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
  59. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +2 -2
  60. package/dist/hooks/index.js +3 -2
  61. package/dist/hooks/useLayout.d.ts +2 -0
  62. package/dist/hooks/useLayout.d.ts.map +1 -1
  63. package/dist/hooks/useLayout.js +4 -3
  64. package/dist/layouts/App/ApiClientApp.vue.d.ts +1 -1
  65. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  66. package/dist/layouts/App/ApiClientApp.vue.js +35 -31
  67. package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
  68. package/dist/layouts/App/MainLayout.vue.js +3 -3
  69. package/dist/layouts/App/create-api-client-app.d.ts +669 -1232
  70. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  71. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  72. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  73. package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -23
  74. package/dist/layouts/Modal/create-api-client-modal.d.ts +1382 -2508
  75. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  76. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  77. package/dist/layouts/Web/ApiClientWeb.vue.js +34 -33
  78. package/dist/layouts/Web/create-api-client-web.d.ts +669 -1232
  79. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  80. package/dist/libs/create-client.d.ts +673 -1236
  81. package/dist/libs/create-client.d.ts.map +1 -1
  82. package/dist/libs/create-client.js +91 -102
  83. package/dist/libs/hot-keys.d.ts +1 -1
  84. package/dist/libs/send-request.d.ts +2 -3
  85. package/dist/libs/send-request.d.ts.map +1 -1
  86. package/dist/libs/send-request.js +127 -123
  87. package/dist/store/active-entities.d.ts +333 -0
  88. package/dist/store/active-entities.d.ts.map +1 -0
  89. package/dist/store/active-entities.js +97 -0
  90. package/dist/store/collections.d.ts +4 -274
  91. package/dist/store/collections.d.ts.map +1 -1
  92. package/dist/store/cookies.d.ts +4 -4
  93. package/dist/store/environment.d.ts +4 -4
  94. package/dist/store/import-spec.d.ts +0 -54
  95. package/dist/store/import-spec.d.ts.map +1 -1
  96. package/dist/store/index.js +4 -3
  97. package/dist/store/request-example.d.ts +4 -4
  98. package/dist/store/requests.d.ts +15 -15
  99. package/dist/store/security-schemes.d.ts +527 -317
  100. package/dist/store/security-schemes.d.ts.map +1 -1
  101. package/dist/store/security-schemes.js +33 -41
  102. package/dist/store/servers.d.ts +4 -4
  103. package/dist/store/store-context.d.ts +0 -3
  104. package/dist/store/store-context.d.ts.map +1 -1
  105. package/dist/store/store.d.ts +640 -5297
  106. package/dist/store/store.d.ts.map +1 -1
  107. package/dist/store/store.js +111 -189
  108. package/dist/store/tags.d.ts +4 -4
  109. package/dist/store/workspace.d.ts +14 -24
  110. package/dist/store/workspace.d.ts.map +1 -1
  111. package/dist/style.css +1 -1
  112. package/dist/tailwind/desktop-variants.d.ts +18 -0
  113. package/dist/tailwind/desktop-variants.d.ts.map +1 -0
  114. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/CookieForm.vue.js +14 -13
  116. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  117. package/dist/views/Cookies/CookieRaw.vue.js +14 -13
  118. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +3 -3
  119. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  120. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  121. package/dist/views/Request/Request.vue.js +1 -1
  122. package/dist/views/Request/Request.vue2.js +92 -92
  123. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +2 -2
  124. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  125. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +96 -99
  126. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +2 -2
  127. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  128. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +49 -46
  129. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  131. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +94 -100
  132. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +60 -67
  134. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  135. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  136. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  138. package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -28
  139. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  140. package/dist/views/Request/RequestSection/RequestParams.vue.js +11 -10
  141. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  142. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +24 -28
  143. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  145. package/dist/views/Request/RequestSection/RequestSection.vue2.js +17 -16
  146. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  147. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  148. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  149. package/dist/views/Request/RequestSidebar.vue2.js +72 -73
  150. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  151. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  152. package/dist/views/Request/RequestSidebarItem.vue2.js +111 -109
  153. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  154. package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
  155. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +15 -16
  156. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  157. package/dist/views/Request/RequestSubpageHeader.vue2.js +14 -14
  158. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  159. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +1 -1
  160. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +25 -21
  161. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  162. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  163. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +26 -25
  164. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  165. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +7 -7
  166. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  167. package/dist/views/Request/components/WorkspaceDropdown.vue.js +32 -31
  168. package/dist/views/Request/consts/new-auth-options.d.ts +16 -8
  169. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  170. package/dist/views/Request/consts/new-auth-options.js +16 -8
  171. package/dist/views/Request/handle-drag.d.ts +2 -1
  172. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  173. package/dist/views/Request/handle-drag.js +23 -25
  174. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
  175. package/dist/views/Request/hooks/useOpenApiWatcher.js +40 -39
  176. package/dist/views/Request/libs/auth.d.ts +1 -29
  177. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  178. package/dist/views/Request/libs/auth.js +2 -9
  179. package/dist/views/Request/libs/index.js +6 -8
  180. package/dist/views/Request/libs/live-sync.d.ts +6 -5
  181. package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
  182. package/dist/views/Request/libs/live-sync.js +164 -185
  183. package/dist/views/Request/libs/oauth2.d.ts +6 -10
  184. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  185. package/dist/views/Request/libs/oauth2.js +54 -69
  186. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  187. package/dist/views/Servers/ServerForm.vue.js +14 -13
  188. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  189. package/dist/views/Servers/Servers.vue2.js +18 -17
  190. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  191. package/dist/views/Settings/SettingsGeneral.vue.js +218 -126
  192. package/dist/views/Settings/{SettingsGeneralMode.vue.d.ts → components/SettingsAppearance.vue.d.ts} +2 -2
  193. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -0
  194. package/dist/views/Settings/components/SettingsAppearance.vue.js +74 -0
  195. package/dist/views/Settings/components/SettingsAppearance.vue2.js +4 -0
  196. package/dist/views/Settings/components/SettingsSection.vue.d.ts +24 -0
  197. package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +1 -0
  198. package/dist/views/Settings/components/SettingsSection.vue.js +24 -0
  199. package/dist/views/Settings/components/SettingsSection.vue2.js +4 -0
  200. package/package.json +9 -9
  201. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +0 -16
  202. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +0 -1
  203. package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +0 -1
  204. package/dist/views/Settings/SettingsGeneralMode.vue.js +0 -78
  205. package/dist/views/Settings/SettingsGeneralMode.vue2.js +0 -4
@@ -4,10 +4,11 @@ import { type SecuritySchemePayload } from '@scalar/oas-utils/entities/spec';
4
4
  export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
5
5
  securitySchemes: Record<string, {
6
6
  type: "apiKey";
7
+ value: string;
7
8
  uid: string;
8
9
  name: string;
9
- in: "query" | "header" | "cookie";
10
10
  nameKey: string;
11
+ in: "query" | "header" | "cookie";
11
12
  description?: string | undefined;
12
13
  } | {
13
14
  type: "http";
@@ -15,6 +16,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
15
16
  nameKey: string;
16
17
  scheme: "basic" | "bearer";
17
18
  bearerFormat: string;
19
+ username: string;
20
+ password: string;
21
+ token: string;
18
22
  description?: string | undefined;
19
23
  } | {
20
24
  type: "openIdConnect";
@@ -26,45 +30,63 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
26
30
  type: "oauth2";
27
31
  uid: string;
28
32
  nameKey: string;
29
- flow: {
30
- type: "implicit";
31
- refreshUrl: string;
32
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
33
- selectedScopes: string[];
34
- authorizationUrl: string;
35
- "x-scalar-redirect-uri": string;
36
- } | {
37
- type: "password";
38
- refreshUrl: string;
39
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
40
- selectedScopes: string[];
41
- tokenUrl: string;
42
- } | {
43
- type: "clientCredentials";
44
- refreshUrl: string;
45
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
46
- selectedScopes: string[];
47
- tokenUrl: string;
48
- } | {
49
- type: "authorizationCode";
50
- refreshUrl: string;
51
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
52
- selectedScopes: string[];
53
- authorizationUrl: string;
54
- "x-scalar-redirect-uri": string;
55
- tokenUrl: string;
56
- "x-usePkce": "SHA-256" | "plain" | "no";
33
+ flows: {
34
+ password?: {
35
+ type: "password";
36
+ username: string;
37
+ password: string;
38
+ token: string;
39
+ refreshUrl: string;
40
+ scopes: Record<string, string>;
41
+ selectedScopes: string[];
42
+ "x-scalar-client-id": string;
43
+ tokenUrl: string;
44
+ clientSecret: string;
45
+ } | undefined;
46
+ implicit?: {
47
+ type: "implicit";
48
+ token: string;
49
+ refreshUrl: string;
50
+ scopes: Record<string, string>;
51
+ selectedScopes: string[];
52
+ "x-scalar-client-id": string;
53
+ authorizationUrl: string;
54
+ "x-scalar-redirect-uri": string;
55
+ } | undefined;
56
+ clientCredentials?: {
57
+ type: "clientCredentials";
58
+ token: string;
59
+ refreshUrl: string;
60
+ scopes: Record<string, string>;
61
+ selectedScopes: string[];
62
+ "x-scalar-client-id": string;
63
+ tokenUrl: string;
64
+ clientSecret: string;
65
+ } | undefined;
66
+ authorizationCode?: {
67
+ type: "authorizationCode";
68
+ token: string;
69
+ refreshUrl: string;
70
+ scopes: Record<string, string>;
71
+ selectedScopes: string[];
72
+ "x-scalar-client-id": string;
73
+ authorizationUrl: string;
74
+ "x-scalar-redirect-uri": string;
75
+ tokenUrl: string;
76
+ clientSecret: string;
77
+ "x-usePkce": "SHA-256" | "plain" | "no";
78
+ } | undefined;
57
79
  };
58
- 'x-scalar-client-id': string;
59
80
  description?: string | undefined;
60
81
  }>;
61
82
  securitySchemeMutators: {
62
83
  add: (item: {
63
84
  type: "apiKey";
85
+ value: string;
64
86
  uid: string;
65
87
  name: string;
66
- in: "query" | "header" | "cookie";
67
88
  nameKey: string;
89
+ in: "query" | "header" | "cookie";
68
90
  description?: string | undefined;
69
91
  } | {
70
92
  type: "http";
@@ -72,6 +94,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
72
94
  nameKey: string;
73
95
  scheme: "basic" | "bearer";
74
96
  bearerFormat: string;
97
+ username: string;
98
+ password: string;
99
+ token: string;
75
100
  description?: string | undefined;
76
101
  } | {
77
102
  type: "openIdConnect";
@@ -83,45 +108,63 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
83
108
  type: "oauth2";
84
109
  uid: string;
85
110
  nameKey: string;
86
- flow: {
87
- type: "implicit";
88
- refreshUrl: string;
89
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
90
- selectedScopes: string[];
91
- authorizationUrl: string;
92
- "x-scalar-redirect-uri": string;
93
- } | {
94
- type: "password";
95
- refreshUrl: string;
96
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
97
- selectedScopes: string[];
98
- tokenUrl: string;
99
- } | {
100
- type: "clientCredentials";
101
- refreshUrl: string;
102
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
103
- selectedScopes: string[];
104
- tokenUrl: string;
105
- } | {
106
- type: "authorizationCode";
107
- refreshUrl: string;
108
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
109
- selectedScopes: string[];
110
- authorizationUrl: string;
111
- "x-scalar-redirect-uri": string;
112
- tokenUrl: string;
113
- "x-usePkce": "SHA-256" | "plain" | "no";
111
+ flows: {
112
+ password?: {
113
+ type: "password";
114
+ username: string;
115
+ password: string;
116
+ token: string;
117
+ refreshUrl: string;
118
+ scopes: Record<string, string>;
119
+ selectedScopes: string[];
120
+ "x-scalar-client-id": string;
121
+ tokenUrl: string;
122
+ clientSecret: string;
123
+ } | undefined;
124
+ implicit?: {
125
+ type: "implicit";
126
+ token: string;
127
+ refreshUrl: string;
128
+ scopes: Record<string, string>;
129
+ selectedScopes: string[];
130
+ "x-scalar-client-id": string;
131
+ authorizationUrl: string;
132
+ "x-scalar-redirect-uri": string;
133
+ } | undefined;
134
+ clientCredentials?: {
135
+ type: "clientCredentials";
136
+ token: string;
137
+ refreshUrl: string;
138
+ scopes: Record<string, string>;
139
+ selectedScopes: string[];
140
+ "x-scalar-client-id": string;
141
+ tokenUrl: string;
142
+ clientSecret: string;
143
+ } | undefined;
144
+ authorizationCode?: {
145
+ type: "authorizationCode";
146
+ token: string;
147
+ refreshUrl: string;
148
+ scopes: Record<string, string>;
149
+ selectedScopes: string[];
150
+ "x-scalar-client-id": string;
151
+ authorizationUrl: string;
152
+ "x-scalar-redirect-uri": string;
153
+ tokenUrl: string;
154
+ clientSecret: string;
155
+ "x-usePkce": "SHA-256" | "plain" | "no";
156
+ } | undefined;
114
157
  };
115
- 'x-scalar-client-id': string;
116
158
  description?: string | undefined;
117
159
  }) => void;
118
160
  delete: (uid: string) => void;
119
161
  set: (item: {
120
162
  type: "apiKey";
163
+ value: string;
121
164
  uid: string;
122
165
  name: string;
123
- in: "query" | "header" | "cookie";
124
166
  nameKey: string;
167
+ in: "query" | "header" | "cookie";
125
168
  description?: string | undefined;
126
169
  } | {
127
170
  type: "http";
@@ -129,6 +172,9 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
129
172
  nameKey: string;
130
173
  scheme: "basic" | "bearer";
131
174
  bearerFormat: string;
175
+ username: string;
176
+ password: string;
177
+ token: string;
132
178
  description?: string | undefined;
133
179
  } | {
134
180
  type: "openIdConnect";
@@ -140,72 +186,98 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
140
186
  type: "oauth2";
141
187
  uid: string;
142
188
  nameKey: string;
143
- flow: {
144
- type: "implicit";
145
- refreshUrl: string;
146
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
147
- selectedScopes: string[];
148
- authorizationUrl: string;
149
- "x-scalar-redirect-uri": string;
150
- } | {
151
- type: "password";
152
- refreshUrl: string;
153
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
154
- selectedScopes: string[];
155
- tokenUrl: string;
156
- } | {
157
- type: "clientCredentials";
158
- refreshUrl: string;
159
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
160
- selectedScopes: string[];
161
- tokenUrl: string;
162
- } | {
163
- type: "authorizationCode";
164
- refreshUrl: string;
165
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
166
- selectedScopes: string[];
167
- authorizationUrl: string;
168
- "x-scalar-redirect-uri": string;
169
- tokenUrl: string;
170
- "x-usePkce": "SHA-256" | "plain" | "no";
189
+ flows: {
190
+ password?: {
191
+ type: "password";
192
+ username: string;
193
+ password: string;
194
+ token: string;
195
+ refreshUrl: string;
196
+ scopes: Record<string, string>;
197
+ selectedScopes: string[];
198
+ "x-scalar-client-id": string;
199
+ tokenUrl: string;
200
+ clientSecret: string;
201
+ } | undefined;
202
+ implicit?: {
203
+ type: "implicit";
204
+ token: string;
205
+ refreshUrl: string;
206
+ scopes: Record<string, string>;
207
+ selectedScopes: string[];
208
+ "x-scalar-client-id": string;
209
+ authorizationUrl: string;
210
+ "x-scalar-redirect-uri": string;
211
+ } | undefined;
212
+ clientCredentials?: {
213
+ type: "clientCredentials";
214
+ token: string;
215
+ refreshUrl: string;
216
+ scopes: Record<string, string>;
217
+ selectedScopes: string[];
218
+ "x-scalar-client-id": string;
219
+ tokenUrl: string;
220
+ clientSecret: string;
221
+ } | undefined;
222
+ authorizationCode?: {
223
+ type: "authorizationCode";
224
+ token: string;
225
+ refreshUrl: string;
226
+ scopes: Record<string, string>;
227
+ selectedScopes: string[];
228
+ "x-scalar-client-id": string;
229
+ authorizationUrl: string;
230
+ "x-scalar-redirect-uri": string;
231
+ tokenUrl: string;
232
+ clientSecret: string;
233
+ "x-usePkce": "SHA-256" | "plain" | "no";
234
+ } | undefined;
171
235
  };
172
- 'x-scalar-client-id': string;
173
236
  description?: string | undefined;
174
237
  }) => void;
175
- edit: <P extends "name" | "type" | "description" | "in" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" | "flow.selectedScopes" | "flow.type" | "flow.x-scalar-redirect-uri" | "flow.refreshUrl" | "flow.scopes" | "flow.authorizationUrl" | `flow.scopes.${string}` | `flow.selectedScopes.${number}` | "flow.tokenUrl" | "flow.x-usePkce">(uid: string, path: P, value: (P extends "name" | "type" | "description" | "in" | "uid" | "nameKey" ? {
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" ? {
176
239
  type: "apiKey";
240
+ value: string;
177
241
  uid: string;
178
242
  name: string;
179
- in: "query" | "header" | "cookie";
180
243
  nameKey: string;
244
+ in: "query" | "header" | "cookie";
181
245
  description?: string | undefined;
182
- }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "type" | "description" | "in" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
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<{
183
247
  type: "apiKey";
248
+ value: string;
184
249
  uid: string;
185
250
  name: string;
186
- in: "query" | "header" | "cookie";
187
251
  nameKey: string;
252
+ in: "query" | "header" | "cookie";
188
253
  description?: string | undefined;
189
254
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
190
255
  type: "apiKey";
256
+ value: string;
191
257
  uid: string;
192
258
  name: string;
193
- in: "query" | "header" | "cookie";
194
259
  nameKey: string;
260
+ in: "query" | "header" | "cookie";
195
261
  description?: string | undefined;
196
- }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? {
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" ? {
197
263
  type: "http";
198
264
  uid: string;
199
265
  nameKey: string;
200
266
  scheme: "basic" | "bearer";
201
267
  bearerFormat: string;
268
+ username: string;
269
+ password: string;
270
+ token: string;
202
271
  description?: string | undefined;
203
- }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
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<{
204
273
  type: "http";
205
274
  uid: string;
206
275
  nameKey: string;
207
276
  scheme: "basic" | "bearer";
208
277
  bearerFormat: string;
278
+ username: string;
279
+ password: string;
280
+ token: string;
209
281
  description?: string | undefined;
210
282
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
211
283
  type: "http";
@@ -213,14 +285,17 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
213
285
  nameKey: string;
214
286
  scheme: "basic" | "bearer";
215
287
  bearerFormat: string;
288
+ username: string;
289
+ password: string;
290
+ token: string;
216
291
  description?: string | undefined;
217
- }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? {
292
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
218
293
  type: "openIdConnect";
219
294
  uid: string;
220
295
  nameKey: string;
221
296
  openIdConnectUrl: string;
222
297
  description?: string | undefined;
223
- }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
298
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
224
299
  type: "openIdConnect";
225
300
  uid: string;
226
301
  nameKey: string;
@@ -232,146 +307,206 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
232
307
  nameKey: string;
233
308
  openIdConnectUrl: string;
234
309
  description?: string | undefined;
235
- }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? {
310
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
236
311
  type: "oauth2";
237
312
  uid: string;
238
313
  nameKey: string;
239
- flow: {
240
- type: "implicit";
241
- refreshUrl: string;
242
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
243
- selectedScopes: string[];
244
- authorizationUrl: string;
245
- "x-scalar-redirect-uri": string;
246
- } | {
247
- type: "password";
248
- refreshUrl: string;
249
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
250
- selectedScopes: string[];
251
- tokenUrl: string;
252
- } | {
253
- type: "clientCredentials";
254
- refreshUrl: string;
255
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
256
- selectedScopes: string[];
257
- tokenUrl: string;
258
- } | {
259
- type: "authorizationCode";
260
- refreshUrl: string;
261
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
262
- selectedScopes: string[];
263
- authorizationUrl: string;
264
- "x-scalar-redirect-uri": string;
265
- tokenUrl: string;
266
- "x-usePkce": "SHA-256" | "plain" | "no";
314
+ flows: {
315
+ password?: {
316
+ type: "password";
317
+ username: string;
318
+ password: string;
319
+ token: string;
320
+ refreshUrl: string;
321
+ scopes: Record<string, string>;
322
+ selectedScopes: string[];
323
+ "x-scalar-client-id": string;
324
+ tokenUrl: string;
325
+ clientSecret: string;
326
+ } | undefined;
327
+ implicit?: {
328
+ type: "implicit";
329
+ token: string;
330
+ refreshUrl: string;
331
+ scopes: Record<string, string>;
332
+ selectedScopes: string[];
333
+ "x-scalar-client-id": string;
334
+ authorizationUrl: string;
335
+ "x-scalar-redirect-uri": string;
336
+ } | undefined;
337
+ clientCredentials?: {
338
+ type: "clientCredentials";
339
+ token: string;
340
+ refreshUrl: string;
341
+ scopes: Record<string, string>;
342
+ selectedScopes: string[];
343
+ "x-scalar-client-id": string;
344
+ tokenUrl: string;
345
+ clientSecret: string;
346
+ } | undefined;
347
+ authorizationCode?: {
348
+ type: "authorizationCode";
349
+ token: string;
350
+ refreshUrl: string;
351
+ scopes: Record<string, string>;
352
+ selectedScopes: string[];
353
+ "x-scalar-client-id": string;
354
+ authorizationUrl: string;
355
+ "x-scalar-redirect-uri": string;
356
+ tokenUrl: string;
357
+ clientSecret: string;
358
+ "x-usePkce": "SHA-256" | "plain" | "no";
359
+ } | undefined;
267
360
  };
268
- 'x-scalar-client-id': string;
269
361
  description?: string | undefined;
270
- }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
362
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
271
363
  type: "oauth2";
272
364
  uid: string;
273
365
  nameKey: string;
274
- flow: {
275
- type: "implicit";
276
- refreshUrl: string;
277
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
278
- selectedScopes: string[];
279
- authorizationUrl: string;
280
- "x-scalar-redirect-uri": string;
281
- } | {
282
- type: "password";
283
- refreshUrl: string;
284
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
285
- selectedScopes: string[];
286
- tokenUrl: string;
287
- } | {
288
- type: "clientCredentials";
289
- refreshUrl: string;
290
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
291
- selectedScopes: string[];
292
- tokenUrl: string;
293
- } | {
294
- type: "authorizationCode";
295
- refreshUrl: string;
296
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
297
- selectedScopes: string[];
298
- authorizationUrl: string;
299
- "x-scalar-redirect-uri": string;
300
- tokenUrl: string;
301
- "x-usePkce": "SHA-256" | "plain" | "no";
366
+ flows: {
367
+ password?: {
368
+ type: "password";
369
+ username: string;
370
+ password: string;
371
+ token: string;
372
+ refreshUrl: string;
373
+ scopes: Record<string, string>;
374
+ selectedScopes: string[];
375
+ "x-scalar-client-id": string;
376
+ tokenUrl: string;
377
+ clientSecret: string;
378
+ } | undefined;
379
+ implicit?: {
380
+ type: "implicit";
381
+ token: string;
382
+ refreshUrl: string;
383
+ scopes: Record<string, string>;
384
+ selectedScopes: string[];
385
+ "x-scalar-client-id": string;
386
+ authorizationUrl: string;
387
+ "x-scalar-redirect-uri": string;
388
+ } | undefined;
389
+ clientCredentials?: {
390
+ type: "clientCredentials";
391
+ token: string;
392
+ refreshUrl: string;
393
+ scopes: Record<string, string>;
394
+ selectedScopes: string[];
395
+ "x-scalar-client-id": string;
396
+ tokenUrl: string;
397
+ clientSecret: string;
398
+ } | undefined;
399
+ authorizationCode?: {
400
+ type: "authorizationCode";
401
+ token: string;
402
+ refreshUrl: string;
403
+ scopes: Record<string, string>;
404
+ selectedScopes: string[];
405
+ "x-scalar-client-id": string;
406
+ authorizationUrl: string;
407
+ "x-scalar-redirect-uri": string;
408
+ tokenUrl: string;
409
+ clientSecret: string;
410
+ "x-usePkce": "SHA-256" | "plain" | "no";
411
+ } | undefined;
302
412
  };
303
- 'x-scalar-client-id': string;
304
413
  description?: string | undefined;
305
414
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
306
415
  type: "oauth2";
307
416
  uid: string;
308
417
  nameKey: string;
309
- flow: {
310
- type: "implicit";
311
- refreshUrl: string;
312
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
313
- selectedScopes: string[];
314
- authorizationUrl: string;
315
- "x-scalar-redirect-uri": string;
316
- } | {
317
- type: "password";
318
- refreshUrl: string;
319
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
320
- selectedScopes: string[];
321
- tokenUrl: string;
322
- } | {
323
- type: "clientCredentials";
324
- refreshUrl: string;
325
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
326
- selectedScopes: string[];
327
- tokenUrl: string;
328
- } | {
329
- type: "authorizationCode";
330
- refreshUrl: string;
331
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
332
- selectedScopes: string[];
333
- authorizationUrl: string;
334
- "x-scalar-redirect-uri": string;
335
- tokenUrl: string;
336
- "x-usePkce": "SHA-256" | "plain" | "no";
418
+ flows: {
419
+ password?: {
420
+ type: "password";
421
+ username: string;
422
+ password: string;
423
+ token: string;
424
+ refreshUrl: string;
425
+ scopes: Record<string, string>;
426
+ selectedScopes: string[];
427
+ "x-scalar-client-id": string;
428
+ tokenUrl: string;
429
+ clientSecret: string;
430
+ } | undefined;
431
+ implicit?: {
432
+ type: "implicit";
433
+ token: string;
434
+ refreshUrl: string;
435
+ scopes: Record<string, string>;
436
+ selectedScopes: string[];
437
+ "x-scalar-client-id": string;
438
+ authorizationUrl: string;
439
+ "x-scalar-redirect-uri": string;
440
+ } | undefined;
441
+ clientCredentials?: {
442
+ type: "clientCredentials";
443
+ token: string;
444
+ refreshUrl: string;
445
+ scopes: Record<string, string>;
446
+ selectedScopes: string[];
447
+ "x-scalar-client-id": string;
448
+ tokenUrl: string;
449
+ clientSecret: string;
450
+ } | undefined;
451
+ authorizationCode?: {
452
+ type: "authorizationCode";
453
+ token: string;
454
+ refreshUrl: string;
455
+ scopes: Record<string, string>;
456
+ selectedScopes: string[];
457
+ "x-scalar-client-id": string;
458
+ authorizationUrl: string;
459
+ "x-scalar-redirect-uri": string;
460
+ tokenUrl: string;
461
+ clientSecret: string;
462
+ "x-usePkce": "SHA-256" | "plain" | "no";
463
+ } | undefined;
337
464
  };
338
- 'x-scalar-client-id': string;
339
465
  description?: string | undefined;
340
466
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
341
- untrackedEdit: <P extends "name" | "type" | "description" | "in" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" | "flow.selectedScopes" | "flow.type" | "flow.x-scalar-redirect-uri" | "flow.refreshUrl" | "flow.scopes" | "flow.authorizationUrl" | `flow.scopes.${string}` | `flow.selectedScopes.${number}` | "flow.tokenUrl" | "flow.x-usePkce">(uid: string, path: P, value: (P extends "name" | "type" | "description" | "in" | "uid" | "nameKey" ? {
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" ? {
342
468
  type: "apiKey";
469
+ value: string;
343
470
  uid: string;
344
471
  name: string;
345
- in: "query" | "header" | "cookie";
346
472
  nameKey: string;
473
+ in: "query" | "header" | "cookie";
347
474
  description?: string | undefined;
348
- }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "type" | "description" | "in" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
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<{
349
476
  type: "apiKey";
477
+ value: string;
350
478
  uid: string;
351
479
  name: string;
352
- in: "query" | "header" | "cookie";
353
480
  nameKey: string;
481
+ in: "query" | "header" | "cookie";
354
482
  description?: string | undefined;
355
483
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
356
484
  type: "apiKey";
485
+ value: string;
357
486
  uid: string;
358
487
  name: string;
359
- in: "query" | "header" | "cookie";
360
488
  nameKey: string;
489
+ in: "query" | "header" | "cookie";
361
490
  description?: string | undefined;
362
- }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? {
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" ? {
363
492
  type: "http";
364
493
  uid: string;
365
494
  nameKey: string;
366
495
  scheme: "basic" | "bearer";
367
496
  bearerFormat: string;
497
+ username: string;
498
+ password: string;
499
+ token: string;
368
500
  description?: string | undefined;
369
- }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
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<{
370
502
  type: "http";
371
503
  uid: string;
372
504
  nameKey: string;
373
505
  scheme: "basic" | "bearer";
374
506
  bearerFormat: string;
507
+ username: string;
508
+ password: string;
509
+ token: string;
375
510
  description?: string | undefined;
376
511
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
377
512
  type: "http";
@@ -379,14 +514,17 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
379
514
  nameKey: string;
380
515
  scheme: "basic" | "bearer";
381
516
  bearerFormat: string;
517
+ username: string;
518
+ password: string;
519
+ token: string;
382
520
  description?: string | undefined;
383
- }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? {
521
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
384
522
  type: "openIdConnect";
385
523
  uid: string;
386
524
  nameKey: string;
387
525
  openIdConnectUrl: string;
388
526
  description?: string | undefined;
389
- }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
527
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
390
528
  type: "openIdConnect";
391
529
  uid: string;
392
530
  nameKey: string;
@@ -398,110 +536,161 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
398
536
  nameKey: string;
399
537
  openIdConnectUrl: string;
400
538
  description?: string | undefined;
401
- }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? {
539
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
402
540
  type: "oauth2";
403
541
  uid: string;
404
542
  nameKey: string;
405
- flow: {
406
- type: "implicit";
407
- refreshUrl: string;
408
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
409
- selectedScopes: string[];
410
- authorizationUrl: string;
411
- "x-scalar-redirect-uri": string;
412
- } | {
413
- type: "password";
414
- refreshUrl: string;
415
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
416
- selectedScopes: string[];
417
- tokenUrl: string;
418
- } | {
419
- type: "clientCredentials";
420
- refreshUrl: string;
421
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
422
- selectedScopes: string[];
423
- tokenUrl: string;
424
- } | {
425
- type: "authorizationCode";
426
- refreshUrl: string;
427
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
428
- selectedScopes: string[];
429
- authorizationUrl: string;
430
- "x-scalar-redirect-uri": string;
431
- tokenUrl: string;
432
- "x-usePkce": "SHA-256" | "plain" | "no";
543
+ flows: {
544
+ password?: {
545
+ type: "password";
546
+ username: string;
547
+ password: string;
548
+ token: string;
549
+ refreshUrl: string;
550
+ scopes: Record<string, string>;
551
+ selectedScopes: string[];
552
+ "x-scalar-client-id": string;
553
+ tokenUrl: string;
554
+ clientSecret: string;
555
+ } | undefined;
556
+ implicit?: {
557
+ type: "implicit";
558
+ token: string;
559
+ refreshUrl: string;
560
+ scopes: Record<string, string>;
561
+ selectedScopes: string[];
562
+ "x-scalar-client-id": string;
563
+ authorizationUrl: string;
564
+ "x-scalar-redirect-uri": string;
565
+ } | undefined;
566
+ clientCredentials?: {
567
+ type: "clientCredentials";
568
+ token: string;
569
+ refreshUrl: string;
570
+ scopes: Record<string, string>;
571
+ selectedScopes: string[];
572
+ "x-scalar-client-id": string;
573
+ tokenUrl: string;
574
+ clientSecret: string;
575
+ } | undefined;
576
+ authorizationCode?: {
577
+ type: "authorizationCode";
578
+ token: string;
579
+ refreshUrl: string;
580
+ scopes: Record<string, string>;
581
+ selectedScopes: string[];
582
+ "x-scalar-client-id": string;
583
+ authorizationUrl: string;
584
+ "x-scalar-redirect-uri": string;
585
+ tokenUrl: string;
586
+ clientSecret: string;
587
+ "x-usePkce": "SHA-256" | "plain" | "no";
588
+ } | undefined;
433
589
  };
434
- 'x-scalar-client-id': string;
435
590
  description?: string | undefined;
436
- }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
591
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "uid" | "nameKey" | "flows" ? R extends import("@scalar/object-utils/nested").Path<{
437
592
  type: "oauth2";
438
593
  uid: string;
439
594
  nameKey: string;
440
- flow: {
441
- type: "implicit";
442
- refreshUrl: string;
443
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
444
- selectedScopes: string[];
445
- authorizationUrl: string;
446
- "x-scalar-redirect-uri": string;
447
- } | {
448
- type: "password";
449
- refreshUrl: string;
450
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
451
- selectedScopes: string[];
452
- tokenUrl: string;
453
- } | {
454
- type: "clientCredentials";
455
- refreshUrl: string;
456
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
457
- selectedScopes: string[];
458
- tokenUrl: string;
459
- } | {
460
- type: "authorizationCode";
461
- refreshUrl: string;
462
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
463
- selectedScopes: string[];
464
- authorizationUrl: string;
465
- "x-scalar-redirect-uri": string;
466
- tokenUrl: string;
467
- "x-usePkce": "SHA-256" | "plain" | "no";
595
+ flows: {
596
+ password?: {
597
+ type: "password";
598
+ username: string;
599
+ password: string;
600
+ token: string;
601
+ refreshUrl: string;
602
+ scopes: Record<string, string>;
603
+ selectedScopes: string[];
604
+ "x-scalar-client-id": string;
605
+ tokenUrl: string;
606
+ clientSecret: string;
607
+ } | undefined;
608
+ implicit?: {
609
+ type: "implicit";
610
+ token: string;
611
+ refreshUrl: string;
612
+ scopes: Record<string, string>;
613
+ selectedScopes: string[];
614
+ "x-scalar-client-id": string;
615
+ authorizationUrl: string;
616
+ "x-scalar-redirect-uri": string;
617
+ } | undefined;
618
+ clientCredentials?: {
619
+ type: "clientCredentials";
620
+ token: string;
621
+ refreshUrl: string;
622
+ scopes: Record<string, string>;
623
+ selectedScopes: string[];
624
+ "x-scalar-client-id": string;
625
+ tokenUrl: string;
626
+ clientSecret: string;
627
+ } | undefined;
628
+ authorizationCode?: {
629
+ type: "authorizationCode";
630
+ token: string;
631
+ refreshUrl: string;
632
+ scopes: Record<string, string>;
633
+ selectedScopes: string[];
634
+ "x-scalar-client-id": string;
635
+ authorizationUrl: string;
636
+ "x-scalar-redirect-uri": string;
637
+ tokenUrl: string;
638
+ clientSecret: string;
639
+ "x-usePkce": "SHA-256" | "plain" | "no";
640
+ } | undefined;
468
641
  };
469
- 'x-scalar-client-id': string;
470
642
  description?: string | undefined;
471
643
  }[K]> ? import("@scalar/object-utils/nested").PathValue<{
472
644
  type: "oauth2";
473
645
  uid: string;
474
646
  nameKey: string;
475
- flow: {
476
- type: "implicit";
477
- refreshUrl: string;
478
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
479
- selectedScopes: string[];
480
- authorizationUrl: string;
481
- "x-scalar-redirect-uri": string;
482
- } | {
483
- type: "password";
484
- refreshUrl: string;
485
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
486
- selectedScopes: string[];
487
- tokenUrl: string;
488
- } | {
489
- type: "clientCredentials";
490
- refreshUrl: string;
491
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
492
- selectedScopes: string[];
493
- tokenUrl: string;
494
- } | {
495
- type: "authorizationCode";
496
- refreshUrl: string;
497
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
498
- selectedScopes: string[];
499
- authorizationUrl: string;
500
- "x-scalar-redirect-uri": string;
501
- tokenUrl: string;
502
- "x-usePkce": "SHA-256" | "plain" | "no";
647
+ flows: {
648
+ password?: {
649
+ type: "password";
650
+ username: string;
651
+ password: string;
652
+ token: string;
653
+ refreshUrl: string;
654
+ scopes: Record<string, string>;
655
+ selectedScopes: string[];
656
+ "x-scalar-client-id": string;
657
+ tokenUrl: string;
658
+ clientSecret: string;
659
+ } | undefined;
660
+ implicit?: {
661
+ type: "implicit";
662
+ token: string;
663
+ refreshUrl: string;
664
+ scopes: Record<string, string>;
665
+ selectedScopes: string[];
666
+ "x-scalar-client-id": string;
667
+ authorizationUrl: string;
668
+ "x-scalar-redirect-uri": string;
669
+ } | undefined;
670
+ clientCredentials?: {
671
+ type: "clientCredentials";
672
+ token: string;
673
+ refreshUrl: string;
674
+ scopes: Record<string, string>;
675
+ selectedScopes: string[];
676
+ "x-scalar-client-id": string;
677
+ tokenUrl: string;
678
+ clientSecret: string;
679
+ } | undefined;
680
+ authorizationCode?: {
681
+ type: "authorizationCode";
682
+ token: string;
683
+ refreshUrl: string;
684
+ scopes: Record<string, string>;
685
+ selectedScopes: string[];
686
+ "x-scalar-client-id": string;
687
+ authorizationUrl: string;
688
+ "x-scalar-redirect-uri": string;
689
+ tokenUrl: string;
690
+ clientSecret: string;
691
+ "x-usePkce": "SHA-256" | "plain" | "no";
692
+ } | undefined;
503
693
  };
504
- 'x-scalar-client-id': string;
505
694
  description?: string | undefined;
506
695
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
507
696
  undo: (uid: string) => void;
@@ -513,10 +702,11 @@ export declare function createStoreSecuritySchemes(useLocalStorage: boolean): {
513
702
  export declare function extendedSecurityDataFactory({ securitySchemeMutators, collectionMutators, collections, requests, requestMutators, }: StoreContext): {
514
703
  addSecurityScheme: (payload: SecuritySchemePayload, collectionUid: string) => {
515
704
  type: "apiKey";
705
+ value: string;
516
706
  uid: string;
517
707
  name: string;
518
- in: "query" | "header" | "cookie";
519
708
  nameKey: string;
709
+ in: "query" | "header" | "cookie";
520
710
  description?: string | undefined;
521
711
  } | {
522
712
  type: "http";
@@ -524,6 +714,9 @@ export declare function extendedSecurityDataFactory({ securitySchemeMutators, co
524
714
  nameKey: string;
525
715
  scheme: "basic" | "bearer";
526
716
  bearerFormat: string;
717
+ username: string;
718
+ password: string;
719
+ token: string;
527
720
  description?: string | undefined;
528
721
  } | {
529
722
  type: "openIdConnect";
@@ -535,38 +728,55 @@ export declare function extendedSecurityDataFactory({ securitySchemeMutators, co
535
728
  type: "oauth2";
536
729
  uid: string;
537
730
  nameKey: string;
538
- flow: {
539
- type: "implicit";
540
- refreshUrl: string;
541
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
542
- selectedScopes: string[];
543
- authorizationUrl: string;
544
- "x-scalar-redirect-uri": string;
545
- } | {
546
- type: "password";
547
- refreshUrl: string;
548
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
549
- selectedScopes: string[];
550
- tokenUrl: string;
551
- } | {
552
- type: "clientCredentials";
553
- refreshUrl: string;
554
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
555
- selectedScopes: string[];
556
- tokenUrl: string;
557
- } | {
558
- type: "authorizationCode";
559
- refreshUrl: string;
560
- scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
561
- selectedScopes: string[];
562
- authorizationUrl: string;
563
- "x-scalar-redirect-uri": string;
564
- tokenUrl: string;
565
- "x-usePkce": "SHA-256" | "plain" | "no";
731
+ flows: {
732
+ password?: {
733
+ type: "password";
734
+ username: string;
735
+ password: string;
736
+ token: string;
737
+ refreshUrl: string;
738
+ scopes: Record<string, string>;
739
+ selectedScopes: string[];
740
+ "x-scalar-client-id": string;
741
+ tokenUrl: string;
742
+ clientSecret: string;
743
+ } | undefined;
744
+ implicit?: {
745
+ type: "implicit";
746
+ token: string;
747
+ refreshUrl: string;
748
+ scopes: Record<string, string>;
749
+ selectedScopes: string[];
750
+ "x-scalar-client-id": string;
751
+ authorizationUrl: string;
752
+ "x-scalar-redirect-uri": string;
753
+ } | undefined;
754
+ clientCredentials?: {
755
+ type: "clientCredentials";
756
+ token: string;
757
+ refreshUrl: string;
758
+ scopes: Record<string, string>;
759
+ selectedScopes: string[];
760
+ "x-scalar-client-id": string;
761
+ tokenUrl: string;
762
+ clientSecret: string;
763
+ } | undefined;
764
+ authorizationCode?: {
765
+ type: "authorizationCode";
766
+ token: string;
767
+ refreshUrl: string;
768
+ scopes: Record<string, string>;
769
+ selectedScopes: string[];
770
+ "x-scalar-client-id": string;
771
+ authorizationUrl: string;
772
+ "x-scalar-redirect-uri": string;
773
+ tokenUrl: string;
774
+ clientSecret: string;
775
+ "x-usePkce": "SHA-256" | "plain" | "no";
776
+ } | undefined;
566
777
  };
567
- 'x-scalar-client-id': string;
568
778
  description?: string | undefined;
569
- } | null;
779
+ };
570
780
  deleteSecurityScheme: (schemeUid: string) => void;
571
781
  };
572
782
  //# sourceMappingURL=security-schemes.d.ts.map