@jbrowse/plugin-authentication 2.4.2 → 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.
@@ -3,7 +3,6 @@ import { Instance } from 'mobx-state-tree';
3
3
  import { RemoteFileWithRangeCache } from '@jbrowse/core/util/io';
4
4
  import { UriLocation } from '@jbrowse/core/util/types';
5
5
  import { FilehandleOptions, Stats, PolyfilledResponse } from 'generic-filehandle';
6
- import { GoogleDriveOAuthInternetAccountConfigModel } from './configSchema';
7
6
  export interface RequestInitWithMetadata extends RequestInit {
8
7
  metadataOnly?: boolean;
9
8
  }
@@ -16,15 +15,300 @@ export declare class GoogleDriveFile extends RemoteFileWithRangeCache {
16
15
  fetch(input: RequestInfo, opts?: RequestInitWithMetadata): Promise<PolyfilledResponse>;
17
16
  stat(): Promise<Stats>;
18
17
  }
19
- declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
18
+ declare const stateModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
19
+ authEndpoint: {
20
+ description: string;
21
+ type: string;
22
+ defaultValue: string;
23
+ };
24
+ scopes: {
25
+ description: string;
26
+ type: string;
27
+ defaultValue: string;
28
+ };
29
+ domains: {
30
+ description: string;
31
+ type: string;
32
+ defaultValue: string[];
33
+ };
34
+ responseType: {
35
+ description: string;
36
+ type: string;
37
+ defaultValue: string;
38
+ };
39
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
40
+ tokenType: {
41
+ description: string;
42
+ type: string;
43
+ defaultValue: string;
44
+ };
45
+ authEndpoint: {
46
+ description: string;
47
+ type: string;
48
+ defaultValue: string;
49
+ };
50
+ tokenEndpoint: {
51
+ description: string;
52
+ type: string;
53
+ defaultValue: string;
54
+ };
55
+ needsPKCE: {
56
+ description: string;
57
+ type: string;
58
+ defaultValue: boolean;
59
+ };
60
+ clientId: {
61
+ description: string;
62
+ type: string;
63
+ defaultValue: string;
64
+ };
65
+ scopes: {
66
+ description: string;
67
+ type: string;
68
+ defaultValue: string;
69
+ };
70
+ state: {
71
+ description: string;
72
+ type: string;
73
+ defaultValue: string;
74
+ };
75
+ responseType: {
76
+ description: string;
77
+ type: string;
78
+ defaultValue: string;
79
+ };
80
+ hasRefreshToken: {
81
+ description: string;
82
+ type: string;
83
+ defaultValue: boolean;
84
+ };
85
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
86
+ name: {
87
+ description: string;
88
+ type: string;
89
+ defaultValue: string;
90
+ };
91
+ description: {
92
+ description: string;
93
+ type: string;
94
+ defaultValue: string;
95
+ };
96
+ authHeader: {
97
+ description: string;
98
+ type: string;
99
+ defaultValue: string;
100
+ };
101
+ tokenType: {
102
+ description: string;
103
+ type: string;
104
+ defaultValue: string;
105
+ };
106
+ domains: {
107
+ description: string;
108
+ type: string;
109
+ defaultValue: never[];
110
+ };
111
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>) => import("mobx-state-tree").IModelType<{
20
112
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
21
113
  type: import("mobx-state-tree").ISimpleType<string>;
114
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
115
+ name: {
116
+ description: string;
117
+ type: string;
118
+ defaultValue: string;
119
+ };
120
+ description: {
121
+ description: string;
122
+ type: string;
123
+ defaultValue: string;
124
+ };
125
+ authHeader: {
126
+ description: string;
127
+ type: string;
128
+ defaultValue: string;
129
+ };
130
+ tokenType: {
131
+ description: string;
132
+ type: string;
133
+ defaultValue: string;
134
+ };
135
+ domains: {
136
+ description: string;
137
+ type: string;
138
+ defaultValue: never[];
139
+ };
140
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
22
141
  } & {
23
142
  type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
24
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
143
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
144
+ tokenType: {
145
+ description: string;
146
+ type: string;
147
+ defaultValue: string;
148
+ };
149
+ authEndpoint: {
150
+ description: string;
151
+ type: string;
152
+ defaultValue: string;
153
+ };
154
+ tokenEndpoint: {
155
+ description: string;
156
+ type: string;
157
+ defaultValue: string;
158
+ };
159
+ needsPKCE: {
160
+ description: string;
161
+ type: string;
162
+ defaultValue: boolean;
163
+ };
164
+ clientId: {
165
+ description: string;
166
+ type: string;
167
+ defaultValue: string;
168
+ };
169
+ scopes: {
170
+ description: string;
171
+ type: string;
172
+ defaultValue: string;
173
+ };
174
+ state: {
175
+ description: string;
176
+ type: string;
177
+ defaultValue: string;
178
+ };
179
+ responseType: {
180
+ description: string;
181
+ type: string;
182
+ defaultValue: string;
183
+ };
184
+ hasRefreshToken: {
185
+ description: string;
186
+ type: string;
187
+ defaultValue: boolean;
188
+ };
189
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
190
+ name: {
191
+ description: string;
192
+ type: string;
193
+ defaultValue: string;
194
+ };
195
+ description: {
196
+ description: string;
197
+ type: string;
198
+ defaultValue: string;
199
+ };
200
+ authHeader: {
201
+ description: string;
202
+ type: string;
203
+ defaultValue: string;
204
+ };
205
+ tokenType: {
206
+ description: string;
207
+ type: string;
208
+ defaultValue: string;
209
+ };
210
+ domains: {
211
+ description: string;
212
+ type: string;
213
+ defaultValue: never[];
214
+ };
215
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
25
216
  } & {
26
217
  type: import("mobx-state-tree").ISimpleType<"GoogleDriveOAuthInternetAccount">;
27
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
218
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
219
+ authEndpoint: {
220
+ description: string;
221
+ type: string;
222
+ defaultValue: string;
223
+ };
224
+ scopes: {
225
+ description: string;
226
+ type: string;
227
+ defaultValue: string;
228
+ };
229
+ domains: {
230
+ description: string;
231
+ type: string;
232
+ defaultValue: string[];
233
+ };
234
+ responseType: {
235
+ description: string;
236
+ type: string;
237
+ defaultValue: string;
238
+ };
239
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
240
+ tokenType: {
241
+ description: string;
242
+ type: string;
243
+ defaultValue: string;
244
+ };
245
+ authEndpoint: {
246
+ description: string;
247
+ type: string;
248
+ defaultValue: string;
249
+ };
250
+ tokenEndpoint: {
251
+ description: string;
252
+ type: string;
253
+ defaultValue: string;
254
+ };
255
+ needsPKCE: {
256
+ description: string;
257
+ type: string;
258
+ defaultValue: boolean;
259
+ };
260
+ clientId: {
261
+ description: string;
262
+ type: string;
263
+ defaultValue: string;
264
+ };
265
+ scopes: {
266
+ description: string;
267
+ type: string;
268
+ defaultValue: string;
269
+ };
270
+ state: {
271
+ description: string;
272
+ type: string;
273
+ defaultValue: string;
274
+ };
275
+ responseType: {
276
+ description: string;
277
+ type: string;
278
+ defaultValue: string;
279
+ };
280
+ hasRefreshToken: {
281
+ description: string;
282
+ type: string;
283
+ defaultValue: boolean;
284
+ };
285
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
286
+ name: {
287
+ description: string;
288
+ type: string;
289
+ defaultValue: string;
290
+ };
291
+ description: {
292
+ description: string;
293
+ type: string;
294
+ defaultValue: string;
295
+ };
296
+ authHeader: {
297
+ description: string;
298
+ type: string;
299
+ defaultValue: string;
300
+ };
301
+ tokenType: {
302
+ description: string;
303
+ type: string;
304
+ defaultValue: string;
305
+ };
306
+ domains: {
307
+ description: string;
308
+ type: string;
309
+ defaultValue: never[];
310
+ };
311
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
28
312
  }, {
29
313
  readonly name: string;
30
314
  readonly description: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const HTTPBasicLoginForm: ({ internetAccountId, handleClose, }: {
3
2
  internetAccountId: string;
4
3
  handleClose: (arg?: string) => void;
@@ -1,5 +1,48 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
- declare const HTTPBasicConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
+ declare const HTTPBasicConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
+ /**
4
+ * #slot
5
+ */
6
+ tokenType: {
7
+ description: string;
8
+ type: string;
9
+ defaultValue: string;
10
+ };
11
+ /**
12
+ * #slot
13
+ */
14
+ validateWithHEAD: {
15
+ description: string;
16
+ type: string;
17
+ defaultValue: boolean;
18
+ };
19
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
20
+ name: {
21
+ description: string;
22
+ type: string;
23
+ defaultValue: string;
24
+ };
25
+ description: {
26
+ description: string;
27
+ type: string;
28
+ defaultValue: string;
29
+ };
30
+ authHeader: {
31
+ description: string;
32
+ type: string;
33
+ defaultValue: string;
34
+ };
35
+ tokenType: {
36
+ description: string;
37
+ type: string;
38
+ defaultValue: string;
39
+ };
40
+ domains: {
41
+ description: string;
42
+ type: string;
43
+ defaultValue: never[];
44
+ };
45
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
3
46
  export type HTTPBasicInternetAccountConfigModel = typeof HTTPBasicConfigSchema;
4
47
  export type HTTPBasicInternetAccountConfig = Instance<HTTPBasicInternetAccountConfigModel>;
5
48
  export default HTTPBasicConfigSchema;
@@ -1,13 +1,113 @@
1
1
  /// <reference types="react" />
2
2
  import { UriLocation } from '@jbrowse/core/util/types';
3
- import { HTTPBasicInternetAccountConfigModel } from './configSchema';
4
3
  import { Instance } from 'mobx-state-tree';
5
- declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
4
+ declare const stateModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
5
+ tokenType: {
6
+ description: string;
7
+ type: string;
8
+ defaultValue: string;
9
+ };
10
+ validateWithHEAD: {
11
+ description: string;
12
+ type: string;
13
+ defaultValue: boolean;
14
+ };
15
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
16
+ name: {
17
+ description: string;
18
+ type: string;
19
+ defaultValue: string;
20
+ };
21
+ description: {
22
+ description: string;
23
+ type: string;
24
+ defaultValue: string;
25
+ };
26
+ authHeader: {
27
+ description: string;
28
+ type: string;
29
+ defaultValue: string;
30
+ };
31
+ tokenType: {
32
+ description: string;
33
+ type: string;
34
+ defaultValue: string;
35
+ };
36
+ domains: {
37
+ description: string;
38
+ type: string;
39
+ defaultValue: never[];
40
+ };
41
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
6
42
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
7
43
  type: import("mobx-state-tree").ISimpleType<string>;
44
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
45
+ name: {
46
+ description: string;
47
+ type: string;
48
+ defaultValue: string;
49
+ };
50
+ description: {
51
+ description: string;
52
+ type: string;
53
+ defaultValue: string;
54
+ };
55
+ authHeader: {
56
+ description: string;
57
+ type: string;
58
+ defaultValue: string;
59
+ };
60
+ tokenType: {
61
+ description: string;
62
+ type: string;
63
+ defaultValue: string;
64
+ };
65
+ domains: {
66
+ description: string;
67
+ type: string;
68
+ defaultValue: never[];
69
+ };
70
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
8
71
  } & {
9
72
  type: import("mobx-state-tree").ISimpleType<"HTTPBasicInternetAccount">;
10
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
73
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
74
+ tokenType: {
75
+ description: string;
76
+ type: string;
77
+ defaultValue: string;
78
+ };
79
+ validateWithHEAD: {
80
+ description: string;
81
+ type: string;
82
+ defaultValue: boolean;
83
+ };
84
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
85
+ name: {
86
+ description: string;
87
+ type: string;
88
+ defaultValue: string;
89
+ };
90
+ description: {
91
+ description: string;
92
+ type: string;
93
+ defaultValue: string;
94
+ };
95
+ authHeader: {
96
+ description: string;
97
+ type: string;
98
+ defaultValue: string;
99
+ };
100
+ tokenType: {
101
+ description: string;
102
+ type: string;
103
+ defaultValue: string;
104
+ };
105
+ domains: {
106
+ description: string;
107
+ type: string;
108
+ defaultValue: never[];
109
+ };
110
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
11
111
  }, {
12
112
  readonly name: string;
13
113
  readonly description: string;
@@ -1,5 +1,106 @@
1
1
  import { Instance } from 'mobx-state-tree';
2
- declare const OAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
+ declare const OAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
+ /**
4
+ * #slot
5
+ */
6
+ tokenType: {
7
+ description: string;
8
+ type: string;
9
+ defaultValue: string;
10
+ };
11
+ /**
12
+ * #slot
13
+ */
14
+ authEndpoint: {
15
+ description: string;
16
+ type: string;
17
+ defaultValue: string;
18
+ };
19
+ /**
20
+ * #slot
21
+ */
22
+ tokenEndpoint: {
23
+ description: string;
24
+ type: string;
25
+ defaultValue: string;
26
+ };
27
+ /**
28
+ * #slot
29
+ */
30
+ needsPKCE: {
31
+ description: string;
32
+ type: string;
33
+ defaultValue: boolean;
34
+ };
35
+ /**
36
+ * #slot
37
+ */
38
+ clientId: {
39
+ description: string;
40
+ type: string;
41
+ defaultValue: string;
42
+ };
43
+ /**
44
+ * #slot
45
+ */
46
+ scopes: {
47
+ description: string;
48
+ type: string;
49
+ defaultValue: string;
50
+ };
51
+ /**
52
+ * #slot
53
+ */
54
+ state: {
55
+ description: string;
56
+ type: string;
57
+ defaultValue: string;
58
+ };
59
+ /**
60
+ * #slot
61
+ */
62
+ responseType: {
63
+ description: string;
64
+ type: string;
65
+ defaultValue: string;
66
+ };
67
+ /**
68
+ * #slot
69
+ */
70
+ hasRefreshToken: {
71
+ description: string;
72
+ type: string;
73
+ defaultValue: boolean;
74
+ };
75
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
76
+ name: {
77
+ description: string;
78
+ type: string;
79
+ defaultValue: string;
80
+ };
81
+ description: {
82
+ description: string;
83
+ type: string;
84
+ defaultValue: string;
85
+ }; /**
86
+ * #slot
87
+ */
88
+ authHeader: {
89
+ description: string;
90
+ type: string;
91
+ defaultValue: string;
92
+ };
93
+ tokenType: {
94
+ description: string;
95
+ type: string;
96
+ defaultValue: string;
97
+ };
98
+ domains: {
99
+ description: string;
100
+ type: string;
101
+ defaultValue: never[];
102
+ };
103
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
3
104
  export type OAuthInternetAccountConfigModel = typeof OAuthConfigSchema;
4
105
  export type OAuthInternetAccountConfig = Instance<OAuthInternetAccountConfigModel>;
5
106
  export default OAuthConfigSchema;