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