@jbrowse/plugin-authentication 4.2.1 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/DropboxOAuthModel/DropboxIcon.d.ts +1 -1
- package/esm/DropboxOAuthModel/configSchema.d.ts +110 -82
- package/esm/DropboxOAuthModel/configSchema.js +32 -2
- package/esm/DropboxOAuthModel/index.js +2 -2
- package/esm/DropboxOAuthModel/model.d.ts +235 -201
- package/esm/DropboxOAuthModel/model.js +46 -21
- package/esm/DropboxOAuthModel/util.d.ts +1 -1
- package/esm/DropboxOAuthModel/util.js +9 -12
- package/esm/ExternalTokenModel/ExternalTokenEntryForm.d.ts +1 -1
- package/esm/ExternalTokenModel/ExternalTokenEntryForm.js +11 -15
- package/esm/ExternalTokenModel/configSchema.d.ts +43 -24
- package/esm/ExternalTokenModel/configSchema.js +22 -1
- package/esm/ExternalTokenModel/index.js +2 -2
- package/esm/ExternalTokenModel/model.d.ts +47 -71
- package/esm/ExternalTokenModel/model.js +11 -54
- package/esm/GoogleDriveOAuthModel/GoogleDriveFilehandle.d.ts +2 -9
- package/esm/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +27 -6
- package/esm/GoogleDriveOAuthModel/GoogleDriveIcon.d.ts +1 -1
- package/esm/GoogleDriveOAuthModel/configSchema.d.ts +109 -82
- package/esm/GoogleDriveOAuthModel/configSchema.js +32 -3
- package/esm/GoogleDriveOAuthModel/index.js +2 -2
- package/esm/GoogleDriveOAuthModel/model.d.ts +230 -202
- package/esm/GoogleDriveOAuthModel/model.js +45 -22
- package/esm/GoogleDriveOAuthModel/util.d.ts +1 -1
- package/esm/GoogleDriveOAuthModel/util.js +2 -11
- package/esm/HTTPBasicModel/HTTPBasicLoginForm.d.ts +1 -1
- package/esm/HTTPBasicModel/HTTPBasicLoginForm.js +17 -22
- package/esm/HTTPBasicModel/configSchema.d.ts +51 -28
- package/esm/HTTPBasicModel/configSchema.js +26 -1
- package/esm/HTTPBasicModel/index.js +2 -2
- package/esm/HTTPBasicModel/model.d.ts +55 -76
- package/esm/HTTPBasicModel/model.js +21 -51
- package/esm/OAuthModel/OAuthLoginPrompt.d.ts +4 -0
- package/esm/OAuthModel/OAuthLoginPrompt.js +12 -0
- package/esm/OAuthModel/configSchema.d.ts +79 -52
- package/esm/OAuthModel/configSchema.js +30 -1
- package/esm/OAuthModel/index.js +2 -2
- package/esm/OAuthModel/model.d.ts +218 -114
- package/esm/OAuthModel/model.js +361 -217
- package/esm/OAuthModel/util.d.ts +46 -7
- package/esm/OAuthModel/util.js +159 -16
- package/esm/index.d.ts +295 -981
- package/esm/index.js +29 -45
- package/esm/lazyLoginForms.d.ts +18 -0
- package/esm/lazyLoginForms.js +25 -0
- package/esm/tokenEntryModelFactory.d.ts +125 -0
- package/esm/tokenEntryModelFactory.js +85 -0
- package/esm/util.d.ts +10 -0
- package/esm/util.js +24 -2
- package/package.json +10 -13
package/esm/index.d.ts
CHANGED
|
@@ -1,1018 +1,332 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
+
import { modelFactory as DropboxOAuthInternetAccountModelFactory } from './DropboxOAuthModel/index.ts';
|
|
3
|
+
import { modelFactory as ExternalTokenInternetAccountModelFactory } from './ExternalTokenModel/index.ts';
|
|
2
4
|
import { modelFactory as GoogleDriveOAuthInternetAccountModelFactory } from './GoogleDriveOAuthModel/index.ts';
|
|
5
|
+
import { modelFactory as HTTPBasicInternetAccountModelFactory } from './HTTPBasicModel/index.ts';
|
|
6
|
+
import { modelFactory as OAuthInternetAccountModelFactory } from './OAuthModel/index.ts';
|
|
3
7
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
4
8
|
export default class AuthenticationPlugin extends Plugin {
|
|
5
9
|
name: string;
|
|
6
10
|
exports: {
|
|
7
11
|
OAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
|
-
tokenType: {
|
|
9
|
-
description:
|
|
10
|
-
type: string;
|
|
11
|
-
defaultValue:
|
|
12
|
-
};
|
|
13
|
-
authEndpoint: {
|
|
14
|
-
description:
|
|
15
|
-
type: string;
|
|
16
|
-
defaultValue:
|
|
17
|
-
};
|
|
18
|
-
tokenEndpoint: {
|
|
19
|
-
description:
|
|
20
|
-
type: string;
|
|
21
|
-
defaultValue:
|
|
22
|
-
};
|
|
23
|
-
needsPKCE: {
|
|
24
|
-
description:
|
|
25
|
-
type:
|
|
26
|
-
defaultValue:
|
|
27
|
-
};
|
|
28
|
-
clientId: {
|
|
29
|
-
description:
|
|
30
|
-
type: string;
|
|
31
|
-
defaultValue:
|
|
32
|
-
};
|
|
33
|
-
scopes: {
|
|
34
|
-
description:
|
|
35
|
-
type: string;
|
|
36
|
-
defaultValue:
|
|
37
|
-
};
|
|
38
|
-
state: {
|
|
39
|
-
description:
|
|
40
|
-
type: string;
|
|
41
|
-
defaultValue:
|
|
42
|
-
};
|
|
43
|
-
responseType: {
|
|
44
|
-
description:
|
|
45
|
-
type: string;
|
|
46
|
-
defaultValue:
|
|
12
|
+
readonly tokenType: {
|
|
13
|
+
readonly description: "a custom name for a token to include in the header";
|
|
14
|
+
readonly type: "string";
|
|
15
|
+
readonly defaultValue: "Bearer";
|
|
16
|
+
};
|
|
17
|
+
readonly authEndpoint: {
|
|
18
|
+
readonly description: "the authorization code endpoint of the internet account";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly defaultValue: "";
|
|
21
|
+
};
|
|
22
|
+
readonly tokenEndpoint: {
|
|
23
|
+
readonly description: "the token endpoint of the internet account";
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly defaultValue: "";
|
|
26
|
+
};
|
|
27
|
+
readonly needsPKCE: {
|
|
28
|
+
readonly description: "boolean to indicate if the endpoint needs a PKCE code";
|
|
29
|
+
readonly type: "boolean";
|
|
30
|
+
readonly defaultValue: false;
|
|
31
|
+
};
|
|
32
|
+
readonly clientId: {
|
|
33
|
+
readonly description: "id for the OAuth application";
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
readonly defaultValue: "";
|
|
36
|
+
};
|
|
37
|
+
readonly scopes: {
|
|
38
|
+
readonly description: "optional scopes for the authorization call";
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly defaultValue: "";
|
|
41
|
+
};
|
|
42
|
+
readonly state: {
|
|
43
|
+
readonly description: "optional state for the authorization call";
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
readonly defaultValue: "";
|
|
46
|
+
};
|
|
47
|
+
readonly responseType: {
|
|
48
|
+
readonly description: "the type of response from the authorization endpoint. can be 'token' or 'code'";
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
readonly defaultValue: "code";
|
|
47
51
|
};
|
|
48
52
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
49
|
-
name: {
|
|
50
|
-
description:
|
|
51
|
-
type: string;
|
|
52
|
-
defaultValue:
|
|
53
|
-
};
|
|
54
|
-
description: {
|
|
55
|
-
description:
|
|
56
|
-
type: string;
|
|
57
|
-
defaultValue:
|
|
58
|
-
};
|
|
59
|
-
authHeader: {
|
|
60
|
-
description:
|
|
61
|
-
type: string;
|
|
62
|
-
defaultValue:
|
|
63
|
-
};
|
|
64
|
-
tokenType: {
|
|
65
|
-
description:
|
|
66
|
-
type: string;
|
|
67
|
-
defaultValue:
|
|
68
|
-
};
|
|
69
|
-
domains: {
|
|
70
|
-
description:
|
|
71
|
-
type:
|
|
72
|
-
defaultValue:
|
|
53
|
+
readonly name: {
|
|
54
|
+
readonly description: "descriptive name of the internet account";
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
readonly defaultValue: "";
|
|
57
|
+
};
|
|
58
|
+
readonly description: {
|
|
59
|
+
readonly description: "a description of the internet account";
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
readonly defaultValue: "";
|
|
62
|
+
};
|
|
63
|
+
readonly authHeader: {
|
|
64
|
+
readonly description: "request header for credentials";
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly defaultValue: "Authorization";
|
|
67
|
+
};
|
|
68
|
+
readonly tokenType: {
|
|
69
|
+
readonly description: "a custom name for a token to include in the header";
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
readonly defaultValue: "";
|
|
72
|
+
};
|
|
73
|
+
readonly domains: {
|
|
74
|
+
readonly description: "array of valid domains the url can contain to use this account";
|
|
75
|
+
readonly type: "stringArray";
|
|
76
|
+
readonly defaultValue: readonly [];
|
|
73
77
|
};
|
|
74
78
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
75
|
-
OAuthInternetAccountModelFactory:
|
|
76
|
-
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
77
|
-
type: import("@jbrowse/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("@jbrowse/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("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
79
|
+
OAuthInternetAccountModelFactory: typeof OAuthInternetAccountModelFactory;
|
|
251
80
|
ExternalTokenConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
252
|
-
validateWithHEAD: {
|
|
253
|
-
description:
|
|
254
|
-
type:
|
|
255
|
-
defaultValue:
|
|
81
|
+
readonly validateWithHEAD: {
|
|
82
|
+
readonly description: "validate the token with a HEAD request before using it";
|
|
83
|
+
readonly type: "boolean";
|
|
84
|
+
readonly defaultValue: true;
|
|
256
85
|
};
|
|
257
86
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
258
|
-
name: {
|
|
259
|
-
description:
|
|
260
|
-
type: string;
|
|
261
|
-
defaultValue:
|
|
262
|
-
};
|
|
263
|
-
description: {
|
|
264
|
-
description:
|
|
265
|
-
type: string;
|
|
266
|
-
defaultValue:
|
|
267
|
-
};
|
|
268
|
-
authHeader: {
|
|
269
|
-
description:
|
|
270
|
-
type: string;
|
|
271
|
-
defaultValue:
|
|
272
|
-
};
|
|
273
|
-
tokenType: {
|
|
274
|
-
description:
|
|
275
|
-
type: string;
|
|
276
|
-
defaultValue:
|
|
277
|
-
};
|
|
278
|
-
domains: {
|
|
279
|
-
description:
|
|
280
|
-
type:
|
|
281
|
-
defaultValue:
|
|
87
|
+
readonly name: {
|
|
88
|
+
readonly description: "descriptive name of the internet account";
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
readonly defaultValue: "";
|
|
91
|
+
};
|
|
92
|
+
readonly description: {
|
|
93
|
+
readonly description: "a description of the internet account";
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
readonly defaultValue: "";
|
|
96
|
+
};
|
|
97
|
+
readonly authHeader: {
|
|
98
|
+
readonly description: "request header for credentials";
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
readonly defaultValue: "Authorization";
|
|
101
|
+
};
|
|
102
|
+
readonly tokenType: {
|
|
103
|
+
readonly description: "a custom name for a token to include in the header";
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly defaultValue: "";
|
|
106
|
+
};
|
|
107
|
+
readonly domains: {
|
|
108
|
+
readonly description: "array of valid domains the url can contain to use this account";
|
|
109
|
+
readonly type: "stringArray";
|
|
110
|
+
readonly defaultValue: readonly [];
|
|
282
111
|
};
|
|
283
112
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
284
|
-
ExternalTokenInternetAccountModelFactory:
|
|
285
|
-
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
286
|
-
type: import("@jbrowse/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("@jbrowse/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("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
113
|
+
ExternalTokenInternetAccountModelFactory: typeof ExternalTokenInternetAccountModelFactory;
|
|
404
114
|
HTTPBasicConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
405
|
-
tokenType: {
|
|
406
|
-
description:
|
|
407
|
-
type: string;
|
|
408
|
-
defaultValue:
|
|
115
|
+
readonly tokenType: {
|
|
116
|
+
readonly description: "a custom name for a token to include in the header";
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
readonly defaultValue: "Basic";
|
|
409
119
|
};
|
|
410
|
-
validateWithHEAD: {
|
|
411
|
-
description:
|
|
412
|
-
type:
|
|
413
|
-
defaultValue:
|
|
120
|
+
readonly validateWithHEAD: {
|
|
121
|
+
readonly description: "validate the token with a HEAD request before using it";
|
|
122
|
+
readonly type: "boolean";
|
|
123
|
+
readonly defaultValue: true;
|
|
414
124
|
};
|
|
415
125
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
416
|
-
name: {
|
|
417
|
-
description:
|
|
418
|
-
type: string;
|
|
419
|
-
defaultValue:
|
|
420
|
-
};
|
|
421
|
-
description: {
|
|
422
|
-
description:
|
|
423
|
-
type: string;
|
|
424
|
-
defaultValue:
|
|
425
|
-
};
|
|
426
|
-
authHeader: {
|
|
427
|
-
description:
|
|
428
|
-
type: string;
|
|
429
|
-
defaultValue:
|
|
430
|
-
};
|
|
431
|
-
tokenType: {
|
|
432
|
-
description:
|
|
433
|
-
type: string;
|
|
434
|
-
defaultValue:
|
|
435
|
-
};
|
|
436
|
-
domains: {
|
|
437
|
-
description:
|
|
438
|
-
type:
|
|
439
|
-
defaultValue:
|
|
126
|
+
readonly name: {
|
|
127
|
+
readonly description: "descriptive name of the internet account";
|
|
128
|
+
readonly type: "string";
|
|
129
|
+
readonly defaultValue: "";
|
|
130
|
+
};
|
|
131
|
+
readonly description: {
|
|
132
|
+
readonly description: "a description of the internet account";
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly defaultValue: "";
|
|
135
|
+
};
|
|
136
|
+
readonly authHeader: {
|
|
137
|
+
readonly description: "request header for credentials";
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly defaultValue: "Authorization";
|
|
140
|
+
};
|
|
141
|
+
readonly tokenType: {
|
|
142
|
+
readonly description: "a custom name for a token to include in the header";
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly defaultValue: "";
|
|
145
|
+
};
|
|
146
|
+
readonly domains: {
|
|
147
|
+
readonly description: "array of valid domains the url can contain to use this account";
|
|
148
|
+
readonly type: "stringArray";
|
|
149
|
+
readonly defaultValue: readonly [];
|
|
440
150
|
};
|
|
441
151
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
442
|
-
HTTPBasicInternetAccountModelFactory:
|
|
443
|
-
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
444
|
-
type: import("@jbrowse/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("@jbrowse/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("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
152
|
+
HTTPBasicInternetAccountModelFactory: typeof HTTPBasicInternetAccountModelFactory;
|
|
567
153
|
DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
568
|
-
authEndpoint: {
|
|
569
|
-
description:
|
|
570
|
-
type: string;
|
|
571
|
-
defaultValue:
|
|
572
|
-
};
|
|
573
|
-
tokenEndpoint: {
|
|
574
|
-
description:
|
|
575
|
-
type: string;
|
|
576
|
-
defaultValue:
|
|
577
|
-
};
|
|
578
|
-
needsPKCE: {
|
|
579
|
-
description:
|
|
580
|
-
type:
|
|
581
|
-
defaultValue:
|
|
582
|
-
};
|
|
583
|
-
domains: {
|
|
584
|
-
description:
|
|
585
|
-
type:
|
|
586
|
-
defaultValue:
|
|
154
|
+
readonly authEndpoint: {
|
|
155
|
+
readonly description: "the authorization code endpoint of the internet account";
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly defaultValue: "https://www.dropbox.com/oauth2/authorize";
|
|
158
|
+
};
|
|
159
|
+
readonly tokenEndpoint: {
|
|
160
|
+
readonly description: "the token endpoint of the internet account";
|
|
161
|
+
readonly type: "string";
|
|
162
|
+
readonly defaultValue: "https://api.dropbox.com/oauth2/token";
|
|
163
|
+
};
|
|
164
|
+
readonly needsPKCE: {
|
|
165
|
+
readonly description: "boolean to indicate if the endpoint needs a PKCE code";
|
|
166
|
+
readonly type: "boolean";
|
|
167
|
+
readonly defaultValue: true;
|
|
168
|
+
};
|
|
169
|
+
readonly domains: {
|
|
170
|
+
readonly description: "array of valid domains the url can contain to use this account";
|
|
171
|
+
readonly type: "stringArray";
|
|
172
|
+
readonly defaultValue: readonly ["addtodropbox.com", "db.tt", "dropbox.com", "dropboxapi.com", "dropboxbusiness.com", "dropbox.tech", "getdropbox.com"];
|
|
587
173
|
};
|
|
588
174
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
589
|
-
tokenType: {
|
|
590
|
-
description:
|
|
591
|
-
type: string;
|
|
592
|
-
defaultValue:
|
|
593
|
-
};
|
|
594
|
-
authEndpoint: {
|
|
595
|
-
description:
|
|
596
|
-
type: string;
|
|
597
|
-
defaultValue:
|
|
598
|
-
};
|
|
599
|
-
tokenEndpoint: {
|
|
600
|
-
description:
|
|
601
|
-
type: string;
|
|
602
|
-
defaultValue:
|
|
603
|
-
};
|
|
604
|
-
needsPKCE: {
|
|
605
|
-
description:
|
|
606
|
-
type:
|
|
607
|
-
defaultValue:
|
|
608
|
-
};
|
|
609
|
-
clientId: {
|
|
610
|
-
description:
|
|
611
|
-
type: string;
|
|
612
|
-
defaultValue:
|
|
613
|
-
};
|
|
614
|
-
scopes: {
|
|
615
|
-
description:
|
|
616
|
-
type: string;
|
|
617
|
-
defaultValue:
|
|
618
|
-
};
|
|
619
|
-
state: {
|
|
620
|
-
description:
|
|
621
|
-
type: string;
|
|
622
|
-
defaultValue:
|
|
623
|
-
};
|
|
624
|
-
responseType: {
|
|
625
|
-
description:
|
|
626
|
-
type: string;
|
|
627
|
-
defaultValue:
|
|
175
|
+
readonly tokenType: {
|
|
176
|
+
readonly description: "a custom name for a token to include in the header";
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
readonly defaultValue: "Bearer";
|
|
179
|
+
};
|
|
180
|
+
readonly authEndpoint: {
|
|
181
|
+
readonly description: "the authorization code endpoint of the internet account";
|
|
182
|
+
readonly type: "string";
|
|
183
|
+
readonly defaultValue: "";
|
|
184
|
+
};
|
|
185
|
+
readonly tokenEndpoint: {
|
|
186
|
+
readonly description: "the token endpoint of the internet account";
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly defaultValue: "";
|
|
189
|
+
};
|
|
190
|
+
readonly needsPKCE: {
|
|
191
|
+
readonly description: "boolean to indicate if the endpoint needs a PKCE code";
|
|
192
|
+
readonly type: "boolean";
|
|
193
|
+
readonly defaultValue: false;
|
|
194
|
+
};
|
|
195
|
+
readonly clientId: {
|
|
196
|
+
readonly description: "id for the OAuth application";
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly defaultValue: "";
|
|
199
|
+
};
|
|
200
|
+
readonly scopes: {
|
|
201
|
+
readonly description: "optional scopes for the authorization call";
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
readonly defaultValue: "";
|
|
204
|
+
};
|
|
205
|
+
readonly state: {
|
|
206
|
+
readonly description: "optional state for the authorization call";
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly defaultValue: "";
|
|
209
|
+
};
|
|
210
|
+
readonly responseType: {
|
|
211
|
+
readonly description: "the type of response from the authorization endpoint. can be 'token' or 'code'";
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
readonly defaultValue: "code";
|
|
628
214
|
};
|
|
629
215
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
630
|
-
name: {
|
|
631
|
-
description:
|
|
632
|
-
type: string;
|
|
633
|
-
defaultValue:
|
|
634
|
-
};
|
|
635
|
-
description: {
|
|
636
|
-
description:
|
|
637
|
-
type: string;
|
|
638
|
-
defaultValue:
|
|
639
|
-
};
|
|
640
|
-
authHeader: {
|
|
641
|
-
description:
|
|
642
|
-
type: string;
|
|
643
|
-
defaultValue:
|
|
644
|
-
};
|
|
645
|
-
tokenType: {
|
|
646
|
-
description:
|
|
647
|
-
type: string;
|
|
648
|
-
defaultValue:
|
|
649
|
-
};
|
|
650
|
-
domains: {
|
|
651
|
-
description:
|
|
652
|
-
type:
|
|
653
|
-
defaultValue:
|
|
216
|
+
readonly name: {
|
|
217
|
+
readonly description: "descriptive name of the internet account";
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly defaultValue: "";
|
|
220
|
+
};
|
|
221
|
+
readonly description: {
|
|
222
|
+
readonly description: "a description of the internet account";
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly defaultValue: "";
|
|
225
|
+
};
|
|
226
|
+
readonly authHeader: {
|
|
227
|
+
readonly description: "request header for credentials";
|
|
228
|
+
readonly type: "string";
|
|
229
|
+
readonly defaultValue: "Authorization";
|
|
230
|
+
};
|
|
231
|
+
readonly tokenType: {
|
|
232
|
+
readonly description: "a custom name for a token to include in the header";
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
readonly defaultValue: "";
|
|
235
|
+
};
|
|
236
|
+
readonly domains: {
|
|
237
|
+
readonly description: "array of valid domains the url can contain to use this account";
|
|
238
|
+
readonly type: "stringArray";
|
|
239
|
+
readonly defaultValue: readonly [];
|
|
654
240
|
};
|
|
655
241
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
656
|
-
DropboxOAuthInternetAccountModelFactory:
|
|
657
|
-
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
658
|
-
type: import("@jbrowse/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("@jbrowse/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("@jbrowse/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("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
242
|
+
DropboxOAuthInternetAccountModelFactory: typeof DropboxOAuthInternetAccountModelFactory;
|
|
929
243
|
GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
930
|
-
authEndpoint: {
|
|
931
|
-
description:
|
|
932
|
-
type: string;
|
|
933
|
-
defaultValue:
|
|
934
|
-
};
|
|
935
|
-
scopes: {
|
|
936
|
-
description:
|
|
937
|
-
type: string;
|
|
938
|
-
defaultValue:
|
|
939
|
-
};
|
|
940
|
-
domains: {
|
|
941
|
-
description:
|
|
942
|
-
type:
|
|
943
|
-
defaultValue:
|
|
944
|
-
};
|
|
945
|
-
responseType: {
|
|
946
|
-
description:
|
|
947
|
-
type: string;
|
|
948
|
-
defaultValue:
|
|
244
|
+
readonly authEndpoint: {
|
|
245
|
+
readonly description: "the authorization code endpoint of the internet account";
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
readonly defaultValue: "https://accounts.google.com/o/oauth2/v2/auth";
|
|
248
|
+
};
|
|
249
|
+
readonly scopes: {
|
|
250
|
+
readonly description: "optional scopes for the authorization call";
|
|
251
|
+
readonly type: "string";
|
|
252
|
+
readonly defaultValue: "https://www.googleapis.com/auth/drive.readonly";
|
|
253
|
+
};
|
|
254
|
+
readonly domains: {
|
|
255
|
+
readonly description: "array of valid domains the url can contain to use this account";
|
|
256
|
+
readonly type: "stringArray";
|
|
257
|
+
readonly defaultValue: readonly ["drive.google.com"];
|
|
258
|
+
};
|
|
259
|
+
readonly responseType: {
|
|
260
|
+
readonly description: "the type of response from the authorization endpoint";
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
readonly defaultValue: "token";
|
|
949
263
|
};
|
|
950
264
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
951
|
-
tokenType: {
|
|
952
|
-
description:
|
|
953
|
-
type: string;
|
|
954
|
-
defaultValue:
|
|
955
|
-
};
|
|
956
|
-
authEndpoint: {
|
|
957
|
-
description:
|
|
958
|
-
type: string;
|
|
959
|
-
defaultValue:
|
|
960
|
-
};
|
|
961
|
-
tokenEndpoint: {
|
|
962
|
-
description:
|
|
963
|
-
type: string;
|
|
964
|
-
defaultValue:
|
|
965
|
-
};
|
|
966
|
-
needsPKCE: {
|
|
967
|
-
description:
|
|
968
|
-
type:
|
|
969
|
-
defaultValue:
|
|
970
|
-
};
|
|
971
|
-
clientId: {
|
|
972
|
-
description:
|
|
973
|
-
type: string;
|
|
974
|
-
defaultValue:
|
|
975
|
-
};
|
|
976
|
-
scopes: {
|
|
977
|
-
description:
|
|
978
|
-
type: string;
|
|
979
|
-
defaultValue:
|
|
980
|
-
};
|
|
981
|
-
state: {
|
|
982
|
-
description:
|
|
983
|
-
type: string;
|
|
984
|
-
defaultValue:
|
|
985
|
-
};
|
|
986
|
-
responseType: {
|
|
987
|
-
description:
|
|
988
|
-
type: string;
|
|
989
|
-
defaultValue:
|
|
265
|
+
readonly tokenType: {
|
|
266
|
+
readonly description: "a custom name for a token to include in the header";
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
readonly defaultValue: "Bearer";
|
|
269
|
+
};
|
|
270
|
+
readonly authEndpoint: {
|
|
271
|
+
readonly description: "the authorization code endpoint of the internet account";
|
|
272
|
+
readonly type: "string";
|
|
273
|
+
readonly defaultValue: "";
|
|
274
|
+
};
|
|
275
|
+
readonly tokenEndpoint: {
|
|
276
|
+
readonly description: "the token endpoint of the internet account";
|
|
277
|
+
readonly type: "string";
|
|
278
|
+
readonly defaultValue: "";
|
|
279
|
+
};
|
|
280
|
+
readonly needsPKCE: {
|
|
281
|
+
readonly description: "boolean to indicate if the endpoint needs a PKCE code";
|
|
282
|
+
readonly type: "boolean";
|
|
283
|
+
readonly defaultValue: false;
|
|
284
|
+
};
|
|
285
|
+
readonly clientId: {
|
|
286
|
+
readonly description: "id for the OAuth application";
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
readonly defaultValue: "";
|
|
289
|
+
};
|
|
290
|
+
readonly scopes: {
|
|
291
|
+
readonly description: "optional scopes for the authorization call";
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly defaultValue: "";
|
|
294
|
+
};
|
|
295
|
+
readonly state: {
|
|
296
|
+
readonly description: "optional state for the authorization call";
|
|
297
|
+
readonly type: "string";
|
|
298
|
+
readonly defaultValue: "";
|
|
299
|
+
};
|
|
300
|
+
readonly responseType: {
|
|
301
|
+
readonly description: "the type of response from the authorization endpoint. can be 'token' or 'code'";
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
readonly defaultValue: "code";
|
|
990
304
|
};
|
|
991
305
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
992
|
-
name: {
|
|
993
|
-
description:
|
|
994
|
-
type: string;
|
|
995
|
-
defaultValue:
|
|
996
|
-
};
|
|
997
|
-
description: {
|
|
998
|
-
description:
|
|
999
|
-
type: string;
|
|
1000
|
-
defaultValue:
|
|
1001
|
-
};
|
|
1002
|
-
authHeader: {
|
|
1003
|
-
description:
|
|
1004
|
-
type: string;
|
|
1005
|
-
defaultValue:
|
|
1006
|
-
};
|
|
1007
|
-
tokenType: {
|
|
1008
|
-
description:
|
|
1009
|
-
type: string;
|
|
1010
|
-
defaultValue:
|
|
1011
|
-
};
|
|
1012
|
-
domains: {
|
|
1013
|
-
description:
|
|
1014
|
-
type:
|
|
1015
|
-
defaultValue:
|
|
306
|
+
readonly name: {
|
|
307
|
+
readonly description: "descriptive name of the internet account";
|
|
308
|
+
readonly type: "string";
|
|
309
|
+
readonly defaultValue: "";
|
|
310
|
+
};
|
|
311
|
+
readonly description: {
|
|
312
|
+
readonly description: "a description of the internet account";
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly defaultValue: "";
|
|
315
|
+
};
|
|
316
|
+
readonly authHeader: {
|
|
317
|
+
readonly description: "request header for credentials";
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
readonly defaultValue: "Authorization";
|
|
320
|
+
};
|
|
321
|
+
readonly tokenType: {
|
|
322
|
+
readonly description: "a custom name for a token to include in the header";
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
readonly defaultValue: "";
|
|
325
|
+
};
|
|
326
|
+
readonly domains: {
|
|
327
|
+
readonly description: "array of valid domains the url can contain to use this account";
|
|
328
|
+
readonly type: "stringArray";
|
|
329
|
+
readonly defaultValue: readonly [];
|
|
1016
330
|
};
|
|
1017
331
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
1018
332
|
GoogleDriveOAuthInternetAccountModelFactory: typeof GoogleDriveOAuthInternetAccountModelFactory;
|