@jbrowse/plugin-authentication 3.6.5 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/esm/DropboxOAuthModel/configSchema.d.ts +5 -5
  2. package/esm/DropboxOAuthModel/configSchema.js +1 -1
  3. package/esm/DropboxOAuthModel/index.d.ts +2 -2
  4. package/esm/DropboxOAuthModel/index.js +2 -2
  5. package/esm/DropboxOAuthModel/model.d.ts +18 -18
  6. package/esm/DropboxOAuthModel/model.js +5 -5
  7. package/esm/DropboxOAuthModel/util.js +1 -1
  8. package/esm/ExternalTokenModel/configSchema.d.ts +4 -4
  9. package/esm/ExternalTokenModel/index.d.ts +2 -2
  10. package/esm/ExternalTokenModel/index.js +2 -2
  11. package/esm/ExternalTokenModel/model.d.ts +13 -13
  12. package/esm/ExternalTokenModel/model.js +2 -2
  13. package/esm/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +1 -0
  14. package/esm/GoogleDriveOAuthModel/configSchema.d.ts +5 -5
  15. package/esm/GoogleDriveOAuthModel/configSchema.js +1 -1
  16. package/esm/GoogleDriveOAuthModel/index.d.ts +2 -2
  17. package/esm/GoogleDriveOAuthModel/index.js +2 -2
  18. package/esm/GoogleDriveOAuthModel/model.d.ts +19 -19
  19. package/esm/GoogleDriveOAuthModel/model.js +7 -7
  20. package/esm/GoogleDriveOAuthModel/util.js +1 -1
  21. package/esm/HTTPBasicModel/configSchema.d.ts +4 -4
  22. package/esm/HTTPBasicModel/index.d.ts +2 -2
  23. package/esm/HTTPBasicModel/index.js +2 -2
  24. package/esm/HTTPBasicModel/model.d.ts +13 -13
  25. package/esm/HTTPBasicModel/model.js +3 -3
  26. package/esm/OAuthModel/configSchema.d.ts +4 -4
  27. package/esm/OAuthModel/index.d.ts +2 -2
  28. package/esm/OAuthModel/index.js +2 -2
  29. package/esm/OAuthModel/model.d.ts +12 -12
  30. package/esm/OAuthModel/model.js +3 -3
  31. package/esm/OAuthModel/util.js +1 -2
  32. package/esm/index.d.ts +68 -68
  33. package/esm/index.js +23 -26
  34. package/esm/util.js +1 -1
  35. package/package.json +23 -30
  36. package/dist/DropboxOAuthModel/DropboxIcon.d.ts +0 -2
  37. package/dist/DropboxOAuthModel/DropboxIcon.js +0 -8
  38. package/dist/DropboxOAuthModel/configSchema.d.ts +0 -93
  39. package/dist/DropboxOAuthModel/configSchema.js +0 -42
  40. package/dist/DropboxOAuthModel/index.d.ts +0 -2
  41. package/dist/DropboxOAuthModel/index.js +0 -10
  42. package/dist/DropboxOAuthModel/model.d.ts +0 -279
  43. package/dist/DropboxOAuthModel/model.js +0 -65
  44. package/dist/DropboxOAuthModel/util.d.ts +0 -1
  45. package/dist/DropboxOAuthModel/util.js +0 -21
  46. package/dist/ExternalTokenModel/ExternalTokenEntryForm.d.ts +0 -4
  47. package/dist/ExternalTokenModel/ExternalTokenEntryForm.js +0 -24
  48. package/dist/ExternalTokenModel/configSchema.d.ts +0 -37
  49. package/dist/ExternalTokenModel/configSchema.js +0 -16
  50. package/dist/ExternalTokenModel/index.d.ts +0 -2
  51. package/dist/ExternalTokenModel/index.js +0 -10
  52. package/dist/ExternalTokenModel/model.d.ts +0 -126
  53. package/dist/ExternalTokenModel/model.js +0 -57
  54. package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.d.ts +0 -15
  55. package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +0 -19
  56. package/dist/GoogleDriveOAuthModel/GoogleDriveIcon.d.ts +0 -2
  57. package/dist/GoogleDriveOAuthModel/GoogleDriveIcon.js +0 -8
  58. package/dist/GoogleDriveOAuthModel/configSchema.d.ts +0 -93
  59. package/dist/GoogleDriveOAuthModel/configSchema.js +0 -34
  60. package/dist/GoogleDriveOAuthModel/index.d.ts +0 -2
  61. package/dist/GoogleDriveOAuthModel/index.js +0 -10
  62. package/dist/GoogleDriveOAuthModel/model.d.ts +0 -283
  63. package/dist/GoogleDriveOAuthModel/model.js +0 -72
  64. package/dist/GoogleDriveOAuthModel/util.d.ts +0 -1
  65. package/dist/GoogleDriveOAuthModel/util.js +0 -14
  66. package/dist/HTTPBasicModel/HTTPBasicLoginForm.d.ts +0 -4
  67. package/dist/HTTPBasicModel/HTTPBasicLoginForm.js +0 -32
  68. package/dist/HTTPBasicModel/configSchema.d.ts +0 -42
  69. package/dist/HTTPBasicModel/configSchema.js +0 -21
  70. package/dist/HTTPBasicModel/index.d.ts +0 -2
  71. package/dist/HTTPBasicModel/index.js +0 -10
  72. package/dist/HTTPBasicModel/model.d.ts +0 -131
  73. package/dist/HTTPBasicModel/model.js +0 -54
  74. package/dist/OAuthModel/configSchema.d.ts +0 -72
  75. package/dist/OAuthModel/configSchema.js +0 -51
  76. package/dist/OAuthModel/index.d.ts +0 -2
  77. package/dist/OAuthModel/index.js +0 -10
  78. package/dist/OAuthModel/model.d.ts +0 -182
  79. package/dist/OAuthModel/model.js +0 -289
  80. package/dist/OAuthModel/util.d.ts +0 -7
  81. package/dist/OAuthModel/util.js +0 -66
  82. package/dist/index.d.ts +0 -1026
  83. package/dist/index.js +0 -84
  84. package/dist/util.d.ts +0 -6
  85. package/dist/util.js +0 -21
@@ -1,8 +1,8 @@
1
1
  import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
2
2
  import { InternetAccount } from '@jbrowse/core/pluggableElementTypes/models';
3
- import { getRoot, types } from 'mobx-state-tree';
4
- import { HTTPBasicLoginForm } from './HTTPBasicLoginForm';
5
- import { getResponseError } from '../util';
3
+ import { getRoot, types } from '@jbrowse/mobx-state-tree';
4
+ import { HTTPBasicLoginForm } from "./HTTPBasicLoginForm.js";
5
+ import { getResponseError } from "../util.js";
6
6
  const stateModelFactory = (configSchema) => {
7
7
  return InternetAccount.named('HTTPBasicInternetAccount')
8
8
  .props({
@@ -1,5 +1,5 @@
1
- import type { Instance } from 'mobx-state-tree';
2
- declare const OAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
1
+ import type { Instance } from '@jbrowse/mobx-state-tree';
2
+ declare const OAuthConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
3
3
  tokenType: {
4
4
  description: string;
5
5
  type: string;
@@ -40,7 +40,7 @@ declare const OAuthConfigSchema: import("@jbrowse/core/configuration/configurati
40
40
  type: string;
41
41
  defaultValue: string;
42
42
  };
43
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
43
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
44
44
  name: {
45
45
  description: string;
46
46
  type: string;
@@ -66,7 +66,7 @@ declare const OAuthConfigSchema: import("@jbrowse/core/configuration/configurati
66
66
  type: string;
67
67
  defaultValue: never[];
68
68
  };
69
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
69
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
70
70
  export type OAuthInternetAccountConfigModel = typeof OAuthConfigSchema;
71
71
  export type OAuthInternetAccountConfig = Instance<OAuthInternetAccountConfigModel>;
72
72
  export default OAuthConfigSchema;
@@ -1,2 +1,2 @@
1
- export { default as configSchema } from './configSchema';
2
- export { default as modelFactory } from './model';
1
+ export { default as configSchema } from './configSchema.ts';
2
+ export { default as modelFactory } from './model.tsx';
@@ -1,2 +1,2 @@
1
- export { default as configSchema } from './configSchema';
2
- export { default as modelFactory } from './model';
1
+ export { default as configSchema } from "./configSchema.js";
2
+ export { default as modelFactory } from "./model.js";
@@ -1,10 +1,10 @@
1
- import type { OAuthInternetAccountConfigModel } from './configSchema';
1
+ import type { OAuthInternetAccountConfigModel } from './configSchema.ts';
2
2
  import type { UriLocation } from '@jbrowse/core/util';
3
- import type { Instance } from 'mobx-state-tree';
4
- declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
5
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
6
- type: import("mobx-state-tree").ISimpleType<string>;
7
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
+ import type { Instance } from '@jbrowse/mobx-state-tree';
4
+ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel) => import("@jbrowse/mobx-state-tree").IModelType<{
5
+ id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
6
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
7
+ configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
8
8
  name: {
9
9
  description: string;
10
10
  type: string;
@@ -30,10 +30,10 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
30
30
  type: string;
31
31
  defaultValue: never[];
32
32
  };
33
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
33
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
34
34
  } & {
35
- type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
36
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
35
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
36
+ configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
37
37
  tokenType: {
38
38
  description: string;
39
39
  type: string;
@@ -74,7 +74,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
74
74
  type: string;
75
75
  defaultValue: string;
76
76
  };
77
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
77
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
78
78
  name: {
79
79
  description: string;
80
80
  type: string;
@@ -100,7 +100,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
100
100
  type: string;
101
101
  defaultValue: never[];
102
102
  };
103
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
103
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
104
104
  }, {
105
105
  readonly name: string;
106
106
  readonly description: string;
@@ -176,7 +176,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
176
176
  validateToken(token: string, location: UriLocation): Promise<string>;
177
177
  } & {
178
178
  getFetcher(loc?: UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
179
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
179
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
180
180
  export default stateModelFactory;
181
181
  export type OAuthStateModel = ReturnType<typeof stateModelFactory>;
182
182
  export type OAuthModel = Instance<OAuthStateModel>;
@@ -1,9 +1,9 @@
1
1
  import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
2
2
  import { InternetAccount } from '@jbrowse/core/pluggableElementTypes/models';
3
3
  import { isElectron } from '@jbrowse/core/util';
4
- import { types } from 'mobx-state-tree';
5
- import { fixup, generateChallenge, processError, processTokenResponse, } from './util';
6
- import { getResponseError } from '../util';
4
+ import { types } from '@jbrowse/mobx-state-tree';
5
+ import { fixup, generateChallenge, processError, processTokenResponse, } from "./util.js";
6
+ import { getResponseError } from "../util.js";
7
7
  function encode(uint8array) {
8
8
  const output = [];
9
9
  for (let i = 0, length = uint8array.length; i < length; i++) {
@@ -7,13 +7,12 @@ export async function generateChallenge(val) {
7
7
  return fixup(Base64.stringify(sha256(val)));
8
8
  }
9
9
  export function processError(text, invalidErrorCb) {
10
- var _a;
11
10
  try {
12
11
  const obj = JSON.parse(text);
13
12
  if (obj.error === 'invalid_grant') {
14
13
  invalidErrorCb();
15
14
  }
16
- return (_a = obj === null || obj === void 0 ? void 0 : obj.error_description) !== null && _a !== void 0 ? _a : text;
15
+ return obj?.error_description ?? text;
17
16
  }
18
17
  catch (e) {
19
18
  }
package/esm/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import Plugin from '@jbrowse/core/Plugin';
2
- import { modelFactory as GoogleDriveOAuthInternetAccountModelFactory } from './GoogleDriveOAuthModel';
2
+ import { modelFactory as GoogleDriveOAuthInternetAccountModelFactory } from './GoogleDriveOAuthModel/index.ts';
3
3
  import type PluginManager from '@jbrowse/core/PluginManager';
4
4
  export default class AuthenticationPlugin extends Plugin {
5
5
  name: string;
6
6
  exports: {
7
- OAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
7
+ OAuthConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
8
8
  tokenType: {
9
9
  description: string;
10
10
  type: string;
@@ -45,7 +45,7 @@ export default class AuthenticationPlugin extends Plugin {
45
45
  type: string;
46
46
  defaultValue: string;
47
47
  };
48
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
48
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
49
49
  name: {
50
50
  description: string;
51
51
  type: string;
@@ -71,11 +71,11 @@ export default class AuthenticationPlugin extends Plugin {
71
71
  type: string;
72
72
  defaultValue: never[];
73
73
  };
74
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
75
- OAuthInternetAccountModelFactory: (configSchema: import("./OAuthModel/configSchema").OAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
76
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
77
- type: import("mobx-state-tree").ISimpleType<string>;
78
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
74
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
75
+ OAuthInternetAccountModelFactory: (configSchema: import("./OAuthModel/configSchema.ts").OAuthInternetAccountConfigModel) => import("@jbrowse/mobx-state-tree").IModelType<{
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("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
79
79
  name: {
80
80
  description: string;
81
81
  type: string;
@@ -101,10 +101,10 @@ export default class AuthenticationPlugin extends Plugin {
101
101
  type: string;
102
102
  defaultValue: never[];
103
103
  };
104
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
104
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
105
105
  } & {
106
- type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
107
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
106
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
107
+ configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
108
108
  tokenType: {
109
109
  description: string;
110
110
  type: string;
@@ -145,7 +145,7 @@ export default class AuthenticationPlugin extends Plugin {
145
145
  type: string;
146
146
  defaultValue: string;
147
147
  };
148
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
148
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
149
149
  name: {
150
150
  description: string;
151
151
  type: string;
@@ -171,7 +171,7 @@ export default class AuthenticationPlugin extends Plugin {
171
171
  type: string;
172
172
  defaultValue: never[];
173
173
  };
174
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
174
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
175
175
  }, {
176
176
  readonly name: string;
177
177
  readonly description: string;
@@ -247,14 +247,14 @@ export default class AuthenticationPlugin extends Plugin {
247
247
  validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
248
248
  } & {
249
249
  getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
250
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
251
- ExternalTokenConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
250
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
251
+ ExternalTokenConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
252
252
  validateWithHEAD: {
253
253
  description: string;
254
254
  type: string;
255
255
  defaultValue: boolean;
256
256
  };
257
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
257
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
258
258
  name: {
259
259
  description: string;
260
260
  type: string;
@@ -280,11 +280,11 @@ export default class AuthenticationPlugin extends Plugin {
280
280
  type: string;
281
281
  defaultValue: never[];
282
282
  };
283
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
284
- ExternalTokenInternetAccountModelFactory: (configSchema: import("./ExternalTokenModel/configSchema").ExternalTokenInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
285
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
286
- type: import("mobx-state-tree").ISimpleType<string>;
287
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
283
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
284
+ ExternalTokenInternetAccountModelFactory: (configSchema: import("./ExternalTokenModel/configSchema.ts").ExternalTokenInternetAccountConfigModel) => import("@jbrowse/mobx-state-tree").IModelType<{
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("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
288
288
  name: {
289
289
  description: string;
290
290
  type: string;
@@ -310,16 +310,16 @@ export default class AuthenticationPlugin extends Plugin {
310
310
  type: string;
311
311
  defaultValue: never[];
312
312
  };
313
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
313
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
314
314
  } & {
315
- type: import("mobx-state-tree").ISimpleType<"ExternalTokenInternetAccount">;
316
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
315
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<"ExternalTokenInternetAccount">;
316
+ configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
317
317
  validateWithHEAD: {
318
318
  description: string;
319
319
  type: string;
320
320
  defaultValue: boolean;
321
321
  };
322
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
322
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
323
323
  name: {
324
324
  description: string;
325
325
  type: string;
@@ -345,7 +345,7 @@ export default class AuthenticationPlugin extends Plugin {
345
345
  type: string;
346
346
  defaultValue: never[];
347
347
  };
348
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
348
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
349
349
  }, {
350
350
  readonly name: string;
351
351
  readonly description: string;
@@ -400,8 +400,8 @@ export default class AuthenticationPlugin extends Plugin {
400
400
  } & {
401
401
  getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
402
402
  validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
403
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
404
- HTTPBasicConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
403
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
404
+ HTTPBasicConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
405
405
  tokenType: {
406
406
  description: string;
407
407
  type: string;
@@ -412,7 +412,7 @@ export default class AuthenticationPlugin extends Plugin {
412
412
  type: string;
413
413
  defaultValue: boolean;
414
414
  };
415
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
415
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
416
416
  name: {
417
417
  description: string;
418
418
  type: string;
@@ -438,11 +438,11 @@ export default class AuthenticationPlugin extends Plugin {
438
438
  type: string;
439
439
  defaultValue: never[];
440
440
  };
441
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
442
- HTTPBasicInternetAccountModelFactory: (configSchema: import("./HTTPBasicModel/configSchema").HTTPBasicInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
443
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
444
- type: import("mobx-state-tree").ISimpleType<string>;
445
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
441
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
442
+ HTTPBasicInternetAccountModelFactory: (configSchema: import("./HTTPBasicModel/configSchema.ts").HTTPBasicInternetAccountConfigModel) => import("@jbrowse/mobx-state-tree").IModelType<{
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("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
446
446
  name: {
447
447
  description: string;
448
448
  type: string;
@@ -468,10 +468,10 @@ export default class AuthenticationPlugin extends Plugin {
468
468
  type: string;
469
469
  defaultValue: never[];
470
470
  };
471
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
471
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
472
472
  } & {
473
- type: import("mobx-state-tree").ISimpleType<"HTTPBasicInternetAccount">;
474
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
473
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<"HTTPBasicInternetAccount">;
474
+ configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
475
475
  tokenType: {
476
476
  description: string;
477
477
  type: string;
@@ -482,7 +482,7 @@ export default class AuthenticationPlugin extends Plugin {
482
482
  type: string;
483
483
  defaultValue: boolean;
484
484
  };
485
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
485
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
486
486
  name: {
487
487
  description: string;
488
488
  type: string;
@@ -508,7 +508,7 @@ export default class AuthenticationPlugin extends Plugin {
508
508
  type: string;
509
509
  defaultValue: never[];
510
510
  };
511
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
511
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
512
512
  }, {
513
513
  readonly name: string;
514
514
  readonly description: string;
@@ -563,8 +563,8 @@ export default class AuthenticationPlugin extends Plugin {
563
563
  } & {
564
564
  getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
565
565
  validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
566
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
567
- DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
566
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
567
+ DropboxOAuthConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
568
568
  authEndpoint: {
569
569
  description: string;
570
570
  type: string;
@@ -585,7 +585,7 @@ export default class AuthenticationPlugin extends Plugin {
585
585
  type: string;
586
586
  defaultValue: string[];
587
587
  };
588
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
588
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
589
589
  tokenType: {
590
590
  description: string;
591
591
  type: string;
@@ -626,7 +626,7 @@ export default class AuthenticationPlugin extends Plugin {
626
626
  type: string;
627
627
  defaultValue: string;
628
628
  };
629
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
629
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
630
630
  name: {
631
631
  description: string;
632
632
  type: string;
@@ -652,11 +652,11 @@ export default class AuthenticationPlugin extends Plugin {
652
652
  type: string;
653
653
  defaultValue: never[];
654
654
  };
655
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
656
- DropboxOAuthInternetAccountModelFactory: (configSchema: import("./DropboxOAuthModel/configSchema").DropboxOAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
657
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
658
- type: import("mobx-state-tree").ISimpleType<string>;
659
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
655
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
656
+ DropboxOAuthInternetAccountModelFactory: (configSchema: import("./DropboxOAuthModel/configSchema.ts").DropboxOAuthInternetAccountConfigModel) => import("@jbrowse/mobx-state-tree").IModelType<{
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("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
660
660
  name: {
661
661
  description: string;
662
662
  type: string;
@@ -682,10 +682,10 @@ export default class AuthenticationPlugin extends Plugin {
682
682
  type: string;
683
683
  defaultValue: never[];
684
684
  };
685
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
685
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
686
686
  } & {
687
- type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
688
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
687
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
688
+ configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
689
689
  tokenType: {
690
690
  description: string;
691
691
  type: string;
@@ -726,7 +726,7 @@ export default class AuthenticationPlugin extends Plugin {
726
726
  type: string;
727
727
  defaultValue: string;
728
728
  };
729
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
729
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
730
730
  name: {
731
731
  description: string;
732
732
  type: string;
@@ -752,10 +752,10 @@ export default class AuthenticationPlugin extends Plugin {
752
752
  type: string;
753
753
  defaultValue: never[];
754
754
  };
755
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
755
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
756
756
  } & {
757
- type: import("mobx-state-tree").ISimpleType<"DropboxOAuthInternetAccount">;
758
- configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
757
+ type: import("@jbrowse/mobx-state-tree").ISimpleType<"DropboxOAuthInternetAccount">;
758
+ configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
759
759
  authEndpoint: {
760
760
  description: string;
761
761
  type: string;
@@ -776,7 +776,7 @@ export default class AuthenticationPlugin extends Plugin {
776
776
  type: string;
777
777
  defaultValue: string[];
778
778
  };
779
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
779
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
780
780
  tokenType: {
781
781
  description: string;
782
782
  type: string;
@@ -817,7 +817,7 @@ export default class AuthenticationPlugin extends Plugin {
817
817
  type: string;
818
818
  defaultValue: string;
819
819
  };
820
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
820
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
821
821
  name: {
822
822
  description: string;
823
823
  type: string;
@@ -843,7 +843,7 @@ export default class AuthenticationPlugin extends Plugin {
843
843
  type: string;
844
844
  defaultValue: never[];
845
845
  };
846
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
846
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
847
847
  }, {
848
848
  readonly name: string;
849
849
  readonly description: string;
@@ -925,8 +925,8 @@ export default class AuthenticationPlugin extends Plugin {
925
925
  } & {
926
926
  getFetcher(location?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
927
927
  validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
928
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
929
- GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
928
+ }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
929
+ GoogleDriveOAuthConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
930
930
  authEndpoint: {
931
931
  description: string;
932
932
  type: string;
@@ -947,7 +947,7 @@ export default class AuthenticationPlugin extends Plugin {
947
947
  type: string;
948
948
  defaultValue: string;
949
949
  };
950
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
950
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
951
951
  tokenType: {
952
952
  description: string;
953
953
  type: string;
@@ -988,7 +988,7 @@ export default class AuthenticationPlugin extends Plugin {
988
988
  type: string;
989
989
  defaultValue: string;
990
990
  };
991
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
991
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
992
992
  name: {
993
993
  description: string;
994
994
  type: string;
@@ -1014,13 +1014,13 @@ export default class AuthenticationPlugin extends Plugin {
1014
1014
  type: string;
1015
1015
  defaultValue: never[];
1016
1016
  };
1017
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
1017
+ }, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
1018
1018
  GoogleDriveOAuthInternetAccountModelFactory: typeof GoogleDriveOAuthInternetAccountModelFactory;
1019
1019
  };
1020
1020
  install(pluginManager: PluginManager): void;
1021
1021
  }
1022
- export { configSchema as OAuthConfigSchema, modelFactory as OAuthInternetAccountModelFactory, } from './OAuthModel';
1023
- export { configSchema as ExternalTokenConfigSchema, modelFactory as ExternalTokenInternetAccountModelFactory, } from './ExternalTokenModel';
1024
- export { configSchema as HTTPBasicConfigSchema, modelFactory as HTTPBasicInternetAccountModelFactory, } from './HTTPBasicModel';
1025
- export { configSchema as DropboxOAuthConfigSchema, modelFactory as DropboxOAuthInternetAccountModelFactory, } from './DropboxOAuthModel';
1026
- export { configSchema as GoogleDriveOAuthConfigSchema, modelFactory as GoogleDriveOAuthInternetAccountModelFactory, } from './GoogleDriveOAuthModel';
1022
+ export { configSchema as OAuthConfigSchema, modelFactory as OAuthInternetAccountModelFactory, } from './OAuthModel/index.ts';
1023
+ export { configSchema as ExternalTokenConfigSchema, modelFactory as ExternalTokenInternetAccountModelFactory, } from './ExternalTokenModel/index.ts';
1024
+ export { configSchema as HTTPBasicConfigSchema, modelFactory as HTTPBasicInternetAccountModelFactory, } from './HTTPBasicModel/index.ts';
1025
+ export { configSchema as DropboxOAuthConfigSchema, modelFactory as DropboxOAuthInternetAccountModelFactory, } from './DropboxOAuthModel/index.ts';
1026
+ export { configSchema as GoogleDriveOAuthConfigSchema, modelFactory as GoogleDriveOAuthInternetAccountModelFactory, } from './GoogleDriveOAuthModel/index.ts';
package/esm/index.js CHANGED
@@ -1,27 +1,24 @@
1
1
  import Plugin from '@jbrowse/core/Plugin';
2
2
  import InternetAccountType from '@jbrowse/core/pluggableElementTypes/InternetAccountType';
3
- import { configSchema as DropboxOAuthConfigSchema, modelFactory as DropboxOAuthInternetAccountModelFactory, } from './DropboxOAuthModel';
4
- import { configSchema as ExternalTokenConfigSchema, modelFactory as ExternalTokenInternetAccountModelFactory, } from './ExternalTokenModel';
5
- import { configSchema as GoogleDriveOAuthConfigSchema, modelFactory as GoogleDriveOAuthInternetAccountModelFactory, } from './GoogleDriveOAuthModel';
6
- import { configSchema as HTTPBasicConfigSchema, modelFactory as HTTPBasicInternetAccountModelFactory, } from './HTTPBasicModel';
7
- import { configSchema as OAuthConfigSchema, modelFactory as OAuthInternetAccountModelFactory, } from './OAuthModel';
3
+ import { configSchema as DropboxOAuthConfigSchema, modelFactory as DropboxOAuthInternetAccountModelFactory, } from "./DropboxOAuthModel/index.js";
4
+ import { configSchema as ExternalTokenConfigSchema, modelFactory as ExternalTokenInternetAccountModelFactory, } from "./ExternalTokenModel/index.js";
5
+ import { configSchema as GoogleDriveOAuthConfigSchema, modelFactory as GoogleDriveOAuthInternetAccountModelFactory, } from "./GoogleDriveOAuthModel/index.js";
6
+ import { configSchema as HTTPBasicConfigSchema, modelFactory as HTTPBasicInternetAccountModelFactory, } from "./HTTPBasicModel/index.js";
7
+ import { configSchema as OAuthConfigSchema, modelFactory as OAuthInternetAccountModelFactory, } from "./OAuthModel/index.js";
8
8
  export default class AuthenticationPlugin extends Plugin {
9
- constructor() {
10
- super(...arguments);
11
- this.name = 'AuthenticationPlugin';
12
- this.exports = {
13
- OAuthConfigSchema,
14
- OAuthInternetAccountModelFactory,
15
- ExternalTokenConfigSchema,
16
- ExternalTokenInternetAccountModelFactory,
17
- HTTPBasicConfigSchema,
18
- HTTPBasicInternetAccountModelFactory,
19
- DropboxOAuthConfigSchema,
20
- DropboxOAuthInternetAccountModelFactory,
21
- GoogleDriveOAuthConfigSchema,
22
- GoogleDriveOAuthInternetAccountModelFactory,
23
- };
24
- }
9
+ name = 'AuthenticationPlugin';
10
+ exports = {
11
+ OAuthConfigSchema,
12
+ OAuthInternetAccountModelFactory,
13
+ ExternalTokenConfigSchema,
14
+ ExternalTokenInternetAccountModelFactory,
15
+ HTTPBasicConfigSchema,
16
+ HTTPBasicInternetAccountModelFactory,
17
+ DropboxOAuthConfigSchema,
18
+ DropboxOAuthInternetAccountModelFactory,
19
+ GoogleDriveOAuthConfigSchema,
20
+ GoogleDriveOAuthInternetAccountModelFactory,
21
+ };
25
22
  install(pluginManager) {
26
23
  pluginManager.addInternetAccountType(() => {
27
24
  return new InternetAccountType({
@@ -60,8 +57,8 @@ export default class AuthenticationPlugin extends Plugin {
60
57
  });
61
58
  }
62
59
  }
63
- export { configSchema as OAuthConfigSchema, modelFactory as OAuthInternetAccountModelFactory, } from './OAuthModel';
64
- export { configSchema as ExternalTokenConfigSchema, modelFactory as ExternalTokenInternetAccountModelFactory, } from './ExternalTokenModel';
65
- export { configSchema as HTTPBasicConfigSchema, modelFactory as HTTPBasicInternetAccountModelFactory, } from './HTTPBasicModel';
66
- export { configSchema as DropboxOAuthConfigSchema, modelFactory as DropboxOAuthInternetAccountModelFactory, } from './DropboxOAuthModel';
67
- export { configSchema as GoogleDriveOAuthConfigSchema, modelFactory as GoogleDriveOAuthInternetAccountModelFactory, } from './GoogleDriveOAuthModel';
60
+ export { configSchema as OAuthConfigSchema, modelFactory as OAuthInternetAccountModelFactory, } from "./OAuthModel/index.js";
61
+ export { configSchema as ExternalTokenConfigSchema, modelFactory as ExternalTokenInternetAccountModelFactory, } from "./ExternalTokenModel/index.js";
62
+ export { configSchema as HTTPBasicConfigSchema, modelFactory as HTTPBasicInternetAccountModelFactory, } from "./HTTPBasicModel/index.js";
63
+ export { configSchema as DropboxOAuthConfigSchema, modelFactory as DropboxOAuthInternetAccountModelFactory, } from "./DropboxOAuthModel/index.js";
64
+ export { configSchema as GoogleDriveOAuthConfigSchema, modelFactory as GoogleDriveOAuthInternetAccountModelFactory, } from "./GoogleDriveOAuthModel/index.js";
package/esm/util.js CHANGED
@@ -2,7 +2,7 @@ export async function getResponseError({ response, reason, statusText, }) {
2
2
  return [
3
3
  `HTTP ${response.status}`,
4
4
  reason,
5
- statusText !== null && statusText !== void 0 ? statusText : (await getError(response)),
5
+ statusText ?? (await getError(response)),
6
6
  ]
7
7
  .filter(f => !!f)
8
8
  .join(' - ');