@jbrowse/plugin-authentication 2.4.1 → 2.5.0

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/esm/index.d.ts CHANGED
@@ -4,13 +4,256 @@ import PluginManager from '@jbrowse/core/PluginManager';
4
4
  export default class AuthenticationPlugin extends Plugin {
5
5
  name: string;
6
6
  exports: {
7
- OAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
8
- OAuthInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType) => import("mobx-state-tree").IModelType<{
7
+ OAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
8
+ tokenType: {
9
+ description: string;
10
+ type: string;
11
+ defaultValue: string;
12
+ };
13
+ authEndpoint: {
14
+ description: string;
15
+ type: string;
16
+ defaultValue: string;
17
+ };
18
+ tokenEndpoint: {
19
+ description: string;
20
+ type: string;
21
+ defaultValue: string;
22
+ };
23
+ needsPKCE: {
24
+ description: string;
25
+ type: string;
26
+ defaultValue: boolean;
27
+ };
28
+ clientId: {
29
+ description: string;
30
+ type: string;
31
+ defaultValue: string;
32
+ };
33
+ scopes: {
34
+ description: string;
35
+ type: string;
36
+ defaultValue: string;
37
+ };
38
+ state: {
39
+ description: string;
40
+ type: string;
41
+ defaultValue: string;
42
+ };
43
+ responseType: {
44
+ description: string;
45
+ type: string;
46
+ defaultValue: string;
47
+ };
48
+ hasRefreshToken: {
49
+ description: string;
50
+ type: string;
51
+ defaultValue: boolean;
52
+ };
53
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
54
+ name: {
55
+ description: string;
56
+ type: string;
57
+ defaultValue: string;
58
+ };
59
+ description: {
60
+ description: string;
61
+ type: string;
62
+ defaultValue: string;
63
+ };
64
+ authHeader: {
65
+ description: string;
66
+ type: string;
67
+ defaultValue: string;
68
+ };
69
+ tokenType: {
70
+ description: string;
71
+ type: string;
72
+ defaultValue: string;
73
+ };
74
+ domains: {
75
+ description: string;
76
+ type: string;
77
+ defaultValue: never[];
78
+ };
79
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
80
+ OAuthInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
81
+ tokenType: {
82
+ description: string;
83
+ type: string;
84
+ defaultValue: string;
85
+ };
86
+ authEndpoint: {
87
+ description: string;
88
+ type: string;
89
+ defaultValue: string;
90
+ };
91
+ tokenEndpoint: {
92
+ description: string;
93
+ type: string;
94
+ defaultValue: string;
95
+ };
96
+ needsPKCE: {
97
+ description: string;
98
+ type: string;
99
+ defaultValue: boolean;
100
+ };
101
+ clientId: {
102
+ description: string;
103
+ type: string;
104
+ defaultValue: string;
105
+ };
106
+ scopes: {
107
+ description: string;
108
+ type: string;
109
+ defaultValue: string;
110
+ };
111
+ state: {
112
+ description: string;
113
+ type: string;
114
+ defaultValue: string;
115
+ };
116
+ responseType: {
117
+ description: string;
118
+ type: string;
119
+ defaultValue: string;
120
+ };
121
+ hasRefreshToken: {
122
+ description: string;
123
+ type: string;
124
+ defaultValue: boolean;
125
+ };
126
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
127
+ name: {
128
+ description: string;
129
+ type: string;
130
+ defaultValue: string;
131
+ };
132
+ description: {
133
+ description: string;
134
+ type: string;
135
+ defaultValue: string;
136
+ };
137
+ authHeader: {
138
+ description: string;
139
+ type: string;
140
+ defaultValue: string;
141
+ };
142
+ tokenType: {
143
+ description: string;
144
+ type: string;
145
+ defaultValue: string;
146
+ };
147
+ domains: {
148
+ description: string;
149
+ type: string;
150
+ defaultValue: never[];
151
+ };
152
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
9
153
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
10
154
  type: import("mobx-state-tree").ISimpleType<string>;
155
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
156
+ name: {
157
+ description: string;
158
+ type: string;
159
+ defaultValue: string;
160
+ };
161
+ description: {
162
+ description: string;
163
+ type: string;
164
+ defaultValue: string;
165
+ };
166
+ authHeader: {
167
+ description: string;
168
+ type: string;
169
+ defaultValue: string;
170
+ };
171
+ tokenType: {
172
+ description: string;
173
+ type: string;
174
+ defaultValue: string;
175
+ };
176
+ domains: {
177
+ description: string;
178
+ type: string;
179
+ defaultValue: never[];
180
+ };
181
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
11
182
  } & {
12
183
  type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
13
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
184
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
185
+ tokenType: {
186
+ description: string;
187
+ type: string;
188
+ defaultValue: string;
189
+ };
190
+ authEndpoint: {
191
+ description: string;
192
+ type: string;
193
+ defaultValue: string;
194
+ };
195
+ tokenEndpoint: {
196
+ description: string;
197
+ type: string;
198
+ defaultValue: string;
199
+ };
200
+ needsPKCE: {
201
+ description: string;
202
+ type: string;
203
+ defaultValue: boolean;
204
+ };
205
+ clientId: {
206
+ description: string;
207
+ type: string;
208
+ defaultValue: string;
209
+ };
210
+ scopes: {
211
+ description: string;
212
+ type: string;
213
+ defaultValue: string;
214
+ };
215
+ state: {
216
+ description: string;
217
+ type: string;
218
+ defaultValue: string;
219
+ };
220
+ responseType: {
221
+ description: string;
222
+ type: string;
223
+ defaultValue: string;
224
+ };
225
+ hasRefreshToken: {
226
+ description: string;
227
+ type: string;
228
+ defaultValue: boolean;
229
+ };
230
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
231
+ name: {
232
+ description: string;
233
+ type: string;
234
+ defaultValue: string;
235
+ };
236
+ description: {
237
+ description: string;
238
+ type: string;
239
+ defaultValue: string;
240
+ };
241
+ authHeader: {
242
+ description: string;
243
+ type: string;
244
+ defaultValue: string;
245
+ };
246
+ tokenType: {
247
+ description: string;
248
+ type: string;
249
+ defaultValue: string;
250
+ };
251
+ domains: {
252
+ description: string;
253
+ type: string;
254
+ defaultValue: never[];
255
+ };
256
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
14
257
  }, {
15
258
  readonly name: string;
16
259
  readonly description: string;
@@ -85,13 +328,136 @@ export default class AuthenticationPlugin extends Plugin {
85
328
  getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
86
329
  validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
87
330
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
88
- ExternalTokenConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
89
- ExternalTokenInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType) => import("mobx-state-tree").IModelType<{
331
+ ExternalTokenConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
332
+ validateWithHEAD: {
333
+ description: string;
334
+ type: string;
335
+ defaultValue: boolean;
336
+ };
337
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
338
+ name: {
339
+ description: string;
340
+ type: string;
341
+ defaultValue: string;
342
+ };
343
+ description: {
344
+ description: string;
345
+ type: string;
346
+ defaultValue: string;
347
+ };
348
+ authHeader: {
349
+ description: string;
350
+ type: string;
351
+ defaultValue: string;
352
+ };
353
+ tokenType: {
354
+ description: string;
355
+ type: string;
356
+ defaultValue: string;
357
+ };
358
+ domains: {
359
+ description: string;
360
+ type: string;
361
+ defaultValue: never[];
362
+ };
363
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
364
+ ExternalTokenInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
365
+ validateWithHEAD: {
366
+ description: string;
367
+ type: string;
368
+ defaultValue: boolean;
369
+ };
370
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
371
+ name: {
372
+ description: string;
373
+ type: string;
374
+ defaultValue: string;
375
+ };
376
+ description: {
377
+ description: string;
378
+ type: string;
379
+ defaultValue: string;
380
+ };
381
+ authHeader: {
382
+ description: string;
383
+ type: string;
384
+ defaultValue: string;
385
+ };
386
+ tokenType: {
387
+ description: string;
388
+ type: string;
389
+ defaultValue: string;
390
+ };
391
+ domains: {
392
+ description: string;
393
+ type: string;
394
+ defaultValue: never[];
395
+ };
396
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
90
397
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
91
398
  type: import("mobx-state-tree").ISimpleType<string>;
399
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
400
+ name: {
401
+ description: string;
402
+ type: string;
403
+ defaultValue: string;
404
+ };
405
+ description: {
406
+ description: string;
407
+ type: string;
408
+ defaultValue: string;
409
+ };
410
+ authHeader: {
411
+ description: string;
412
+ type: string;
413
+ defaultValue: string;
414
+ };
415
+ tokenType: {
416
+ description: string;
417
+ type: string;
418
+ defaultValue: string;
419
+ };
420
+ domains: {
421
+ description: string;
422
+ type: string;
423
+ defaultValue: never[];
424
+ };
425
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
92
426
  } & {
93
427
  type: import("mobx-state-tree").ISimpleType<"ExternalTokenInternetAccount">;
94
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
428
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
429
+ validateWithHEAD: {
430
+ description: string;
431
+ type: string;
432
+ defaultValue: boolean;
433
+ };
434
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
435
+ name: {
436
+ description: string;
437
+ type: string;
438
+ defaultValue: string;
439
+ };
440
+ description: {
441
+ description: string;
442
+ type: string;
443
+ defaultValue: string;
444
+ };
445
+ authHeader: {
446
+ description: string;
447
+ type: string;
448
+ defaultValue: string;
449
+ };
450
+ tokenType: {
451
+ description: string;
452
+ type: string;
453
+ defaultValue: string;
454
+ };
455
+ domains: {
456
+ description: string;
457
+ type: string;
458
+ defaultValue: never[];
459
+ };
460
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
95
461
  }, {
96
462
  readonly name: string;
97
463
  readonly description: string;
@@ -146,13 +512,151 @@ export default class AuthenticationPlugin extends Plugin {
146
512
  getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
147
513
  validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
148
514
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
149
- HTTPBasicConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
150
- HTTPBasicInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType) => import("mobx-state-tree").IModelType<{
515
+ HTTPBasicConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
516
+ tokenType: {
517
+ description: string;
518
+ type: string;
519
+ defaultValue: string;
520
+ };
521
+ validateWithHEAD: {
522
+ description: string;
523
+ type: string;
524
+ defaultValue: boolean;
525
+ };
526
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
527
+ name: {
528
+ description: string;
529
+ type: string;
530
+ defaultValue: string;
531
+ };
532
+ description: {
533
+ description: string;
534
+ type: string;
535
+ defaultValue: string;
536
+ };
537
+ authHeader: {
538
+ description: string;
539
+ type: string;
540
+ defaultValue: string;
541
+ };
542
+ tokenType: {
543
+ description: string;
544
+ type: string;
545
+ defaultValue: string;
546
+ };
547
+ domains: {
548
+ description: string;
549
+ type: string;
550
+ defaultValue: never[];
551
+ };
552
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
553
+ HTTPBasicInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
554
+ tokenType: {
555
+ description: string;
556
+ type: string;
557
+ defaultValue: string;
558
+ };
559
+ validateWithHEAD: {
560
+ description: string;
561
+ type: string;
562
+ defaultValue: boolean;
563
+ };
564
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
565
+ name: {
566
+ description: string;
567
+ type: string;
568
+ defaultValue: string;
569
+ };
570
+ description: {
571
+ description: string;
572
+ type: string;
573
+ defaultValue: string;
574
+ };
575
+ authHeader: {
576
+ description: string;
577
+ type: string;
578
+ defaultValue: string;
579
+ };
580
+ tokenType: {
581
+ description: string;
582
+ type: string;
583
+ defaultValue: string;
584
+ };
585
+ domains: {
586
+ description: string;
587
+ type: string;
588
+ defaultValue: never[];
589
+ };
590
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
151
591
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
152
592
  type: import("mobx-state-tree").ISimpleType<string>;
593
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
594
+ name: {
595
+ description: string;
596
+ type: string;
597
+ defaultValue: string;
598
+ };
599
+ description: {
600
+ description: string;
601
+ type: string;
602
+ defaultValue: string;
603
+ };
604
+ authHeader: {
605
+ description: string;
606
+ type: string;
607
+ defaultValue: string;
608
+ };
609
+ tokenType: {
610
+ description: string;
611
+ type: string;
612
+ defaultValue: string;
613
+ };
614
+ domains: {
615
+ description: string;
616
+ type: string;
617
+ defaultValue: never[];
618
+ };
619
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
153
620
  } & {
154
621
  type: import("mobx-state-tree").ISimpleType<"HTTPBasicInternetAccount">;
155
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
622
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
623
+ tokenType: {
624
+ description: string;
625
+ type: string;
626
+ defaultValue: string;
627
+ };
628
+ validateWithHEAD: {
629
+ description: string;
630
+ type: string;
631
+ defaultValue: boolean;
632
+ };
633
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
634
+ name: {
635
+ description: string;
636
+ type: string;
637
+ defaultValue: string;
638
+ };
639
+ description: {
640
+ description: string;
641
+ type: string;
642
+ defaultValue: string;
643
+ };
644
+ authHeader: {
645
+ description: string;
646
+ type: string;
647
+ defaultValue: string;
648
+ };
649
+ tokenType: {
650
+ description: string;
651
+ type: string;
652
+ defaultValue: string;
653
+ };
654
+ domains: {
655
+ description: string;
656
+ type: string;
657
+ defaultValue: never[];
658
+ };
659
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
156
660
  }, {
157
661
  readonly name: string;
158
662
  readonly description: string;
@@ -207,16 +711,409 @@ export default class AuthenticationPlugin extends Plugin {
207
711
  getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
208
712
  validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
209
713
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
210
- DropboxOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
211
- DropboxOAuthInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType) => import("mobx-state-tree").IModelType<{
714
+ DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
715
+ authEndpoint: {
716
+ description: string;
717
+ type: string;
718
+ defaultValue: string;
719
+ };
720
+ tokenEndpoint: {
721
+ description: string;
722
+ type: string;
723
+ defaultValue: string;
724
+ };
725
+ needsPKCE: {
726
+ description: string;
727
+ type: string;
728
+ defaultValue: boolean;
729
+ };
730
+ domains: {
731
+ description: string;
732
+ type: string;
733
+ defaultValue: string[];
734
+ };
735
+ hasRefreshToken: {
736
+ description: string;
737
+ type: string;
738
+ defaultValue: boolean;
739
+ };
740
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
741
+ tokenType: {
742
+ description: string;
743
+ type: string;
744
+ defaultValue: string;
745
+ };
746
+ authEndpoint: {
747
+ description: string;
748
+ type: string;
749
+ defaultValue: string;
750
+ };
751
+ tokenEndpoint: {
752
+ description: string;
753
+ type: string;
754
+ defaultValue: string;
755
+ };
756
+ needsPKCE: {
757
+ description: string;
758
+ type: string;
759
+ defaultValue: boolean;
760
+ };
761
+ clientId: {
762
+ description: string;
763
+ type: string;
764
+ defaultValue: string;
765
+ };
766
+ scopes: {
767
+ description: string;
768
+ type: string;
769
+ defaultValue: string;
770
+ };
771
+ state: {
772
+ description: string;
773
+ type: string;
774
+ defaultValue: string;
775
+ };
776
+ responseType: {
777
+ description: string;
778
+ type: string;
779
+ defaultValue: string;
780
+ };
781
+ hasRefreshToken: {
782
+ description: string;
783
+ type: string;
784
+ defaultValue: boolean;
785
+ };
786
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
787
+ name: {
788
+ description: string;
789
+ type: string;
790
+ defaultValue: string;
791
+ };
792
+ description: {
793
+ description: string;
794
+ type: string;
795
+ defaultValue: string;
796
+ };
797
+ authHeader: {
798
+ description: string;
799
+ type: string;
800
+ defaultValue: string;
801
+ };
802
+ tokenType: {
803
+ description: string;
804
+ type: string;
805
+ defaultValue: string;
806
+ };
807
+ domains: {
808
+ description: string;
809
+ type: string;
810
+ defaultValue: never[];
811
+ };
812
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
813
+ DropboxOAuthInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
814
+ authEndpoint: {
815
+ description: string;
816
+ type: string;
817
+ defaultValue: string;
818
+ };
819
+ tokenEndpoint: {
820
+ description: string;
821
+ type: string;
822
+ defaultValue: string;
823
+ };
824
+ needsPKCE: {
825
+ description: string;
826
+ type: string;
827
+ defaultValue: boolean;
828
+ };
829
+ domains: {
830
+ description: string;
831
+ type: string;
832
+ defaultValue: string[];
833
+ };
834
+ hasRefreshToken: {
835
+ description: string;
836
+ type: string;
837
+ defaultValue: boolean;
838
+ };
839
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
840
+ tokenType: {
841
+ description: string;
842
+ type: string;
843
+ defaultValue: string;
844
+ };
845
+ authEndpoint: {
846
+ description: string;
847
+ type: string;
848
+ defaultValue: string;
849
+ };
850
+ tokenEndpoint: {
851
+ description: string;
852
+ type: string;
853
+ defaultValue: string;
854
+ };
855
+ needsPKCE: {
856
+ description: string;
857
+ type: string;
858
+ defaultValue: boolean;
859
+ };
860
+ clientId: {
861
+ description: string;
862
+ type: string;
863
+ defaultValue: string;
864
+ };
865
+ scopes: {
866
+ description: string;
867
+ type: string;
868
+ defaultValue: string;
869
+ };
870
+ state: {
871
+ description: string;
872
+ type: string;
873
+ defaultValue: string;
874
+ };
875
+ responseType: {
876
+ description: string;
877
+ type: string;
878
+ defaultValue: string;
879
+ };
880
+ hasRefreshToken: {
881
+ description: string;
882
+ type: string;
883
+ defaultValue: boolean;
884
+ };
885
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
886
+ name: {
887
+ description: string;
888
+ type: string;
889
+ defaultValue: string;
890
+ };
891
+ description: {
892
+ description: string;
893
+ type: string;
894
+ defaultValue: string;
895
+ };
896
+ authHeader: {
897
+ description: string;
898
+ type: string;
899
+ defaultValue: string;
900
+ };
901
+ tokenType: {
902
+ description: string;
903
+ type: string;
904
+ defaultValue: string;
905
+ };
906
+ domains: {
907
+ description: string;
908
+ type: string;
909
+ defaultValue: never[];
910
+ };
911
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>) => import("mobx-state-tree").IModelType<{
212
912
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
213
913
  type: import("mobx-state-tree").ISimpleType<string>;
914
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
915
+ name: {
916
+ description: string;
917
+ type: string;
918
+ defaultValue: string;
919
+ };
920
+ description: {
921
+ description: string;
922
+ type: string;
923
+ defaultValue: string;
924
+ };
925
+ authHeader: {
926
+ description: string;
927
+ type: string;
928
+ defaultValue: string;
929
+ };
930
+ tokenType: {
931
+ description: string;
932
+ type: string;
933
+ defaultValue: string;
934
+ };
935
+ domains: {
936
+ description: string;
937
+ type: string;
938
+ defaultValue: never[];
939
+ };
940
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
214
941
  } & {
215
942
  type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
216
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
943
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
944
+ tokenType: {
945
+ description: string;
946
+ type: string;
947
+ defaultValue: string;
948
+ };
949
+ authEndpoint: {
950
+ description: string;
951
+ type: string;
952
+ defaultValue: string;
953
+ };
954
+ tokenEndpoint: {
955
+ description: string;
956
+ type: string;
957
+ defaultValue: string;
958
+ };
959
+ needsPKCE: {
960
+ description: string;
961
+ type: string;
962
+ defaultValue: boolean;
963
+ };
964
+ clientId: {
965
+ description: string;
966
+ type: string;
967
+ defaultValue: string;
968
+ };
969
+ scopes: {
970
+ description: string;
971
+ type: string;
972
+ defaultValue: string;
973
+ };
974
+ state: {
975
+ description: string;
976
+ type: string;
977
+ defaultValue: string;
978
+ };
979
+ responseType: {
980
+ description: string;
981
+ type: string;
982
+ defaultValue: string;
983
+ };
984
+ hasRefreshToken: {
985
+ description: string;
986
+ type: string;
987
+ defaultValue: boolean;
988
+ };
989
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
990
+ name: {
991
+ description: string;
992
+ type: string;
993
+ defaultValue: string;
994
+ };
995
+ description: {
996
+ description: string;
997
+ type: string;
998
+ defaultValue: string;
999
+ };
1000
+ authHeader: {
1001
+ description: string;
1002
+ type: string;
1003
+ defaultValue: string;
1004
+ };
1005
+ tokenType: {
1006
+ description: string;
1007
+ type: string;
1008
+ defaultValue: string;
1009
+ };
1010
+ domains: {
1011
+ description: string;
1012
+ type: string;
1013
+ defaultValue: never[];
1014
+ };
1015
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
217
1016
  } & {
218
1017
  type: import("mobx-state-tree").ISimpleType<"DropboxOAuthInternetAccount">;
219
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
1018
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1019
+ authEndpoint: {
1020
+ description: string;
1021
+ type: string;
1022
+ defaultValue: string;
1023
+ };
1024
+ tokenEndpoint: {
1025
+ description: string;
1026
+ type: string;
1027
+ defaultValue: string;
1028
+ };
1029
+ needsPKCE: {
1030
+ description: string;
1031
+ type: string;
1032
+ defaultValue: boolean;
1033
+ };
1034
+ domains: {
1035
+ description: string;
1036
+ type: string;
1037
+ defaultValue: string[];
1038
+ };
1039
+ hasRefreshToken: {
1040
+ description: string;
1041
+ type: string;
1042
+ defaultValue: boolean;
1043
+ };
1044
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1045
+ tokenType: {
1046
+ description: string;
1047
+ type: string;
1048
+ defaultValue: string;
1049
+ };
1050
+ authEndpoint: {
1051
+ description: string;
1052
+ type: string;
1053
+ defaultValue: string;
1054
+ };
1055
+ tokenEndpoint: {
1056
+ description: string;
1057
+ type: string;
1058
+ defaultValue: string;
1059
+ };
1060
+ needsPKCE: {
1061
+ description: string;
1062
+ type: string;
1063
+ defaultValue: boolean;
1064
+ };
1065
+ clientId: {
1066
+ description: string;
1067
+ type: string;
1068
+ defaultValue: string;
1069
+ };
1070
+ scopes: {
1071
+ description: string;
1072
+ type: string;
1073
+ defaultValue: string;
1074
+ };
1075
+ state: {
1076
+ description: string;
1077
+ type: string;
1078
+ defaultValue: string;
1079
+ };
1080
+ responseType: {
1081
+ description: string;
1082
+ type: string;
1083
+ defaultValue: string;
1084
+ };
1085
+ hasRefreshToken: {
1086
+ description: string;
1087
+ type: string;
1088
+ defaultValue: boolean;
1089
+ };
1090
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1091
+ name: {
1092
+ description: string;
1093
+ type: string;
1094
+ defaultValue: string;
1095
+ };
1096
+ description: {
1097
+ description: string;
1098
+ type: string;
1099
+ defaultValue: string;
1100
+ };
1101
+ authHeader: {
1102
+ description: string;
1103
+ type: string;
1104
+ defaultValue: string;
1105
+ };
1106
+ tokenType: {
1107
+ description: string;
1108
+ type: string;
1109
+ defaultValue: string;
1110
+ };
1111
+ domains: {
1112
+ description: string;
1113
+ type: string;
1114
+ defaultValue: never[];
1115
+ };
1116
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
220
1117
  }, {
221
1118
  readonly name: string;
222
1119
  readonly description: string;
@@ -297,16 +1194,394 @@ export default class AuthenticationPlugin extends Plugin {
297
1194
  getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
298
1195
  validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
299
1196
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
300
- GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
301
- GoogleDriveOAuthInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType) => import("mobx-state-tree").IModelType<{
1197
+ GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1198
+ authEndpoint: {
1199
+ description: string;
1200
+ type: string;
1201
+ defaultValue: string;
1202
+ };
1203
+ scopes: {
1204
+ description: string;
1205
+ type: string;
1206
+ defaultValue: string;
1207
+ };
1208
+ domains: {
1209
+ description: string;
1210
+ type: string;
1211
+ defaultValue: string[];
1212
+ };
1213
+ responseType: {
1214
+ description: string;
1215
+ type: string;
1216
+ defaultValue: string;
1217
+ };
1218
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1219
+ tokenType: {
1220
+ description: string;
1221
+ type: string;
1222
+ defaultValue: string;
1223
+ };
1224
+ authEndpoint: {
1225
+ description: string;
1226
+ type: string;
1227
+ defaultValue: string;
1228
+ };
1229
+ tokenEndpoint: {
1230
+ description: string;
1231
+ type: string;
1232
+ defaultValue: string;
1233
+ };
1234
+ needsPKCE: {
1235
+ description: string;
1236
+ type: string;
1237
+ defaultValue: boolean;
1238
+ };
1239
+ clientId: {
1240
+ description: string;
1241
+ type: string;
1242
+ defaultValue: string;
1243
+ };
1244
+ scopes: {
1245
+ description: string;
1246
+ type: string;
1247
+ defaultValue: string;
1248
+ };
1249
+ state: {
1250
+ description: string;
1251
+ type: string;
1252
+ defaultValue: string;
1253
+ };
1254
+ responseType: {
1255
+ description: string;
1256
+ type: string;
1257
+ defaultValue: string;
1258
+ };
1259
+ hasRefreshToken: {
1260
+ description: string;
1261
+ type: string;
1262
+ defaultValue: boolean;
1263
+ };
1264
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1265
+ name: {
1266
+ description: string;
1267
+ type: string;
1268
+ defaultValue: string;
1269
+ };
1270
+ description: {
1271
+ description: string;
1272
+ type: string;
1273
+ defaultValue: string;
1274
+ };
1275
+ authHeader: {
1276
+ description: string;
1277
+ type: string;
1278
+ defaultValue: string;
1279
+ };
1280
+ tokenType: {
1281
+ description: string;
1282
+ type: string;
1283
+ defaultValue: string;
1284
+ };
1285
+ domains: {
1286
+ description: string;
1287
+ type: string;
1288
+ defaultValue: never[];
1289
+ };
1290
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
1291
+ GoogleDriveOAuthInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1292
+ authEndpoint: {
1293
+ description: string;
1294
+ type: string;
1295
+ defaultValue: string;
1296
+ };
1297
+ scopes: {
1298
+ description: string;
1299
+ type: string;
1300
+ defaultValue: string;
1301
+ };
1302
+ domains: {
1303
+ description: string;
1304
+ type: string;
1305
+ defaultValue: string[];
1306
+ };
1307
+ responseType: {
1308
+ description: string;
1309
+ type: string;
1310
+ defaultValue: string;
1311
+ };
1312
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1313
+ tokenType: {
1314
+ description: string;
1315
+ type: string;
1316
+ defaultValue: string;
1317
+ };
1318
+ authEndpoint: {
1319
+ description: string;
1320
+ type: string;
1321
+ defaultValue: string;
1322
+ };
1323
+ tokenEndpoint: {
1324
+ description: string;
1325
+ type: string;
1326
+ defaultValue: string;
1327
+ };
1328
+ needsPKCE: {
1329
+ description: string;
1330
+ type: string;
1331
+ defaultValue: boolean;
1332
+ };
1333
+ clientId: {
1334
+ description: string;
1335
+ type: string;
1336
+ defaultValue: string;
1337
+ };
1338
+ scopes: {
1339
+ description: string;
1340
+ type: string;
1341
+ defaultValue: string;
1342
+ };
1343
+ state: {
1344
+ description: string;
1345
+ type: string;
1346
+ defaultValue: string;
1347
+ };
1348
+ responseType: {
1349
+ description: string;
1350
+ type: string;
1351
+ defaultValue: string;
1352
+ };
1353
+ hasRefreshToken: {
1354
+ description: string;
1355
+ type: string;
1356
+ defaultValue: boolean;
1357
+ };
1358
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1359
+ name: {
1360
+ description: string;
1361
+ type: string;
1362
+ defaultValue: string;
1363
+ };
1364
+ description: {
1365
+ description: string;
1366
+ type: string;
1367
+ defaultValue: string;
1368
+ };
1369
+ authHeader: {
1370
+ description: string;
1371
+ type: string;
1372
+ defaultValue: string;
1373
+ };
1374
+ tokenType: {
1375
+ description: string;
1376
+ type: string;
1377
+ defaultValue: string;
1378
+ };
1379
+ domains: {
1380
+ description: string;
1381
+ type: string;
1382
+ defaultValue: never[];
1383
+ };
1384
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>) => import("mobx-state-tree").IModelType<{
302
1385
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
303
1386
  type: import("mobx-state-tree").ISimpleType<string>;
1387
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1388
+ name: {
1389
+ description: string;
1390
+ type: string;
1391
+ defaultValue: string;
1392
+ };
1393
+ description: {
1394
+ description: string;
1395
+ type: string;
1396
+ defaultValue: string;
1397
+ };
1398
+ authHeader: {
1399
+ description: string;
1400
+ type: string;
1401
+ defaultValue: string;
1402
+ };
1403
+ tokenType: {
1404
+ description: string;
1405
+ type: string;
1406
+ defaultValue: string;
1407
+ };
1408
+ domains: {
1409
+ description: string;
1410
+ type: string;
1411
+ defaultValue: never[];
1412
+ };
1413
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
304
1414
  } & {
305
1415
  type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
306
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
1416
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1417
+ tokenType: {
1418
+ description: string;
1419
+ type: string;
1420
+ defaultValue: string;
1421
+ };
1422
+ authEndpoint: {
1423
+ description: string;
1424
+ type: string;
1425
+ defaultValue: string;
1426
+ };
1427
+ tokenEndpoint: {
1428
+ description: string;
1429
+ type: string;
1430
+ defaultValue: string;
1431
+ };
1432
+ needsPKCE: {
1433
+ description: string;
1434
+ type: string;
1435
+ defaultValue: boolean;
1436
+ };
1437
+ clientId: {
1438
+ description: string;
1439
+ type: string;
1440
+ defaultValue: string;
1441
+ };
1442
+ scopes: {
1443
+ description: string;
1444
+ type: string;
1445
+ defaultValue: string;
1446
+ };
1447
+ state: {
1448
+ description: string;
1449
+ type: string;
1450
+ defaultValue: string;
1451
+ };
1452
+ responseType: {
1453
+ description: string;
1454
+ type: string;
1455
+ defaultValue: string;
1456
+ };
1457
+ hasRefreshToken: {
1458
+ description: string;
1459
+ type: string;
1460
+ defaultValue: boolean;
1461
+ };
1462
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1463
+ name: {
1464
+ description: string;
1465
+ type: string;
1466
+ defaultValue: string;
1467
+ };
1468
+ description: {
1469
+ description: string;
1470
+ type: string;
1471
+ defaultValue: string;
1472
+ };
1473
+ authHeader: {
1474
+ description: string;
1475
+ type: string;
1476
+ defaultValue: string;
1477
+ };
1478
+ tokenType: {
1479
+ description: string;
1480
+ type: string;
1481
+ defaultValue: string;
1482
+ };
1483
+ domains: {
1484
+ description: string;
1485
+ type: string;
1486
+ defaultValue: never[];
1487
+ };
1488
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
307
1489
  } & {
308
1490
  type: import("mobx-state-tree").ISimpleType<"GoogleDriveOAuthInternetAccount">;
309
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
1491
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1492
+ authEndpoint: {
1493
+ description: string;
1494
+ type: string;
1495
+ defaultValue: string;
1496
+ };
1497
+ scopes: {
1498
+ description: string;
1499
+ type: string;
1500
+ defaultValue: string;
1501
+ };
1502
+ domains: {
1503
+ description: string;
1504
+ type: string;
1505
+ defaultValue: string[];
1506
+ };
1507
+ responseType: {
1508
+ description: string;
1509
+ type: string;
1510
+ defaultValue: string;
1511
+ };
1512
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1513
+ tokenType: {
1514
+ description: string;
1515
+ type: string;
1516
+ defaultValue: string;
1517
+ };
1518
+ authEndpoint: {
1519
+ description: string;
1520
+ type: string;
1521
+ defaultValue: string;
1522
+ };
1523
+ tokenEndpoint: {
1524
+ description: string;
1525
+ type: string;
1526
+ defaultValue: string;
1527
+ };
1528
+ needsPKCE: {
1529
+ description: string;
1530
+ type: string;
1531
+ defaultValue: boolean;
1532
+ };
1533
+ clientId: {
1534
+ description: string;
1535
+ type: string;
1536
+ defaultValue: string;
1537
+ };
1538
+ scopes: {
1539
+ description: string;
1540
+ type: string;
1541
+ defaultValue: string;
1542
+ };
1543
+ state: {
1544
+ description: string;
1545
+ type: string;
1546
+ defaultValue: string;
1547
+ };
1548
+ responseType: {
1549
+ description: string;
1550
+ type: string;
1551
+ defaultValue: string;
1552
+ };
1553
+ hasRefreshToken: {
1554
+ description: string;
1555
+ type: string;
1556
+ defaultValue: boolean;
1557
+ };
1558
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1559
+ name: {
1560
+ description: string;
1561
+ type: string;
1562
+ defaultValue: string;
1563
+ };
1564
+ description: {
1565
+ description: string;
1566
+ type: string;
1567
+ defaultValue: string;
1568
+ };
1569
+ authHeader: {
1570
+ description: string;
1571
+ type: string;
1572
+ defaultValue: string;
1573
+ };
1574
+ tokenType: {
1575
+ description: string;
1576
+ type: string;
1577
+ defaultValue: string;
1578
+ };
1579
+ domains: {
1580
+ description: string;
1581
+ type: string;
1582
+ defaultValue: never[];
1583
+ };
1584
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
310
1585
  }, {
311
1586
  readonly name: string;
312
1587
  readonly description: string;