@jbrowse/plugin-authentication 5.0.0-beta.1 → 5.0.0-beta.10

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.
@@ -16,106 +16,184 @@ import type { Instance } from '@jbrowse/mobx-state-tree';
16
16
  * ```
17
17
  */
18
18
  declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
19
- /**
20
- * #slot
21
- */
22
- readonly authEndpoint: {
23
- readonly description: "the authorization code endpoint of the internet account";
24
- readonly type: "string";
25
- readonly defaultValue: "https://www.dropbox.com/oauth2/authorize";
26
- };
27
- /**
28
- * #slot
29
- */
30
- readonly tokenEndpoint: {
31
- readonly description: "the token endpoint of the internet account";
32
- readonly type: "string";
33
- readonly defaultValue: "https://api.dropbox.com/oauth2/token";
34
- };
35
- /**
36
- * #slot
37
- */
38
- readonly needsPKCE: {
39
- readonly description: "boolean to indicate if the endpoint needs a PKCE code";
40
- readonly type: "boolean";
41
- readonly defaultValue: true;
42
- };
43
- /**
44
- * #slot
45
- */
46
- readonly domains: {
47
- readonly description: "array of valid domains the url can contain to use this account";
48
- readonly type: "stringArray";
49
- readonly defaultValue: readonly ["addtodropbox.com", "db.tt", "dropbox.com", "dropboxapi.com", "dropboxbusiness.com", "dropbox.tech", "getdropbox.com"];
19
+ authEndpoint: {
20
+ type: "string";
21
+ } & {
22
+ defaultValue: string;
23
+ };
24
+ authHeader: {
25
+ type: "string";
26
+ } & {
27
+ defaultValue: string;
28
+ };
29
+ clientId: {
30
+ type: "string";
31
+ } & {
32
+ defaultValue: string;
33
+ };
34
+ description: {
35
+ type: "string";
36
+ } & {
37
+ defaultValue: string;
38
+ };
39
+ domains: {
40
+ type: "stringArray";
41
+ } & {
42
+ defaultValue: unknown;
43
+ };
44
+ internetAccountId: {
45
+ type: "string";
46
+ } & {
47
+ defaultValue: string;
48
+ };
49
+ name: {
50
+ type: "string";
51
+ } & {
52
+ defaultValue: string;
53
+ };
54
+ needsPKCE: {
55
+ type: "boolean";
56
+ } & {
57
+ defaultValue: boolean;
58
+ };
59
+ responseType: {
60
+ type: "string";
61
+ } & {
62
+ defaultValue: string;
63
+ };
64
+ scopes: {
65
+ type: "string";
66
+ } & {
67
+ defaultValue: string;
68
+ };
69
+ state: {
70
+ type: "string";
71
+ } & {
72
+ defaultValue: string;
73
+ };
74
+ tokenEndpoint: {
75
+ type: "string";
76
+ } & {
77
+ defaultValue: string;
78
+ };
79
+ tokenType: {
80
+ type: "string";
81
+ } & {
82
+ defaultValue: string;
83
+ };
84
+ type: {
85
+ type: "string";
86
+ } & {
87
+ defaultValue: string;
50
88
  };
51
89
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
52
- readonly tokenType: {
53
- readonly description: "a custom name for a token to include in the header";
54
- readonly type: "string";
55
- readonly defaultValue: "Bearer";
56
- };
57
- readonly authEndpoint: {
58
- readonly description: "the authorization code endpoint of the internet account";
59
- readonly type: "string";
60
- readonly defaultValue: "";
61
- };
62
- readonly tokenEndpoint: {
63
- readonly description: "the token endpoint of the internet account";
64
- readonly type: "string";
65
- readonly defaultValue: "";
66
- };
67
- readonly needsPKCE: {
68
- readonly description: "boolean to indicate if the endpoint needs a PKCE code";
69
- readonly type: "boolean";
70
- readonly defaultValue: false;
71
- };
72
- readonly clientId: {
73
- readonly description: "id for the OAuth application";
74
- readonly type: "string";
75
- readonly defaultValue: "";
76
- };
77
- readonly scopes: {
78
- readonly description: "optional scopes for the authorization call";
79
- readonly type: "string";
80
- readonly defaultValue: "";
81
- };
82
- readonly state: {
83
- readonly description: "optional state for the authorization call";
84
- readonly type: "string";
85
- readonly defaultValue: "";
86
- };
87
- readonly responseType: {
88
- readonly description: "the type of response from the authorization endpoint. can be 'token' or 'code'";
89
- readonly type: "string";
90
- readonly defaultValue: "code";
90
+ authEndpoint: {
91
+ type: "string";
92
+ } & {
93
+ defaultValue: string;
94
+ };
95
+ authHeader: {
96
+ type: "string";
97
+ } & {
98
+ defaultValue: string;
99
+ };
100
+ clientId: {
101
+ type: "string";
102
+ } & {
103
+ defaultValue: string;
104
+ };
105
+ description: {
106
+ type: "string";
107
+ } & {
108
+ defaultValue: string;
109
+ };
110
+ domains: {
111
+ type: "stringArray";
112
+ } & {
113
+ defaultValue: unknown;
114
+ };
115
+ internetAccountId: {
116
+ type: "string";
117
+ } & {
118
+ defaultValue: string;
119
+ };
120
+ name: {
121
+ type: "string";
122
+ } & {
123
+ defaultValue: string;
124
+ };
125
+ needsPKCE: {
126
+ type: "boolean";
127
+ } & {
128
+ defaultValue: boolean;
129
+ };
130
+ responseType: {
131
+ type: "string";
132
+ } & {
133
+ defaultValue: string;
134
+ };
135
+ scopes: {
136
+ type: "string";
137
+ } & {
138
+ defaultValue: string;
139
+ };
140
+ state: {
141
+ type: "string";
142
+ } & {
143
+ defaultValue: string;
144
+ };
145
+ tokenEndpoint: {
146
+ type: "string";
147
+ } & {
148
+ defaultValue: string;
149
+ };
150
+ tokenType: {
151
+ type: "string";
152
+ } & {
153
+ defaultValue: string;
154
+ };
155
+ type: {
156
+ type: "string";
157
+ } & {
158
+ defaultValue: string;
91
159
  };
92
160
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
93
161
  readonly name: {
94
- readonly description: "descriptive name of the internet account";
95
- readonly type: "string";
96
- readonly defaultValue: "";
162
+ type: "string";
163
+ } & {
164
+ defaultValue: string;
97
165
  };
98
166
  readonly description: {
99
- readonly description: "a description of the internet account";
100
- readonly type: "string";
101
- readonly defaultValue: "";
167
+ type: "string";
168
+ } & {
169
+ defaultValue: string;
102
170
  };
103
171
  readonly authHeader: {
104
- readonly description: "request header for credentials";
105
- readonly type: "string";
106
- readonly defaultValue: "Authorization";
172
+ type: "string";
173
+ } & {
174
+ defaultValue: string;
107
175
  };
108
176
  readonly tokenType: {
109
- readonly description: "a custom name for a token to include in the header";
110
- readonly type: "string";
111
- readonly defaultValue: "";
177
+ type: "string";
178
+ } & {
179
+ defaultValue: string;
112
180
  };
113
181
  readonly domains: {
114
- readonly description: "array of valid domains the url can contain to use this account";
115
- readonly type: "stringArray";
116
- readonly defaultValue: readonly [];
182
+ type: "stringArray";
183
+ } & {
184
+ defaultValue: unknown;
185
+ };
186
+ type: {
187
+ type: "string";
188
+ } & {
189
+ defaultValue: string;
190
+ };
191
+ internetAccountId: {
192
+ type: "string";
193
+ } & {
194
+ defaultValue: string;
117
195
  };
118
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
196
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId", true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>, undefined, true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>, undefined, true, import("@jbrowse/core/configuration").ConfigurationSchemaRequirement<Partial<Record<string, string[]>>, string>, any>>;
119
197
  export type DropboxOAuthInternetAccountConfigModel = typeof DropboxOAuthConfigSchema;
120
198
  export type DropboxOAuthInternetAccountConfig = Instance<DropboxOAuthInternetAccountConfigModel>;
121
199
  export default DropboxOAuthConfigSchema;