@scalar/api-client-react 1.1.29 → 1.1.30

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.
package/dist/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import { App } from 'vue';
2
+ import { BRAND } from 'zod';
2
3
  import { ClientConfiguration } from '@scalar/api-client/libs';
3
4
  import { Collection } from '@scalar/oas-utils/entities/spec';
4
5
  import { CollectionPayload } from '@scalar/oas-utils/entities/spec';
5
6
  import { CommandPaletteEvent } from 'node_modules/@scalar/api-client/dist/components/CommandPalette/TheCommandPalette.vue';
6
7
  import { default as default_2 } from 'react';
8
+ import { Environment } from '@scalar/oas-utils/entities/environment';
7
9
  import { ErrorResponse } from '@scalar/api-client/libs';
8
10
  import { EventBus } from '@scalar/api-client/libs';
9
11
  import { OpenAPIV3_1 } from '@scalar/openapi-types';
@@ -21,6 +23,7 @@ import { RequestPayload } from '@scalar/oas-utils/entities/spec';
21
23
  import { RequestStatus } from '@scalar/api-client/libs';
22
24
  import { SecurityScheme } from '@scalar/oas-utils/entities/spec';
23
25
  import { SecuritySchemePayload } from '@scalar/oas-utils/entities/spec';
26
+ import { Server } from '@scalar/oas-utils/entities/spec';
24
27
  import { ServerPayload } from '@scalar/oas-utils/entities/spec';
25
28
  import { SpecConfiguration } from '@scalar/types';
26
29
  import { Tag } from '@scalar/oas-utils/entities/spec';
@@ -64,13 +67,13 @@ export declare const useApiClientModal: () => {
64
67
  };
65
68
  store: {
66
69
  workspaces: Record<string, {
67
- uid: string;
70
+ uid: string & BRAND<"workspace">;
68
71
  name: string;
69
72
  description: string;
70
- collections: string[];
73
+ collections: (string & BRAND<"collection">)[];
71
74
  environments: Record<string, string>;
72
75
  activeEnvironmentId: string;
73
- cookies: string[];
76
+ cookies: (string & BRAND<"cookie">)[];
74
77
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
75
78
  selectedHttpClient: {
76
79
  targetKey: string;
@@ -87,17 +90,16 @@ export declare const useApiClientModal: () => {
87
90
  }>;
88
91
  collections: Record<string, {
89
92
  type: "collection";
90
- uid: string;
91
- children: string[];
93
+ uid: string & BRAND<"collection">;
94
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
92
95
  openapi: string;
93
96
  security: Record<string, string[]>[];
94
97
  "x-scalar-icon": string;
95
98
  securitySchemes: string[];
96
- selectedSecuritySchemeUids: (string | string[])[];
97
- selectedServerUid: string;
98
- servers: string[];
99
- requests: string[];
100
- tags: string[];
99
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
100
+ servers: (string & BRAND<"server">)[];
101
+ requests: (string & BRAND<"operation">)[];
102
+ tags: (string & BRAND<"tag">)[];
101
103
  watchMode: boolean;
102
104
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
103
105
  externalDocs?: {
@@ -134,17 +136,18 @@ export declare const useApiClientModal: () => {
134
136
  color?: string | undefined;
135
137
  }> | undefined;
136
138
  "x-scalar-secrets"?: Record<string, {
137
- description?: string | undefined;
138
139
  example?: string | undefined;
140
+ description?: string | undefined;
139
141
  }> | undefined;
142
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
140
143
  documentUrl?: string | undefined;
141
144
  integration?: string | null | undefined;
142
145
  }>;
143
146
  tags: Record<string, {
144
147
  type: "tag";
145
- uid: string;
148
+ uid: string & BRAND<"tag">;
146
149
  name: string;
147
- children: string[];
150
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
148
151
  description?: string | undefined;
149
152
  externalDocs?: {
150
153
  url: string;
@@ -158,21 +161,21 @@ export declare const useApiClientModal: () => {
158
161
  }>;
159
162
  cookies: Record<string, {
160
163
  value: string;
161
- uid: string;
164
+ uid: string & BRAND<"cookie">;
162
165
  name: string;
163
166
  path?: string | undefined;
164
167
  domain?: string | undefined;
165
168
  }>;
166
169
  environments: Record<string, {
167
170
  value: string;
168
- uid: string;
171
+ uid: string & BRAND<"environment">;
169
172
  name: string;
170
173
  color: string;
171
174
  isDefault?: boolean | undefined;
172
175
  }>;
173
176
  requestExamples: Record<string, {
174
177
  type: "requestExample";
175
- uid: string;
178
+ uid: string & BRAND<"example">;
176
179
  name: string;
177
180
  parameters: {
178
181
  path: {
@@ -267,17 +270,17 @@ export declare const useApiClientModal: () => {
267
270
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
268
271
  } | undefined;
269
272
  };
270
- requestUid: string;
273
+ requestUid?: (string & BRAND<"operation">) | undefined;
271
274
  serverVariables?: Record<string, string[]> | undefined;
272
275
  }>;
273
276
  requests: Record<string, {
274
277
  path: string;
275
278
  type: "request";
276
- uid: string;
277
- selectedSecuritySchemeUids: (string | string[])[];
278
- selectedServerUid: string;
279
- servers: string[];
280
- examples: string[];
279
+ uid: string & BRAND<"operation">;
280
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
281
+ selectedServerUid: (string & BRAND<"server">) | null;
282
+ servers: (string & BRAND<"server">)[];
283
+ examples: (string & BRAND<"example">)[];
281
284
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
282
285
  description?: string | undefined;
283
286
  summary?: string | undefined;
@@ -294,10 +297,10 @@ export declare const useApiClientModal: () => {
294
297
  parameters?: {
295
298
  required: boolean;
296
299
  name: string;
297
- in: "path" | "query" | "header" | "cookie";
300
+ in: "path" | "cookie" | "query" | "header";
298
301
  deprecated: boolean;
299
- description?: string | undefined;
300
302
  example?: unknown;
303
+ description?: string | undefined;
301
304
  schema?: unknown;
302
305
  content?: unknown;
303
306
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -310,7 +313,7 @@ export declare const useApiClientModal: () => {
310
313
  responses?: Record<string, any> | undefined;
311
314
  }>;
312
315
  servers: Record<string, {
313
- uid: string;
316
+ uid: string & BRAND<"server">;
314
317
  url: string;
315
318
  description?: string | undefined;
316
319
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -321,14 +324,14 @@ export declare const useApiClientModal: () => {
321
324
  securitySchemes: Record<string, {
322
325
  type: "apiKey";
323
326
  value: string;
324
- uid: string;
327
+ uid: string & BRAND<"securityScheme">;
325
328
  name: string;
326
329
  nameKey: string;
327
- in: "query" | "header" | "cookie";
330
+ in: "cookie" | "query" | "header";
328
331
  description?: string | undefined;
329
332
  } | {
330
333
  type: "http";
331
- uid: string;
334
+ uid: string & BRAND<"securityScheme">;
332
335
  nameKey: string;
333
336
  scheme: "basic" | "bearer";
334
337
  bearerFormat: string;
@@ -338,13 +341,13 @@ export declare const useApiClientModal: () => {
338
341
  description?: string | undefined;
339
342
  } | {
340
343
  type: "openIdConnect";
341
- uid: string;
344
+ uid: string & BRAND<"securityScheme">;
342
345
  nameKey: string;
343
346
  openIdConnectUrl: string;
344
347
  description?: string | undefined;
345
348
  } | {
346
349
  type: "oauth2";
347
- uid: string;
350
+ uid: string & BRAND<"securityScheme">;
348
351
  nameKey: string;
349
352
  flows: {
350
353
  password?: {
@@ -422,7 +425,7 @@ export declare const useApiClientModal: () => {
422
425
  description?: string | undefined;
423
426
  url?: string | undefined;
424
427
  } | undefined;
425
- children?: (string | undefined)[] | undefined;
428
+ children?: string[] | undefined;
426
429
  openapi?: string | undefined;
427
430
  jsonSchemaDialect?: string | undefined;
428
431
  info?: {
@@ -456,15 +459,15 @@ export declare const useApiClientModal: () => {
456
459
  color?: string | undefined;
457
460
  }> | undefined;
458
461
  "x-scalar-secrets"?: Record<string, {
459
- description?: string | undefined;
460
462
  example?: string | undefined;
463
+ description?: string | undefined;
461
464
  }> | undefined;
462
465
  securitySchemes?: string[] | undefined;
463
- selectedSecuritySchemeUids?: (string | (string | undefined)[] | undefined)[] | undefined;
466
+ selectedSecuritySchemeUids?: (string | string[])[] | undefined;
464
467
  selectedServerUid?: string | undefined;
465
- servers?: (string | undefined)[] | undefined;
466
- requests?: (string | undefined)[] | undefined;
467
- tags?: (string | undefined)[] | undefined;
468
+ servers?: string[] | undefined;
469
+ requests?: string[] | undefined;
470
+ tags?: string[] | undefined;
468
471
  documentUrl?: string | undefined;
469
472
  watchMode?: boolean | undefined;
470
473
  integration?: string | null | undefined;
@@ -473,59 +476,14 @@ export declare const useApiClientModal: () => {
473
476
  setCollectionSecurity?: boolean;
474
477
  shouldLoad?: boolean;
475
478
  } & Pick<ReferenceConfiguration, "servers">) => Promise<{
476
- type: "collection";
477
- uid: string;
478
- children: string[];
479
- openapi: string;
480
- security: Record<string, string[]>[];
481
- "x-scalar-icon": string;
482
- securitySchemes: string[];
483
- selectedSecuritySchemeUids: (string | string[])[];
484
- selectedServerUid: string;
485
- servers: string[];
486
- requests: string[];
487
- tags: string[];
488
- watchMode: boolean;
489
- watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
490
- externalDocs?: {
491
- url: string;
492
- description?: string | undefined;
493
- } | undefined;
494
- jsonSchemaDialect?: string | undefined;
495
- info?: {
496
- title: string;
497
- version: string;
498
- description?: string | undefined;
499
- summary?: string | undefined;
500
- termsOfService?: string | undefined;
501
- contact?: {
502
- name?: string | undefined;
503
- url?: string | undefined;
504
- email?: string | undefined;
505
- } | undefined;
506
- license?: {
507
- name: string;
508
- identifier?: string | undefined;
509
- url?: string | undefined;
510
- } | undefined;
511
- } | undefined;
512
- components?: Record<string, unknown> | undefined;
513
- webhooks?: Record<string, unknown> | undefined;
514
- "x-scalar-active-environment"?: string | undefined;
515
- "x-scalar-environments"?: Record<string, {
516
- variables: Record<string, string | {
517
- default: string;
518
- description?: string | undefined;
519
- }>;
520
- description?: string | undefined;
521
- color?: string | undefined;
522
- }> | undefined;
523
- "x-scalar-secrets"?: Record<string, {
524
- description?: string | undefined;
525
- example?: string | undefined;
526
- }> | undefined;
527
- documentUrl?: string | undefined;
528
- integration?: string | null | undefined;
479
+ error: false;
480
+ collection: Collection;
481
+ requests: Request_2[];
482
+ schema: OpenAPIV3_1.Document;
483
+ examples: RequestExample[];
484
+ servers: Server[];
485
+ tags: Tag[];
486
+ securitySchemes: SecurityScheme[];
529
487
  } | undefined>;
530
488
  importSpecFromUrl: (url: string, workspaceUid: string, { proxyUrl, ...options }?: Omit<Pick<{
531
489
  type?: "collection" | undefined;
@@ -534,7 +492,7 @@ export declare const useApiClientModal: () => {
534
492
  description?: string | undefined;
535
493
  url?: string | undefined;
536
494
  } | undefined;
537
- children?: (string | undefined)[] | undefined;
495
+ children?: string[] | undefined;
538
496
  openapi?: string | undefined;
539
497
  jsonSchemaDialect?: string | undefined;
540
498
  info?: {
@@ -568,15 +526,15 @@ export declare const useApiClientModal: () => {
568
526
  color?: string | undefined;
569
527
  }> | undefined;
570
528
  "x-scalar-secrets"?: Record<string, {
571
- description?: string | undefined;
572
529
  example?: string | undefined;
530
+ description?: string | undefined;
573
531
  }> | undefined;
574
532
  securitySchemes?: string[] | undefined;
575
- selectedSecuritySchemeUids?: (string | (string | undefined)[] | undefined)[] | undefined;
533
+ selectedSecuritySchemeUids?: (string | string[])[] | undefined;
576
534
  selectedServerUid?: string | undefined;
577
- servers?: (string | undefined)[] | undefined;
578
- requests?: (string | undefined)[] | undefined;
579
- tags?: (string | undefined)[] | undefined;
535
+ servers?: string[] | undefined;
536
+ requests?: string[] | undefined;
537
+ tags?: string[] | undefined;
580
538
  documentUrl?: string | undefined;
581
539
  watchMode?: boolean | undefined;
582
540
  integration?: string | null | undefined;
@@ -591,7 +549,7 @@ export declare const useApiClientModal: () => {
591
549
  description?: string | undefined;
592
550
  url?: string | undefined;
593
551
  } | undefined;
594
- children?: (string | undefined)[] | undefined;
552
+ children?: string[] | undefined;
595
553
  openapi?: string | undefined;
596
554
  jsonSchemaDialect?: string | undefined;
597
555
  info?: {
@@ -625,15 +583,15 @@ export declare const useApiClientModal: () => {
625
583
  color?: string | undefined;
626
584
  }> | undefined;
627
585
  "x-scalar-secrets"?: Record<string, {
628
- description?: string | undefined;
629
586
  example?: string | undefined;
587
+ description?: string | undefined;
630
588
  }> | undefined;
631
589
  securitySchemes?: string[] | undefined;
632
- selectedSecuritySchemeUids?: (string | (string | undefined)[] | undefined)[] | undefined;
590
+ selectedSecuritySchemeUids?: (string | string[])[] | undefined;
633
591
  selectedServerUid?: string | undefined;
634
- servers?: (string | undefined)[] | undefined;
635
- requests?: (string | undefined)[] | undefined;
636
- tags?: (string | undefined)[] | undefined;
592
+ servers?: string[] | undefined;
593
+ requests?: string[] | undefined;
594
+ tags?: string[] | undefined;
637
595
  documentUrl?: string | undefined;
638
596
  watchMode?: boolean | undefined;
639
597
  integration?: string | null | undefined;
@@ -642,132 +600,86 @@ export declare const useApiClientModal: () => {
642
600
  setCollectionSecurity?: boolean;
643
601
  shouldLoad?: boolean;
644
602
  } & Pick<ReferenceConfiguration, "servers">) => Promise<{
645
- type: "collection";
646
- uid: string;
647
- children: string[];
648
- openapi: string;
649
- security: Record<string, string[]>[];
650
- "x-scalar-icon": string;
651
- securitySchemes: string[];
652
- selectedSecuritySchemeUids: (string | string[])[];
653
- selectedServerUid: string;
654
- servers: string[];
655
- requests: string[];
656
- tags: string[];
657
- watchMode: boolean;
658
- watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
659
- externalDocs?: {
660
- url: string;
661
- description?: string | undefined;
662
- } | undefined;
663
- jsonSchemaDialect?: string | undefined;
664
- info?: {
665
- title: string;
666
- version: string;
667
- description?: string | undefined;
668
- summary?: string | undefined;
669
- termsOfService?: string | undefined;
670
- contact?: {
671
- name?: string | undefined;
672
- url?: string | undefined;
673
- email?: string | undefined;
674
- } | undefined;
675
- license?: {
676
- name: string;
677
- identifier?: string | undefined;
678
- url?: string | undefined;
679
- } | undefined;
680
- } | undefined;
681
- components?: Record<string, unknown> | undefined;
682
- webhooks?: Record<string, unknown> | undefined;
683
- "x-scalar-active-environment"?: string | undefined;
684
- "x-scalar-environments"?: Record<string, {
685
- variables: Record<string, string | {
686
- default: string;
687
- description?: string | undefined;
688
- }>;
689
- description?: string | undefined;
690
- color?: string | undefined;
691
- }> | undefined;
692
- "x-scalar-secrets"?: Record<string, {
693
- description?: string | undefined;
694
- example?: string | undefined;
695
- }> | undefined;
696
- documentUrl?: string | undefined;
697
- integration?: string | null | undefined;
603
+ error: false;
604
+ collection: Collection;
605
+ requests: Request_2[];
606
+ schema: OpenAPIV3_1.Document;
607
+ examples: RequestExample[];
608
+ servers: Server[];
609
+ tags: Tag[];
610
+ securitySchemes: SecurityScheme[];
698
611
  } | undefined>>>>>;
699
612
  cookieMutators: {
700
613
  add: (item: {
701
614
  value: string;
702
- uid: string;
615
+ uid: string & BRAND<"cookie">;
703
616
  name: string;
704
617
  path?: string | undefined;
705
618
  domain?: string | undefined;
706
619
  }) => void;
707
- delete: (uid: string) => void;
620
+ delete: (uid: (string & BRAND<"cookie">) | null | undefined) => void;
708
621
  set: (item: {
709
622
  value: string;
710
- uid: string;
623
+ uid: string & BRAND<"cookie">;
711
624
  name: string;
712
625
  path?: string | undefined;
713
626
  domain?: string | undefined;
714
627
  }) => void;
715
- edit: <P extends "name" | "uid" | "path" | "value" | "domain">(uid: string, path: P, value: P extends "name" | "uid" | "path" | "value" | "domain" ? {
628
+ edit: <P extends "name" | "uid" | "path" | "value" | "domain">(uid: (string & BRAND<"cookie">) | null | undefined, path: P, value: P extends "name" | "uid" | "path" | "value" | "domain" ? {
716
629
  value: string;
717
- uid: string;
630
+ uid: string & BRAND<"cookie">;
718
631
  name: string;
719
632
  path?: string | undefined;
720
633
  domain?: string | undefined;
721
634
  }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "path" | "value" | "domain" ? R extends Path< {
722
635
  value: string;
723
- uid: string;
636
+ uid: string & BRAND<"cookie">;
724
637
  name: string;
725
638
  path?: string | undefined;
726
639
  domain?: string | undefined;
727
640
  }[K]> ? PathValue< {
728
641
  value: string;
729
- uid: string;
642
+ uid: string & BRAND<"cookie">;
730
643
  name: string;
731
644
  path?: string | undefined;
732
645
  domain?: string | undefined;
733
646
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
734
- untrackedEdit: <P extends "name" | "uid" | "path" | "value" | "domain">(uid: string, path: P, value: P extends "name" | "uid" | "path" | "value" | "domain" ? {
647
+ untrackedEdit: <P extends "name" | "uid" | "path" | "value" | "domain">(uid: string & BRAND<"cookie">, path: P, value: P extends "name" | "uid" | "path" | "value" | "domain" ? {
735
648
  value: string;
736
- uid: string;
649
+ uid: string & BRAND<"cookie">;
737
650
  name: string;
738
651
  path?: string | undefined;
739
652
  domain?: string | undefined;
740
653
  }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "path" | "value" | "domain" ? R extends Path< {
741
654
  value: string;
742
- uid: string;
655
+ uid: string & BRAND<"cookie">;
743
656
  name: string;
744
657
  path?: string | undefined;
745
658
  domain?: string | undefined;
746
659
  }[K]> ? PathValue< {
747
660
  value: string;
748
- uid: string;
661
+ uid: string & BRAND<"cookie">;
749
662
  name: string;
750
663
  path?: string | undefined;
751
664
  domain?: string | undefined;
752
665
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
753
- undo: (uid: string) => void;
754
- redo: (uid: string) => void;
666
+ undo: (uid: string & BRAND<"cookie">) => void;
667
+ redo: (uid: string & BRAND<"cookie">) => void;
755
668
  reset: () => void;
756
669
  };
757
670
  collectionMutators: {
758
671
  rawAdd: (item: {
759
672
  type: "collection";
760
- uid: string;
761
- children: string[];
673
+ uid: string & BRAND<"collection">;
674
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
762
675
  openapi: string;
763
676
  security: Record<string, string[]>[];
764
677
  "x-scalar-icon": string;
765
678
  securitySchemes: string[];
766
- selectedSecuritySchemeUids: (string | string[])[];
767
- selectedServerUid: string;
768
- servers: string[];
769
- requests: string[];
770
- tags: string[];
679
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
680
+ servers: (string & BRAND<"server">)[];
681
+ requests: (string & BRAND<"operation">)[];
682
+ tags: (string & BRAND<"tag">)[];
771
683
  watchMode: boolean;
772
684
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
773
685
  externalDocs?: {
@@ -804,25 +716,25 @@ export declare const useApiClientModal: () => {
804
716
  color?: string | undefined;
805
717
  }> | undefined;
806
718
  "x-scalar-secrets"?: Record<string, {
807
- description?: string | undefined;
808
719
  example?: string | undefined;
720
+ description?: string | undefined;
809
721
  }> | undefined;
722
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
810
723
  documentUrl?: string | undefined;
811
724
  integration?: string | null | undefined;
812
725
  }) => void;
813
- add: (payload: CollectionPayload, workspaceUid: string) => {
726
+ add: (payload: CollectionPayload, workspaceUid: Workspace["uid"]) => {
814
727
  type: "collection";
815
- uid: string;
816
- children: string[];
728
+ uid: string & BRAND<"collection">;
729
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
817
730
  openapi: string;
818
731
  security: Record<string, string[]>[];
819
732
  "x-scalar-icon": string;
820
733
  securitySchemes: string[];
821
- selectedSecuritySchemeUids: (string | string[])[];
822
- selectedServerUid: string;
823
- servers: string[];
824
- requests: string[];
825
- tags: string[];
734
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
735
+ servers: (string & BRAND<"server">)[];
736
+ requests: (string & BRAND<"operation">)[];
737
+ tags: (string & BRAND<"tag">)[];
826
738
  watchMode: boolean;
827
739
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
828
740
  externalDocs?: {
@@ -859,28 +771,28 @@ export declare const useApiClientModal: () => {
859
771
  color?: string | undefined;
860
772
  }> | undefined;
861
773
  "x-scalar-secrets"?: Record<string, {
862
- description?: string | undefined;
863
774
  example?: string | undefined;
775
+ description?: string | undefined;
864
776
  }> | undefined;
777
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
865
778
  documentUrl?: string | undefined;
866
779
  integration?: string | null | undefined;
867
780
  };
868
781
  delete: (collection: Collection, workspace: Workspace) => void;
869
- addEnvironment: (environmentName: string, environment: XScalarEnvironment, collectionUid: string) => void;
870
- removeEnvironment: (environmentName: string, collectionUid: string) => void;
782
+ addEnvironment: (environmentName: string, environment: XScalarEnvironment, collectionUid: Collection["uid"]) => void;
783
+ removeEnvironment: (environmentName: string, collectionUid: Collection["uid"]) => void;
871
784
  set: (item: {
872
785
  type: "collection";
873
- uid: string;
874
- children: string[];
786
+ uid: string & BRAND<"collection">;
787
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
875
788
  openapi: string;
876
789
  security: Record<string, string[]>[];
877
790
  "x-scalar-icon": string;
878
791
  securitySchemes: string[];
879
- selectedSecuritySchemeUids: (string | string[])[];
880
- selectedServerUid: string;
881
- servers: string[];
882
- requests: string[];
883
- tags: string[];
792
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
793
+ servers: (string & BRAND<"server">)[];
794
+ requests: (string & BRAND<"operation">)[];
795
+ tags: (string & BRAND<"tag">)[];
884
796
  watchMode: boolean;
885
797
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
886
798
  externalDocs?: {
@@ -917,25 +829,25 @@ export declare const useApiClientModal: () => {
917
829
  color?: string | undefined;
918
830
  }> | undefined;
919
831
  "x-scalar-secrets"?: Record<string, {
920
- description?: string | undefined;
921
832
  example?: string | undefined;
833
+ description?: string | undefined;
922
834
  }> | undefined;
835
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
923
836
  documentUrl?: string | undefined;
924
837
  integration?: string | null | undefined;
925
838
  }) => void;
926
- edit: <P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" ? {
839
+ edit: <P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: (string & BRAND<"collection">) | null | undefined, path: P, value: P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
927
840
  type: "collection";
928
- uid: string;
929
- children: string[];
841
+ uid: string & BRAND<"collection">;
842
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
930
843
  openapi: string;
931
844
  security: Record<string, string[]>[];
932
845
  "x-scalar-icon": string;
933
846
  securitySchemes: string[];
934
- selectedSecuritySchemeUids: (string | string[])[];
935
- selectedServerUid: string;
936
- servers: string[];
937
- requests: string[];
938
- tags: string[];
847
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
848
+ servers: (string & BRAND<"server">)[];
849
+ requests: (string & BRAND<"operation">)[];
850
+ tags: (string & BRAND<"tag">)[];
939
851
  watchMode: boolean;
940
852
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
941
853
  externalDocs?: {
@@ -972,24 +884,24 @@ export declare const useApiClientModal: () => {
972
884
  color?: string | undefined;
973
885
  }> | undefined;
974
886
  "x-scalar-secrets"?: Record<string, {
975
- description?: string | undefined;
976
887
  example?: string | undefined;
888
+ description?: string | undefined;
977
889
  }> | undefined;
890
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
978
891
  documentUrl?: string | undefined;
979
892
  integration?: string | null | undefined;
980
- }[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" ? R extends Path< {
893
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends Path< {
981
894
  type: "collection";
982
- uid: string;
983
- children: string[];
895
+ uid: string & BRAND<"collection">;
896
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
984
897
  openapi: string;
985
898
  security: Record<string, string[]>[];
986
899
  "x-scalar-icon": string;
987
900
  securitySchemes: string[];
988
- selectedSecuritySchemeUids: (string | string[])[];
989
- selectedServerUid: string;
990
- servers: string[];
991
- requests: string[];
992
- tags: string[];
901
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
902
+ servers: (string & BRAND<"server">)[];
903
+ requests: (string & BRAND<"operation">)[];
904
+ tags: (string & BRAND<"tag">)[];
993
905
  watchMode: boolean;
994
906
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
995
907
  externalDocs?: {
@@ -1026,24 +938,24 @@ export declare const useApiClientModal: () => {
1026
938
  color?: string | undefined;
1027
939
  }> | undefined;
1028
940
  "x-scalar-secrets"?: Record<string, {
1029
- description?: string | undefined;
1030
941
  example?: string | undefined;
942
+ description?: string | undefined;
1031
943
  }> | undefined;
944
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
1032
945
  documentUrl?: string | undefined;
1033
946
  integration?: string | null | undefined;
1034
947
  }[K]> ? PathValue< {
1035
948
  type: "collection";
1036
- uid: string;
1037
- children: string[];
949
+ uid: string & BRAND<"collection">;
950
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
1038
951
  openapi: string;
1039
952
  security: Record<string, string[]>[];
1040
953
  "x-scalar-icon": string;
1041
954
  securitySchemes: string[];
1042
- selectedSecuritySchemeUids: (string | string[])[];
1043
- selectedServerUid: string;
1044
- servers: string[];
1045
- requests: string[];
1046
- tags: string[];
955
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
956
+ servers: (string & BRAND<"server">)[];
957
+ requests: (string & BRAND<"operation">)[];
958
+ tags: (string & BRAND<"tag">)[];
1047
959
  watchMode: boolean;
1048
960
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
1049
961
  externalDocs?: {
@@ -1080,25 +992,25 @@ export declare const useApiClientModal: () => {
1080
992
  color?: string | undefined;
1081
993
  }> | undefined;
1082
994
  "x-scalar-secrets"?: Record<string, {
1083
- description?: string | undefined;
1084
995
  example?: string | undefined;
996
+ description?: string | undefined;
1085
997
  }> | undefined;
998
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
1086
999
  documentUrl?: string | undefined;
1087
1000
  integration?: string | null | undefined;
1088
1001
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1089
- untrackedEdit: <P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" ? {
1002
+ untrackedEdit: <P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `requests.${number}` | `x-scalar-environments.${string}` | `children.${number}` | `securitySchemes.${number}` | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "info.summary" | "info.description" | "info.title" | "info.version" | "info.termsOfService" | "info.contact" | "info.license" | "info.contact.name" | "info.contact.url" | "info.contact.email" | "info.license.name" | "info.license.url" | "info.license.identifier" | `components.${string}` | `webhooks.${string}` | `x-scalar-secrets.${string}`>(uid: string & BRAND<"collection">, path: P, value: P extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? {
1090
1003
  type: "collection";
1091
- uid: string;
1092
- children: string[];
1004
+ uid: string & BRAND<"collection">;
1005
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
1093
1006
  openapi: string;
1094
1007
  security: Record<string, string[]>[];
1095
1008
  "x-scalar-icon": string;
1096
1009
  securitySchemes: string[];
1097
- selectedSecuritySchemeUids: (string | string[])[];
1098
- selectedServerUid: string;
1099
- servers: string[];
1100
- requests: string[];
1101
- tags: string[];
1010
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1011
+ servers: (string & BRAND<"server">)[];
1012
+ requests: (string & BRAND<"operation">)[];
1013
+ tags: (string & BRAND<"tag">)[];
1102
1014
  watchMode: boolean;
1103
1015
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
1104
1016
  externalDocs?: {
@@ -1135,24 +1047,24 @@ export declare const useApiClientModal: () => {
1135
1047
  color?: string | undefined;
1136
1048
  }> | undefined;
1137
1049
  "x-scalar-secrets"?: Record<string, {
1138
- description?: string | undefined;
1139
1050
  example?: string | undefined;
1051
+ description?: string | undefined;
1140
1052
  }> | undefined;
1053
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
1141
1054
  documentUrl?: string | undefined;
1142
1055
  integration?: string | null | undefined;
1143
- }[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "selectedServerUid" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "documentUrl" | "integration" ? R extends Path< {
1056
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "security" | "externalDocs" | "type" | "uid" | "requests" | "x-scalar-environments" | "children" | "openapi" | "x-scalar-icon" | "securitySchemes" | "selectedSecuritySchemeUids" | "watchMode" | "watchModeStatus" | "jsonSchemaDialect" | "info" | "components" | "webhooks" | "x-scalar-active-environment" | "x-scalar-secrets" | "selectedServerUid" | "documentUrl" | "integration" ? R extends Path< {
1144
1057
  type: "collection";
1145
- uid: string;
1146
- children: string[];
1058
+ uid: string & BRAND<"collection">;
1059
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
1147
1060
  openapi: string;
1148
1061
  security: Record<string, string[]>[];
1149
1062
  "x-scalar-icon": string;
1150
1063
  securitySchemes: string[];
1151
- selectedSecuritySchemeUids: (string | string[])[];
1152
- selectedServerUid: string;
1153
- servers: string[];
1154
- requests: string[];
1155
- tags: string[];
1064
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1065
+ servers: (string & BRAND<"server">)[];
1066
+ requests: (string & BRAND<"operation">)[];
1067
+ tags: (string & BRAND<"tag">)[];
1156
1068
  watchMode: boolean;
1157
1069
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
1158
1070
  externalDocs?: {
@@ -1189,24 +1101,24 @@ export declare const useApiClientModal: () => {
1189
1101
  color?: string | undefined;
1190
1102
  }> | undefined;
1191
1103
  "x-scalar-secrets"?: Record<string, {
1192
- description?: string | undefined;
1193
1104
  example?: string | undefined;
1105
+ description?: string | undefined;
1194
1106
  }> | undefined;
1107
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
1195
1108
  documentUrl?: string | undefined;
1196
1109
  integration?: string | null | undefined;
1197
1110
  }[K]> ? PathValue< {
1198
1111
  type: "collection";
1199
- uid: string;
1200
- children: string[];
1112
+ uid: string & BRAND<"collection">;
1113
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
1201
1114
  openapi: string;
1202
1115
  security: Record<string, string[]>[];
1203
1116
  "x-scalar-icon": string;
1204
1117
  securitySchemes: string[];
1205
- selectedSecuritySchemeUids: (string | string[])[];
1206
- selectedServerUid: string;
1207
- servers: string[];
1208
- requests: string[];
1209
- tags: string[];
1118
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1119
+ servers: (string & BRAND<"server">)[];
1120
+ requests: (string & BRAND<"operation">)[];
1121
+ tags: (string & BRAND<"tag">)[];
1210
1122
  watchMode: boolean;
1211
1123
  watchModeStatus: "IDLE" | "WATCHING" | "ERROR";
1212
1124
  externalDocs?: {
@@ -1243,83 +1155,84 @@ export declare const useApiClientModal: () => {
1243
1155
  color?: string | undefined;
1244
1156
  }> | undefined;
1245
1157
  "x-scalar-secrets"?: Record<string, {
1246
- description?: string | undefined;
1247
1158
  example?: string | undefined;
1159
+ description?: string | undefined;
1248
1160
  }> | undefined;
1161
+ selectedServerUid?: (string & BRAND<"server">) | undefined;
1249
1162
  documentUrl?: string | undefined;
1250
1163
  integration?: string | null | undefined;
1251
1164
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1252
- undo: (uid: string) => void;
1253
- redo: (uid: string) => void;
1165
+ undo: (uid: string & BRAND<"collection">) => void;
1166
+ redo: (uid: string & BRAND<"collection">) => void;
1254
1167
  reset: () => void;
1255
1168
  };
1256
1169
  environmentMutators: {
1257
- delete: (uid: string) => void;
1170
+ delete: (uid: Environment["uid"]) => void;
1258
1171
  add: (item: {
1259
1172
  value: string;
1260
- uid: string;
1173
+ uid: string & BRAND<"environment">;
1261
1174
  name: string;
1262
1175
  color: string;
1263
1176
  isDefault?: boolean | undefined;
1264
1177
  }) => void;
1265
1178
  set: (item: {
1266
1179
  value: string;
1267
- uid: string;
1180
+ uid: string & BRAND<"environment">;
1268
1181
  name: string;
1269
1182
  color: string;
1270
1183
  isDefault?: boolean | undefined;
1271
1184
  }) => void;
1272
- edit: <P extends "name" | "uid" | "color" | "isDefault" | "value">(uid: string, path: P, value: P extends "name" | "uid" | "color" | "isDefault" | "value" ? {
1185
+ edit: <P extends "name" | "uid" | "color" | "value" | "isDefault">(uid: (string & BRAND<"environment">) | null | undefined, path: P, value: P extends "name" | "uid" | "color" | "value" | "isDefault" ? {
1273
1186
  value: string;
1274
- uid: string;
1187
+ uid: string & BRAND<"environment">;
1275
1188
  name: string;
1276
1189
  color: string;
1277
1190
  isDefault?: boolean | undefined;
1278
- }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "color" | "isDefault" | "value" ? R extends Path< {
1191
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "color" | "value" | "isDefault" ? R extends Path< {
1279
1192
  value: string;
1280
- uid: string;
1193
+ uid: string & BRAND<"environment">;
1281
1194
  name: string;
1282
1195
  color: string;
1283
1196
  isDefault?: boolean | undefined;
1284
1197
  }[K]> ? PathValue< {
1285
1198
  value: string;
1286
- uid: string;
1199
+ uid: string & BRAND<"environment">;
1287
1200
  name: string;
1288
1201
  color: string;
1289
1202
  isDefault?: boolean | undefined;
1290
1203
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1291
- untrackedEdit: <P extends "name" | "uid" | "color" | "isDefault" | "value">(uid: string, path: P, value: P extends "name" | "uid" | "color" | "isDefault" | "value" ? {
1204
+ untrackedEdit: <P extends "name" | "uid" | "color" | "value" | "isDefault">(uid: string & BRAND<"environment">, path: P, value: P extends "name" | "uid" | "color" | "value" | "isDefault" ? {
1292
1205
  value: string;
1293
- uid: string;
1206
+ uid: string & BRAND<"environment">;
1294
1207
  name: string;
1295
1208
  color: string;
1296
1209
  isDefault?: boolean | undefined;
1297
- }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "color" | "isDefault" | "value" ? R extends Path< {
1210
+ }[P] : P extends `${infer K}.${infer R}` ? K extends "name" | "uid" | "color" | "value" | "isDefault" ? R extends Path< {
1298
1211
  value: string;
1299
- uid: string;
1212
+ uid: string & BRAND<"environment">;
1300
1213
  name: string;
1301
1214
  color: string;
1302
1215
  isDefault?: boolean | undefined;
1303
1216
  }[K]> ? PathValue< {
1304
1217
  value: string;
1305
- uid: string;
1218
+ uid: string & BRAND<"environment">;
1306
1219
  name: string;
1307
1220
  color: string;
1308
1221
  isDefault?: boolean | undefined;
1309
1222
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1310
- undo: (uid: string) => void;
1311
- redo: (uid: string) => void;
1223
+ undo: (uid: string & BRAND<"environment">) => void;
1224
+ redo: (uid: string & BRAND<"environment">) => void;
1312
1225
  reset: () => void;
1313
1226
  };
1314
1227
  requestMutators: {
1315
1228
  rawAdd: (item: {
1316
1229
  path: string;
1317
1230
  type: "request";
1318
- uid: string;
1319
- selectedSecuritySchemeUids: (string | string[])[];
1320
- selectedServerUid: string;
1321
- servers: string[];
1322
- examples: string[];
1231
+ uid: string & BRAND<"operation">;
1232
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1233
+ selectedServerUid: (string & BRAND<"server">) | null;
1234
+ servers: (string & BRAND<"server">)[];
1235
+ examples: (string & BRAND<"example">)[];
1323
1236
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1324
1237
  description?: string | undefined;
1325
1238
  summary?: string | undefined;
@@ -1336,10 +1249,10 @@ export declare const useApiClientModal: () => {
1336
1249
  parameters?: {
1337
1250
  required: boolean;
1338
1251
  name: string;
1339
- in: "path" | "query" | "header" | "cookie";
1252
+ in: "path" | "cookie" | "query" | "header";
1340
1253
  deprecated: boolean;
1341
- description?: string | undefined;
1342
1254
  example?: unknown;
1255
+ description?: string | undefined;
1343
1256
  schema?: unknown;
1344
1257
  content?: unknown;
1345
1258
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -1351,14 +1264,14 @@ export declare const useApiClientModal: () => {
1351
1264
  requestBody?: any;
1352
1265
  responses?: Record<string, any> | undefined;
1353
1266
  }) => void;
1354
- add: (payload: RequestPayload, collectionUid: string) => void | {
1267
+ add: (payload: RequestPayload, collectionUid: Collection["uid"]) => void | {
1355
1268
  path: string;
1356
1269
  type: "request";
1357
- uid: string;
1358
- selectedSecuritySchemeUids: (string | string[])[];
1359
- selectedServerUid: string;
1360
- servers: string[];
1361
- examples: string[];
1270
+ uid: string & BRAND<"operation">;
1271
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1272
+ selectedServerUid: (string & BRAND<"server">) | null;
1273
+ servers: (string & BRAND<"server">)[];
1274
+ examples: (string & BRAND<"example">)[];
1362
1275
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1363
1276
  description?: string | undefined;
1364
1277
  summary?: string | undefined;
@@ -1375,10 +1288,10 @@ export declare const useApiClientModal: () => {
1375
1288
  parameters?: {
1376
1289
  required: boolean;
1377
1290
  name: string;
1378
- in: "path" | "query" | "header" | "cookie";
1291
+ in: "path" | "cookie" | "query" | "header";
1379
1292
  deprecated: boolean;
1380
- description?: string | undefined;
1381
1293
  example?: unknown;
1294
+ description?: string | undefined;
1382
1295
  schema?: unknown;
1383
1296
  content?: unknown;
1384
1297
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -1390,15 +1303,15 @@ export declare const useApiClientModal: () => {
1390
1303
  requestBody?: any;
1391
1304
  responses?: Record<string, any> | undefined;
1392
1305
  };
1393
- delete: (request: Request_2, collectionUid: string) => void;
1306
+ delete: (request: Request_2, collectionUid: Collection["uid"]) => void;
1394
1307
  set: (item: {
1395
1308
  path: string;
1396
1309
  type: "request";
1397
- uid: string;
1398
- selectedSecuritySchemeUids: (string | string[])[];
1399
- selectedServerUid: string;
1400
- servers: string[];
1401
- examples: string[];
1310
+ uid: string & BRAND<"operation">;
1311
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1312
+ selectedServerUid: (string & BRAND<"server">) | null;
1313
+ servers: (string & BRAND<"server">)[];
1314
+ examples: (string & BRAND<"example">)[];
1402
1315
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1403
1316
  description?: string | undefined;
1404
1317
  summary?: string | undefined;
@@ -1415,10 +1328,10 @@ export declare const useApiClientModal: () => {
1415
1328
  parameters?: {
1416
1329
  required: boolean;
1417
1330
  name: string;
1418
- in: "path" | "query" | "header" | "cookie";
1331
+ in: "path" | "cookie" | "query" | "header";
1419
1332
  deprecated: boolean;
1420
- description?: string | undefined;
1421
1333
  example?: unknown;
1334
+ description?: string | undefined;
1422
1335
  schema?: unknown;
1423
1336
  content?: unknown;
1424
1337
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -1430,14 +1343,14 @@ export declare const useApiClientModal: () => {
1430
1343
  requestBody?: any;
1431
1344
  responses?: Record<string, any> | undefined;
1432
1345
  }) => void;
1433
- edit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "method" | "path" | "examples" | `examples.${number}` | `requestBody.${string}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.required` | `parameters.${number}.examples` | `parameters.${number}.deprecated` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.example` | `parameters.${number}.style` | `parameters.${number}.content` | `parameters.${number}.schema` | `parameters.${number}.examples.${string}` | `responses.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? {
1346
+ edit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "method" | "path" | "examples" | `examples.${number}` | `requestBody.${string}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.required` | `parameters.${number}.examples` | `parameters.${number}.deprecated` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.example` | `parameters.${number}.style` | `parameters.${number}.content` | `parameters.${number}.schema` | `parameters.${number}.examples.${string}` | `responses.${string}`>(uid: (string & BRAND<"operation">) | null | undefined, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? {
1434
1347
  path: string;
1435
1348
  type: "request";
1436
- uid: string;
1437
- selectedSecuritySchemeUids: (string | string[])[];
1438
- selectedServerUid: string;
1439
- servers: string[];
1440
- examples: string[];
1349
+ uid: string & BRAND<"operation">;
1350
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1351
+ selectedServerUid: (string & BRAND<"server">) | null;
1352
+ servers: (string & BRAND<"server">)[];
1353
+ examples: (string & BRAND<"example">)[];
1441
1354
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1442
1355
  description?: string | undefined;
1443
1356
  summary?: string | undefined;
@@ -1454,10 +1367,10 @@ export declare const useApiClientModal: () => {
1454
1367
  parameters?: {
1455
1368
  required: boolean;
1456
1369
  name: string;
1457
- in: "path" | "query" | "header" | "cookie";
1370
+ in: "path" | "cookie" | "query" | "header";
1458
1371
  deprecated: boolean;
1459
- description?: string | undefined;
1460
1372
  example?: unknown;
1373
+ description?: string | undefined;
1461
1374
  schema?: unknown;
1462
1375
  content?: unknown;
1463
1376
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -1471,11 +1384,11 @@ export declare const useApiClientModal: () => {
1471
1384
  }[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? R extends Path< {
1472
1385
  path: string;
1473
1386
  type: "request";
1474
- uid: string;
1475
- selectedSecuritySchemeUids: (string | string[])[];
1476
- selectedServerUid: string;
1477
- servers: string[];
1478
- examples: string[];
1387
+ uid: string & BRAND<"operation">;
1388
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1389
+ selectedServerUid: (string & BRAND<"server">) | null;
1390
+ servers: (string & BRAND<"server">)[];
1391
+ examples: (string & BRAND<"example">)[];
1479
1392
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1480
1393
  description?: string | undefined;
1481
1394
  summary?: string | undefined;
@@ -1492,10 +1405,10 @@ export declare const useApiClientModal: () => {
1492
1405
  parameters?: {
1493
1406
  required: boolean;
1494
1407
  name: string;
1495
- in: "path" | "query" | "header" | "cookie";
1408
+ in: "path" | "cookie" | "query" | "header";
1496
1409
  deprecated: boolean;
1497
- description?: string | undefined;
1498
1410
  example?: unknown;
1411
+ description?: string | undefined;
1499
1412
  schema?: unknown;
1500
1413
  content?: unknown;
1501
1414
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -1509,11 +1422,11 @@ export declare const useApiClientModal: () => {
1509
1422
  }[K]> ? PathValue< {
1510
1423
  path: string;
1511
1424
  type: "request";
1512
- uid: string;
1513
- selectedSecuritySchemeUids: (string | string[])[];
1514
- selectedServerUid: string;
1515
- servers: string[];
1516
- examples: string[];
1425
+ uid: string & BRAND<"operation">;
1426
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1427
+ selectedServerUid: (string & BRAND<"server">) | null;
1428
+ servers: (string & BRAND<"server">)[];
1429
+ examples: (string & BRAND<"example">)[];
1517
1430
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1518
1431
  description?: string | undefined;
1519
1432
  summary?: string | undefined;
@@ -1530,10 +1443,10 @@ export declare const useApiClientModal: () => {
1530
1443
  parameters?: {
1531
1444
  required: boolean;
1532
1445
  name: string;
1533
- in: "path" | "query" | "header" | "cookie";
1446
+ in: "path" | "cookie" | "query" | "header";
1534
1447
  deprecated: boolean;
1535
- description?: string | undefined;
1536
1448
  example?: unknown;
1449
+ description?: string | undefined;
1537
1450
  schema?: unknown;
1538
1451
  content?: unknown;
1539
1452
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -1545,14 +1458,14 @@ export declare const useApiClientModal: () => {
1545
1458
  requestBody?: any;
1546
1459
  responses?: Record<string, any> | undefined;
1547
1460
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1548
- untrackedEdit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "method" | "path" | "examples" | `examples.${number}` | `requestBody.${string}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.required` | `parameters.${number}.examples` | `parameters.${number}.deprecated` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.example` | `parameters.${number}.style` | `parameters.${number}.content` | `parameters.${number}.schema` | `parameters.${number}.examples.${string}` | `responses.${string}`>(uid: string, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? {
1461
+ untrackedEdit: <P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | `servers.${number}` | `tags.${number}` | `security.${number}` | `security.${number}.${string}` | "externalDocs.description" | "externalDocs.url" | `selectedSecuritySchemeUids.${number}` | `selectedSecuritySchemeUids.${number}.${number}` | "method" | "path" | "examples" | `examples.${number}` | `requestBody.${string}` | `parameters.${number}` | `parameters.${number}.description` | `parameters.${number}.required` | `parameters.${number}.examples` | `parameters.${number}.deprecated` | `parameters.${number}.name` | `parameters.${number}.in` | `parameters.${number}.example` | `parameters.${number}.style` | `parameters.${number}.content` | `parameters.${number}.schema` | `parameters.${number}.examples.${string}` | `responses.${string}`>(uid: string & BRAND<"operation">, path: P, value: P extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? {
1549
1462
  path: string;
1550
1463
  type: "request";
1551
- uid: string;
1552
- selectedSecuritySchemeUids: (string | string[])[];
1553
- selectedServerUid: string;
1554
- servers: string[];
1555
- examples: string[];
1464
+ uid: string & BRAND<"operation">;
1465
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1466
+ selectedServerUid: (string & BRAND<"server">) | null;
1467
+ servers: (string & BRAND<"server">)[];
1468
+ examples: (string & BRAND<"example">)[];
1556
1469
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1557
1470
  description?: string | undefined;
1558
1471
  summary?: string | undefined;
@@ -1569,10 +1482,10 @@ export declare const useApiClientModal: () => {
1569
1482
  parameters?: {
1570
1483
  required: boolean;
1571
1484
  name: string;
1572
- in: "path" | "query" | "header" | "cookie";
1485
+ in: "path" | "cookie" | "query" | "header";
1573
1486
  deprecated: boolean;
1574
- description?: string | undefined;
1575
1487
  example?: unknown;
1488
+ description?: string | undefined;
1576
1489
  schema?: unknown;
1577
1490
  content?: unknown;
1578
1491
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -1586,11 +1499,11 @@ export declare const useApiClientModal: () => {
1586
1499
  }[P] : P extends `${infer K}.${infer R}` ? K extends "servers" | "tags" | "summary" | "description" | "operationId" | "security" | "requestBody" | "parameters" | "externalDocs" | "deprecated" | "responses" | "x-internal" | "x-scalar-ignore" | "type" | "uid" | "selectedSecuritySchemeUids" | "selectedServerUid" | "method" | "path" | "examples" ? R extends Path< {
1587
1500
  path: string;
1588
1501
  type: "request";
1589
- uid: string;
1590
- selectedSecuritySchemeUids: (string | string[])[];
1591
- selectedServerUid: string;
1592
- servers: string[];
1593
- examples: string[];
1502
+ uid: string & BRAND<"operation">;
1503
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1504
+ selectedServerUid: (string & BRAND<"server">) | null;
1505
+ servers: (string & BRAND<"server">)[];
1506
+ examples: (string & BRAND<"example">)[];
1594
1507
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1595
1508
  description?: string | undefined;
1596
1509
  summary?: string | undefined;
@@ -1607,10 +1520,10 @@ export declare const useApiClientModal: () => {
1607
1520
  parameters?: {
1608
1521
  required: boolean;
1609
1522
  name: string;
1610
- in: "path" | "query" | "header" | "cookie";
1523
+ in: "path" | "cookie" | "query" | "header";
1611
1524
  deprecated: boolean;
1612
- description?: string | undefined;
1613
1525
  example?: unknown;
1526
+ description?: string | undefined;
1614
1527
  schema?: unknown;
1615
1528
  content?: unknown;
1616
1529
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -1624,11 +1537,11 @@ export declare const useApiClientModal: () => {
1624
1537
  }[K]> ? PathValue< {
1625
1538
  path: string;
1626
1539
  type: "request";
1627
- uid: string;
1628
- selectedSecuritySchemeUids: (string | string[])[];
1629
- selectedServerUid: string;
1630
- servers: string[];
1631
- examples: string[];
1540
+ uid: string & BRAND<"operation">;
1541
+ selectedSecuritySchemeUids: ((string & BRAND<"securityScheme">) | (string & BRAND<"securityScheme">)[])[];
1542
+ selectedServerUid: (string & BRAND<"server">) | null;
1543
+ servers: (string & BRAND<"server">)[];
1544
+ examples: (string & BRAND<"example">)[];
1632
1545
  method: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace";
1633
1546
  description?: string | undefined;
1634
1547
  summary?: string | undefined;
@@ -1645,10 +1558,10 @@ export declare const useApiClientModal: () => {
1645
1558
  parameters?: {
1646
1559
  required: boolean;
1647
1560
  name: string;
1648
- in: "path" | "query" | "header" | "cookie";
1561
+ in: "path" | "cookie" | "query" | "header";
1649
1562
  deprecated: boolean;
1650
- description?: string | undefined;
1651
1563
  example?: unknown;
1564
+ description?: string | undefined;
1652
1565
  schema?: unknown;
1653
1566
  content?: unknown;
1654
1567
  style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
@@ -1660,15 +1573,15 @@ export declare const useApiClientModal: () => {
1660
1573
  requestBody?: any;
1661
1574
  responses?: Record<string, any> | undefined;
1662
1575
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
1663
- undo: (uid: string) => void;
1664
- redo: (uid: string) => void;
1576
+ undo: (uid: string & BRAND<"operation">) => void;
1577
+ redo: (uid: string & BRAND<"operation">) => void;
1665
1578
  reset: () => void;
1666
1579
  };
1667
1580
  findRequestParents: (r: Request_2) => string[];
1668
1581
  requestExampleMutators: {
1669
1582
  rawAdd: (item: {
1670
1583
  type: "requestExample";
1671
- uid: string;
1584
+ uid: string & BRAND<"example">;
1672
1585
  name: string;
1673
1586
  parameters: {
1674
1587
  path: {
@@ -1763,12 +1676,12 @@ export declare const useApiClientModal: () => {
1763
1676
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
1764
1677
  } | undefined;
1765
1678
  };
1766
- requestUid: string;
1679
+ requestUid?: (string & BRAND<"operation">) | undefined;
1767
1680
  serverVariables?: Record<string, string[]> | undefined;
1768
1681
  }) => void;
1769
1682
  add: (request: Request_2, _name?: string) => {
1770
1683
  type: "requestExample";
1771
- uid: string;
1684
+ uid: string & BRAND<"example">;
1772
1685
  name: string;
1773
1686
  parameters: {
1774
1687
  path: {
@@ -1863,13 +1776,13 @@ export declare const useApiClientModal: () => {
1863
1776
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
1864
1777
  } | undefined;
1865
1778
  };
1866
- requestUid: string;
1779
+ requestUid?: (string & BRAND<"operation">) | undefined;
1867
1780
  serverVariables?: Record<string, string[]> | undefined;
1868
1781
  };
1869
1782
  delete: (requestExample: RequestExample) => void;
1870
1783
  set: (item: {
1871
1784
  type: "requestExample";
1872
- uid: string;
1785
+ uid: string & BRAND<"example">;
1873
1786
  name: string;
1874
1787
  parameters: {
1875
1788
  path: {
@@ -1964,12 +1877,12 @@ export declare const useApiClientModal: () => {
1964
1877
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
1965
1878
  } | undefined;
1966
1879
  };
1967
- requestUid: string;
1880
+ requestUid?: (string & BRAND<"operation">) | undefined;
1968
1881
  serverVariables?: Record<string, string[]> | undefined;
1969
1882
  }) => void;
1970
- edit: <P extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" | "body.binary" | "parameters.cookies" | `parameters.cookies.${number}` | "parameters.path" | "parameters.headers" | "parameters.query" | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.examples` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.nullable` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.type.${number}` | `parameters.cookies.${number}.default.${string}` | `parameters.cookies.${number}.examples.${number}` | `parameters.cookies.${number}.file.${string}` | `parameters.cookies.${number}.enum.${number}` | `parameters.path.${number}` | `parameters.path.${number}.description` | `parameters.path.${number}.type` | `parameters.path.${number}.default` | `parameters.path.${number}.key` | `parameters.path.${number}.required` | `parameters.path.${number}.examples` | `parameters.path.${number}.file` | `parameters.path.${number}.value` | `parameters.path.${number}.enum` | `parameters.path.${number}.nullable` | `parameters.path.${number}.enabled` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.format` | `parameters.path.${number}.type.${number}` | `parameters.path.${number}.default.${string}` | `parameters.path.${number}.examples.${number}` | `parameters.path.${number}.file.${string}` | `parameters.path.${number}.enum.${number}` | `parameters.headers.${number}` | `parameters.headers.${number}.description` | `parameters.headers.${number}.type` | `parameters.headers.${number}.default` | `parameters.headers.${number}.key` | `parameters.headers.${number}.required` | `parameters.headers.${number}.examples` | `parameters.headers.${number}.file` | `parameters.headers.${number}.value` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.nullable` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.format` | `parameters.headers.${number}.type.${number}` | `parameters.headers.${number}.default.${string}` | `parameters.headers.${number}.examples.${number}` | `parameters.headers.${number}.file.${string}` | `parameters.headers.${number}.enum.${number}` | `parameters.query.${number}` | `parameters.query.${number}.description` | `parameters.query.${number}.type` | `parameters.query.${number}.default` | `parameters.query.${number}.key` | `parameters.query.${number}.required` | `parameters.query.${number}.examples` | `parameters.query.${number}.file` | `parameters.query.${number}.value` | `parameters.query.${number}.enum` | `parameters.query.${number}.nullable` | `parameters.query.${number}.enabled` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.format` | `parameters.query.${number}.type.${number}` | `parameters.query.${number}.default.${string}` | `parameters.query.${number}.examples.${number}` | `parameters.query.${number}.file.${string}` | `parameters.query.${number}.enum.${number}` | "body.formData" | "body.raw" | "body.activeBody" | "body.binary.type" | "body.binary.size" | "body.binary.slice" | "body.binary.text" | "body.binary.arrayBuffer" | "body.binary.stream" | "body.formData.value" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.description` | `body.formData.value.${number}.type` | `body.formData.value.${number}.default` | `body.formData.value.${number}.key` | `body.formData.value.${number}.required` | `body.formData.value.${number}.examples` | `body.formData.value.${number}.file` | `body.formData.value.${number}.value` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.nullable` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.format` | `body.formData.value.${number}.type.${number}` | `body.formData.value.${number}.default.${string}` | `body.formData.value.${number}.examples.${number}` | `body.formData.value.${number}.file.${string}` | `body.formData.value.${number}.enum.${number}` | "body.raw.value" | "body.raw.encoding" | `serverVariables.${string}`>(uid: string, path: P, value: P extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" ? {
1883
+ edit: <P extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" | "body.formData.value" | "parameters.cookies" | `parameters.cookies.${number}` | "parameters.path" | "parameters.headers" | "parameters.query" | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.examples` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.nullable` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.type.${number}` | `parameters.cookies.${number}.default.${string}` | `parameters.cookies.${number}.examples.${number}` | `parameters.cookies.${number}.file.${string}` | `parameters.cookies.${number}.enum.${number}` | `parameters.path.${number}` | `parameters.path.${number}.description` | `parameters.path.${number}.type` | `parameters.path.${number}.default` | `parameters.path.${number}.key` | `parameters.path.${number}.required` | `parameters.path.${number}.examples` | `parameters.path.${number}.file` | `parameters.path.${number}.value` | `parameters.path.${number}.enum` | `parameters.path.${number}.nullable` | `parameters.path.${number}.enabled` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.format` | `parameters.path.${number}.type.${number}` | `parameters.path.${number}.default.${string}` | `parameters.path.${number}.examples.${number}` | `parameters.path.${number}.file.${string}` | `parameters.path.${number}.enum.${number}` | `parameters.headers.${number}` | `parameters.headers.${number}.description` | `parameters.headers.${number}.type` | `parameters.headers.${number}.default` | `parameters.headers.${number}.key` | `parameters.headers.${number}.required` | `parameters.headers.${number}.examples` | `parameters.headers.${number}.file` | `parameters.headers.${number}.value` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.nullable` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.format` | `parameters.headers.${number}.type.${number}` | `parameters.headers.${number}.default.${string}` | `parameters.headers.${number}.examples.${number}` | `parameters.headers.${number}.file.${string}` | `parameters.headers.${number}.enum.${number}` | `parameters.query.${number}` | `parameters.query.${number}.description` | `parameters.query.${number}.type` | `parameters.query.${number}.default` | `parameters.query.${number}.key` | `parameters.query.${number}.required` | `parameters.query.${number}.examples` | `parameters.query.${number}.file` | `parameters.query.${number}.value` | `parameters.query.${number}.enum` | `parameters.query.${number}.nullable` | `parameters.query.${number}.enabled` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.format` | `parameters.query.${number}.type.${number}` | `parameters.query.${number}.default.${string}` | `parameters.query.${number}.examples.${number}` | `parameters.query.${number}.file.${string}` | `parameters.query.${number}.enum.${number}` | "body.binary" | "body.formData" | "body.raw" | "body.activeBody" | "body.binary.type" | "body.binary.size" | "body.binary.slice" | "body.binary.text" | "body.binary.arrayBuffer" | "body.binary.stream" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.description` | `body.formData.value.${number}.type` | `body.formData.value.${number}.default` | `body.formData.value.${number}.key` | `body.formData.value.${number}.required` | `body.formData.value.${number}.examples` | `body.formData.value.${number}.file` | `body.formData.value.${number}.value` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.nullable` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.format` | `body.formData.value.${number}.type.${number}` | `body.formData.value.${number}.default.${string}` | `body.formData.value.${number}.examples.${number}` | `body.formData.value.${number}.file.${string}` | `body.formData.value.${number}.enum.${number}` | "body.raw.value" | "body.raw.encoding" | `serverVariables.${string}`>(uid: (string & BRAND<"example">) | null | undefined, path: P, value: P extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" ? {
1971
1884
  type: "requestExample";
1972
- uid: string;
1885
+ uid: string & BRAND<"example">;
1973
1886
  name: string;
1974
1887
  parameters: {
1975
1888
  path: {
@@ -2064,11 +1977,11 @@ export declare const useApiClientModal: () => {
2064
1977
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2065
1978
  } | undefined;
2066
1979
  };
2067
- requestUid: string;
1980
+ requestUid?: (string & BRAND<"operation">) | undefined;
2068
1981
  serverVariables?: Record<string, string[]> | undefined;
2069
1982
  }[P] : P extends `${infer K}.${infer R}` ? K extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" ? R extends Path< {
2070
1983
  type: "requestExample";
2071
- uid: string;
1984
+ uid: string & BRAND<"example">;
2072
1985
  name: string;
2073
1986
  parameters: {
2074
1987
  path: {
@@ -2163,11 +2076,11 @@ export declare const useApiClientModal: () => {
2163
2076
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2164
2077
  } | undefined;
2165
2078
  };
2166
- requestUid: string;
2079
+ requestUid?: (string & BRAND<"operation">) | undefined;
2167
2080
  serverVariables?: Record<string, string[]> | undefined;
2168
2081
  }[K]> ? PathValue< {
2169
2082
  type: "requestExample";
2170
- uid: string;
2083
+ uid: string & BRAND<"example">;
2171
2084
  name: string;
2172
2085
  parameters: {
2173
2086
  path: {
@@ -2262,12 +2175,12 @@ export declare const useApiClientModal: () => {
2262
2175
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2263
2176
  } | undefined;
2264
2177
  };
2265
- requestUid: string;
2178
+ requestUid?: (string & BRAND<"operation">) | undefined;
2266
2179
  serverVariables?: Record<string, string[]> | undefined;
2267
2180
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
2268
- untrackedEdit: <P extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" | "body.binary" | "parameters.cookies" | `parameters.cookies.${number}` | "parameters.path" | "parameters.headers" | "parameters.query" | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.examples` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.nullable` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.type.${number}` | `parameters.cookies.${number}.default.${string}` | `parameters.cookies.${number}.examples.${number}` | `parameters.cookies.${number}.file.${string}` | `parameters.cookies.${number}.enum.${number}` | `parameters.path.${number}` | `parameters.path.${number}.description` | `parameters.path.${number}.type` | `parameters.path.${number}.default` | `parameters.path.${number}.key` | `parameters.path.${number}.required` | `parameters.path.${number}.examples` | `parameters.path.${number}.file` | `parameters.path.${number}.value` | `parameters.path.${number}.enum` | `parameters.path.${number}.nullable` | `parameters.path.${number}.enabled` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.format` | `parameters.path.${number}.type.${number}` | `parameters.path.${number}.default.${string}` | `parameters.path.${number}.examples.${number}` | `parameters.path.${number}.file.${string}` | `parameters.path.${number}.enum.${number}` | `parameters.headers.${number}` | `parameters.headers.${number}.description` | `parameters.headers.${number}.type` | `parameters.headers.${number}.default` | `parameters.headers.${number}.key` | `parameters.headers.${number}.required` | `parameters.headers.${number}.examples` | `parameters.headers.${number}.file` | `parameters.headers.${number}.value` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.nullable` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.format` | `parameters.headers.${number}.type.${number}` | `parameters.headers.${number}.default.${string}` | `parameters.headers.${number}.examples.${number}` | `parameters.headers.${number}.file.${string}` | `parameters.headers.${number}.enum.${number}` | `parameters.query.${number}` | `parameters.query.${number}.description` | `parameters.query.${number}.type` | `parameters.query.${number}.default` | `parameters.query.${number}.key` | `parameters.query.${number}.required` | `parameters.query.${number}.examples` | `parameters.query.${number}.file` | `parameters.query.${number}.value` | `parameters.query.${number}.enum` | `parameters.query.${number}.nullable` | `parameters.query.${number}.enabled` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.format` | `parameters.query.${number}.type.${number}` | `parameters.query.${number}.default.${string}` | `parameters.query.${number}.examples.${number}` | `parameters.query.${number}.file.${string}` | `parameters.query.${number}.enum.${number}` | "body.formData" | "body.raw" | "body.activeBody" | "body.binary.type" | "body.binary.size" | "body.binary.slice" | "body.binary.text" | "body.binary.arrayBuffer" | "body.binary.stream" | "body.formData.value" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.description` | `body.formData.value.${number}.type` | `body.formData.value.${number}.default` | `body.formData.value.${number}.key` | `body.formData.value.${number}.required` | `body.formData.value.${number}.examples` | `body.formData.value.${number}.file` | `body.formData.value.${number}.value` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.nullable` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.format` | `body.formData.value.${number}.type.${number}` | `body.formData.value.${number}.default.${string}` | `body.formData.value.${number}.examples.${number}` | `body.formData.value.${number}.file.${string}` | `body.formData.value.${number}.enum.${number}` | "body.raw.value" | "body.raw.encoding" | `serverVariables.${string}`>(uid: string, path: P, value: P extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" ? {
2181
+ untrackedEdit: <P extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" | "body.formData.value" | "parameters.cookies" | `parameters.cookies.${number}` | "parameters.path" | "parameters.headers" | "parameters.query" | `parameters.cookies.${number}.description` | `parameters.cookies.${number}.type` | `parameters.cookies.${number}.default` | `parameters.cookies.${number}.key` | `parameters.cookies.${number}.required` | `parameters.cookies.${number}.examples` | `parameters.cookies.${number}.file` | `parameters.cookies.${number}.value` | `parameters.cookies.${number}.enum` | `parameters.cookies.${number}.nullable` | `parameters.cookies.${number}.enabled` | `parameters.cookies.${number}.minimum` | `parameters.cookies.${number}.maximum` | `parameters.cookies.${number}.format` | `parameters.cookies.${number}.type.${number}` | `parameters.cookies.${number}.default.${string}` | `parameters.cookies.${number}.examples.${number}` | `parameters.cookies.${number}.file.${string}` | `parameters.cookies.${number}.enum.${number}` | `parameters.path.${number}` | `parameters.path.${number}.description` | `parameters.path.${number}.type` | `parameters.path.${number}.default` | `parameters.path.${number}.key` | `parameters.path.${number}.required` | `parameters.path.${number}.examples` | `parameters.path.${number}.file` | `parameters.path.${number}.value` | `parameters.path.${number}.enum` | `parameters.path.${number}.nullable` | `parameters.path.${number}.enabled` | `parameters.path.${number}.minimum` | `parameters.path.${number}.maximum` | `parameters.path.${number}.format` | `parameters.path.${number}.type.${number}` | `parameters.path.${number}.default.${string}` | `parameters.path.${number}.examples.${number}` | `parameters.path.${number}.file.${string}` | `parameters.path.${number}.enum.${number}` | `parameters.headers.${number}` | `parameters.headers.${number}.description` | `parameters.headers.${number}.type` | `parameters.headers.${number}.default` | `parameters.headers.${number}.key` | `parameters.headers.${number}.required` | `parameters.headers.${number}.examples` | `parameters.headers.${number}.file` | `parameters.headers.${number}.value` | `parameters.headers.${number}.enum` | `parameters.headers.${number}.nullable` | `parameters.headers.${number}.enabled` | `parameters.headers.${number}.minimum` | `parameters.headers.${number}.maximum` | `parameters.headers.${number}.format` | `parameters.headers.${number}.type.${number}` | `parameters.headers.${number}.default.${string}` | `parameters.headers.${number}.examples.${number}` | `parameters.headers.${number}.file.${string}` | `parameters.headers.${number}.enum.${number}` | `parameters.query.${number}` | `parameters.query.${number}.description` | `parameters.query.${number}.type` | `parameters.query.${number}.default` | `parameters.query.${number}.key` | `parameters.query.${number}.required` | `parameters.query.${number}.examples` | `parameters.query.${number}.file` | `parameters.query.${number}.value` | `parameters.query.${number}.enum` | `parameters.query.${number}.nullable` | `parameters.query.${number}.enabled` | `parameters.query.${number}.minimum` | `parameters.query.${number}.maximum` | `parameters.query.${number}.format` | `parameters.query.${number}.type.${number}` | `parameters.query.${number}.default.${string}` | `parameters.query.${number}.examples.${number}` | `parameters.query.${number}.file.${string}` | `parameters.query.${number}.enum.${number}` | "body.binary" | "body.formData" | "body.raw" | "body.activeBody" | "body.binary.type" | "body.binary.size" | "body.binary.slice" | "body.binary.text" | "body.binary.arrayBuffer" | "body.binary.stream" | "body.formData.encoding" | `body.formData.value.${number}` | `body.formData.value.${number}.description` | `body.formData.value.${number}.type` | `body.formData.value.${number}.default` | `body.formData.value.${number}.key` | `body.formData.value.${number}.required` | `body.formData.value.${number}.examples` | `body.formData.value.${number}.file` | `body.formData.value.${number}.value` | `body.formData.value.${number}.enum` | `body.formData.value.${number}.nullable` | `body.formData.value.${number}.enabled` | `body.formData.value.${number}.minimum` | `body.formData.value.${number}.maximum` | `body.formData.value.${number}.format` | `body.formData.value.${number}.type.${number}` | `body.formData.value.${number}.default.${string}` | `body.formData.value.${number}.examples.${number}` | `body.formData.value.${number}.file.${string}` | `body.formData.value.${number}.enum.${number}` | "body.raw.value" | "body.raw.encoding" | `serverVariables.${string}`>(uid: string & BRAND<"example">, path: P, value: P extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" ? {
2269
2182
  type: "requestExample";
2270
- uid: string;
2183
+ uid: string & BRAND<"example">;
2271
2184
  name: string;
2272
2185
  parameters: {
2273
2186
  path: {
@@ -2362,11 +2275,11 @@ export declare const useApiClientModal: () => {
2362
2275
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2363
2276
  } | undefined;
2364
2277
  };
2365
- requestUid: string;
2278
+ requestUid?: (string & BRAND<"operation">) | undefined;
2366
2279
  serverVariables?: Record<string, string[]> | undefined;
2367
2280
  }[P] : P extends `${infer K}.${infer R}` ? K extends "parameters" | "type" | "name" | "uid" | "body" | "requestUid" | "serverVariables" ? R extends Path< {
2368
2281
  type: "requestExample";
2369
- uid: string;
2282
+ uid: string & BRAND<"example">;
2370
2283
  name: string;
2371
2284
  parameters: {
2372
2285
  path: {
@@ -2461,11 +2374,11 @@ export declare const useApiClientModal: () => {
2461
2374
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2462
2375
  } | undefined;
2463
2376
  };
2464
- requestUid: string;
2377
+ requestUid?: (string & BRAND<"operation">) | undefined;
2465
2378
  serverVariables?: Record<string, string[]> | undefined;
2466
2379
  }[K]> ? PathValue< {
2467
2380
  type: "requestExample";
2468
- uid: string;
2381
+ uid: string & BRAND<"example">;
2469
2382
  name: string;
2470
2383
  parameters: {
2471
2384
  path: {
@@ -2560,11 +2473,11 @@ export declare const useApiClientModal: () => {
2560
2473
  encoding: "xml" | "text" | "json" | "html" | "javascript" | "yaml" | "edn";
2561
2474
  } | undefined;
2562
2475
  };
2563
- requestUid: string;
2476
+ requestUid?: (string & BRAND<"operation">) | undefined;
2564
2477
  serverVariables?: Record<string, string[]> | undefined;
2565
2478
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
2566
- undo: (uid: string) => void;
2567
- redo: (uid: string) => void;
2479
+ undo: (uid: string & BRAND<"example">) => void;
2480
+ redo: (uid: string & BRAND<"example">) => void;
2568
2481
  reset: () => void;
2569
2482
  };
2570
2483
  requestHistory: Reactive<RequestEvent[]>;
@@ -2572,14 +2485,14 @@ export declare const useApiClientModal: () => {
2572
2485
  rawAdd: (item: {
2573
2486
  type: "apiKey";
2574
2487
  value: string;
2575
- uid: string;
2488
+ uid: string & BRAND<"securityScheme">;
2576
2489
  name: string;
2577
2490
  nameKey: string;
2578
- in: "query" | "header" | "cookie";
2491
+ in: "cookie" | "query" | "header";
2579
2492
  description?: string | undefined;
2580
2493
  } | {
2581
2494
  type: "http";
2582
- uid: string;
2495
+ uid: string & BRAND<"securityScheme">;
2583
2496
  nameKey: string;
2584
2497
  scheme: "basic" | "bearer";
2585
2498
  bearerFormat: string;
@@ -2589,13 +2502,13 @@ export declare const useApiClientModal: () => {
2589
2502
  description?: string | undefined;
2590
2503
  } | {
2591
2504
  type: "openIdConnect";
2592
- uid: string;
2505
+ uid: string & BRAND<"securityScheme">;
2593
2506
  nameKey: string;
2594
2507
  openIdConnectUrl: string;
2595
2508
  description?: string | undefined;
2596
2509
  } | {
2597
2510
  type: "oauth2";
2598
- uid: string;
2511
+ uid: string & BRAND<"securityScheme">;
2599
2512
  nameKey: string;
2600
2513
  flows: {
2601
2514
  password?: {
@@ -2646,17 +2559,17 @@ export declare const useApiClientModal: () => {
2646
2559
  };
2647
2560
  description?: string | undefined;
2648
2561
  }) => void;
2649
- add: (payload: SecuritySchemePayload, collectionUid: string) => {
2562
+ add: (payload: SecuritySchemePayload, collectionUid: Collection["uid"]) => {
2650
2563
  type: "apiKey";
2651
2564
  value: string;
2652
- uid: string;
2565
+ uid: string & BRAND<"securityScheme">;
2653
2566
  name: string;
2654
2567
  nameKey: string;
2655
- in: "query" | "header" | "cookie";
2568
+ in: "cookie" | "query" | "header";
2656
2569
  description?: string | undefined;
2657
2570
  } | {
2658
2571
  type: "http";
2659
- uid: string;
2572
+ uid: string & BRAND<"securityScheme">;
2660
2573
  nameKey: string;
2661
2574
  scheme: "basic" | "bearer";
2662
2575
  bearerFormat: string;
@@ -2666,13 +2579,13 @@ export declare const useApiClientModal: () => {
2666
2579
  description?: string | undefined;
2667
2580
  } | {
2668
2581
  type: "openIdConnect";
2669
- uid: string;
2582
+ uid: string & BRAND<"securityScheme">;
2670
2583
  nameKey: string;
2671
2584
  openIdConnectUrl: string;
2672
2585
  description?: string | undefined;
2673
2586
  } | {
2674
2587
  type: "oauth2";
2675
- uid: string;
2588
+ uid: string & BRAND<"securityScheme">;
2676
2589
  nameKey: string;
2677
2590
  flows: {
2678
2591
  password?: {
@@ -2723,18 +2636,18 @@ export declare const useApiClientModal: () => {
2723
2636
  };
2724
2637
  description?: string | undefined;
2725
2638
  };
2726
- delete: (schemeUid: string) => void;
2639
+ delete: (schemeUid: SecurityScheme["uid"]) => void;
2727
2640
  set: (item: {
2728
2641
  type: "apiKey";
2729
2642
  value: string;
2730
- uid: string;
2643
+ uid: string & BRAND<"securityScheme">;
2731
2644
  name: string;
2732
2645
  nameKey: string;
2733
- in: "query" | "header" | "cookie";
2646
+ in: "cookie" | "query" | "header";
2734
2647
  description?: string | undefined;
2735
2648
  } | {
2736
2649
  type: "http";
2737
- uid: string;
2650
+ uid: string & BRAND<"securityScheme">;
2738
2651
  nameKey: string;
2739
2652
  scheme: "basic" | "bearer";
2740
2653
  bearerFormat: string;
@@ -2744,13 +2657,13 @@ export declare const useApiClientModal: () => {
2744
2657
  description?: string | undefined;
2745
2658
  } | {
2746
2659
  type: "openIdConnect";
2747
- uid: string;
2660
+ uid: string & BRAND<"securityScheme">;
2748
2661
  nameKey: string;
2749
2662
  openIdConnectUrl: string;
2750
2663
  description?: string | undefined;
2751
2664
  } | {
2752
2665
  type: "oauth2";
2753
- uid: string;
2666
+ uid: string & BRAND<"securityScheme">;
2754
2667
  nameKey: string;
2755
2668
  flows: {
2756
2669
  password?: {
@@ -2801,33 +2714,33 @@ export declare const useApiClientModal: () => {
2801
2714
  };
2802
2715
  description?: string | undefined;
2803
2716
  }) => void;
2804
- edit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: string, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
2717
+ edit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: (string & BRAND<"securityScheme">) | null | undefined, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
2805
2718
  type: "apiKey";
2806
2719
  value: string;
2807
- uid: string;
2720
+ uid: string & BRAND<"securityScheme">;
2808
2721
  name: string;
2809
2722
  nameKey: string;
2810
- in: "query" | "header" | "cookie";
2723
+ in: "cookie" | "query" | "header";
2811
2724
  description?: string | undefined;
2812
2725
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? R extends Path< {
2813
2726
  type: "apiKey";
2814
2727
  value: string;
2815
- uid: string;
2728
+ uid: string & BRAND<"securityScheme">;
2816
2729
  name: string;
2817
2730
  nameKey: string;
2818
- in: "query" | "header" | "cookie";
2731
+ in: "cookie" | "query" | "header";
2819
2732
  description?: string | undefined;
2820
2733
  }[K]> ? PathValue< {
2821
2734
  type: "apiKey";
2822
2735
  value: string;
2823
- uid: string;
2736
+ uid: string & BRAND<"securityScheme">;
2824
2737
  name: string;
2825
2738
  nameKey: string;
2826
- in: "query" | "header" | "cookie";
2739
+ in: "cookie" | "query" | "header";
2827
2740
  description?: string | undefined;
2828
2741
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? {
2829
2742
  type: "http";
2830
- uid: string;
2743
+ uid: string & BRAND<"securityScheme">;
2831
2744
  nameKey: string;
2832
2745
  scheme: "basic" | "bearer";
2833
2746
  bearerFormat: string;
@@ -2837,7 +2750,7 @@ export declare const useApiClientModal: () => {
2837
2750
  description?: string | undefined;
2838
2751
  }[P] : P extends `${infer K}.${infer R_1}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? R_1 extends Path< {
2839
2752
  type: "http";
2840
- uid: string;
2753
+ uid: string & BRAND<"securityScheme">;
2841
2754
  nameKey: string;
2842
2755
  scheme: "basic" | "bearer";
2843
2756
  bearerFormat: string;
@@ -2847,7 +2760,7 @@ export declare const useApiClientModal: () => {
2847
2760
  description?: string | undefined;
2848
2761
  }[K]> ? PathValue< {
2849
2762
  type: "http";
2850
- uid: string;
2763
+ uid: string & BRAND<"securityScheme">;
2851
2764
  nameKey: string;
2852
2765
  scheme: "basic" | "bearer";
2853
2766
  bearerFormat: string;
@@ -2857,25 +2770,25 @@ export declare const useApiClientModal: () => {
2857
2770
  description?: string | undefined;
2858
2771
  }[K], R_1> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
2859
2772
  type: "openIdConnect";
2860
- uid: string;
2773
+ uid: string & BRAND<"securityScheme">;
2861
2774
  nameKey: string;
2862
2775
  openIdConnectUrl: string;
2863
2776
  description?: string | undefined;
2864
2777
  }[P] : P extends `${infer K}.${infer R_2}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R_2 extends Path< {
2865
2778
  type: "openIdConnect";
2866
- uid: string;
2779
+ uid: string & BRAND<"securityScheme">;
2867
2780
  nameKey: string;
2868
2781
  openIdConnectUrl: string;
2869
2782
  description?: string | undefined;
2870
2783
  }[K]> ? PathValue< {
2871
2784
  type: "openIdConnect";
2872
- uid: string;
2785
+ uid: string & BRAND<"securityScheme">;
2873
2786
  nameKey: string;
2874
2787
  openIdConnectUrl: string;
2875
2788
  description?: string | undefined;
2876
2789
  }[K], R_2> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
2877
2790
  type: "oauth2";
2878
- uid: string;
2791
+ uid: string & BRAND<"securityScheme">;
2879
2792
  nameKey: string;
2880
2793
  flows: {
2881
2794
  password?: {
@@ -2927,7 +2840,7 @@ export declare const useApiClientModal: () => {
2927
2840
  description?: string | undefined;
2928
2841
  }[P] : P extends `${infer K}.${infer R_3}` ? K extends "description" | "type" | "uid" | "nameKey" | "flows" ? R_3 extends Path< {
2929
2842
  type: "oauth2";
2930
- uid: string;
2843
+ uid: string & BRAND<"securityScheme">;
2931
2844
  nameKey: string;
2932
2845
  flows: {
2933
2846
  password?: {
@@ -2979,7 +2892,7 @@ export declare const useApiClientModal: () => {
2979
2892
  description?: string | undefined;
2980
2893
  }[K]> ? PathValue< {
2981
2894
  type: "oauth2";
2982
- uid: string;
2895
+ uid: string & BRAND<"securityScheme">;
2983
2896
  nameKey: string;
2984
2897
  flows: {
2985
2898
  password?: {
@@ -3030,33 +2943,33 @@ export declare const useApiClientModal: () => {
3030
2943
  };
3031
2944
  description?: string | undefined;
3032
2945
  }[K], R_3> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
3033
- untrackedEdit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: string, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
2946
+ untrackedEdit: <P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "openIdConnectUrl" | "flows" | "value" | "password" | "token" | "username" | "flows.implicit" | "flows.password" | "flows.clientCredentials" | "flows.authorizationCode" | "flows.implicit.type" | "flows.implicit.token" | "flows.implicit.x-scalar-redirect-uri" | "flows.implicit.x-scalar-client-id" | "flows.implicit.refreshUrl" | "flows.implicit.scopes" | "flows.implicit.selectedScopes" | "flows.implicit.authorizationUrl" | `flows.implicit.scopes.${string}` | `flows.implicit.selectedScopes.${number}` | "flows.password.type" | "flows.password.password" | "flows.password.token" | "flows.password.x-scalar-client-id" | "flows.password.username" | "flows.password.tokenUrl" | "flows.password.clientSecret" | "flows.password.refreshUrl" | "flows.password.scopes" | "flows.password.selectedScopes" | `flows.password.scopes.${string}` | `flows.password.selectedScopes.${number}` | "flows.clientCredentials.type" | "flows.clientCredentials.token" | "flows.clientCredentials.x-scalar-client-id" | "flows.clientCredentials.tokenUrl" | "flows.clientCredentials.clientSecret" | "flows.clientCredentials.refreshUrl" | "flows.clientCredentials.scopes" | "flows.clientCredentials.selectedScopes" | `flows.clientCredentials.scopes.${string}` | `flows.clientCredentials.selectedScopes.${number}` | "flows.authorizationCode.type" | "flows.authorizationCode.token" | "flows.authorizationCode.x-usePkce" | "flows.authorizationCode.x-scalar-redirect-uri" | "flows.authorizationCode.x-scalar-client-id" | "flows.authorizationCode.tokenUrl" | "flows.authorizationCode.clientSecret" | "flows.authorizationCode.refreshUrl" | "flows.authorizationCode.scopes" | "flows.authorizationCode.selectedScopes" | "flows.authorizationCode.authorizationUrl" | `flows.authorizationCode.scopes.${string}` | `flows.authorizationCode.selectedScopes.${number}`>(uid: string & BRAND<"securityScheme">, path: P, value: (P extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? {
3034
2947
  type: "apiKey";
3035
2948
  value: string;
3036
- uid: string;
2949
+ uid: string & BRAND<"securityScheme">;
3037
2950
  name: string;
3038
2951
  nameKey: string;
3039
- in: "query" | "header" | "cookie";
2952
+ in: "cookie" | "query" | "header";
3040
2953
  description?: string | undefined;
3041
2954
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "type" | "name" | "in" | "uid" | "nameKey" | "value" ? R extends Path< {
3042
2955
  type: "apiKey";
3043
2956
  value: string;
3044
- uid: string;
2957
+ uid: string & BRAND<"securityScheme">;
3045
2958
  name: string;
3046
2959
  nameKey: string;
3047
- in: "query" | "header" | "cookie";
2960
+ in: "cookie" | "query" | "header";
3048
2961
  description?: string | undefined;
3049
2962
  }[K]> ? PathValue< {
3050
2963
  type: "apiKey";
3051
2964
  value: string;
3052
- uid: string;
2965
+ uid: string & BRAND<"securityScheme">;
3053
2966
  name: string;
3054
2967
  nameKey: string;
3055
- in: "query" | "header" | "cookie";
2968
+ in: "cookie" | "query" | "header";
3056
2969
  description?: string | undefined;
3057
2970
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? {
3058
2971
  type: "http";
3059
- uid: string;
2972
+ uid: string & BRAND<"securityScheme">;
3060
2973
  nameKey: string;
3061
2974
  scheme: "basic" | "bearer";
3062
2975
  bearerFormat: string;
@@ -3066,7 +2979,7 @@ export declare const useApiClientModal: () => {
3066
2979
  description?: string | undefined;
3067
2980
  }[P] : P extends `${infer K}.${infer R_1}` ? K extends "description" | "type" | "uid" | "nameKey" | "scheme" | "bearerFormat" | "password" | "token" | "username" ? R_1 extends Path< {
3068
2981
  type: "http";
3069
- uid: string;
2982
+ uid: string & BRAND<"securityScheme">;
3070
2983
  nameKey: string;
3071
2984
  scheme: "basic" | "bearer";
3072
2985
  bearerFormat: string;
@@ -3076,7 +2989,7 @@ export declare const useApiClientModal: () => {
3076
2989
  description?: string | undefined;
3077
2990
  }[K]> ? PathValue< {
3078
2991
  type: "http";
3079
- uid: string;
2992
+ uid: string & BRAND<"securityScheme">;
3080
2993
  nameKey: string;
3081
2994
  scheme: "basic" | "bearer";
3082
2995
  bearerFormat: string;
@@ -3086,25 +2999,25 @@ export declare const useApiClientModal: () => {
3086
2999
  description?: string | undefined;
3087
3000
  }[K], R_1> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? {
3088
3001
  type: "openIdConnect";
3089
- uid: string;
3002
+ uid: string & BRAND<"securityScheme">;
3090
3003
  nameKey: string;
3091
3004
  openIdConnectUrl: string;
3092
3005
  description?: string | undefined;
3093
3006
  }[P] : P extends `${infer K}.${infer R_2}` ? K extends "description" | "type" | "uid" | "nameKey" | "openIdConnectUrl" ? R_2 extends Path< {
3094
3007
  type: "openIdConnect";
3095
- uid: string;
3008
+ uid: string & BRAND<"securityScheme">;
3096
3009
  nameKey: string;
3097
3010
  openIdConnectUrl: string;
3098
3011
  description?: string | undefined;
3099
3012
  }[K]> ? PathValue< {
3100
3013
  type: "openIdConnect";
3101
- uid: string;
3014
+ uid: string & BRAND<"securityScheme">;
3102
3015
  nameKey: string;
3103
3016
  openIdConnectUrl: string;
3104
3017
  description?: string | undefined;
3105
3018
  }[K], R_2> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) | (P extends "description" | "type" | "uid" | "nameKey" | "flows" ? {
3106
3019
  type: "oauth2";
3107
- uid: string;
3020
+ uid: string & BRAND<"securityScheme">;
3108
3021
  nameKey: string;
3109
3022
  flows: {
3110
3023
  password?: {
@@ -3156,7 +3069,7 @@ export declare const useApiClientModal: () => {
3156
3069
  description?: string | undefined;
3157
3070
  }[P] : P extends `${infer K}.${infer R_3}` ? K extends "description" | "type" | "uid" | "nameKey" | "flows" ? R_3 extends Path< {
3158
3071
  type: "oauth2";
3159
- uid: string;
3072
+ uid: string & BRAND<"securityScheme">;
3160
3073
  nameKey: string;
3161
3074
  flows: {
3162
3075
  password?: {
@@ -3208,7 +3121,7 @@ export declare const useApiClientModal: () => {
3208
3121
  description?: string | undefined;
3209
3122
  }[K]> ? PathValue< {
3210
3123
  type: "oauth2";
3211
- uid: string;
3124
+ uid: string & BRAND<"securityScheme">;
3212
3125
  nameKey: string;
3213
3126
  flows: {
3214
3127
  password?: {
@@ -3259,13 +3172,13 @@ export declare const useApiClientModal: () => {
3259
3172
  };
3260
3173
  description?: string | undefined;
3261
3174
  }[K], R_3> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never)) => void;
3262
- undo: (uid: string) => void;
3263
- redo: (uid: string) => void;
3175
+ undo: (uid: string & BRAND<"securityScheme">) => void;
3176
+ redo: (uid: string & BRAND<"securityScheme">) => void;
3264
3177
  reset: () => void;
3265
3178
  };
3266
3179
  serverMutators: {
3267
3180
  rawAdd: (item: {
3268
- uid: string;
3181
+ uid: string & BRAND<"server">;
3269
3182
  url: string;
3270
3183
  description?: string | undefined;
3271
3184
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -3274,7 +3187,7 @@ export declare const useApiClientModal: () => {
3274
3187
  }> | undefined;
3275
3188
  }) => void;
3276
3189
  add: (payload: ServerPayload, parentUid: string) => {
3277
- uid: string;
3190
+ uid: string & BRAND<"server">;
3278
3191
  url: string;
3279
3192
  description?: string | undefined;
3280
3193
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -3282,9 +3195,9 @@ export declare const useApiClientModal: () => {
3282
3195
  value?: string;
3283
3196
  }> | undefined;
3284
3197
  };
3285
- delete: (serverUid: string, collectionUid: string) => void;
3198
+ delete: (serverUid: Server["uid"], collectionUid: Collection["uid"]) => void;
3286
3199
  set: (item: {
3287
- uid: string;
3200
+ uid: string & BRAND<"server">;
3288
3201
  url: string;
3289
3202
  description?: string | undefined;
3290
3203
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -3292,8 +3205,8 @@ export declare const useApiClientModal: () => {
3292
3205
  value?: string;
3293
3206
  }> | undefined;
3294
3207
  }) => void;
3295
- edit: <P extends "description" | "uid" | "url" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "description" | "uid" | "url" | "variables" ? {
3296
- uid: string;
3208
+ edit: <P extends "description" | "uid" | "url" | "variables" | `variables.${string}`>(uid: (string & BRAND<"server">) | null | undefined, path: P, value: P extends "description" | "uid" | "url" | "variables" ? {
3209
+ uid: string & BRAND<"server">;
3297
3210
  url: string;
3298
3211
  description?: string | undefined;
3299
3212
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -3301,7 +3214,7 @@ export declare const useApiClientModal: () => {
3301
3214
  value?: string;
3302
3215
  }> | undefined;
3303
3216
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "uid" | "url" | "variables" ? R extends Path< {
3304
- uid: string;
3217
+ uid: string & BRAND<"server">;
3305
3218
  url: string;
3306
3219
  description?: string | undefined;
3307
3220
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -3309,7 +3222,7 @@ export declare const useApiClientModal: () => {
3309
3222
  value?: string;
3310
3223
  }> | undefined;
3311
3224
  }[K]> ? PathValue< {
3312
- uid: string;
3225
+ uid: string & BRAND<"server">;
3313
3226
  url: string;
3314
3227
  description?: string | undefined;
3315
3228
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -3317,8 +3230,8 @@ export declare const useApiClientModal: () => {
3317
3230
  value?: string;
3318
3231
  }> | undefined;
3319
3232
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3320
- untrackedEdit: <P extends "description" | "uid" | "url" | "variables" | `variables.${string}`>(uid: string, path: P, value: P extends "description" | "uid" | "url" | "variables" ? {
3321
- uid: string;
3233
+ untrackedEdit: <P extends "description" | "uid" | "url" | "variables" | `variables.${string}`>(uid: string & BRAND<"server">, path: P, value: P extends "description" | "uid" | "url" | "variables" ? {
3234
+ uid: string & BRAND<"server">;
3322
3235
  url: string;
3323
3236
  description?: string | undefined;
3324
3237
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -3326,7 +3239,7 @@ export declare const useApiClientModal: () => {
3326
3239
  value?: string;
3327
3240
  }> | undefined;
3328
3241
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "uid" | "url" | "variables" ? R extends Path< {
3329
- uid: string;
3242
+ uid: string & BRAND<"server">;
3330
3243
  url: string;
3331
3244
  description?: string | undefined;
3332
3245
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -3334,7 +3247,7 @@ export declare const useApiClientModal: () => {
3334
3247
  value?: string;
3335
3248
  }> | undefined;
3336
3249
  }[K]> ? PathValue< {
3337
- uid: string;
3250
+ uid: string & BRAND<"server">;
3338
3251
  url: string;
3339
3252
  description?: string | undefined;
3340
3253
  variables?: Record<string, Omit<OpenAPIV3_1.ServerVariableObject, "enum"> & {
@@ -3342,16 +3255,16 @@ export declare const useApiClientModal: () => {
3342
3255
  value?: string;
3343
3256
  }> | undefined;
3344
3257
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3345
- undo: (uid: string) => void;
3346
- redo: (uid: string) => void;
3258
+ undo: (uid: string & BRAND<"server">) => void;
3259
+ redo: (uid: string & BRAND<"server">) => void;
3347
3260
  reset: () => void;
3348
3261
  };
3349
3262
  tagMutators: {
3350
3263
  rawAdd: (item: {
3351
3264
  type: "tag";
3352
- uid: string;
3265
+ uid: string & BRAND<"tag">;
3353
3266
  name: string;
3354
- children: string[];
3267
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
3355
3268
  description?: string | undefined;
3356
3269
  externalDocs?: {
3357
3270
  url: string;
@@ -3363,11 +3276,11 @@ export declare const useApiClientModal: () => {
3363
3276
  "x-internal"?: boolean | undefined;
3364
3277
  "x-scalar-ignore"?: boolean | undefined;
3365
3278
  }) => void;
3366
- add: (payload: TagPayload, collectionUid: string) => void | {
3279
+ add: (payload: TagPayload, collectionUid: Collection["uid"]) => void | {
3367
3280
  type: "tag";
3368
- uid: string;
3281
+ uid: string & BRAND<"tag">;
3369
3282
  name: string;
3370
- children: string[];
3283
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
3371
3284
  description?: string | undefined;
3372
3285
  externalDocs?: {
3373
3286
  url: string;
@@ -3379,12 +3292,12 @@ export declare const useApiClientModal: () => {
3379
3292
  "x-internal"?: boolean | undefined;
3380
3293
  "x-scalar-ignore"?: boolean | undefined;
3381
3294
  };
3382
- delete: (tag: Tag, collectionUid: string) => void;
3295
+ delete: (tag: Tag, collectionUid: Collection["uid"]) => void;
3383
3296
  set: (item: {
3384
3297
  type: "tag";
3385
- uid: string;
3298
+ uid: string & BRAND<"tag">;
3386
3299
  name: string;
3387
- children: string[];
3300
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
3388
3301
  description?: string | undefined;
3389
3302
  externalDocs?: {
3390
3303
  url: string;
@@ -3396,11 +3309,11 @@ export declare const useApiClientModal: () => {
3396
3309
  "x-internal"?: boolean | undefined;
3397
3310
  "x-scalar-ignore"?: boolean | undefined;
3398
3311
  }) => void;
3399
- edit: <P extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "externalDocs.description" | "externalDocs.url" | `children.${number}` | "x-scalar-children" | `x-scalar-children.${number}` | `x-scalar-children.${number}.tagName`>(uid: string, path: P, value: P extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "x-scalar-children" ? {
3312
+ edit: <P extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "externalDocs.description" | "externalDocs.url" | `children.${number}` | "x-scalar-children" | `x-scalar-children.${number}` | `x-scalar-children.${number}.tagName`>(uid: (string & BRAND<"tag">) | null | undefined, path: P, value: P extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "x-scalar-children" ? {
3400
3313
  type: "tag";
3401
- uid: string;
3314
+ uid: string & BRAND<"tag">;
3402
3315
  name: string;
3403
- children: string[];
3316
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
3404
3317
  description?: string | undefined;
3405
3318
  externalDocs?: {
3406
3319
  url: string;
@@ -3413,9 +3326,9 @@ export declare const useApiClientModal: () => {
3413
3326
  "x-scalar-ignore"?: boolean | undefined;
3414
3327
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "x-scalar-children" ? R extends Path< {
3415
3328
  type: "tag";
3416
- uid: string;
3329
+ uid: string & BRAND<"tag">;
3417
3330
  name: string;
3418
- children: string[];
3331
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
3419
3332
  description?: string | undefined;
3420
3333
  externalDocs?: {
3421
3334
  url: string;
@@ -3428,9 +3341,9 @@ export declare const useApiClientModal: () => {
3428
3341
  "x-scalar-ignore"?: boolean | undefined;
3429
3342
  }[K]> ? PathValue< {
3430
3343
  type: "tag";
3431
- uid: string;
3344
+ uid: string & BRAND<"tag">;
3432
3345
  name: string;
3433
- children: string[];
3346
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
3434
3347
  description?: string | undefined;
3435
3348
  externalDocs?: {
3436
3349
  url: string;
@@ -3442,11 +3355,11 @@ export declare const useApiClientModal: () => {
3442
3355
  "x-internal"?: boolean | undefined;
3443
3356
  "x-scalar-ignore"?: boolean | undefined;
3444
3357
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3445
- untrackedEdit: <P extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "externalDocs.description" | "externalDocs.url" | `children.${number}` | "x-scalar-children" | `x-scalar-children.${number}` | `x-scalar-children.${number}.tagName`>(uid: string, path: P, value: P extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "x-scalar-children" ? {
3358
+ untrackedEdit: <P extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "externalDocs.description" | "externalDocs.url" | `children.${number}` | "x-scalar-children" | `x-scalar-children.${number}` | `x-scalar-children.${number}.tagName`>(uid: string & BRAND<"tag">, path: P, value: P extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "x-scalar-children" ? {
3446
3359
  type: "tag";
3447
- uid: string;
3360
+ uid: string & BRAND<"tag">;
3448
3361
  name: string;
3449
- children: string[];
3362
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
3450
3363
  description?: string | undefined;
3451
3364
  externalDocs?: {
3452
3365
  url: string;
@@ -3459,9 +3372,9 @@ export declare const useApiClientModal: () => {
3459
3372
  "x-scalar-ignore"?: boolean | undefined;
3460
3373
  }[P] : P extends `${infer K}.${infer R}` ? K extends "description" | "externalDocs" | "x-internal" | "x-scalar-ignore" | "type" | "name" | "uid" | "children" | "x-scalar-children" ? R extends Path< {
3461
3374
  type: "tag";
3462
- uid: string;
3375
+ uid: string & BRAND<"tag">;
3463
3376
  name: string;
3464
- children: string[];
3377
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
3465
3378
  description?: string | undefined;
3466
3379
  externalDocs?: {
3467
3380
  url: string;
@@ -3474,9 +3387,9 @@ export declare const useApiClientModal: () => {
3474
3387
  "x-scalar-ignore"?: boolean | undefined;
3475
3388
  }[K]> ? PathValue< {
3476
3389
  type: "tag";
3477
- uid: string;
3390
+ uid: string & BRAND<"tag">;
3478
3391
  name: string;
3479
- children: string[];
3392
+ children: ((string & BRAND<"tag">) | (string & BRAND<"operation">))[];
3480
3393
  description?: string | undefined;
3481
3394
  externalDocs?: {
3482
3395
  url: string;
@@ -3488,19 +3401,19 @@ export declare const useApiClientModal: () => {
3488
3401
  "x-internal"?: boolean | undefined;
3489
3402
  "x-scalar-ignore"?: boolean | undefined;
3490
3403
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3491
- undo: (uid: string) => void;
3492
- redo: (uid: string) => void;
3404
+ undo: (uid: string & BRAND<"tag">) => void;
3405
+ redo: (uid: string & BRAND<"tag">) => void;
3493
3406
  reset: () => void;
3494
3407
  };
3495
3408
  workspaceMutators: {
3496
3409
  rawAdd: (item: {
3497
- uid: string;
3410
+ uid: string & BRAND<"workspace">;
3498
3411
  name: string;
3499
3412
  description: string;
3500
- collections: string[];
3413
+ collections: (string & BRAND<"collection">)[];
3501
3414
  environments: Record<string, string>;
3502
3415
  activeEnvironmentId: string;
3503
- cookies: string[];
3416
+ cookies: (string & BRAND<"cookie">)[];
3504
3417
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3505
3418
  selectedHttpClient: {
3506
3419
  targetKey: string;
@@ -3516,13 +3429,13 @@ export declare const useApiClientModal: () => {
3516
3429
  proxyUrl?: string | undefined;
3517
3430
  }) => void;
3518
3431
  add: (payload?: Partial<Workspace>) => {
3519
- uid: string;
3432
+ uid: string & BRAND<"workspace">;
3520
3433
  name: string;
3521
3434
  description: string;
3522
- collections: string[];
3435
+ collections: (string & BRAND<"collection">)[];
3523
3436
  environments: Record<string, string>;
3524
3437
  activeEnvironmentId: string;
3525
- cookies: string[];
3438
+ cookies: (string & BRAND<"cookie">)[];
3526
3439
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3527
3440
  selectedHttpClient: {
3528
3441
  targetKey: string;
@@ -3537,15 +3450,15 @@ export declare const useApiClientModal: () => {
3537
3450
  } | undefined;
3538
3451
  proxyUrl?: string | undefined;
3539
3452
  };
3540
- delete: (uid: string) => void;
3453
+ delete: (uid: Workspace["uid"]) => void;
3541
3454
  set: (item: {
3542
- uid: string;
3455
+ uid: string & BRAND<"workspace">;
3543
3456
  name: string;
3544
3457
  description: string;
3545
- collections: string[];
3458
+ collections: (string & BRAND<"collection">)[];
3546
3459
  environments: Record<string, string>;
3547
3460
  activeEnvironmentId: string;
3548
- cookies: string[];
3461
+ cookies: (string & BRAND<"cookie">)[];
3549
3462
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3550
3463
  selectedHttpClient: {
3551
3464
  targetKey: string;
@@ -3560,14 +3473,14 @@ export declare const useApiClientModal: () => {
3560
3473
  } | undefined;
3561
3474
  proxyUrl?: string | undefined;
3562
3475
  }) => void;
3563
- edit: <P extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" | `cookies.${number}` | `collections.${number}` | `environments.${string}` | "selectedHttpClient.targetKey" | "selectedHttpClient.clientKey" | "hotKeyConfig.modifiers" | "hotKeyConfig.hotKeys" | `hotKeyConfig.modifiers.${number}` | "hotKeyConfig.hotKeys." | "hotKeyConfig.hotKeys./" | "hotKeyConfig.hotKeys.Space" | "hotKeyConfig.hotKeys.Backspace" | "hotKeyConfig.hotKeys.Tab" | "hotKeyConfig.hotKeys.Enter" | "hotKeyConfig.hotKeys.Escape" | "hotKeyConfig.hotKeys.ArrowDown" | "hotKeyConfig.hotKeys.ArrowLeft" | "hotKeyConfig.hotKeys.ArrowRight" | "hotKeyConfig.hotKeys.ArrowUp" | "hotKeyConfig.hotKeys.End" | "hotKeyConfig.hotKeys.Home" | "hotKeyConfig.hotKeys.PageDown" | "hotKeyConfig.hotKeys.PageUp" | "hotKeyConfig.hotKeys.Delete" | "hotKeyConfig.hotKeys.0" | "hotKeyConfig.hotKeys.1" | "hotKeyConfig.hotKeys.2" | "hotKeyConfig.hotKeys.3" | "hotKeyConfig.hotKeys.4" | "hotKeyConfig.hotKeys.5" | "hotKeyConfig.hotKeys.6" | "hotKeyConfig.hotKeys.7" | "hotKeyConfig.hotKeys.8" | "hotKeyConfig.hotKeys.9" | "hotKeyConfig.hotKeys.a" | "hotKeyConfig.hotKeys.b" | "hotKeyConfig.hotKeys.c" | "hotKeyConfig.hotKeys.d" | "hotKeyConfig.hotKeys.e" | "hotKeyConfig.hotKeys.f" | "hotKeyConfig.hotKeys.g" | "hotKeyConfig.hotKeys.h" | "hotKeyConfig.hotKeys.i" | "hotKeyConfig.hotKeys.j" | "hotKeyConfig.hotKeys.k" | "hotKeyConfig.hotKeys.l" | "hotKeyConfig.hotKeys.m" | "hotKeyConfig.hotKeys.n" | "hotKeyConfig.hotKeys.o" | "hotKeyConfig.hotKeys.p" | "hotKeyConfig.hotKeys.q" | "hotKeyConfig.hotKeys.r" | "hotKeyConfig.hotKeys.s" | "hotKeyConfig.hotKeys.t" | "hotKeyConfig.hotKeys.u" | "hotKeyConfig.hotKeys.v" | "hotKeyConfig.hotKeys.w" | "hotKeyConfig.hotKeys.x" | "hotKeyConfig.hotKeys.y" | "hotKeyConfig.hotKeys.z" | "hotKeyConfig.hotKeys.*" | "hotKeyConfig.hotKeys.+" | "hotKeyConfig.hotKeys.-" | "hotKeyConfig.hotKeys.." | "hotKeyConfig.hotKeys.F1" | "hotKeyConfig.hotKeys.F2" | "hotKeyConfig.hotKeys.F3" | "hotKeyConfig.hotKeys.F4" | "hotKeyConfig.hotKeys.F5" | "hotKeyConfig.hotKeys.F6" | "hotKeyConfig.hotKeys.F7" | "hotKeyConfig.hotKeys.F8" | "hotKeyConfig.hotKeys.F9" | "hotKeyConfig.hotKeys.F10" | "hotKeyConfig.hotKeys.F11" | "hotKeyConfig.hotKeys.F12" | "hotKeyConfig.hotKeys.;" | "hotKeyConfig.hotKeys.=" | "hotKeyConfig.hotKeys.," | "hotKeyConfig.hotKeys.`" | "hotKeyConfig.hotKeys.[" | "hotKeyConfig.hotKeys.\\" | "hotKeyConfig.hotKeys.]" | "hotKeyConfig.hotKeys..modifiers" | `hotKeyConfig.hotKeys..modifiers.${number}` | "hotKeyConfig.hotKeys..event" | "hotKeyConfig.hotKeys./.modifiers" | `hotKeyConfig.hotKeys./.modifiers.${number}` | "hotKeyConfig.hotKeys./.event" | "hotKeyConfig.hotKeys.Space.modifiers" | `hotKeyConfig.hotKeys.Space.modifiers.${number}` | "hotKeyConfig.hotKeys.Space.event" | "hotKeyConfig.hotKeys.Backspace.modifiers" | `hotKeyConfig.hotKeys.Backspace.modifiers.${number}` | "hotKeyConfig.hotKeys.Backspace.event" | "hotKeyConfig.hotKeys.Tab.modifiers" | `hotKeyConfig.hotKeys.Tab.modifiers.${number}` | "hotKeyConfig.hotKeys.Tab.event" | "hotKeyConfig.hotKeys.Enter.modifiers" | `hotKeyConfig.hotKeys.Enter.modifiers.${number}` | "hotKeyConfig.hotKeys.Enter.event" | "hotKeyConfig.hotKeys.Escape.modifiers" | `hotKeyConfig.hotKeys.Escape.modifiers.${number}` | "hotKeyConfig.hotKeys.Escape.event" | "hotKeyConfig.hotKeys.ArrowDown.modifiers" | `hotKeyConfig.hotKeys.ArrowDown.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowDown.event" | "hotKeyConfig.hotKeys.ArrowLeft.modifiers" | `hotKeyConfig.hotKeys.ArrowLeft.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowLeft.event" | "hotKeyConfig.hotKeys.ArrowRight.modifiers" | `hotKeyConfig.hotKeys.ArrowRight.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowRight.event" | "hotKeyConfig.hotKeys.ArrowUp.modifiers" | `hotKeyConfig.hotKeys.ArrowUp.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowUp.event" | "hotKeyConfig.hotKeys.End.modifiers" | `hotKeyConfig.hotKeys.End.modifiers.${number}` | "hotKeyConfig.hotKeys.End.event" | "hotKeyConfig.hotKeys.Home.modifiers" | `hotKeyConfig.hotKeys.Home.modifiers.${number}` | "hotKeyConfig.hotKeys.Home.event" | "hotKeyConfig.hotKeys.PageDown.modifiers" | `hotKeyConfig.hotKeys.PageDown.modifiers.${number}` | "hotKeyConfig.hotKeys.PageDown.event" | "hotKeyConfig.hotKeys.PageUp.modifiers" | `hotKeyConfig.hotKeys.PageUp.modifiers.${number}` | "hotKeyConfig.hotKeys.PageUp.event" | "hotKeyConfig.hotKeys.Delete.modifiers" | `hotKeyConfig.hotKeys.Delete.modifiers.${number}` | "hotKeyConfig.hotKeys.Delete.event" | "hotKeyConfig.hotKeys.0.modifiers" | `hotKeyConfig.hotKeys.0.modifiers.${number}` | "hotKeyConfig.hotKeys.0.event" | "hotKeyConfig.hotKeys.1.modifiers" | `hotKeyConfig.hotKeys.1.modifiers.${number}` | "hotKeyConfig.hotKeys.1.event" | "hotKeyConfig.hotKeys.2.modifiers" | `hotKeyConfig.hotKeys.2.modifiers.${number}` | "hotKeyConfig.hotKeys.2.event" | "hotKeyConfig.hotKeys.3.modifiers" | `hotKeyConfig.hotKeys.3.modifiers.${number}` | "hotKeyConfig.hotKeys.3.event" | "hotKeyConfig.hotKeys.4.modifiers" | `hotKeyConfig.hotKeys.4.modifiers.${number}` | "hotKeyConfig.hotKeys.4.event" | "hotKeyConfig.hotKeys.5.modifiers" | `hotKeyConfig.hotKeys.5.modifiers.${number}` | "hotKeyConfig.hotKeys.5.event" | "hotKeyConfig.hotKeys.6.modifiers" | `hotKeyConfig.hotKeys.6.modifiers.${number}` | "hotKeyConfig.hotKeys.6.event" | "hotKeyConfig.hotKeys.7.modifiers" | `hotKeyConfig.hotKeys.7.modifiers.${number}` | "hotKeyConfig.hotKeys.7.event" | "hotKeyConfig.hotKeys.8.modifiers" | `hotKeyConfig.hotKeys.8.modifiers.${number}` | "hotKeyConfig.hotKeys.8.event" | "hotKeyConfig.hotKeys.9.modifiers" | `hotKeyConfig.hotKeys.9.modifiers.${number}` | "hotKeyConfig.hotKeys.9.event" | "hotKeyConfig.hotKeys.a.modifiers" | `hotKeyConfig.hotKeys.a.modifiers.${number}` | "hotKeyConfig.hotKeys.a.event" | "hotKeyConfig.hotKeys.b.modifiers" | `hotKeyConfig.hotKeys.b.modifiers.${number}` | "hotKeyConfig.hotKeys.b.event" | "hotKeyConfig.hotKeys.c.modifiers" | `hotKeyConfig.hotKeys.c.modifiers.${number}` | "hotKeyConfig.hotKeys.c.event" | "hotKeyConfig.hotKeys.d.modifiers" | `hotKeyConfig.hotKeys.d.modifiers.${number}` | "hotKeyConfig.hotKeys.d.event" | "hotKeyConfig.hotKeys.e.modifiers" | `hotKeyConfig.hotKeys.e.modifiers.${number}` | "hotKeyConfig.hotKeys.e.event" | "hotKeyConfig.hotKeys.f.modifiers" | `hotKeyConfig.hotKeys.f.modifiers.${number}` | "hotKeyConfig.hotKeys.f.event" | "hotKeyConfig.hotKeys.g.modifiers" | `hotKeyConfig.hotKeys.g.modifiers.${number}` | "hotKeyConfig.hotKeys.g.event" | "hotKeyConfig.hotKeys.h.modifiers" | `hotKeyConfig.hotKeys.h.modifiers.${number}` | "hotKeyConfig.hotKeys.h.event" | "hotKeyConfig.hotKeys.i.modifiers" | `hotKeyConfig.hotKeys.i.modifiers.${number}` | "hotKeyConfig.hotKeys.i.event" | "hotKeyConfig.hotKeys.j.modifiers" | `hotKeyConfig.hotKeys.j.modifiers.${number}` | "hotKeyConfig.hotKeys.j.event" | "hotKeyConfig.hotKeys.k.modifiers" | `hotKeyConfig.hotKeys.k.modifiers.${number}` | "hotKeyConfig.hotKeys.k.event" | "hotKeyConfig.hotKeys.l.modifiers" | `hotKeyConfig.hotKeys.l.modifiers.${number}` | "hotKeyConfig.hotKeys.l.event" | "hotKeyConfig.hotKeys.m.modifiers" | `hotKeyConfig.hotKeys.m.modifiers.${number}` | "hotKeyConfig.hotKeys.m.event" | "hotKeyConfig.hotKeys.n.modifiers" | `hotKeyConfig.hotKeys.n.modifiers.${number}` | "hotKeyConfig.hotKeys.n.event" | "hotKeyConfig.hotKeys.o.modifiers" | `hotKeyConfig.hotKeys.o.modifiers.${number}` | "hotKeyConfig.hotKeys.o.event" | "hotKeyConfig.hotKeys.p.modifiers" | `hotKeyConfig.hotKeys.p.modifiers.${number}` | "hotKeyConfig.hotKeys.p.event" | "hotKeyConfig.hotKeys.q.modifiers" | `hotKeyConfig.hotKeys.q.modifiers.${number}` | "hotKeyConfig.hotKeys.q.event" | "hotKeyConfig.hotKeys.r.modifiers" | `hotKeyConfig.hotKeys.r.modifiers.${number}` | "hotKeyConfig.hotKeys.r.event" | "hotKeyConfig.hotKeys.s.modifiers" | `hotKeyConfig.hotKeys.s.modifiers.${number}` | "hotKeyConfig.hotKeys.s.event" | "hotKeyConfig.hotKeys.t.modifiers" | `hotKeyConfig.hotKeys.t.modifiers.${number}` | "hotKeyConfig.hotKeys.t.event" | "hotKeyConfig.hotKeys.u.modifiers" | `hotKeyConfig.hotKeys.u.modifiers.${number}` | "hotKeyConfig.hotKeys.u.event" | "hotKeyConfig.hotKeys.v.modifiers" | `hotKeyConfig.hotKeys.v.modifiers.${number}` | "hotKeyConfig.hotKeys.v.event" | "hotKeyConfig.hotKeys.w.modifiers" | `hotKeyConfig.hotKeys.w.modifiers.${number}` | "hotKeyConfig.hotKeys.w.event" | "hotKeyConfig.hotKeys.x.modifiers" | `hotKeyConfig.hotKeys.x.modifiers.${number}` | "hotKeyConfig.hotKeys.x.event" | "hotKeyConfig.hotKeys.y.modifiers" | `hotKeyConfig.hotKeys.y.modifiers.${number}` | "hotKeyConfig.hotKeys.y.event" | "hotKeyConfig.hotKeys.z.modifiers" | `hotKeyConfig.hotKeys.z.modifiers.${number}` | "hotKeyConfig.hotKeys.z.event" | "hotKeyConfig.hotKeys.*.modifiers" | `hotKeyConfig.hotKeys.*.modifiers.${number}` | "hotKeyConfig.hotKeys.*.event" | "hotKeyConfig.hotKeys.+.modifiers" | `hotKeyConfig.hotKeys.+.modifiers.${number}` | "hotKeyConfig.hotKeys.+.event" | "hotKeyConfig.hotKeys.-.modifiers" | `hotKeyConfig.hotKeys.-.modifiers.${number}` | "hotKeyConfig.hotKeys.-.event" | "hotKeyConfig.hotKeys...modifiers" | `hotKeyConfig.hotKeys...modifiers.${number}` | "hotKeyConfig.hotKeys...event" | "hotKeyConfig.hotKeys.F1.modifiers" | `hotKeyConfig.hotKeys.F1.modifiers.${number}` | "hotKeyConfig.hotKeys.F1.event" | "hotKeyConfig.hotKeys.F2.modifiers" | `hotKeyConfig.hotKeys.F2.modifiers.${number}` | "hotKeyConfig.hotKeys.F2.event" | "hotKeyConfig.hotKeys.F3.modifiers" | `hotKeyConfig.hotKeys.F3.modifiers.${number}` | "hotKeyConfig.hotKeys.F3.event" | "hotKeyConfig.hotKeys.F4.modifiers" | `hotKeyConfig.hotKeys.F4.modifiers.${number}` | "hotKeyConfig.hotKeys.F4.event" | "hotKeyConfig.hotKeys.F5.modifiers" | `hotKeyConfig.hotKeys.F5.modifiers.${number}` | "hotKeyConfig.hotKeys.F5.event" | "hotKeyConfig.hotKeys.F6.modifiers" | `hotKeyConfig.hotKeys.F6.modifiers.${number}` | "hotKeyConfig.hotKeys.F6.event" | "hotKeyConfig.hotKeys.F7.modifiers" | `hotKeyConfig.hotKeys.F7.modifiers.${number}` | "hotKeyConfig.hotKeys.F7.event" | "hotKeyConfig.hotKeys.F8.modifiers" | `hotKeyConfig.hotKeys.F8.modifiers.${number}` | "hotKeyConfig.hotKeys.F8.event" | "hotKeyConfig.hotKeys.F9.modifiers" | `hotKeyConfig.hotKeys.F9.modifiers.${number}` | "hotKeyConfig.hotKeys.F9.event" | "hotKeyConfig.hotKeys.F10.modifiers" | `hotKeyConfig.hotKeys.F10.modifiers.${number}` | "hotKeyConfig.hotKeys.F10.event" | "hotKeyConfig.hotKeys.F11.modifiers" | `hotKeyConfig.hotKeys.F11.modifiers.${number}` | "hotKeyConfig.hotKeys.F11.event" | "hotKeyConfig.hotKeys.F12.modifiers" | `hotKeyConfig.hotKeys.F12.modifiers.${number}` | "hotKeyConfig.hotKeys.F12.event" | "hotKeyConfig.hotKeys.;.modifiers" | `hotKeyConfig.hotKeys.;.modifiers.${number}` | "hotKeyConfig.hotKeys.;.event" | "hotKeyConfig.hotKeys.=.modifiers" | `hotKeyConfig.hotKeys.=.modifiers.${number}` | "hotKeyConfig.hotKeys.=.event" | "hotKeyConfig.hotKeys.,.modifiers" | `hotKeyConfig.hotKeys.,.modifiers.${number}` | "hotKeyConfig.hotKeys.,.event" | "hotKeyConfig.hotKeys.`.modifiers" | `hotKeyConfig.hotKeys.\`.modifiers.${number}` | "hotKeyConfig.hotKeys.`.event" | "hotKeyConfig.hotKeys.[.modifiers" | `hotKeyConfig.hotKeys.[.modifiers.${number}` | "hotKeyConfig.hotKeys.[.event" | "hotKeyConfig.hotKeys.\\.modifiers" | `hotKeyConfig.hotKeys.\\.modifiers.${number}` | "hotKeyConfig.hotKeys.\\.event" | "hotKeyConfig.hotKeys.].modifiers" | `hotKeyConfig.hotKeys.].modifiers.${number}` | "hotKeyConfig.hotKeys.].event">(uid: string, path: P, value: P extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" ? {
3564
- uid: string;
3476
+ edit: <P extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" | `cookies.${number}` | `collections.${number}` | `environments.${string}` | "selectedHttpClient.targetKey" | "selectedHttpClient.clientKey" | "hotKeyConfig.modifiers" | "hotKeyConfig.hotKeys" | `hotKeyConfig.modifiers.${number}` | "hotKeyConfig.hotKeys." | "hotKeyConfig.hotKeys./" | "hotKeyConfig.hotKeys.Space" | "hotKeyConfig.hotKeys.Backspace" | "hotKeyConfig.hotKeys.Tab" | "hotKeyConfig.hotKeys.Enter" | "hotKeyConfig.hotKeys.Escape" | "hotKeyConfig.hotKeys.ArrowDown" | "hotKeyConfig.hotKeys.ArrowLeft" | "hotKeyConfig.hotKeys.ArrowRight" | "hotKeyConfig.hotKeys.ArrowUp" | "hotKeyConfig.hotKeys.End" | "hotKeyConfig.hotKeys.Home" | "hotKeyConfig.hotKeys.PageDown" | "hotKeyConfig.hotKeys.PageUp" | "hotKeyConfig.hotKeys.Delete" | "hotKeyConfig.hotKeys.0" | "hotKeyConfig.hotKeys.1" | "hotKeyConfig.hotKeys.2" | "hotKeyConfig.hotKeys.3" | "hotKeyConfig.hotKeys.4" | "hotKeyConfig.hotKeys.5" | "hotKeyConfig.hotKeys.6" | "hotKeyConfig.hotKeys.7" | "hotKeyConfig.hotKeys.8" | "hotKeyConfig.hotKeys.9" | "hotKeyConfig.hotKeys.a" | "hotKeyConfig.hotKeys.b" | "hotKeyConfig.hotKeys.c" | "hotKeyConfig.hotKeys.d" | "hotKeyConfig.hotKeys.e" | "hotKeyConfig.hotKeys.f" | "hotKeyConfig.hotKeys.g" | "hotKeyConfig.hotKeys.h" | "hotKeyConfig.hotKeys.i" | "hotKeyConfig.hotKeys.j" | "hotKeyConfig.hotKeys.k" | "hotKeyConfig.hotKeys.l" | "hotKeyConfig.hotKeys.m" | "hotKeyConfig.hotKeys.n" | "hotKeyConfig.hotKeys.o" | "hotKeyConfig.hotKeys.p" | "hotKeyConfig.hotKeys.q" | "hotKeyConfig.hotKeys.r" | "hotKeyConfig.hotKeys.s" | "hotKeyConfig.hotKeys.t" | "hotKeyConfig.hotKeys.u" | "hotKeyConfig.hotKeys.v" | "hotKeyConfig.hotKeys.w" | "hotKeyConfig.hotKeys.x" | "hotKeyConfig.hotKeys.y" | "hotKeyConfig.hotKeys.z" | "hotKeyConfig.hotKeys.*" | "hotKeyConfig.hotKeys.+" | "hotKeyConfig.hotKeys.-" | "hotKeyConfig.hotKeys.." | "hotKeyConfig.hotKeys.F1" | "hotKeyConfig.hotKeys.F2" | "hotKeyConfig.hotKeys.F3" | "hotKeyConfig.hotKeys.F4" | "hotKeyConfig.hotKeys.F5" | "hotKeyConfig.hotKeys.F6" | "hotKeyConfig.hotKeys.F7" | "hotKeyConfig.hotKeys.F8" | "hotKeyConfig.hotKeys.F9" | "hotKeyConfig.hotKeys.F10" | "hotKeyConfig.hotKeys.F11" | "hotKeyConfig.hotKeys.F12" | "hotKeyConfig.hotKeys.;" | "hotKeyConfig.hotKeys.=" | "hotKeyConfig.hotKeys.," | "hotKeyConfig.hotKeys.`" | "hotKeyConfig.hotKeys.[" | "hotKeyConfig.hotKeys.\\" | "hotKeyConfig.hotKeys.]" | "hotKeyConfig.hotKeys..modifiers" | `hotKeyConfig.hotKeys..modifiers.${number}` | "hotKeyConfig.hotKeys..event" | "hotKeyConfig.hotKeys./.modifiers" | `hotKeyConfig.hotKeys./.modifiers.${number}` | "hotKeyConfig.hotKeys./.event" | "hotKeyConfig.hotKeys.Space.modifiers" | `hotKeyConfig.hotKeys.Space.modifiers.${number}` | "hotKeyConfig.hotKeys.Space.event" | "hotKeyConfig.hotKeys.Backspace.modifiers" | `hotKeyConfig.hotKeys.Backspace.modifiers.${number}` | "hotKeyConfig.hotKeys.Backspace.event" | "hotKeyConfig.hotKeys.Tab.modifiers" | `hotKeyConfig.hotKeys.Tab.modifiers.${number}` | "hotKeyConfig.hotKeys.Tab.event" | "hotKeyConfig.hotKeys.Enter.modifiers" | `hotKeyConfig.hotKeys.Enter.modifiers.${number}` | "hotKeyConfig.hotKeys.Enter.event" | "hotKeyConfig.hotKeys.Escape.modifiers" | `hotKeyConfig.hotKeys.Escape.modifiers.${number}` | "hotKeyConfig.hotKeys.Escape.event" | "hotKeyConfig.hotKeys.ArrowDown.modifiers" | `hotKeyConfig.hotKeys.ArrowDown.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowDown.event" | "hotKeyConfig.hotKeys.ArrowLeft.modifiers" | `hotKeyConfig.hotKeys.ArrowLeft.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowLeft.event" | "hotKeyConfig.hotKeys.ArrowRight.modifiers" | `hotKeyConfig.hotKeys.ArrowRight.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowRight.event" | "hotKeyConfig.hotKeys.ArrowUp.modifiers" | `hotKeyConfig.hotKeys.ArrowUp.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowUp.event" | "hotKeyConfig.hotKeys.End.modifiers" | `hotKeyConfig.hotKeys.End.modifiers.${number}` | "hotKeyConfig.hotKeys.End.event" | "hotKeyConfig.hotKeys.Home.modifiers" | `hotKeyConfig.hotKeys.Home.modifiers.${number}` | "hotKeyConfig.hotKeys.Home.event" | "hotKeyConfig.hotKeys.PageDown.modifiers" | `hotKeyConfig.hotKeys.PageDown.modifiers.${number}` | "hotKeyConfig.hotKeys.PageDown.event" | "hotKeyConfig.hotKeys.PageUp.modifiers" | `hotKeyConfig.hotKeys.PageUp.modifiers.${number}` | "hotKeyConfig.hotKeys.PageUp.event" | "hotKeyConfig.hotKeys.Delete.modifiers" | `hotKeyConfig.hotKeys.Delete.modifiers.${number}` | "hotKeyConfig.hotKeys.Delete.event" | "hotKeyConfig.hotKeys.0.modifiers" | `hotKeyConfig.hotKeys.0.modifiers.${number}` | "hotKeyConfig.hotKeys.0.event" | "hotKeyConfig.hotKeys.1.modifiers" | `hotKeyConfig.hotKeys.1.modifiers.${number}` | "hotKeyConfig.hotKeys.1.event" | "hotKeyConfig.hotKeys.2.modifiers" | `hotKeyConfig.hotKeys.2.modifiers.${number}` | "hotKeyConfig.hotKeys.2.event" | "hotKeyConfig.hotKeys.3.modifiers" | `hotKeyConfig.hotKeys.3.modifiers.${number}` | "hotKeyConfig.hotKeys.3.event" | "hotKeyConfig.hotKeys.4.modifiers" | `hotKeyConfig.hotKeys.4.modifiers.${number}` | "hotKeyConfig.hotKeys.4.event" | "hotKeyConfig.hotKeys.5.modifiers" | `hotKeyConfig.hotKeys.5.modifiers.${number}` | "hotKeyConfig.hotKeys.5.event" | "hotKeyConfig.hotKeys.6.modifiers" | `hotKeyConfig.hotKeys.6.modifiers.${number}` | "hotKeyConfig.hotKeys.6.event" | "hotKeyConfig.hotKeys.7.modifiers" | `hotKeyConfig.hotKeys.7.modifiers.${number}` | "hotKeyConfig.hotKeys.7.event" | "hotKeyConfig.hotKeys.8.modifiers" | `hotKeyConfig.hotKeys.8.modifiers.${number}` | "hotKeyConfig.hotKeys.8.event" | "hotKeyConfig.hotKeys.9.modifiers" | `hotKeyConfig.hotKeys.9.modifiers.${number}` | "hotKeyConfig.hotKeys.9.event" | "hotKeyConfig.hotKeys.a.modifiers" | `hotKeyConfig.hotKeys.a.modifiers.${number}` | "hotKeyConfig.hotKeys.a.event" | "hotKeyConfig.hotKeys.b.modifiers" | `hotKeyConfig.hotKeys.b.modifiers.${number}` | "hotKeyConfig.hotKeys.b.event" | "hotKeyConfig.hotKeys.c.modifiers" | `hotKeyConfig.hotKeys.c.modifiers.${number}` | "hotKeyConfig.hotKeys.c.event" | "hotKeyConfig.hotKeys.d.modifiers" | `hotKeyConfig.hotKeys.d.modifiers.${number}` | "hotKeyConfig.hotKeys.d.event" | "hotKeyConfig.hotKeys.e.modifiers" | `hotKeyConfig.hotKeys.e.modifiers.${number}` | "hotKeyConfig.hotKeys.e.event" | "hotKeyConfig.hotKeys.f.modifiers" | `hotKeyConfig.hotKeys.f.modifiers.${number}` | "hotKeyConfig.hotKeys.f.event" | "hotKeyConfig.hotKeys.g.modifiers" | `hotKeyConfig.hotKeys.g.modifiers.${number}` | "hotKeyConfig.hotKeys.g.event" | "hotKeyConfig.hotKeys.h.modifiers" | `hotKeyConfig.hotKeys.h.modifiers.${number}` | "hotKeyConfig.hotKeys.h.event" | "hotKeyConfig.hotKeys.i.modifiers" | `hotKeyConfig.hotKeys.i.modifiers.${number}` | "hotKeyConfig.hotKeys.i.event" | "hotKeyConfig.hotKeys.j.modifiers" | `hotKeyConfig.hotKeys.j.modifiers.${number}` | "hotKeyConfig.hotKeys.j.event" | "hotKeyConfig.hotKeys.k.modifiers" | `hotKeyConfig.hotKeys.k.modifiers.${number}` | "hotKeyConfig.hotKeys.k.event" | "hotKeyConfig.hotKeys.l.modifiers" | `hotKeyConfig.hotKeys.l.modifiers.${number}` | "hotKeyConfig.hotKeys.l.event" | "hotKeyConfig.hotKeys.m.modifiers" | `hotKeyConfig.hotKeys.m.modifiers.${number}` | "hotKeyConfig.hotKeys.m.event" | "hotKeyConfig.hotKeys.n.modifiers" | `hotKeyConfig.hotKeys.n.modifiers.${number}` | "hotKeyConfig.hotKeys.n.event" | "hotKeyConfig.hotKeys.o.modifiers" | `hotKeyConfig.hotKeys.o.modifiers.${number}` | "hotKeyConfig.hotKeys.o.event" | "hotKeyConfig.hotKeys.p.modifiers" | `hotKeyConfig.hotKeys.p.modifiers.${number}` | "hotKeyConfig.hotKeys.p.event" | "hotKeyConfig.hotKeys.q.modifiers" | `hotKeyConfig.hotKeys.q.modifiers.${number}` | "hotKeyConfig.hotKeys.q.event" | "hotKeyConfig.hotKeys.r.modifiers" | `hotKeyConfig.hotKeys.r.modifiers.${number}` | "hotKeyConfig.hotKeys.r.event" | "hotKeyConfig.hotKeys.s.modifiers" | `hotKeyConfig.hotKeys.s.modifiers.${number}` | "hotKeyConfig.hotKeys.s.event" | "hotKeyConfig.hotKeys.t.modifiers" | `hotKeyConfig.hotKeys.t.modifiers.${number}` | "hotKeyConfig.hotKeys.t.event" | "hotKeyConfig.hotKeys.u.modifiers" | `hotKeyConfig.hotKeys.u.modifiers.${number}` | "hotKeyConfig.hotKeys.u.event" | "hotKeyConfig.hotKeys.v.modifiers" | `hotKeyConfig.hotKeys.v.modifiers.${number}` | "hotKeyConfig.hotKeys.v.event" | "hotKeyConfig.hotKeys.w.modifiers" | `hotKeyConfig.hotKeys.w.modifiers.${number}` | "hotKeyConfig.hotKeys.w.event" | "hotKeyConfig.hotKeys.x.modifiers" | `hotKeyConfig.hotKeys.x.modifiers.${number}` | "hotKeyConfig.hotKeys.x.event" | "hotKeyConfig.hotKeys.y.modifiers" | `hotKeyConfig.hotKeys.y.modifiers.${number}` | "hotKeyConfig.hotKeys.y.event" | "hotKeyConfig.hotKeys.z.modifiers" | `hotKeyConfig.hotKeys.z.modifiers.${number}` | "hotKeyConfig.hotKeys.z.event" | "hotKeyConfig.hotKeys.*.modifiers" | `hotKeyConfig.hotKeys.*.modifiers.${number}` | "hotKeyConfig.hotKeys.*.event" | "hotKeyConfig.hotKeys.+.modifiers" | `hotKeyConfig.hotKeys.+.modifiers.${number}` | "hotKeyConfig.hotKeys.+.event" | "hotKeyConfig.hotKeys.-.modifiers" | `hotKeyConfig.hotKeys.-.modifiers.${number}` | "hotKeyConfig.hotKeys.-.event" | "hotKeyConfig.hotKeys...modifiers" | `hotKeyConfig.hotKeys...modifiers.${number}` | "hotKeyConfig.hotKeys...event" | "hotKeyConfig.hotKeys.F1.modifiers" | `hotKeyConfig.hotKeys.F1.modifiers.${number}` | "hotKeyConfig.hotKeys.F1.event" | "hotKeyConfig.hotKeys.F2.modifiers" | `hotKeyConfig.hotKeys.F2.modifiers.${number}` | "hotKeyConfig.hotKeys.F2.event" | "hotKeyConfig.hotKeys.F3.modifiers" | `hotKeyConfig.hotKeys.F3.modifiers.${number}` | "hotKeyConfig.hotKeys.F3.event" | "hotKeyConfig.hotKeys.F4.modifiers" | `hotKeyConfig.hotKeys.F4.modifiers.${number}` | "hotKeyConfig.hotKeys.F4.event" | "hotKeyConfig.hotKeys.F5.modifiers" | `hotKeyConfig.hotKeys.F5.modifiers.${number}` | "hotKeyConfig.hotKeys.F5.event" | "hotKeyConfig.hotKeys.F6.modifiers" | `hotKeyConfig.hotKeys.F6.modifiers.${number}` | "hotKeyConfig.hotKeys.F6.event" | "hotKeyConfig.hotKeys.F7.modifiers" | `hotKeyConfig.hotKeys.F7.modifiers.${number}` | "hotKeyConfig.hotKeys.F7.event" | "hotKeyConfig.hotKeys.F8.modifiers" | `hotKeyConfig.hotKeys.F8.modifiers.${number}` | "hotKeyConfig.hotKeys.F8.event" | "hotKeyConfig.hotKeys.F9.modifiers" | `hotKeyConfig.hotKeys.F9.modifiers.${number}` | "hotKeyConfig.hotKeys.F9.event" | "hotKeyConfig.hotKeys.F10.modifiers" | `hotKeyConfig.hotKeys.F10.modifiers.${number}` | "hotKeyConfig.hotKeys.F10.event" | "hotKeyConfig.hotKeys.F11.modifiers" | `hotKeyConfig.hotKeys.F11.modifiers.${number}` | "hotKeyConfig.hotKeys.F11.event" | "hotKeyConfig.hotKeys.F12.modifiers" | `hotKeyConfig.hotKeys.F12.modifiers.${number}` | "hotKeyConfig.hotKeys.F12.event" | "hotKeyConfig.hotKeys.;.modifiers" | `hotKeyConfig.hotKeys.;.modifiers.${number}` | "hotKeyConfig.hotKeys.;.event" | "hotKeyConfig.hotKeys.=.modifiers" | `hotKeyConfig.hotKeys.=.modifiers.${number}` | "hotKeyConfig.hotKeys.=.event" | "hotKeyConfig.hotKeys.,.modifiers" | `hotKeyConfig.hotKeys.,.modifiers.${number}` | "hotKeyConfig.hotKeys.,.event" | "hotKeyConfig.hotKeys.`.modifiers" | `hotKeyConfig.hotKeys.\`.modifiers.${number}` | "hotKeyConfig.hotKeys.`.event" | "hotKeyConfig.hotKeys.[.modifiers" | `hotKeyConfig.hotKeys.[.modifiers.${number}` | "hotKeyConfig.hotKeys.[.event" | "hotKeyConfig.hotKeys.\\.modifiers" | `hotKeyConfig.hotKeys.\\.modifiers.${number}` | "hotKeyConfig.hotKeys.\\.event" | "hotKeyConfig.hotKeys.].modifiers" | `hotKeyConfig.hotKeys.].modifiers.${number}` | "hotKeyConfig.hotKeys.].event">(uid: (string & BRAND<"workspace">) | null | undefined, path: P, value: P extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" ? {
3477
+ uid: string & BRAND<"workspace">;
3565
3478
  name: string;
3566
3479
  description: string;
3567
- collections: string[];
3480
+ collections: (string & BRAND<"collection">)[];
3568
3481
  environments: Record<string, string>;
3569
3482
  activeEnvironmentId: string;
3570
- cookies: string[];
3483
+ cookies: (string & BRAND<"cookie">)[];
3571
3484
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3572
3485
  selectedHttpClient: {
3573
3486
  targetKey: string;
@@ -3582,13 +3495,13 @@ export declare const useApiClientModal: () => {
3582
3495
  } | undefined;
3583
3496
  proxyUrl?: string | undefined;
3584
3497
  }[P] : P extends `${infer K}.${infer R}` ? K extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" ? R extends Path< {
3585
- uid: string;
3498
+ uid: string & BRAND<"workspace">;
3586
3499
  name: string;
3587
3500
  description: string;
3588
- collections: string[];
3501
+ collections: (string & BRAND<"collection">)[];
3589
3502
  environments: Record<string, string>;
3590
3503
  activeEnvironmentId: string;
3591
- cookies: string[];
3504
+ cookies: (string & BRAND<"cookie">)[];
3592
3505
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3593
3506
  selectedHttpClient: {
3594
3507
  targetKey: string;
@@ -3603,13 +3516,13 @@ export declare const useApiClientModal: () => {
3603
3516
  } | undefined;
3604
3517
  proxyUrl?: string | undefined;
3605
3518
  }[K]> ? PathValue< {
3606
- uid: string;
3519
+ uid: string & BRAND<"workspace">;
3607
3520
  name: string;
3608
3521
  description: string;
3609
- collections: string[];
3522
+ collections: (string & BRAND<"collection">)[];
3610
3523
  environments: Record<string, string>;
3611
3524
  activeEnvironmentId: string;
3612
- cookies: string[];
3525
+ cookies: (string & BRAND<"cookie">)[];
3613
3526
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3614
3527
  selectedHttpClient: {
3615
3528
  targetKey: string;
@@ -3624,14 +3537,14 @@ export declare const useApiClientModal: () => {
3624
3537
  } | undefined;
3625
3538
  proxyUrl?: string | undefined;
3626
3539
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3627
- untrackedEdit: <P extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" | `cookies.${number}` | `collections.${number}` | `environments.${string}` | "selectedHttpClient.targetKey" | "selectedHttpClient.clientKey" | "hotKeyConfig.modifiers" | "hotKeyConfig.hotKeys" | `hotKeyConfig.modifiers.${number}` | "hotKeyConfig.hotKeys." | "hotKeyConfig.hotKeys./" | "hotKeyConfig.hotKeys.Space" | "hotKeyConfig.hotKeys.Backspace" | "hotKeyConfig.hotKeys.Tab" | "hotKeyConfig.hotKeys.Enter" | "hotKeyConfig.hotKeys.Escape" | "hotKeyConfig.hotKeys.ArrowDown" | "hotKeyConfig.hotKeys.ArrowLeft" | "hotKeyConfig.hotKeys.ArrowRight" | "hotKeyConfig.hotKeys.ArrowUp" | "hotKeyConfig.hotKeys.End" | "hotKeyConfig.hotKeys.Home" | "hotKeyConfig.hotKeys.PageDown" | "hotKeyConfig.hotKeys.PageUp" | "hotKeyConfig.hotKeys.Delete" | "hotKeyConfig.hotKeys.0" | "hotKeyConfig.hotKeys.1" | "hotKeyConfig.hotKeys.2" | "hotKeyConfig.hotKeys.3" | "hotKeyConfig.hotKeys.4" | "hotKeyConfig.hotKeys.5" | "hotKeyConfig.hotKeys.6" | "hotKeyConfig.hotKeys.7" | "hotKeyConfig.hotKeys.8" | "hotKeyConfig.hotKeys.9" | "hotKeyConfig.hotKeys.a" | "hotKeyConfig.hotKeys.b" | "hotKeyConfig.hotKeys.c" | "hotKeyConfig.hotKeys.d" | "hotKeyConfig.hotKeys.e" | "hotKeyConfig.hotKeys.f" | "hotKeyConfig.hotKeys.g" | "hotKeyConfig.hotKeys.h" | "hotKeyConfig.hotKeys.i" | "hotKeyConfig.hotKeys.j" | "hotKeyConfig.hotKeys.k" | "hotKeyConfig.hotKeys.l" | "hotKeyConfig.hotKeys.m" | "hotKeyConfig.hotKeys.n" | "hotKeyConfig.hotKeys.o" | "hotKeyConfig.hotKeys.p" | "hotKeyConfig.hotKeys.q" | "hotKeyConfig.hotKeys.r" | "hotKeyConfig.hotKeys.s" | "hotKeyConfig.hotKeys.t" | "hotKeyConfig.hotKeys.u" | "hotKeyConfig.hotKeys.v" | "hotKeyConfig.hotKeys.w" | "hotKeyConfig.hotKeys.x" | "hotKeyConfig.hotKeys.y" | "hotKeyConfig.hotKeys.z" | "hotKeyConfig.hotKeys.*" | "hotKeyConfig.hotKeys.+" | "hotKeyConfig.hotKeys.-" | "hotKeyConfig.hotKeys.." | "hotKeyConfig.hotKeys.F1" | "hotKeyConfig.hotKeys.F2" | "hotKeyConfig.hotKeys.F3" | "hotKeyConfig.hotKeys.F4" | "hotKeyConfig.hotKeys.F5" | "hotKeyConfig.hotKeys.F6" | "hotKeyConfig.hotKeys.F7" | "hotKeyConfig.hotKeys.F8" | "hotKeyConfig.hotKeys.F9" | "hotKeyConfig.hotKeys.F10" | "hotKeyConfig.hotKeys.F11" | "hotKeyConfig.hotKeys.F12" | "hotKeyConfig.hotKeys.;" | "hotKeyConfig.hotKeys.=" | "hotKeyConfig.hotKeys.," | "hotKeyConfig.hotKeys.`" | "hotKeyConfig.hotKeys.[" | "hotKeyConfig.hotKeys.\\" | "hotKeyConfig.hotKeys.]" | "hotKeyConfig.hotKeys..modifiers" | `hotKeyConfig.hotKeys..modifiers.${number}` | "hotKeyConfig.hotKeys..event" | "hotKeyConfig.hotKeys./.modifiers" | `hotKeyConfig.hotKeys./.modifiers.${number}` | "hotKeyConfig.hotKeys./.event" | "hotKeyConfig.hotKeys.Space.modifiers" | `hotKeyConfig.hotKeys.Space.modifiers.${number}` | "hotKeyConfig.hotKeys.Space.event" | "hotKeyConfig.hotKeys.Backspace.modifiers" | `hotKeyConfig.hotKeys.Backspace.modifiers.${number}` | "hotKeyConfig.hotKeys.Backspace.event" | "hotKeyConfig.hotKeys.Tab.modifiers" | `hotKeyConfig.hotKeys.Tab.modifiers.${number}` | "hotKeyConfig.hotKeys.Tab.event" | "hotKeyConfig.hotKeys.Enter.modifiers" | `hotKeyConfig.hotKeys.Enter.modifiers.${number}` | "hotKeyConfig.hotKeys.Enter.event" | "hotKeyConfig.hotKeys.Escape.modifiers" | `hotKeyConfig.hotKeys.Escape.modifiers.${number}` | "hotKeyConfig.hotKeys.Escape.event" | "hotKeyConfig.hotKeys.ArrowDown.modifiers" | `hotKeyConfig.hotKeys.ArrowDown.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowDown.event" | "hotKeyConfig.hotKeys.ArrowLeft.modifiers" | `hotKeyConfig.hotKeys.ArrowLeft.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowLeft.event" | "hotKeyConfig.hotKeys.ArrowRight.modifiers" | `hotKeyConfig.hotKeys.ArrowRight.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowRight.event" | "hotKeyConfig.hotKeys.ArrowUp.modifiers" | `hotKeyConfig.hotKeys.ArrowUp.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowUp.event" | "hotKeyConfig.hotKeys.End.modifiers" | `hotKeyConfig.hotKeys.End.modifiers.${number}` | "hotKeyConfig.hotKeys.End.event" | "hotKeyConfig.hotKeys.Home.modifiers" | `hotKeyConfig.hotKeys.Home.modifiers.${number}` | "hotKeyConfig.hotKeys.Home.event" | "hotKeyConfig.hotKeys.PageDown.modifiers" | `hotKeyConfig.hotKeys.PageDown.modifiers.${number}` | "hotKeyConfig.hotKeys.PageDown.event" | "hotKeyConfig.hotKeys.PageUp.modifiers" | `hotKeyConfig.hotKeys.PageUp.modifiers.${number}` | "hotKeyConfig.hotKeys.PageUp.event" | "hotKeyConfig.hotKeys.Delete.modifiers" | `hotKeyConfig.hotKeys.Delete.modifiers.${number}` | "hotKeyConfig.hotKeys.Delete.event" | "hotKeyConfig.hotKeys.0.modifiers" | `hotKeyConfig.hotKeys.0.modifiers.${number}` | "hotKeyConfig.hotKeys.0.event" | "hotKeyConfig.hotKeys.1.modifiers" | `hotKeyConfig.hotKeys.1.modifiers.${number}` | "hotKeyConfig.hotKeys.1.event" | "hotKeyConfig.hotKeys.2.modifiers" | `hotKeyConfig.hotKeys.2.modifiers.${number}` | "hotKeyConfig.hotKeys.2.event" | "hotKeyConfig.hotKeys.3.modifiers" | `hotKeyConfig.hotKeys.3.modifiers.${number}` | "hotKeyConfig.hotKeys.3.event" | "hotKeyConfig.hotKeys.4.modifiers" | `hotKeyConfig.hotKeys.4.modifiers.${number}` | "hotKeyConfig.hotKeys.4.event" | "hotKeyConfig.hotKeys.5.modifiers" | `hotKeyConfig.hotKeys.5.modifiers.${number}` | "hotKeyConfig.hotKeys.5.event" | "hotKeyConfig.hotKeys.6.modifiers" | `hotKeyConfig.hotKeys.6.modifiers.${number}` | "hotKeyConfig.hotKeys.6.event" | "hotKeyConfig.hotKeys.7.modifiers" | `hotKeyConfig.hotKeys.7.modifiers.${number}` | "hotKeyConfig.hotKeys.7.event" | "hotKeyConfig.hotKeys.8.modifiers" | `hotKeyConfig.hotKeys.8.modifiers.${number}` | "hotKeyConfig.hotKeys.8.event" | "hotKeyConfig.hotKeys.9.modifiers" | `hotKeyConfig.hotKeys.9.modifiers.${number}` | "hotKeyConfig.hotKeys.9.event" | "hotKeyConfig.hotKeys.a.modifiers" | `hotKeyConfig.hotKeys.a.modifiers.${number}` | "hotKeyConfig.hotKeys.a.event" | "hotKeyConfig.hotKeys.b.modifiers" | `hotKeyConfig.hotKeys.b.modifiers.${number}` | "hotKeyConfig.hotKeys.b.event" | "hotKeyConfig.hotKeys.c.modifiers" | `hotKeyConfig.hotKeys.c.modifiers.${number}` | "hotKeyConfig.hotKeys.c.event" | "hotKeyConfig.hotKeys.d.modifiers" | `hotKeyConfig.hotKeys.d.modifiers.${number}` | "hotKeyConfig.hotKeys.d.event" | "hotKeyConfig.hotKeys.e.modifiers" | `hotKeyConfig.hotKeys.e.modifiers.${number}` | "hotKeyConfig.hotKeys.e.event" | "hotKeyConfig.hotKeys.f.modifiers" | `hotKeyConfig.hotKeys.f.modifiers.${number}` | "hotKeyConfig.hotKeys.f.event" | "hotKeyConfig.hotKeys.g.modifiers" | `hotKeyConfig.hotKeys.g.modifiers.${number}` | "hotKeyConfig.hotKeys.g.event" | "hotKeyConfig.hotKeys.h.modifiers" | `hotKeyConfig.hotKeys.h.modifiers.${number}` | "hotKeyConfig.hotKeys.h.event" | "hotKeyConfig.hotKeys.i.modifiers" | `hotKeyConfig.hotKeys.i.modifiers.${number}` | "hotKeyConfig.hotKeys.i.event" | "hotKeyConfig.hotKeys.j.modifiers" | `hotKeyConfig.hotKeys.j.modifiers.${number}` | "hotKeyConfig.hotKeys.j.event" | "hotKeyConfig.hotKeys.k.modifiers" | `hotKeyConfig.hotKeys.k.modifiers.${number}` | "hotKeyConfig.hotKeys.k.event" | "hotKeyConfig.hotKeys.l.modifiers" | `hotKeyConfig.hotKeys.l.modifiers.${number}` | "hotKeyConfig.hotKeys.l.event" | "hotKeyConfig.hotKeys.m.modifiers" | `hotKeyConfig.hotKeys.m.modifiers.${number}` | "hotKeyConfig.hotKeys.m.event" | "hotKeyConfig.hotKeys.n.modifiers" | `hotKeyConfig.hotKeys.n.modifiers.${number}` | "hotKeyConfig.hotKeys.n.event" | "hotKeyConfig.hotKeys.o.modifiers" | `hotKeyConfig.hotKeys.o.modifiers.${number}` | "hotKeyConfig.hotKeys.o.event" | "hotKeyConfig.hotKeys.p.modifiers" | `hotKeyConfig.hotKeys.p.modifiers.${number}` | "hotKeyConfig.hotKeys.p.event" | "hotKeyConfig.hotKeys.q.modifiers" | `hotKeyConfig.hotKeys.q.modifiers.${number}` | "hotKeyConfig.hotKeys.q.event" | "hotKeyConfig.hotKeys.r.modifiers" | `hotKeyConfig.hotKeys.r.modifiers.${number}` | "hotKeyConfig.hotKeys.r.event" | "hotKeyConfig.hotKeys.s.modifiers" | `hotKeyConfig.hotKeys.s.modifiers.${number}` | "hotKeyConfig.hotKeys.s.event" | "hotKeyConfig.hotKeys.t.modifiers" | `hotKeyConfig.hotKeys.t.modifiers.${number}` | "hotKeyConfig.hotKeys.t.event" | "hotKeyConfig.hotKeys.u.modifiers" | `hotKeyConfig.hotKeys.u.modifiers.${number}` | "hotKeyConfig.hotKeys.u.event" | "hotKeyConfig.hotKeys.v.modifiers" | `hotKeyConfig.hotKeys.v.modifiers.${number}` | "hotKeyConfig.hotKeys.v.event" | "hotKeyConfig.hotKeys.w.modifiers" | `hotKeyConfig.hotKeys.w.modifiers.${number}` | "hotKeyConfig.hotKeys.w.event" | "hotKeyConfig.hotKeys.x.modifiers" | `hotKeyConfig.hotKeys.x.modifiers.${number}` | "hotKeyConfig.hotKeys.x.event" | "hotKeyConfig.hotKeys.y.modifiers" | `hotKeyConfig.hotKeys.y.modifiers.${number}` | "hotKeyConfig.hotKeys.y.event" | "hotKeyConfig.hotKeys.z.modifiers" | `hotKeyConfig.hotKeys.z.modifiers.${number}` | "hotKeyConfig.hotKeys.z.event" | "hotKeyConfig.hotKeys.*.modifiers" | `hotKeyConfig.hotKeys.*.modifiers.${number}` | "hotKeyConfig.hotKeys.*.event" | "hotKeyConfig.hotKeys.+.modifiers" | `hotKeyConfig.hotKeys.+.modifiers.${number}` | "hotKeyConfig.hotKeys.+.event" | "hotKeyConfig.hotKeys.-.modifiers" | `hotKeyConfig.hotKeys.-.modifiers.${number}` | "hotKeyConfig.hotKeys.-.event" | "hotKeyConfig.hotKeys...modifiers" | `hotKeyConfig.hotKeys...modifiers.${number}` | "hotKeyConfig.hotKeys...event" | "hotKeyConfig.hotKeys.F1.modifiers" | `hotKeyConfig.hotKeys.F1.modifiers.${number}` | "hotKeyConfig.hotKeys.F1.event" | "hotKeyConfig.hotKeys.F2.modifiers" | `hotKeyConfig.hotKeys.F2.modifiers.${number}` | "hotKeyConfig.hotKeys.F2.event" | "hotKeyConfig.hotKeys.F3.modifiers" | `hotKeyConfig.hotKeys.F3.modifiers.${number}` | "hotKeyConfig.hotKeys.F3.event" | "hotKeyConfig.hotKeys.F4.modifiers" | `hotKeyConfig.hotKeys.F4.modifiers.${number}` | "hotKeyConfig.hotKeys.F4.event" | "hotKeyConfig.hotKeys.F5.modifiers" | `hotKeyConfig.hotKeys.F5.modifiers.${number}` | "hotKeyConfig.hotKeys.F5.event" | "hotKeyConfig.hotKeys.F6.modifiers" | `hotKeyConfig.hotKeys.F6.modifiers.${number}` | "hotKeyConfig.hotKeys.F6.event" | "hotKeyConfig.hotKeys.F7.modifiers" | `hotKeyConfig.hotKeys.F7.modifiers.${number}` | "hotKeyConfig.hotKeys.F7.event" | "hotKeyConfig.hotKeys.F8.modifiers" | `hotKeyConfig.hotKeys.F8.modifiers.${number}` | "hotKeyConfig.hotKeys.F8.event" | "hotKeyConfig.hotKeys.F9.modifiers" | `hotKeyConfig.hotKeys.F9.modifiers.${number}` | "hotKeyConfig.hotKeys.F9.event" | "hotKeyConfig.hotKeys.F10.modifiers" | `hotKeyConfig.hotKeys.F10.modifiers.${number}` | "hotKeyConfig.hotKeys.F10.event" | "hotKeyConfig.hotKeys.F11.modifiers" | `hotKeyConfig.hotKeys.F11.modifiers.${number}` | "hotKeyConfig.hotKeys.F11.event" | "hotKeyConfig.hotKeys.F12.modifiers" | `hotKeyConfig.hotKeys.F12.modifiers.${number}` | "hotKeyConfig.hotKeys.F12.event" | "hotKeyConfig.hotKeys.;.modifiers" | `hotKeyConfig.hotKeys.;.modifiers.${number}` | "hotKeyConfig.hotKeys.;.event" | "hotKeyConfig.hotKeys.=.modifiers" | `hotKeyConfig.hotKeys.=.modifiers.${number}` | "hotKeyConfig.hotKeys.=.event" | "hotKeyConfig.hotKeys.,.modifiers" | `hotKeyConfig.hotKeys.,.modifiers.${number}` | "hotKeyConfig.hotKeys.,.event" | "hotKeyConfig.hotKeys.`.modifiers" | `hotKeyConfig.hotKeys.\`.modifiers.${number}` | "hotKeyConfig.hotKeys.`.event" | "hotKeyConfig.hotKeys.[.modifiers" | `hotKeyConfig.hotKeys.[.modifiers.${number}` | "hotKeyConfig.hotKeys.[.event" | "hotKeyConfig.hotKeys.\\.modifiers" | `hotKeyConfig.hotKeys.\\.modifiers.${number}` | "hotKeyConfig.hotKeys.\\.event" | "hotKeyConfig.hotKeys.].modifiers" | `hotKeyConfig.hotKeys.].modifiers.${number}` | "hotKeyConfig.hotKeys.].event">(uid: string, path: P, value: P extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" ? {
3628
- uid: string;
3540
+ untrackedEdit: <P extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" | `cookies.${number}` | `collections.${number}` | `environments.${string}` | "selectedHttpClient.targetKey" | "selectedHttpClient.clientKey" | "hotKeyConfig.modifiers" | "hotKeyConfig.hotKeys" | `hotKeyConfig.modifiers.${number}` | "hotKeyConfig.hotKeys." | "hotKeyConfig.hotKeys./" | "hotKeyConfig.hotKeys.Space" | "hotKeyConfig.hotKeys.Backspace" | "hotKeyConfig.hotKeys.Tab" | "hotKeyConfig.hotKeys.Enter" | "hotKeyConfig.hotKeys.Escape" | "hotKeyConfig.hotKeys.ArrowDown" | "hotKeyConfig.hotKeys.ArrowLeft" | "hotKeyConfig.hotKeys.ArrowRight" | "hotKeyConfig.hotKeys.ArrowUp" | "hotKeyConfig.hotKeys.End" | "hotKeyConfig.hotKeys.Home" | "hotKeyConfig.hotKeys.PageDown" | "hotKeyConfig.hotKeys.PageUp" | "hotKeyConfig.hotKeys.Delete" | "hotKeyConfig.hotKeys.0" | "hotKeyConfig.hotKeys.1" | "hotKeyConfig.hotKeys.2" | "hotKeyConfig.hotKeys.3" | "hotKeyConfig.hotKeys.4" | "hotKeyConfig.hotKeys.5" | "hotKeyConfig.hotKeys.6" | "hotKeyConfig.hotKeys.7" | "hotKeyConfig.hotKeys.8" | "hotKeyConfig.hotKeys.9" | "hotKeyConfig.hotKeys.a" | "hotKeyConfig.hotKeys.b" | "hotKeyConfig.hotKeys.c" | "hotKeyConfig.hotKeys.d" | "hotKeyConfig.hotKeys.e" | "hotKeyConfig.hotKeys.f" | "hotKeyConfig.hotKeys.g" | "hotKeyConfig.hotKeys.h" | "hotKeyConfig.hotKeys.i" | "hotKeyConfig.hotKeys.j" | "hotKeyConfig.hotKeys.k" | "hotKeyConfig.hotKeys.l" | "hotKeyConfig.hotKeys.m" | "hotKeyConfig.hotKeys.n" | "hotKeyConfig.hotKeys.o" | "hotKeyConfig.hotKeys.p" | "hotKeyConfig.hotKeys.q" | "hotKeyConfig.hotKeys.r" | "hotKeyConfig.hotKeys.s" | "hotKeyConfig.hotKeys.t" | "hotKeyConfig.hotKeys.u" | "hotKeyConfig.hotKeys.v" | "hotKeyConfig.hotKeys.w" | "hotKeyConfig.hotKeys.x" | "hotKeyConfig.hotKeys.y" | "hotKeyConfig.hotKeys.z" | "hotKeyConfig.hotKeys.*" | "hotKeyConfig.hotKeys.+" | "hotKeyConfig.hotKeys.-" | "hotKeyConfig.hotKeys.." | "hotKeyConfig.hotKeys.F1" | "hotKeyConfig.hotKeys.F2" | "hotKeyConfig.hotKeys.F3" | "hotKeyConfig.hotKeys.F4" | "hotKeyConfig.hotKeys.F5" | "hotKeyConfig.hotKeys.F6" | "hotKeyConfig.hotKeys.F7" | "hotKeyConfig.hotKeys.F8" | "hotKeyConfig.hotKeys.F9" | "hotKeyConfig.hotKeys.F10" | "hotKeyConfig.hotKeys.F11" | "hotKeyConfig.hotKeys.F12" | "hotKeyConfig.hotKeys.;" | "hotKeyConfig.hotKeys.=" | "hotKeyConfig.hotKeys.," | "hotKeyConfig.hotKeys.`" | "hotKeyConfig.hotKeys.[" | "hotKeyConfig.hotKeys.\\" | "hotKeyConfig.hotKeys.]" | "hotKeyConfig.hotKeys..modifiers" | `hotKeyConfig.hotKeys..modifiers.${number}` | "hotKeyConfig.hotKeys..event" | "hotKeyConfig.hotKeys./.modifiers" | `hotKeyConfig.hotKeys./.modifiers.${number}` | "hotKeyConfig.hotKeys./.event" | "hotKeyConfig.hotKeys.Space.modifiers" | `hotKeyConfig.hotKeys.Space.modifiers.${number}` | "hotKeyConfig.hotKeys.Space.event" | "hotKeyConfig.hotKeys.Backspace.modifiers" | `hotKeyConfig.hotKeys.Backspace.modifiers.${number}` | "hotKeyConfig.hotKeys.Backspace.event" | "hotKeyConfig.hotKeys.Tab.modifiers" | `hotKeyConfig.hotKeys.Tab.modifiers.${number}` | "hotKeyConfig.hotKeys.Tab.event" | "hotKeyConfig.hotKeys.Enter.modifiers" | `hotKeyConfig.hotKeys.Enter.modifiers.${number}` | "hotKeyConfig.hotKeys.Enter.event" | "hotKeyConfig.hotKeys.Escape.modifiers" | `hotKeyConfig.hotKeys.Escape.modifiers.${number}` | "hotKeyConfig.hotKeys.Escape.event" | "hotKeyConfig.hotKeys.ArrowDown.modifiers" | `hotKeyConfig.hotKeys.ArrowDown.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowDown.event" | "hotKeyConfig.hotKeys.ArrowLeft.modifiers" | `hotKeyConfig.hotKeys.ArrowLeft.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowLeft.event" | "hotKeyConfig.hotKeys.ArrowRight.modifiers" | `hotKeyConfig.hotKeys.ArrowRight.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowRight.event" | "hotKeyConfig.hotKeys.ArrowUp.modifiers" | `hotKeyConfig.hotKeys.ArrowUp.modifiers.${number}` | "hotKeyConfig.hotKeys.ArrowUp.event" | "hotKeyConfig.hotKeys.End.modifiers" | `hotKeyConfig.hotKeys.End.modifiers.${number}` | "hotKeyConfig.hotKeys.End.event" | "hotKeyConfig.hotKeys.Home.modifiers" | `hotKeyConfig.hotKeys.Home.modifiers.${number}` | "hotKeyConfig.hotKeys.Home.event" | "hotKeyConfig.hotKeys.PageDown.modifiers" | `hotKeyConfig.hotKeys.PageDown.modifiers.${number}` | "hotKeyConfig.hotKeys.PageDown.event" | "hotKeyConfig.hotKeys.PageUp.modifiers" | `hotKeyConfig.hotKeys.PageUp.modifiers.${number}` | "hotKeyConfig.hotKeys.PageUp.event" | "hotKeyConfig.hotKeys.Delete.modifiers" | `hotKeyConfig.hotKeys.Delete.modifiers.${number}` | "hotKeyConfig.hotKeys.Delete.event" | "hotKeyConfig.hotKeys.0.modifiers" | `hotKeyConfig.hotKeys.0.modifiers.${number}` | "hotKeyConfig.hotKeys.0.event" | "hotKeyConfig.hotKeys.1.modifiers" | `hotKeyConfig.hotKeys.1.modifiers.${number}` | "hotKeyConfig.hotKeys.1.event" | "hotKeyConfig.hotKeys.2.modifiers" | `hotKeyConfig.hotKeys.2.modifiers.${number}` | "hotKeyConfig.hotKeys.2.event" | "hotKeyConfig.hotKeys.3.modifiers" | `hotKeyConfig.hotKeys.3.modifiers.${number}` | "hotKeyConfig.hotKeys.3.event" | "hotKeyConfig.hotKeys.4.modifiers" | `hotKeyConfig.hotKeys.4.modifiers.${number}` | "hotKeyConfig.hotKeys.4.event" | "hotKeyConfig.hotKeys.5.modifiers" | `hotKeyConfig.hotKeys.5.modifiers.${number}` | "hotKeyConfig.hotKeys.5.event" | "hotKeyConfig.hotKeys.6.modifiers" | `hotKeyConfig.hotKeys.6.modifiers.${number}` | "hotKeyConfig.hotKeys.6.event" | "hotKeyConfig.hotKeys.7.modifiers" | `hotKeyConfig.hotKeys.7.modifiers.${number}` | "hotKeyConfig.hotKeys.7.event" | "hotKeyConfig.hotKeys.8.modifiers" | `hotKeyConfig.hotKeys.8.modifiers.${number}` | "hotKeyConfig.hotKeys.8.event" | "hotKeyConfig.hotKeys.9.modifiers" | `hotKeyConfig.hotKeys.9.modifiers.${number}` | "hotKeyConfig.hotKeys.9.event" | "hotKeyConfig.hotKeys.a.modifiers" | `hotKeyConfig.hotKeys.a.modifiers.${number}` | "hotKeyConfig.hotKeys.a.event" | "hotKeyConfig.hotKeys.b.modifiers" | `hotKeyConfig.hotKeys.b.modifiers.${number}` | "hotKeyConfig.hotKeys.b.event" | "hotKeyConfig.hotKeys.c.modifiers" | `hotKeyConfig.hotKeys.c.modifiers.${number}` | "hotKeyConfig.hotKeys.c.event" | "hotKeyConfig.hotKeys.d.modifiers" | `hotKeyConfig.hotKeys.d.modifiers.${number}` | "hotKeyConfig.hotKeys.d.event" | "hotKeyConfig.hotKeys.e.modifiers" | `hotKeyConfig.hotKeys.e.modifiers.${number}` | "hotKeyConfig.hotKeys.e.event" | "hotKeyConfig.hotKeys.f.modifiers" | `hotKeyConfig.hotKeys.f.modifiers.${number}` | "hotKeyConfig.hotKeys.f.event" | "hotKeyConfig.hotKeys.g.modifiers" | `hotKeyConfig.hotKeys.g.modifiers.${number}` | "hotKeyConfig.hotKeys.g.event" | "hotKeyConfig.hotKeys.h.modifiers" | `hotKeyConfig.hotKeys.h.modifiers.${number}` | "hotKeyConfig.hotKeys.h.event" | "hotKeyConfig.hotKeys.i.modifiers" | `hotKeyConfig.hotKeys.i.modifiers.${number}` | "hotKeyConfig.hotKeys.i.event" | "hotKeyConfig.hotKeys.j.modifiers" | `hotKeyConfig.hotKeys.j.modifiers.${number}` | "hotKeyConfig.hotKeys.j.event" | "hotKeyConfig.hotKeys.k.modifiers" | `hotKeyConfig.hotKeys.k.modifiers.${number}` | "hotKeyConfig.hotKeys.k.event" | "hotKeyConfig.hotKeys.l.modifiers" | `hotKeyConfig.hotKeys.l.modifiers.${number}` | "hotKeyConfig.hotKeys.l.event" | "hotKeyConfig.hotKeys.m.modifiers" | `hotKeyConfig.hotKeys.m.modifiers.${number}` | "hotKeyConfig.hotKeys.m.event" | "hotKeyConfig.hotKeys.n.modifiers" | `hotKeyConfig.hotKeys.n.modifiers.${number}` | "hotKeyConfig.hotKeys.n.event" | "hotKeyConfig.hotKeys.o.modifiers" | `hotKeyConfig.hotKeys.o.modifiers.${number}` | "hotKeyConfig.hotKeys.o.event" | "hotKeyConfig.hotKeys.p.modifiers" | `hotKeyConfig.hotKeys.p.modifiers.${number}` | "hotKeyConfig.hotKeys.p.event" | "hotKeyConfig.hotKeys.q.modifiers" | `hotKeyConfig.hotKeys.q.modifiers.${number}` | "hotKeyConfig.hotKeys.q.event" | "hotKeyConfig.hotKeys.r.modifiers" | `hotKeyConfig.hotKeys.r.modifiers.${number}` | "hotKeyConfig.hotKeys.r.event" | "hotKeyConfig.hotKeys.s.modifiers" | `hotKeyConfig.hotKeys.s.modifiers.${number}` | "hotKeyConfig.hotKeys.s.event" | "hotKeyConfig.hotKeys.t.modifiers" | `hotKeyConfig.hotKeys.t.modifiers.${number}` | "hotKeyConfig.hotKeys.t.event" | "hotKeyConfig.hotKeys.u.modifiers" | `hotKeyConfig.hotKeys.u.modifiers.${number}` | "hotKeyConfig.hotKeys.u.event" | "hotKeyConfig.hotKeys.v.modifiers" | `hotKeyConfig.hotKeys.v.modifiers.${number}` | "hotKeyConfig.hotKeys.v.event" | "hotKeyConfig.hotKeys.w.modifiers" | `hotKeyConfig.hotKeys.w.modifiers.${number}` | "hotKeyConfig.hotKeys.w.event" | "hotKeyConfig.hotKeys.x.modifiers" | `hotKeyConfig.hotKeys.x.modifiers.${number}` | "hotKeyConfig.hotKeys.x.event" | "hotKeyConfig.hotKeys.y.modifiers" | `hotKeyConfig.hotKeys.y.modifiers.${number}` | "hotKeyConfig.hotKeys.y.event" | "hotKeyConfig.hotKeys.z.modifiers" | `hotKeyConfig.hotKeys.z.modifiers.${number}` | "hotKeyConfig.hotKeys.z.event" | "hotKeyConfig.hotKeys.*.modifiers" | `hotKeyConfig.hotKeys.*.modifiers.${number}` | "hotKeyConfig.hotKeys.*.event" | "hotKeyConfig.hotKeys.+.modifiers" | `hotKeyConfig.hotKeys.+.modifiers.${number}` | "hotKeyConfig.hotKeys.+.event" | "hotKeyConfig.hotKeys.-.modifiers" | `hotKeyConfig.hotKeys.-.modifiers.${number}` | "hotKeyConfig.hotKeys.-.event" | "hotKeyConfig.hotKeys...modifiers" | `hotKeyConfig.hotKeys...modifiers.${number}` | "hotKeyConfig.hotKeys...event" | "hotKeyConfig.hotKeys.F1.modifiers" | `hotKeyConfig.hotKeys.F1.modifiers.${number}` | "hotKeyConfig.hotKeys.F1.event" | "hotKeyConfig.hotKeys.F2.modifiers" | `hotKeyConfig.hotKeys.F2.modifiers.${number}` | "hotKeyConfig.hotKeys.F2.event" | "hotKeyConfig.hotKeys.F3.modifiers" | `hotKeyConfig.hotKeys.F3.modifiers.${number}` | "hotKeyConfig.hotKeys.F3.event" | "hotKeyConfig.hotKeys.F4.modifiers" | `hotKeyConfig.hotKeys.F4.modifiers.${number}` | "hotKeyConfig.hotKeys.F4.event" | "hotKeyConfig.hotKeys.F5.modifiers" | `hotKeyConfig.hotKeys.F5.modifiers.${number}` | "hotKeyConfig.hotKeys.F5.event" | "hotKeyConfig.hotKeys.F6.modifiers" | `hotKeyConfig.hotKeys.F6.modifiers.${number}` | "hotKeyConfig.hotKeys.F6.event" | "hotKeyConfig.hotKeys.F7.modifiers" | `hotKeyConfig.hotKeys.F7.modifiers.${number}` | "hotKeyConfig.hotKeys.F7.event" | "hotKeyConfig.hotKeys.F8.modifiers" | `hotKeyConfig.hotKeys.F8.modifiers.${number}` | "hotKeyConfig.hotKeys.F8.event" | "hotKeyConfig.hotKeys.F9.modifiers" | `hotKeyConfig.hotKeys.F9.modifiers.${number}` | "hotKeyConfig.hotKeys.F9.event" | "hotKeyConfig.hotKeys.F10.modifiers" | `hotKeyConfig.hotKeys.F10.modifiers.${number}` | "hotKeyConfig.hotKeys.F10.event" | "hotKeyConfig.hotKeys.F11.modifiers" | `hotKeyConfig.hotKeys.F11.modifiers.${number}` | "hotKeyConfig.hotKeys.F11.event" | "hotKeyConfig.hotKeys.F12.modifiers" | `hotKeyConfig.hotKeys.F12.modifiers.${number}` | "hotKeyConfig.hotKeys.F12.event" | "hotKeyConfig.hotKeys.;.modifiers" | `hotKeyConfig.hotKeys.;.modifiers.${number}` | "hotKeyConfig.hotKeys.;.event" | "hotKeyConfig.hotKeys.=.modifiers" | `hotKeyConfig.hotKeys.=.modifiers.${number}` | "hotKeyConfig.hotKeys.=.event" | "hotKeyConfig.hotKeys.,.modifiers" | `hotKeyConfig.hotKeys.,.modifiers.${number}` | "hotKeyConfig.hotKeys.,.event" | "hotKeyConfig.hotKeys.`.modifiers" | `hotKeyConfig.hotKeys.\`.modifiers.${number}` | "hotKeyConfig.hotKeys.`.event" | "hotKeyConfig.hotKeys.[.modifiers" | `hotKeyConfig.hotKeys.[.modifiers.${number}` | "hotKeyConfig.hotKeys.[.event" | "hotKeyConfig.hotKeys.\\.modifiers" | `hotKeyConfig.hotKeys.\\.modifiers.${number}` | "hotKeyConfig.hotKeys.\\.event" | "hotKeyConfig.hotKeys.].modifiers" | `hotKeyConfig.hotKeys.].modifiers.${number}` | "hotKeyConfig.hotKeys.].event">(uid: string & BRAND<"workspace">, path: P, value: P extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" ? {
3541
+ uid: string & BRAND<"workspace">;
3629
3542
  name: string;
3630
3543
  description: string;
3631
- collections: string[];
3544
+ collections: (string & BRAND<"collection">)[];
3632
3545
  environments: Record<string, string>;
3633
3546
  activeEnvironmentId: string;
3634
- cookies: string[];
3547
+ cookies: (string & BRAND<"cookie">)[];
3635
3548
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3636
3549
  selectedHttpClient: {
3637
3550
  targetKey: string;
@@ -3646,13 +3559,13 @@ export declare const useApiClientModal: () => {
3646
3559
  } | undefined;
3647
3560
  proxyUrl?: string | undefined;
3648
3561
  }[P] : P extends `${infer K}.${infer R}` ? K extends "cookies" | "description" | "name" | "uid" | "collections" | "environments" | "activeEnvironmentId" | "themeId" | "selectedHttpClient" | "hotKeyConfig" | "proxyUrl" ? R extends Path< {
3649
- uid: string;
3562
+ uid: string & BRAND<"workspace">;
3650
3563
  name: string;
3651
3564
  description: string;
3652
- collections: string[];
3565
+ collections: (string & BRAND<"collection">)[];
3653
3566
  environments: Record<string, string>;
3654
3567
  activeEnvironmentId: string;
3655
- cookies: string[];
3568
+ cookies: (string & BRAND<"cookie">)[];
3656
3569
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3657
3570
  selectedHttpClient: {
3658
3571
  targetKey: string;
@@ -3667,13 +3580,13 @@ export declare const useApiClientModal: () => {
3667
3580
  } | undefined;
3668
3581
  proxyUrl?: string | undefined;
3669
3582
  }[K]> ? PathValue< {
3670
- uid: string;
3583
+ uid: string & BRAND<"workspace">;
3671
3584
  name: string;
3672
3585
  description: string;
3673
- collections: string[];
3586
+ collections: (string & BRAND<"collection">)[];
3674
3587
  environments: Record<string, string>;
3675
3588
  activeEnvironmentId: string;
3676
- cookies: string[];
3589
+ cookies: (string & BRAND<"cookie">)[];
3677
3590
  themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3678
3591
  selectedHttpClient: {
3679
3592
  targetKey: string;
@@ -3688,12 +3601,12 @@ export declare const useApiClientModal: () => {
3688
3601
  } | undefined;
3689
3602
  proxyUrl?: string | undefined;
3690
3603
  }[K], R> : never : K extends `${number}` ? never : never : P extends `${number}` ? never : never) => void;
3691
- undo: (uid: string) => void;
3692
- redo: (uid: string) => void;
3604
+ undo: (uid: string & BRAND<"workspace">) => void;
3605
+ redo: (uid: string & BRAND<"workspace">) => void;
3693
3606
  reset: () => void;
3694
3607
  };
3695
- addCollectionEnvironment: (environmentName: string, environment: XScalarEnvironment, collectionUid: string) => void;
3696
- removeCollectionEnvironment: (environmentName: string, collectionUid: string) => void;
3608
+ addCollectionEnvironment: (environmentName: string, environment: XScalarEnvironment, collectionUid: Collection["uid"]) => void;
3609
+ removeCollectionEnvironment: (environmentName: string, collectionUid: Collection["uid"]) => void;
3697
3610
  };
3698
3611
  updateExample: (exampleKey: string, operationId: string) => void;
3699
3612
  } | null;