@jbrowse/plugin-authentication 3.6.5 → 4.0.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.
Files changed (85) hide show
  1. package/esm/DropboxOAuthModel/configSchema.d.ts +5 -5
  2. package/esm/DropboxOAuthModel/configSchema.js +1 -1
  3. package/esm/DropboxOAuthModel/index.d.ts +2 -2
  4. package/esm/DropboxOAuthModel/index.js +2 -2
  5. package/esm/DropboxOAuthModel/model.d.ts +18 -18
  6. package/esm/DropboxOAuthModel/model.js +5 -5
  7. package/esm/DropboxOAuthModel/util.js +1 -1
  8. package/esm/ExternalTokenModel/configSchema.d.ts +4 -4
  9. package/esm/ExternalTokenModel/index.d.ts +2 -2
  10. package/esm/ExternalTokenModel/index.js +2 -2
  11. package/esm/ExternalTokenModel/model.d.ts +13 -13
  12. package/esm/ExternalTokenModel/model.js +2 -2
  13. package/esm/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +1 -0
  14. package/esm/GoogleDriveOAuthModel/configSchema.d.ts +5 -5
  15. package/esm/GoogleDriveOAuthModel/configSchema.js +1 -1
  16. package/esm/GoogleDriveOAuthModel/index.d.ts +2 -2
  17. package/esm/GoogleDriveOAuthModel/index.js +2 -2
  18. package/esm/GoogleDriveOAuthModel/model.d.ts +19 -19
  19. package/esm/GoogleDriveOAuthModel/model.js +7 -7
  20. package/esm/GoogleDriveOAuthModel/util.js +1 -1
  21. package/esm/HTTPBasicModel/configSchema.d.ts +4 -4
  22. package/esm/HTTPBasicModel/index.d.ts +2 -2
  23. package/esm/HTTPBasicModel/index.js +2 -2
  24. package/esm/HTTPBasicModel/model.d.ts +13 -13
  25. package/esm/HTTPBasicModel/model.js +3 -3
  26. package/esm/OAuthModel/configSchema.d.ts +4 -4
  27. package/esm/OAuthModel/index.d.ts +2 -2
  28. package/esm/OAuthModel/index.js +2 -2
  29. package/esm/OAuthModel/model.d.ts +12 -12
  30. package/esm/OAuthModel/model.js +3 -3
  31. package/esm/OAuthModel/util.js +1 -2
  32. package/esm/index.d.ts +68 -68
  33. package/esm/index.js +23 -26
  34. package/esm/util.js +1 -1
  35. package/package.json +23 -30
  36. package/dist/DropboxOAuthModel/DropboxIcon.d.ts +0 -2
  37. package/dist/DropboxOAuthModel/DropboxIcon.js +0 -8
  38. package/dist/DropboxOAuthModel/configSchema.d.ts +0 -93
  39. package/dist/DropboxOAuthModel/configSchema.js +0 -42
  40. package/dist/DropboxOAuthModel/index.d.ts +0 -2
  41. package/dist/DropboxOAuthModel/index.js +0 -10
  42. package/dist/DropboxOAuthModel/model.d.ts +0 -279
  43. package/dist/DropboxOAuthModel/model.js +0 -65
  44. package/dist/DropboxOAuthModel/util.d.ts +0 -1
  45. package/dist/DropboxOAuthModel/util.js +0 -21
  46. package/dist/ExternalTokenModel/ExternalTokenEntryForm.d.ts +0 -4
  47. package/dist/ExternalTokenModel/ExternalTokenEntryForm.js +0 -24
  48. package/dist/ExternalTokenModel/configSchema.d.ts +0 -37
  49. package/dist/ExternalTokenModel/configSchema.js +0 -16
  50. package/dist/ExternalTokenModel/index.d.ts +0 -2
  51. package/dist/ExternalTokenModel/index.js +0 -10
  52. package/dist/ExternalTokenModel/model.d.ts +0 -126
  53. package/dist/ExternalTokenModel/model.js +0 -57
  54. package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.d.ts +0 -15
  55. package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +0 -19
  56. package/dist/GoogleDriveOAuthModel/GoogleDriveIcon.d.ts +0 -2
  57. package/dist/GoogleDriveOAuthModel/GoogleDriveIcon.js +0 -8
  58. package/dist/GoogleDriveOAuthModel/configSchema.d.ts +0 -93
  59. package/dist/GoogleDriveOAuthModel/configSchema.js +0 -34
  60. package/dist/GoogleDriveOAuthModel/index.d.ts +0 -2
  61. package/dist/GoogleDriveOAuthModel/index.js +0 -10
  62. package/dist/GoogleDriveOAuthModel/model.d.ts +0 -283
  63. package/dist/GoogleDriveOAuthModel/model.js +0 -72
  64. package/dist/GoogleDriveOAuthModel/util.d.ts +0 -1
  65. package/dist/GoogleDriveOAuthModel/util.js +0 -14
  66. package/dist/HTTPBasicModel/HTTPBasicLoginForm.d.ts +0 -4
  67. package/dist/HTTPBasicModel/HTTPBasicLoginForm.js +0 -32
  68. package/dist/HTTPBasicModel/configSchema.d.ts +0 -42
  69. package/dist/HTTPBasicModel/configSchema.js +0 -21
  70. package/dist/HTTPBasicModel/index.d.ts +0 -2
  71. package/dist/HTTPBasicModel/index.js +0 -10
  72. package/dist/HTTPBasicModel/model.d.ts +0 -131
  73. package/dist/HTTPBasicModel/model.js +0 -54
  74. package/dist/OAuthModel/configSchema.d.ts +0 -72
  75. package/dist/OAuthModel/configSchema.js +0 -51
  76. package/dist/OAuthModel/index.d.ts +0 -2
  77. package/dist/OAuthModel/index.js +0 -10
  78. package/dist/OAuthModel/model.d.ts +0 -182
  79. package/dist/OAuthModel/model.js +0 -289
  80. package/dist/OAuthModel/util.d.ts +0 -7
  81. package/dist/OAuthModel/util.js +0 -66
  82. package/dist/index.d.ts +0 -1026
  83. package/dist/index.js +0 -84
  84. package/dist/util.d.ts +0 -6
  85. package/dist/util.js +0 -21
package/dist/index.d.ts DELETED
@@ -1,1026 +0,0 @@
1
- import Plugin from '@jbrowse/core/Plugin';
2
- import { modelFactory as GoogleDriveOAuthInternetAccountModelFactory } from './GoogleDriveOAuthModel';
3
- import type PluginManager from '@jbrowse/core/PluginManager';
4
- export default class AuthenticationPlugin extends Plugin {
5
- name: string;
6
- exports: {
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
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
49
- name: {
50
- description: string;
51
- type: string;
52
- defaultValue: string;
53
- };
54
- description: {
55
- description: string;
56
- type: string;
57
- defaultValue: string;
58
- };
59
- authHeader: {
60
- description: string;
61
- type: string;
62
- defaultValue: string;
63
- };
64
- tokenType: {
65
- description: string;
66
- type: string;
67
- defaultValue: string;
68
- };
69
- domains: {
70
- description: string;
71
- type: string;
72
- defaultValue: never[];
73
- };
74
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
75
- OAuthInternetAccountModelFactory: (configSchema: import("./OAuthModel/configSchema").OAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
76
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
77
- type: import("mobx-state-tree").ISimpleType<string>;
78
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
79
- name: {
80
- description: string;
81
- type: string;
82
- defaultValue: string;
83
- };
84
- description: {
85
- description: string;
86
- type: string;
87
- defaultValue: string;
88
- };
89
- authHeader: {
90
- description: string;
91
- type: string;
92
- defaultValue: string;
93
- };
94
- tokenType: {
95
- description: string;
96
- type: string;
97
- defaultValue: string;
98
- };
99
- domains: {
100
- description: string;
101
- type: string;
102
- defaultValue: never[];
103
- };
104
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
105
- } & {
106
- type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
107
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
108
- tokenType: {
109
- description: string;
110
- type: string;
111
- defaultValue: string;
112
- };
113
- authEndpoint: {
114
- description: string;
115
- type: string;
116
- defaultValue: string;
117
- };
118
- tokenEndpoint: {
119
- description: string;
120
- type: string;
121
- defaultValue: string;
122
- };
123
- needsPKCE: {
124
- description: string;
125
- type: string;
126
- defaultValue: boolean;
127
- };
128
- clientId: {
129
- description: string;
130
- type: string;
131
- defaultValue: string;
132
- };
133
- scopes: {
134
- description: string;
135
- type: string;
136
- defaultValue: string;
137
- };
138
- state: {
139
- description: string;
140
- type: string;
141
- defaultValue: string;
142
- };
143
- responseType: {
144
- description: string;
145
- type: string;
146
- defaultValue: string;
147
- };
148
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
149
- name: {
150
- description: string;
151
- type: string;
152
- defaultValue: string;
153
- };
154
- description: {
155
- description: string;
156
- type: string;
157
- defaultValue: string;
158
- };
159
- authHeader: {
160
- description: string;
161
- type: string;
162
- defaultValue: string;
163
- };
164
- tokenType: {
165
- description: string;
166
- type: string;
167
- defaultValue: string;
168
- };
169
- domains: {
170
- description: string;
171
- type: string;
172
- defaultValue: never[];
173
- };
174
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
175
- }, {
176
- readonly name: string;
177
- readonly description: string;
178
- readonly internetAccountId: string;
179
- readonly authHeader: string;
180
- readonly tokenType: string;
181
- readonly domains: string[];
182
- readonly toggleContents: React.ReactNode;
183
- readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
184
- readonly selectorLabel: string | undefined;
185
- } & {
186
- handlesLocation(location: import("@jbrowse/core/util").UriLocation): boolean;
187
- readonly tokenKey: string;
188
- } & {
189
- getTokenFromUser(_resolve: (token: string) => void, _reject: (error: Error) => void): void;
190
- storeToken(token: string): void;
191
- removeToken(): void;
192
- retrieveToken(): string | null;
193
- validateToken(token: string, _loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
194
- } & {
195
- getToken(location?: import("@jbrowse/core/util").UriLocation): Promise<string>;
196
- } & {
197
- addAuthHeaderToInit(init?: RequestInit, token?: string): {
198
- headers: Headers;
199
- body?: BodyInit | null;
200
- cache?: RequestCache;
201
- credentials?: RequestCredentials;
202
- integrity?: string;
203
- keepalive?: boolean;
204
- method?: string;
205
- mode?: RequestMode;
206
- priority?: RequestPriority;
207
- redirect?: RequestRedirect;
208
- referrer?: string;
209
- referrerPolicy?: ReferrerPolicy;
210
- signal?: AbortSignal | null;
211
- window?: null;
212
- };
213
- getPreAuthorizationInformation(location: import("@jbrowse/core/util").UriLocation): Promise<{
214
- internetAccountType: string;
215
- authInfo: {
216
- token: string;
217
- configuration: any;
218
- };
219
- }>;
220
- } & {
221
- getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
222
- } & {
223
- openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
224
- } & {
225
- readonly codeVerifierPKCE: string;
226
- } & {
227
- readonly authEndpoint: string;
228
- readonly tokenEndpoint: string;
229
- readonly needsPKCE: boolean;
230
- readonly clientId: string;
231
- readonly scopes: string;
232
- state(): string | undefined;
233
- readonly responseType: "token" | "code";
234
- readonly refreshTokenKey: string;
235
- } & {
236
- storeRefreshToken(refreshToken: string): void;
237
- removeRefreshToken(): void;
238
- retrieveRefreshToken(): string | null;
239
- exchangeAuthorizationForAccessToken(token: string, redirectUri: string): Promise<string>;
240
- exchangeRefreshForAccessToken(refreshToken: string): Promise<string>;
241
- } & {
242
- addMessageChannel(resolve: (token: string) => void, reject: (error: Error) => void): void;
243
- deleteMessageChannel(): void;
244
- finishOAuthWindow(event: MessageEvent, resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
245
- useEndpointForAuthorization(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
246
- getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
247
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
248
- } & {
249
- getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
250
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
251
- ExternalTokenConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
252
- validateWithHEAD: {
253
- description: string;
254
- type: string;
255
- defaultValue: boolean;
256
- };
257
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
258
- name: {
259
- description: string;
260
- type: string;
261
- defaultValue: string;
262
- };
263
- description: {
264
- description: string;
265
- type: string;
266
- defaultValue: string;
267
- };
268
- authHeader: {
269
- description: string;
270
- type: string;
271
- defaultValue: string;
272
- };
273
- tokenType: {
274
- description: string;
275
- type: string;
276
- defaultValue: string;
277
- };
278
- domains: {
279
- description: string;
280
- type: string;
281
- defaultValue: never[];
282
- };
283
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
284
- ExternalTokenInternetAccountModelFactory: (configSchema: import("./ExternalTokenModel/configSchema").ExternalTokenInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
285
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
286
- type: import("mobx-state-tree").ISimpleType<string>;
287
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
288
- name: {
289
- description: string;
290
- type: string;
291
- defaultValue: string;
292
- };
293
- description: {
294
- description: string;
295
- type: string;
296
- defaultValue: string;
297
- };
298
- authHeader: {
299
- description: string;
300
- type: string;
301
- defaultValue: string;
302
- };
303
- tokenType: {
304
- description: string;
305
- type: string;
306
- defaultValue: string;
307
- };
308
- domains: {
309
- description: string;
310
- type: string;
311
- defaultValue: never[];
312
- };
313
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
314
- } & {
315
- type: import("mobx-state-tree").ISimpleType<"ExternalTokenInternetAccount">;
316
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
317
- validateWithHEAD: {
318
- description: string;
319
- type: string;
320
- defaultValue: boolean;
321
- };
322
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
323
- name: {
324
- description: string;
325
- type: string;
326
- defaultValue: string;
327
- };
328
- description: {
329
- description: string;
330
- type: string;
331
- defaultValue: string;
332
- };
333
- authHeader: {
334
- description: string;
335
- type: string;
336
- defaultValue: string;
337
- };
338
- tokenType: {
339
- description: string;
340
- type: string;
341
- defaultValue: string;
342
- };
343
- domains: {
344
- description: string;
345
- type: string;
346
- defaultValue: never[];
347
- };
348
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
349
- }, {
350
- readonly name: string;
351
- readonly description: string;
352
- readonly internetAccountId: string;
353
- readonly authHeader: string;
354
- readonly tokenType: string;
355
- readonly domains: string[];
356
- readonly toggleContents: React.ReactNode;
357
- readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
358
- readonly selectorLabel: string | undefined;
359
- } & {
360
- handlesLocation(location: import("@jbrowse/core/util").UriLocation): boolean;
361
- readonly tokenKey: string;
362
- } & {
363
- getTokenFromUser(_resolve: (token: string) => void, _reject: (error: Error) => void): void;
364
- storeToken(token: string): void;
365
- removeToken(): void;
366
- retrieveToken(): string | null;
367
- validateToken(token: string, _loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
368
- } & {
369
- getToken(location?: import("@jbrowse/core/util").UriLocation): Promise<string>;
370
- } & {
371
- addAuthHeaderToInit(init?: RequestInit, token?: string): {
372
- headers: Headers;
373
- body?: BodyInit | null;
374
- cache?: RequestCache;
375
- credentials?: RequestCredentials;
376
- integrity?: string;
377
- keepalive?: boolean;
378
- method?: string;
379
- mode?: RequestMode;
380
- priority?: RequestPriority;
381
- redirect?: RequestRedirect;
382
- referrer?: string;
383
- referrerPolicy?: ReferrerPolicy;
384
- signal?: AbortSignal | null;
385
- window?: null;
386
- };
387
- getPreAuthorizationInformation(location: import("@jbrowse/core/util").UriLocation): Promise<{
388
- internetAccountType: string;
389
- authInfo: {
390
- token: string;
391
- configuration: any;
392
- };
393
- }>;
394
- } & {
395
- getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
396
- } & {
397
- openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
398
- } & {
399
- readonly validateWithHEAD: boolean;
400
- } & {
401
- getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
402
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
403
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
404
- HTTPBasicConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
405
- tokenType: {
406
- description: string;
407
- type: string;
408
- defaultValue: string;
409
- };
410
- validateWithHEAD: {
411
- description: string;
412
- type: string;
413
- defaultValue: boolean;
414
- };
415
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
416
- name: {
417
- description: string;
418
- type: string;
419
- defaultValue: string;
420
- };
421
- description: {
422
- description: string;
423
- type: string;
424
- defaultValue: string;
425
- };
426
- authHeader: {
427
- description: string;
428
- type: string;
429
- defaultValue: string;
430
- };
431
- tokenType: {
432
- description: string;
433
- type: string;
434
- defaultValue: string;
435
- };
436
- domains: {
437
- description: string;
438
- type: string;
439
- defaultValue: never[];
440
- };
441
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
442
- HTTPBasicInternetAccountModelFactory: (configSchema: import("./HTTPBasicModel/configSchema").HTTPBasicInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
443
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
444
- type: import("mobx-state-tree").ISimpleType<string>;
445
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
446
- name: {
447
- description: string;
448
- type: string;
449
- defaultValue: string;
450
- };
451
- description: {
452
- description: string;
453
- type: string;
454
- defaultValue: string;
455
- };
456
- authHeader: {
457
- description: string;
458
- type: string;
459
- defaultValue: string;
460
- };
461
- tokenType: {
462
- description: string;
463
- type: string;
464
- defaultValue: string;
465
- };
466
- domains: {
467
- description: string;
468
- type: string;
469
- defaultValue: never[];
470
- };
471
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
472
- } & {
473
- type: import("mobx-state-tree").ISimpleType<"HTTPBasicInternetAccount">;
474
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
475
- tokenType: {
476
- description: string;
477
- type: string;
478
- defaultValue: string;
479
- };
480
- validateWithHEAD: {
481
- description: string;
482
- type: string;
483
- defaultValue: boolean;
484
- };
485
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
486
- name: {
487
- description: string;
488
- type: string;
489
- defaultValue: string;
490
- };
491
- description: {
492
- description: string;
493
- type: string;
494
- defaultValue: string;
495
- };
496
- authHeader: {
497
- description: string;
498
- type: string;
499
- defaultValue: string;
500
- };
501
- tokenType: {
502
- description: string;
503
- type: string;
504
- defaultValue: string;
505
- };
506
- domains: {
507
- description: string;
508
- type: string;
509
- defaultValue: never[];
510
- };
511
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
512
- }, {
513
- readonly name: string;
514
- readonly description: string;
515
- readonly internetAccountId: string;
516
- readonly authHeader: string;
517
- readonly tokenType: string;
518
- readonly domains: string[];
519
- readonly toggleContents: React.ReactNode;
520
- readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
521
- readonly selectorLabel: string | undefined;
522
- } & {
523
- handlesLocation(location: import("@jbrowse/core/util").UriLocation): boolean;
524
- readonly tokenKey: string;
525
- } & {
526
- getTokenFromUser(_resolve: (token: string) => void, _reject: (error: Error) => void): void;
527
- storeToken(token: string): void;
528
- removeToken(): void;
529
- retrieveToken(): string | null;
530
- validateToken(token: string, _loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
531
- } & {
532
- getToken(location?: import("@jbrowse/core/util").UriLocation): Promise<string>;
533
- } & {
534
- addAuthHeaderToInit(init?: RequestInit, token?: string): {
535
- headers: Headers;
536
- body?: BodyInit | null;
537
- cache?: RequestCache;
538
- credentials?: RequestCredentials;
539
- integrity?: string;
540
- keepalive?: boolean;
541
- method?: string;
542
- mode?: RequestMode;
543
- priority?: RequestPriority;
544
- redirect?: RequestRedirect;
545
- referrer?: string;
546
- referrerPolicy?: ReferrerPolicy;
547
- signal?: AbortSignal | null;
548
- window?: null;
549
- };
550
- getPreAuthorizationInformation(location: import("@jbrowse/core/util").UriLocation): Promise<{
551
- internetAccountType: string;
552
- authInfo: {
553
- token: string;
554
- configuration: any;
555
- };
556
- }>;
557
- } & {
558
- getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
559
- } & {
560
- openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
561
- } & {
562
- readonly validateWithHEAD: boolean;
563
- } & {
564
- getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
565
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
566
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
567
- DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
568
- authEndpoint: {
569
- description: string;
570
- type: string;
571
- defaultValue: string;
572
- };
573
- tokenEndpoint: {
574
- description: string;
575
- type: string;
576
- defaultValue: string;
577
- };
578
- needsPKCE: {
579
- description: string;
580
- type: string;
581
- defaultValue: boolean;
582
- };
583
- domains: {
584
- description: string;
585
- type: string;
586
- defaultValue: string[];
587
- };
588
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
589
- tokenType: {
590
- description: string;
591
- type: string;
592
- defaultValue: string;
593
- };
594
- authEndpoint: {
595
- description: string;
596
- type: string;
597
- defaultValue: string;
598
- };
599
- tokenEndpoint: {
600
- description: string;
601
- type: string;
602
- defaultValue: string;
603
- };
604
- needsPKCE: {
605
- description: string;
606
- type: string;
607
- defaultValue: boolean;
608
- };
609
- clientId: {
610
- description: string;
611
- type: string;
612
- defaultValue: string;
613
- };
614
- scopes: {
615
- description: string;
616
- type: string;
617
- defaultValue: string;
618
- };
619
- state: {
620
- description: string;
621
- type: string;
622
- defaultValue: string;
623
- };
624
- responseType: {
625
- description: string;
626
- type: string;
627
- defaultValue: string;
628
- };
629
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
630
- name: {
631
- description: string;
632
- type: string;
633
- defaultValue: string;
634
- };
635
- description: {
636
- description: string;
637
- type: string;
638
- defaultValue: string;
639
- };
640
- authHeader: {
641
- description: string;
642
- type: string;
643
- defaultValue: string;
644
- };
645
- tokenType: {
646
- description: string;
647
- type: string;
648
- defaultValue: string;
649
- };
650
- domains: {
651
- description: string;
652
- type: string;
653
- defaultValue: never[];
654
- };
655
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
656
- DropboxOAuthInternetAccountModelFactory: (configSchema: import("./DropboxOAuthModel/configSchema").DropboxOAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
657
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
658
- type: import("mobx-state-tree").ISimpleType<string>;
659
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
660
- name: {
661
- description: string;
662
- type: string;
663
- defaultValue: string;
664
- };
665
- description: {
666
- description: string;
667
- type: string;
668
- defaultValue: string;
669
- };
670
- authHeader: {
671
- description: string;
672
- type: string;
673
- defaultValue: string;
674
- };
675
- tokenType: {
676
- description: string;
677
- type: string;
678
- defaultValue: string;
679
- };
680
- domains: {
681
- description: string;
682
- type: string;
683
- defaultValue: never[];
684
- };
685
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
686
- } & {
687
- type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
688
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
689
- tokenType: {
690
- description: string;
691
- type: string;
692
- defaultValue: string;
693
- };
694
- authEndpoint: {
695
- description: string;
696
- type: string;
697
- defaultValue: string;
698
- };
699
- tokenEndpoint: {
700
- description: string;
701
- type: string;
702
- defaultValue: string;
703
- };
704
- needsPKCE: {
705
- description: string;
706
- type: string;
707
- defaultValue: boolean;
708
- };
709
- clientId: {
710
- description: string;
711
- type: string;
712
- defaultValue: string;
713
- };
714
- scopes: {
715
- description: string;
716
- type: string;
717
- defaultValue: string;
718
- };
719
- state: {
720
- description: string;
721
- type: string;
722
- defaultValue: string;
723
- };
724
- responseType: {
725
- description: string;
726
- type: string;
727
- defaultValue: string;
728
- };
729
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
730
- name: {
731
- description: string;
732
- type: string;
733
- defaultValue: string;
734
- };
735
- description: {
736
- description: string;
737
- type: string;
738
- defaultValue: string;
739
- };
740
- authHeader: {
741
- description: string;
742
- type: string;
743
- defaultValue: string;
744
- };
745
- tokenType: {
746
- description: string;
747
- type: string;
748
- defaultValue: string;
749
- };
750
- domains: {
751
- description: string;
752
- type: string;
753
- defaultValue: never[];
754
- };
755
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
756
- } & {
757
- type: import("mobx-state-tree").ISimpleType<"DropboxOAuthInternetAccount">;
758
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
759
- authEndpoint: {
760
- description: string;
761
- type: string;
762
- defaultValue: string;
763
- };
764
- tokenEndpoint: {
765
- description: string;
766
- type: string;
767
- defaultValue: string;
768
- };
769
- needsPKCE: {
770
- description: string;
771
- type: string;
772
- defaultValue: boolean;
773
- };
774
- domains: {
775
- description: string;
776
- type: string;
777
- defaultValue: string[];
778
- };
779
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
780
- tokenType: {
781
- description: string;
782
- type: string;
783
- defaultValue: string;
784
- };
785
- authEndpoint: {
786
- description: string;
787
- type: string;
788
- defaultValue: string;
789
- };
790
- tokenEndpoint: {
791
- description: string;
792
- type: string;
793
- defaultValue: string;
794
- };
795
- needsPKCE: {
796
- description: string;
797
- type: string;
798
- defaultValue: boolean;
799
- };
800
- clientId: {
801
- description: string;
802
- type: string;
803
- defaultValue: string;
804
- };
805
- scopes: {
806
- description: string;
807
- type: string;
808
- defaultValue: string;
809
- };
810
- state: {
811
- description: string;
812
- type: string;
813
- defaultValue: string;
814
- };
815
- responseType: {
816
- description: string;
817
- type: string;
818
- defaultValue: string;
819
- };
820
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
821
- name: {
822
- description: string;
823
- type: string;
824
- defaultValue: string;
825
- };
826
- description: {
827
- description: string;
828
- type: string;
829
- defaultValue: string;
830
- };
831
- authHeader: {
832
- description: string;
833
- type: string;
834
- defaultValue: string;
835
- };
836
- tokenType: {
837
- description: string;
838
- type: string;
839
- defaultValue: string;
840
- };
841
- domains: {
842
- description: string;
843
- type: string;
844
- defaultValue: never[];
845
- };
846
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
847
- }, {
848
- readonly name: string;
849
- readonly description: string;
850
- readonly internetAccountId: string;
851
- readonly authHeader: string;
852
- readonly tokenType: string;
853
- readonly domains: string[];
854
- readonly toggleContents: React.ReactNode;
855
- readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
856
- readonly selectorLabel: string | undefined;
857
- } & {
858
- handlesLocation(location: import("@jbrowse/core/util").UriLocation): boolean;
859
- readonly tokenKey: string;
860
- } & {
861
- getTokenFromUser(_resolve: (token: string) => void, _reject: (error: Error) => void): void;
862
- storeToken(token: string): void;
863
- removeToken(): void;
864
- retrieveToken(): string | null;
865
- validateToken(token: string, _loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
866
- } & {
867
- getToken(location?: import("@jbrowse/core/util").UriLocation): Promise<string>;
868
- } & {
869
- addAuthHeaderToInit(init?: RequestInit, token?: string): {
870
- headers: Headers;
871
- body?: BodyInit | null;
872
- cache?: RequestCache;
873
- credentials?: RequestCredentials;
874
- integrity?: string;
875
- keepalive?: boolean;
876
- method?: string;
877
- mode?: RequestMode;
878
- priority?: RequestPriority;
879
- redirect?: RequestRedirect;
880
- referrer?: string;
881
- referrerPolicy?: ReferrerPolicy;
882
- signal?: AbortSignal | null;
883
- window?: null;
884
- };
885
- getPreAuthorizationInformation(location: import("@jbrowse/core/util").UriLocation): Promise<{
886
- internetAccountType: string;
887
- authInfo: {
888
- token: string;
889
- configuration: any;
890
- };
891
- }>;
892
- } & {
893
- getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
894
- } & {
895
- openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
896
- } & {
897
- readonly codeVerifierPKCE: string;
898
- } & {
899
- readonly authEndpoint: string;
900
- readonly tokenEndpoint: string;
901
- readonly needsPKCE: boolean;
902
- readonly clientId: string;
903
- readonly scopes: string;
904
- state(): string | undefined;
905
- readonly responseType: "token" | "code";
906
- readonly refreshTokenKey: string;
907
- } & {
908
- storeRefreshToken(refreshToken: string): void;
909
- removeRefreshToken(): void;
910
- retrieveRefreshToken(): string | null;
911
- exchangeAuthorizationForAccessToken(token: string, redirectUri: string): Promise<string>;
912
- exchangeRefreshForAccessToken(refreshToken: string): Promise<string>;
913
- } & {
914
- addMessageChannel(resolve: (token: string) => void, reject: (error: Error) => void): void;
915
- deleteMessageChannel(): void;
916
- finishOAuthWindow(event: MessageEvent, resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
917
- useEndpointForAuthorization(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
918
- getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
919
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
920
- } & {
921
- getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
922
- } & {
923
- readonly toggleContents: import("react/jsx-runtime").JSX.Element;
924
- readonly selectorLabel: string;
925
- } & {
926
- getFetcher(location?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
927
- validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
928
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
929
- GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
930
- authEndpoint: {
931
- description: string;
932
- type: string;
933
- defaultValue: string;
934
- };
935
- scopes: {
936
- description: string;
937
- type: string;
938
- defaultValue: string;
939
- };
940
- domains: {
941
- description: string;
942
- type: string;
943
- defaultValue: string[];
944
- };
945
- responseType: {
946
- description: string;
947
- type: string;
948
- defaultValue: string;
949
- };
950
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
951
- tokenType: {
952
- description: string;
953
- type: string;
954
- defaultValue: string;
955
- };
956
- authEndpoint: {
957
- description: string;
958
- type: string;
959
- defaultValue: string;
960
- };
961
- tokenEndpoint: {
962
- description: string;
963
- type: string;
964
- defaultValue: string;
965
- };
966
- needsPKCE: {
967
- description: string;
968
- type: string;
969
- defaultValue: boolean;
970
- };
971
- clientId: {
972
- description: string;
973
- type: string;
974
- defaultValue: string;
975
- };
976
- scopes: {
977
- description: string;
978
- type: string;
979
- defaultValue: string;
980
- };
981
- state: {
982
- description: string;
983
- type: string;
984
- defaultValue: string;
985
- };
986
- responseType: {
987
- description: string;
988
- type: string;
989
- defaultValue: string;
990
- };
991
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
992
- name: {
993
- description: string;
994
- type: string;
995
- defaultValue: string;
996
- };
997
- description: {
998
- description: string;
999
- type: string;
1000
- defaultValue: string;
1001
- };
1002
- authHeader: {
1003
- description: string;
1004
- type: string;
1005
- defaultValue: string;
1006
- };
1007
- tokenType: {
1008
- description: string;
1009
- type: string;
1010
- defaultValue: string;
1011
- };
1012
- domains: {
1013
- description: string;
1014
- type: string;
1015
- defaultValue: never[];
1016
- };
1017
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
1018
- GoogleDriveOAuthInternetAccountModelFactory: typeof GoogleDriveOAuthInternetAccountModelFactory;
1019
- };
1020
- install(pluginManager: PluginManager): void;
1021
- }
1022
- export { configSchema as OAuthConfigSchema, modelFactory as OAuthInternetAccountModelFactory, } from './OAuthModel';
1023
- export { configSchema as ExternalTokenConfigSchema, modelFactory as ExternalTokenInternetAccountModelFactory, } from './ExternalTokenModel';
1024
- export { configSchema as HTTPBasicConfigSchema, modelFactory as HTTPBasicInternetAccountModelFactory, } from './HTTPBasicModel';
1025
- export { configSchema as DropboxOAuthConfigSchema, modelFactory as DropboxOAuthInternetAccountModelFactory, } from './DropboxOAuthModel';
1026
- export { configSchema as GoogleDriveOAuthConfigSchema, modelFactory as GoogleDriveOAuthInternetAccountModelFactory, } from './GoogleDriveOAuthModel';