@jbrowse/plugin-authentication 5.0.0-beta.7 → 5.0.0-beta.9

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.
@@ -9,101 +9,151 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
9
9
  type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
10
10
  configuration: import("@jbrowse/core/configuration/configurationSchema").IConfigurationReference<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
11
11
  readonly name: {
12
- readonly description: "descriptive name of the internet account";
13
- readonly type: "string";
14
- readonly defaultValue: "";
12
+ type: "string";
13
+ } & {
14
+ defaultValue: string;
15
15
  };
16
16
  readonly description: {
17
- readonly description: "a description of the internet account";
18
- readonly type: "string";
19
- readonly defaultValue: "";
17
+ type: "string";
18
+ } & {
19
+ defaultValue: string;
20
20
  };
21
21
  readonly authHeader: {
22
- readonly description: "request header for credentials";
23
- readonly type: "string";
24
- readonly defaultValue: "Authorization";
22
+ type: "string";
23
+ } & {
24
+ defaultValue: string;
25
25
  };
26
26
  readonly tokenType: {
27
- readonly description: "a custom name for a token to include in the header";
28
- readonly type: "string";
29
- readonly defaultValue: "";
27
+ type: "string";
28
+ } & {
29
+ defaultValue: string;
30
30
  };
31
31
  readonly domains: {
32
- readonly description: "array of valid domains the url can contain to use this account";
33
- readonly type: "stringArray";
34
- readonly defaultValue: readonly [];
32
+ type: "stringArray";
33
+ } & {
34
+ defaultValue: unknown;
35
35
  };
36
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>>;
36
+ type: {
37
+ type: "string";
38
+ } & {
39
+ defaultValue: string;
40
+ };
41
+ internetAccountId: {
42
+ type: "string";
43
+ } & {
44
+ defaultValue: string;
45
+ };
46
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>>;
37
47
  }, "configuration" | "type"> & {
38
48
  type: import("@jbrowse/mobx-state-tree").ILiteralType<"OAuthInternetAccount">;
39
49
  configuration: import("@jbrowse/core/configuration/configurationSchema").IConfigurationReference<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
40
- readonly tokenType: {
41
- readonly description: "a custom name for a token to include in the header";
42
- readonly type: "string";
43
- readonly defaultValue: "Bearer";
44
- };
45
- readonly authEndpoint: {
46
- readonly description: "the authorization code endpoint of the internet account";
47
- readonly type: "string";
48
- readonly defaultValue: "";
49
- };
50
- readonly tokenEndpoint: {
51
- readonly description: "the token endpoint of the internet account";
52
- readonly type: "string";
53
- readonly defaultValue: "";
54
- };
55
- readonly needsPKCE: {
56
- readonly description: "boolean to indicate if the endpoint needs a PKCE code";
57
- readonly type: "boolean";
58
- readonly defaultValue: false;
59
- };
60
- readonly clientId: {
61
- readonly description: "id for the OAuth application";
62
- readonly type: "string";
63
- readonly defaultValue: "";
64
- };
65
- readonly scopes: {
66
- readonly description: "optional scopes for the authorization call";
67
- readonly type: "string";
68
- readonly defaultValue: "";
69
- };
70
- readonly state: {
71
- readonly description: "optional state for the authorization call";
72
- readonly type: "string";
73
- readonly defaultValue: "";
74
- };
75
- readonly responseType: {
76
- readonly description: "the type of response from the authorization endpoint. can be 'token' or 'code'";
77
- readonly type: "string";
78
- readonly defaultValue: "code";
50
+ authEndpoint: {
51
+ type: "string";
52
+ } & {
53
+ defaultValue: string;
54
+ };
55
+ authHeader: {
56
+ type: "string";
57
+ } & {
58
+ defaultValue: string;
59
+ };
60
+ clientId: {
61
+ type: "string";
62
+ } & {
63
+ defaultValue: string;
64
+ };
65
+ description: {
66
+ type: "string";
67
+ } & {
68
+ defaultValue: string;
69
+ };
70
+ domains: {
71
+ type: "stringArray";
72
+ } & {
73
+ defaultValue: unknown;
74
+ };
75
+ internetAccountId: {
76
+ type: "string";
77
+ } & {
78
+ defaultValue: string;
79
+ };
80
+ name: {
81
+ type: "string";
82
+ } & {
83
+ defaultValue: string;
84
+ };
85
+ needsPKCE: {
86
+ type: "boolean";
87
+ } & {
88
+ defaultValue: boolean;
89
+ };
90
+ responseType: {
91
+ type: "string";
92
+ } & {
93
+ defaultValue: string;
94
+ };
95
+ scopes: {
96
+ type: "string";
97
+ } & {
98
+ defaultValue: string;
99
+ };
100
+ state: {
101
+ type: "string";
102
+ } & {
103
+ defaultValue: string;
104
+ };
105
+ tokenEndpoint: {
106
+ type: "string";
107
+ } & {
108
+ defaultValue: string;
109
+ };
110
+ tokenType: {
111
+ type: "string";
112
+ } & {
113
+ defaultValue: string;
114
+ };
115
+ type: {
116
+ type: "string";
117
+ } & {
118
+ defaultValue: string;
79
119
  };
80
120
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
81
121
  readonly name: {
82
- readonly description: "descriptive name of the internet account";
83
- readonly type: "string";
84
- readonly defaultValue: "";
122
+ type: "string";
123
+ } & {
124
+ defaultValue: string;
85
125
  };
86
126
  readonly description: {
87
- readonly description: "a description of the internet account";
88
- readonly type: "string";
89
- readonly defaultValue: "";
127
+ type: "string";
128
+ } & {
129
+ defaultValue: string;
90
130
  };
91
131
  readonly authHeader: {
92
- readonly description: "request header for credentials";
93
- readonly type: "string";
94
- readonly defaultValue: "Authorization";
132
+ type: "string";
133
+ } & {
134
+ defaultValue: string;
95
135
  };
96
136
  readonly tokenType: {
97
- readonly description: "a custom name for a token to include in the header";
98
- readonly type: "string";
99
- readonly defaultValue: "";
137
+ type: "string";
138
+ } & {
139
+ defaultValue: string;
100
140
  };
101
141
  readonly domains: {
102
- readonly description: "array of valid domains the url can contain to use this account";
103
- readonly type: "stringArray";
104
- readonly defaultValue: readonly [];
142
+ type: "stringArray";
143
+ } & {
144
+ defaultValue: unknown;
105
145
  };
106
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>>;
146
+ type: {
147
+ type: "string";
148
+ } & {
149
+ defaultValue: string;
150
+ };
151
+ internetAccountId: {
152
+ type: "string";
153
+ } & {
154
+ defaultValue: string;
155
+ };
156
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>, undefined, true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>>;
107
157
  }, "configuration" | "type"> & {
108
158
  /**
109
159
  * #property
@@ -113,94 +163,184 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
113
163
  * #property
114
164
  */
115
165
  configuration: import("@jbrowse/core/configuration/configurationSchema").IConfigurationReference<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
116
- readonly authEndpoint: {
117
- readonly description: "the authorization code endpoint of the internet account";
118
- readonly type: "string";
119
- readonly defaultValue: "https://www.dropbox.com/oauth2/authorize";
120
- };
121
- readonly tokenEndpoint: {
122
- readonly description: "the token endpoint of the internet account";
123
- readonly type: "string";
124
- readonly defaultValue: "https://api.dropbox.com/oauth2/token";
125
- };
126
- readonly needsPKCE: {
127
- readonly description: "boolean to indicate if the endpoint needs a PKCE code";
128
- readonly type: "boolean";
129
- readonly defaultValue: true;
130
- };
131
- readonly domains: {
132
- readonly description: "array of valid domains the url can contain to use this account";
133
- readonly type: "stringArray";
134
- readonly defaultValue: readonly ["addtodropbox.com", "db.tt", "dropbox.com", "dropboxapi.com", "dropboxbusiness.com", "dropbox.tech", "getdropbox.com"];
166
+ authEndpoint: {
167
+ type: "string";
168
+ } & {
169
+ defaultValue: string;
170
+ };
171
+ authHeader: {
172
+ type: "string";
173
+ } & {
174
+ defaultValue: string;
175
+ };
176
+ clientId: {
177
+ type: "string";
178
+ } & {
179
+ defaultValue: string;
180
+ };
181
+ description: {
182
+ type: "string";
183
+ } & {
184
+ defaultValue: string;
185
+ };
186
+ domains: {
187
+ type: "stringArray";
188
+ } & {
189
+ defaultValue: unknown;
190
+ };
191
+ internetAccountId: {
192
+ type: "string";
193
+ } & {
194
+ defaultValue: string;
195
+ };
196
+ name: {
197
+ type: "string";
198
+ } & {
199
+ defaultValue: string;
200
+ };
201
+ needsPKCE: {
202
+ type: "boolean";
203
+ } & {
204
+ defaultValue: boolean;
205
+ };
206
+ responseType: {
207
+ type: "string";
208
+ } & {
209
+ defaultValue: string;
210
+ };
211
+ scopes: {
212
+ type: "string";
213
+ } & {
214
+ defaultValue: string;
215
+ };
216
+ state: {
217
+ type: "string";
218
+ } & {
219
+ defaultValue: string;
220
+ };
221
+ tokenEndpoint: {
222
+ type: "string";
223
+ } & {
224
+ defaultValue: string;
225
+ };
226
+ tokenType: {
227
+ type: "string";
228
+ } & {
229
+ defaultValue: string;
230
+ };
231
+ type: {
232
+ type: "string";
233
+ } & {
234
+ defaultValue: string;
135
235
  };
136
236
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
137
- readonly tokenType: {
138
- readonly description: "a custom name for a token to include in the header";
139
- readonly type: "string";
140
- readonly defaultValue: "Bearer";
141
- };
142
- readonly authEndpoint: {
143
- readonly description: "the authorization code endpoint of the internet account";
144
- readonly type: "string";
145
- readonly defaultValue: "";
146
- };
147
- readonly tokenEndpoint: {
148
- readonly description: "the token endpoint of the internet account";
149
- readonly type: "string";
150
- readonly defaultValue: "";
151
- };
152
- readonly needsPKCE: {
153
- readonly description: "boolean to indicate if the endpoint needs a PKCE code";
154
- readonly type: "boolean";
155
- readonly defaultValue: false;
156
- };
157
- readonly clientId: {
158
- readonly description: "id for the OAuth application";
159
- readonly type: "string";
160
- readonly defaultValue: "";
161
- };
162
- readonly scopes: {
163
- readonly description: "optional scopes for the authorization call";
164
- readonly type: "string";
165
- readonly defaultValue: "";
166
- };
167
- readonly state: {
168
- readonly description: "optional state for the authorization call";
169
- readonly type: "string";
170
- readonly defaultValue: "";
171
- };
172
- readonly responseType: {
173
- readonly description: "the type of response from the authorization endpoint. can be 'token' or 'code'";
174
- readonly type: "string";
175
- readonly defaultValue: "code";
237
+ authEndpoint: {
238
+ type: "string";
239
+ } & {
240
+ defaultValue: string;
241
+ };
242
+ authHeader: {
243
+ type: "string";
244
+ } & {
245
+ defaultValue: string;
246
+ };
247
+ clientId: {
248
+ type: "string";
249
+ } & {
250
+ defaultValue: string;
251
+ };
252
+ description: {
253
+ type: "string";
254
+ } & {
255
+ defaultValue: string;
256
+ };
257
+ domains: {
258
+ type: "stringArray";
259
+ } & {
260
+ defaultValue: unknown;
261
+ };
262
+ internetAccountId: {
263
+ type: "string";
264
+ } & {
265
+ defaultValue: string;
266
+ };
267
+ name: {
268
+ type: "string";
269
+ } & {
270
+ defaultValue: string;
271
+ };
272
+ needsPKCE: {
273
+ type: "boolean";
274
+ } & {
275
+ defaultValue: boolean;
276
+ };
277
+ responseType: {
278
+ type: "string";
279
+ } & {
280
+ defaultValue: string;
281
+ };
282
+ scopes: {
283
+ type: "string";
284
+ } & {
285
+ defaultValue: string;
286
+ };
287
+ state: {
288
+ type: "string";
289
+ } & {
290
+ defaultValue: string;
291
+ };
292
+ tokenEndpoint: {
293
+ type: "string";
294
+ } & {
295
+ defaultValue: string;
296
+ };
297
+ tokenType: {
298
+ type: "string";
299
+ } & {
300
+ defaultValue: string;
301
+ };
302
+ type: {
303
+ type: "string";
304
+ } & {
305
+ defaultValue: string;
176
306
  };
177
307
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
178
308
  readonly name: {
179
- readonly description: "descriptive name of the internet account";
180
- readonly type: "string";
181
- readonly defaultValue: "";
309
+ type: "string";
310
+ } & {
311
+ defaultValue: string;
182
312
  };
183
313
  readonly description: {
184
- readonly description: "a description of the internet account";
185
- readonly type: "string";
186
- readonly defaultValue: "";
314
+ type: "string";
315
+ } & {
316
+ defaultValue: string;
187
317
  };
188
318
  readonly authHeader: {
189
- readonly description: "request header for credentials";
190
- readonly type: "string";
191
- readonly defaultValue: "Authorization";
319
+ type: "string";
320
+ } & {
321
+ defaultValue: string;
192
322
  };
193
323
  readonly tokenType: {
194
- readonly description: "a custom name for a token to include in the header";
195
- readonly type: "string";
196
- readonly defaultValue: "";
324
+ type: "string";
325
+ } & {
326
+ defaultValue: string;
197
327
  };
198
328
  readonly domains: {
199
- readonly description: "array of valid domains the url can contain to use this account";
200
- readonly type: "stringArray";
201
- readonly defaultValue: readonly [];
329
+ type: "stringArray";
330
+ } & {
331
+ defaultValue: unknown;
332
+ };
333
+ type: {
334
+ type: "string";
335
+ } & {
336
+ defaultValue: string;
337
+ };
338
+ internetAccountId: {
339
+ type: "string";
340
+ } & {
341
+ defaultValue: string;
202
342
  };
203
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>>;
343
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>, undefined, true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>, undefined, true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>>;
204
344
  }, {
205
345
  readonly name: string;
206
346
  readonly description: string;
@@ -260,7 +400,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
260
400
  readonly clientId: string;
261
401
  readonly scopes: string;
262
402
  readonly state: string;
263
- readonly responseType: 'token' | 'code';
403
+ readonly responseType: string;
264
404
  readonly refreshTokenKey: string;
265
405
  readonly authFlowParams: Record<string, string>;
266
406
  } & {
@@ -16,41 +16,83 @@ import type { Instance } from '@jbrowse/mobx-state-tree';
16
16
  * ```
17
17
  */
18
18
  declare const ExternalTokenConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
19
- /**
20
- * #slot
21
- */
22
- readonly validateWithHEAD: {
23
- readonly description: "validate the token with a HEAD request before using it";
24
- readonly type: "boolean";
25
- readonly defaultValue: true;
19
+ authHeader: {
20
+ type: "string";
21
+ } & {
22
+ defaultValue: string;
23
+ };
24
+ description: {
25
+ type: "string";
26
+ } & {
27
+ defaultValue: string;
28
+ };
29
+ domains: {
30
+ type: "stringArray";
31
+ } & {
32
+ defaultValue: unknown;
33
+ };
34
+ internetAccountId: {
35
+ type: "string";
36
+ } & {
37
+ defaultValue: string;
38
+ };
39
+ name: {
40
+ type: "string";
41
+ } & {
42
+ defaultValue: string;
43
+ };
44
+ tokenType: {
45
+ type: "string";
46
+ } & {
47
+ defaultValue: string;
48
+ };
49
+ type: {
50
+ type: "string";
51
+ } & {
52
+ defaultValue: string;
53
+ };
54
+ validateWithHEAD: {
55
+ type: "boolean";
56
+ } & {
57
+ defaultValue: boolean;
26
58
  };
27
59
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
28
60
  readonly name: {
29
- readonly description: "descriptive name of the internet account";
30
- readonly type: "string";
31
- readonly defaultValue: "";
61
+ type: "string";
62
+ } & {
63
+ defaultValue: string;
32
64
  };
33
65
  readonly description: {
34
- readonly description: "a description of the internet account";
35
- readonly type: "string";
36
- readonly defaultValue: "";
66
+ type: "string";
67
+ } & {
68
+ defaultValue: string;
37
69
  };
38
70
  readonly authHeader: {
39
- readonly description: "request header for credentials";
40
- readonly type: "string";
41
- readonly defaultValue: "Authorization";
71
+ type: "string";
72
+ } & {
73
+ defaultValue: string;
42
74
  };
43
75
  readonly tokenType: {
44
- readonly description: "a custom name for a token to include in the header";
45
- readonly type: "string";
46
- readonly defaultValue: "";
76
+ type: "string";
77
+ } & {
78
+ defaultValue: string;
47
79
  };
48
80
  readonly domains: {
49
- readonly description: "array of valid domains the url can contain to use this account";
50
- readonly type: "stringArray";
51
- readonly defaultValue: readonly [];
81
+ type: "stringArray";
82
+ } & {
83
+ defaultValue: unknown;
84
+ };
85
+ type: {
86
+ type: "string";
87
+ } & {
88
+ defaultValue: string;
89
+ };
90
+ internetAccountId: {
91
+ type: "string";
92
+ } & {
93
+ defaultValue: string;
52
94
  };
53
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
95
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>, undefined, true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>;
54
96
  export type ExternalTokenInternetAccountConfigModel = typeof ExternalTokenConfigSchema;
55
97
  export type ExternalTokenInternetAccountConfig = Instance<ExternalTokenInternetAccountConfigModel>;
56
98
  export default ExternalTokenConfigSchema;
@@ -13,31 +13,41 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
13
13
  type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
14
14
  configuration: import("@jbrowse/core/configuration/configurationSchema").IConfigurationReference<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
15
15
  readonly name: {
16
- readonly description: "descriptive name of the internet account";
17
- readonly type: "string";
18
- readonly defaultValue: "";
16
+ type: "string";
17
+ } & {
18
+ defaultValue: string;
19
19
  };
20
20
  readonly description: {
21
- readonly description: "a description of the internet account";
22
- readonly type: "string";
23
- readonly defaultValue: "";
21
+ type: "string";
22
+ } & {
23
+ defaultValue: string;
24
24
  };
25
25
  readonly authHeader: {
26
- readonly description: "request header for credentials";
27
- readonly type: "string";
28
- readonly defaultValue: "Authorization";
26
+ type: "string";
27
+ } & {
28
+ defaultValue: string;
29
29
  };
30
30
  readonly tokenType: {
31
- readonly description: "a custom name for a token to include in the header";
32
- readonly type: "string";
33
- readonly defaultValue: "";
31
+ type: "string";
32
+ } & {
33
+ defaultValue: string;
34
34
  };
35
35
  readonly domains: {
36
- readonly description: "array of valid domains the url can contain to use this account";
37
- readonly type: "stringArray";
38
- readonly defaultValue: readonly [];
36
+ type: "stringArray";
37
+ } & {
38
+ defaultValue: unknown;
39
39
  };
40
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>>;
40
+ type: {
41
+ type: "string";
42
+ } & {
43
+ defaultValue: string;
44
+ };
45
+ internetAccountId: {
46
+ type: "string";
47
+ } & {
48
+ defaultValue: string;
49
+ };
50
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>>;
41
51
  }, "configuration" | "type"> & {
42
52
  type: import("@jbrowse/mobx-state-tree").ILiteralType<"ExternalTokenInternetAccount">;
43
53
  configuration: import("@jbrowse/core/configuration/configurationSchema").IConfigurationReference<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;