@scalar/api-client 2.0.30 → 2.0.32

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