@jbrowse/plugin-authentication 2.4.2 → 2.5.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.
@@ -1,13 +1,183 @@
1
1
  /// <reference types="react" />
2
2
  import { UriLocation } from '@jbrowse/core/util';
3
3
  import { Instance } from 'mobx-state-tree';
4
- import { OAuthInternetAccountConfigModel } from './configSchema';
5
- declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
4
+ declare const stateModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
5
+ tokenType: {
6
+ description: string;
7
+ type: string;
8
+ defaultValue: string;
9
+ };
10
+ authEndpoint: {
11
+ description: string;
12
+ type: string;
13
+ defaultValue: string;
14
+ };
15
+ tokenEndpoint: {
16
+ description: string;
17
+ type: string;
18
+ defaultValue: string;
19
+ };
20
+ needsPKCE: {
21
+ description: string;
22
+ type: string;
23
+ defaultValue: boolean;
24
+ };
25
+ clientId: {
26
+ description: string;
27
+ type: string;
28
+ defaultValue: string;
29
+ };
30
+ scopes: {
31
+ description: string;
32
+ type: string;
33
+ defaultValue: string;
34
+ };
35
+ state: {
36
+ description: string;
37
+ type: string;
38
+ defaultValue: string;
39
+ };
40
+ responseType: {
41
+ description: string;
42
+ type: string;
43
+ defaultValue: string;
44
+ };
45
+ hasRefreshToken: {
46
+ description: string;
47
+ type: string;
48
+ defaultValue: boolean;
49
+ };
50
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
51
+ name: {
52
+ description: string;
53
+ type: string;
54
+ defaultValue: string;
55
+ };
56
+ description: {
57
+ description: string;
58
+ type: string;
59
+ defaultValue: string;
60
+ };
61
+ authHeader: {
62
+ description: string;
63
+ type: string;
64
+ defaultValue: string;
65
+ };
66
+ tokenType: {
67
+ description: string;
68
+ type: string;
69
+ defaultValue: string;
70
+ };
71
+ domains: {
72
+ description: string;
73
+ type: string;
74
+ defaultValue: never[];
75
+ };
76
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
6
77
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
7
78
  type: import("mobx-state-tree").ISimpleType<string>;
79
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
80
+ name: {
81
+ description: string;
82
+ type: string;
83
+ defaultValue: string;
84
+ };
85
+ description: {
86
+ description: string;
87
+ type: string;
88
+ defaultValue: string;
89
+ };
90
+ authHeader: {
91
+ description: string;
92
+ type: string;
93
+ defaultValue: string;
94
+ };
95
+ tokenType: {
96
+ description: string;
97
+ type: string;
98
+ defaultValue: string;
99
+ };
100
+ domains: {
101
+ description: string;
102
+ type: string;
103
+ defaultValue: never[];
104
+ };
105
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
8
106
  } & {
9
107
  type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
10
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
108
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
109
+ tokenType: {
110
+ description: string;
111
+ type: string;
112
+ defaultValue: string;
113
+ };
114
+ authEndpoint: {
115
+ description: string;
116
+ type: string;
117
+ defaultValue: string;
118
+ };
119
+ tokenEndpoint: {
120
+ description: string;
121
+ type: string;
122
+ defaultValue: string;
123
+ };
124
+ needsPKCE: {
125
+ description: string;
126
+ type: string;
127
+ defaultValue: boolean;
128
+ };
129
+ clientId: {
130
+ description: string;
131
+ type: string;
132
+ defaultValue: string;
133
+ };
134
+ scopes: {
135
+ description: string;
136
+ type: string;
137
+ defaultValue: string;
138
+ };
139
+ state: {
140
+ description: string;
141
+ type: string;
142
+ defaultValue: string;
143
+ };
144
+ responseType: {
145
+ description: string;
146
+ type: string;
147
+ defaultValue: string;
148
+ };
149
+ hasRefreshToken: {
150
+ description: string;
151
+ type: string;
152
+ defaultValue: boolean;
153
+ };
154
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
155
+ name: {
156
+ description: string;
157
+ type: string;
158
+ defaultValue: string;
159
+ };
160
+ description: {
161
+ description: string;
162
+ type: string;
163
+ defaultValue: string;
164
+ };
165
+ authHeader: {
166
+ description: string;
167
+ type: string;
168
+ defaultValue: string;
169
+ };
170
+ tokenType: {
171
+ description: string;
172
+ type: string;
173
+ defaultValue: string;
174
+ };
175
+ domains: {
176
+ description: string;
177
+ type: string;
178
+ defaultValue: never[];
179
+ };
180
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
11
181
  }, {
12
182
  readonly name: string;
13
183
  readonly description: string;