@scalar/api-client 2.1.16 → 2.1.18

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 (71) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +67 -66
  5. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +3 -0
  6. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  7. package/dist/components/CommandPalette/CommandActionForm.vue.js +13 -11
  8. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +0 -2
  9. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
  10. package/dist/components/CommandPalette/CommandActionInput.vue.js +36 -38
  11. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +100 -80
  13. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  14. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +24 -24
  15. package/dist/components/ContextBar.vue.js +2 -2
  16. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +2 -2
  17. package/dist/components/SideNav/SideNav.vue.js +2 -2
  18. package/dist/components/SideNav/SideNav.vue2.js +1 -1
  19. package/dist/components/TopNav/TopNav.vue.js +2 -2
  20. package/dist/components/TopNav/TopNav.vue2.js +11 -11
  21. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
  22. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  23. package/dist/layouts/App/ApiClientApp.vue.js +36 -40
  24. package/dist/layouts/App/hotkeys.d.ts +6 -0
  25. package/dist/layouts/App/hotkeys.d.ts.map +1 -0
  26. package/dist/layouts/App/hotkeys.js +21 -0
  27. package/dist/layouts/Web/ApiClientWeb.vue.d.ts +3 -0
  28. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -0
  29. package/dist/layouts/Web/ApiClientWeb.vue.js +54 -0
  30. package/dist/layouts/Web/ApiClientWeb.vue3.js +5 -0
  31. package/dist/layouts/Web/create-api-client-web.d.ts +3593 -0
  32. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -0
  33. package/dist/layouts/Web/create-api-client-web.js +18 -0
  34. package/dist/layouts/Web/index.d.ts +3 -0
  35. package/dist/layouts/Web/index.d.ts.map +1 -0
  36. package/dist/layouts/Web/index.js +7 -0
  37. package/dist/libs/event-busses/hot-keys-bus.d.ts +0 -1
  38. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
  39. package/dist/libs/event-busses/hot-keys-bus.js +19 -35
  40. package/dist/libs/extractAttachmentFilename.d.ts +2 -0
  41. package/dist/libs/extractAttachmentFilename.d.ts.map +1 -0
  42. package/dist/libs/extractAttachmentFilename.js +20 -0
  43. package/dist/libs/getOpenApiDocumentDetails.d.ts +10 -0
  44. package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -0
  45. package/dist/libs/getOpenApiDocumentDetails.js +40 -0
  46. package/dist/libs/index.d.ts +1 -2
  47. package/dist/libs/index.d.ts.map +1 -1
  48. package/dist/libs/index.js +21 -23
  49. package/dist/libs/isUrl.d.ts +1 -1
  50. package/dist/libs/isUrl.d.ts.map +1 -1
  51. package/dist/libs/isUrl.js +4 -3
  52. package/dist/store/import-spec.d.ts.map +1 -1
  53. package/dist/store/import-spec.js +21 -26
  54. package/dist/style.css +1 -1
  55. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  56. package/dist/views/Request/RequestSubpageHeader.vue.js +3 -3
  57. package/dist/views/Request/RequestSubpageHeader.vue2.js +2 -2
  58. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  59. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +63 -55
  60. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +2 -0
  61. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  62. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +14 -14
  63. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  64. package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
  65. package/package.json +10 -6
  66. package/dist/libs/getOpenApiDocumentVersion.d.ts +0 -8
  67. package/dist/libs/getOpenApiDocumentVersion.d.ts.map +0 -1
  68. package/dist/libs/getOpenApiDocumentVersion.js +0 -20
  69. package/dist/libs/isDocument.d.ts +0 -3
  70. package/dist/libs/isDocument.d.ts.map +0 -1
  71. package/dist/libs/isDocument.js +0 -7
@@ -0,0 +1,3593 @@
1
+ import { type ClientConfiguration } from '../../libs/index.js';
2
+ /**
3
+ * Mount the API Client to a given element.
4
+ */
5
+ export declare const createApiClientWeb: (el: HTMLElement | null, configuration?: ClientConfiguration, mountOnInitialize?: boolean, router?: import("vue-router").Router) => Promise<{
6
+ app: import("vue").App<Element>;
7
+ updateConfig(newConfig: ClientConfiguration, mergeConfigs?: boolean): void;
8
+ updateServer: (serverUrl: string) => void;
9
+ onUpdateServer: (callback: (url: string) => void) => void;
10
+ updateAuth: <P extends import("@scalar/object-utils/nested").Path<import("@scalar/oas-utils/entities/spec").Collection["auth"][string]>>({ nameKey, propertyKey, value, }: {
11
+ nameKey: string;
12
+ propertyKey: P;
13
+ value: import("@scalar/object-utils/nested").PathValue<import("@scalar/oas-utils/entities/spec").Collection["auth"][string], P>;
14
+ }) => void;
15
+ updateSpec: (spec: import("@scalar/types/legacy").SpecConfiguration) => Promise<void>;
16
+ route: (params: import("../../libs/index.js").OpenClientPayload) => void;
17
+ open: (payload?: import("../../libs/index.js").OpenClientPayload) => void;
18
+ mount: (mountingEl?: HTMLElement | null) => void;
19
+ modalState: {
20
+ open: boolean;
21
+ show: () => void;
22
+ hide: () => void;
23
+ };
24
+ store: {
25
+ workspaces: Record<string, {
26
+ uid: string;
27
+ name: string;
28
+ description: string;
29
+ isReadOnly: boolean;
30
+ collections: string[];
31
+ environments: string[];
32
+ activeEnvironmentId: string;
33
+ cookies: string[];
34
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
35
+ hotKeyConfig?: {
36
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
37
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
38
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
39
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
40
+ }>> | undefined;
41
+ } | undefined;
42
+ proxyUrl?: string | undefined;
43
+ }>;
44
+ collections: Record<string, {
45
+ type: "collection";
46
+ uid: string;
47
+ children: string[];
48
+ openapi: string;
49
+ security: Record<string, string[]>[];
50
+ 'x-scalar-icon': string;
51
+ securitySchemes: string[];
52
+ selectedServerUid: string;
53
+ servers: string[];
54
+ requests: string[];
55
+ tags: string[];
56
+ auth: Record<string, {
57
+ type: "apiKey";
58
+ value: string;
59
+ name: string;
60
+ } | {
61
+ type: "http";
62
+ username: string;
63
+ password: string;
64
+ token: string;
65
+ } | {
66
+ type: "oauth-implicit";
67
+ token: string;
68
+ } | {
69
+ type: "oauth-password";
70
+ username: string;
71
+ password: string;
72
+ token: string;
73
+ clientSecret: string;
74
+ } | {
75
+ type: "oauth-clientCredentials";
76
+ token: string;
77
+ clientSecret: string;
78
+ } | {
79
+ type: "oauth-authorizationCode";
80
+ token: string;
81
+ clientSecret: string;
82
+ }>;
83
+ externalDocs?: {
84
+ url: string;
85
+ description?: string | undefined;
86
+ } | undefined;
87
+ jsonSchemaDialect?: string | undefined;
88
+ info?: {
89
+ title: string;
90
+ version: string;
91
+ description?: string | undefined;
92
+ summary?: string | undefined;
93
+ termsOfService?: string | undefined;
94
+ contact?: {
95
+ name?: string | undefined;
96
+ url?: string | undefined;
97
+ email?: string | undefined;
98
+ } | undefined;
99
+ license?: {
100
+ name: string;
101
+ identifier?: string | undefined;
102
+ url?: string | undefined;
103
+ } | undefined;
104
+ } | undefined;
105
+ components?: Record<string, unknown> | undefined;
106
+ webhooks?: Record<string, unknown> | undefined;
107
+ }>;
108
+ tags: Record<string, {
109
+ type: "tag";
110
+ uid: string;
111
+ name: string;
112
+ 'x-scalar-children': {
113
+ tagName: string;
114
+ }[];
115
+ children: string[];
116
+ description?: string | undefined;
117
+ externalDocs?: {
118
+ url: string;
119
+ description?: string | undefined;
120
+ } | undefined;
121
+ }>;
122
+ cookies: Record<string, {
123
+ value: string;
124
+ uid: string;
125
+ name: string;
126
+ sameSite: "Lax" | "Strict" | "None";
127
+ path?: string | undefined;
128
+ domain?: string | undefined;
129
+ expires?: Date | undefined;
130
+ httpOnly?: boolean | undefined;
131
+ maxAge?: number | undefined;
132
+ partitioned?: boolean | undefined;
133
+ secure?: boolean | undefined;
134
+ }>;
135
+ environments: Record<string, {
136
+ value: string;
137
+ uid: string;
138
+ name: string;
139
+ color: string;
140
+ isDefault?: boolean | undefined;
141
+ }>;
142
+ requestExamples: Record<string, {
143
+ type: "requestExample";
144
+ uid: string;
145
+ name: string;
146
+ body: {
147
+ activeBody: "formData" | "raw" | "binary";
148
+ formData?: {
149
+ value: {
150
+ value: string;
151
+ key: string;
152
+ enabled: boolean;
153
+ minimum?: number | undefined;
154
+ type?: string | undefined;
155
+ maximum?: number | undefined;
156
+ default?: any;
157
+ required?: boolean | undefined;
158
+ description?: string | undefined;
159
+ enum?: string[] | undefined;
160
+ format?: string | undefined;
161
+ file?: any;
162
+ refUid?: string | undefined;
163
+ nullable?: boolean | undefined;
164
+ }[];
165
+ encoding: "form-data" | "urlencoded";
166
+ } | undefined;
167
+ raw?: {
168
+ value: string;
169
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
170
+ } | undefined;
171
+ binary?: Blob | undefined;
172
+ };
173
+ requestUid: string;
174
+ parameters: {
175
+ path: {
176
+ value: string;
177
+ key: string;
178
+ enabled: boolean;
179
+ minimum?: number | undefined;
180
+ type?: string | undefined;
181
+ maximum?: number | undefined;
182
+ default?: any;
183
+ required?: boolean | undefined;
184
+ description?: string | undefined;
185
+ enum?: string[] | undefined;
186
+ format?: string | undefined;
187
+ file?: any;
188
+ refUid?: string | undefined;
189
+ nullable?: boolean | undefined;
190
+ }[];
191
+ cookies: {
192
+ value: string;
193
+ key: string;
194
+ enabled: boolean;
195
+ minimum?: number | undefined;
196
+ type?: string | undefined;
197
+ maximum?: number | undefined;
198
+ default?: any;
199
+ required?: boolean | undefined;
200
+ description?: string | undefined;
201
+ enum?: string[] | undefined;
202
+ format?: string | undefined;
203
+ file?: any;
204
+ refUid?: string | undefined;
205
+ nullable?: boolean | undefined;
206
+ }[];
207
+ query: {
208
+ value: string;
209
+ key: string;
210
+ enabled: boolean;
211
+ minimum?: number | undefined;
212
+ type?: string | undefined;
213
+ maximum?: number | undefined;
214
+ default?: any;
215
+ required?: boolean | undefined;
216
+ description?: string | undefined;
217
+ enum?: string[] | undefined;
218
+ format?: string | undefined;
219
+ file?: any;
220
+ refUid?: string | undefined;
221
+ nullable?: boolean | undefined;
222
+ }[];
223
+ headers: {
224
+ value: string;
225
+ key: string;
226
+ enabled: boolean;
227
+ minimum?: number | undefined;
228
+ type?: string | undefined;
229
+ maximum?: number | undefined;
230
+ default?: any;
231
+ required?: boolean | undefined;
232
+ description?: string | undefined;
233
+ enum?: string[] | undefined;
234
+ format?: string | undefined;
235
+ file?: any;
236
+ refUid?: string | undefined;
237
+ nullable?: boolean | undefined;
238
+ }[];
239
+ };
240
+ serverVariables?: Record<string, string[]> | undefined;
241
+ }>;
242
+ requests: Record<string, {
243
+ path: string;
244
+ type: "request";
245
+ uid: string;
246
+ selectedServerUid: string;
247
+ servers: string[];
248
+ examples: string[];
249
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
250
+ selectedSecuritySchemeUids: string[];
251
+ description?: string | undefined;
252
+ summary?: string | undefined;
253
+ externalDocs?: {
254
+ url: string;
255
+ description?: string | undefined;
256
+ } | undefined;
257
+ security?: Record<string, string[]>[] | undefined;
258
+ tags?: string[] | undefined;
259
+ deprecated?: boolean | undefined;
260
+ operationId?: string | undefined;
261
+ parameters?: {
262
+ required: boolean;
263
+ name: string;
264
+ in: "path" | "query" | "header" | "cookie";
265
+ deprecated: boolean;
266
+ description?: string | undefined;
267
+ schema?: unknown;
268
+ content?: unknown;
269
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
270
+ }[] | undefined;
271
+ requestBody?: any;
272
+ responses?: Record<string, any> | undefined;
273
+ }>;
274
+ servers: Record<string, {
275
+ uid: string;
276
+ description?: string | undefined;
277
+ url?: string | undefined;
278
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
279
+ enum?: [string, ...string[]];
280
+ }> | undefined;
281
+ }>;
282
+ securitySchemes: Record<string, {
283
+ type: "apiKey";
284
+ uid: string;
285
+ name: string;
286
+ in: "query" | "header" | "cookie";
287
+ nameKey: string;
288
+ description?: string | undefined;
289
+ } | {
290
+ type: "http";
291
+ uid: string;
292
+ nameKey: string;
293
+ scheme: "basic" | "bearer";
294
+ bearerFormat: string;
295
+ description?: string | undefined;
296
+ } | {
297
+ type: "openIdConnect";
298
+ uid: string;
299
+ nameKey: string;
300
+ openIdConnectUrl: string;
301
+ description?: string | undefined;
302
+ } | {
303
+ type: "oauth2";
304
+ uid: string;
305
+ nameKey: string;
306
+ flow: {
307
+ type: "implicit";
308
+ refreshUrl: string;
309
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
310
+ selectedScopes: string[];
311
+ authorizationUrl: string;
312
+ "x-scalar-redirect-uri": string;
313
+ } | {
314
+ type: "password";
315
+ refreshUrl: string;
316
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
317
+ selectedScopes: string[];
318
+ tokenUrl: string;
319
+ } | {
320
+ type: "clientCredentials";
321
+ refreshUrl: string;
322
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
323
+ selectedScopes: string[];
324
+ tokenUrl: string;
325
+ } | {
326
+ type: "authorizationCode";
327
+ refreshUrl: string;
328
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
329
+ selectedScopes: string[];
330
+ authorizationUrl: string;
331
+ "x-scalar-redirect-uri": string;
332
+ tokenUrl: string;
333
+ };
334
+ 'x-scalar-client-id': string;
335
+ description?: string | undefined;
336
+ }>;
337
+ activeCollection: import("vue").ComputedRef<{
338
+ type: "collection";
339
+ uid: string;
340
+ children: string[];
341
+ openapi: string;
342
+ security: Record<string, string[]>[];
343
+ 'x-scalar-icon': string;
344
+ securitySchemes: string[];
345
+ selectedServerUid: string;
346
+ servers: string[];
347
+ requests: string[];
348
+ tags: string[];
349
+ auth: Record<string, {
350
+ type: "apiKey";
351
+ value: string;
352
+ name: string;
353
+ } | {
354
+ type: "http";
355
+ username: string;
356
+ password: string;
357
+ token: string;
358
+ } | {
359
+ type: "oauth-implicit";
360
+ token: string;
361
+ } | {
362
+ type: "oauth-password";
363
+ username: string;
364
+ password: string;
365
+ token: string;
366
+ clientSecret: string;
367
+ } | {
368
+ type: "oauth-clientCredentials";
369
+ token: string;
370
+ clientSecret: string;
371
+ } | {
372
+ type: "oauth-authorizationCode";
373
+ token: string;
374
+ clientSecret: string;
375
+ }>;
376
+ externalDocs?: {
377
+ url: string;
378
+ description?: string | undefined;
379
+ } | undefined;
380
+ jsonSchemaDialect?: string | undefined;
381
+ info?: {
382
+ title: string;
383
+ version: string;
384
+ description?: string | undefined;
385
+ summary?: string | undefined;
386
+ termsOfService?: string | undefined;
387
+ contact?: {
388
+ name?: string | undefined;
389
+ url?: string | undefined;
390
+ email?: string | undefined;
391
+ } | undefined;
392
+ license?: {
393
+ name: string;
394
+ identifier?: string | undefined;
395
+ url?: string | undefined;
396
+ } | undefined;
397
+ } | undefined;
398
+ components?: Record<string, unknown> | undefined;
399
+ webhooks?: Record<string, unknown> | undefined;
400
+ } | undefined>;
401
+ activeCookieId: import("vue").ComputedRef<string | undefined>;
402
+ activeExample: import("vue").ComputedRef<{
403
+ type: "requestExample";
404
+ uid: string;
405
+ name: string;
406
+ body: {
407
+ activeBody: "formData" | "raw" | "binary";
408
+ formData?: {
409
+ value: {
410
+ value: string;
411
+ key: string;
412
+ enabled: boolean;
413
+ minimum?: number | undefined;
414
+ type?: string | undefined;
415
+ maximum?: number | undefined;
416
+ default?: any;
417
+ required?: boolean | undefined;
418
+ description?: string | undefined;
419
+ enum?: string[] | undefined;
420
+ format?: string | undefined;
421
+ file?: any;
422
+ refUid?: string | undefined;
423
+ nullable?: boolean | undefined;
424
+ }[];
425
+ encoding: "form-data" | "urlencoded";
426
+ } | undefined;
427
+ raw?: {
428
+ value: string;
429
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
430
+ } | undefined;
431
+ binary?: Blob | undefined;
432
+ };
433
+ requestUid: string;
434
+ parameters: {
435
+ path: {
436
+ value: string;
437
+ key: string;
438
+ enabled: boolean;
439
+ minimum?: number | undefined;
440
+ type?: string | undefined;
441
+ maximum?: number | undefined;
442
+ default?: any;
443
+ required?: boolean | undefined;
444
+ description?: string | undefined;
445
+ enum?: string[] | undefined;
446
+ format?: string | undefined;
447
+ file?: any;
448
+ refUid?: string | undefined;
449
+ nullable?: boolean | undefined;
450
+ }[];
451
+ cookies: {
452
+ value: string;
453
+ key: string;
454
+ enabled: boolean;
455
+ minimum?: number | undefined;
456
+ type?: string | undefined;
457
+ maximum?: number | undefined;
458
+ default?: any;
459
+ required?: boolean | undefined;
460
+ description?: string | undefined;
461
+ enum?: string[] | undefined;
462
+ format?: string | undefined;
463
+ file?: any;
464
+ refUid?: string | undefined;
465
+ nullable?: boolean | undefined;
466
+ }[];
467
+ query: {
468
+ value: string;
469
+ key: string;
470
+ enabled: boolean;
471
+ minimum?: number | undefined;
472
+ type?: string | undefined;
473
+ maximum?: number | undefined;
474
+ default?: any;
475
+ required?: boolean | undefined;
476
+ description?: string | undefined;
477
+ enum?: string[] | undefined;
478
+ format?: string | undefined;
479
+ file?: any;
480
+ refUid?: string | undefined;
481
+ nullable?: boolean | undefined;
482
+ }[];
483
+ headers: {
484
+ value: string;
485
+ key: string;
486
+ enabled: boolean;
487
+ minimum?: number | undefined;
488
+ type?: string | undefined;
489
+ maximum?: number | undefined;
490
+ default?: any;
491
+ required?: boolean | undefined;
492
+ description?: string | undefined;
493
+ enum?: string[] | undefined;
494
+ format?: string | undefined;
495
+ file?: any;
496
+ refUid?: string | undefined;
497
+ nullable?: boolean | undefined;
498
+ }[];
499
+ };
500
+ serverVariables?: Record<string, string[]> | undefined;
501
+ } | undefined>;
502
+ activeRequest: import("vue").ComputedRef<{
503
+ path: string;
504
+ type: "request";
505
+ uid: string;
506
+ selectedServerUid: string;
507
+ servers: string[];
508
+ examples: string[];
509
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
510
+ selectedSecuritySchemeUids: string[];
511
+ description?: string | undefined;
512
+ summary?: string | undefined;
513
+ externalDocs?: {
514
+ url: string;
515
+ description?: string | undefined;
516
+ } | undefined;
517
+ security?: Record<string, string[]>[] | undefined;
518
+ tags?: string[] | undefined;
519
+ deprecated?: boolean | undefined;
520
+ operationId?: string | undefined;
521
+ parameters?: {
522
+ required: boolean;
523
+ name: string;
524
+ in: "path" | "query" | "header" | "cookie";
525
+ deprecated: boolean;
526
+ description?: string | undefined;
527
+ schema?: unknown;
528
+ content?: unknown;
529
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
530
+ }[] | undefined;
531
+ requestBody?: any;
532
+ responses?: Record<string, any> | undefined;
533
+ } | undefined>;
534
+ activeRouterParams: import("vue").ComputedRef<{
535
+ collection: string;
536
+ environment: string;
537
+ request: string;
538
+ examples: string;
539
+ schema: string;
540
+ cookies: string;
541
+ servers: string;
542
+ workspace: string;
543
+ }>;
544
+ activeEnvironment: import("vue").ComputedRef<{
545
+ value: string;
546
+ uid: string;
547
+ name: string;
548
+ color: string;
549
+ isDefault?: boolean | undefined;
550
+ }>;
551
+ activeServer: import("vue").ComputedRef<{
552
+ uid: string;
553
+ description?: string | undefined;
554
+ url?: string | undefined;
555
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
556
+ enum?: [string, ...string[]];
557
+ }> | undefined;
558
+ }>;
559
+ activeWorkspace: import("vue").ComputedRef<{
560
+ uid: string;
561
+ name: string;
562
+ description: string;
563
+ isReadOnly: boolean;
564
+ collections: string[];
565
+ environments: string[];
566
+ activeEnvironmentId: string;
567
+ cookies: string[];
568
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
569
+ hotKeyConfig?: {
570
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
571
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
572
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
573
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
574
+ }>> | undefined;
575
+ } | undefined;
576
+ proxyUrl?: string | undefined;
577
+ }>;
578
+ activeWorkspaceCollections: import("vue").ComputedRef<{
579
+ type: "collection";
580
+ uid: string;
581
+ children: string[];
582
+ openapi: string;
583
+ security: Record<string, string[]>[];
584
+ 'x-scalar-icon': string;
585
+ securitySchemes: string[];
586
+ selectedServerUid: string;
587
+ servers: string[];
588
+ requests: string[];
589
+ tags: string[];
590
+ auth: Record<string, {
591
+ type: "apiKey";
592
+ value: string;
593
+ name: string;
594
+ } | {
595
+ type: "http";
596
+ username: string;
597
+ password: string;
598
+ token: string;
599
+ } | {
600
+ type: "oauth-implicit";
601
+ token: string;
602
+ } | {
603
+ type: "oauth-password";
604
+ username: string;
605
+ password: string;
606
+ token: string;
607
+ clientSecret: string;
608
+ } | {
609
+ type: "oauth-clientCredentials";
610
+ token: string;
611
+ clientSecret: string;
612
+ } | {
613
+ type: "oauth-authorizationCode";
614
+ token: string;
615
+ clientSecret: string;
616
+ }>;
617
+ externalDocs?: {
618
+ url: string;
619
+ description?: string | undefined;
620
+ } | undefined;
621
+ jsonSchemaDialect?: string | undefined;
622
+ info?: {
623
+ title: string;
624
+ version: string;
625
+ description?: string | undefined;
626
+ summary?: string | undefined;
627
+ termsOfService?: string | undefined;
628
+ contact?: {
629
+ name?: string | undefined;
630
+ url?: string | undefined;
631
+ email?: string | undefined;
632
+ } | undefined;
633
+ license?: {
634
+ name: string;
635
+ identifier?: string | undefined;
636
+ url?: string | undefined;
637
+ } | undefined;
638
+ } | undefined;
639
+ components?: Record<string, unknown> | undefined;
640
+ webhooks?: Record<string, unknown> | undefined;
641
+ }[]>;
642
+ activeWorkspaceServers: import("vue").ComputedRef<{
643
+ uid: string;
644
+ description?: string | undefined;
645
+ url?: string | undefined;
646
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
647
+ enum?: [string, ...string[]];
648
+ }> | undefined;
649
+ }[]>;
650
+ activeEnvVariables: import("vue").ComputedRef<{
651
+ key: string;
652
+ value: string;
653
+ }[]>;
654
+ activeWorkspaceRequests: import("vue").ComputedRef<string[]>;
655
+ modalState: {
656
+ open: boolean;
657
+ show: () => void;
658
+ hide: () => void;
659
+ };
660
+ isReadOnly: import("vue").ComputedRef<boolean>;
661
+ router: import("vue-router").Router;
662
+ sidebarWidth: import("vue").Ref<string>;
663
+ setSidebarWidth: (width: string) => void;
664
+ importSpecFile: (_spec: string | Record<string, any>, workspaceUid?: string, overloadServers?: import("@scalar/types/legacy").Spec["servers"], preferredSecurityScheme?: ClientConfiguration["preferredSecurityScheme"]) => Promise<{
665
+ type: "collection";
666
+ uid: string;
667
+ children: string[];
668
+ openapi: string;
669
+ security: Record<string, string[]>[];
670
+ 'x-scalar-icon': string;
671
+ securitySchemes: string[];
672
+ selectedServerUid: string;
673
+ servers: string[];
674
+ requests: string[];
675
+ tags: string[];
676
+ auth: Record<string, {
677
+ type: "apiKey";
678
+ value: string;
679
+ name: string;
680
+ } | {
681
+ type: "http";
682
+ username: string;
683
+ password: string;
684
+ token: string;
685
+ } | {
686
+ type: "oauth-implicit";
687
+ token: string;
688
+ } | {
689
+ type: "oauth-password";
690
+ username: string;
691
+ password: string;
692
+ token: string;
693
+ clientSecret: string;
694
+ } | {
695
+ type: "oauth-clientCredentials";
696
+ token: string;
697
+ clientSecret: string;
698
+ } | {
699
+ type: "oauth-authorizationCode";
700
+ token: string;
701
+ clientSecret: string;
702
+ }>;
703
+ externalDocs?: {
704
+ url: string;
705
+ description?: string | undefined;
706
+ } | undefined;
707
+ jsonSchemaDialect?: string | undefined;
708
+ info?: {
709
+ title: string;
710
+ version: string;
711
+ description?: string | undefined;
712
+ summary?: string | undefined;
713
+ termsOfService?: string | undefined;
714
+ contact?: {
715
+ name?: string | undefined;
716
+ url?: string | undefined;
717
+ email?: string | undefined;
718
+ } | undefined;
719
+ license?: {
720
+ name: string;
721
+ identifier?: string | undefined;
722
+ url?: string | undefined;
723
+ } | undefined;
724
+ } | undefined;
725
+ components?: Record<string, unknown> | undefined;
726
+ webhooks?: Record<string, unknown> | undefined;
727
+ } | undefined>;
728
+ importSpecFromUrl: (url: string, proxy?: string, overloadServers?: import("@scalar/types/legacy").Spec["servers"], preferredSecurityScheme?: ClientConfiguration["preferredSecurityScheme"], workspaceUid?: string) => Promise<{
729
+ type: "collection";
730
+ uid: string;
731
+ children: string[];
732
+ openapi: string;
733
+ security: Record<string, string[]>[];
734
+ 'x-scalar-icon': string;
735
+ securitySchemes: string[];
736
+ selectedServerUid: string;
737
+ servers: string[];
738
+ requests: string[];
739
+ tags: string[];
740
+ auth: Record<string, {
741
+ type: "apiKey";
742
+ value: string;
743
+ name: string;
744
+ } | {
745
+ type: "http";
746
+ username: string;
747
+ password: string;
748
+ token: string;
749
+ } | {
750
+ type: "oauth-implicit";
751
+ token: string;
752
+ } | {
753
+ type: "oauth-password";
754
+ username: string;
755
+ password: string;
756
+ token: string;
757
+ clientSecret: string;
758
+ } | {
759
+ type: "oauth-clientCredentials";
760
+ token: string;
761
+ clientSecret: string;
762
+ } | {
763
+ type: "oauth-authorizationCode";
764
+ token: string;
765
+ clientSecret: string;
766
+ }>;
767
+ externalDocs?: {
768
+ url: string;
769
+ description?: string | undefined;
770
+ } | undefined;
771
+ jsonSchemaDialect?: string | undefined;
772
+ info?: {
773
+ title: string;
774
+ version: string;
775
+ description?: string | undefined;
776
+ summary?: string | undefined;
777
+ termsOfService?: string | undefined;
778
+ contact?: {
779
+ name?: string | undefined;
780
+ url?: string | undefined;
781
+ email?: string | undefined;
782
+ } | undefined;
783
+ license?: {
784
+ name: string;
785
+ identifier?: string | undefined;
786
+ url?: string | undefined;
787
+ } | undefined;
788
+ } | undefined;
789
+ components?: Record<string, unknown> | undefined;
790
+ webhooks?: Record<string, unknown> | undefined;
791
+ } | undefined>;
792
+ cookieMutators: {
793
+ add: (item: {
794
+ value: string;
795
+ uid: string;
796
+ name: string;
797
+ sameSite: "Lax" | "Strict" | "None";
798
+ path?: string | undefined;
799
+ domain?: string | undefined;
800
+ expires?: Date | undefined;
801
+ httpOnly?: boolean | undefined;
802
+ maxAge?: number | undefined;
803
+ partitioned?: boolean | undefined;
804
+ secure?: boolean | undefined;
805
+ }) => void;
806
+ delete: (uid: string) => void;
807
+ set: (item: {
808
+ value: string;
809
+ uid: string;
810
+ name: string;
811
+ sameSite: "Lax" | "Strict" | "None";
812
+ path?: string | undefined;
813
+ domain?: string | undefined;
814
+ expires?: Date | undefined;
815
+ httpOnly?: boolean | undefined;
816
+ maxAge?: number | undefined;
817
+ partitioned?: boolean | undefined;
818
+ secure?: boolean | undefined;
819
+ }) => void;
820
+ edit: <P extends "path" | "name" | "value" | "uid" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure">(uid: string, path: P, value: P extends "path" | "name" | "value" | "uid" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure" ? {
821
+ value: string;
822
+ uid: string;
823
+ name: string;
824
+ sameSite: "Lax" | "Strict" | "None";
825
+ path?: string | undefined;
826
+ domain?: string | undefined;
827
+ expires?: Date | undefined;
828
+ httpOnly?: boolean | undefined;
829
+ maxAge?: number | undefined;
830
+ partitioned?: boolean | undefined;
831
+ secure?: boolean | undefined;
832
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "path" | "name" | "value" | "uid" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure" ? R extends import("@scalar/object-utils/nested").Path<{
833
+ value: string;
834
+ uid: string;
835
+ name: string;
836
+ sameSite: "Lax" | "Strict" | "None";
837
+ path?: string | undefined;
838
+ domain?: string | undefined;
839
+ expires?: Date | undefined;
840
+ httpOnly?: boolean | undefined;
841
+ maxAge?: number | undefined;
842
+ partitioned?: boolean | undefined;
843
+ secure?: boolean | undefined;
844
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
845
+ value: string;
846
+ uid: string;
847
+ name: string;
848
+ sameSite: "Lax" | "Strict" | "None";
849
+ path?: string | undefined;
850
+ domain?: string | undefined;
851
+ expires?: Date | undefined;
852
+ httpOnly?: boolean | undefined;
853
+ maxAge?: number | undefined;
854
+ partitioned?: boolean | undefined;
855
+ secure?: boolean | undefined;
856
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
857
+ untrackedEdit: <P extends "path" | "name" | "value" | "uid" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure">(uid: string, path: P, value: P extends "path" | "name" | "value" | "uid" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure" ? {
858
+ value: string;
859
+ uid: string;
860
+ name: string;
861
+ sameSite: "Lax" | "Strict" | "None";
862
+ path?: string | undefined;
863
+ domain?: string | undefined;
864
+ expires?: Date | undefined;
865
+ httpOnly?: boolean | undefined;
866
+ maxAge?: number | undefined;
867
+ partitioned?: boolean | undefined;
868
+ secure?: boolean | undefined;
869
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "path" | "name" | "value" | "uid" | "domain" | "sameSite" | "expires" | "httpOnly" | "maxAge" | "partitioned" | "secure" ? R extends import("@scalar/object-utils/nested").Path<{
870
+ value: string;
871
+ uid: string;
872
+ name: string;
873
+ sameSite: "Lax" | "Strict" | "None";
874
+ path?: string | undefined;
875
+ domain?: string | undefined;
876
+ expires?: Date | undefined;
877
+ httpOnly?: boolean | undefined;
878
+ maxAge?: number | undefined;
879
+ partitioned?: boolean | undefined;
880
+ secure?: boolean | undefined;
881
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
882
+ value: string;
883
+ uid: string;
884
+ name: string;
885
+ sameSite: "Lax" | "Strict" | "None";
886
+ path?: string | undefined;
887
+ domain?: string | undefined;
888
+ expires?: Date | undefined;
889
+ httpOnly?: boolean | undefined;
890
+ maxAge?: number | undefined;
891
+ partitioned?: boolean | undefined;
892
+ secure?: boolean | undefined;
893
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
894
+ undo: (uid: string) => void;
895
+ redo: (uid: string) => void;
896
+ };
897
+ collectionMutators: {
898
+ rawAdd: (item: {
899
+ type: "collection";
900
+ uid: string;
901
+ children: string[];
902
+ openapi: string;
903
+ security: Record<string, string[]>[];
904
+ 'x-scalar-icon': string;
905
+ securitySchemes: string[];
906
+ selectedServerUid: string;
907
+ servers: string[];
908
+ requests: string[];
909
+ tags: string[];
910
+ auth: Record<string, {
911
+ type: "apiKey";
912
+ value: string;
913
+ name: string;
914
+ } | {
915
+ type: "http";
916
+ username: string;
917
+ password: string;
918
+ token: string;
919
+ } | {
920
+ type: "oauth-implicit";
921
+ token: string;
922
+ } | {
923
+ type: "oauth-password";
924
+ username: string;
925
+ password: string;
926
+ token: string;
927
+ clientSecret: string;
928
+ } | {
929
+ type: "oauth-clientCredentials";
930
+ token: string;
931
+ clientSecret: string;
932
+ } | {
933
+ type: "oauth-authorizationCode";
934
+ token: string;
935
+ clientSecret: string;
936
+ }>;
937
+ externalDocs?: {
938
+ url: string;
939
+ description?: string | undefined;
940
+ } | undefined;
941
+ jsonSchemaDialect?: string | undefined;
942
+ info?: {
943
+ title: string;
944
+ version: string;
945
+ description?: string | undefined;
946
+ summary?: string | undefined;
947
+ termsOfService?: string | undefined;
948
+ contact?: {
949
+ name?: string | undefined;
950
+ url?: string | undefined;
951
+ email?: string | undefined;
952
+ } | undefined;
953
+ license?: {
954
+ name: string;
955
+ identifier?: string | undefined;
956
+ url?: string | undefined;
957
+ } | undefined;
958
+ } | undefined;
959
+ components?: Record<string, unknown> | undefined;
960
+ webhooks?: Record<string, unknown> | undefined;
961
+ }) => void;
962
+ add: (payload: import("@scalar/oas-utils/entities/spec").CollectionPayload, workspaceUid: string) => {
963
+ type: "collection";
964
+ uid: string;
965
+ children: string[];
966
+ openapi: string;
967
+ security: Record<string, string[]>[];
968
+ 'x-scalar-icon': string;
969
+ securitySchemes: string[];
970
+ selectedServerUid: string;
971
+ servers: string[];
972
+ requests: string[];
973
+ tags: string[];
974
+ auth: Record<string, {
975
+ type: "apiKey";
976
+ value: string;
977
+ name: string;
978
+ } | {
979
+ type: "http";
980
+ username: string;
981
+ password: string;
982
+ token: string;
983
+ } | {
984
+ type: "oauth-implicit";
985
+ token: string;
986
+ } | {
987
+ type: "oauth-password";
988
+ username: string;
989
+ password: string;
990
+ token: string;
991
+ clientSecret: string;
992
+ } | {
993
+ type: "oauth-clientCredentials";
994
+ token: string;
995
+ clientSecret: string;
996
+ } | {
997
+ type: "oauth-authorizationCode";
998
+ token: string;
999
+ clientSecret: string;
1000
+ }>;
1001
+ externalDocs?: {
1002
+ url: string;
1003
+ description?: string | undefined;
1004
+ } | undefined;
1005
+ jsonSchemaDialect?: string | undefined;
1006
+ info?: {
1007
+ title: string;
1008
+ version: string;
1009
+ description?: string | undefined;
1010
+ summary?: string | undefined;
1011
+ termsOfService?: string | undefined;
1012
+ contact?: {
1013
+ name?: string | undefined;
1014
+ url?: string | undefined;
1015
+ email?: string | undefined;
1016
+ } | undefined;
1017
+ license?: {
1018
+ name: string;
1019
+ identifier?: string | undefined;
1020
+ url?: string | undefined;
1021
+ } | undefined;
1022
+ } | undefined;
1023
+ components?: Record<string, unknown> | undefined;
1024
+ webhooks?: Record<string, unknown> | undefined;
1025
+ };
1026
+ delete: (collection: import("@scalar/oas-utils/entities/spec").Collection, workspace: import("@scalar/oas-utils/entities/workspace").Workspace) => void;
1027
+ set: (item: {
1028
+ type: "collection";
1029
+ uid: string;
1030
+ children: string[];
1031
+ openapi: string;
1032
+ security: Record<string, string[]>[];
1033
+ 'x-scalar-icon': string;
1034
+ securitySchemes: string[];
1035
+ selectedServerUid: string;
1036
+ servers: string[];
1037
+ requests: string[];
1038
+ tags: string[];
1039
+ auth: Record<string, {
1040
+ type: "apiKey";
1041
+ value: string;
1042
+ name: string;
1043
+ } | {
1044
+ type: "http";
1045
+ username: string;
1046
+ password: string;
1047
+ token: string;
1048
+ } | {
1049
+ type: "oauth-implicit";
1050
+ token: string;
1051
+ } | {
1052
+ type: "oauth-password";
1053
+ username: string;
1054
+ password: string;
1055
+ token: string;
1056
+ clientSecret: string;
1057
+ } | {
1058
+ type: "oauth-clientCredentials";
1059
+ token: string;
1060
+ clientSecret: string;
1061
+ } | {
1062
+ type: "oauth-authorizationCode";
1063
+ token: string;
1064
+ clientSecret: string;
1065
+ }>;
1066
+ externalDocs?: {
1067
+ url: string;
1068
+ description?: string | undefined;
1069
+ } | undefined;
1070
+ jsonSchemaDialect?: string | undefined;
1071
+ info?: {
1072
+ title: string;
1073
+ version: string;
1074
+ description?: string | undefined;
1075
+ summary?: string | undefined;
1076
+ termsOfService?: string | undefined;
1077
+ contact?: {
1078
+ name?: string | undefined;
1079
+ url?: string | undefined;
1080
+ email?: string | undefined;
1081
+ } | undefined;
1082
+ license?: {
1083
+ name: string;
1084
+ identifier?: string | undefined;
1085
+ url?: string | undefined;
1086
+ } | undefined;
1087
+ } | undefined;
1088
+ components?: Record<string, unknown> | undefined;
1089
+ webhooks?: Record<string, unknown> | undefined;
1090
+ }) => void;
1091
+ edit: <P extends "type" | "children" | "tags" | "requests" | "servers" | "securitySchemes" | "components" | "openapi" | "info" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "uid" | "selectedServerUid" | "x-scalar-icon" | "auth" | `children.${number}` | `tags.${number}` | `requests.${number}` | `servers.${number}` | `securitySchemes.${number}` | `components.${string}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `webhooks.${string}` | `auth.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "tags" | "requests" | "servers" | "securitySchemes" | "components" | "openapi" | "info" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "uid" | "selectedServerUid" | "x-scalar-icon" | "auth" ? {
1092
+ type: "collection";
1093
+ uid: string;
1094
+ children: string[];
1095
+ openapi: string;
1096
+ security: Record<string, string[]>[];
1097
+ 'x-scalar-icon': string;
1098
+ securitySchemes: string[];
1099
+ selectedServerUid: string;
1100
+ servers: string[];
1101
+ requests: string[];
1102
+ tags: string[];
1103
+ auth: Record<string, {
1104
+ type: "apiKey";
1105
+ value: string;
1106
+ name: string;
1107
+ } | {
1108
+ type: "http";
1109
+ username: string;
1110
+ password: string;
1111
+ token: string;
1112
+ } | {
1113
+ type: "oauth-implicit";
1114
+ token: string;
1115
+ } | {
1116
+ type: "oauth-password";
1117
+ username: string;
1118
+ password: string;
1119
+ token: string;
1120
+ clientSecret: string;
1121
+ } | {
1122
+ type: "oauth-clientCredentials";
1123
+ token: string;
1124
+ clientSecret: string;
1125
+ } | {
1126
+ type: "oauth-authorizationCode";
1127
+ token: string;
1128
+ clientSecret: string;
1129
+ }>;
1130
+ externalDocs?: {
1131
+ url: string;
1132
+ description?: string | undefined;
1133
+ } | undefined;
1134
+ jsonSchemaDialect?: string | undefined;
1135
+ info?: {
1136
+ title: string;
1137
+ version: string;
1138
+ description?: string | undefined;
1139
+ summary?: string | undefined;
1140
+ termsOfService?: string | undefined;
1141
+ contact?: {
1142
+ name?: string | undefined;
1143
+ url?: string | undefined;
1144
+ email?: string | undefined;
1145
+ } | undefined;
1146
+ license?: {
1147
+ name: string;
1148
+ identifier?: string | undefined;
1149
+ url?: string | undefined;
1150
+ } | undefined;
1151
+ } | undefined;
1152
+ components?: Record<string, unknown> | undefined;
1153
+ webhooks?: Record<string, unknown> | undefined;
1154
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "children" | "tags" | "requests" | "servers" | "securitySchemes" | "components" | "openapi" | "info" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "uid" | "selectedServerUid" | "x-scalar-icon" | "auth" ? R extends import("@scalar/object-utils/nested").Path<{
1155
+ type: "collection";
1156
+ uid: string;
1157
+ children: string[];
1158
+ openapi: string;
1159
+ security: Record<string, string[]>[];
1160
+ 'x-scalar-icon': string;
1161
+ securitySchemes: string[];
1162
+ selectedServerUid: string;
1163
+ servers: string[];
1164
+ requests: string[];
1165
+ tags: string[];
1166
+ auth: Record<string, {
1167
+ type: "apiKey";
1168
+ value: string;
1169
+ name: string;
1170
+ } | {
1171
+ type: "http";
1172
+ username: string;
1173
+ password: string;
1174
+ token: string;
1175
+ } | {
1176
+ type: "oauth-implicit";
1177
+ token: string;
1178
+ } | {
1179
+ type: "oauth-password";
1180
+ username: string;
1181
+ password: string;
1182
+ token: string;
1183
+ clientSecret: string;
1184
+ } | {
1185
+ type: "oauth-clientCredentials";
1186
+ token: string;
1187
+ clientSecret: string;
1188
+ } | {
1189
+ type: "oauth-authorizationCode";
1190
+ token: string;
1191
+ clientSecret: string;
1192
+ }>;
1193
+ externalDocs?: {
1194
+ url: string;
1195
+ description?: string | undefined;
1196
+ } | undefined;
1197
+ jsonSchemaDialect?: string | undefined;
1198
+ info?: {
1199
+ title: string;
1200
+ version: string;
1201
+ description?: string | undefined;
1202
+ summary?: string | undefined;
1203
+ termsOfService?: string | undefined;
1204
+ contact?: {
1205
+ name?: string | undefined;
1206
+ url?: string | undefined;
1207
+ email?: string | undefined;
1208
+ } | undefined;
1209
+ license?: {
1210
+ name: string;
1211
+ identifier?: string | undefined;
1212
+ url?: string | undefined;
1213
+ } | undefined;
1214
+ } | undefined;
1215
+ components?: Record<string, unknown> | undefined;
1216
+ webhooks?: Record<string, unknown> | undefined;
1217
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1218
+ type: "collection";
1219
+ uid: string;
1220
+ children: string[];
1221
+ openapi: string;
1222
+ security: Record<string, string[]>[];
1223
+ 'x-scalar-icon': string;
1224
+ securitySchemes: string[];
1225
+ selectedServerUid: string;
1226
+ servers: string[];
1227
+ requests: string[];
1228
+ tags: string[];
1229
+ auth: Record<string, {
1230
+ type: "apiKey";
1231
+ value: string;
1232
+ name: string;
1233
+ } | {
1234
+ type: "http";
1235
+ username: string;
1236
+ password: string;
1237
+ token: string;
1238
+ } | {
1239
+ type: "oauth-implicit";
1240
+ token: string;
1241
+ } | {
1242
+ type: "oauth-password";
1243
+ username: string;
1244
+ password: string;
1245
+ token: string;
1246
+ clientSecret: string;
1247
+ } | {
1248
+ type: "oauth-clientCredentials";
1249
+ token: string;
1250
+ clientSecret: string;
1251
+ } | {
1252
+ type: "oauth-authorizationCode";
1253
+ token: string;
1254
+ clientSecret: string;
1255
+ }>;
1256
+ externalDocs?: {
1257
+ url: string;
1258
+ description?: string | undefined;
1259
+ } | undefined;
1260
+ jsonSchemaDialect?: string | undefined;
1261
+ info?: {
1262
+ title: string;
1263
+ version: string;
1264
+ description?: string | undefined;
1265
+ summary?: string | undefined;
1266
+ termsOfService?: string | undefined;
1267
+ contact?: {
1268
+ name?: string | undefined;
1269
+ url?: string | undefined;
1270
+ email?: string | undefined;
1271
+ } | undefined;
1272
+ license?: {
1273
+ name: string;
1274
+ identifier?: string | undefined;
1275
+ url?: string | undefined;
1276
+ } | undefined;
1277
+ } | undefined;
1278
+ components?: Record<string, unknown> | undefined;
1279
+ webhooks?: Record<string, unknown> | undefined;
1280
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1281
+ untrackedEdit: <P extends "type" | "children" | "tags" | "requests" | "servers" | "securitySchemes" | "components" | "openapi" | "info" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "uid" | "selectedServerUid" | "x-scalar-icon" | "auth" | `children.${number}` | `tags.${number}` | `requests.${number}` | `servers.${number}` | `securitySchemes.${number}` | `components.${string}` | "info.summary" | "info.title" | "info.description" | "info.termsOfService" | "info.contact" | "info.license" | "info.version" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `webhooks.${string}` | `auth.${string}`>(uid: string, path: P, value: P extends "type" | "children" | "tags" | "requests" | "servers" | "securitySchemes" | "components" | "openapi" | "info" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "uid" | "selectedServerUid" | "x-scalar-icon" | "auth" ? {
1282
+ type: "collection";
1283
+ uid: string;
1284
+ children: string[];
1285
+ openapi: string;
1286
+ security: Record<string, string[]>[];
1287
+ 'x-scalar-icon': string;
1288
+ securitySchemes: string[];
1289
+ selectedServerUid: string;
1290
+ servers: string[];
1291
+ requests: string[];
1292
+ tags: string[];
1293
+ auth: Record<string, {
1294
+ type: "apiKey";
1295
+ value: string;
1296
+ name: string;
1297
+ } | {
1298
+ type: "http";
1299
+ username: string;
1300
+ password: string;
1301
+ token: string;
1302
+ } | {
1303
+ type: "oauth-implicit";
1304
+ token: string;
1305
+ } | {
1306
+ type: "oauth-password";
1307
+ username: string;
1308
+ password: string;
1309
+ token: string;
1310
+ clientSecret: string;
1311
+ } | {
1312
+ type: "oauth-clientCredentials";
1313
+ token: string;
1314
+ clientSecret: string;
1315
+ } | {
1316
+ type: "oauth-authorizationCode";
1317
+ token: string;
1318
+ clientSecret: string;
1319
+ }>;
1320
+ externalDocs?: {
1321
+ url: string;
1322
+ description?: string | undefined;
1323
+ } | undefined;
1324
+ jsonSchemaDialect?: string | undefined;
1325
+ info?: {
1326
+ title: string;
1327
+ version: string;
1328
+ description?: string | undefined;
1329
+ summary?: string | undefined;
1330
+ termsOfService?: string | undefined;
1331
+ contact?: {
1332
+ name?: string | undefined;
1333
+ url?: string | undefined;
1334
+ email?: string | undefined;
1335
+ } | undefined;
1336
+ license?: {
1337
+ name: string;
1338
+ identifier?: string | undefined;
1339
+ url?: string | undefined;
1340
+ } | undefined;
1341
+ } | undefined;
1342
+ components?: Record<string, unknown> | undefined;
1343
+ webhooks?: Record<string, unknown> | undefined;
1344
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "children" | "tags" | "requests" | "servers" | "securitySchemes" | "components" | "openapi" | "info" | "security" | "externalDocs" | "webhooks" | "jsonSchemaDialect" | "uid" | "selectedServerUid" | "x-scalar-icon" | "auth" ? R extends import("@scalar/object-utils/nested").Path<{
1345
+ type: "collection";
1346
+ uid: string;
1347
+ children: string[];
1348
+ openapi: string;
1349
+ security: Record<string, string[]>[];
1350
+ 'x-scalar-icon': string;
1351
+ securitySchemes: string[];
1352
+ selectedServerUid: string;
1353
+ servers: string[];
1354
+ requests: string[];
1355
+ tags: string[];
1356
+ auth: Record<string, {
1357
+ type: "apiKey";
1358
+ value: string;
1359
+ name: string;
1360
+ } | {
1361
+ type: "http";
1362
+ username: string;
1363
+ password: string;
1364
+ token: string;
1365
+ } | {
1366
+ type: "oauth-implicit";
1367
+ token: string;
1368
+ } | {
1369
+ type: "oauth-password";
1370
+ username: string;
1371
+ password: string;
1372
+ token: string;
1373
+ clientSecret: string;
1374
+ } | {
1375
+ type: "oauth-clientCredentials";
1376
+ token: string;
1377
+ clientSecret: string;
1378
+ } | {
1379
+ type: "oauth-authorizationCode";
1380
+ token: string;
1381
+ clientSecret: string;
1382
+ }>;
1383
+ externalDocs?: {
1384
+ url: string;
1385
+ description?: string | undefined;
1386
+ } | undefined;
1387
+ jsonSchemaDialect?: string | undefined;
1388
+ info?: {
1389
+ title: string;
1390
+ version: string;
1391
+ description?: string | undefined;
1392
+ summary?: string | undefined;
1393
+ termsOfService?: string | undefined;
1394
+ contact?: {
1395
+ name?: string | undefined;
1396
+ url?: string | undefined;
1397
+ email?: string | undefined;
1398
+ } | undefined;
1399
+ license?: {
1400
+ name: string;
1401
+ identifier?: string | undefined;
1402
+ url?: string | undefined;
1403
+ } | undefined;
1404
+ } | undefined;
1405
+ components?: Record<string, unknown> | undefined;
1406
+ webhooks?: Record<string, unknown> | undefined;
1407
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1408
+ type: "collection";
1409
+ uid: string;
1410
+ children: string[];
1411
+ openapi: string;
1412
+ security: Record<string, string[]>[];
1413
+ 'x-scalar-icon': string;
1414
+ securitySchemes: string[];
1415
+ selectedServerUid: string;
1416
+ servers: string[];
1417
+ requests: string[];
1418
+ tags: string[];
1419
+ auth: Record<string, {
1420
+ type: "apiKey";
1421
+ value: string;
1422
+ name: string;
1423
+ } | {
1424
+ type: "http";
1425
+ username: string;
1426
+ password: string;
1427
+ token: string;
1428
+ } | {
1429
+ type: "oauth-implicit";
1430
+ token: string;
1431
+ } | {
1432
+ type: "oauth-password";
1433
+ username: string;
1434
+ password: string;
1435
+ token: string;
1436
+ clientSecret: string;
1437
+ } | {
1438
+ type: "oauth-clientCredentials";
1439
+ token: string;
1440
+ clientSecret: string;
1441
+ } | {
1442
+ type: "oauth-authorizationCode";
1443
+ token: string;
1444
+ clientSecret: string;
1445
+ }>;
1446
+ externalDocs?: {
1447
+ url: string;
1448
+ description?: string | undefined;
1449
+ } | undefined;
1450
+ jsonSchemaDialect?: string | undefined;
1451
+ info?: {
1452
+ title: string;
1453
+ version: string;
1454
+ description?: string | undefined;
1455
+ summary?: string | undefined;
1456
+ termsOfService?: string | undefined;
1457
+ contact?: {
1458
+ name?: string | undefined;
1459
+ url?: string | undefined;
1460
+ email?: string | undefined;
1461
+ } | undefined;
1462
+ license?: {
1463
+ name: string;
1464
+ identifier?: string | undefined;
1465
+ url?: string | undefined;
1466
+ } | undefined;
1467
+ } | undefined;
1468
+ components?: Record<string, unknown> | undefined;
1469
+ webhooks?: Record<string, unknown> | undefined;
1470
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1471
+ undo: (uid: string) => void;
1472
+ redo: (uid: string) => void;
1473
+ };
1474
+ environmentMutators: {
1475
+ delete: (uid: string) => void;
1476
+ add: (item: {
1477
+ value: string;
1478
+ uid: string;
1479
+ name: string;
1480
+ color: string;
1481
+ isDefault?: boolean | undefined;
1482
+ }) => void;
1483
+ set: (item: {
1484
+ value: string;
1485
+ uid: string;
1486
+ name: string;
1487
+ color: string;
1488
+ isDefault?: boolean | undefined;
1489
+ }) => void;
1490
+ edit: <P extends "name" | "value" | "uid" | "color" | "isDefault">(uid: string, path: P, value: P extends "name" | "value" | "uid" | "color" | "isDefault" ? {
1491
+ value: string;
1492
+ uid: string;
1493
+ name: string;
1494
+ color: string;
1495
+ isDefault?: boolean | undefined;
1496
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "value" | "uid" | "color" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
1497
+ value: string;
1498
+ uid: string;
1499
+ name: string;
1500
+ color: string;
1501
+ isDefault?: boolean | undefined;
1502
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1503
+ value: string;
1504
+ uid: string;
1505
+ name: string;
1506
+ color: string;
1507
+ isDefault?: boolean | undefined;
1508
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1509
+ untrackedEdit: <P extends "name" | "value" | "uid" | "color" | "isDefault">(uid: string, path: P, value: P extends "name" | "value" | "uid" | "color" | "isDefault" ? {
1510
+ value: string;
1511
+ uid: string;
1512
+ name: string;
1513
+ color: string;
1514
+ isDefault?: boolean | undefined;
1515
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "value" | "uid" | "color" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
1516
+ value: string;
1517
+ uid: string;
1518
+ name: string;
1519
+ color: string;
1520
+ isDefault?: boolean | undefined;
1521
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1522
+ value: string;
1523
+ uid: string;
1524
+ name: string;
1525
+ color: string;
1526
+ isDefault?: boolean | undefined;
1527
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1528
+ undo: (uid: string) => void;
1529
+ redo: (uid: string) => void;
1530
+ };
1531
+ requestMutators: {
1532
+ rawAdd: (item: {
1533
+ path: string;
1534
+ type: "request";
1535
+ uid: string;
1536
+ selectedServerUid: string;
1537
+ servers: string[];
1538
+ examples: string[];
1539
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
1540
+ selectedSecuritySchemeUids: string[];
1541
+ description?: string | undefined;
1542
+ summary?: string | undefined;
1543
+ externalDocs?: {
1544
+ url: string;
1545
+ description?: string | undefined;
1546
+ } | undefined;
1547
+ security?: Record<string, string[]>[] | undefined;
1548
+ tags?: string[] | undefined;
1549
+ deprecated?: boolean | undefined;
1550
+ operationId?: string | undefined;
1551
+ parameters?: {
1552
+ required: boolean;
1553
+ name: string;
1554
+ in: "path" | "query" | "header" | "cookie";
1555
+ deprecated: boolean;
1556
+ description?: string | undefined;
1557
+ schema?: unknown;
1558
+ content?: unknown;
1559
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1560
+ }[] | undefined;
1561
+ requestBody?: any;
1562
+ responses?: Record<string, any> | undefined;
1563
+ }) => void;
1564
+ add: (payload: import("@scalar/oas-utils/entities/spec").RequestPayload, collectionUid: string) => void | {
1565
+ path: string;
1566
+ type: "request";
1567
+ uid: string;
1568
+ selectedServerUid: string;
1569
+ servers: string[];
1570
+ examples: string[];
1571
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
1572
+ selectedSecuritySchemeUids: string[];
1573
+ description?: string | undefined;
1574
+ summary?: string | undefined;
1575
+ externalDocs?: {
1576
+ url: string;
1577
+ description?: string | undefined;
1578
+ } | undefined;
1579
+ security?: Record<string, string[]>[] | undefined;
1580
+ tags?: string[] | undefined;
1581
+ deprecated?: boolean | undefined;
1582
+ operationId?: string | undefined;
1583
+ parameters?: {
1584
+ required: boolean;
1585
+ name: string;
1586
+ in: "path" | "query" | "header" | "cookie";
1587
+ deprecated: boolean;
1588
+ description?: string | undefined;
1589
+ schema?: unknown;
1590
+ content?: unknown;
1591
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1592
+ }[] | undefined;
1593
+ requestBody?: any;
1594
+ responses?: Record<string, any> | undefined;
1595
+ };
1596
+ delete: (request: import("@scalar/oas-utils/entities/spec").Request, collectionUid: string) => void;
1597
+ set: (item: {
1598
+ path: string;
1599
+ type: "request";
1600
+ uid: string;
1601
+ selectedServerUid: string;
1602
+ servers: string[];
1603
+ examples: string[];
1604
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
1605
+ selectedSecuritySchemeUids: string[];
1606
+ description?: string | undefined;
1607
+ summary?: string | undefined;
1608
+ externalDocs?: {
1609
+ url: string;
1610
+ description?: string | undefined;
1611
+ } | undefined;
1612
+ security?: Record<string, string[]>[] | undefined;
1613
+ tags?: string[] | undefined;
1614
+ deprecated?: boolean | undefined;
1615
+ operationId?: string | undefined;
1616
+ parameters?: {
1617
+ required: boolean;
1618
+ name: string;
1619
+ in: "path" | "query" | "header" | "cookie";
1620
+ deprecated: boolean;
1621
+ description?: string | undefined;
1622
+ schema?: unknown;
1623
+ content?: unknown;
1624
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1625
+ }[] | undefined;
1626
+ requestBody?: any;
1627
+ responses?: Record<string, any> | undefined;
1628
+ }) => void;
1629
+ edit: <P extends "summary" | "path" | "type" | "tags" | "servers" | "description" | "examples" | "security" | "externalDocs" | "uid" | "method" | "selectedServerUid" | "selectedSecuritySchemeUids" | "deprecated" | "operationId" | "parameters" | "requestBody" | "responses" | `tags.${number}` | `servers.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `examples.${number}` | `selectedSecuritySchemeUids.${number}` | `parameters.${number}` | `parameters.${number}.required` | `parameters.${number}.description` | `parameters.${number}.style` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.deprecated` | `parameters.${number}.schema` | `parameters.${number}.content` | `requestBody.${string}` | `responses.${string}`>(uid: string, path: P, value: P extends "summary" | "path" | "type" | "tags" | "servers" | "description" | "examples" | "security" | "externalDocs" | "uid" | "method" | "selectedServerUid" | "selectedSecuritySchemeUids" | "deprecated" | "operationId" | "parameters" | "requestBody" | "responses" ? {
1630
+ path: string;
1631
+ type: "request";
1632
+ uid: string;
1633
+ selectedServerUid: string;
1634
+ servers: string[];
1635
+ examples: string[];
1636
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
1637
+ selectedSecuritySchemeUids: string[];
1638
+ description?: string | undefined;
1639
+ summary?: string | undefined;
1640
+ externalDocs?: {
1641
+ url: string;
1642
+ description?: string | undefined;
1643
+ } | undefined;
1644
+ security?: Record<string, string[]>[] | undefined;
1645
+ tags?: string[] | undefined;
1646
+ deprecated?: boolean | undefined;
1647
+ operationId?: string | undefined;
1648
+ parameters?: {
1649
+ required: boolean;
1650
+ name: string;
1651
+ in: "path" | "query" | "header" | "cookie";
1652
+ deprecated: boolean;
1653
+ description?: string | undefined;
1654
+ schema?: unknown;
1655
+ content?: unknown;
1656
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1657
+ }[] | undefined;
1658
+ requestBody?: any;
1659
+ responses?: Record<string, any> | undefined;
1660
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "summary" | "path" | "type" | "tags" | "servers" | "description" | "examples" | "security" | "externalDocs" | "uid" | "method" | "selectedServerUid" | "selectedSecuritySchemeUids" | "deprecated" | "operationId" | "parameters" | "requestBody" | "responses" ? R extends import("@scalar/object-utils/nested").Path<{
1661
+ path: string;
1662
+ type: "request";
1663
+ uid: string;
1664
+ selectedServerUid: string;
1665
+ servers: string[];
1666
+ examples: string[];
1667
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
1668
+ selectedSecuritySchemeUids: string[];
1669
+ description?: string | undefined;
1670
+ summary?: string | undefined;
1671
+ externalDocs?: {
1672
+ url: string;
1673
+ description?: string | undefined;
1674
+ } | undefined;
1675
+ security?: Record<string, string[]>[] | undefined;
1676
+ tags?: string[] | undefined;
1677
+ deprecated?: boolean | undefined;
1678
+ operationId?: string | undefined;
1679
+ parameters?: {
1680
+ required: boolean;
1681
+ name: string;
1682
+ in: "path" | "query" | "header" | "cookie";
1683
+ deprecated: boolean;
1684
+ description?: string | undefined;
1685
+ schema?: unknown;
1686
+ content?: unknown;
1687
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1688
+ }[] | undefined;
1689
+ requestBody?: any;
1690
+ responses?: Record<string, any> | undefined;
1691
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1692
+ path: string;
1693
+ type: "request";
1694
+ uid: string;
1695
+ selectedServerUid: string;
1696
+ servers: string[];
1697
+ examples: string[];
1698
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
1699
+ selectedSecuritySchemeUids: string[];
1700
+ description?: string | undefined;
1701
+ summary?: string | undefined;
1702
+ externalDocs?: {
1703
+ url: string;
1704
+ description?: string | undefined;
1705
+ } | undefined;
1706
+ security?: Record<string, string[]>[] | undefined;
1707
+ tags?: string[] | undefined;
1708
+ deprecated?: boolean | undefined;
1709
+ operationId?: string | undefined;
1710
+ parameters?: {
1711
+ required: boolean;
1712
+ name: string;
1713
+ in: "path" | "query" | "header" | "cookie";
1714
+ deprecated: boolean;
1715
+ description?: string | undefined;
1716
+ schema?: unknown;
1717
+ content?: unknown;
1718
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1719
+ }[] | undefined;
1720
+ requestBody?: any;
1721
+ responses?: Record<string, any> | undefined;
1722
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1723
+ untrackedEdit: <P extends "summary" | "path" | "type" | "tags" | "servers" | "description" | "examples" | "security" | "externalDocs" | "uid" | "method" | "selectedServerUid" | "selectedSecuritySchemeUids" | "deprecated" | "operationId" | "parameters" | "requestBody" | "responses" | `tags.${number}` | `servers.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `examples.${number}` | `selectedSecuritySchemeUids.${number}` | `parameters.${number}` | `parameters.${number}.required` | `parameters.${number}.description` | `parameters.${number}.style` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.deprecated` | `parameters.${number}.schema` | `parameters.${number}.content` | `requestBody.${string}` | `responses.${string}`>(uid: string, path: P, value: P extends "summary" | "path" | "type" | "tags" | "servers" | "description" | "examples" | "security" | "externalDocs" | "uid" | "method" | "selectedServerUid" | "selectedSecuritySchemeUids" | "deprecated" | "operationId" | "parameters" | "requestBody" | "responses" ? {
1724
+ path: string;
1725
+ type: "request";
1726
+ uid: string;
1727
+ selectedServerUid: string;
1728
+ servers: string[];
1729
+ examples: string[];
1730
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
1731
+ selectedSecuritySchemeUids: string[];
1732
+ description?: string | undefined;
1733
+ summary?: string | undefined;
1734
+ externalDocs?: {
1735
+ url: string;
1736
+ description?: string | undefined;
1737
+ } | undefined;
1738
+ security?: Record<string, string[]>[] | undefined;
1739
+ tags?: string[] | undefined;
1740
+ deprecated?: boolean | undefined;
1741
+ operationId?: string | undefined;
1742
+ parameters?: {
1743
+ required: boolean;
1744
+ name: string;
1745
+ in: "path" | "query" | "header" | "cookie";
1746
+ deprecated: boolean;
1747
+ description?: string | undefined;
1748
+ schema?: unknown;
1749
+ content?: unknown;
1750
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1751
+ }[] | undefined;
1752
+ requestBody?: any;
1753
+ responses?: Record<string, any> | undefined;
1754
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "summary" | "path" | "type" | "tags" | "servers" | "description" | "examples" | "security" | "externalDocs" | "uid" | "method" | "selectedServerUid" | "selectedSecuritySchemeUids" | "deprecated" | "operationId" | "parameters" | "requestBody" | "responses" ? R extends import("@scalar/object-utils/nested").Path<{
1755
+ path: string;
1756
+ type: "request";
1757
+ uid: string;
1758
+ selectedServerUid: string;
1759
+ servers: string[];
1760
+ examples: string[];
1761
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
1762
+ selectedSecuritySchemeUids: string[];
1763
+ description?: string | undefined;
1764
+ summary?: string | undefined;
1765
+ externalDocs?: {
1766
+ url: string;
1767
+ description?: string | undefined;
1768
+ } | undefined;
1769
+ security?: Record<string, string[]>[] | undefined;
1770
+ tags?: string[] | undefined;
1771
+ deprecated?: boolean | undefined;
1772
+ operationId?: string | undefined;
1773
+ parameters?: {
1774
+ required: boolean;
1775
+ name: string;
1776
+ in: "path" | "query" | "header" | "cookie";
1777
+ deprecated: boolean;
1778
+ description?: string | undefined;
1779
+ schema?: unknown;
1780
+ content?: unknown;
1781
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1782
+ }[] | undefined;
1783
+ requestBody?: any;
1784
+ responses?: Record<string, any> | undefined;
1785
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1786
+ path: string;
1787
+ type: "request";
1788
+ uid: string;
1789
+ selectedServerUid: string;
1790
+ servers: string[];
1791
+ examples: string[];
1792
+ method: "options" | "delete" | "get" | "connect" | "head" | "patch" | "post" | "put" | "trace";
1793
+ selectedSecuritySchemeUids: string[];
1794
+ description?: string | undefined;
1795
+ summary?: string | undefined;
1796
+ externalDocs?: {
1797
+ url: string;
1798
+ description?: string | undefined;
1799
+ } | undefined;
1800
+ security?: Record<string, string[]>[] | undefined;
1801
+ tags?: string[] | undefined;
1802
+ deprecated?: boolean | undefined;
1803
+ operationId?: string | undefined;
1804
+ parameters?: {
1805
+ required: boolean;
1806
+ name: string;
1807
+ in: "path" | "query" | "header" | "cookie";
1808
+ deprecated: boolean;
1809
+ description?: string | undefined;
1810
+ schema?: unknown;
1811
+ content?: unknown;
1812
+ style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
1813
+ }[] | undefined;
1814
+ requestBody?: any;
1815
+ responses?: Record<string, any> | undefined;
1816
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1817
+ undo: (uid: string) => void;
1818
+ redo: (uid: string) => void;
1819
+ };
1820
+ findRequestParents: (r: import("@scalar/oas-utils/entities/spec").Request) => string[];
1821
+ requestExampleMutators: {
1822
+ rawAdd: (item: {
1823
+ type: "requestExample";
1824
+ uid: string;
1825
+ name: string;
1826
+ body: {
1827
+ activeBody: "formData" | "raw" | "binary";
1828
+ formData?: {
1829
+ value: {
1830
+ value: string;
1831
+ key: string;
1832
+ enabled: boolean;
1833
+ minimum?: number | undefined;
1834
+ type?: string | undefined;
1835
+ maximum?: number | undefined;
1836
+ default?: any;
1837
+ required?: boolean | undefined;
1838
+ description?: string | undefined;
1839
+ enum?: string[] | undefined;
1840
+ format?: string | undefined;
1841
+ file?: any;
1842
+ refUid?: string | undefined;
1843
+ nullable?: boolean | undefined;
1844
+ }[];
1845
+ encoding: "form-data" | "urlencoded";
1846
+ } | undefined;
1847
+ raw?: {
1848
+ value: string;
1849
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
1850
+ } | undefined;
1851
+ binary?: Blob | undefined;
1852
+ };
1853
+ requestUid: string;
1854
+ parameters: {
1855
+ path: {
1856
+ value: string;
1857
+ key: string;
1858
+ enabled: boolean;
1859
+ minimum?: number | undefined;
1860
+ type?: string | undefined;
1861
+ maximum?: number | undefined;
1862
+ default?: any;
1863
+ required?: boolean | undefined;
1864
+ description?: string | undefined;
1865
+ enum?: string[] | undefined;
1866
+ format?: string | undefined;
1867
+ file?: any;
1868
+ refUid?: string | undefined;
1869
+ nullable?: boolean | undefined;
1870
+ }[];
1871
+ cookies: {
1872
+ value: string;
1873
+ key: string;
1874
+ enabled: boolean;
1875
+ minimum?: number | undefined;
1876
+ type?: string | undefined;
1877
+ maximum?: number | undefined;
1878
+ default?: any;
1879
+ required?: boolean | undefined;
1880
+ description?: string | undefined;
1881
+ enum?: string[] | undefined;
1882
+ format?: string | undefined;
1883
+ file?: any;
1884
+ refUid?: string | undefined;
1885
+ nullable?: boolean | undefined;
1886
+ }[];
1887
+ query: {
1888
+ value: string;
1889
+ key: string;
1890
+ enabled: boolean;
1891
+ minimum?: number | undefined;
1892
+ type?: string | undefined;
1893
+ maximum?: number | undefined;
1894
+ default?: any;
1895
+ required?: boolean | undefined;
1896
+ description?: string | undefined;
1897
+ enum?: string[] | undefined;
1898
+ format?: string | undefined;
1899
+ file?: any;
1900
+ refUid?: string | undefined;
1901
+ nullable?: boolean | undefined;
1902
+ }[];
1903
+ headers: {
1904
+ value: string;
1905
+ key: string;
1906
+ enabled: boolean;
1907
+ minimum?: number | undefined;
1908
+ type?: string | undefined;
1909
+ maximum?: number | undefined;
1910
+ default?: any;
1911
+ required?: boolean | undefined;
1912
+ description?: string | undefined;
1913
+ enum?: string[] | undefined;
1914
+ format?: string | undefined;
1915
+ file?: any;
1916
+ refUid?: string | undefined;
1917
+ nullable?: boolean | undefined;
1918
+ }[];
1919
+ };
1920
+ serverVariables?: Record<string, string[]> | undefined;
1921
+ }) => void;
1922
+ add: (request: import("@scalar/oas-utils/entities/spec").Request, _name?: string) => {
1923
+ type: "requestExample";
1924
+ uid: string;
1925
+ name: string;
1926
+ body: {
1927
+ activeBody: "formData" | "raw" | "binary";
1928
+ formData?: {
1929
+ value: {
1930
+ value: string;
1931
+ key: string;
1932
+ enabled: boolean;
1933
+ minimum?: number | undefined;
1934
+ type?: string | undefined;
1935
+ maximum?: number | undefined;
1936
+ default?: any;
1937
+ required?: boolean | undefined;
1938
+ description?: string | undefined;
1939
+ enum?: string[] | undefined;
1940
+ format?: string | undefined;
1941
+ file?: any;
1942
+ refUid?: string | undefined;
1943
+ nullable?: boolean | undefined;
1944
+ }[];
1945
+ encoding: "form-data" | "urlencoded";
1946
+ } | undefined;
1947
+ raw?: {
1948
+ value: string;
1949
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
1950
+ } | undefined;
1951
+ binary?: Blob | undefined;
1952
+ };
1953
+ requestUid: string;
1954
+ parameters: {
1955
+ path: {
1956
+ value: string;
1957
+ key: string;
1958
+ enabled: boolean;
1959
+ minimum?: number | undefined;
1960
+ type?: string | undefined;
1961
+ maximum?: number | undefined;
1962
+ default?: any;
1963
+ required?: boolean | undefined;
1964
+ description?: string | undefined;
1965
+ enum?: string[] | undefined;
1966
+ format?: string | undefined;
1967
+ file?: any;
1968
+ refUid?: string | undefined;
1969
+ nullable?: boolean | undefined;
1970
+ }[];
1971
+ cookies: {
1972
+ value: string;
1973
+ key: string;
1974
+ enabled: boolean;
1975
+ minimum?: number | undefined;
1976
+ type?: string | undefined;
1977
+ maximum?: number | undefined;
1978
+ default?: any;
1979
+ required?: boolean | undefined;
1980
+ description?: string | undefined;
1981
+ enum?: string[] | undefined;
1982
+ format?: string | undefined;
1983
+ file?: any;
1984
+ refUid?: string | undefined;
1985
+ nullable?: boolean | undefined;
1986
+ }[];
1987
+ query: {
1988
+ value: string;
1989
+ key: string;
1990
+ enabled: boolean;
1991
+ minimum?: number | undefined;
1992
+ type?: string | undefined;
1993
+ maximum?: number | undefined;
1994
+ default?: any;
1995
+ required?: boolean | undefined;
1996
+ description?: string | undefined;
1997
+ enum?: string[] | undefined;
1998
+ format?: string | undefined;
1999
+ file?: any;
2000
+ refUid?: string | undefined;
2001
+ nullable?: boolean | undefined;
2002
+ }[];
2003
+ headers: {
2004
+ value: string;
2005
+ key: string;
2006
+ enabled: boolean;
2007
+ minimum?: number | undefined;
2008
+ type?: string | undefined;
2009
+ maximum?: number | undefined;
2010
+ default?: any;
2011
+ required?: boolean | undefined;
2012
+ description?: string | undefined;
2013
+ enum?: string[] | undefined;
2014
+ format?: string | undefined;
2015
+ file?: any;
2016
+ refUid?: string | undefined;
2017
+ nullable?: boolean | undefined;
2018
+ }[];
2019
+ };
2020
+ serverVariables?: Record<string, string[]> | undefined;
2021
+ };
2022
+ delete: (requestExample: import("@scalar/oas-utils/entities/spec").RequestExample) => void;
2023
+ set: (item: {
2024
+ type: "requestExample";
2025
+ uid: string;
2026
+ name: string;
2027
+ body: {
2028
+ activeBody: "formData" | "raw" | "binary";
2029
+ formData?: {
2030
+ value: {
2031
+ value: string;
2032
+ key: string;
2033
+ enabled: boolean;
2034
+ minimum?: number | undefined;
2035
+ type?: string | undefined;
2036
+ maximum?: number | undefined;
2037
+ default?: any;
2038
+ required?: boolean | undefined;
2039
+ description?: string | undefined;
2040
+ enum?: string[] | undefined;
2041
+ format?: string | undefined;
2042
+ file?: any;
2043
+ refUid?: string | undefined;
2044
+ nullable?: boolean | undefined;
2045
+ }[];
2046
+ encoding: "form-data" | "urlencoded";
2047
+ } | undefined;
2048
+ raw?: {
2049
+ value: string;
2050
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2051
+ } | undefined;
2052
+ binary?: Blob | undefined;
2053
+ };
2054
+ requestUid: string;
2055
+ parameters: {
2056
+ path: {
2057
+ value: string;
2058
+ key: string;
2059
+ enabled: boolean;
2060
+ minimum?: number | undefined;
2061
+ type?: string | undefined;
2062
+ maximum?: number | undefined;
2063
+ default?: any;
2064
+ required?: boolean | undefined;
2065
+ description?: string | undefined;
2066
+ enum?: string[] | undefined;
2067
+ format?: string | undefined;
2068
+ file?: any;
2069
+ refUid?: string | undefined;
2070
+ nullable?: boolean | undefined;
2071
+ }[];
2072
+ cookies: {
2073
+ value: string;
2074
+ key: string;
2075
+ enabled: boolean;
2076
+ minimum?: number | undefined;
2077
+ type?: string | undefined;
2078
+ maximum?: number | undefined;
2079
+ default?: any;
2080
+ required?: boolean | undefined;
2081
+ description?: string | undefined;
2082
+ enum?: string[] | undefined;
2083
+ format?: string | undefined;
2084
+ file?: any;
2085
+ refUid?: string | undefined;
2086
+ nullable?: boolean | undefined;
2087
+ }[];
2088
+ query: {
2089
+ value: string;
2090
+ key: string;
2091
+ enabled: boolean;
2092
+ minimum?: number | undefined;
2093
+ type?: string | undefined;
2094
+ maximum?: number | undefined;
2095
+ default?: any;
2096
+ required?: boolean | undefined;
2097
+ description?: string | undefined;
2098
+ enum?: string[] | undefined;
2099
+ format?: string | undefined;
2100
+ file?: any;
2101
+ refUid?: string | undefined;
2102
+ nullable?: boolean | undefined;
2103
+ }[];
2104
+ headers: {
2105
+ value: string;
2106
+ key: string;
2107
+ enabled: boolean;
2108
+ minimum?: number | undefined;
2109
+ type?: string | undefined;
2110
+ maximum?: number | undefined;
2111
+ default?: any;
2112
+ required?: boolean | undefined;
2113
+ description?: string | undefined;
2114
+ enum?: string[] | undefined;
2115
+ format?: string | undefined;
2116
+ file?: any;
2117
+ refUid?: string | undefined;
2118
+ nullable?: boolean | undefined;
2119
+ }[];
2120
+ };
2121
+ serverVariables?: Record<string, string[]> | undefined;
2122
+ }) => void;
2123
+ edit: <P extends "body" | "type" | "name" | "uid" | "parameters" | "requestUid" | "serverVariables" | "body.binary" | "body.raw" | "body.formData" | "body.activeBody" | "body.raw.value" | "body.raw.encoding" | "body.formData.value" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.key` | `body.formData.value.${number}.type` | `body.formData.value.${number}.required` | `body.formData.value.${number}.value` | `body.formData.value.${number}.default` | `body.formData.value.${number}.description` | `body.formData.value.${number}.file` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.nullable` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.format` | `body.formData.value.${number}.refUid` | `body.formData.value.${number}.default.${string}` | `body.formData.value.${number}.file.${string}` | `body.formData.value.${number}.enum.${number}` | "body.binary.slice" | "body.binary.text" | "body.binary.type" | "body.binary.size" | "body.binary.arrayBuffer" | "body.binary.stream" | "parameters.cookies" | "parameters.path" | "parameters.query" | "parameters.headers" | `parameters.cookies.${number}` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.nullable` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.refUid` | `parameters.cookies.${number}.default.${string}` | `parameters.cookies.${number}.file.${string}` | `parameters.cookies.${number}.enum.${number}` | `parameters.path.${number}` | `parameters.path.${number}.key` | `parameters.path.${number}.type` | `parameters.path.${number}.required` | `parameters.path.${number}.value` | `parameters.path.${number}.default` | `parameters.path.${number}.description` | `parameters.path.${number}.file` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.enum` | `parameters.path.${number}.nullable` | `parameters.path.${number}.enabled` | `parameters.path.${number}.format` | `parameters.path.${number}.refUid` | `parameters.path.${number}.default.${string}` | `parameters.path.${number}.file.${string}` | `parameters.path.${number}.enum.${number}` | `parameters.query.${number}` | `parameters.query.${number}.key` | `parameters.query.${number}.type` | `parameters.query.${number}.required` | `parameters.query.${number}.value` | `parameters.query.${number}.default` | `parameters.query.${number}.description` | `parameters.query.${number}.file` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.enum` | `parameters.query.${number}.nullable` | `parameters.query.${number}.enabled` | `parameters.query.${number}.format` | `parameters.query.${number}.refUid` | `parameters.query.${number}.default.${string}` | `parameters.query.${number}.file.${string}` | `parameters.query.${number}.enum.${number}` | `parameters.headers.${number}` | `parameters.headers.${number}.key` | `parameters.headers.${number}.type` | `parameters.headers.${number}.required` | `parameters.headers.${number}.value` | `parameters.headers.${number}.default` | `parameters.headers.${number}.description` | `parameters.headers.${number}.file` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.nullable` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.format` | `parameters.headers.${number}.refUid` | `parameters.headers.${number}.default.${string}` | `parameters.headers.${number}.file.${string}` | `parameters.headers.${number}.enum.${number}` | `serverVariables.${string}`>(uid: string, path: P, value: P extends "body" | "type" | "name" | "uid" | "parameters" | "requestUid" | "serverVariables" ? {
2124
+ type: "requestExample";
2125
+ uid: string;
2126
+ name: string;
2127
+ body: {
2128
+ activeBody: "formData" | "raw" | "binary";
2129
+ formData?: {
2130
+ value: {
2131
+ value: string;
2132
+ key: string;
2133
+ enabled: boolean;
2134
+ minimum?: number | undefined;
2135
+ type?: string | undefined;
2136
+ maximum?: number | undefined;
2137
+ default?: any;
2138
+ required?: boolean | undefined;
2139
+ description?: string | undefined;
2140
+ enum?: string[] | undefined;
2141
+ format?: string | undefined;
2142
+ file?: any;
2143
+ refUid?: string | undefined;
2144
+ nullable?: boolean | undefined;
2145
+ }[];
2146
+ encoding: "form-data" | "urlencoded";
2147
+ } | undefined;
2148
+ raw?: {
2149
+ value: string;
2150
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2151
+ } | undefined;
2152
+ binary?: Blob | undefined;
2153
+ };
2154
+ requestUid: string;
2155
+ parameters: {
2156
+ path: {
2157
+ value: string;
2158
+ key: string;
2159
+ enabled: boolean;
2160
+ minimum?: number | undefined;
2161
+ type?: string | undefined;
2162
+ maximum?: number | undefined;
2163
+ default?: any;
2164
+ required?: boolean | undefined;
2165
+ description?: string | undefined;
2166
+ enum?: string[] | undefined;
2167
+ format?: string | undefined;
2168
+ file?: any;
2169
+ refUid?: string | undefined;
2170
+ nullable?: boolean | undefined;
2171
+ }[];
2172
+ cookies: {
2173
+ value: string;
2174
+ key: string;
2175
+ enabled: boolean;
2176
+ minimum?: number | undefined;
2177
+ type?: string | undefined;
2178
+ maximum?: number | undefined;
2179
+ default?: any;
2180
+ required?: boolean | undefined;
2181
+ description?: string | undefined;
2182
+ enum?: string[] | undefined;
2183
+ format?: string | undefined;
2184
+ file?: any;
2185
+ refUid?: string | undefined;
2186
+ nullable?: boolean | undefined;
2187
+ }[];
2188
+ query: {
2189
+ value: string;
2190
+ key: string;
2191
+ enabled: boolean;
2192
+ minimum?: number | undefined;
2193
+ type?: string | undefined;
2194
+ maximum?: number | undefined;
2195
+ default?: any;
2196
+ required?: boolean | undefined;
2197
+ description?: string | undefined;
2198
+ enum?: string[] | undefined;
2199
+ format?: string | undefined;
2200
+ file?: any;
2201
+ refUid?: string | undefined;
2202
+ nullable?: boolean | undefined;
2203
+ }[];
2204
+ headers: {
2205
+ value: string;
2206
+ key: string;
2207
+ enabled: boolean;
2208
+ minimum?: number | undefined;
2209
+ type?: string | undefined;
2210
+ maximum?: number | undefined;
2211
+ default?: any;
2212
+ required?: boolean | undefined;
2213
+ description?: string | undefined;
2214
+ enum?: string[] | undefined;
2215
+ format?: string | undefined;
2216
+ file?: any;
2217
+ refUid?: string | undefined;
2218
+ nullable?: boolean | undefined;
2219
+ }[];
2220
+ };
2221
+ serverVariables?: Record<string, string[]> | undefined;
2222
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "body" | "type" | "name" | "uid" | "parameters" | "requestUid" | "serverVariables" ? R extends import("@scalar/object-utils/nested").Path<{
2223
+ type: "requestExample";
2224
+ uid: string;
2225
+ name: string;
2226
+ body: {
2227
+ activeBody: "formData" | "raw" | "binary";
2228
+ formData?: {
2229
+ value: {
2230
+ value: string;
2231
+ key: string;
2232
+ enabled: boolean;
2233
+ minimum?: number | undefined;
2234
+ type?: string | undefined;
2235
+ maximum?: number | undefined;
2236
+ default?: any;
2237
+ required?: boolean | undefined;
2238
+ description?: string | undefined;
2239
+ enum?: string[] | undefined;
2240
+ format?: string | undefined;
2241
+ file?: any;
2242
+ refUid?: string | undefined;
2243
+ nullable?: boolean | undefined;
2244
+ }[];
2245
+ encoding: "form-data" | "urlencoded";
2246
+ } | undefined;
2247
+ raw?: {
2248
+ value: string;
2249
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2250
+ } | undefined;
2251
+ binary?: Blob | undefined;
2252
+ };
2253
+ requestUid: string;
2254
+ parameters: {
2255
+ path: {
2256
+ value: string;
2257
+ key: string;
2258
+ enabled: boolean;
2259
+ minimum?: number | undefined;
2260
+ type?: string | undefined;
2261
+ maximum?: number | undefined;
2262
+ default?: any;
2263
+ required?: boolean | undefined;
2264
+ description?: string | undefined;
2265
+ enum?: string[] | undefined;
2266
+ format?: string | undefined;
2267
+ file?: any;
2268
+ refUid?: string | undefined;
2269
+ nullable?: boolean | undefined;
2270
+ }[];
2271
+ cookies: {
2272
+ value: string;
2273
+ key: string;
2274
+ enabled: boolean;
2275
+ minimum?: number | undefined;
2276
+ type?: string | undefined;
2277
+ maximum?: number | undefined;
2278
+ default?: any;
2279
+ required?: boolean | undefined;
2280
+ description?: string | undefined;
2281
+ enum?: string[] | undefined;
2282
+ format?: string | undefined;
2283
+ file?: any;
2284
+ refUid?: string | undefined;
2285
+ nullable?: boolean | undefined;
2286
+ }[];
2287
+ query: {
2288
+ value: string;
2289
+ key: string;
2290
+ enabled: boolean;
2291
+ minimum?: number | undefined;
2292
+ type?: string | undefined;
2293
+ maximum?: number | undefined;
2294
+ default?: any;
2295
+ required?: boolean | undefined;
2296
+ description?: string | undefined;
2297
+ enum?: string[] | undefined;
2298
+ format?: string | undefined;
2299
+ file?: any;
2300
+ refUid?: string | undefined;
2301
+ nullable?: boolean | undefined;
2302
+ }[];
2303
+ headers: {
2304
+ value: string;
2305
+ key: string;
2306
+ enabled: boolean;
2307
+ minimum?: number | undefined;
2308
+ type?: string | undefined;
2309
+ maximum?: number | undefined;
2310
+ default?: any;
2311
+ required?: boolean | undefined;
2312
+ description?: string | undefined;
2313
+ enum?: string[] | undefined;
2314
+ format?: string | undefined;
2315
+ file?: any;
2316
+ refUid?: string | undefined;
2317
+ nullable?: boolean | undefined;
2318
+ }[];
2319
+ };
2320
+ serverVariables?: Record<string, string[]> | undefined;
2321
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2322
+ type: "requestExample";
2323
+ uid: string;
2324
+ name: string;
2325
+ body: {
2326
+ activeBody: "formData" | "raw" | "binary";
2327
+ formData?: {
2328
+ value: {
2329
+ value: string;
2330
+ key: string;
2331
+ enabled: boolean;
2332
+ minimum?: number | undefined;
2333
+ type?: string | undefined;
2334
+ maximum?: number | undefined;
2335
+ default?: any;
2336
+ required?: boolean | undefined;
2337
+ description?: string | undefined;
2338
+ enum?: string[] | undefined;
2339
+ format?: string | undefined;
2340
+ file?: any;
2341
+ refUid?: string | undefined;
2342
+ nullable?: boolean | undefined;
2343
+ }[];
2344
+ encoding: "form-data" | "urlencoded";
2345
+ } | undefined;
2346
+ raw?: {
2347
+ value: string;
2348
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2349
+ } | undefined;
2350
+ binary?: Blob | undefined;
2351
+ };
2352
+ requestUid: string;
2353
+ parameters: {
2354
+ path: {
2355
+ value: string;
2356
+ key: string;
2357
+ enabled: boolean;
2358
+ minimum?: number | undefined;
2359
+ type?: string | undefined;
2360
+ maximum?: number | undefined;
2361
+ default?: any;
2362
+ required?: boolean | undefined;
2363
+ description?: string | undefined;
2364
+ enum?: string[] | undefined;
2365
+ format?: string | undefined;
2366
+ file?: any;
2367
+ refUid?: string | undefined;
2368
+ nullable?: boolean | undefined;
2369
+ }[];
2370
+ cookies: {
2371
+ value: string;
2372
+ key: string;
2373
+ enabled: boolean;
2374
+ minimum?: number | undefined;
2375
+ type?: string | undefined;
2376
+ maximum?: number | undefined;
2377
+ default?: any;
2378
+ required?: boolean | undefined;
2379
+ description?: string | undefined;
2380
+ enum?: string[] | undefined;
2381
+ format?: string | undefined;
2382
+ file?: any;
2383
+ refUid?: string | undefined;
2384
+ nullable?: boolean | undefined;
2385
+ }[];
2386
+ query: {
2387
+ value: string;
2388
+ key: string;
2389
+ enabled: boolean;
2390
+ minimum?: number | undefined;
2391
+ type?: string | undefined;
2392
+ maximum?: number | undefined;
2393
+ default?: any;
2394
+ required?: boolean | undefined;
2395
+ description?: string | undefined;
2396
+ enum?: string[] | undefined;
2397
+ format?: string | undefined;
2398
+ file?: any;
2399
+ refUid?: string | undefined;
2400
+ nullable?: boolean | undefined;
2401
+ }[];
2402
+ headers: {
2403
+ value: string;
2404
+ key: string;
2405
+ enabled: boolean;
2406
+ minimum?: number | undefined;
2407
+ type?: string | undefined;
2408
+ maximum?: number | undefined;
2409
+ default?: any;
2410
+ required?: boolean | undefined;
2411
+ description?: string | undefined;
2412
+ enum?: string[] | undefined;
2413
+ format?: string | undefined;
2414
+ file?: any;
2415
+ refUid?: string | undefined;
2416
+ nullable?: boolean | undefined;
2417
+ }[];
2418
+ };
2419
+ serverVariables?: Record<string, string[]> | undefined;
2420
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
2421
+ untrackedEdit: <P extends "body" | "type" | "name" | "uid" | "parameters" | "requestUid" | "serverVariables" | "body.binary" | "body.raw" | "body.formData" | "body.activeBody" | "body.raw.value" | "body.raw.encoding" | "body.formData.value" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.key` | `body.formData.value.${number}.type` | `body.formData.value.${number}.required` | `body.formData.value.${number}.value` | `body.formData.value.${number}.default` | `body.formData.value.${number}.description` | `body.formData.value.${number}.file` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.nullable` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.format` | `body.formData.value.${number}.refUid` | `body.formData.value.${number}.default.${string}` | `body.formData.value.${number}.file.${string}` | `body.formData.value.${number}.enum.${number}` | "body.binary.slice" | "body.binary.text" | "body.binary.type" | "body.binary.size" | "body.binary.arrayBuffer" | "body.binary.stream" | "parameters.cookies" | "parameters.path" | "parameters.query" | "parameters.headers" | `parameters.cookies.${number}` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.nullable` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.refUid` | `parameters.cookies.${number}.default.${string}` | `parameters.cookies.${number}.file.${string}` | `parameters.cookies.${number}.enum.${number}` | `parameters.path.${number}` | `parameters.path.${number}.key` | `parameters.path.${number}.type` | `parameters.path.${number}.required` | `parameters.path.${number}.value` | `parameters.path.${number}.default` | `parameters.path.${number}.description` | `parameters.path.${number}.file` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.enum` | `parameters.path.${number}.nullable` | `parameters.path.${number}.enabled` | `parameters.path.${number}.format` | `parameters.path.${number}.refUid` | `parameters.path.${number}.default.${string}` | `parameters.path.${number}.file.${string}` | `parameters.path.${number}.enum.${number}` | `parameters.query.${number}` | `parameters.query.${number}.key` | `parameters.query.${number}.type` | `parameters.query.${number}.required` | `parameters.query.${number}.value` | `parameters.query.${number}.default` | `parameters.query.${number}.description` | `parameters.query.${number}.file` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.enum` | `parameters.query.${number}.nullable` | `parameters.query.${number}.enabled` | `parameters.query.${number}.format` | `parameters.query.${number}.refUid` | `parameters.query.${number}.default.${string}` | `parameters.query.${number}.file.${string}` | `parameters.query.${number}.enum.${number}` | `parameters.headers.${number}` | `parameters.headers.${number}.key` | `parameters.headers.${number}.type` | `parameters.headers.${number}.required` | `parameters.headers.${number}.value` | `parameters.headers.${number}.default` | `parameters.headers.${number}.description` | `parameters.headers.${number}.file` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.nullable` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.format` | `parameters.headers.${number}.refUid` | `parameters.headers.${number}.default.${string}` | `parameters.headers.${number}.file.${string}` | `parameters.headers.${number}.enum.${number}` | `serverVariables.${string}`>(uid: string, path: P, value: P extends "body" | "type" | "name" | "uid" | "parameters" | "requestUid" | "serverVariables" ? {
2422
+ type: "requestExample";
2423
+ uid: string;
2424
+ name: string;
2425
+ body: {
2426
+ activeBody: "formData" | "raw" | "binary";
2427
+ formData?: {
2428
+ value: {
2429
+ value: string;
2430
+ key: string;
2431
+ enabled: boolean;
2432
+ minimum?: number | undefined;
2433
+ type?: string | undefined;
2434
+ maximum?: number | undefined;
2435
+ default?: any;
2436
+ required?: boolean | undefined;
2437
+ description?: string | undefined;
2438
+ enum?: string[] | undefined;
2439
+ format?: string | undefined;
2440
+ file?: any;
2441
+ refUid?: string | undefined;
2442
+ nullable?: boolean | undefined;
2443
+ }[];
2444
+ encoding: "form-data" | "urlencoded";
2445
+ } | undefined;
2446
+ raw?: {
2447
+ value: string;
2448
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2449
+ } | undefined;
2450
+ binary?: Blob | undefined;
2451
+ };
2452
+ requestUid: string;
2453
+ parameters: {
2454
+ path: {
2455
+ value: string;
2456
+ key: string;
2457
+ enabled: boolean;
2458
+ minimum?: number | undefined;
2459
+ type?: string | undefined;
2460
+ maximum?: number | undefined;
2461
+ default?: any;
2462
+ required?: boolean | undefined;
2463
+ description?: string | undefined;
2464
+ enum?: string[] | undefined;
2465
+ format?: string | undefined;
2466
+ file?: any;
2467
+ refUid?: string | undefined;
2468
+ nullable?: boolean | undefined;
2469
+ }[];
2470
+ cookies: {
2471
+ value: string;
2472
+ key: string;
2473
+ enabled: boolean;
2474
+ minimum?: number | undefined;
2475
+ type?: string | undefined;
2476
+ maximum?: number | undefined;
2477
+ default?: any;
2478
+ required?: boolean | undefined;
2479
+ description?: string | undefined;
2480
+ enum?: string[] | undefined;
2481
+ format?: string | undefined;
2482
+ file?: any;
2483
+ refUid?: string | undefined;
2484
+ nullable?: boolean | undefined;
2485
+ }[];
2486
+ query: {
2487
+ value: string;
2488
+ key: string;
2489
+ enabled: boolean;
2490
+ minimum?: number | undefined;
2491
+ type?: string | undefined;
2492
+ maximum?: number | undefined;
2493
+ default?: any;
2494
+ required?: boolean | undefined;
2495
+ description?: string | undefined;
2496
+ enum?: string[] | undefined;
2497
+ format?: string | undefined;
2498
+ file?: any;
2499
+ refUid?: string | undefined;
2500
+ nullable?: boolean | undefined;
2501
+ }[];
2502
+ headers: {
2503
+ value: string;
2504
+ key: string;
2505
+ enabled: boolean;
2506
+ minimum?: number | undefined;
2507
+ type?: string | undefined;
2508
+ maximum?: number | undefined;
2509
+ default?: any;
2510
+ required?: boolean | undefined;
2511
+ description?: string | undefined;
2512
+ enum?: string[] | undefined;
2513
+ format?: string | undefined;
2514
+ file?: any;
2515
+ refUid?: string | undefined;
2516
+ nullable?: boolean | undefined;
2517
+ }[];
2518
+ };
2519
+ serverVariables?: Record<string, string[]> | undefined;
2520
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "body" | "type" | "name" | "uid" | "parameters" | "requestUid" | "serverVariables" ? R extends import("@scalar/object-utils/nested").Path<{
2521
+ type: "requestExample";
2522
+ uid: string;
2523
+ name: string;
2524
+ body: {
2525
+ activeBody: "formData" | "raw" | "binary";
2526
+ formData?: {
2527
+ value: {
2528
+ value: string;
2529
+ key: string;
2530
+ enabled: boolean;
2531
+ minimum?: number | undefined;
2532
+ type?: string | undefined;
2533
+ maximum?: number | undefined;
2534
+ default?: any;
2535
+ required?: boolean | undefined;
2536
+ description?: string | undefined;
2537
+ enum?: string[] | undefined;
2538
+ format?: string | undefined;
2539
+ file?: any;
2540
+ refUid?: string | undefined;
2541
+ nullable?: boolean | undefined;
2542
+ }[];
2543
+ encoding: "form-data" | "urlencoded";
2544
+ } | undefined;
2545
+ raw?: {
2546
+ value: string;
2547
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2548
+ } | undefined;
2549
+ binary?: Blob | undefined;
2550
+ };
2551
+ requestUid: string;
2552
+ parameters: {
2553
+ path: {
2554
+ value: string;
2555
+ key: string;
2556
+ enabled: boolean;
2557
+ minimum?: number | undefined;
2558
+ type?: string | undefined;
2559
+ maximum?: number | undefined;
2560
+ default?: any;
2561
+ required?: boolean | undefined;
2562
+ description?: string | undefined;
2563
+ enum?: string[] | undefined;
2564
+ format?: string | undefined;
2565
+ file?: any;
2566
+ refUid?: string | undefined;
2567
+ nullable?: boolean | undefined;
2568
+ }[];
2569
+ cookies: {
2570
+ value: string;
2571
+ key: string;
2572
+ enabled: boolean;
2573
+ minimum?: number | undefined;
2574
+ type?: string | undefined;
2575
+ maximum?: number | undefined;
2576
+ default?: any;
2577
+ required?: boolean | undefined;
2578
+ description?: string | undefined;
2579
+ enum?: string[] | undefined;
2580
+ format?: string | undefined;
2581
+ file?: any;
2582
+ refUid?: string | undefined;
2583
+ nullable?: boolean | undefined;
2584
+ }[];
2585
+ query: {
2586
+ value: string;
2587
+ key: string;
2588
+ enabled: boolean;
2589
+ minimum?: number | undefined;
2590
+ type?: string | undefined;
2591
+ maximum?: number | undefined;
2592
+ default?: any;
2593
+ required?: boolean | undefined;
2594
+ description?: string | undefined;
2595
+ enum?: string[] | undefined;
2596
+ format?: string | undefined;
2597
+ file?: any;
2598
+ refUid?: string | undefined;
2599
+ nullable?: boolean | undefined;
2600
+ }[];
2601
+ headers: {
2602
+ value: string;
2603
+ key: string;
2604
+ enabled: boolean;
2605
+ minimum?: number | undefined;
2606
+ type?: string | undefined;
2607
+ maximum?: number | undefined;
2608
+ default?: any;
2609
+ required?: boolean | undefined;
2610
+ description?: string | undefined;
2611
+ enum?: string[] | undefined;
2612
+ format?: string | undefined;
2613
+ file?: any;
2614
+ refUid?: string | undefined;
2615
+ nullable?: boolean | undefined;
2616
+ }[];
2617
+ };
2618
+ serverVariables?: Record<string, string[]> | undefined;
2619
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2620
+ type: "requestExample";
2621
+ uid: string;
2622
+ name: string;
2623
+ body: {
2624
+ activeBody: "formData" | "raw" | "binary";
2625
+ formData?: {
2626
+ value: {
2627
+ value: string;
2628
+ key: string;
2629
+ enabled: boolean;
2630
+ minimum?: number | undefined;
2631
+ type?: string | undefined;
2632
+ maximum?: number | undefined;
2633
+ default?: any;
2634
+ required?: boolean | undefined;
2635
+ description?: string | undefined;
2636
+ enum?: string[] | undefined;
2637
+ format?: string | undefined;
2638
+ file?: any;
2639
+ refUid?: string | undefined;
2640
+ nullable?: boolean | undefined;
2641
+ }[];
2642
+ encoding: "form-data" | "urlencoded";
2643
+ } | undefined;
2644
+ raw?: {
2645
+ value: string;
2646
+ encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2647
+ } | undefined;
2648
+ binary?: Blob | undefined;
2649
+ };
2650
+ requestUid: string;
2651
+ parameters: {
2652
+ path: {
2653
+ value: string;
2654
+ key: string;
2655
+ enabled: boolean;
2656
+ minimum?: number | undefined;
2657
+ type?: string | undefined;
2658
+ maximum?: number | undefined;
2659
+ default?: any;
2660
+ required?: boolean | undefined;
2661
+ description?: string | undefined;
2662
+ enum?: string[] | undefined;
2663
+ format?: string | undefined;
2664
+ file?: any;
2665
+ refUid?: string | undefined;
2666
+ nullable?: boolean | undefined;
2667
+ }[];
2668
+ cookies: {
2669
+ value: string;
2670
+ key: string;
2671
+ enabled: boolean;
2672
+ minimum?: number | undefined;
2673
+ type?: string | undefined;
2674
+ maximum?: number | undefined;
2675
+ default?: any;
2676
+ required?: boolean | undefined;
2677
+ description?: string | undefined;
2678
+ enum?: string[] | undefined;
2679
+ format?: string | undefined;
2680
+ file?: any;
2681
+ refUid?: string | undefined;
2682
+ nullable?: boolean | undefined;
2683
+ }[];
2684
+ query: {
2685
+ value: string;
2686
+ key: string;
2687
+ enabled: boolean;
2688
+ minimum?: number | undefined;
2689
+ type?: string | undefined;
2690
+ maximum?: number | undefined;
2691
+ default?: any;
2692
+ required?: boolean | undefined;
2693
+ description?: string | undefined;
2694
+ enum?: string[] | undefined;
2695
+ format?: string | undefined;
2696
+ file?: any;
2697
+ refUid?: string | undefined;
2698
+ nullable?: boolean | undefined;
2699
+ }[];
2700
+ headers: {
2701
+ value: string;
2702
+ key: string;
2703
+ enabled: boolean;
2704
+ minimum?: number | undefined;
2705
+ type?: string | undefined;
2706
+ maximum?: number | undefined;
2707
+ default?: any;
2708
+ required?: boolean | undefined;
2709
+ description?: string | undefined;
2710
+ enum?: string[] | undefined;
2711
+ format?: string | undefined;
2712
+ file?: any;
2713
+ refUid?: string | undefined;
2714
+ nullable?: boolean | undefined;
2715
+ }[];
2716
+ };
2717
+ serverVariables?: Record<string, string[]> | undefined;
2718
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
2719
+ undo: (uid: string) => void;
2720
+ redo: (uid: string) => void;
2721
+ };
2722
+ requestHistory: import("vue").Reactive<import("@scalar/oas-utils/entities/spec").RequestEvent[]>;
2723
+ securitySchemeMutators: {
2724
+ rawAdd: (item: {
2725
+ type: "apiKey";
2726
+ uid: string;
2727
+ name: string;
2728
+ in: "query" | "header" | "cookie";
2729
+ nameKey: string;
2730
+ description?: string | undefined;
2731
+ } | {
2732
+ type: "http";
2733
+ uid: string;
2734
+ nameKey: string;
2735
+ scheme: "basic" | "bearer";
2736
+ bearerFormat: string;
2737
+ description?: string | undefined;
2738
+ } | {
2739
+ type: "openIdConnect";
2740
+ uid: string;
2741
+ nameKey: string;
2742
+ openIdConnectUrl: string;
2743
+ description?: string | undefined;
2744
+ } | {
2745
+ type: "oauth2";
2746
+ uid: string;
2747
+ nameKey: string;
2748
+ flow: {
2749
+ type: "implicit";
2750
+ refreshUrl: string;
2751
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2752
+ selectedScopes: string[];
2753
+ authorizationUrl: string;
2754
+ "x-scalar-redirect-uri": string;
2755
+ } | {
2756
+ type: "password";
2757
+ refreshUrl: string;
2758
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2759
+ selectedScopes: string[];
2760
+ tokenUrl: string;
2761
+ } | {
2762
+ type: "clientCredentials";
2763
+ refreshUrl: string;
2764
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2765
+ selectedScopes: string[];
2766
+ tokenUrl: string;
2767
+ } | {
2768
+ type: "authorizationCode";
2769
+ refreshUrl: string;
2770
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2771
+ selectedScopes: string[];
2772
+ authorizationUrl: string;
2773
+ "x-scalar-redirect-uri": string;
2774
+ tokenUrl: string;
2775
+ };
2776
+ 'x-scalar-client-id': string;
2777
+ description?: string | undefined;
2778
+ }) => void;
2779
+ add: (payload: import("@scalar/oas-utils/entities/spec").SecuritySchemePayload, collectionUid: string) => {
2780
+ type: "apiKey";
2781
+ uid: string;
2782
+ name: string;
2783
+ in: "query" | "header" | "cookie";
2784
+ nameKey: string;
2785
+ description?: string | undefined;
2786
+ } | {
2787
+ type: "http";
2788
+ uid: string;
2789
+ nameKey: string;
2790
+ scheme: "basic" | "bearer";
2791
+ bearerFormat: string;
2792
+ description?: string | undefined;
2793
+ } | {
2794
+ type: "openIdConnect";
2795
+ uid: string;
2796
+ nameKey: string;
2797
+ openIdConnectUrl: string;
2798
+ description?: string | undefined;
2799
+ } | {
2800
+ type: "oauth2";
2801
+ uid: string;
2802
+ nameKey: string;
2803
+ flow: {
2804
+ type: "implicit";
2805
+ refreshUrl: string;
2806
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2807
+ selectedScopes: string[];
2808
+ authorizationUrl: string;
2809
+ "x-scalar-redirect-uri": string;
2810
+ } | {
2811
+ type: "password";
2812
+ refreshUrl: string;
2813
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2814
+ selectedScopes: string[];
2815
+ tokenUrl: string;
2816
+ } | {
2817
+ type: "clientCredentials";
2818
+ refreshUrl: string;
2819
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2820
+ selectedScopes: string[];
2821
+ tokenUrl: string;
2822
+ } | {
2823
+ type: "authorizationCode";
2824
+ refreshUrl: string;
2825
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2826
+ selectedScopes: string[];
2827
+ authorizationUrl: string;
2828
+ "x-scalar-redirect-uri": string;
2829
+ tokenUrl: string;
2830
+ };
2831
+ 'x-scalar-client-id': string;
2832
+ description?: string | undefined;
2833
+ };
2834
+ delete: (scheme: import("@scalar/oas-utils/entities/spec").SecurityScheme) => void;
2835
+ set: (item: {
2836
+ type: "apiKey";
2837
+ uid: string;
2838
+ name: string;
2839
+ in: "query" | "header" | "cookie";
2840
+ nameKey: string;
2841
+ description?: string | undefined;
2842
+ } | {
2843
+ type: "http";
2844
+ uid: string;
2845
+ nameKey: string;
2846
+ scheme: "basic" | "bearer";
2847
+ bearerFormat: string;
2848
+ description?: string | undefined;
2849
+ } | {
2850
+ type: "openIdConnect";
2851
+ uid: string;
2852
+ nameKey: string;
2853
+ openIdConnectUrl: string;
2854
+ description?: string | undefined;
2855
+ } | {
2856
+ type: "oauth2";
2857
+ uid: string;
2858
+ nameKey: string;
2859
+ flow: {
2860
+ type: "implicit";
2861
+ refreshUrl: string;
2862
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2863
+ selectedScopes: string[];
2864
+ authorizationUrl: string;
2865
+ "x-scalar-redirect-uri": string;
2866
+ } | {
2867
+ type: "password";
2868
+ refreshUrl: string;
2869
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2870
+ selectedScopes: string[];
2871
+ tokenUrl: string;
2872
+ } | {
2873
+ type: "clientCredentials";
2874
+ refreshUrl: string;
2875
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2876
+ selectedScopes: string[];
2877
+ tokenUrl: string;
2878
+ } | {
2879
+ type: "authorizationCode";
2880
+ refreshUrl: string;
2881
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2882
+ selectedScopes: string[];
2883
+ authorizationUrl: string;
2884
+ "x-scalar-redirect-uri": string;
2885
+ tokenUrl: string;
2886
+ };
2887
+ 'x-scalar-client-id': string;
2888
+ description?: string | undefined;
2889
+ }) => void;
2890
+ edit: <P extends "type" | "name" | "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">(uid: string, path: P, value: (P extends "type" | "name" | "description" | "in" | "uid" | "nameKey" ? {
2891
+ type: "apiKey";
2892
+ uid: string;
2893
+ name: string;
2894
+ in: "query" | "header" | "cookie";
2895
+ nameKey: string;
2896
+ description?: string | undefined;
2897
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "description" | "in" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
2898
+ type: "apiKey";
2899
+ uid: string;
2900
+ name: string;
2901
+ in: "query" | "header" | "cookie";
2902
+ nameKey: string;
2903
+ description?: string | undefined;
2904
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2905
+ type: "apiKey";
2906
+ uid: string;
2907
+ name: string;
2908
+ in: "query" | "header" | "cookie";
2909
+ nameKey: string;
2910
+ description?: string | undefined;
2911
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? {
2912
+ type: "http";
2913
+ uid: string;
2914
+ nameKey: string;
2915
+ scheme: "basic" | "bearer";
2916
+ bearerFormat: string;
2917
+ description?: string | undefined;
2918
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
2919
+ type: "http";
2920
+ uid: string;
2921
+ nameKey: string;
2922
+ scheme: "basic" | "bearer";
2923
+ bearerFormat: string;
2924
+ description?: string | undefined;
2925
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2926
+ type: "http";
2927
+ uid: string;
2928
+ nameKey: string;
2929
+ scheme: "basic" | "bearer";
2930
+ bearerFormat: string;
2931
+ description?: string | undefined;
2932
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? {
2933
+ type: "openIdConnect";
2934
+ uid: string;
2935
+ nameKey: string;
2936
+ openIdConnectUrl: string;
2937
+ description?: string | undefined;
2938
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
2939
+ type: "openIdConnect";
2940
+ uid: string;
2941
+ nameKey: string;
2942
+ openIdConnectUrl: string;
2943
+ description?: string | undefined;
2944
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2945
+ type: "openIdConnect";
2946
+ uid: string;
2947
+ nameKey: string;
2948
+ openIdConnectUrl: string;
2949
+ description?: string | undefined;
2950
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? {
2951
+ type: "oauth2";
2952
+ uid: string;
2953
+ nameKey: string;
2954
+ flow: {
2955
+ type: "implicit";
2956
+ refreshUrl: string;
2957
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2958
+ selectedScopes: string[];
2959
+ authorizationUrl: string;
2960
+ "x-scalar-redirect-uri": string;
2961
+ } | {
2962
+ type: "password";
2963
+ refreshUrl: string;
2964
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2965
+ selectedScopes: string[];
2966
+ tokenUrl: string;
2967
+ } | {
2968
+ type: "clientCredentials";
2969
+ refreshUrl: string;
2970
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2971
+ selectedScopes: string[];
2972
+ tokenUrl: string;
2973
+ } | {
2974
+ type: "authorizationCode";
2975
+ refreshUrl: string;
2976
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2977
+ selectedScopes: string[];
2978
+ authorizationUrl: string;
2979
+ "x-scalar-redirect-uri": string;
2980
+ tokenUrl: string;
2981
+ };
2982
+ 'x-scalar-client-id': string;
2983
+ description?: string | undefined;
2984
+ }[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<{
2985
+ type: "oauth2";
2986
+ uid: string;
2987
+ nameKey: string;
2988
+ flow: {
2989
+ type: "implicit";
2990
+ refreshUrl: string;
2991
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2992
+ selectedScopes: string[];
2993
+ authorizationUrl: string;
2994
+ "x-scalar-redirect-uri": string;
2995
+ } | {
2996
+ type: "password";
2997
+ refreshUrl: string;
2998
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
2999
+ selectedScopes: string[];
3000
+ tokenUrl: string;
3001
+ } | {
3002
+ type: "clientCredentials";
3003
+ refreshUrl: string;
3004
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3005
+ selectedScopes: string[];
3006
+ tokenUrl: string;
3007
+ } | {
3008
+ type: "authorizationCode";
3009
+ refreshUrl: string;
3010
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3011
+ selectedScopes: string[];
3012
+ authorizationUrl: string;
3013
+ "x-scalar-redirect-uri": string;
3014
+ tokenUrl: string;
3015
+ };
3016
+ 'x-scalar-client-id': string;
3017
+ description?: string | undefined;
3018
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3019
+ type: "oauth2";
3020
+ uid: string;
3021
+ nameKey: string;
3022
+ flow: {
3023
+ type: "implicit";
3024
+ refreshUrl: string;
3025
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3026
+ selectedScopes: string[];
3027
+ authorizationUrl: string;
3028
+ "x-scalar-redirect-uri": string;
3029
+ } | {
3030
+ type: "password";
3031
+ refreshUrl: string;
3032
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3033
+ selectedScopes: string[];
3034
+ tokenUrl: string;
3035
+ } | {
3036
+ type: "clientCredentials";
3037
+ refreshUrl: string;
3038
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3039
+ selectedScopes: string[];
3040
+ tokenUrl: string;
3041
+ } | {
3042
+ type: "authorizationCode";
3043
+ refreshUrl: string;
3044
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3045
+ selectedScopes: string[];
3046
+ authorizationUrl: string;
3047
+ "x-scalar-redirect-uri": string;
3048
+ tokenUrl: string;
3049
+ };
3050
+ 'x-scalar-client-id': string;
3051
+ description?: string | undefined;
3052
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
3053
+ untrackedEdit: <P extends "type" | "name" | "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">(uid: string, path: P, value: (P extends "type" | "name" | "description" | "in" | "uid" | "nameKey" ? {
3054
+ type: "apiKey";
3055
+ uid: string;
3056
+ name: string;
3057
+ in: "query" | "header" | "cookie";
3058
+ nameKey: string;
3059
+ description?: string | undefined;
3060
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "description" | "in" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
3061
+ type: "apiKey";
3062
+ uid: string;
3063
+ name: string;
3064
+ in: "query" | "header" | "cookie";
3065
+ nameKey: string;
3066
+ description?: string | undefined;
3067
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3068
+ type: "apiKey";
3069
+ uid: string;
3070
+ name: string;
3071
+ in: "query" | "header" | "cookie";
3072
+ nameKey: string;
3073
+ description?: string | undefined;
3074
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? {
3075
+ type: "http";
3076
+ uid: string;
3077
+ nameKey: string;
3078
+ scheme: "basic" | "bearer";
3079
+ bearerFormat: string;
3080
+ description?: string | undefined;
3081
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "scheme" | "bearerFormat" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
3082
+ type: "http";
3083
+ uid: string;
3084
+ nameKey: string;
3085
+ scheme: "basic" | "bearer";
3086
+ bearerFormat: string;
3087
+ description?: string | undefined;
3088
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3089
+ type: "http";
3090
+ uid: string;
3091
+ nameKey: string;
3092
+ scheme: "basic" | "bearer";
3093
+ bearerFormat: string;
3094
+ description?: string | undefined;
3095
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? {
3096
+ type: "openIdConnect";
3097
+ uid: string;
3098
+ nameKey: string;
3099
+ openIdConnectUrl: string;
3100
+ description?: string | undefined;
3101
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "description" | "openIdConnectUrl" | "uid" | "nameKey" ? R extends import("@scalar/object-utils/nested").Path<{
3102
+ type: "openIdConnect";
3103
+ uid: string;
3104
+ nameKey: string;
3105
+ openIdConnectUrl: string;
3106
+ description?: string | undefined;
3107
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3108
+ type: "openIdConnect";
3109
+ uid: string;
3110
+ nameKey: string;
3111
+ openIdConnectUrl: string;
3112
+ description?: string | undefined;
3113
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "description" | "flow" | "x-scalar-client-id" | "uid" | "nameKey" ? {
3114
+ type: "oauth2";
3115
+ uid: string;
3116
+ nameKey: string;
3117
+ flow: {
3118
+ type: "implicit";
3119
+ refreshUrl: string;
3120
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3121
+ selectedScopes: string[];
3122
+ authorizationUrl: string;
3123
+ "x-scalar-redirect-uri": string;
3124
+ } | {
3125
+ type: "password";
3126
+ refreshUrl: string;
3127
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3128
+ selectedScopes: string[];
3129
+ tokenUrl: string;
3130
+ } | {
3131
+ type: "clientCredentials";
3132
+ refreshUrl: string;
3133
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3134
+ selectedScopes: string[];
3135
+ tokenUrl: string;
3136
+ } | {
3137
+ type: "authorizationCode";
3138
+ refreshUrl: string;
3139
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3140
+ selectedScopes: string[];
3141
+ authorizationUrl: string;
3142
+ "x-scalar-redirect-uri": string;
3143
+ tokenUrl: string;
3144
+ };
3145
+ 'x-scalar-client-id': string;
3146
+ description?: string | undefined;
3147
+ }[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<{
3148
+ type: "oauth2";
3149
+ uid: string;
3150
+ nameKey: string;
3151
+ flow: {
3152
+ type: "implicit";
3153
+ refreshUrl: string;
3154
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3155
+ selectedScopes: string[];
3156
+ authorizationUrl: string;
3157
+ "x-scalar-redirect-uri": string;
3158
+ } | {
3159
+ type: "password";
3160
+ refreshUrl: string;
3161
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3162
+ selectedScopes: string[];
3163
+ tokenUrl: string;
3164
+ } | {
3165
+ type: "clientCredentials";
3166
+ refreshUrl: string;
3167
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3168
+ selectedScopes: string[];
3169
+ tokenUrl: string;
3170
+ } | {
3171
+ type: "authorizationCode";
3172
+ refreshUrl: string;
3173
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3174
+ selectedScopes: string[];
3175
+ authorizationUrl: string;
3176
+ "x-scalar-redirect-uri": string;
3177
+ tokenUrl: string;
3178
+ };
3179
+ 'x-scalar-client-id': string;
3180
+ description?: string | undefined;
3181
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3182
+ type: "oauth2";
3183
+ uid: string;
3184
+ nameKey: string;
3185
+ flow: {
3186
+ type: "implicit";
3187
+ refreshUrl: string;
3188
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3189
+ selectedScopes: string[];
3190
+ authorizationUrl: string;
3191
+ "x-scalar-redirect-uri": string;
3192
+ } | {
3193
+ type: "password";
3194
+ refreshUrl: string;
3195
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3196
+ selectedScopes: string[];
3197
+ tokenUrl: string;
3198
+ } | {
3199
+ type: "clientCredentials";
3200
+ refreshUrl: string;
3201
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3202
+ selectedScopes: string[];
3203
+ tokenUrl: string;
3204
+ } | {
3205
+ type: "authorizationCode";
3206
+ refreshUrl: string;
3207
+ scopes: Map<string, string | undefined> | Record<string, string | undefined> | {};
3208
+ selectedScopes: string[];
3209
+ authorizationUrl: string;
3210
+ "x-scalar-redirect-uri": string;
3211
+ tokenUrl: string;
3212
+ };
3213
+ 'x-scalar-client-id': string;
3214
+ description?: string | undefined;
3215
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
3216
+ undo: (uid: string) => void;
3217
+ redo: (uid: string) => void;
3218
+ };
3219
+ serverMutators: {
3220
+ rawAdd: (item: {
3221
+ uid: string;
3222
+ description?: string | undefined;
3223
+ url?: string | undefined;
3224
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
3225
+ enum?: [string, ...string[]];
3226
+ }> | undefined;
3227
+ }) => void;
3228
+ add: (payload: import("@scalar/oas-utils/entities/spec").ServerPayload, parentUid: string) => {
3229
+ uid: string;
3230
+ description?: string | undefined;
3231
+ url?: string | undefined;
3232
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
3233
+ enum?: [string, ...string[]];
3234
+ }> | undefined;
3235
+ };
3236
+ delete: (serverUid: string, collectionUid: string) => void;
3237
+ set: (item: {
3238
+ uid: string;
3239
+ description?: string | undefined;
3240
+ url?: string | undefined;
3241
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
3242
+ enum?: [string, ...string[]];
3243
+ }> | undefined;
3244
+ }) => void;
3245
+ edit: <P extends "description" | "url" | "variables" | "uid" | `variables.${string}`>(uid: string, path: P, value: P extends "description" | "url" | "variables" | "uid" ? {
3246
+ uid: string;
3247
+ description?: string | undefined;
3248
+ url?: string | undefined;
3249
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
3250
+ enum?: [string, ...string[]];
3251
+ }> | undefined;
3252
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "url" | "variables" | "uid" ? R extends import("@scalar/object-utils/nested").Path<{
3253
+ uid: string;
3254
+ description?: string | undefined;
3255
+ url?: string | undefined;
3256
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
3257
+ enum?: [string, ...string[]];
3258
+ }> | undefined;
3259
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3260
+ uid: string;
3261
+ description?: string | undefined;
3262
+ url?: string | undefined;
3263
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
3264
+ enum?: [string, ...string[]];
3265
+ }> | undefined;
3266
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3267
+ untrackedEdit: <P extends "description" | "url" | "variables" | "uid" | `variables.${string}`>(uid: string, path: P, value: P extends "description" | "url" | "variables" | "uid" ? {
3268
+ uid: string;
3269
+ description?: string | undefined;
3270
+ url?: string | undefined;
3271
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
3272
+ enum?: [string, ...string[]];
3273
+ }> | undefined;
3274
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "url" | "variables" | "uid" ? R extends import("@scalar/object-utils/nested").Path<{
3275
+ uid: string;
3276
+ description?: string | undefined;
3277
+ url?: string | undefined;
3278
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
3279
+ enum?: [string, ...string[]];
3280
+ }> | undefined;
3281
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3282
+ uid: string;
3283
+ description?: string | undefined;
3284
+ url?: string | undefined;
3285
+ variables?: Record<string, Omit<import("@scalar/openapi-types").OpenAPIV3_1.ServerVariableObject, "enum"> & {
3286
+ enum?: [string, ...string[]];
3287
+ }> | undefined;
3288
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3289
+ undo: (uid: string) => void;
3290
+ redo: (uid: string) => void;
3291
+ };
3292
+ tagMutators: {
3293
+ rawAdd: (item: {
3294
+ type: "tag";
3295
+ uid: string;
3296
+ name: string;
3297
+ 'x-scalar-children': {
3298
+ tagName: string;
3299
+ }[];
3300
+ children: string[];
3301
+ description?: string | undefined;
3302
+ externalDocs?: {
3303
+ url: string;
3304
+ description?: string | undefined;
3305
+ } | undefined;
3306
+ }) => void;
3307
+ add: (payload: import("@scalar/oas-utils/entities/spec").TagPayload, collectionUid: string) => void | {
3308
+ type: "tag";
3309
+ uid: string;
3310
+ name: string;
3311
+ 'x-scalar-children': {
3312
+ tagName: string;
3313
+ }[];
3314
+ children: string[];
3315
+ description?: string | undefined;
3316
+ externalDocs?: {
3317
+ url: string;
3318
+ description?: string | undefined;
3319
+ } | undefined;
3320
+ };
3321
+ delete: (tag: import("@scalar/oas-utils/entities/spec").Tag, collectionUid: string) => void;
3322
+ set: (item: {
3323
+ type: "tag";
3324
+ uid: string;
3325
+ name: string;
3326
+ 'x-scalar-children': {
3327
+ tagName: string;
3328
+ }[];
3329
+ children: string[];
3330
+ description?: string | undefined;
3331
+ externalDocs?: {
3332
+ url: string;
3333
+ description?: string | undefined;
3334
+ } | undefined;
3335
+ }) => void;
3336
+ edit: <P extends "type" | "name" | "children" | "description" | "externalDocs" | "uid" | `children.${number}` | "externalDocs.description" | "externalDocs.url" | "x-scalar-children" | `x-scalar-children.${number}` | `x-scalar-children.${number}.tagName`>(uid: string, path: P, value: P extends "type" | "name" | "children" | "description" | "externalDocs" | "uid" | "x-scalar-children" ? {
3337
+ type: "tag";
3338
+ uid: string;
3339
+ name: string;
3340
+ 'x-scalar-children': {
3341
+ tagName: string;
3342
+ }[];
3343
+ children: string[];
3344
+ description?: string | undefined;
3345
+ externalDocs?: {
3346
+ url: string;
3347
+ description?: string | undefined;
3348
+ } | undefined;
3349
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "children" | "description" | "externalDocs" | "uid" | "x-scalar-children" ? R extends import("@scalar/object-utils/nested").Path<{
3350
+ type: "tag";
3351
+ uid: string;
3352
+ name: string;
3353
+ 'x-scalar-children': {
3354
+ tagName: string;
3355
+ }[];
3356
+ children: string[];
3357
+ description?: string | undefined;
3358
+ externalDocs?: {
3359
+ url: string;
3360
+ description?: string | undefined;
3361
+ } | undefined;
3362
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3363
+ type: "tag";
3364
+ uid: string;
3365
+ name: string;
3366
+ 'x-scalar-children': {
3367
+ tagName: string;
3368
+ }[];
3369
+ children: string[];
3370
+ description?: string | undefined;
3371
+ externalDocs?: {
3372
+ url: string;
3373
+ description?: string | undefined;
3374
+ } | undefined;
3375
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3376
+ untrackedEdit: <P extends "type" | "name" | "children" | "description" | "externalDocs" | "uid" | `children.${number}` | "externalDocs.description" | "externalDocs.url" | "x-scalar-children" | `x-scalar-children.${number}` | `x-scalar-children.${number}.tagName`>(uid: string, path: P, value: P extends "type" | "name" | "children" | "description" | "externalDocs" | "uid" | "x-scalar-children" ? {
3377
+ type: "tag";
3378
+ uid: string;
3379
+ name: string;
3380
+ 'x-scalar-children': {
3381
+ tagName: string;
3382
+ }[];
3383
+ children: string[];
3384
+ description?: string | undefined;
3385
+ externalDocs?: {
3386
+ url: string;
3387
+ description?: string | undefined;
3388
+ } | undefined;
3389
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "name" | "children" | "description" | "externalDocs" | "uid" | "x-scalar-children" ? R extends import("@scalar/object-utils/nested").Path<{
3390
+ type: "tag";
3391
+ uid: string;
3392
+ name: string;
3393
+ 'x-scalar-children': {
3394
+ tagName: string;
3395
+ }[];
3396
+ children: string[];
3397
+ description?: string | undefined;
3398
+ externalDocs?: {
3399
+ url: string;
3400
+ description?: string | undefined;
3401
+ } | undefined;
3402
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3403
+ type: "tag";
3404
+ uid: string;
3405
+ name: string;
3406
+ 'x-scalar-children': {
3407
+ tagName: string;
3408
+ }[];
3409
+ children: string[];
3410
+ description?: string | undefined;
3411
+ externalDocs?: {
3412
+ url: string;
3413
+ description?: string | undefined;
3414
+ } | undefined;
3415
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3416
+ undo: (uid: string) => void;
3417
+ redo: (uid: string) => void;
3418
+ };
3419
+ workspaceMutators: {
3420
+ rawAdd: (item: {
3421
+ uid: string;
3422
+ name: string;
3423
+ description: string;
3424
+ isReadOnly: boolean;
3425
+ collections: string[];
3426
+ environments: string[];
3427
+ activeEnvironmentId: string;
3428
+ cookies: string[];
3429
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3430
+ hotKeyConfig?: {
3431
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
3432
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
3433
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
3434
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
3435
+ }>> | undefined;
3436
+ } | undefined;
3437
+ proxyUrl?: string | undefined;
3438
+ }) => void;
3439
+ add: (payload?: Partial<import("@scalar/oas-utils/entities/workspace").Workspace>) => {
3440
+ uid: string;
3441
+ name: string;
3442
+ description: string;
3443
+ isReadOnly: boolean;
3444
+ collections: string[];
3445
+ environments: string[];
3446
+ activeEnvironmentId: string;
3447
+ cookies: string[];
3448
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3449
+ hotKeyConfig?: {
3450
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
3451
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
3452
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
3453
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
3454
+ }>> | undefined;
3455
+ } | undefined;
3456
+ proxyUrl?: string | undefined;
3457
+ };
3458
+ delete: (uid: string) => void;
3459
+ set: (item: {
3460
+ uid: string;
3461
+ name: string;
3462
+ description: string;
3463
+ isReadOnly: boolean;
3464
+ collections: string[];
3465
+ environments: string[];
3466
+ activeEnvironmentId: string;
3467
+ cookies: string[];
3468
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3469
+ hotKeyConfig?: {
3470
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
3471
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
3472
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
3473
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
3474
+ }>> | undefined;
3475
+ } | undefined;
3476
+ proxyUrl?: string | undefined;
3477
+ }) => void;
3478
+ edit: <P extends "cookies" | "name" | "collections" | "environments" | "description" | "uid" | "isReadOnly" | "activeEnvironmentId" | "themeId" | "hotKeyConfig" | "proxyUrl" | `cookies.${number}` | `collections.${number}` | `environments.${number}` | "hotKeyConfig.hotKeys" | "hotKeyConfig.modifiers" | `hotKeyConfig.modifiers.${number}` | "hotKeyConfig.hotKeys." | "hotKeyConfig.hotKeys.." | "hotKeyConfig.hotKeys.a" | "hotKeyConfig.hotKeys.b" | "hotKeyConfig.hotKeys.i" | "hotKeyConfig.hotKeys.p" | "hotKeyConfig.hotKeys.q" | "hotKeyConfig.hotKeys.s" | "hotKeyConfig.hotKeys.u" | "hotKeyConfig.hotKeys.g" | "hotKeyConfig.hotKeys.-" | "hotKeyConfig.hotKeys.ArrowLeft" | "hotKeyConfig.hotKeys.ArrowRight" | "hotKeyConfig.hotKeys.Delete" | "hotKeyConfig.hotKeys.0" | "hotKeyConfig.hotKeys.1" | "hotKeyConfig.hotKeys.n" | "hotKeyConfig.hotKeys.Escape" | "hotKeyConfig.hotKeys.ArrowDown" | "hotKeyConfig.hotKeys.ArrowUp" | "hotKeyConfig.hotKeys.Enter" | "hotKeyConfig.hotKeys.F1" | "hotKeyConfig.hotKeys.F2" | "hotKeyConfig.hotKeys.F3" | "hotKeyConfig.hotKeys.F4" | "hotKeyConfig.hotKeys.F5" | "hotKeyConfig.hotKeys.F6" | "hotKeyConfig.hotKeys.F7" | "hotKeyConfig.hotKeys.F8" | "hotKeyConfig.hotKeys.F9" | "hotKeyConfig.hotKeys.F10" | "hotKeyConfig.hotKeys.F11" | "hotKeyConfig.hotKeys.F12" | "hotKeyConfig.hotKeys.Space" | "hotKeyConfig.hotKeys.Backspace" | "hotKeyConfig.hotKeys.Tab" | "hotKeyConfig.hotKeys.End" | "hotKeyConfig.hotKeys.Home" | "hotKeyConfig.hotKeys.PageDown" | "hotKeyConfig.hotKeys.PageUp" | "hotKeyConfig.hotKeys.2" | "hotKeyConfig.hotKeys.3" | "hotKeyConfig.hotKeys.4" | "hotKeyConfig.hotKeys.5" | "hotKeyConfig.hotKeys.6" | "hotKeyConfig.hotKeys.7" | "hotKeyConfig.hotKeys.8" | "hotKeyConfig.hotKeys.9" | "hotKeyConfig.hotKeys.c" | "hotKeyConfig.hotKeys.d" | "hotKeyConfig.hotKeys.e" | "hotKeyConfig.hotKeys.f" | "hotKeyConfig.hotKeys.h" | "hotKeyConfig.hotKeys.j" | "hotKeyConfig.hotKeys.k" | "hotKeyConfig.hotKeys.l" | "hotKeyConfig.hotKeys.m" | "hotKeyConfig.hotKeys.o" | "hotKeyConfig.hotKeys.r" | "hotKeyConfig.hotKeys.t" | "hotKeyConfig.hotKeys.v" | "hotKeyConfig.hotKeys.w" | "hotKeyConfig.hotKeys.x" | "hotKeyConfig.hotKeys.y" | "hotKeyConfig.hotKeys.z" | "hotKeyConfig.hotKeys.*" | "hotKeyConfig.hotKeys.+" | "hotKeyConfig.hotKeys./" | "hotKeyConfig.hotKeys.;" | "hotKeyConfig.hotKeys.=" | "hotKeyConfig.hotKeys.," | "hotKeyConfig.hotKeys.`" | "hotKeyConfig.hotKeys.[" | "hotKeyConfig.hotKeys.\\" | "hotKeyConfig.hotKeys.]" | "hotKeyConfig.hotKeys..event" | "hotKeyConfig.hotKeys..modifiers" | `hotKeyConfig.hotKeys..modifiers.${number}` | "hotKeyConfig.hotKeys...event" | "hotKeyConfig.hotKeys...modifiers" | `hotKeyConfig.hotKeys...modifiers.${number}` | "hotKeyConfig.hotKeys.a.event" | "hotKeyConfig.hotKeys.a.modifiers" | `hotKeyConfig.hotKeys.a.modifiers.${number}` | "hotKeyConfig.hotKeys.b.event" | "hotKeyConfig.hotKeys.b.modifiers" | `hotKeyConfig.hotKeys.b.modifiers.${number}` | "hotKeyConfig.hotKeys.i.event" | "hotKeyConfig.hotKeys.i.modifiers" | `hotKeyConfig.hotKeys.i.modifiers.${number}` | "hotKeyConfig.hotKeys.p.event" | "hotKeyConfig.hotKeys.p.modifiers" | `hotKeyConfig.hotKeys.p.modifiers.${number}` | "hotKeyConfig.hotKeys.q.event" | "hotKeyConfig.hotKeys.q.modifiers" | `hotKeyConfig.hotKeys.q.modifiers.${number}` | "hotKeyConfig.hotKeys.s.event" | "hotKeyConfig.hotKeys.s.modifiers" | `hotKeyConfig.hotKeys.s.modifiers.${number}` | "hotKeyConfig.hotKeys.u.event" | "hotKeyConfig.hotKeys.u.modifiers" | `hotKeyConfig.hotKeys.u.modifiers.${number}` | "hotKeyConfig.hotKeys.g.event" | "hotKeyConfig.hotKeys.g.modifiers" | `hotKeyConfig.hotKeys.g.modifiers.${number}` | "hotKeyConfig.hotKeys.-.event" | "hotKeyConfig.hotKeys.-.modifiers" | `hotKeyConfig.hotKeys.-.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowLeft.event" | "hotKeyConfig.hotKeys.ArrowLeft.modifiers" | `hotKeyConfig.hotKeys.ArrowLeft.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowRight.event" | "hotKeyConfig.hotKeys.ArrowRight.modifiers" | `hotKeyConfig.hotKeys.ArrowRight.modifiers.${number}` | "hotKeyConfig.hotKeys.Delete.event" | "hotKeyConfig.hotKeys.Delete.modifiers" | `hotKeyConfig.hotKeys.Delete.modifiers.${number}` | "hotKeyConfig.hotKeys.0.event" | "hotKeyConfig.hotKeys.0.modifiers" | `hotKeyConfig.hotKeys.0.modifiers.${number}` | "hotKeyConfig.hotKeys.1.event" | "hotKeyConfig.hotKeys.1.modifiers" | `hotKeyConfig.hotKeys.1.modifiers.${number}` | "hotKeyConfig.hotKeys.n.event" | "hotKeyConfig.hotKeys.n.modifiers" | `hotKeyConfig.hotKeys.n.modifiers.${number}` | "hotKeyConfig.hotKeys.Escape.event" | "hotKeyConfig.hotKeys.Escape.modifiers" | `hotKeyConfig.hotKeys.Escape.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowDown.event" | "hotKeyConfig.hotKeys.ArrowDown.modifiers" | `hotKeyConfig.hotKeys.ArrowDown.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowUp.event" | "hotKeyConfig.hotKeys.ArrowUp.modifiers" | `hotKeyConfig.hotKeys.ArrowUp.modifiers.${number}` | "hotKeyConfig.hotKeys.Enter.event" | "hotKeyConfig.hotKeys.Enter.modifiers" | `hotKeyConfig.hotKeys.Enter.modifiers.${number}` | "hotKeyConfig.hotKeys.F1.event" | "hotKeyConfig.hotKeys.F1.modifiers" | `hotKeyConfig.hotKeys.F1.modifiers.${number}` | "hotKeyConfig.hotKeys.F2.event" | "hotKeyConfig.hotKeys.F2.modifiers" | `hotKeyConfig.hotKeys.F2.modifiers.${number}` | "hotKeyConfig.hotKeys.F3.event" | "hotKeyConfig.hotKeys.F3.modifiers" | `hotKeyConfig.hotKeys.F3.modifiers.${number}` | "hotKeyConfig.hotKeys.F4.event" | "hotKeyConfig.hotKeys.F4.modifiers" | `hotKeyConfig.hotKeys.F4.modifiers.${number}` | "hotKeyConfig.hotKeys.F5.event" | "hotKeyConfig.hotKeys.F5.modifiers" | `hotKeyConfig.hotKeys.F5.modifiers.${number}` | "hotKeyConfig.hotKeys.F6.event" | "hotKeyConfig.hotKeys.F6.modifiers" | `hotKeyConfig.hotKeys.F6.modifiers.${number}` | "hotKeyConfig.hotKeys.F7.event" | "hotKeyConfig.hotKeys.F7.modifiers" | `hotKeyConfig.hotKeys.F7.modifiers.${number}` | "hotKeyConfig.hotKeys.F8.event" | "hotKeyConfig.hotKeys.F8.modifiers" | `hotKeyConfig.hotKeys.F8.modifiers.${number}` | "hotKeyConfig.hotKeys.F9.event" | "hotKeyConfig.hotKeys.F9.modifiers" | `hotKeyConfig.hotKeys.F9.modifiers.${number}` | "hotKeyConfig.hotKeys.F10.event" | "hotKeyConfig.hotKeys.F10.modifiers" | `hotKeyConfig.hotKeys.F10.modifiers.${number}` | "hotKeyConfig.hotKeys.F11.event" | "hotKeyConfig.hotKeys.F11.modifiers" | `hotKeyConfig.hotKeys.F11.modifiers.${number}` | "hotKeyConfig.hotKeys.F12.event" | "hotKeyConfig.hotKeys.F12.modifiers" | `hotKeyConfig.hotKeys.F12.modifiers.${number}` | "hotKeyConfig.hotKeys.Space.event" | "hotKeyConfig.hotKeys.Space.modifiers" | `hotKeyConfig.hotKeys.Space.modifiers.${number}` | "hotKeyConfig.hotKeys.Backspace.event" | "hotKeyConfig.hotKeys.Backspace.modifiers" | `hotKeyConfig.hotKeys.Backspace.modifiers.${number}` | "hotKeyConfig.hotKeys.Tab.event" | "hotKeyConfig.hotKeys.Tab.modifiers" | `hotKeyConfig.hotKeys.Tab.modifiers.${number}` | "hotKeyConfig.hotKeys.End.event" | "hotKeyConfig.hotKeys.End.modifiers" | `hotKeyConfig.hotKeys.End.modifiers.${number}` | "hotKeyConfig.hotKeys.Home.event" | "hotKeyConfig.hotKeys.Home.modifiers" | `hotKeyConfig.hotKeys.Home.modifiers.${number}` | "hotKeyConfig.hotKeys.PageDown.event" | "hotKeyConfig.hotKeys.PageDown.modifiers" | `hotKeyConfig.hotKeys.PageDown.modifiers.${number}` | "hotKeyConfig.hotKeys.PageUp.event" | "hotKeyConfig.hotKeys.PageUp.modifiers" | `hotKeyConfig.hotKeys.PageUp.modifiers.${number}` | "hotKeyConfig.hotKeys.2.event" | "hotKeyConfig.hotKeys.2.modifiers" | `hotKeyConfig.hotKeys.2.modifiers.${number}` | "hotKeyConfig.hotKeys.3.event" | "hotKeyConfig.hotKeys.3.modifiers" | `hotKeyConfig.hotKeys.3.modifiers.${number}` | "hotKeyConfig.hotKeys.4.event" | "hotKeyConfig.hotKeys.4.modifiers" | `hotKeyConfig.hotKeys.4.modifiers.${number}` | "hotKeyConfig.hotKeys.5.event" | "hotKeyConfig.hotKeys.5.modifiers" | `hotKeyConfig.hotKeys.5.modifiers.${number}` | "hotKeyConfig.hotKeys.6.event" | "hotKeyConfig.hotKeys.6.modifiers" | `hotKeyConfig.hotKeys.6.modifiers.${number}` | "hotKeyConfig.hotKeys.7.event" | "hotKeyConfig.hotKeys.7.modifiers" | `hotKeyConfig.hotKeys.7.modifiers.${number}` | "hotKeyConfig.hotKeys.8.event" | "hotKeyConfig.hotKeys.8.modifiers" | `hotKeyConfig.hotKeys.8.modifiers.${number}` | "hotKeyConfig.hotKeys.9.event" | "hotKeyConfig.hotKeys.9.modifiers" | `hotKeyConfig.hotKeys.9.modifiers.${number}` | "hotKeyConfig.hotKeys.c.event" | "hotKeyConfig.hotKeys.c.modifiers" | `hotKeyConfig.hotKeys.c.modifiers.${number}` | "hotKeyConfig.hotKeys.d.event" | "hotKeyConfig.hotKeys.d.modifiers" | `hotKeyConfig.hotKeys.d.modifiers.${number}` | "hotKeyConfig.hotKeys.e.event" | "hotKeyConfig.hotKeys.e.modifiers" | `hotKeyConfig.hotKeys.e.modifiers.${number}` | "hotKeyConfig.hotKeys.f.event" | "hotKeyConfig.hotKeys.f.modifiers" | `hotKeyConfig.hotKeys.f.modifiers.${number}` | "hotKeyConfig.hotKeys.h.event" | "hotKeyConfig.hotKeys.h.modifiers" | `hotKeyConfig.hotKeys.h.modifiers.${number}` | "hotKeyConfig.hotKeys.j.event" | "hotKeyConfig.hotKeys.j.modifiers" | `hotKeyConfig.hotKeys.j.modifiers.${number}` | "hotKeyConfig.hotKeys.k.event" | "hotKeyConfig.hotKeys.k.modifiers" | `hotKeyConfig.hotKeys.k.modifiers.${number}` | "hotKeyConfig.hotKeys.l.event" | "hotKeyConfig.hotKeys.l.modifiers" | `hotKeyConfig.hotKeys.l.modifiers.${number}` | "hotKeyConfig.hotKeys.m.event" | "hotKeyConfig.hotKeys.m.modifiers" | `hotKeyConfig.hotKeys.m.modifiers.${number}` | "hotKeyConfig.hotKeys.o.event" | "hotKeyConfig.hotKeys.o.modifiers" | `hotKeyConfig.hotKeys.o.modifiers.${number}` | "hotKeyConfig.hotKeys.r.event" | "hotKeyConfig.hotKeys.r.modifiers" | `hotKeyConfig.hotKeys.r.modifiers.${number}` | "hotKeyConfig.hotKeys.t.event" | "hotKeyConfig.hotKeys.t.modifiers" | `hotKeyConfig.hotKeys.t.modifiers.${number}` | "hotKeyConfig.hotKeys.v.event" | "hotKeyConfig.hotKeys.v.modifiers" | `hotKeyConfig.hotKeys.v.modifiers.${number}` | "hotKeyConfig.hotKeys.w.event" | "hotKeyConfig.hotKeys.w.modifiers" | `hotKeyConfig.hotKeys.w.modifiers.${number}` | "hotKeyConfig.hotKeys.x.event" | "hotKeyConfig.hotKeys.x.modifiers" | `hotKeyConfig.hotKeys.x.modifiers.${number}` | "hotKeyConfig.hotKeys.y.event" | "hotKeyConfig.hotKeys.y.modifiers" | `hotKeyConfig.hotKeys.y.modifiers.${number}` | "hotKeyConfig.hotKeys.z.event" | "hotKeyConfig.hotKeys.z.modifiers" | `hotKeyConfig.hotKeys.z.modifiers.${number}` | "hotKeyConfig.hotKeys.*.event" | "hotKeyConfig.hotKeys.*.modifiers" | `hotKeyConfig.hotKeys.*.modifiers.${number}` | "hotKeyConfig.hotKeys.+.event" | "hotKeyConfig.hotKeys.+.modifiers" | `hotKeyConfig.hotKeys.+.modifiers.${number}` | "hotKeyConfig.hotKeys./.event" | "hotKeyConfig.hotKeys./.modifiers" | `hotKeyConfig.hotKeys./.modifiers.${number}` | "hotKeyConfig.hotKeys.;.event" | "hotKeyConfig.hotKeys.;.modifiers" | `hotKeyConfig.hotKeys.;.modifiers.${number}` | "hotKeyConfig.hotKeys.=.event" | "hotKeyConfig.hotKeys.=.modifiers" | `hotKeyConfig.hotKeys.=.modifiers.${number}` | "hotKeyConfig.hotKeys.,.event" | "hotKeyConfig.hotKeys.,.modifiers" | `hotKeyConfig.hotKeys.,.modifiers.${number}` | "hotKeyConfig.hotKeys.`.event" | "hotKeyConfig.hotKeys.`.modifiers" | `hotKeyConfig.hotKeys.\`.modifiers.${number}` | "hotKeyConfig.hotKeys.[.event" | "hotKeyConfig.hotKeys.[.modifiers" | `hotKeyConfig.hotKeys.[.modifiers.${number}` | "hotKeyConfig.hotKeys.\\.event" | "hotKeyConfig.hotKeys.\\.modifiers" | `hotKeyConfig.hotKeys.\\.modifiers.${number}` | "hotKeyConfig.hotKeys.].event" | "hotKeyConfig.hotKeys.].modifiers" | `hotKeyConfig.hotKeys.].modifiers.${number}`>(uid: string, path: P, value: P extends "cookies" | "name" | "collections" | "environments" | "description" | "uid" | "isReadOnly" | "activeEnvironmentId" | "themeId" | "hotKeyConfig" | "proxyUrl" ? {
3479
+ uid: string;
3480
+ name: string;
3481
+ description: string;
3482
+ isReadOnly: boolean;
3483
+ collections: string[];
3484
+ environments: string[];
3485
+ activeEnvironmentId: string;
3486
+ cookies: string[];
3487
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3488
+ hotKeyConfig?: {
3489
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
3490
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
3491
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
3492
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
3493
+ }>> | undefined;
3494
+ } | undefined;
3495
+ proxyUrl?: string | undefined;
3496
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "cookies" | "name" | "collections" | "environments" | "description" | "uid" | "isReadOnly" | "activeEnvironmentId" | "themeId" | "hotKeyConfig" | "proxyUrl" ? R extends import("@scalar/object-utils/nested").Path<{
3497
+ uid: string;
3498
+ name: string;
3499
+ description: string;
3500
+ isReadOnly: boolean;
3501
+ collections: string[];
3502
+ environments: string[];
3503
+ activeEnvironmentId: string;
3504
+ cookies: string[];
3505
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3506
+ hotKeyConfig?: {
3507
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
3508
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
3509
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
3510
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
3511
+ }>> | undefined;
3512
+ } | undefined;
3513
+ proxyUrl?: string | undefined;
3514
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3515
+ uid: string;
3516
+ name: string;
3517
+ description: string;
3518
+ isReadOnly: boolean;
3519
+ collections: string[];
3520
+ environments: string[];
3521
+ activeEnvironmentId: string;
3522
+ cookies: string[];
3523
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3524
+ hotKeyConfig?: {
3525
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
3526
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
3527
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
3528
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
3529
+ }>> | undefined;
3530
+ } | undefined;
3531
+ proxyUrl?: string | undefined;
3532
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3533
+ untrackedEdit: <P extends "cookies" | "name" | "collections" | "environments" | "description" | "uid" | "isReadOnly" | "activeEnvironmentId" | "themeId" | "hotKeyConfig" | "proxyUrl" | `cookies.${number}` | `collections.${number}` | `environments.${number}` | "hotKeyConfig.hotKeys" | "hotKeyConfig.modifiers" | `hotKeyConfig.modifiers.${number}` | "hotKeyConfig.hotKeys." | "hotKeyConfig.hotKeys.." | "hotKeyConfig.hotKeys.a" | "hotKeyConfig.hotKeys.b" | "hotKeyConfig.hotKeys.i" | "hotKeyConfig.hotKeys.p" | "hotKeyConfig.hotKeys.q" | "hotKeyConfig.hotKeys.s" | "hotKeyConfig.hotKeys.u" | "hotKeyConfig.hotKeys.g" | "hotKeyConfig.hotKeys.-" | "hotKeyConfig.hotKeys.ArrowLeft" | "hotKeyConfig.hotKeys.ArrowRight" | "hotKeyConfig.hotKeys.Delete" | "hotKeyConfig.hotKeys.0" | "hotKeyConfig.hotKeys.1" | "hotKeyConfig.hotKeys.n" | "hotKeyConfig.hotKeys.Escape" | "hotKeyConfig.hotKeys.ArrowDown" | "hotKeyConfig.hotKeys.ArrowUp" | "hotKeyConfig.hotKeys.Enter" | "hotKeyConfig.hotKeys.F1" | "hotKeyConfig.hotKeys.F2" | "hotKeyConfig.hotKeys.F3" | "hotKeyConfig.hotKeys.F4" | "hotKeyConfig.hotKeys.F5" | "hotKeyConfig.hotKeys.F6" | "hotKeyConfig.hotKeys.F7" | "hotKeyConfig.hotKeys.F8" | "hotKeyConfig.hotKeys.F9" | "hotKeyConfig.hotKeys.F10" | "hotKeyConfig.hotKeys.F11" | "hotKeyConfig.hotKeys.F12" | "hotKeyConfig.hotKeys.Space" | "hotKeyConfig.hotKeys.Backspace" | "hotKeyConfig.hotKeys.Tab" | "hotKeyConfig.hotKeys.End" | "hotKeyConfig.hotKeys.Home" | "hotKeyConfig.hotKeys.PageDown" | "hotKeyConfig.hotKeys.PageUp" | "hotKeyConfig.hotKeys.2" | "hotKeyConfig.hotKeys.3" | "hotKeyConfig.hotKeys.4" | "hotKeyConfig.hotKeys.5" | "hotKeyConfig.hotKeys.6" | "hotKeyConfig.hotKeys.7" | "hotKeyConfig.hotKeys.8" | "hotKeyConfig.hotKeys.9" | "hotKeyConfig.hotKeys.c" | "hotKeyConfig.hotKeys.d" | "hotKeyConfig.hotKeys.e" | "hotKeyConfig.hotKeys.f" | "hotKeyConfig.hotKeys.h" | "hotKeyConfig.hotKeys.j" | "hotKeyConfig.hotKeys.k" | "hotKeyConfig.hotKeys.l" | "hotKeyConfig.hotKeys.m" | "hotKeyConfig.hotKeys.o" | "hotKeyConfig.hotKeys.r" | "hotKeyConfig.hotKeys.t" | "hotKeyConfig.hotKeys.v" | "hotKeyConfig.hotKeys.w" | "hotKeyConfig.hotKeys.x" | "hotKeyConfig.hotKeys.y" | "hotKeyConfig.hotKeys.z" | "hotKeyConfig.hotKeys.*" | "hotKeyConfig.hotKeys.+" | "hotKeyConfig.hotKeys./" | "hotKeyConfig.hotKeys.;" | "hotKeyConfig.hotKeys.=" | "hotKeyConfig.hotKeys.," | "hotKeyConfig.hotKeys.`" | "hotKeyConfig.hotKeys.[" | "hotKeyConfig.hotKeys.\\" | "hotKeyConfig.hotKeys.]" | "hotKeyConfig.hotKeys..event" | "hotKeyConfig.hotKeys..modifiers" | `hotKeyConfig.hotKeys..modifiers.${number}` | "hotKeyConfig.hotKeys...event" | "hotKeyConfig.hotKeys...modifiers" | `hotKeyConfig.hotKeys...modifiers.${number}` | "hotKeyConfig.hotKeys.a.event" | "hotKeyConfig.hotKeys.a.modifiers" | `hotKeyConfig.hotKeys.a.modifiers.${number}` | "hotKeyConfig.hotKeys.b.event" | "hotKeyConfig.hotKeys.b.modifiers" | `hotKeyConfig.hotKeys.b.modifiers.${number}` | "hotKeyConfig.hotKeys.i.event" | "hotKeyConfig.hotKeys.i.modifiers" | `hotKeyConfig.hotKeys.i.modifiers.${number}` | "hotKeyConfig.hotKeys.p.event" | "hotKeyConfig.hotKeys.p.modifiers" | `hotKeyConfig.hotKeys.p.modifiers.${number}` | "hotKeyConfig.hotKeys.q.event" | "hotKeyConfig.hotKeys.q.modifiers" | `hotKeyConfig.hotKeys.q.modifiers.${number}` | "hotKeyConfig.hotKeys.s.event" | "hotKeyConfig.hotKeys.s.modifiers" | `hotKeyConfig.hotKeys.s.modifiers.${number}` | "hotKeyConfig.hotKeys.u.event" | "hotKeyConfig.hotKeys.u.modifiers" | `hotKeyConfig.hotKeys.u.modifiers.${number}` | "hotKeyConfig.hotKeys.g.event" | "hotKeyConfig.hotKeys.g.modifiers" | `hotKeyConfig.hotKeys.g.modifiers.${number}` | "hotKeyConfig.hotKeys.-.event" | "hotKeyConfig.hotKeys.-.modifiers" | `hotKeyConfig.hotKeys.-.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowLeft.event" | "hotKeyConfig.hotKeys.ArrowLeft.modifiers" | `hotKeyConfig.hotKeys.ArrowLeft.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowRight.event" | "hotKeyConfig.hotKeys.ArrowRight.modifiers" | `hotKeyConfig.hotKeys.ArrowRight.modifiers.${number}` | "hotKeyConfig.hotKeys.Delete.event" | "hotKeyConfig.hotKeys.Delete.modifiers" | `hotKeyConfig.hotKeys.Delete.modifiers.${number}` | "hotKeyConfig.hotKeys.0.event" | "hotKeyConfig.hotKeys.0.modifiers" | `hotKeyConfig.hotKeys.0.modifiers.${number}` | "hotKeyConfig.hotKeys.1.event" | "hotKeyConfig.hotKeys.1.modifiers" | `hotKeyConfig.hotKeys.1.modifiers.${number}` | "hotKeyConfig.hotKeys.n.event" | "hotKeyConfig.hotKeys.n.modifiers" | `hotKeyConfig.hotKeys.n.modifiers.${number}` | "hotKeyConfig.hotKeys.Escape.event" | "hotKeyConfig.hotKeys.Escape.modifiers" | `hotKeyConfig.hotKeys.Escape.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowDown.event" | "hotKeyConfig.hotKeys.ArrowDown.modifiers" | `hotKeyConfig.hotKeys.ArrowDown.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowUp.event" | "hotKeyConfig.hotKeys.ArrowUp.modifiers" | `hotKeyConfig.hotKeys.ArrowUp.modifiers.${number}` | "hotKeyConfig.hotKeys.Enter.event" | "hotKeyConfig.hotKeys.Enter.modifiers" | `hotKeyConfig.hotKeys.Enter.modifiers.${number}` | "hotKeyConfig.hotKeys.F1.event" | "hotKeyConfig.hotKeys.F1.modifiers" | `hotKeyConfig.hotKeys.F1.modifiers.${number}` | "hotKeyConfig.hotKeys.F2.event" | "hotKeyConfig.hotKeys.F2.modifiers" | `hotKeyConfig.hotKeys.F2.modifiers.${number}` | "hotKeyConfig.hotKeys.F3.event" | "hotKeyConfig.hotKeys.F3.modifiers" | `hotKeyConfig.hotKeys.F3.modifiers.${number}` | "hotKeyConfig.hotKeys.F4.event" | "hotKeyConfig.hotKeys.F4.modifiers" | `hotKeyConfig.hotKeys.F4.modifiers.${number}` | "hotKeyConfig.hotKeys.F5.event" | "hotKeyConfig.hotKeys.F5.modifiers" | `hotKeyConfig.hotKeys.F5.modifiers.${number}` | "hotKeyConfig.hotKeys.F6.event" | "hotKeyConfig.hotKeys.F6.modifiers" | `hotKeyConfig.hotKeys.F6.modifiers.${number}` | "hotKeyConfig.hotKeys.F7.event" | "hotKeyConfig.hotKeys.F7.modifiers" | `hotKeyConfig.hotKeys.F7.modifiers.${number}` | "hotKeyConfig.hotKeys.F8.event" | "hotKeyConfig.hotKeys.F8.modifiers" | `hotKeyConfig.hotKeys.F8.modifiers.${number}` | "hotKeyConfig.hotKeys.F9.event" | "hotKeyConfig.hotKeys.F9.modifiers" | `hotKeyConfig.hotKeys.F9.modifiers.${number}` | "hotKeyConfig.hotKeys.F10.event" | "hotKeyConfig.hotKeys.F10.modifiers" | `hotKeyConfig.hotKeys.F10.modifiers.${number}` | "hotKeyConfig.hotKeys.F11.event" | "hotKeyConfig.hotKeys.F11.modifiers" | `hotKeyConfig.hotKeys.F11.modifiers.${number}` | "hotKeyConfig.hotKeys.F12.event" | "hotKeyConfig.hotKeys.F12.modifiers" | `hotKeyConfig.hotKeys.F12.modifiers.${number}` | "hotKeyConfig.hotKeys.Space.event" | "hotKeyConfig.hotKeys.Space.modifiers" | `hotKeyConfig.hotKeys.Space.modifiers.${number}` | "hotKeyConfig.hotKeys.Backspace.event" | "hotKeyConfig.hotKeys.Backspace.modifiers" | `hotKeyConfig.hotKeys.Backspace.modifiers.${number}` | "hotKeyConfig.hotKeys.Tab.event" | "hotKeyConfig.hotKeys.Tab.modifiers" | `hotKeyConfig.hotKeys.Tab.modifiers.${number}` | "hotKeyConfig.hotKeys.End.event" | "hotKeyConfig.hotKeys.End.modifiers" | `hotKeyConfig.hotKeys.End.modifiers.${number}` | "hotKeyConfig.hotKeys.Home.event" | "hotKeyConfig.hotKeys.Home.modifiers" | `hotKeyConfig.hotKeys.Home.modifiers.${number}` | "hotKeyConfig.hotKeys.PageDown.event" | "hotKeyConfig.hotKeys.PageDown.modifiers" | `hotKeyConfig.hotKeys.PageDown.modifiers.${number}` | "hotKeyConfig.hotKeys.PageUp.event" | "hotKeyConfig.hotKeys.PageUp.modifiers" | `hotKeyConfig.hotKeys.PageUp.modifiers.${number}` | "hotKeyConfig.hotKeys.2.event" | "hotKeyConfig.hotKeys.2.modifiers" | `hotKeyConfig.hotKeys.2.modifiers.${number}` | "hotKeyConfig.hotKeys.3.event" | "hotKeyConfig.hotKeys.3.modifiers" | `hotKeyConfig.hotKeys.3.modifiers.${number}` | "hotKeyConfig.hotKeys.4.event" | "hotKeyConfig.hotKeys.4.modifiers" | `hotKeyConfig.hotKeys.4.modifiers.${number}` | "hotKeyConfig.hotKeys.5.event" | "hotKeyConfig.hotKeys.5.modifiers" | `hotKeyConfig.hotKeys.5.modifiers.${number}` | "hotKeyConfig.hotKeys.6.event" | "hotKeyConfig.hotKeys.6.modifiers" | `hotKeyConfig.hotKeys.6.modifiers.${number}` | "hotKeyConfig.hotKeys.7.event" | "hotKeyConfig.hotKeys.7.modifiers" | `hotKeyConfig.hotKeys.7.modifiers.${number}` | "hotKeyConfig.hotKeys.8.event" | "hotKeyConfig.hotKeys.8.modifiers" | `hotKeyConfig.hotKeys.8.modifiers.${number}` | "hotKeyConfig.hotKeys.9.event" | "hotKeyConfig.hotKeys.9.modifiers" | `hotKeyConfig.hotKeys.9.modifiers.${number}` | "hotKeyConfig.hotKeys.c.event" | "hotKeyConfig.hotKeys.c.modifiers" | `hotKeyConfig.hotKeys.c.modifiers.${number}` | "hotKeyConfig.hotKeys.d.event" | "hotKeyConfig.hotKeys.d.modifiers" | `hotKeyConfig.hotKeys.d.modifiers.${number}` | "hotKeyConfig.hotKeys.e.event" | "hotKeyConfig.hotKeys.e.modifiers" | `hotKeyConfig.hotKeys.e.modifiers.${number}` | "hotKeyConfig.hotKeys.f.event" | "hotKeyConfig.hotKeys.f.modifiers" | `hotKeyConfig.hotKeys.f.modifiers.${number}` | "hotKeyConfig.hotKeys.h.event" | "hotKeyConfig.hotKeys.h.modifiers" | `hotKeyConfig.hotKeys.h.modifiers.${number}` | "hotKeyConfig.hotKeys.j.event" | "hotKeyConfig.hotKeys.j.modifiers" | `hotKeyConfig.hotKeys.j.modifiers.${number}` | "hotKeyConfig.hotKeys.k.event" | "hotKeyConfig.hotKeys.k.modifiers" | `hotKeyConfig.hotKeys.k.modifiers.${number}` | "hotKeyConfig.hotKeys.l.event" | "hotKeyConfig.hotKeys.l.modifiers" | `hotKeyConfig.hotKeys.l.modifiers.${number}` | "hotKeyConfig.hotKeys.m.event" | "hotKeyConfig.hotKeys.m.modifiers" | `hotKeyConfig.hotKeys.m.modifiers.${number}` | "hotKeyConfig.hotKeys.o.event" | "hotKeyConfig.hotKeys.o.modifiers" | `hotKeyConfig.hotKeys.o.modifiers.${number}` | "hotKeyConfig.hotKeys.r.event" | "hotKeyConfig.hotKeys.r.modifiers" | `hotKeyConfig.hotKeys.r.modifiers.${number}` | "hotKeyConfig.hotKeys.t.event" | "hotKeyConfig.hotKeys.t.modifiers" | `hotKeyConfig.hotKeys.t.modifiers.${number}` | "hotKeyConfig.hotKeys.v.event" | "hotKeyConfig.hotKeys.v.modifiers" | `hotKeyConfig.hotKeys.v.modifiers.${number}` | "hotKeyConfig.hotKeys.w.event" | "hotKeyConfig.hotKeys.w.modifiers" | `hotKeyConfig.hotKeys.w.modifiers.${number}` | "hotKeyConfig.hotKeys.x.event" | "hotKeyConfig.hotKeys.x.modifiers" | `hotKeyConfig.hotKeys.x.modifiers.${number}` | "hotKeyConfig.hotKeys.y.event" | "hotKeyConfig.hotKeys.y.modifiers" | `hotKeyConfig.hotKeys.y.modifiers.${number}` | "hotKeyConfig.hotKeys.z.event" | "hotKeyConfig.hotKeys.z.modifiers" | `hotKeyConfig.hotKeys.z.modifiers.${number}` | "hotKeyConfig.hotKeys.*.event" | "hotKeyConfig.hotKeys.*.modifiers" | `hotKeyConfig.hotKeys.*.modifiers.${number}` | "hotKeyConfig.hotKeys.+.event" | "hotKeyConfig.hotKeys.+.modifiers" | `hotKeyConfig.hotKeys.+.modifiers.${number}` | "hotKeyConfig.hotKeys./.event" | "hotKeyConfig.hotKeys./.modifiers" | `hotKeyConfig.hotKeys./.modifiers.${number}` | "hotKeyConfig.hotKeys.;.event" | "hotKeyConfig.hotKeys.;.modifiers" | `hotKeyConfig.hotKeys.;.modifiers.${number}` | "hotKeyConfig.hotKeys.=.event" | "hotKeyConfig.hotKeys.=.modifiers" | `hotKeyConfig.hotKeys.=.modifiers.${number}` | "hotKeyConfig.hotKeys.,.event" | "hotKeyConfig.hotKeys.,.modifiers" | `hotKeyConfig.hotKeys.,.modifiers.${number}` | "hotKeyConfig.hotKeys.`.event" | "hotKeyConfig.hotKeys.`.modifiers" | `hotKeyConfig.hotKeys.\`.modifiers.${number}` | "hotKeyConfig.hotKeys.[.event" | "hotKeyConfig.hotKeys.[.modifiers" | `hotKeyConfig.hotKeys.[.modifiers.${number}` | "hotKeyConfig.hotKeys.\\.event" | "hotKeyConfig.hotKeys.\\.modifiers" | `hotKeyConfig.hotKeys.\\.modifiers.${number}` | "hotKeyConfig.hotKeys.].event" | "hotKeyConfig.hotKeys.].modifiers" | `hotKeyConfig.hotKeys.].modifiers.${number}`>(uid: string, path: P, value: P extends "cookies" | "name" | "collections" | "environments" | "description" | "uid" | "isReadOnly" | "activeEnvironmentId" | "themeId" | "hotKeyConfig" | "proxyUrl" ? {
3534
+ uid: string;
3535
+ name: string;
3536
+ description: string;
3537
+ isReadOnly: boolean;
3538
+ collections: string[];
3539
+ environments: string[];
3540
+ activeEnvironmentId: string;
3541
+ cookies: string[];
3542
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3543
+ hotKeyConfig?: {
3544
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
3545
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
3546
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
3547
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
3548
+ }>> | undefined;
3549
+ } | undefined;
3550
+ proxyUrl?: string | undefined;
3551
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "cookies" | "name" | "collections" | "environments" | "description" | "uid" | "isReadOnly" | "activeEnvironmentId" | "themeId" | "hotKeyConfig" | "proxyUrl" ? R extends import("@scalar/object-utils/nested").Path<{
3552
+ uid: string;
3553
+ name: string;
3554
+ description: string;
3555
+ isReadOnly: boolean;
3556
+ collections: string[];
3557
+ environments: string[];
3558
+ activeEnvironmentId: string;
3559
+ cookies: string[];
3560
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3561
+ hotKeyConfig?: {
3562
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
3563
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
3564
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
3565
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
3566
+ }>> | undefined;
3567
+ } | undefined;
3568
+ proxyUrl?: string | undefined;
3569
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3570
+ uid: string;
3571
+ name: string;
3572
+ description: string;
3573
+ isReadOnly: boolean;
3574
+ collections: string[];
3575
+ environments: string[];
3576
+ activeEnvironmentId: string;
3577
+ cookies: string[];
3578
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3579
+ hotKeyConfig?: {
3580
+ modifiers: ("Meta" | "Control" | "Shift" | "Alt" | "default")[];
3581
+ hotKeys?: Partial<Record<"" | "/" | "Space" | "Backspace" | "Tab" | "Enter" | "Escape" | "ArrowDown" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "End" | "Home" | "PageDown" | "PageUp" | "Delete" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "*" | "+" | "-" | "." | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "F10" | "F11" | "F12" | ";" | "=" | "," | "`" | "[" | "\\" | "]", {
3582
+ event: "closeModal" | "navigateSearchResultsDown" | "selectSearchResult" | "navigateSearchResultsUp" | "openCommandPalette" | "openCommandPaletteRequest" | "toggleSidebar" | "addTopNav" | "closeTopNav" | "navigateTopNavLeft" | "navigateTopNavRight" | "focusAddressBar" | "jumpToTab" | "jumpToLastTab" | "focusRequestSearch";
3583
+ modifiers?: ("Meta" | "Control" | "Shift" | "Alt" | "default")[] | undefined;
3584
+ }>> | undefined;
3585
+ } | undefined;
3586
+ proxyUrl?: string | undefined;
3587
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3588
+ undo: (uid: string) => void;
3589
+ redo: (uid: string) => void;
3590
+ };
3591
+ };
3592
+ }>;
3593
+ //# sourceMappingURL=create-api-client-web.d.ts.map