@scalar/api-client 2.0.30 → 2.0.31

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 (65) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  3. package/dist/components/CodeInput/CodeInput.vue.d.ts +2 -2
  4. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  5. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  6. package/dist/components/CodeInput/CodeInput.vue2.js +62 -47
  7. package/dist/components/CodeInput/codeDropdownWidget.d.ts +9 -1
  8. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -1
  9. package/dist/components/CodeInput/codeDropdownWidget.js +62 -51
  10. package/dist/components/CodeInput/codeVariableWidget.d.ts +10 -1
  11. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  12. package/dist/components/CodeInput/codeVariableWidget.js +63 -56
  13. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +1 -1
  14. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  15. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  16. package/dist/components/TopNav/TopNav.vue.js +1 -1
  17. package/dist/components/TopNav/TopNav.vue2.js +65 -34
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +8 -8
  21. package/dist/layouts/App/create-api-client-app.d.ts +2966 -0
  22. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -0
  23. package/dist/layouts/App/create-api-client-app.js +18 -0
  24. package/dist/layouts/App/index.d.ts +1 -1
  25. package/dist/layouts/App/index.d.ts.map +1 -1
  26. package/dist/layouts/App/index.js +1 -1
  27. package/dist/layouts/Modal/ApiClientModal.vue.d.ts +1 -17
  28. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  29. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  30. package/dist/layouts/Modal/ApiClientModal.vue2.js +20 -24
  31. package/dist/layouts/Modal/api-client-modal.d.ts +5905 -57
  32. package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -1
  33. package/dist/layouts/Modal/api-client-modal.js +27 -129
  34. package/dist/libs/create-client.d.ts +3025 -0
  35. package/dist/libs/create-client.d.ts.map +1 -0
  36. package/dist/libs/create-client.js +147 -0
  37. package/dist/libs/index.d.ts +1 -0
  38. package/dist/libs/index.d.ts.map +1 -1
  39. package/dist/libs/index.js +11 -9
  40. package/dist/router.d.ts +4 -20
  41. package/dist/router.d.ts.map +1 -1
  42. package/dist/router.js +28 -44
  43. package/dist/store/index.d.ts +2 -0
  44. package/dist/store/index.d.ts.map +1 -0
  45. package/dist/store/index.js +5 -0
  46. package/dist/store/workspace.d.ts +3028 -603
  47. package/dist/store/workspace.d.ts.map +1 -1
  48. package/dist/store/workspace.js +454 -432
  49. package/dist/style.css +1 -1
  50. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +8 -0
  51. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  52. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +32 -31
  53. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  54. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  55. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  56. package/dist/views/Request/RequestSidebarItem.vue2.js +24 -23
  57. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  58. package/dist/views/Request/RequestSidebarItemMenu.vue.js +26 -20
  59. package/package.json +10 -6
  60. package/dist/layouts/App/createApiClientApp.d.ts +0 -16
  61. package/dist/layouts/App/createApiClientApp.d.ts.map +0 -1
  62. package/dist/layouts/App/createApiClientApp.js +0 -62
  63. package/dist/store/topNav.d.ts +0 -445
  64. package/dist/store/topNav.d.ts.map +0 -1
  65. package/dist/store/topNav.js +0 -53
@@ -0,0 +1,3025 @@
1
+ import type { AuthenticationState, SpecConfiguration } from '@scalar/oas-utils';
2
+ import { type RequestMethod } from '@scalar/oas-utils/helpers';
3
+ import type { ThemeId } from '@scalar/themes';
4
+ import { type Component } from 'vue';
5
+ import type { Router } from 'vue-router';
6
+ /** Configuration options for the Scalar API client */
7
+ export type ClientConfiguration = {
8
+ /** The Swagger/OpenAPI spec to render */
9
+ spec?: SpecConfiguration;
10
+ /** Pass in a proxy to the API client */
11
+ proxyUrl?: string;
12
+ /** Pass in a theme API client */
13
+ themeId?: ThemeId;
14
+ /** Whether to show the sidebar */
15
+ showSidebar?: boolean;
16
+ /** Whether dark mode is on or off initially (light mode) */
17
+ /** Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k) */
18
+ searchHotKey?: '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';
19
+ };
20
+ export type OpenClientPayload = {
21
+ path: string;
22
+ method: (RequestMethod | Lowercase<RequestMethod>) & string;
23
+ };
24
+ type CreateApiClientParams = {
25
+ /** Element to mount the references to */
26
+ el: HTMLElement | null;
27
+ /** Main vue app component to create the vue app */
28
+ appComponent: Component;
29
+ /** Configuration object for Scalar References */
30
+ configuration: Omit<ClientConfiguration, 'spec'>;
31
+ /** Read only version of the client app */
32
+ isReadOnly?: boolean;
33
+ /** Persist the workspace to localStoragfe */
34
+ persistData?: boolean;
35
+ /**
36
+ * Will attempt to mount the references immediately
37
+ * For SSR this may need to be blocked and done client side
38
+ */
39
+ mountOnInitialize?: boolean;
40
+ /** Instance of a vue router */
41
+ router: Router;
42
+ };
43
+ /**
44
+ * Sync method to create the api client vue app and store
45
+ *
46
+ * This method will NOT import the spec, just create the modal so you must use update/updateConfig before opening
47
+ */
48
+ export declare const createApiClient: ({ el, appComponent, configuration, isReadOnly, persistData, mountOnInitialize, router, }: CreateApiClientParams) => {
49
+ /** The vue app instance for the modal, be careful with this */
50
+ app: import("vue").App<Element>;
51
+ /** Update the API client config */
52
+ updateConfig(newConfig: ClientConfiguration, mergeConfigs?: boolean): void;
53
+ /**
54
+ * TODO this is just temporary for the modal, we'll put in a proper solution later
55
+ * Here we update the currently selected serverUrl
56
+ */
57
+ updateServerUrl: (serverUrl: string) => void;
58
+ /**
59
+ * Update the security schemes
60
+ * maps the references useAuthenticationStore to the client auth
61
+ */
62
+ updateAuth: (auth: AuthenticationState) => void;
63
+ /** Update the spec file, this will re-parse it and clear your store */
64
+ updateSpec: (spec: SpecConfiguration) => Promise<void>;
65
+ /** Route to a method + path */
66
+ route: (params: OpenClientPayload) => void;
67
+ /** Open the API client modal and optionally route to a request */
68
+ open: (payload?: OpenClientPayload) => void;
69
+ /** Mount the references to a given element */
70
+ mount: (mountingEl?: HTMLElement | null) => void;
71
+ /** State for controlling the modal */
72
+ modalState: {
73
+ open: boolean;
74
+ show: () => void;
75
+ hide: () => void;
76
+ };
77
+ store: {
78
+ workspaces: Record<string, {
79
+ uid: string;
80
+ description: string;
81
+ name: string;
82
+ isReadOnly: boolean;
83
+ collectionUids: string[];
84
+ environmentUids: string[];
85
+ cookieUids: string[];
86
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
87
+ proxyUrl?: string | undefined;
88
+ }>;
89
+ collections: Record<string, {
90
+ uid: string;
91
+ spec: {
92
+ openapi: string;
93
+ security: Record<string, string[]>[];
94
+ serverUids: string[];
95
+ tags: {
96
+ name: string;
97
+ description?: string | undefined;
98
+ externalDocs?: {
99
+ url: string;
100
+ description?: string | undefined;
101
+ } | undefined;
102
+ }[];
103
+ externalDocs?: {
104
+ url: string;
105
+ description?: string | undefined;
106
+ } | undefined;
107
+ info?: {
108
+ title: string;
109
+ version: string;
110
+ description?: string | undefined;
111
+ summary?: string | undefined;
112
+ termsOfService?: string | undefined;
113
+ contact?: {
114
+ name?: string | undefined;
115
+ url?: string | undefined;
116
+ email?: string | undefined;
117
+ } | undefined;
118
+ license?: {
119
+ name: string;
120
+ identifier?: string | undefined;
121
+ url?: string | undefined;
122
+ } | undefined;
123
+ } | undefined;
124
+ };
125
+ selectedSecuritySchemes: {
126
+ uid: string;
127
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
128
+ }[];
129
+ selectedServerUid: string;
130
+ childUids: string[];
131
+ }>;
132
+ cookies: Record<string, {
133
+ value: string;
134
+ uid: string;
135
+ name: string;
136
+ sameSite: "Lax" | "Strict" | "None";
137
+ path?: string | undefined;
138
+ domain?: string | undefined;
139
+ expires?: Date | undefined;
140
+ httpOnly?: boolean | undefined;
141
+ maxAge?: number | undefined;
142
+ partitioned?: boolean | undefined;
143
+ secure?: boolean | undefined;
144
+ }>;
145
+ environments: Record<string, {
146
+ uid: string;
147
+ name: string;
148
+ color: string;
149
+ raw: string;
150
+ parsed: {
151
+ value: string;
152
+ key: string;
153
+ }[];
154
+ isDefault?: boolean | undefined;
155
+ }>;
156
+ folders: Record<string, {
157
+ uid: string;
158
+ name: string;
159
+ childUids: string[];
160
+ description?: string | undefined;
161
+ }>;
162
+ requestExamples: Record<string, {
163
+ uid: string;
164
+ name: string;
165
+ url: string;
166
+ parameters: {
167
+ path: {
168
+ value: string;
169
+ key: string;
170
+ enabled: boolean;
171
+ minimum?: number | undefined;
172
+ type?: string | undefined;
173
+ maximum?: number | undefined;
174
+ default?: any;
175
+ description?: string | undefined;
176
+ enum?: string[] | undefined;
177
+ required?: boolean | undefined;
178
+ file?: File | undefined;
179
+ refUid?: string | undefined;
180
+ format?: string | undefined;
181
+ nullable?: boolean | undefined;
182
+ }[];
183
+ query: {
184
+ value: string;
185
+ key: string;
186
+ enabled: boolean;
187
+ minimum?: number | undefined;
188
+ type?: string | undefined;
189
+ maximum?: number | undefined;
190
+ default?: any;
191
+ description?: string | undefined;
192
+ enum?: string[] | undefined;
193
+ required?: boolean | undefined;
194
+ file?: File | undefined;
195
+ refUid?: string | undefined;
196
+ format?: string | undefined;
197
+ nullable?: boolean | undefined;
198
+ }[];
199
+ cookies: {
200
+ value: string;
201
+ key: string;
202
+ enabled: boolean;
203
+ minimum?: number | undefined;
204
+ type?: string | undefined;
205
+ maximum?: number | undefined;
206
+ default?: any;
207
+ description?: string | undefined;
208
+ enum?: string[] | undefined;
209
+ required?: boolean | undefined;
210
+ file?: File | undefined;
211
+ refUid?: string | undefined;
212
+ format?: string | undefined;
213
+ nullable?: boolean | undefined;
214
+ }[];
215
+ headers: {
216
+ value: string;
217
+ key: string;
218
+ enabled: boolean;
219
+ minimum?: number | undefined;
220
+ type?: string | undefined;
221
+ maximum?: number | undefined;
222
+ default?: any;
223
+ description?: string | undefined;
224
+ enum?: string[] | undefined;
225
+ required?: boolean | undefined;
226
+ file?: File | undefined;
227
+ refUid?: string | undefined;
228
+ format?: string | undefined;
229
+ nullable?: boolean | undefined;
230
+ }[];
231
+ };
232
+ requestUid: string;
233
+ body: {
234
+ raw: {
235
+ value: string;
236
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
237
+ };
238
+ formData: {
239
+ value: {
240
+ value: string;
241
+ key: string;
242
+ enabled: boolean;
243
+ minimum?: number | undefined;
244
+ type?: string | undefined;
245
+ maximum?: number | undefined;
246
+ default?: any;
247
+ description?: string | undefined;
248
+ enum?: string[] | undefined;
249
+ required?: boolean | undefined;
250
+ file?: File | undefined;
251
+ refUid?: string | undefined;
252
+ format?: string | undefined;
253
+ nullable?: boolean | undefined;
254
+ }[];
255
+ encoding: "form-data" | "urlencoded";
256
+ };
257
+ activeBody: "raw" | "formData" | "binary";
258
+ binary?: File | undefined;
259
+ };
260
+ auth: Record<string, any>;
261
+ }>;
262
+ requests: Record<string, import("@scalar/oas-utils/entities/workspace/spec").Request>;
263
+ servers: Record<string, {
264
+ uid: string;
265
+ url: string;
266
+ description?: string | undefined;
267
+ variables?: Record<string, {
268
+ default: string;
269
+ uid: string;
270
+ value?: string | undefined;
271
+ description?: string | undefined;
272
+ enum?: string[] | undefined;
273
+ }> | null | undefined;
274
+ }>;
275
+ securitySchemes: Record<string, {
276
+ type: "apiKey";
277
+ value: string;
278
+ uid: string;
279
+ name: string;
280
+ in: "query" | "header" | "cookie";
281
+ description?: string | undefined;
282
+ } | {
283
+ type: "http";
284
+ value: string;
285
+ uid: string;
286
+ scheme: "basic" | "bearer";
287
+ bearerFormat: string;
288
+ secondValue: string;
289
+ description?: string | undefined;
290
+ } | {
291
+ type: "oauth2";
292
+ uid: string;
293
+ flows: {
294
+ implicit?: {
295
+ authorizationUrl: string;
296
+ selectedScopes: string[];
297
+ token: string;
298
+ refreshUrl?: string | undefined;
299
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
300
+ } | undefined;
301
+ password?: {
302
+ value: string;
303
+ secondValue: string;
304
+ selectedScopes: string[];
305
+ token: string;
306
+ tokenUrl: string;
307
+ clientSecret: string;
308
+ refreshUrl?: string | undefined;
309
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
310
+ } | undefined;
311
+ clientCredentials?: {
312
+ selectedScopes: string[];
313
+ token: string;
314
+ tokenUrl: string;
315
+ clientSecret: string;
316
+ refreshUrl?: string | undefined;
317
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
318
+ } | undefined;
319
+ authorizationCode?: {
320
+ authorizationUrl: string;
321
+ selectedScopes: string[];
322
+ token: string;
323
+ tokenUrl: string;
324
+ clientSecret: string;
325
+ refreshUrl?: string | undefined;
326
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
327
+ } | undefined;
328
+ };
329
+ clientId: string;
330
+ redirectUri: string;
331
+ description?: string | undefined;
332
+ } | {
333
+ type: "openIdConnect";
334
+ uid: string;
335
+ openIdConnectUrl: string;
336
+ description?: string | undefined;
337
+ }>;
338
+ activeCollection: import("vue").ComputedRef<{
339
+ uid: string;
340
+ spec: {
341
+ openapi: string;
342
+ security: Record<string, string[]>[];
343
+ serverUids: string[];
344
+ tags: {
345
+ name: string;
346
+ description?: string | undefined;
347
+ externalDocs?: {
348
+ url: string;
349
+ description?: string | undefined;
350
+ } | undefined;
351
+ }[];
352
+ externalDocs?: {
353
+ url: string;
354
+ description?: string | undefined;
355
+ } | undefined;
356
+ info?: {
357
+ title: string;
358
+ version: string;
359
+ description?: string | undefined;
360
+ summary?: string | undefined;
361
+ termsOfService?: string | undefined;
362
+ contact?: {
363
+ name?: string | undefined;
364
+ url?: string | undefined;
365
+ email?: string | undefined;
366
+ } | undefined;
367
+ license?: {
368
+ name: string;
369
+ identifier?: string | undefined;
370
+ url?: string | undefined;
371
+ } | undefined;
372
+ } | undefined;
373
+ };
374
+ selectedSecuritySchemes: {
375
+ uid: string;
376
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
377
+ }[];
378
+ selectedServerUid: string;
379
+ childUids: string[];
380
+ } | null>;
381
+ activeCookieId: import("vue").ComputedRef<string | undefined>;
382
+ activeExample: import("vue").ComputedRef<{
383
+ uid: string;
384
+ name: string;
385
+ url: string;
386
+ parameters: {
387
+ path: {
388
+ value: string;
389
+ key: string;
390
+ enabled: boolean;
391
+ minimum?: number | undefined;
392
+ type?: string | undefined;
393
+ maximum?: number | undefined;
394
+ default?: any;
395
+ description?: string | undefined;
396
+ enum?: string[] | undefined;
397
+ required?: boolean | undefined;
398
+ file?: File | undefined;
399
+ refUid?: string | undefined;
400
+ format?: string | undefined;
401
+ nullable?: boolean | undefined;
402
+ }[];
403
+ query: {
404
+ value: string;
405
+ key: string;
406
+ enabled: boolean;
407
+ minimum?: number | undefined;
408
+ type?: string | undefined;
409
+ maximum?: number | undefined;
410
+ default?: any;
411
+ description?: string | undefined;
412
+ enum?: string[] | undefined;
413
+ required?: boolean | undefined;
414
+ file?: File | undefined;
415
+ refUid?: string | undefined;
416
+ format?: string | undefined;
417
+ nullable?: boolean | undefined;
418
+ }[];
419
+ cookies: {
420
+ value: string;
421
+ key: string;
422
+ enabled: boolean;
423
+ minimum?: number | undefined;
424
+ type?: string | undefined;
425
+ maximum?: number | undefined;
426
+ default?: any;
427
+ description?: string | undefined;
428
+ enum?: string[] | undefined;
429
+ required?: boolean | undefined;
430
+ file?: File | undefined;
431
+ refUid?: string | undefined;
432
+ format?: string | undefined;
433
+ nullable?: boolean | undefined;
434
+ }[];
435
+ headers: {
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
+ description?: string | undefined;
444
+ enum?: string[] | undefined;
445
+ required?: boolean | undefined;
446
+ file?: File | undefined;
447
+ refUid?: string | undefined;
448
+ format?: string | undefined;
449
+ nullable?: boolean | undefined;
450
+ }[];
451
+ };
452
+ requestUid: string;
453
+ body: {
454
+ raw: {
455
+ value: string;
456
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
457
+ };
458
+ formData: {
459
+ value: {
460
+ value: string;
461
+ key: string;
462
+ enabled: boolean;
463
+ minimum?: number | undefined;
464
+ type?: string | undefined;
465
+ maximum?: number | undefined;
466
+ default?: any;
467
+ description?: string | undefined;
468
+ enum?: string[] | undefined;
469
+ required?: boolean | undefined;
470
+ file?: File | undefined;
471
+ refUid?: string | undefined;
472
+ format?: string | undefined;
473
+ nullable?: boolean | undefined;
474
+ }[];
475
+ encoding: "form-data" | "urlencoded";
476
+ };
477
+ activeBody: "raw" | "formData" | "binary";
478
+ binary?: File | undefined;
479
+ };
480
+ auth: Record<string, any>;
481
+ }>;
482
+ activeRequest: import("vue").ComputedRef<import("@scalar/oas-utils/entities/workspace/spec").Request>;
483
+ activeRouterParams: import("vue").ComputedRef<{
484
+ collection: string;
485
+ environment: string;
486
+ request: string;
487
+ examples: string;
488
+ schema: string;
489
+ cookies: string;
490
+ servers: string;
491
+ workspace: string;
492
+ }>;
493
+ activeSecurityRequirements: import("vue").ComputedRef<Record<string, string[]>[]>;
494
+ activeSecurityScheme: import("vue").ComputedRef<{
495
+ flow: {
496
+ value: string;
497
+ secondValue: string;
498
+ selectedScopes: string[];
499
+ token: string;
500
+ tokenUrl: string;
501
+ clientSecret: string;
502
+ refreshUrl?: string | undefined;
503
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
504
+ } | {
505
+ authorizationUrl: string;
506
+ selectedScopes: string[];
507
+ token: string;
508
+ refreshUrl?: string | undefined;
509
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
510
+ } | {
511
+ selectedScopes: string[];
512
+ token: string;
513
+ tokenUrl: string;
514
+ clientSecret: string;
515
+ refreshUrl?: string | undefined;
516
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
517
+ } | {
518
+ authorizationUrl: string;
519
+ selectedScopes: string[];
520
+ token: string;
521
+ tokenUrl: string;
522
+ clientSecret: string;
523
+ refreshUrl?: string | undefined;
524
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
525
+ } | undefined;
526
+ scheme: {
527
+ type: "apiKey";
528
+ value: string;
529
+ uid: string;
530
+ name: string;
531
+ in: "query" | "header" | "cookie";
532
+ description?: string | undefined;
533
+ } | {
534
+ type: "http";
535
+ value: string;
536
+ uid: string;
537
+ scheme: "basic" | "bearer";
538
+ bearerFormat: string;
539
+ secondValue: string;
540
+ description?: string | undefined;
541
+ } | {
542
+ type: "oauth2";
543
+ uid: string;
544
+ flows: {
545
+ implicit?: {
546
+ authorizationUrl: string;
547
+ selectedScopes: string[];
548
+ token: string;
549
+ refreshUrl?: string | undefined;
550
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
551
+ } | undefined;
552
+ password?: {
553
+ value: string;
554
+ secondValue: string;
555
+ selectedScopes: string[];
556
+ token: string;
557
+ tokenUrl: string;
558
+ clientSecret: string;
559
+ refreshUrl?: string | undefined;
560
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
561
+ } | undefined;
562
+ clientCredentials?: {
563
+ selectedScopes: string[];
564
+ token: string;
565
+ tokenUrl: string;
566
+ clientSecret: string;
567
+ refreshUrl?: string | undefined;
568
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
569
+ } | undefined;
570
+ authorizationCode?: {
571
+ authorizationUrl: string;
572
+ selectedScopes: string[];
573
+ token: string;
574
+ tokenUrl: string;
575
+ clientSecret: string;
576
+ refreshUrl?: string | undefined;
577
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
578
+ } | undefined;
579
+ };
580
+ clientId: string;
581
+ redirectUri: string;
582
+ description?: string | undefined;
583
+ } | {
584
+ type: "openIdConnect";
585
+ uid: string;
586
+ openIdConnectUrl: string;
587
+ description?: string | undefined;
588
+ };
589
+ } | {
590
+ flow?: undefined;
591
+ scheme: {
592
+ type: "apiKey";
593
+ value: string;
594
+ uid: string;
595
+ name: string;
596
+ in: "query" | "header" | "cookie";
597
+ description?: string | undefined;
598
+ } | {
599
+ type: "http";
600
+ value: string;
601
+ uid: string;
602
+ scheme: "basic" | "bearer";
603
+ bearerFormat: string;
604
+ secondValue: string;
605
+ description?: string | undefined;
606
+ } | {
607
+ type: "oauth2";
608
+ uid: string;
609
+ flows: {
610
+ implicit?: {
611
+ authorizationUrl: string;
612
+ selectedScopes: string[];
613
+ token: string;
614
+ refreshUrl?: string | undefined;
615
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
616
+ } | undefined;
617
+ password?: {
618
+ value: string;
619
+ secondValue: string;
620
+ selectedScopes: string[];
621
+ token: string;
622
+ tokenUrl: string;
623
+ clientSecret: string;
624
+ refreshUrl?: string | undefined;
625
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
626
+ } | undefined;
627
+ clientCredentials?: {
628
+ selectedScopes: string[];
629
+ token: string;
630
+ tokenUrl: string;
631
+ clientSecret: string;
632
+ refreshUrl?: string | undefined;
633
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
634
+ } | undefined;
635
+ authorizationCode?: {
636
+ authorizationUrl: string;
637
+ selectedScopes: string[];
638
+ token: string;
639
+ tokenUrl: string;
640
+ clientSecret: string;
641
+ refreshUrl?: string | undefined;
642
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
643
+ } | undefined;
644
+ };
645
+ clientId: string;
646
+ redirectUri: string;
647
+ description?: string | undefined;
648
+ } | {
649
+ type: "openIdConnect";
650
+ uid: string;
651
+ openIdConnectUrl: string;
652
+ description?: string | undefined;
653
+ };
654
+ } | undefined>;
655
+ activeServer: import("vue").ComputedRef<{
656
+ uid: string;
657
+ url: string;
658
+ description?: string | undefined;
659
+ variables?: Record<string, {
660
+ default: string;
661
+ uid: string;
662
+ value?: string | undefined;
663
+ description?: string | undefined;
664
+ enum?: string[] | undefined;
665
+ }> | null | undefined;
666
+ } | null>;
667
+ activeWorkspace: import("vue").ComputedRef<{
668
+ uid: string;
669
+ description: string;
670
+ name: string;
671
+ isReadOnly: boolean;
672
+ collectionUids: string[];
673
+ environmentUids: string[];
674
+ cookieUids: string[];
675
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
676
+ proxyUrl?: string | undefined;
677
+ }>;
678
+ activeWorkspaceCollections: import("vue").ComputedRef<{
679
+ uid: string;
680
+ spec: {
681
+ openapi: string;
682
+ security: Record<string, string[]>[];
683
+ serverUids: string[];
684
+ tags: {
685
+ name: string;
686
+ description?: string | undefined;
687
+ externalDocs?: {
688
+ url: string;
689
+ description?: string | undefined;
690
+ } | undefined;
691
+ }[];
692
+ externalDocs?: {
693
+ url: string;
694
+ description?: string | undefined;
695
+ } | undefined;
696
+ info?: {
697
+ title: string;
698
+ version: string;
699
+ description?: string | undefined;
700
+ summary?: string | undefined;
701
+ termsOfService?: string | undefined;
702
+ contact?: {
703
+ name?: string | undefined;
704
+ url?: string | undefined;
705
+ email?: string | undefined;
706
+ } | undefined;
707
+ license?: {
708
+ name: string;
709
+ identifier?: string | undefined;
710
+ url?: string | undefined;
711
+ } | undefined;
712
+ } | undefined;
713
+ };
714
+ selectedSecuritySchemes: {
715
+ uid: string;
716
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
717
+ }[];
718
+ selectedServerUid: string;
719
+ childUids: string[];
720
+ }[]>;
721
+ activeWorkspaceServers: import("vue").ComputedRef<{
722
+ uid: string;
723
+ url: string;
724
+ description?: string | undefined;
725
+ variables?: Record<string, {
726
+ default: string;
727
+ uid: string;
728
+ value?: string | undefined;
729
+ description?: string | undefined;
730
+ enum?: string[] | undefined;
731
+ }> | null | undefined;
732
+ }[]>;
733
+ activeParsedEnvironments: import("vue").ComputedRef<({
734
+ key: string;
735
+ value: string;
736
+ } | {
737
+ _scalarEnvId: any;
738
+ key: string;
739
+ value: unknown;
740
+ })[]>;
741
+ activeWorkspaceRequests: import("vue").ComputedRef<import("@scalar/oas-utils/entities/workspace/spec").Request[]>;
742
+ modalState: {
743
+ open: boolean;
744
+ show: () => void;
745
+ hide: () => void;
746
+ };
747
+ isReadOnly: import("vue").ComputedRef<boolean>;
748
+ router: Router;
749
+ findRequestFolders: (uid: string, foldersToOpen?: string[]) => string[];
750
+ importSpecFile: (_spec: string | import("@scalar/openapi-parser").AnyObject, workspaceUid?: string) => Promise<void>;
751
+ importSpecFromUrl: (url: string, proxy?: string) => Promise<void>;
752
+ cookieMutators: {
753
+ add: (item: {
754
+ value: string;
755
+ uid: string;
756
+ name: string;
757
+ sameSite: "Lax" | "Strict" | "None";
758
+ path?: string | undefined;
759
+ domain?: string | undefined;
760
+ expires?: Date | undefined;
761
+ httpOnly?: boolean | undefined;
762
+ maxAge?: number | undefined;
763
+ partitioned?: boolean | undefined;
764
+ secure?: boolean | undefined;
765
+ }) => void;
766
+ delete: (uid: string) => void;
767
+ set: (item: {
768
+ value: string;
769
+ uid: string;
770
+ name: string;
771
+ sameSite: "Lax" | "Strict" | "None";
772
+ path?: string | undefined;
773
+ domain?: string | undefined;
774
+ expires?: Date | undefined;
775
+ httpOnly?: boolean | undefined;
776
+ maxAge?: number | undefined;
777
+ partitioned?: boolean | undefined;
778
+ secure?: boolean | undefined;
779
+ }) => void;
780
+ edit: <P extends "value" | "name" | "path" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned">(uid: string, path: P, value: P extends "value" | "name" | "path" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned" ? {
781
+ value: string;
782
+ uid: string;
783
+ name: string;
784
+ sameSite: "Lax" | "Strict" | "None";
785
+ path?: string | undefined;
786
+ domain?: string | undefined;
787
+ expires?: Date | undefined;
788
+ httpOnly?: boolean | undefined;
789
+ maxAge?: number | undefined;
790
+ partitioned?: boolean | undefined;
791
+ secure?: boolean | undefined;
792
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "name" | "path" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned" ? R extends import("@scalar/object-utils/nested").Path<{
793
+ value: string;
794
+ uid: string;
795
+ name: string;
796
+ sameSite: "Lax" | "Strict" | "None";
797
+ path?: string | undefined;
798
+ domain?: string | undefined;
799
+ expires?: Date | undefined;
800
+ httpOnly?: boolean | undefined;
801
+ maxAge?: number | undefined;
802
+ partitioned?: boolean | undefined;
803
+ secure?: boolean | undefined;
804
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
805
+ value: string;
806
+ uid: string;
807
+ name: string;
808
+ sameSite: "Lax" | "Strict" | "None";
809
+ path?: string | undefined;
810
+ domain?: string | undefined;
811
+ expires?: Date | undefined;
812
+ httpOnly?: boolean | undefined;
813
+ maxAge?: number | undefined;
814
+ partitioned?: boolean | undefined;
815
+ secure?: boolean | undefined;
816
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
817
+ untrackedEdit: <P extends "value" | "name" | "path" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned">(uid: string, path: P, value: P extends "value" | "name" | "path" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned" ? {
818
+ value: string;
819
+ uid: string;
820
+ name: string;
821
+ sameSite: "Lax" | "Strict" | "None";
822
+ path?: string | undefined;
823
+ domain?: string | undefined;
824
+ expires?: Date | undefined;
825
+ httpOnly?: boolean | undefined;
826
+ maxAge?: number | undefined;
827
+ partitioned?: boolean | undefined;
828
+ secure?: boolean | undefined;
829
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "name" | "path" | "uid" | "sameSite" | "secure" | "domain" | "expires" | "httpOnly" | "maxAge" | "partitioned" ? R extends import("@scalar/object-utils/nested").Path<{
830
+ value: string;
831
+ uid: string;
832
+ name: string;
833
+ sameSite: "Lax" | "Strict" | "None";
834
+ path?: string | undefined;
835
+ domain?: string | undefined;
836
+ expires?: Date | undefined;
837
+ httpOnly?: boolean | undefined;
838
+ maxAge?: number | undefined;
839
+ partitioned?: boolean | undefined;
840
+ secure?: boolean | undefined;
841
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
842
+ value: string;
843
+ uid: string;
844
+ name: string;
845
+ sameSite: "Lax" | "Strict" | "None";
846
+ path?: string | undefined;
847
+ domain?: string | undefined;
848
+ expires?: Date | undefined;
849
+ httpOnly?: boolean | undefined;
850
+ maxAge?: number | undefined;
851
+ partitioned?: boolean | undefined;
852
+ secure?: boolean | undefined;
853
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
854
+ undo: (uid: string) => void;
855
+ redo: (uid: string) => void;
856
+ };
857
+ collectionMutators: {
858
+ rawAdd: (item: {
859
+ uid: string;
860
+ spec: {
861
+ openapi: string;
862
+ security: Record<string, string[]>[];
863
+ serverUids: string[];
864
+ tags: {
865
+ name: string;
866
+ description?: string | undefined;
867
+ externalDocs?: {
868
+ url: string;
869
+ description?: string | undefined;
870
+ } | undefined;
871
+ }[];
872
+ externalDocs?: {
873
+ url: string;
874
+ description?: string | undefined;
875
+ } | undefined;
876
+ info?: {
877
+ title: string;
878
+ version: string;
879
+ description?: string | undefined;
880
+ summary?: string | undefined;
881
+ termsOfService?: string | undefined;
882
+ contact?: {
883
+ name?: string | undefined;
884
+ url?: string | undefined;
885
+ email?: string | undefined;
886
+ } | undefined;
887
+ license?: {
888
+ name: string;
889
+ identifier?: string | undefined;
890
+ url?: string | undefined;
891
+ } | undefined;
892
+ } | undefined;
893
+ };
894
+ selectedSecuritySchemes: {
895
+ uid: string;
896
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
897
+ }[];
898
+ selectedServerUid: string;
899
+ childUids: string[];
900
+ }) => void;
901
+ add: (payload: import("@scalar/oas-utils/entities/workspace/collection").CollectionPayload, workspaceUid: string) => {
902
+ uid: string;
903
+ spec: {
904
+ openapi: string;
905
+ security: Record<string, string[]>[];
906
+ serverUids: string[];
907
+ tags: {
908
+ name: string;
909
+ description?: string | undefined;
910
+ externalDocs?: {
911
+ url: string;
912
+ description?: string | undefined;
913
+ } | undefined;
914
+ }[];
915
+ externalDocs?: {
916
+ url: string;
917
+ description?: string | undefined;
918
+ } | undefined;
919
+ info?: {
920
+ title: string;
921
+ version: string;
922
+ description?: string | undefined;
923
+ summary?: string | undefined;
924
+ termsOfService?: string | undefined;
925
+ contact?: {
926
+ name?: string | undefined;
927
+ url?: string | undefined;
928
+ email?: string | undefined;
929
+ } | undefined;
930
+ license?: {
931
+ name: string;
932
+ identifier?: string | undefined;
933
+ url?: string | undefined;
934
+ } | undefined;
935
+ } | undefined;
936
+ };
937
+ selectedSecuritySchemes: {
938
+ uid: string;
939
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
940
+ }[];
941
+ selectedServerUid: string;
942
+ childUids: string[];
943
+ };
944
+ delete: (collectionUid: string) => void;
945
+ set: (item: {
946
+ uid: string;
947
+ spec: {
948
+ openapi: string;
949
+ security: Record<string, string[]>[];
950
+ serverUids: string[];
951
+ tags: {
952
+ name: string;
953
+ description?: string | undefined;
954
+ externalDocs?: {
955
+ url: string;
956
+ description?: string | undefined;
957
+ } | undefined;
958
+ }[];
959
+ externalDocs?: {
960
+ url: string;
961
+ description?: string | undefined;
962
+ } | undefined;
963
+ info?: {
964
+ title: string;
965
+ version: string;
966
+ description?: string | undefined;
967
+ summary?: string | undefined;
968
+ termsOfService?: string | undefined;
969
+ contact?: {
970
+ name?: string | undefined;
971
+ url?: string | undefined;
972
+ email?: string | undefined;
973
+ } | undefined;
974
+ license?: {
975
+ name: string;
976
+ identifier?: string | undefined;
977
+ url?: string | undefined;
978
+ } | undefined;
979
+ } | undefined;
980
+ };
981
+ selectedSecuritySchemes: {
982
+ uid: string;
983
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
984
+ }[];
985
+ selectedServerUid: string;
986
+ childUids: string[];
987
+ }) => void;
988
+ edit: <P extends "uid" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | "childUids" | "spec.info" | "spec.openapi" | "spec.security" | "spec.serverUids" | "spec.tags" | "spec.externalDocs" | "spec.info.summary" | "spec.info.title" | "spec.info.description" | "spec.info.version" | "spec.info.termsOfService" | "spec.info.contact" | "spec.info.license" | "spec.info.contact.name" | "spec.info.contact.email" | "spec.info.contact.url" | "spec.info.license.name" | "spec.info.license.url" | "spec.info.license.identifier" | `spec.security.${number}` | `spec.security.${number}.${string}` | `spec.serverUids.${number}` | "spec.externalDocs.url" | "spec.externalDocs.description" | `spec.tags.${number}` | `spec.tags.${number}.name` | `spec.tags.${number}.description` | `spec.tags.${number}.externalDocs` | `spec.tags.${number}.externalDocs.url` | `spec.tags.${number}.externalDocs.description` | `selectedSecuritySchemes.${number}` | `selectedSecuritySchemes.${number}.uid` | `selectedSecuritySchemes.${number}.flowKey` | `childUids.${number}`>(uid: string, path: P, value: P extends "uid" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | "childUids" ? {
989
+ uid: string;
990
+ spec: {
991
+ openapi: string;
992
+ security: Record<string, string[]>[];
993
+ serverUids: string[];
994
+ tags: {
995
+ name: string;
996
+ description?: string | undefined;
997
+ externalDocs?: {
998
+ url: string;
999
+ description?: string | undefined;
1000
+ } | undefined;
1001
+ }[];
1002
+ externalDocs?: {
1003
+ url: string;
1004
+ description?: string | undefined;
1005
+ } | 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
+ };
1024
+ selectedSecuritySchemes: {
1025
+ uid: string;
1026
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
1027
+ }[];
1028
+ selectedServerUid: string;
1029
+ childUids: string[];
1030
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | "childUids" ? R extends import("@scalar/object-utils/nested").Path<{
1031
+ uid: string;
1032
+ spec: {
1033
+ openapi: string;
1034
+ security: Record<string, string[]>[];
1035
+ serverUids: string[];
1036
+ tags: {
1037
+ name: string;
1038
+ description?: string | undefined;
1039
+ externalDocs?: {
1040
+ url: string;
1041
+ description?: string | undefined;
1042
+ } | undefined;
1043
+ }[];
1044
+ externalDocs?: {
1045
+ url: string;
1046
+ description?: string | undefined;
1047
+ } | undefined;
1048
+ info?: {
1049
+ title: string;
1050
+ version: string;
1051
+ description?: string | undefined;
1052
+ summary?: string | undefined;
1053
+ termsOfService?: string | undefined;
1054
+ contact?: {
1055
+ name?: string | undefined;
1056
+ url?: string | undefined;
1057
+ email?: string | undefined;
1058
+ } | undefined;
1059
+ license?: {
1060
+ name: string;
1061
+ identifier?: string | undefined;
1062
+ url?: string | undefined;
1063
+ } | undefined;
1064
+ } | undefined;
1065
+ };
1066
+ selectedSecuritySchemes: {
1067
+ uid: string;
1068
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
1069
+ }[];
1070
+ selectedServerUid: string;
1071
+ childUids: string[];
1072
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1073
+ uid: string;
1074
+ spec: {
1075
+ openapi: string;
1076
+ security: Record<string, string[]>[];
1077
+ serverUids: string[];
1078
+ tags: {
1079
+ name: string;
1080
+ description?: string | undefined;
1081
+ externalDocs?: {
1082
+ url: string;
1083
+ description?: string | undefined;
1084
+ } | undefined;
1085
+ }[];
1086
+ externalDocs?: {
1087
+ url: string;
1088
+ description?: string | undefined;
1089
+ } | undefined;
1090
+ info?: {
1091
+ title: string;
1092
+ version: string;
1093
+ description?: string | undefined;
1094
+ summary?: string | undefined;
1095
+ termsOfService?: string | undefined;
1096
+ contact?: {
1097
+ name?: string | undefined;
1098
+ url?: string | undefined;
1099
+ email?: string | undefined;
1100
+ } | undefined;
1101
+ license?: {
1102
+ name: string;
1103
+ identifier?: string | undefined;
1104
+ url?: string | undefined;
1105
+ } | undefined;
1106
+ } | undefined;
1107
+ };
1108
+ selectedSecuritySchemes: {
1109
+ uid: string;
1110
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
1111
+ }[];
1112
+ selectedServerUid: string;
1113
+ childUids: string[];
1114
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1115
+ untrackedEdit: <P extends "uid" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | "childUids" | "spec.info" | "spec.openapi" | "spec.security" | "spec.serverUids" | "spec.tags" | "spec.externalDocs" | "spec.info.summary" | "spec.info.title" | "spec.info.description" | "spec.info.version" | "spec.info.termsOfService" | "spec.info.contact" | "spec.info.license" | "spec.info.contact.name" | "spec.info.contact.email" | "spec.info.contact.url" | "spec.info.license.name" | "spec.info.license.url" | "spec.info.license.identifier" | `spec.security.${number}` | `spec.security.${number}.${string}` | `spec.serverUids.${number}` | "spec.externalDocs.url" | "spec.externalDocs.description" | `spec.tags.${number}` | `spec.tags.${number}.name` | `spec.tags.${number}.description` | `spec.tags.${number}.externalDocs` | `spec.tags.${number}.externalDocs.url` | `spec.tags.${number}.externalDocs.description` | `selectedSecuritySchemes.${number}` | `selectedSecuritySchemes.${number}.uid` | `selectedSecuritySchemes.${number}.flowKey` | `childUids.${number}`>(uid: string, path: P, value: P extends "uid" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | "childUids" ? {
1116
+ uid: string;
1117
+ spec: {
1118
+ openapi: string;
1119
+ security: Record<string, string[]>[];
1120
+ serverUids: string[];
1121
+ tags: {
1122
+ name: string;
1123
+ description?: string | undefined;
1124
+ externalDocs?: {
1125
+ url: string;
1126
+ description?: string | undefined;
1127
+ } | undefined;
1128
+ }[];
1129
+ externalDocs?: {
1130
+ url: string;
1131
+ description?: string | undefined;
1132
+ } | undefined;
1133
+ info?: {
1134
+ title: string;
1135
+ version: string;
1136
+ description?: string | undefined;
1137
+ summary?: string | undefined;
1138
+ termsOfService?: string | undefined;
1139
+ contact?: {
1140
+ name?: string | undefined;
1141
+ url?: string | undefined;
1142
+ email?: string | undefined;
1143
+ } | undefined;
1144
+ license?: {
1145
+ name: string;
1146
+ identifier?: string | undefined;
1147
+ url?: string | undefined;
1148
+ } | undefined;
1149
+ } | undefined;
1150
+ };
1151
+ selectedSecuritySchemes: {
1152
+ uid: string;
1153
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
1154
+ }[];
1155
+ selectedServerUid: string;
1156
+ childUids: string[];
1157
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "uid" | "spec" | "selectedSecuritySchemes" | "selectedServerUid" | "childUids" ? R extends import("@scalar/object-utils/nested").Path<{
1158
+ uid: string;
1159
+ spec: {
1160
+ openapi: string;
1161
+ security: Record<string, string[]>[];
1162
+ serverUids: string[];
1163
+ tags: {
1164
+ name: string;
1165
+ description?: string | undefined;
1166
+ externalDocs?: {
1167
+ url: string;
1168
+ description?: string | undefined;
1169
+ } | undefined;
1170
+ }[];
1171
+ externalDocs?: {
1172
+ url: string;
1173
+ description?: string | undefined;
1174
+ } | undefined;
1175
+ info?: {
1176
+ title: string;
1177
+ version: string;
1178
+ description?: string | undefined;
1179
+ summary?: string | undefined;
1180
+ termsOfService?: string | undefined;
1181
+ contact?: {
1182
+ name?: string | undefined;
1183
+ url?: string | undefined;
1184
+ email?: string | undefined;
1185
+ } | undefined;
1186
+ license?: {
1187
+ name: string;
1188
+ identifier?: string | undefined;
1189
+ url?: string | undefined;
1190
+ } | undefined;
1191
+ } | undefined;
1192
+ };
1193
+ selectedSecuritySchemes: {
1194
+ uid: string;
1195
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
1196
+ }[];
1197
+ selectedServerUid: string;
1198
+ childUids: string[];
1199
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1200
+ uid: string;
1201
+ spec: {
1202
+ openapi: string;
1203
+ security: Record<string, string[]>[];
1204
+ serverUids: string[];
1205
+ tags: {
1206
+ name: string;
1207
+ description?: string | undefined;
1208
+ externalDocs?: {
1209
+ url: string;
1210
+ description?: string | undefined;
1211
+ } | undefined;
1212
+ }[];
1213
+ externalDocs?: {
1214
+ url: string;
1215
+ description?: string | undefined;
1216
+ } | undefined;
1217
+ info?: {
1218
+ title: string;
1219
+ version: string;
1220
+ description?: string | undefined;
1221
+ summary?: string | undefined;
1222
+ termsOfService?: string | undefined;
1223
+ contact?: {
1224
+ name?: string | undefined;
1225
+ url?: string | undefined;
1226
+ email?: string | undefined;
1227
+ } | undefined;
1228
+ license?: {
1229
+ name: string;
1230
+ identifier?: string | undefined;
1231
+ url?: string | undefined;
1232
+ } | undefined;
1233
+ } | undefined;
1234
+ };
1235
+ selectedSecuritySchemes: {
1236
+ uid: string;
1237
+ flowKey?: "implicit" | "password" | "clientCredentials" | "authorizationCode" | undefined;
1238
+ }[];
1239
+ selectedServerUid: string;
1240
+ childUids: string[];
1241
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1242
+ undo: (uid: string) => void;
1243
+ redo: (uid: string) => void;
1244
+ };
1245
+ environmentMutators: {
1246
+ delete: (uid: string) => void;
1247
+ add: (item: {
1248
+ uid: string;
1249
+ name: string;
1250
+ color: string;
1251
+ raw: string;
1252
+ parsed: {
1253
+ value: string;
1254
+ key: string;
1255
+ }[];
1256
+ isDefault?: boolean | undefined;
1257
+ }) => void;
1258
+ set: (item: {
1259
+ uid: string;
1260
+ name: string;
1261
+ color: string;
1262
+ raw: string;
1263
+ parsed: {
1264
+ value: string;
1265
+ key: string;
1266
+ }[];
1267
+ isDefault?: boolean | undefined;
1268
+ }) => void;
1269
+ edit: <P extends "name" | "color" | "uid" | "raw" | "parsed" | "isDefault" | `parsed.${number}` | `parsed.${number}.value` | `parsed.${number}.key`>(uid: string, path: P, value: P extends "name" | "color" | "uid" | "raw" | "parsed" | "isDefault" ? {
1270
+ uid: string;
1271
+ name: string;
1272
+ color: string;
1273
+ raw: string;
1274
+ parsed: {
1275
+ value: string;
1276
+ key: string;
1277
+ }[];
1278
+ isDefault?: boolean | undefined;
1279
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "color" | "uid" | "raw" | "parsed" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
1280
+ uid: string;
1281
+ name: string;
1282
+ color: string;
1283
+ raw: string;
1284
+ parsed: {
1285
+ value: string;
1286
+ key: string;
1287
+ }[];
1288
+ isDefault?: boolean | undefined;
1289
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1290
+ uid: string;
1291
+ name: string;
1292
+ color: string;
1293
+ raw: string;
1294
+ parsed: {
1295
+ value: string;
1296
+ key: string;
1297
+ }[];
1298
+ isDefault?: boolean | undefined;
1299
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1300
+ untrackedEdit: <P extends "name" | "color" | "uid" | "raw" | "parsed" | "isDefault" | `parsed.${number}` | `parsed.${number}.value` | `parsed.${number}.key`>(uid: string, path: P, value: P extends "name" | "color" | "uid" | "raw" | "parsed" | "isDefault" ? {
1301
+ uid: string;
1302
+ name: string;
1303
+ color: string;
1304
+ raw: string;
1305
+ parsed: {
1306
+ value: string;
1307
+ key: string;
1308
+ }[];
1309
+ isDefault?: boolean | undefined;
1310
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "color" | "uid" | "raw" | "parsed" | "isDefault" ? R extends import("@scalar/object-utils/nested").Path<{
1311
+ uid: string;
1312
+ name: string;
1313
+ color: string;
1314
+ raw: string;
1315
+ parsed: {
1316
+ value: string;
1317
+ key: string;
1318
+ }[];
1319
+ isDefault?: boolean | undefined;
1320
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1321
+ uid: string;
1322
+ name: string;
1323
+ color: string;
1324
+ raw: string;
1325
+ parsed: {
1326
+ value: string;
1327
+ key: string;
1328
+ }[];
1329
+ isDefault?: boolean | undefined;
1330
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1331
+ undo: (uid: string) => void;
1332
+ redo: (uid: string) => void;
1333
+ };
1334
+ folderMutators: {
1335
+ rawAdd: (item: {
1336
+ uid: string;
1337
+ name: string;
1338
+ childUids: string[];
1339
+ description?: string | undefined;
1340
+ }) => void;
1341
+ add: (payload: import("@scalar/oas-utils/entities/workspace/folder").FolderPayload, parentUid?: string) => void;
1342
+ delete: (folderUid: string, parentUid: string) => void;
1343
+ set: (item: {
1344
+ uid: string;
1345
+ name: string;
1346
+ childUids: string[];
1347
+ description?: string | undefined;
1348
+ }) => void;
1349
+ edit: <P extends "name" | "uid" | "description" | "childUids" | `childUids.${number}`>(uid: string, path: P, value: P extends "name" | "uid" | "description" | "childUids" ? {
1350
+ uid: string;
1351
+ name: string;
1352
+ childUids: string[];
1353
+ description?: string | undefined;
1354
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "description" | "childUids" ? R extends import("@scalar/object-utils/nested").Path<{
1355
+ uid: string;
1356
+ name: string;
1357
+ childUids: string[];
1358
+ description?: string | undefined;
1359
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1360
+ uid: string;
1361
+ name: string;
1362
+ childUids: string[];
1363
+ description?: string | undefined;
1364
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1365
+ untrackedEdit: <P extends "name" | "uid" | "description" | "childUids" | `childUids.${number}`>(uid: string, path: P, value: P extends "name" | "uid" | "description" | "childUids" ? {
1366
+ uid: string;
1367
+ name: string;
1368
+ childUids: string[];
1369
+ description?: string | undefined;
1370
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "description" | "childUids" ? R extends import("@scalar/object-utils/nested").Path<{
1371
+ uid: string;
1372
+ name: string;
1373
+ childUids: string[];
1374
+ description?: string | undefined;
1375
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1376
+ uid: string;
1377
+ name: string;
1378
+ childUids: string[];
1379
+ description?: string | undefined;
1380
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1381
+ undo: (uid: string) => void;
1382
+ redo: (uid: string) => void;
1383
+ };
1384
+ requestMutators: {
1385
+ rawAdd: (item: import("@scalar/oas-utils/entities/workspace/spec").Request) => void;
1386
+ add: (payload: import("@scalar/oas-utils/entities/workspace/spec").RequestPayload, parentUid?: string, server?: import("@scalar/oas-utils/entities/workspace/server").Server) => {
1387
+ path: string;
1388
+ uid: string;
1389
+ tags: string[];
1390
+ childUids: string[];
1391
+ method: "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "TRACE" | "CONNECT" | "DELETE" | "OPTIONS";
1392
+ parameters: {
1393
+ path: Record<string, any>;
1394
+ query: Record<string, any>;
1395
+ cookies: Record<string, any>;
1396
+ headers: Record<string, any>;
1397
+ };
1398
+ ref: {
1399
+ path: string;
1400
+ isExternal: boolean;
1401
+ collectionRef?: string | undefined;
1402
+ } | null;
1403
+ history: any[];
1404
+ description?: string | undefined;
1405
+ summary?: string | undefined;
1406
+ security?: Record<string, string[]>[] | undefined;
1407
+ operationId?: string | undefined;
1408
+ requestBody?: any;
1409
+ };
1410
+ delete: (request: import("@scalar/oas-utils/entities/workspace/spec").Request, parentUid: string) => void;
1411
+ set: (item: import("@scalar/oas-utils/entities/workspace/spec").Request) => void;
1412
+ edit: <P extends "summary" | "ref" | "path" | "uid" | "description" | "parameters" | "childUids" | "security" | "tags" | "externalDocs" | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | `tags.${number}` | `childUids.${number}` | "method" | "parameters.cookies" | "parameters.path" | "parameters.query" | "parameters.headers" | "history" | "operationId" | "requestBody" | "ref.path" | "ref.isExternal" | "ref.collectionRef" | `parameters.cookies.${string}` | `parameters.path.${string}` | `parameters.query.${string}` | `parameters.headers.${string}` | `history.${number}` | `history.${number}.${string}` | `requestBody.${string}`>(uid: string, path: P, value: P extends "summary" | "ref" | "path" | "uid" | "description" | "parameters" | "childUids" | "security" | "tags" | "externalDocs" | "method" | "history" | "operationId" | "requestBody" ? import("@scalar/oas-utils/entities/workspace/spec").Request[P] : P extends `${infer K}.${infer R}` ? K extends "summary" | "ref" | "path" | "uid" | "description" | "parameters" | "childUids" | "security" | "tags" | "externalDocs" | "method" | "history" | "operationId" | "requestBody" ? R extends import("@scalar/object-utils/nested").Path<import("@scalar/oas-utils/entities/workspace/spec").Request[K]> ? import("@scalar/object-utils/nested").PathValue<import("@scalar/oas-utils/entities/workspace/spec").Request[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1413
+ untrackedEdit: <P extends "summary" | "ref" | "path" | "uid" | "description" | "parameters" | "childUids" | "security" | "tags" | "externalDocs" | `security.${number}` | `security.${number}.${string}` | "externalDocs.url" | "externalDocs.description" | `tags.${number}` | `childUids.${number}` | "method" | "parameters.cookies" | "parameters.path" | "parameters.query" | "parameters.headers" | "history" | "operationId" | "requestBody" | "ref.path" | "ref.isExternal" | "ref.collectionRef" | `parameters.cookies.${string}` | `parameters.path.${string}` | `parameters.query.${string}` | `parameters.headers.${string}` | `history.${number}` | `history.${number}.${string}` | `requestBody.${string}`>(uid: string, path: P, value: P extends "summary" | "ref" | "path" | "uid" | "description" | "parameters" | "childUids" | "security" | "tags" | "externalDocs" | "method" | "history" | "operationId" | "requestBody" ? import("@scalar/oas-utils/entities/workspace/spec").Request[P] : P extends `${infer K}.${infer R}` ? K extends "summary" | "ref" | "path" | "uid" | "description" | "parameters" | "childUids" | "security" | "tags" | "externalDocs" | "method" | "history" | "operationId" | "requestBody" ? R extends import("@scalar/object-utils/nested").Path<import("@scalar/oas-utils/entities/workspace/spec").Request[K]> ? import("@scalar/object-utils/nested").PathValue<import("@scalar/oas-utils/entities/workspace/spec").Request[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1414
+ undo: (uid: string) => void;
1415
+ redo: (uid: string) => void;
1416
+ };
1417
+ requestExampleMutators: {
1418
+ rawAdd: (item: {
1419
+ uid: string;
1420
+ name: string;
1421
+ url: string;
1422
+ parameters: {
1423
+ path: {
1424
+ value: string;
1425
+ key: string;
1426
+ enabled: boolean;
1427
+ minimum?: number | undefined;
1428
+ type?: string | undefined;
1429
+ maximum?: number | undefined;
1430
+ default?: any;
1431
+ description?: string | undefined;
1432
+ enum?: string[] | undefined;
1433
+ required?: boolean | undefined;
1434
+ file?: File | undefined;
1435
+ refUid?: string | undefined;
1436
+ format?: string | undefined;
1437
+ nullable?: boolean | undefined;
1438
+ }[];
1439
+ query: {
1440
+ value: string;
1441
+ key: string;
1442
+ enabled: boolean;
1443
+ minimum?: number | undefined;
1444
+ type?: string | undefined;
1445
+ maximum?: number | undefined;
1446
+ default?: any;
1447
+ description?: string | undefined;
1448
+ enum?: string[] | undefined;
1449
+ required?: boolean | undefined;
1450
+ file?: File | undefined;
1451
+ refUid?: string | undefined;
1452
+ format?: string | undefined;
1453
+ nullable?: boolean | undefined;
1454
+ }[];
1455
+ cookies: {
1456
+ value: string;
1457
+ key: string;
1458
+ enabled: boolean;
1459
+ minimum?: number | undefined;
1460
+ type?: string | undefined;
1461
+ maximum?: number | undefined;
1462
+ default?: any;
1463
+ description?: string | undefined;
1464
+ enum?: string[] | undefined;
1465
+ required?: boolean | undefined;
1466
+ file?: File | undefined;
1467
+ refUid?: string | undefined;
1468
+ format?: string | undefined;
1469
+ nullable?: boolean | undefined;
1470
+ }[];
1471
+ headers: {
1472
+ value: string;
1473
+ key: string;
1474
+ enabled: boolean;
1475
+ minimum?: number | undefined;
1476
+ type?: string | undefined;
1477
+ maximum?: number | undefined;
1478
+ default?: any;
1479
+ description?: string | undefined;
1480
+ enum?: string[] | undefined;
1481
+ required?: boolean | undefined;
1482
+ file?: File | undefined;
1483
+ refUid?: string | undefined;
1484
+ format?: string | undefined;
1485
+ nullable?: boolean | undefined;
1486
+ }[];
1487
+ };
1488
+ requestUid: string;
1489
+ body: {
1490
+ raw: {
1491
+ value: string;
1492
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
1493
+ };
1494
+ formData: {
1495
+ value: {
1496
+ value: string;
1497
+ key: string;
1498
+ enabled: boolean;
1499
+ minimum?: number | undefined;
1500
+ type?: string | undefined;
1501
+ maximum?: number | undefined;
1502
+ default?: any;
1503
+ description?: string | undefined;
1504
+ enum?: string[] | undefined;
1505
+ required?: boolean | undefined;
1506
+ file?: File | undefined;
1507
+ refUid?: string | undefined;
1508
+ format?: string | undefined;
1509
+ nullable?: boolean | undefined;
1510
+ }[];
1511
+ encoding: "form-data" | "urlencoded";
1512
+ };
1513
+ activeBody: "raw" | "formData" | "binary";
1514
+ binary?: File | undefined;
1515
+ };
1516
+ auth: Record<string, any>;
1517
+ }) => void;
1518
+ add: (request: import("@scalar/oas-utils/entities/workspace/spec").Request, name?: string) => {
1519
+ uid: string;
1520
+ name: string;
1521
+ url: string;
1522
+ parameters: {
1523
+ path: {
1524
+ value: string;
1525
+ key: string;
1526
+ enabled: boolean;
1527
+ minimum?: number | undefined;
1528
+ type?: string | undefined;
1529
+ maximum?: number | undefined;
1530
+ default?: any;
1531
+ description?: string | undefined;
1532
+ enum?: string[] | undefined;
1533
+ required?: boolean | undefined;
1534
+ file?: File | undefined;
1535
+ refUid?: string | undefined;
1536
+ format?: string | undefined;
1537
+ nullable?: boolean | undefined;
1538
+ }[];
1539
+ query: {
1540
+ value: string;
1541
+ key: string;
1542
+ enabled: boolean;
1543
+ minimum?: number | undefined;
1544
+ type?: string | undefined;
1545
+ maximum?: number | undefined;
1546
+ default?: any;
1547
+ description?: string | undefined;
1548
+ enum?: string[] | undefined;
1549
+ required?: boolean | undefined;
1550
+ file?: File | undefined;
1551
+ refUid?: string | undefined;
1552
+ format?: string | undefined;
1553
+ nullable?: boolean | undefined;
1554
+ }[];
1555
+ cookies: {
1556
+ value: string;
1557
+ key: string;
1558
+ enabled: boolean;
1559
+ minimum?: number | undefined;
1560
+ type?: string | undefined;
1561
+ maximum?: number | undefined;
1562
+ default?: any;
1563
+ description?: string | undefined;
1564
+ enum?: string[] | undefined;
1565
+ required?: boolean | undefined;
1566
+ file?: File | undefined;
1567
+ refUid?: string | undefined;
1568
+ format?: string | undefined;
1569
+ nullable?: boolean | undefined;
1570
+ }[];
1571
+ headers: {
1572
+ value: string;
1573
+ key: string;
1574
+ enabled: boolean;
1575
+ minimum?: number | undefined;
1576
+ type?: string | undefined;
1577
+ maximum?: number | undefined;
1578
+ default?: any;
1579
+ description?: string | undefined;
1580
+ enum?: string[] | undefined;
1581
+ required?: boolean | undefined;
1582
+ file?: File | undefined;
1583
+ refUid?: string | undefined;
1584
+ format?: string | undefined;
1585
+ nullable?: boolean | undefined;
1586
+ }[];
1587
+ };
1588
+ requestUid: string;
1589
+ body: {
1590
+ raw: {
1591
+ value: string;
1592
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
1593
+ };
1594
+ formData: {
1595
+ value: {
1596
+ value: string;
1597
+ key: string;
1598
+ enabled: boolean;
1599
+ minimum?: number | undefined;
1600
+ type?: string | undefined;
1601
+ maximum?: number | undefined;
1602
+ default?: any;
1603
+ description?: string | undefined;
1604
+ enum?: string[] | undefined;
1605
+ required?: boolean | undefined;
1606
+ file?: File | undefined;
1607
+ refUid?: string | undefined;
1608
+ format?: string | undefined;
1609
+ nullable?: boolean | undefined;
1610
+ }[];
1611
+ encoding: "form-data" | "urlencoded";
1612
+ };
1613
+ activeBody: "raw" | "formData" | "binary";
1614
+ binary?: File | undefined;
1615
+ };
1616
+ auth: Record<string, any>;
1617
+ };
1618
+ delete: (requestExample: import("@scalar/oas-utils/entities/workspace/spec").RequestExample) => void;
1619
+ set: (item: {
1620
+ uid: string;
1621
+ name: string;
1622
+ url: string;
1623
+ parameters: {
1624
+ path: {
1625
+ value: string;
1626
+ key: string;
1627
+ enabled: boolean;
1628
+ minimum?: number | undefined;
1629
+ type?: string | undefined;
1630
+ maximum?: number | undefined;
1631
+ default?: any;
1632
+ description?: string | undefined;
1633
+ enum?: string[] | undefined;
1634
+ required?: boolean | undefined;
1635
+ file?: File | undefined;
1636
+ refUid?: string | undefined;
1637
+ format?: string | undefined;
1638
+ nullable?: boolean | undefined;
1639
+ }[];
1640
+ query: {
1641
+ value: string;
1642
+ key: string;
1643
+ enabled: boolean;
1644
+ minimum?: number | undefined;
1645
+ type?: string | undefined;
1646
+ maximum?: number | undefined;
1647
+ default?: any;
1648
+ description?: string | undefined;
1649
+ enum?: string[] | undefined;
1650
+ required?: boolean | undefined;
1651
+ file?: File | undefined;
1652
+ refUid?: string | undefined;
1653
+ format?: string | undefined;
1654
+ nullable?: boolean | undefined;
1655
+ }[];
1656
+ cookies: {
1657
+ value: string;
1658
+ key: string;
1659
+ enabled: boolean;
1660
+ minimum?: number | undefined;
1661
+ type?: string | undefined;
1662
+ maximum?: number | undefined;
1663
+ default?: any;
1664
+ description?: string | undefined;
1665
+ enum?: string[] | undefined;
1666
+ required?: boolean | undefined;
1667
+ file?: File | undefined;
1668
+ refUid?: string | undefined;
1669
+ format?: string | undefined;
1670
+ nullable?: boolean | undefined;
1671
+ }[];
1672
+ headers: {
1673
+ value: string;
1674
+ key: string;
1675
+ enabled: boolean;
1676
+ minimum?: number | undefined;
1677
+ type?: string | undefined;
1678
+ maximum?: number | undefined;
1679
+ default?: any;
1680
+ description?: string | undefined;
1681
+ enum?: string[] | undefined;
1682
+ required?: boolean | undefined;
1683
+ file?: File | undefined;
1684
+ refUid?: string | undefined;
1685
+ format?: string | undefined;
1686
+ nullable?: boolean | undefined;
1687
+ }[];
1688
+ };
1689
+ requestUid: string;
1690
+ body: {
1691
+ raw: {
1692
+ value: string;
1693
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
1694
+ };
1695
+ formData: {
1696
+ value: {
1697
+ value: string;
1698
+ key: string;
1699
+ enabled: boolean;
1700
+ minimum?: number | undefined;
1701
+ type?: string | undefined;
1702
+ maximum?: number | undefined;
1703
+ default?: any;
1704
+ description?: string | undefined;
1705
+ enum?: string[] | undefined;
1706
+ required?: boolean | undefined;
1707
+ file?: File | undefined;
1708
+ refUid?: string | undefined;
1709
+ format?: string | undefined;
1710
+ nullable?: boolean | undefined;
1711
+ }[];
1712
+ encoding: "form-data" | "urlencoded";
1713
+ };
1714
+ activeBody: "raw" | "formData" | "binary";
1715
+ binary?: File | undefined;
1716
+ };
1717
+ auth: Record<string, any>;
1718
+ }) => void;
1719
+ edit: <P extends "body" | "name" | "url" | "uid" | "parameters" | "requestUid" | "auth" | "body.raw" | "body.formData" | "body.activeBody" | "body.binary" | "body.raw.value" | "body.raw.encoding" | "body.formData.value" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.description` | `body.formData.value.${number}.file` | `body.formData.value.${number}.value` | `body.formData.value.${number}.type` | `body.formData.value.${number}.default` | `body.formData.value.${number}.key` | `body.formData.value.${number}.required` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.nullable` | `body.formData.value.${number}.enum.${number}` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.refUid` | `body.formData.value.${number}.format` | `body.formData.value.${number}.default.${string}` | "parameters.cookies" | "parameters.path" | "parameters.query" | "parameters.headers" | `parameters.cookies.${number}` | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.nullable` | `parameters.cookies.${number}.enum.${number}` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.refUid` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.default.${string}` | `parameters.path.${number}` | `parameters.path.${number}.description` | `parameters.path.${number}.file` | `parameters.path.${number}.value` | `parameters.path.${number}.type` | `parameters.path.${number}.default` | `parameters.path.${number}.key` | `parameters.path.${number}.required` | `parameters.path.${number}.enum` | `parameters.path.${number}.nullable` | `parameters.path.${number}.enum.${number}` | `parameters.path.${number}.enabled` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.refUid` | `parameters.path.${number}.format` | `parameters.path.${number}.default.${string}` | `parameters.query.${number}` | `parameters.query.${number}.description` | `parameters.query.${number}.file` | `parameters.query.${number}.value` | `parameters.query.${number}.type` | `parameters.query.${number}.default` | `parameters.query.${number}.key` | `parameters.query.${number}.required` | `parameters.query.${number}.enum` | `parameters.query.${number}.nullable` | `parameters.query.${number}.enum.${number}` | `parameters.query.${number}.enabled` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.refUid` | `parameters.query.${number}.format` | `parameters.query.${number}.default.${string}` | `parameters.headers.${number}` | `parameters.headers.${number}.description` | `parameters.headers.${number}.file` | `parameters.headers.${number}.value` | `parameters.headers.${number}.type` | `parameters.headers.${number}.default` | `parameters.headers.${number}.key` | `parameters.headers.${number}.required` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.nullable` | `parameters.headers.${number}.enum.${number}` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.refUid` | `parameters.headers.${number}.format` | `parameters.headers.${number}.default.${string}` | `auth.${string}`>(uid: string, path: P, value: P extends "body" | "name" | "url" | "uid" | "parameters" | "requestUid" | "auth" ? {
1720
+ uid: string;
1721
+ name: string;
1722
+ url: string;
1723
+ parameters: {
1724
+ path: {
1725
+ value: string;
1726
+ key: string;
1727
+ enabled: boolean;
1728
+ minimum?: number | undefined;
1729
+ type?: string | undefined;
1730
+ maximum?: number | undefined;
1731
+ default?: any;
1732
+ description?: string | undefined;
1733
+ enum?: string[] | undefined;
1734
+ required?: boolean | undefined;
1735
+ file?: File | undefined;
1736
+ refUid?: string | undefined;
1737
+ format?: string | undefined;
1738
+ nullable?: boolean | undefined;
1739
+ }[];
1740
+ query: {
1741
+ value: string;
1742
+ key: string;
1743
+ enabled: boolean;
1744
+ minimum?: number | undefined;
1745
+ type?: string | undefined;
1746
+ maximum?: number | undefined;
1747
+ default?: any;
1748
+ description?: string | undefined;
1749
+ enum?: string[] | undefined;
1750
+ required?: boolean | undefined;
1751
+ file?: File | undefined;
1752
+ refUid?: string | undefined;
1753
+ format?: string | undefined;
1754
+ nullable?: boolean | undefined;
1755
+ }[];
1756
+ cookies: {
1757
+ value: string;
1758
+ key: string;
1759
+ enabled: boolean;
1760
+ minimum?: number | undefined;
1761
+ type?: string | undefined;
1762
+ maximum?: number | undefined;
1763
+ default?: any;
1764
+ description?: string | undefined;
1765
+ enum?: string[] | undefined;
1766
+ required?: boolean | undefined;
1767
+ file?: File | undefined;
1768
+ refUid?: string | undefined;
1769
+ format?: string | undefined;
1770
+ nullable?: boolean | undefined;
1771
+ }[];
1772
+ headers: {
1773
+ value: string;
1774
+ key: string;
1775
+ enabled: boolean;
1776
+ minimum?: number | undefined;
1777
+ type?: string | undefined;
1778
+ maximum?: number | undefined;
1779
+ default?: any;
1780
+ description?: string | undefined;
1781
+ enum?: string[] | undefined;
1782
+ required?: boolean | undefined;
1783
+ file?: File | undefined;
1784
+ refUid?: string | undefined;
1785
+ format?: string | undefined;
1786
+ nullable?: boolean | undefined;
1787
+ }[];
1788
+ };
1789
+ requestUid: string;
1790
+ body: {
1791
+ raw: {
1792
+ value: string;
1793
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
1794
+ };
1795
+ formData: {
1796
+ value: {
1797
+ value: string;
1798
+ key: string;
1799
+ enabled: boolean;
1800
+ minimum?: number | undefined;
1801
+ type?: string | undefined;
1802
+ maximum?: number | undefined;
1803
+ default?: any;
1804
+ description?: string | undefined;
1805
+ enum?: string[] | undefined;
1806
+ required?: boolean | undefined;
1807
+ file?: File | undefined;
1808
+ refUid?: string | undefined;
1809
+ format?: string | undefined;
1810
+ nullable?: boolean | undefined;
1811
+ }[];
1812
+ encoding: "form-data" | "urlencoded";
1813
+ };
1814
+ activeBody: "raw" | "formData" | "binary";
1815
+ binary?: File | undefined;
1816
+ };
1817
+ auth: Record<string, any>;
1818
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "body" | "name" | "url" | "uid" | "parameters" | "requestUid" | "auth" ? R extends import("@scalar/object-utils/nested").Path<{
1819
+ uid: string;
1820
+ name: string;
1821
+ url: string;
1822
+ parameters: {
1823
+ path: {
1824
+ value: string;
1825
+ key: string;
1826
+ enabled: boolean;
1827
+ minimum?: number | undefined;
1828
+ type?: string | undefined;
1829
+ maximum?: number | undefined;
1830
+ default?: any;
1831
+ description?: string | undefined;
1832
+ enum?: string[] | undefined;
1833
+ required?: boolean | undefined;
1834
+ file?: File | undefined;
1835
+ refUid?: string | undefined;
1836
+ format?: string | undefined;
1837
+ nullable?: boolean | undefined;
1838
+ }[];
1839
+ query: {
1840
+ value: string;
1841
+ key: string;
1842
+ enabled: boolean;
1843
+ minimum?: number | undefined;
1844
+ type?: string | undefined;
1845
+ maximum?: number | undefined;
1846
+ default?: any;
1847
+ description?: string | undefined;
1848
+ enum?: string[] | undefined;
1849
+ required?: boolean | undefined;
1850
+ file?: File | undefined;
1851
+ refUid?: string | undefined;
1852
+ format?: string | undefined;
1853
+ nullable?: boolean | undefined;
1854
+ }[];
1855
+ cookies: {
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
+ description?: string | undefined;
1864
+ enum?: string[] | undefined;
1865
+ required?: boolean | undefined;
1866
+ file?: File | undefined;
1867
+ refUid?: string | undefined;
1868
+ format?: string | undefined;
1869
+ nullable?: boolean | undefined;
1870
+ }[];
1871
+ headers: {
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
+ description?: string | undefined;
1880
+ enum?: string[] | undefined;
1881
+ required?: boolean | undefined;
1882
+ file?: File | undefined;
1883
+ refUid?: string | undefined;
1884
+ format?: string | undefined;
1885
+ nullable?: boolean | undefined;
1886
+ }[];
1887
+ };
1888
+ requestUid: string;
1889
+ body: {
1890
+ raw: {
1891
+ value: string;
1892
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
1893
+ };
1894
+ formData: {
1895
+ value: {
1896
+ value: string;
1897
+ key: string;
1898
+ enabled: boolean;
1899
+ minimum?: number | undefined;
1900
+ type?: string | undefined;
1901
+ maximum?: number | undefined;
1902
+ default?: any;
1903
+ description?: string | undefined;
1904
+ enum?: string[] | undefined;
1905
+ required?: boolean | undefined;
1906
+ file?: File | undefined;
1907
+ refUid?: string | undefined;
1908
+ format?: string | undefined;
1909
+ nullable?: boolean | undefined;
1910
+ }[];
1911
+ encoding: "form-data" | "urlencoded";
1912
+ };
1913
+ activeBody: "raw" | "formData" | "binary";
1914
+ binary?: File | undefined;
1915
+ };
1916
+ auth: Record<string, any>;
1917
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
1918
+ uid: string;
1919
+ name: string;
1920
+ url: string;
1921
+ parameters: {
1922
+ path: {
1923
+ value: string;
1924
+ key: string;
1925
+ enabled: boolean;
1926
+ minimum?: number | undefined;
1927
+ type?: string | undefined;
1928
+ maximum?: number | undefined;
1929
+ default?: any;
1930
+ description?: string | undefined;
1931
+ enum?: string[] | undefined;
1932
+ required?: boolean | undefined;
1933
+ file?: File | undefined;
1934
+ refUid?: string | undefined;
1935
+ format?: string | undefined;
1936
+ nullable?: boolean | undefined;
1937
+ }[];
1938
+ query: {
1939
+ value: string;
1940
+ key: string;
1941
+ enabled: boolean;
1942
+ minimum?: number | undefined;
1943
+ type?: string | undefined;
1944
+ maximum?: number | undefined;
1945
+ default?: any;
1946
+ description?: string | undefined;
1947
+ enum?: string[] | undefined;
1948
+ required?: boolean | undefined;
1949
+ file?: File | undefined;
1950
+ refUid?: string | undefined;
1951
+ format?: string | undefined;
1952
+ nullable?: boolean | undefined;
1953
+ }[];
1954
+ cookies: {
1955
+ value: string;
1956
+ key: string;
1957
+ enabled: boolean;
1958
+ minimum?: number | undefined;
1959
+ type?: string | undefined;
1960
+ maximum?: number | undefined;
1961
+ default?: any;
1962
+ description?: string | undefined;
1963
+ enum?: string[] | undefined;
1964
+ required?: boolean | undefined;
1965
+ file?: File | undefined;
1966
+ refUid?: string | undefined;
1967
+ format?: string | undefined;
1968
+ nullable?: boolean | undefined;
1969
+ }[];
1970
+ headers: {
1971
+ value: string;
1972
+ key: string;
1973
+ enabled: boolean;
1974
+ minimum?: number | undefined;
1975
+ type?: string | undefined;
1976
+ maximum?: number | undefined;
1977
+ default?: any;
1978
+ description?: string | undefined;
1979
+ enum?: string[] | undefined;
1980
+ required?: boolean | undefined;
1981
+ file?: File | undefined;
1982
+ refUid?: string | undefined;
1983
+ format?: string | undefined;
1984
+ nullable?: boolean | undefined;
1985
+ }[];
1986
+ };
1987
+ requestUid: string;
1988
+ body: {
1989
+ raw: {
1990
+ value: string;
1991
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
1992
+ };
1993
+ formData: {
1994
+ value: {
1995
+ value: string;
1996
+ key: string;
1997
+ enabled: boolean;
1998
+ minimum?: number | undefined;
1999
+ type?: string | undefined;
2000
+ maximum?: number | undefined;
2001
+ default?: any;
2002
+ description?: string | undefined;
2003
+ enum?: string[] | undefined;
2004
+ required?: boolean | undefined;
2005
+ file?: File | undefined;
2006
+ refUid?: string | undefined;
2007
+ format?: string | undefined;
2008
+ nullable?: boolean | undefined;
2009
+ }[];
2010
+ encoding: "form-data" | "urlencoded";
2011
+ };
2012
+ activeBody: "raw" | "formData" | "binary";
2013
+ binary?: File | undefined;
2014
+ };
2015
+ auth: Record<string, any>;
2016
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
2017
+ untrackedEdit: <P extends "body" | "name" | "url" | "uid" | "parameters" | "requestUid" | "auth" | "body.raw" | "body.formData" | "body.activeBody" | "body.binary" | "body.raw.value" | "body.raw.encoding" | "body.formData.value" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.description` | `body.formData.value.${number}.file` | `body.formData.value.${number}.value` | `body.formData.value.${number}.type` | `body.formData.value.${number}.default` | `body.formData.value.${number}.key` | `body.formData.value.${number}.required` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.nullable` | `body.formData.value.${number}.enum.${number}` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.refUid` | `body.formData.value.${number}.format` | `body.formData.value.${number}.default.${string}` | "parameters.cookies" | "parameters.path" | "parameters.query" | "parameters.headers" | `parameters.cookies.${number}` | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.nullable` | `parameters.cookies.${number}.enum.${number}` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.refUid` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.default.${string}` | `parameters.path.${number}` | `parameters.path.${number}.description` | `parameters.path.${number}.file` | `parameters.path.${number}.value` | `parameters.path.${number}.type` | `parameters.path.${number}.default` | `parameters.path.${number}.key` | `parameters.path.${number}.required` | `parameters.path.${number}.enum` | `parameters.path.${number}.nullable` | `parameters.path.${number}.enum.${number}` | `parameters.path.${number}.enabled` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.refUid` | `parameters.path.${number}.format` | `parameters.path.${number}.default.${string}` | `parameters.query.${number}` | `parameters.query.${number}.description` | `parameters.query.${number}.file` | `parameters.query.${number}.value` | `parameters.query.${number}.type` | `parameters.query.${number}.default` | `parameters.query.${number}.key` | `parameters.query.${number}.required` | `parameters.query.${number}.enum` | `parameters.query.${number}.nullable` | `parameters.query.${number}.enum.${number}` | `parameters.query.${number}.enabled` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.refUid` | `parameters.query.${number}.format` | `parameters.query.${number}.default.${string}` | `parameters.headers.${number}` | `parameters.headers.${number}.description` | `parameters.headers.${number}.file` | `parameters.headers.${number}.value` | `parameters.headers.${number}.type` | `parameters.headers.${number}.default` | `parameters.headers.${number}.key` | `parameters.headers.${number}.required` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.nullable` | `parameters.headers.${number}.enum.${number}` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.refUid` | `parameters.headers.${number}.format` | `parameters.headers.${number}.default.${string}` | `auth.${string}`>(uid: string, path: P, value: P extends "body" | "name" | "url" | "uid" | "parameters" | "requestUid" | "auth" ? {
2018
+ uid: string;
2019
+ name: string;
2020
+ url: string;
2021
+ parameters: {
2022
+ path: {
2023
+ value: string;
2024
+ key: string;
2025
+ enabled: boolean;
2026
+ minimum?: number | undefined;
2027
+ type?: string | undefined;
2028
+ maximum?: number | undefined;
2029
+ default?: any;
2030
+ description?: string | undefined;
2031
+ enum?: string[] | undefined;
2032
+ required?: boolean | undefined;
2033
+ file?: File | undefined;
2034
+ refUid?: string | undefined;
2035
+ format?: string | undefined;
2036
+ nullable?: boolean | undefined;
2037
+ }[];
2038
+ query: {
2039
+ value: string;
2040
+ key: string;
2041
+ enabled: boolean;
2042
+ minimum?: number | undefined;
2043
+ type?: string | undefined;
2044
+ maximum?: number | undefined;
2045
+ default?: any;
2046
+ description?: string | undefined;
2047
+ enum?: string[] | undefined;
2048
+ required?: boolean | undefined;
2049
+ file?: File | undefined;
2050
+ refUid?: string | undefined;
2051
+ format?: string | undefined;
2052
+ nullable?: boolean | undefined;
2053
+ }[];
2054
+ cookies: {
2055
+ value: string;
2056
+ key: string;
2057
+ enabled: boolean;
2058
+ minimum?: number | undefined;
2059
+ type?: string | undefined;
2060
+ maximum?: number | undefined;
2061
+ default?: any;
2062
+ description?: string | undefined;
2063
+ enum?: string[] | undefined;
2064
+ required?: boolean | undefined;
2065
+ file?: File | undefined;
2066
+ refUid?: string | undefined;
2067
+ format?: string | undefined;
2068
+ nullable?: boolean | undefined;
2069
+ }[];
2070
+ headers: {
2071
+ value: string;
2072
+ key: string;
2073
+ enabled: boolean;
2074
+ minimum?: number | undefined;
2075
+ type?: string | undefined;
2076
+ maximum?: number | undefined;
2077
+ default?: any;
2078
+ description?: string | undefined;
2079
+ enum?: string[] | undefined;
2080
+ required?: boolean | undefined;
2081
+ file?: File | undefined;
2082
+ refUid?: string | undefined;
2083
+ format?: string | undefined;
2084
+ nullable?: boolean | undefined;
2085
+ }[];
2086
+ };
2087
+ requestUid: string;
2088
+ body: {
2089
+ raw: {
2090
+ value: string;
2091
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
2092
+ };
2093
+ formData: {
2094
+ value: {
2095
+ value: string;
2096
+ key: string;
2097
+ enabled: boolean;
2098
+ minimum?: number | undefined;
2099
+ type?: string | undefined;
2100
+ maximum?: number | undefined;
2101
+ default?: any;
2102
+ description?: string | undefined;
2103
+ enum?: string[] | undefined;
2104
+ required?: boolean | undefined;
2105
+ file?: File | undefined;
2106
+ refUid?: string | undefined;
2107
+ format?: string | undefined;
2108
+ nullable?: boolean | undefined;
2109
+ }[];
2110
+ encoding: "form-data" | "urlencoded";
2111
+ };
2112
+ activeBody: "raw" | "formData" | "binary";
2113
+ binary?: File | undefined;
2114
+ };
2115
+ auth: Record<string, any>;
2116
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "body" | "name" | "url" | "uid" | "parameters" | "requestUid" | "auth" ? R extends import("@scalar/object-utils/nested").Path<{
2117
+ uid: string;
2118
+ name: string;
2119
+ url: string;
2120
+ parameters: {
2121
+ path: {
2122
+ value: string;
2123
+ key: string;
2124
+ enabled: boolean;
2125
+ minimum?: number | undefined;
2126
+ type?: string | undefined;
2127
+ maximum?: number | undefined;
2128
+ default?: any;
2129
+ description?: string | undefined;
2130
+ enum?: string[] | undefined;
2131
+ required?: boolean | undefined;
2132
+ file?: File | undefined;
2133
+ refUid?: string | undefined;
2134
+ format?: string | undefined;
2135
+ nullable?: boolean | undefined;
2136
+ }[];
2137
+ query: {
2138
+ value: string;
2139
+ key: string;
2140
+ enabled: boolean;
2141
+ minimum?: number | undefined;
2142
+ type?: string | undefined;
2143
+ maximum?: number | undefined;
2144
+ default?: any;
2145
+ description?: string | undefined;
2146
+ enum?: string[] | undefined;
2147
+ required?: boolean | undefined;
2148
+ file?: File | undefined;
2149
+ refUid?: string | undefined;
2150
+ format?: string | undefined;
2151
+ nullable?: boolean | undefined;
2152
+ }[];
2153
+ cookies: {
2154
+ value: string;
2155
+ key: string;
2156
+ enabled: boolean;
2157
+ minimum?: number | undefined;
2158
+ type?: string | undefined;
2159
+ maximum?: number | undefined;
2160
+ default?: any;
2161
+ description?: string | undefined;
2162
+ enum?: string[] | undefined;
2163
+ required?: boolean | undefined;
2164
+ file?: File | undefined;
2165
+ refUid?: string | undefined;
2166
+ format?: string | undefined;
2167
+ nullable?: boolean | undefined;
2168
+ }[];
2169
+ headers: {
2170
+ value: string;
2171
+ key: string;
2172
+ enabled: boolean;
2173
+ minimum?: number | undefined;
2174
+ type?: string | undefined;
2175
+ maximum?: number | undefined;
2176
+ default?: any;
2177
+ description?: string | undefined;
2178
+ enum?: string[] | undefined;
2179
+ required?: boolean | undefined;
2180
+ file?: File | undefined;
2181
+ refUid?: string | undefined;
2182
+ format?: string | undefined;
2183
+ nullable?: boolean | undefined;
2184
+ }[];
2185
+ };
2186
+ requestUid: string;
2187
+ body: {
2188
+ raw: {
2189
+ value: string;
2190
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
2191
+ };
2192
+ formData: {
2193
+ value: {
2194
+ value: string;
2195
+ key: string;
2196
+ enabled: boolean;
2197
+ minimum?: number | undefined;
2198
+ type?: string | undefined;
2199
+ maximum?: number | undefined;
2200
+ default?: any;
2201
+ description?: string | undefined;
2202
+ enum?: string[] | undefined;
2203
+ required?: boolean | undefined;
2204
+ file?: File | undefined;
2205
+ refUid?: string | undefined;
2206
+ format?: string | undefined;
2207
+ nullable?: boolean | undefined;
2208
+ }[];
2209
+ encoding: "form-data" | "urlencoded";
2210
+ };
2211
+ activeBody: "raw" | "formData" | "binary";
2212
+ binary?: File | undefined;
2213
+ };
2214
+ auth: Record<string, any>;
2215
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2216
+ uid: string;
2217
+ name: string;
2218
+ url: string;
2219
+ parameters: {
2220
+ path: {
2221
+ value: string;
2222
+ key: string;
2223
+ enabled: boolean;
2224
+ minimum?: number | undefined;
2225
+ type?: string | undefined;
2226
+ maximum?: number | undefined;
2227
+ default?: any;
2228
+ description?: string | undefined;
2229
+ enum?: string[] | undefined;
2230
+ required?: boolean | undefined;
2231
+ file?: File | undefined;
2232
+ refUid?: string | undefined;
2233
+ format?: string | undefined;
2234
+ nullable?: boolean | undefined;
2235
+ }[];
2236
+ query: {
2237
+ value: string;
2238
+ key: string;
2239
+ enabled: boolean;
2240
+ minimum?: number | undefined;
2241
+ type?: string | undefined;
2242
+ maximum?: number | undefined;
2243
+ default?: any;
2244
+ description?: string | undefined;
2245
+ enum?: string[] | undefined;
2246
+ required?: boolean | undefined;
2247
+ file?: File | undefined;
2248
+ refUid?: string | undefined;
2249
+ format?: string | undefined;
2250
+ nullable?: boolean | undefined;
2251
+ }[];
2252
+ cookies: {
2253
+ value: string;
2254
+ key: string;
2255
+ enabled: boolean;
2256
+ minimum?: number | undefined;
2257
+ type?: string | undefined;
2258
+ maximum?: number | undefined;
2259
+ default?: any;
2260
+ description?: string | undefined;
2261
+ enum?: string[] | undefined;
2262
+ required?: boolean | undefined;
2263
+ file?: File | undefined;
2264
+ refUid?: string | undefined;
2265
+ format?: string | undefined;
2266
+ nullable?: boolean | undefined;
2267
+ }[];
2268
+ headers: {
2269
+ value: string;
2270
+ key: string;
2271
+ enabled: boolean;
2272
+ minimum?: number | undefined;
2273
+ type?: string | undefined;
2274
+ maximum?: number | undefined;
2275
+ default?: any;
2276
+ description?: string | undefined;
2277
+ enum?: string[] | undefined;
2278
+ required?: boolean | undefined;
2279
+ file?: File | undefined;
2280
+ refUid?: string | undefined;
2281
+ format?: string | undefined;
2282
+ nullable?: boolean | undefined;
2283
+ }[];
2284
+ };
2285
+ requestUid: string;
2286
+ body: {
2287
+ raw: {
2288
+ value: string;
2289
+ encoding: "json" | "text" | "html" | "javascript" | "xml" | "yaml" | "edn";
2290
+ };
2291
+ formData: {
2292
+ value: {
2293
+ value: string;
2294
+ key: string;
2295
+ enabled: boolean;
2296
+ minimum?: number | undefined;
2297
+ type?: string | undefined;
2298
+ maximum?: number | undefined;
2299
+ default?: any;
2300
+ description?: string | undefined;
2301
+ enum?: string[] | undefined;
2302
+ required?: boolean | undefined;
2303
+ file?: File | undefined;
2304
+ refUid?: string | undefined;
2305
+ format?: string | undefined;
2306
+ nullable?: boolean | undefined;
2307
+ }[];
2308
+ encoding: "form-data" | "urlencoded";
2309
+ };
2310
+ activeBody: "raw" | "formData" | "binary";
2311
+ binary?: File | undefined;
2312
+ };
2313
+ auth: Record<string, any>;
2314
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
2315
+ undo: (uid: string) => void;
2316
+ redo: (uid: string) => void;
2317
+ };
2318
+ requestsHistory: import("vue").ComputedRef<import("@scalar/oas-utils/entities/workspace/spec").RequestEvent[]>;
2319
+ securitySchemeMutators: {
2320
+ add: (item: {
2321
+ type: "apiKey";
2322
+ value: string;
2323
+ uid: string;
2324
+ name: string;
2325
+ in: "query" | "header" | "cookie";
2326
+ description?: string | undefined;
2327
+ } | {
2328
+ type: "http";
2329
+ value: string;
2330
+ uid: string;
2331
+ scheme: "basic" | "bearer";
2332
+ bearerFormat: string;
2333
+ secondValue: string;
2334
+ description?: string | undefined;
2335
+ } | {
2336
+ type: "oauth2";
2337
+ uid: string;
2338
+ flows: {
2339
+ implicit?: {
2340
+ authorizationUrl: string;
2341
+ selectedScopes: string[];
2342
+ token: string;
2343
+ refreshUrl?: string | undefined;
2344
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2345
+ } | undefined;
2346
+ password?: {
2347
+ value: string;
2348
+ secondValue: string;
2349
+ selectedScopes: string[];
2350
+ token: string;
2351
+ tokenUrl: string;
2352
+ clientSecret: string;
2353
+ refreshUrl?: string | undefined;
2354
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2355
+ } | undefined;
2356
+ clientCredentials?: {
2357
+ selectedScopes: string[];
2358
+ token: string;
2359
+ tokenUrl: string;
2360
+ clientSecret: string;
2361
+ refreshUrl?: string | undefined;
2362
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2363
+ } | undefined;
2364
+ authorizationCode?: {
2365
+ authorizationUrl: string;
2366
+ selectedScopes: string[];
2367
+ token: string;
2368
+ tokenUrl: string;
2369
+ clientSecret: string;
2370
+ refreshUrl?: string | undefined;
2371
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2372
+ } | undefined;
2373
+ };
2374
+ clientId: string;
2375
+ redirectUri: string;
2376
+ description?: string | undefined;
2377
+ } | {
2378
+ type: "openIdConnect";
2379
+ uid: string;
2380
+ openIdConnectUrl: string;
2381
+ description?: string | undefined;
2382
+ }) => void;
2383
+ delete: (uid: string) => void;
2384
+ set: (item: {
2385
+ type: "apiKey";
2386
+ value: string;
2387
+ uid: string;
2388
+ name: string;
2389
+ in: "query" | "header" | "cookie";
2390
+ description?: string | undefined;
2391
+ } | {
2392
+ type: "http";
2393
+ value: string;
2394
+ uid: string;
2395
+ scheme: "basic" | "bearer";
2396
+ bearerFormat: string;
2397
+ secondValue: string;
2398
+ description?: string | undefined;
2399
+ } | {
2400
+ type: "oauth2";
2401
+ uid: string;
2402
+ flows: {
2403
+ implicit?: {
2404
+ authorizationUrl: string;
2405
+ selectedScopes: string[];
2406
+ token: string;
2407
+ refreshUrl?: string | undefined;
2408
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2409
+ } | undefined;
2410
+ password?: {
2411
+ value: string;
2412
+ secondValue: string;
2413
+ selectedScopes: string[];
2414
+ token: string;
2415
+ tokenUrl: string;
2416
+ clientSecret: string;
2417
+ refreshUrl?: string | undefined;
2418
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2419
+ } | undefined;
2420
+ clientCredentials?: {
2421
+ selectedScopes: string[];
2422
+ token: string;
2423
+ tokenUrl: string;
2424
+ clientSecret: string;
2425
+ refreshUrl?: string | undefined;
2426
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2427
+ } | undefined;
2428
+ authorizationCode?: {
2429
+ authorizationUrl: string;
2430
+ selectedScopes: string[];
2431
+ token: string;
2432
+ tokenUrl: string;
2433
+ clientSecret: string;
2434
+ refreshUrl?: string | undefined;
2435
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2436
+ } | undefined;
2437
+ };
2438
+ clientId: string;
2439
+ redirectUri: string;
2440
+ description?: string | undefined;
2441
+ } | {
2442
+ type: "openIdConnect";
2443
+ uid: string;
2444
+ openIdConnectUrl: string;
2445
+ description?: string | undefined;
2446
+ }) => void;
2447
+ edit: <P extends "value" | "name" | "type" | "flows" | "uid" | "description" | "in" | "scheme" | "bearerFormat" | "secondValue" | "clientId" | "redirectUri" | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.value" | "flows.password.secondValue" | "flows.password.selectedScopes" | "flows.password.token" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | `flows.password.selectedScopes.${number}` | "flows.implicit.selectedScopes" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.token" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.token" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "openIdConnectUrl" | `flows.password.scopes.${string}` | `flows.implicit.scopes.${string}` | `flows.clientCredentials.scopes.${string}` | `flows.authorizationCode.scopes.${string}`>(uid: string, path: P, value: (P extends "value" | "name" | "type" | "uid" | "description" | "in" ? {
2448
+ type: "apiKey";
2449
+ value: string;
2450
+ uid: string;
2451
+ name: string;
2452
+ in: "query" | "header" | "cookie";
2453
+ description?: string | undefined;
2454
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "name" | "type" | "uid" | "description" | "in" ? R extends import("@scalar/object-utils/nested").Path<{
2455
+ type: "apiKey";
2456
+ value: string;
2457
+ uid: string;
2458
+ name: string;
2459
+ in: "query" | "header" | "cookie";
2460
+ description?: string | undefined;
2461
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2462
+ type: "apiKey";
2463
+ value: string;
2464
+ uid: string;
2465
+ name: string;
2466
+ in: "query" | "header" | "cookie";
2467
+ description?: string | undefined;
2468
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "value" | "type" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? {
2469
+ type: "http";
2470
+ value: string;
2471
+ uid: string;
2472
+ scheme: "basic" | "bearer";
2473
+ bearerFormat: string;
2474
+ secondValue: string;
2475
+ description?: string | undefined;
2476
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "type" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? R extends import("@scalar/object-utils/nested").Path<{
2477
+ type: "http";
2478
+ value: string;
2479
+ uid: string;
2480
+ scheme: "basic" | "bearer";
2481
+ bearerFormat: string;
2482
+ secondValue: string;
2483
+ description?: string | undefined;
2484
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2485
+ type: "http";
2486
+ value: string;
2487
+ uid: string;
2488
+ scheme: "basic" | "bearer";
2489
+ bearerFormat: string;
2490
+ secondValue: string;
2491
+ description?: string | undefined;
2492
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "flows" | "uid" | "description" | "clientId" | "redirectUri" ? {
2493
+ type: "oauth2";
2494
+ uid: string;
2495
+ flows: {
2496
+ implicit?: {
2497
+ authorizationUrl: string;
2498
+ selectedScopes: string[];
2499
+ token: string;
2500
+ refreshUrl?: string | undefined;
2501
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2502
+ } | undefined;
2503
+ password?: {
2504
+ value: string;
2505
+ secondValue: string;
2506
+ selectedScopes: string[];
2507
+ token: string;
2508
+ tokenUrl: string;
2509
+ clientSecret: string;
2510
+ refreshUrl?: string | undefined;
2511
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2512
+ } | undefined;
2513
+ clientCredentials?: {
2514
+ selectedScopes: string[];
2515
+ token: string;
2516
+ tokenUrl: string;
2517
+ clientSecret: string;
2518
+ refreshUrl?: string | undefined;
2519
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2520
+ } | undefined;
2521
+ authorizationCode?: {
2522
+ authorizationUrl: string;
2523
+ selectedScopes: string[];
2524
+ token: string;
2525
+ tokenUrl: string;
2526
+ clientSecret: string;
2527
+ refreshUrl?: string | undefined;
2528
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2529
+ } | undefined;
2530
+ };
2531
+ clientId: string;
2532
+ redirectUri: string;
2533
+ description?: string | undefined;
2534
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "flows" | "uid" | "description" | "clientId" | "redirectUri" ? R extends import("@scalar/object-utils/nested").Path<{
2535
+ type: "oauth2";
2536
+ uid: string;
2537
+ flows: {
2538
+ implicit?: {
2539
+ authorizationUrl: string;
2540
+ selectedScopes: string[];
2541
+ token: string;
2542
+ refreshUrl?: string | undefined;
2543
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2544
+ } | undefined;
2545
+ password?: {
2546
+ value: string;
2547
+ secondValue: string;
2548
+ selectedScopes: string[];
2549
+ token: string;
2550
+ tokenUrl: string;
2551
+ clientSecret: string;
2552
+ refreshUrl?: string | undefined;
2553
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2554
+ } | undefined;
2555
+ clientCredentials?: {
2556
+ selectedScopes: string[];
2557
+ token: string;
2558
+ tokenUrl: string;
2559
+ clientSecret: string;
2560
+ refreshUrl?: string | undefined;
2561
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2562
+ } | undefined;
2563
+ authorizationCode?: {
2564
+ authorizationUrl: string;
2565
+ selectedScopes: string[];
2566
+ token: string;
2567
+ tokenUrl: string;
2568
+ clientSecret: string;
2569
+ refreshUrl?: string | undefined;
2570
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2571
+ } | undefined;
2572
+ };
2573
+ clientId: string;
2574
+ redirectUri: string;
2575
+ description?: string | undefined;
2576
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2577
+ type: "oauth2";
2578
+ uid: string;
2579
+ flows: {
2580
+ implicit?: {
2581
+ authorizationUrl: string;
2582
+ selectedScopes: string[];
2583
+ token: string;
2584
+ refreshUrl?: string | undefined;
2585
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2586
+ } | undefined;
2587
+ password?: {
2588
+ value: string;
2589
+ secondValue: string;
2590
+ selectedScopes: string[];
2591
+ token: string;
2592
+ tokenUrl: string;
2593
+ clientSecret: string;
2594
+ refreshUrl?: string | undefined;
2595
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2596
+ } | undefined;
2597
+ clientCredentials?: {
2598
+ selectedScopes: string[];
2599
+ token: string;
2600
+ tokenUrl: string;
2601
+ clientSecret: string;
2602
+ refreshUrl?: string | undefined;
2603
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2604
+ } | undefined;
2605
+ authorizationCode?: {
2606
+ authorizationUrl: string;
2607
+ selectedScopes: string[];
2608
+ token: string;
2609
+ tokenUrl: string;
2610
+ clientSecret: string;
2611
+ refreshUrl?: string | undefined;
2612
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2613
+ } | undefined;
2614
+ };
2615
+ clientId: string;
2616
+ redirectUri: string;
2617
+ description?: string | undefined;
2618
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "uid" | "description" | "openIdConnectUrl" ? {
2619
+ type: "openIdConnect";
2620
+ uid: string;
2621
+ openIdConnectUrl: string;
2622
+ description?: string | undefined;
2623
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
2624
+ type: "openIdConnect";
2625
+ uid: string;
2626
+ openIdConnectUrl: string;
2627
+ description?: string | undefined;
2628
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2629
+ type: "openIdConnect";
2630
+ uid: string;
2631
+ openIdConnectUrl: string;
2632
+ description?: string | undefined;
2633
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
2634
+ untrackedEdit: <P extends "value" | "name" | "type" | "flows" | "uid" | "description" | "in" | "scheme" | "bearerFormat" | "secondValue" | "clientId" | "redirectUri" | "flows.password" | "flows.implicit" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.password.value" | "flows.password.secondValue" | "flows.password.selectedScopes" | "flows.password.token" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | `flows.password.selectedScopes.${number}` | "flows.implicit.selectedScopes" | "flows.implicit.token" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | `flows.implicit.selectedScopes.${number}` | "flows.implicit.authorizationUrl" | "flows.clientCredentials.selectedScopes" | "flows.clientCredentials.token" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.token" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | `flows.authorizationCode.selectedScopes.${number}` | "flows.authorizationCode.authorizationUrl" | "openIdConnectUrl" | `flows.password.scopes.${string}` | `flows.implicit.scopes.${string}` | `flows.clientCredentials.scopes.${string}` | `flows.authorizationCode.scopes.${string}`>(uid: string, path: P, value: (P extends "value" | "name" | "type" | "uid" | "description" | "in" ? {
2635
+ type: "apiKey";
2636
+ value: string;
2637
+ uid: string;
2638
+ name: string;
2639
+ in: "query" | "header" | "cookie";
2640
+ description?: string | undefined;
2641
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "name" | "type" | "uid" | "description" | "in" ? R extends import("@scalar/object-utils/nested").Path<{
2642
+ type: "apiKey";
2643
+ value: string;
2644
+ uid: string;
2645
+ name: string;
2646
+ in: "query" | "header" | "cookie";
2647
+ description?: string | undefined;
2648
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2649
+ type: "apiKey";
2650
+ value: string;
2651
+ uid: string;
2652
+ name: string;
2653
+ in: "query" | "header" | "cookie";
2654
+ description?: string | undefined;
2655
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "value" | "type" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? {
2656
+ type: "http";
2657
+ value: string;
2658
+ uid: string;
2659
+ scheme: "basic" | "bearer";
2660
+ bearerFormat: string;
2661
+ secondValue: string;
2662
+ description?: string | undefined;
2663
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "value" | "type" | "uid" | "description" | "scheme" | "bearerFormat" | "secondValue" ? R extends import("@scalar/object-utils/nested").Path<{
2664
+ type: "http";
2665
+ value: string;
2666
+ uid: string;
2667
+ scheme: "basic" | "bearer";
2668
+ bearerFormat: string;
2669
+ secondValue: string;
2670
+ description?: string | undefined;
2671
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2672
+ type: "http";
2673
+ value: string;
2674
+ uid: string;
2675
+ scheme: "basic" | "bearer";
2676
+ bearerFormat: string;
2677
+ secondValue: string;
2678
+ description?: string | undefined;
2679
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "flows" | "uid" | "description" | "clientId" | "redirectUri" ? {
2680
+ type: "oauth2";
2681
+ uid: string;
2682
+ flows: {
2683
+ implicit?: {
2684
+ authorizationUrl: string;
2685
+ selectedScopes: string[];
2686
+ token: string;
2687
+ refreshUrl?: string | undefined;
2688
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2689
+ } | undefined;
2690
+ password?: {
2691
+ value: string;
2692
+ secondValue: string;
2693
+ selectedScopes: string[];
2694
+ token: string;
2695
+ tokenUrl: string;
2696
+ clientSecret: string;
2697
+ refreshUrl?: string | undefined;
2698
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2699
+ } | undefined;
2700
+ clientCredentials?: {
2701
+ selectedScopes: string[];
2702
+ token: string;
2703
+ tokenUrl: string;
2704
+ clientSecret: string;
2705
+ refreshUrl?: string | undefined;
2706
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2707
+ } | undefined;
2708
+ authorizationCode?: {
2709
+ authorizationUrl: string;
2710
+ selectedScopes: string[];
2711
+ token: string;
2712
+ tokenUrl: string;
2713
+ clientSecret: string;
2714
+ refreshUrl?: string | undefined;
2715
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2716
+ } | undefined;
2717
+ };
2718
+ clientId: string;
2719
+ redirectUri: string;
2720
+ description?: string | undefined;
2721
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "flows" | "uid" | "description" | "clientId" | "redirectUri" ? R extends import("@scalar/object-utils/nested").Path<{
2722
+ type: "oauth2";
2723
+ uid: string;
2724
+ flows: {
2725
+ implicit?: {
2726
+ authorizationUrl: string;
2727
+ selectedScopes: string[];
2728
+ token: string;
2729
+ refreshUrl?: string | undefined;
2730
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2731
+ } | undefined;
2732
+ password?: {
2733
+ value: string;
2734
+ secondValue: string;
2735
+ selectedScopes: string[];
2736
+ token: string;
2737
+ tokenUrl: string;
2738
+ clientSecret: string;
2739
+ refreshUrl?: string | undefined;
2740
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2741
+ } | undefined;
2742
+ clientCredentials?: {
2743
+ selectedScopes: string[];
2744
+ token: string;
2745
+ tokenUrl: string;
2746
+ clientSecret: string;
2747
+ refreshUrl?: string | undefined;
2748
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2749
+ } | undefined;
2750
+ authorizationCode?: {
2751
+ authorizationUrl: string;
2752
+ selectedScopes: string[];
2753
+ token: string;
2754
+ tokenUrl: string;
2755
+ clientSecret: string;
2756
+ refreshUrl?: string | undefined;
2757
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2758
+ } | undefined;
2759
+ };
2760
+ clientId: string;
2761
+ redirectUri: string;
2762
+ description?: string | undefined;
2763
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2764
+ type: "oauth2";
2765
+ uid: string;
2766
+ flows: {
2767
+ implicit?: {
2768
+ authorizationUrl: string;
2769
+ selectedScopes: string[];
2770
+ token: string;
2771
+ refreshUrl?: string | undefined;
2772
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2773
+ } | undefined;
2774
+ password?: {
2775
+ value: string;
2776
+ secondValue: string;
2777
+ selectedScopes: string[];
2778
+ token: string;
2779
+ tokenUrl: string;
2780
+ clientSecret: string;
2781
+ refreshUrl?: string | undefined;
2782
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2783
+ } | undefined;
2784
+ clientCredentials?: {
2785
+ selectedScopes: string[];
2786
+ token: string;
2787
+ tokenUrl: string;
2788
+ clientSecret: string;
2789
+ refreshUrl?: string | undefined;
2790
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2791
+ } | undefined;
2792
+ authorizationCode?: {
2793
+ authorizationUrl: string;
2794
+ selectedScopes: string[];
2795
+ token: string;
2796
+ tokenUrl: string;
2797
+ clientSecret: string;
2798
+ refreshUrl?: string | undefined;
2799
+ scopes?: Map<string, string | undefined> | Record<string, string | undefined> | {} | undefined;
2800
+ } | undefined;
2801
+ };
2802
+ clientId: string;
2803
+ redirectUri: string;
2804
+ description?: string | undefined;
2805
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "type" | "uid" | "description" | "openIdConnectUrl" ? {
2806
+ type: "openIdConnect";
2807
+ uid: string;
2808
+ openIdConnectUrl: string;
2809
+ description?: string | undefined;
2810
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "type" | "uid" | "description" | "openIdConnectUrl" ? R extends import("@scalar/object-utils/nested").Path<{
2811
+ type: "openIdConnect";
2812
+ uid: string;
2813
+ openIdConnectUrl: string;
2814
+ description?: string | undefined;
2815
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2816
+ type: "openIdConnect";
2817
+ uid: string;
2818
+ openIdConnectUrl: string;
2819
+ description?: string | undefined;
2820
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
2821
+ undo: (uid: string) => void;
2822
+ redo: (uid: string) => void;
2823
+ };
2824
+ serverMutators: {
2825
+ rawAdd: (item: {
2826
+ uid: string;
2827
+ url: string;
2828
+ description?: string | undefined;
2829
+ variables?: Record<string, {
2830
+ default: string;
2831
+ uid: string;
2832
+ value?: string | undefined;
2833
+ description?: string | undefined;
2834
+ enum?: string[] | undefined;
2835
+ }> | null | undefined;
2836
+ }) => void;
2837
+ add: (payload: import("@scalar/oas-utils/entities/workspace/server").ServerPayload, collectionUid?: string) => void;
2838
+ delete: (serverUid: string, collectionUid: string) => void;
2839
+ set: (item: {
2840
+ uid: string;
2841
+ url: string;
2842
+ description?: string | undefined;
2843
+ variables?: Record<string, {
2844
+ default: string;
2845
+ uid: string;
2846
+ value?: string | undefined;
2847
+ description?: string | undefined;
2848
+ enum?: string[] | undefined;
2849
+ }> | null | undefined;
2850
+ }) => void;
2851
+ edit: <P extends "url" | "uid" | "description" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "url" | "uid" | "description" | "variables" ? {
2852
+ uid: string;
2853
+ url: string;
2854
+ description?: string | undefined;
2855
+ variables?: Record<string, {
2856
+ default: string;
2857
+ uid: string;
2858
+ value?: string | undefined;
2859
+ description?: string | undefined;
2860
+ enum?: string[] | undefined;
2861
+ }> | null | undefined;
2862
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "url" | "uid" | "description" | "variables" ? R extends import("@scalar/object-utils/nested").Path<{
2863
+ uid: string;
2864
+ url: string;
2865
+ description?: string | undefined;
2866
+ variables?: Record<string, {
2867
+ default: string;
2868
+ uid: string;
2869
+ value?: string | undefined;
2870
+ description?: string | undefined;
2871
+ enum?: string[] | undefined;
2872
+ }> | null | undefined;
2873
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2874
+ uid: string;
2875
+ url: string;
2876
+ description?: string | undefined;
2877
+ variables?: Record<string, {
2878
+ default: string;
2879
+ uid: string;
2880
+ value?: string | undefined;
2881
+ description?: string | undefined;
2882
+ enum?: string[] | undefined;
2883
+ }> | null | undefined;
2884
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
2885
+ untrackedEdit: <P extends "url" | "uid" | "description" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "url" | "uid" | "description" | "variables" ? {
2886
+ uid: string;
2887
+ url: string;
2888
+ description?: string | undefined;
2889
+ variables?: Record<string, {
2890
+ default: string;
2891
+ uid: string;
2892
+ value?: string | undefined;
2893
+ description?: string | undefined;
2894
+ enum?: string[] | undefined;
2895
+ }> | null | undefined;
2896
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "url" | "uid" | "description" | "variables" ? R extends import("@scalar/object-utils/nested").Path<{
2897
+ uid: string;
2898
+ url: string;
2899
+ description?: string | undefined;
2900
+ variables?: Record<string, {
2901
+ default: string;
2902
+ uid: string;
2903
+ value?: string | undefined;
2904
+ description?: string | undefined;
2905
+ enum?: string[] | undefined;
2906
+ }> | null | undefined;
2907
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2908
+ uid: string;
2909
+ url: string;
2910
+ description?: string | undefined;
2911
+ variables?: Record<string, {
2912
+ default: string;
2913
+ uid: string;
2914
+ value?: string | undefined;
2915
+ description?: string | undefined;
2916
+ enum?: string[] | undefined;
2917
+ }> | null | undefined;
2918
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
2919
+ undo: (uid: string) => void;
2920
+ redo: (uid: string) => void;
2921
+ };
2922
+ workspaceMutators: {
2923
+ rawAdd: (item: {
2924
+ uid: string;
2925
+ description: string;
2926
+ name: string;
2927
+ isReadOnly: boolean;
2928
+ collectionUids: string[];
2929
+ environmentUids: string[];
2930
+ cookieUids: string[];
2931
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
2932
+ proxyUrl?: string | undefined;
2933
+ }) => void;
2934
+ add: (payload?: import("@scalar/oas-utils/entities/workspace").WorkspacePayload) => {
2935
+ uid: string;
2936
+ description: string;
2937
+ name: string;
2938
+ isReadOnly: boolean;
2939
+ collectionUids: string[];
2940
+ environmentUids: string[];
2941
+ cookieUids: string[];
2942
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
2943
+ proxyUrl?: string | undefined;
2944
+ };
2945
+ delete: (uid: string) => void;
2946
+ set: (item: {
2947
+ uid: string;
2948
+ description: string;
2949
+ name: string;
2950
+ isReadOnly: boolean;
2951
+ collectionUids: string[];
2952
+ environmentUids: string[];
2953
+ cookieUids: string[];
2954
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
2955
+ proxyUrl?: string | undefined;
2956
+ }) => void;
2957
+ edit: <P extends "name" | "isReadOnly" | "uid" | "proxyUrl" | "themeId" | "description" | "collectionUids" | "environmentUids" | "cookieUids" | `collectionUids.${number}` | `environmentUids.${number}` | `cookieUids.${number}`>(uid: string, path: P, value: P extends "name" | "isReadOnly" | "uid" | "proxyUrl" | "themeId" | "description" | "collectionUids" | "environmentUids" | "cookieUids" ? {
2958
+ uid: string;
2959
+ description: string;
2960
+ name: string;
2961
+ isReadOnly: boolean;
2962
+ collectionUids: string[];
2963
+ environmentUids: string[];
2964
+ cookieUids: string[];
2965
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
2966
+ proxyUrl?: string | undefined;
2967
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "isReadOnly" | "uid" | "proxyUrl" | "themeId" | "description" | "collectionUids" | "environmentUids" | "cookieUids" ? R extends import("@scalar/object-utils/nested").Path<{
2968
+ uid: string;
2969
+ description: string;
2970
+ name: string;
2971
+ isReadOnly: boolean;
2972
+ collectionUids: string[];
2973
+ environmentUids: string[];
2974
+ cookieUids: string[];
2975
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
2976
+ proxyUrl?: string | undefined;
2977
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
2978
+ uid: string;
2979
+ description: string;
2980
+ name: string;
2981
+ isReadOnly: boolean;
2982
+ collectionUids: string[];
2983
+ environmentUids: string[];
2984
+ cookieUids: string[];
2985
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
2986
+ proxyUrl?: string | undefined;
2987
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
2988
+ untrackedEdit: <P extends "name" | "isReadOnly" | "uid" | "proxyUrl" | "themeId" | "description" | "collectionUids" | "environmentUids" | "cookieUids" | `collectionUids.${number}` | `environmentUids.${number}` | `cookieUids.${number}`>(uid: string, path: P, value: P extends "name" | "isReadOnly" | "uid" | "proxyUrl" | "themeId" | "description" | "collectionUids" | "environmentUids" | "cookieUids" ? {
2989
+ uid: string;
2990
+ description: string;
2991
+ name: string;
2992
+ isReadOnly: boolean;
2993
+ collectionUids: string[];
2994
+ environmentUids: string[];
2995
+ cookieUids: string[];
2996
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
2997
+ proxyUrl?: string | undefined;
2998
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "isReadOnly" | "uid" | "proxyUrl" | "themeId" | "description" | "collectionUids" | "environmentUids" | "cookieUids" ? R extends import("@scalar/object-utils/nested").Path<{
2999
+ uid: string;
3000
+ description: string;
3001
+ name: string;
3002
+ isReadOnly: boolean;
3003
+ collectionUids: string[];
3004
+ environmentUids: string[];
3005
+ cookieUids: string[];
3006
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3007
+ proxyUrl?: string | undefined;
3008
+ }[K]> ? import("@scalar/object-utils/nested").PathValue<{
3009
+ uid: string;
3010
+ description: string;
3011
+ name: string;
3012
+ isReadOnly: boolean;
3013
+ collectionUids: string[];
3014
+ environmentUids: string[];
3015
+ cookieUids: string[];
3016
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "mars" | "none";
3017
+ proxyUrl?: string | undefined;
3018
+ }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3019
+ undo: (uid: string) => void;
3020
+ redo: (uid: string) => void;
3021
+ };
3022
+ };
3023
+ };
3024
+ export {};
3025
+ //# sourceMappingURL=create-client.d.ts.map