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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,31 +12,41 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
12
12
  type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
13
13
  configuration: import("@jbrowse/core/configuration/configurationSchema").IConfigurationReference<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
14
14
  readonly name: {
15
- readonly description: "descriptive name of the internet account";
16
- readonly type: "string";
17
- readonly defaultValue: "";
15
+ type: "string";
16
+ } & {
17
+ defaultValue: string;
18
18
  };
19
19
  readonly description: {
20
- readonly description: "a description of the internet account";
21
- readonly type: "string";
22
- readonly defaultValue: "";
20
+ type: "string";
21
+ } & {
22
+ defaultValue: string;
23
23
  };
24
24
  readonly authHeader: {
25
- readonly description: "request header for credentials";
26
- readonly type: "string";
27
- readonly defaultValue: "Authorization";
25
+ type: "string";
26
+ } & {
27
+ defaultValue: string;
28
28
  };
29
29
  readonly tokenType: {
30
- readonly description: "a custom name for a token to include in the header";
31
- readonly type: "string";
32
- readonly defaultValue: "";
30
+ type: "string";
31
+ } & {
32
+ defaultValue: string;
33
33
  };
34
34
  readonly domains: {
35
- readonly description: "array of valid domains the url can contain to use this account";
36
- readonly type: "stringArray";
37
- readonly defaultValue: readonly [];
35
+ type: "stringArray";
36
+ } & {
37
+ defaultValue: unknown;
38
38
  };
39
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>>;
39
+ type: {
40
+ type: "string";
41
+ } & {
42
+ defaultValue: string;
43
+ };
44
+ internetAccountId: {
45
+ type: "string";
46
+ } & {
47
+ defaultValue: string;
48
+ };
49
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>>;
40
50
  }, "configuration" | "type"> & {
41
51
  type: import("@jbrowse/mobx-state-tree").ILiteralType<"HTTPBasicInternetAccount">;
42
52
  configuration: import("@jbrowse/core/configuration/configurationSchema").IConfigurationReference<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>;
@@ -3,97 +3,113 @@ import type { Instance } from '@jbrowse/mobx-state-tree';
3
3
  * #config OAuthInternetAccount
4
4
  */
5
5
  declare const OAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
6
- /**
7
- * #slot
8
- */
9
- readonly tokenType: {
10
- readonly description: "a custom name for a token to include in the header";
11
- readonly type: "string";
12
- readonly defaultValue: "Bearer";
13
- };
14
- /**
15
- * #slot
16
- */
17
- readonly authEndpoint: {
18
- readonly description: "the authorization code endpoint of the internet account";
19
- readonly type: "string";
20
- readonly defaultValue: "";
21
- };
22
- /**
23
- * #slot
24
- */
25
- readonly tokenEndpoint: {
26
- readonly description: "the token endpoint of the internet account";
27
- readonly type: "string";
28
- readonly defaultValue: "";
29
- };
30
- /**
31
- * #slot
32
- */
33
- readonly needsPKCE: {
34
- readonly description: "boolean to indicate if the endpoint needs a PKCE code";
35
- readonly type: "boolean";
36
- readonly defaultValue: false;
37
- };
38
- /**
39
- * #slot
40
- */
41
- readonly clientId: {
42
- readonly description: "id for the OAuth application";
43
- readonly type: "string";
44
- readonly defaultValue: "";
45
- };
46
- /**
47
- * #slot
48
- */
49
- readonly scopes: {
50
- readonly description: "optional scopes for the authorization call";
51
- readonly type: "string";
52
- readonly defaultValue: "";
53
- };
54
- /**
55
- * #slot
56
- */
57
- readonly state: {
58
- readonly description: "optional state for the authorization call";
59
- readonly type: "string";
60
- readonly defaultValue: "";
61
- };
62
- /**
63
- * #slot
64
- */
65
- readonly responseType: {
66
- readonly description: "the type of response from the authorization endpoint. can be 'token' or 'code'";
67
- readonly type: "string";
68
- readonly defaultValue: "code";
6
+ authEndpoint: {
7
+ type: "string";
8
+ } & {
9
+ defaultValue: string;
10
+ };
11
+ authHeader: {
12
+ type: "string";
13
+ } & {
14
+ defaultValue: string;
15
+ };
16
+ clientId: {
17
+ type: "string";
18
+ } & {
19
+ defaultValue: string;
20
+ };
21
+ description: {
22
+ type: "string";
23
+ } & {
24
+ defaultValue: string;
25
+ };
26
+ domains: {
27
+ type: "stringArray";
28
+ } & {
29
+ defaultValue: unknown;
30
+ };
31
+ internetAccountId: {
32
+ type: "string";
33
+ } & {
34
+ defaultValue: string;
35
+ };
36
+ name: {
37
+ type: "string";
38
+ } & {
39
+ defaultValue: string;
40
+ };
41
+ needsPKCE: {
42
+ type: "boolean";
43
+ } & {
44
+ defaultValue: boolean;
45
+ };
46
+ responseType: {
47
+ type: "string";
48
+ } & {
49
+ defaultValue: string;
50
+ };
51
+ scopes: {
52
+ type: "string";
53
+ } & {
54
+ defaultValue: string;
55
+ };
56
+ state: {
57
+ type: "string";
58
+ } & {
59
+ defaultValue: string;
60
+ };
61
+ tokenEndpoint: {
62
+ type: "string";
63
+ } & {
64
+ defaultValue: string;
65
+ };
66
+ tokenType: {
67
+ type: "string";
68
+ } & {
69
+ defaultValue: string;
70
+ };
71
+ type: {
72
+ type: "string";
73
+ } & {
74
+ defaultValue: string;
69
75
  };
70
76
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
71
77
  readonly name: {
72
- readonly description: "descriptive name of the internet account";
73
- readonly type: "string";
74
- readonly defaultValue: "";
78
+ type: "string";
79
+ } & {
80
+ defaultValue: string;
75
81
  };
76
82
  readonly description: {
77
- readonly description: "a description of the internet account";
78
- readonly type: "string";
79
- readonly defaultValue: "";
83
+ type: "string";
84
+ } & {
85
+ defaultValue: string;
80
86
  };
81
87
  readonly authHeader: {
82
- readonly description: "request header for credentials";
83
- readonly type: "string";
84
- readonly defaultValue: "Authorization";
88
+ type: "string";
89
+ } & {
90
+ defaultValue: string;
85
91
  };
86
92
  readonly tokenType: {
87
- readonly description: "a custom name for a token to include in the header";
88
- readonly type: "string";
89
- readonly defaultValue: "";
93
+ type: "string";
94
+ } & {
95
+ defaultValue: string;
90
96
  };
91
97
  readonly domains: {
92
- readonly description: "array of valid domains the url can contain to use this account";
93
- readonly type: "stringArray";
94
- readonly defaultValue: readonly [];
98
+ type: "stringArray";
99
+ } & {
100
+ defaultValue: unknown;
101
+ };
102
+ type: {
103
+ type: "string";
104
+ } & {
105
+ defaultValue: string;
106
+ };
107
+ internetAccountId: {
108
+ type: "string";
109
+ } & {
110
+ defaultValue: string;
95
111
  };
96
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
112
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>, undefined, true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>;
97
113
  export type OAuthInternetAccountConfigModel = typeof OAuthConfigSchema;
98
114
  export type OAuthInternetAccountConfig = Instance<OAuthInternetAccountConfigModel>;
99
115
  export default OAuthConfigSchema;
@@ -9,31 +9,41 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
9
9
  type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
10
10
  configuration: import("@jbrowse/core/configuration/configurationSchema").IConfigurationReference<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
11
11
  readonly name: {
12
- readonly description: "descriptive name of the internet account";
13
- readonly type: "string";
14
- readonly defaultValue: "";
12
+ type: "string";
13
+ } & {
14
+ defaultValue: string;
15
15
  };
16
16
  readonly description: {
17
- readonly description: "a description of the internet account";
18
- readonly type: "string";
19
- readonly defaultValue: "";
17
+ type: "string";
18
+ } & {
19
+ defaultValue: string;
20
20
  };
21
21
  readonly authHeader: {
22
- readonly description: "request header for credentials";
23
- readonly type: "string";
24
- readonly defaultValue: "Authorization";
22
+ type: "string";
23
+ } & {
24
+ defaultValue: string;
25
25
  };
26
26
  readonly tokenType: {
27
- readonly description: "a custom name for a token to include in the header";
28
- readonly type: "string";
29
- readonly defaultValue: "";
27
+ type: "string";
28
+ } & {
29
+ defaultValue: string;
30
30
  };
31
31
  readonly domains: {
32
- readonly description: "array of valid domains the url can contain to use this account";
33
- readonly type: "stringArray";
34
- readonly defaultValue: readonly [];
32
+ type: "stringArray";
33
+ } & {
34
+ defaultValue: unknown;
35
35
  };
36
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>>;
36
+ type: {
37
+ type: "string";
38
+ } & {
39
+ defaultValue: string;
40
+ };
41
+ internetAccountId: {
42
+ type: "string";
43
+ } & {
44
+ defaultValue: string;
45
+ };
46
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>>;
37
47
  }, "configuration" | "type"> & {
38
48
  /**
39
49
  * #property
@@ -43,73 +53,113 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
43
53
  * #property
44
54
  */
45
55
  configuration: import("@jbrowse/core/configuration/configurationSchema").IConfigurationReference<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
46
- readonly tokenType: {
47
- readonly description: "a custom name for a token to include in the header";
48
- readonly type: "string";
49
- readonly defaultValue: "Bearer";
56
+ authEndpoint: {
57
+ type: "string";
58
+ } & {
59
+ defaultValue: string;
60
+ };
61
+ authHeader: {
62
+ type: "string";
63
+ } & {
64
+ defaultValue: string;
65
+ };
66
+ clientId: {
67
+ type: "string";
68
+ } & {
69
+ defaultValue: string;
70
+ };
71
+ description: {
72
+ type: "string";
73
+ } & {
74
+ defaultValue: string;
50
75
  };
51
- readonly authEndpoint: {
52
- readonly description: "the authorization code endpoint of the internet account";
53
- readonly type: "string";
54
- readonly defaultValue: "";
76
+ domains: {
77
+ type: "stringArray";
78
+ } & {
79
+ defaultValue: unknown;
55
80
  };
56
- readonly tokenEndpoint: {
57
- readonly description: "the token endpoint of the internet account";
58
- readonly type: "string";
59
- readonly defaultValue: "";
81
+ internetAccountId: {
82
+ type: "string";
83
+ } & {
84
+ defaultValue: string;
60
85
  };
61
- readonly needsPKCE: {
62
- readonly description: "boolean to indicate if the endpoint needs a PKCE code";
63
- readonly type: "boolean";
64
- readonly defaultValue: false;
86
+ name: {
87
+ type: "string";
88
+ } & {
89
+ defaultValue: string;
65
90
  };
66
- readonly clientId: {
67
- readonly description: "id for the OAuth application";
68
- readonly type: "string";
69
- readonly defaultValue: "";
91
+ needsPKCE: {
92
+ type: "boolean";
93
+ } & {
94
+ defaultValue: boolean;
70
95
  };
71
- readonly scopes: {
72
- readonly description: "optional scopes for the authorization call";
73
- readonly type: "string";
74
- readonly defaultValue: "";
96
+ responseType: {
97
+ type: "string";
98
+ } & {
99
+ defaultValue: string;
75
100
  };
76
- readonly state: {
77
- readonly description: "optional state for the authorization call";
78
- readonly type: "string";
79
- readonly defaultValue: "";
101
+ scopes: {
102
+ type: "string";
103
+ } & {
104
+ defaultValue: string;
80
105
  };
81
- readonly responseType: {
82
- readonly description: "the type of response from the authorization endpoint. can be 'token' or 'code'";
83
- readonly type: "string";
84
- readonly defaultValue: "code";
106
+ state: {
107
+ type: "string";
108
+ } & {
109
+ defaultValue: string;
110
+ };
111
+ tokenEndpoint: {
112
+ type: "string";
113
+ } & {
114
+ defaultValue: string;
115
+ };
116
+ tokenType: {
117
+ type: "string";
118
+ } & {
119
+ defaultValue: string;
120
+ };
121
+ type: {
122
+ type: "string";
123
+ } & {
124
+ defaultValue: string;
85
125
  };
86
126
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
87
127
  readonly name: {
88
- readonly description: "descriptive name of the internet account";
89
- readonly type: "string";
90
- readonly defaultValue: "";
128
+ type: "string";
129
+ } & {
130
+ defaultValue: string;
91
131
  };
92
132
  readonly description: {
93
- readonly description: "a description of the internet account";
94
- readonly type: "string";
95
- readonly defaultValue: "";
133
+ type: "string";
134
+ } & {
135
+ defaultValue: string;
96
136
  };
97
137
  readonly authHeader: {
98
- readonly description: "request header for credentials";
99
- readonly type: "string";
100
- readonly defaultValue: "Authorization";
138
+ type: "string";
139
+ } & {
140
+ defaultValue: string;
101
141
  };
102
142
  readonly tokenType: {
103
- readonly description: "a custom name for a token to include in the header";
104
- readonly type: "string";
105
- readonly defaultValue: "";
143
+ type: "string";
144
+ } & {
145
+ defaultValue: string;
106
146
  };
107
147
  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 [];
148
+ type: "stringArray";
149
+ } & {
150
+ defaultValue: unknown;
151
+ };
152
+ type: {
153
+ type: "string";
154
+ } & {
155
+ defaultValue: string;
156
+ };
157
+ internetAccountId: {
158
+ type: "string";
159
+ } & {
160
+ defaultValue: string;
111
161
  };
112
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>>;
162
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>, undefined, true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>>>>;
113
163
  }, {
114
164
  readonly name: string;
115
165
  readonly description: string;
@@ -201,7 +251,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
201
251
  /**
202
252
  * #getter
203
253
  */
204
- readonly responseType: 'token' | 'code';
254
+ readonly responseType: string;
205
255
  /**
206
256
  * #getter
207
257
  */