auth0-actions 0.0.1 → 0.0.3
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/dist/index.d.ts +221 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/index.ts +291 -39
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*/
|
|
4
|
+
export interface CredentialsExchangeEvent<TSecret, TClientMetadata> {
|
|
5
|
+
/** An object containing information describing the authorization granted to the user who is logging in. */
|
|
6
|
+
accessToken?: AccessToken;
|
|
7
|
+
/** */
|
|
8
|
+
client?: Client<TClientMetadata>;
|
|
9
|
+
/** */
|
|
10
|
+
request?: RequestBase<CredentialsExchangeRequestBody>;
|
|
11
|
+
/** */
|
|
12
|
+
resource_server?: ResourceServer;
|
|
13
|
+
/** */
|
|
14
|
+
secrets?: TSecret;
|
|
15
|
+
/** */
|
|
16
|
+
tenant?: Tenant;
|
|
17
|
+
/** */
|
|
18
|
+
transaction?: TransactionBase;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export interface PostLoginEvent<TSecret, TClientMetadata, TAppMetadata, TUserMetadata> {
|
|
24
|
+
/** Details about authentication signals obtained during the login flow. */
|
|
2
25
|
authentication?: AuthenticationInfoWithRiskAssessment;
|
|
26
|
+
/** An object containing information describing the authorization granted to the user who is logging in. */
|
|
3
27
|
authorization?: AuthorizationInfo;
|
|
4
|
-
|
|
5
|
-
client?: Client
|
|
28
|
+
/** */
|
|
29
|
+
client?: Client<TClientMetadata>;
|
|
30
|
+
/** */
|
|
6
31
|
configuration?: Configuration;
|
|
32
|
+
/** */
|
|
7
33
|
connection?: Connection;
|
|
34
|
+
/** */
|
|
8
35
|
organization?: Organization;
|
|
9
|
-
|
|
36
|
+
/** */
|
|
37
|
+
request?: Request<any>;
|
|
38
|
+
/** */
|
|
10
39
|
resource_server?: ResourceServer;
|
|
40
|
+
/** */
|
|
11
41
|
secrets?: TSecret;
|
|
42
|
+
/** */
|
|
12
43
|
stats?: Stats;
|
|
44
|
+
/** */
|
|
13
45
|
tenant?: Tenant;
|
|
46
|
+
/** */
|
|
14
47
|
transaction?: Transaction;
|
|
48
|
+
/** */
|
|
15
49
|
user?: UserBase<TAppMetadata, TUserMetadata>;
|
|
16
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
interface AccessToken {
|
|
55
|
+
customClaims: any;
|
|
56
|
+
scope: string[];
|
|
57
|
+
}
|
|
17
58
|
/**
|
|
18
59
|
* Details about authentication signals obtained during the login flow.
|
|
19
60
|
*/
|
|
20
61
|
interface AuthenticationInfoWithRiskAssessment {
|
|
21
62
|
/** Contains the authentication methods a user has completed during their session. */
|
|
22
63
|
methods: AuthenticationMethod[];
|
|
23
|
-
riskAssessment?:
|
|
64
|
+
riskAssessment?: RiskAssessmentSummary;
|
|
24
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
25
69
|
interface AuthenticationMethod {
|
|
26
70
|
/**
|
|
27
71
|
* The name of the first factor that was completed. Values include the following:
|
|
@@ -30,6 +74,9 @@ interface AuthenticationMethod {
|
|
|
30
74
|
timestamp: string;
|
|
31
75
|
type: string;
|
|
32
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
33
80
|
declare enum AuthenticationMethods {
|
|
34
81
|
/** A social or enterprise connection was used to authenticate the user as the first factor. */
|
|
35
82
|
federated = "federated",
|
|
@@ -45,19 +92,33 @@ declare enum AuthenticationMethods {
|
|
|
45
92
|
mfa = "mfa",
|
|
46
93
|
mock = "mock"
|
|
47
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
48
98
|
interface AuthorizationInfo {
|
|
49
99
|
roles: string[];
|
|
50
100
|
}
|
|
51
|
-
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
interface Client<TMetadata> {
|
|
105
|
+
/** The client id of the application the user is logging in to. */
|
|
52
106
|
clientId: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
107
|
+
/** An object for holding other application properties. */
|
|
108
|
+
metadata: TMetadata;
|
|
109
|
+
/** The name of the application (as defined in the Dashboard). */
|
|
56
110
|
name: string;
|
|
111
|
+
/** */
|
|
57
112
|
strategy: string;
|
|
58
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
59
117
|
interface Configuration {
|
|
60
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
61
122
|
interface Connection {
|
|
62
123
|
/**
|
|
63
124
|
* The connection's identifier
|
|
@@ -78,6 +139,9 @@ interface Connection {
|
|
|
78
139
|
*/
|
|
79
140
|
strategy: ConnectionStrategies;
|
|
80
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
81
145
|
declare enum ConnectionStrategies {
|
|
82
146
|
ad = "ad",
|
|
83
147
|
adfs = "adfs",
|
|
@@ -141,6 +205,18 @@ declare enum ConnectionStrategies {
|
|
|
141
205
|
yammer = "yammer",
|
|
142
206
|
yandex = "yandex"
|
|
143
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
*/
|
|
211
|
+
interface CredentialsExchangeRequestBody {
|
|
212
|
+
audience: string;
|
|
213
|
+
client_id: string;
|
|
214
|
+
client_secret: string;
|
|
215
|
+
grant_type: string;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
*/
|
|
144
220
|
interface GeoIP {
|
|
145
221
|
cityName: string;
|
|
146
222
|
continentCode: string;
|
|
@@ -153,6 +229,9 @@ interface GeoIP {
|
|
|
153
229
|
subdivisionName: string;
|
|
154
230
|
timeZone: string;
|
|
155
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
*/
|
|
156
235
|
interface Identity {
|
|
157
236
|
connection: string;
|
|
158
237
|
isSocial: boolean;
|
|
@@ -160,6 +239,25 @@ interface Identity {
|
|
|
160
239
|
userId: string;
|
|
161
240
|
user_id: string;
|
|
162
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
*/
|
|
245
|
+
interface IPAddressDetails {
|
|
246
|
+
category: string;
|
|
247
|
+
ip: string;
|
|
248
|
+
matches: string;
|
|
249
|
+
source: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
*/
|
|
254
|
+
interface NewDeviceDetails {
|
|
255
|
+
device: string;
|
|
256
|
+
useragent: string;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
*/
|
|
163
261
|
interface Organization {
|
|
164
262
|
display_name: string;
|
|
165
263
|
/**
|
|
@@ -177,6 +275,9 @@ interface Organization {
|
|
|
177
275
|
*/
|
|
178
276
|
name: string;
|
|
179
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
*/
|
|
180
281
|
interface Query {
|
|
181
282
|
audience: string;
|
|
182
283
|
client_id: string;
|
|
@@ -189,31 +290,71 @@ interface Query {
|
|
|
189
290
|
scope: string;
|
|
190
291
|
state: string;
|
|
191
292
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
*/
|
|
296
|
+
interface Request<TBody> extends RequestBase<TBody> {
|
|
195
297
|
query: Query;
|
|
196
|
-
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
*/
|
|
302
|
+
interface RequestBase<TBody> {
|
|
303
|
+
body: TBody;
|
|
197
304
|
geoip: GeoIP;
|
|
198
305
|
hostname: string;
|
|
306
|
+
ip: string;
|
|
307
|
+
method: string;
|
|
199
308
|
user_agent: string;
|
|
200
309
|
}
|
|
201
|
-
|
|
202
|
-
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
*/
|
|
203
313
|
interface ResourceServer {
|
|
204
314
|
identifier: string;
|
|
205
315
|
}
|
|
206
|
-
interface
|
|
316
|
+
interface RiskAssessmentBase {
|
|
317
|
+
code: string;
|
|
318
|
+
confidence: string;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
*/
|
|
323
|
+
interface RiskAssessmentSummary {
|
|
324
|
+
assessments: RiskAssessments;
|
|
207
325
|
confidence: "low" | "medium" | "high" | "neutral";
|
|
208
326
|
version: string;
|
|
209
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
*/
|
|
331
|
+
interface RiskAssessments {
|
|
332
|
+
ImpossibleTravel: RiskAssessmentBase;
|
|
333
|
+
NewDevice: RiskAssessmentWithDetails<NewDeviceDetails>;
|
|
334
|
+
UntrustedIP: RiskAssessmentWithDetails<IPAddressDetails>;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
*/
|
|
339
|
+
interface RiskAssessmentWithDetails<TDetails> {
|
|
340
|
+
details: TDetails;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
*/
|
|
210
345
|
interface Stats {
|
|
211
346
|
logins_count: number;
|
|
212
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
*/
|
|
213
351
|
interface Tenant {
|
|
214
352
|
id: string;
|
|
215
353
|
}
|
|
216
|
-
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
357
|
+
interface Transaction extends TransactionBase {
|
|
217
358
|
acr_values: any[];
|
|
218
359
|
linking_id?: string;
|
|
219
360
|
locale: string;
|
|
@@ -221,12 +362,20 @@ interface Transaction {
|
|
|
221
362
|
prompt: string[];
|
|
222
363
|
protocol?: TransactionProtocols;
|
|
223
364
|
redirect_uri?: string;
|
|
224
|
-
requested_scopes: string[];
|
|
225
365
|
response_mode?: string;
|
|
226
366
|
response_type?: string[];
|
|
227
367
|
state?: string;
|
|
228
368
|
ui_locales: string[];
|
|
229
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
*/
|
|
373
|
+
interface TransactionBase {
|
|
374
|
+
requested_scopes: string[];
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
*/
|
|
230
379
|
declare enum TransactionProtocols {
|
|
231
380
|
oidc_basic = "oidc-basic-profile",
|
|
232
381
|
oidc_hybrid = "oidc-hybrid",
|
|
@@ -242,31 +391,53 @@ declare enum TransactionProtocols {
|
|
|
242
391
|
oauth2_refresh_token = "oauth2-refresh-token",
|
|
243
392
|
oauth2_token_exchange = "oauth2-token-exchange"
|
|
244
393
|
}
|
|
245
|
-
|
|
246
|
-
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
*/
|
|
397
|
+
export interface UserBase<TAppMetadata, TUserMetadata> {
|
|
398
|
+
/** Data that the user has read-only access to (e.g. roles, permissions, vip, etc) */
|
|
399
|
+
app_metadata: TAppMetadata;
|
|
400
|
+
/** */
|
|
247
401
|
created_at: string;
|
|
402
|
+
/** */
|
|
248
403
|
email: string;
|
|
404
|
+
/** */
|
|
249
405
|
email_verified: boolean;
|
|
406
|
+
/** */
|
|
250
407
|
family_name: string;
|
|
408
|
+
/** */
|
|
251
409
|
given_name: string;
|
|
410
|
+
/** */
|
|
252
411
|
identities: Identity[];
|
|
412
|
+
/** */
|
|
253
413
|
last_password_reset?: string;
|
|
414
|
+
/** */
|
|
254
415
|
multifactor?: string[];
|
|
416
|
+
/** */
|
|
255
417
|
name: string;
|
|
418
|
+
/** */
|
|
256
419
|
nickname: string;
|
|
420
|
+
/** */
|
|
257
421
|
phone_number?: string;
|
|
422
|
+
/** */
|
|
258
423
|
phone_verified?: boolean;
|
|
424
|
+
/** */
|
|
259
425
|
picture: string;
|
|
426
|
+
/** */
|
|
260
427
|
updated_at: string;
|
|
428
|
+
/** */
|
|
261
429
|
user_id: string;
|
|
262
|
-
|
|
430
|
+
/** Data that the user has read/write access to (e.g. color_preference, blog_url, etc.) */
|
|
431
|
+
user_metadata: TUserMetadata;
|
|
432
|
+
/** */
|
|
263
433
|
username?: string;
|
|
264
434
|
}
|
|
265
|
-
export interface PostLoginApi {
|
|
435
|
+
export interface PostLoginApi extends ActionsApiBase<PostLoginApi> {
|
|
266
436
|
/** Modify the user's login access, such as by rejecting the login attempt. */
|
|
267
|
-
access: LoginAccessManager
|
|
437
|
+
access: LoginAccessManager<PostLoginApi>;
|
|
268
438
|
/** Request changes to the access token being issued. */
|
|
269
|
-
accessToken: AccessTokenManager
|
|
439
|
+
accessToken: AccessTokenManager<PostLoginApi>;
|
|
440
|
+
/** */
|
|
270
441
|
authentication: AuthenticationManager;
|
|
271
442
|
/** Store and retrieve data that persists across executions. */
|
|
272
443
|
cache: CacheManager;
|
|
@@ -279,23 +450,33 @@ export interface PostLoginApi {
|
|
|
279
450
|
/** */
|
|
280
451
|
user: UserManager;
|
|
281
452
|
}
|
|
282
|
-
export interface AccessTokenManager {
|
|
453
|
+
export interface AccessTokenManager<TApi extends ActionsApiBase<TApi>> extends AccessTokenManagerBase<TApi> {
|
|
283
454
|
/**
|
|
284
455
|
* Add a scope on the Access Token that will be issued upon completion of the login flow.
|
|
285
456
|
* @param scope The scope to be added.
|
|
286
457
|
*/
|
|
287
|
-
addScope(scope: string):
|
|
458
|
+
addScope(scope: string): TApi;
|
|
288
459
|
/**
|
|
289
460
|
* Remove a scope on the Access Token that will be issued upon completion of the login flow.
|
|
290
461
|
* @param scope The scope to be removed.
|
|
291
462
|
*/
|
|
292
|
-
removeScope(scope: string):
|
|
463
|
+
removeScope(scope: string): TApi;
|
|
464
|
+
}
|
|
465
|
+
export interface AccessTokenManagerBase<TApi extends ActionsApiBase<TApi>> {
|
|
293
466
|
/**
|
|
294
467
|
* Set a custom claim on the Access Token that will be issued upon completion of the login flow.
|
|
295
468
|
* @param name Name of the claim (note that this may need to be a fully-qualified URL).
|
|
296
469
|
* @param value The value of the claim.
|
|
297
470
|
*/
|
|
298
|
-
setCustomClaim(name: string, value: any):
|
|
471
|
+
setCustomClaim(name: string, value: any): TApi;
|
|
472
|
+
}
|
|
473
|
+
export interface ActionsApiBase<TApi extends ActionsApiBase<TApi>> {
|
|
474
|
+
/** Modify the user's login access, such as by rejecting the login attempt. */
|
|
475
|
+
access: LoginAccessManager<TApi>;
|
|
476
|
+
/** Request changes to the access token being issued. */
|
|
477
|
+
accessToken: AccessTokenManagerBase<TApi>;
|
|
478
|
+
/** Store and retrieve data that persists across executions. */
|
|
479
|
+
cache: CacheManager;
|
|
299
480
|
}
|
|
300
481
|
export interface AuthenticationManager {
|
|
301
482
|
/**
|
|
@@ -349,7 +530,9 @@ export interface CacheManager {
|
|
|
349
530
|
set(key: string, value: any, options?: CacheOptions): void;
|
|
350
531
|
}
|
|
351
532
|
export interface CacheWriteResult {
|
|
533
|
+
/** */
|
|
352
534
|
type: 'success' | 'error';
|
|
535
|
+
/** If @see type = 'error', then the error code will be populated here. */
|
|
353
536
|
code: string;
|
|
354
537
|
}
|
|
355
538
|
export interface CacheRecord {
|
|
@@ -393,6 +576,14 @@ export declare enum ChallengeTypes {
|
|
|
393
576
|
webauthn_platform = "webauthn-platform",
|
|
394
577
|
webauthn_roaming = "webauthn-roaming"
|
|
395
578
|
}
|
|
579
|
+
export interface CredentialsExchangeApi extends ActionsApiBase<CredentialsExchangeApi> {
|
|
580
|
+
/** Control availability to the access token. */
|
|
581
|
+
access: LoginAccessManager<CredentialsExchangeApi>;
|
|
582
|
+
/** Request changes to the access token being issued. */
|
|
583
|
+
accessToken: AccessTokenManagerBase<CredentialsExchangeApi>;
|
|
584
|
+
/** Store and retrieve data that persists across executions. */
|
|
585
|
+
cache: CacheManager;
|
|
586
|
+
}
|
|
396
587
|
export interface DuoMultifactorOptions {
|
|
397
588
|
host: string;
|
|
398
589
|
ikey: string;
|
|
@@ -415,14 +606,14 @@ export interface IdTokenManager {
|
|
|
415
606
|
*/
|
|
416
607
|
setCustomClaim(name: string, value: any): PostLoginApi;
|
|
417
608
|
}
|
|
418
|
-
export interface LoginAccessManager {
|
|
609
|
+
export interface LoginAccessManager<TApi extends ActionsApiBase<TApi>> {
|
|
419
610
|
/**
|
|
420
611
|
* Mark the current login attempt as denied. This will prevent the end-user from completing the login flow. This will NOT cancel other user-related
|
|
421
612
|
* side effects (such as metadata changes) requested by this Action. The login flow will immediately stop following the completion of this action
|
|
422
613
|
* and no further Actions will be executed.
|
|
423
614
|
* @param reason A human-readable explanation for rejecting the login. This may be presented directly in end-user interfaces.
|
|
424
615
|
*/
|
|
425
|
-
deny(reason: string):
|
|
616
|
+
deny(reason: string): TApi;
|
|
426
617
|
}
|
|
427
618
|
export interface MultifactorManager {
|
|
428
619
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,aAAa;IAEhE,cAAc,CAAC,EAAE,oCAAoC,CAAA;IAErD,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAElC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAA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esModule", { value: true });
|
|
4
4
|
exports.ChallengeTypes = void 0;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
5
8
|
var AuthenticationMethods;
|
|
6
9
|
(function (AuthenticationMethods) {
|
|
7
10
|
/** A social or enterprise connection was used to authenticate the user as the first factor. */
|
|
@@ -19,6 +22,9 @@ var AuthenticationMethods;
|
|
|
19
22
|
/* "Used for internal testing. */
|
|
20
23
|
AuthenticationMethods["mock"] = "mock";
|
|
21
24
|
})(AuthenticationMethods || (AuthenticationMethods = {}));
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
22
28
|
var ConnectionStrategies;
|
|
23
29
|
(function (ConnectionStrategies) {
|
|
24
30
|
ConnectionStrategies["ad"] = "ad";
|
|
@@ -83,6 +89,9 @@ var ConnectionStrategies;
|
|
|
83
89
|
ConnectionStrategies["yammer"] = "yammer";
|
|
84
90
|
ConnectionStrategies["yandex"] = "yandex";
|
|
85
91
|
})(ConnectionStrategies || (ConnectionStrategies = {}));
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
86
95
|
var TransactionProtocols;
|
|
87
96
|
(function (TransactionProtocols) {
|
|
88
97
|
TransactionProtocols["oidc_basic"] = "oidc-basic-profile";
|
|
@@ -110,5 +119,4 @@ var ChallengeTypes;
|
|
|
110
119
|
ChallengeTypes["webauthn_roaming"] = "webauthn-roaming";
|
|
111
120
|
})(ChallengeTypes || (exports.ChallengeTypes = ChallengeTypes = {}));
|
|
112
121
|
//#endregion
|
|
113
|
-
//notes: make a C# version too.
|
|
114
122
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AACA,gBAAgB;;;AA8GhB;;GAEG;AACH,I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ACzB,uCAAe,CAAA;IACf,iDAAyB,CAAA;IACzB,2CAAmB,CAAA;IACnB,mCAAW,CAAA;IACX,iDAAyB,CAAA;IACzB,2DAAmC,CAAA;IACnC,2CAAmB,CAAA;IACnB,iEAAyC,CAAA;IACzC,2CAAmB,CAAA;IACnB,2CAAmB,CAAA;IACnB,+CAAuB,CAAA;IACvB,qCAAa,CAAA;IACb,uCAAe,CAAA;IACf,mDAA2B,CAAA;IAC3B,+CAAuB,CAAA;IACvB,uCAAe,CAAA;IACf,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;AACrB,CAAC,EA9DI,oBAAoB,KAApB,oBAAoB,QA8DxB;AAsMD;;GAEG;AACH,IAAK,oBAeJ;AAfD,WAAK,oBAAoB;IACrB,yDAAiC,CAAA;IACjC,wJAAwJ;IACxJ,mDAA2B,CAAA;IAC3B,+DAAuC,CAAA;IACvC,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,uEAA+C,CAAA;IAC/C,iEAAyC,CAAA;IACzC,uEAA+C,CAAA;IAC/C,8EAAsD,CAAA;IACtD,2DAAmC,CAAA;IACnC,mEAA2C,CAAA;IAC3C,qEAA6C,CAAA;IAC7C,uEAA+C,CAAA;AACnD,CAAC,EAfI,oBAAoB,KAApB,oBAAoB,QAexB;AAoPD,IAAY,cAOX;AAPD,WAAY,cAAc;IACtB,6BAAW,CAAA;IACX,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,yDAAuC,CAAA;IACvC,yDAAuC,CAAA;IACvC,uDAAqC,CAAA;AACzC,CAAC,EAPW,cAAc,8BAAd,cAAc,QAOzB;AAgHD,YAAY"}
|
package/index.ts
CHANGED
|
@@ -1,27 +1,87 @@
|
|
|
1
1
|
|
|
2
|
-
//#region
|
|
2
|
+
//#region Events
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export interface CredentialsExchangeEvent<TSecret, TClientMetadata> {
|
|
8
|
+
|
|
9
|
+
/** An object containing information describing the authorization granted to the user who is logging in. */
|
|
10
|
+
accessToken?: AccessToken;
|
|
11
|
+
|
|
12
|
+
/** */
|
|
13
|
+
client?: Client<TClientMetadata>;
|
|
14
|
+
|
|
15
|
+
/** */
|
|
16
|
+
request?: RequestBase<CredentialsExchangeRequestBody>;
|
|
17
|
+
|
|
18
|
+
/** */
|
|
19
|
+
resource_server?: ResourceServer;
|
|
20
|
+
|
|
21
|
+
/** */
|
|
22
|
+
secrets?: TSecret;
|
|
23
|
+
|
|
24
|
+
/** */
|
|
25
|
+
tenant?: Tenant;
|
|
26
|
+
|
|
27
|
+
/** */
|
|
28
|
+
transaction?: TransactionBase;
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export interface PostLoginEvent<TSecret, TClientMetadata, TAppMetadata, TUserMetadata> {
|
|
36
|
+
|
|
37
|
+
/** Details about authentication signals obtained during the login flow. */
|
|
6
38
|
authentication?: AuthenticationInfoWithRiskAssessment
|
|
7
|
-
|
|
39
|
+
|
|
40
|
+
/** An object containing information describing the authorization granted to the user who is logging in. */
|
|
8
41
|
authorization?: AuthorizationInfo;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
client?: Client
|
|
42
|
+
|
|
43
|
+
/** */
|
|
44
|
+
client?: Client<TClientMetadata>;
|
|
45
|
+
|
|
46
|
+
/** */
|
|
12
47
|
configuration?: Configuration;
|
|
48
|
+
|
|
49
|
+
/** */
|
|
13
50
|
connection?: Connection;
|
|
51
|
+
|
|
52
|
+
/** */
|
|
14
53
|
organization?: Organization;
|
|
15
|
-
|
|
54
|
+
|
|
55
|
+
/** */
|
|
56
|
+
request?: Request<any>;
|
|
57
|
+
|
|
58
|
+
/** */
|
|
16
59
|
resource_server?: ResourceServer;
|
|
60
|
+
|
|
61
|
+
/** */
|
|
17
62
|
secrets?: TSecret;
|
|
63
|
+
|
|
64
|
+
/** */
|
|
18
65
|
stats?: Stats;
|
|
66
|
+
|
|
67
|
+
/** */
|
|
19
68
|
tenant?: Tenant;
|
|
69
|
+
|
|
70
|
+
/** */
|
|
20
71
|
transaction?: Transaction;
|
|
72
|
+
|
|
73
|
+
/** */
|
|
21
74
|
user?: UserBase<TAppMetadata, TUserMetadata>;
|
|
22
75
|
}
|
|
23
76
|
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
interface AccessToken {
|
|
24
81
|
|
|
82
|
+
customClaims: any;
|
|
83
|
+
scope: string[];
|
|
84
|
+
}
|
|
25
85
|
|
|
26
86
|
/**
|
|
27
87
|
* Details about authentication signals obtained during the login flow.
|
|
@@ -31,9 +91,12 @@ interface AuthenticationInfoWithRiskAssessment {
|
|
|
31
91
|
/** Contains the authentication methods a user has completed during their session. */
|
|
32
92
|
methods: AuthenticationMethod[];
|
|
33
93
|
|
|
34
|
-
riskAssessment?:
|
|
94
|
+
riskAssessment?: RiskAssessmentSummary;
|
|
35
95
|
}
|
|
36
96
|
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
37
100
|
interface AuthenticationMethod {
|
|
38
101
|
/**
|
|
39
102
|
* The name of the first factor that was completed. Values include the following:
|
|
@@ -46,6 +109,9 @@ interface AuthenticationMethod {
|
|
|
46
109
|
type: string;
|
|
47
110
|
}
|
|
48
111
|
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
49
115
|
enum AuthenticationMethods {
|
|
50
116
|
|
|
51
117
|
/** A social or enterprise connection was used to authenticate the user as the first factor. */
|
|
@@ -70,28 +136,41 @@ enum AuthenticationMethods {
|
|
|
70
136
|
mock = 'mock'
|
|
71
137
|
}
|
|
72
138
|
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
73
142
|
interface AuthorizationInfo {
|
|
74
143
|
roles: string[];
|
|
75
144
|
}
|
|
76
145
|
|
|
77
|
-
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
interface Client<TMetadata> {
|
|
78
150
|
|
|
79
|
-
|
|
151
|
+
/** The client id of the application the user is logging in to. */
|
|
80
152
|
clientId: string;
|
|
81
153
|
|
|
82
|
-
|
|
83
|
-
metadata:
|
|
154
|
+
/** An object for holding other application properties. */
|
|
155
|
+
metadata: TMetadata
|
|
84
156
|
|
|
85
|
-
|
|
157
|
+
/** The name of the application (as defined in the Dashboard). */
|
|
86
158
|
name: string;
|
|
87
159
|
|
|
160
|
+
/** */
|
|
88
161
|
strategy: string;
|
|
89
162
|
}
|
|
90
163
|
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
*/
|
|
91
167
|
interface Configuration {
|
|
92
168
|
|
|
93
169
|
}
|
|
94
170
|
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
95
174
|
interface Connection {
|
|
96
175
|
|
|
97
176
|
/**
|
|
@@ -116,6 +195,9 @@ interface Connection {
|
|
|
116
195
|
|
|
117
196
|
}
|
|
118
197
|
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
*/
|
|
119
201
|
enum ConnectionStrategies {
|
|
120
202
|
ad = 'ad',
|
|
121
203
|
adfs = 'adfs',
|
|
@@ -180,6 +262,19 @@ enum ConnectionStrategies {
|
|
|
180
262
|
yandex = 'yandex',
|
|
181
263
|
}
|
|
182
264
|
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
*/
|
|
268
|
+
interface CredentialsExchangeRequestBody {
|
|
269
|
+
audience: string;
|
|
270
|
+
client_id: string;
|
|
271
|
+
client_secret: string;
|
|
272
|
+
grant_type: string;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
*/
|
|
183
278
|
interface GeoIP {
|
|
184
279
|
cityName: string
|
|
185
280
|
continentCode: string
|
|
@@ -193,6 +288,9 @@ interface GeoIP {
|
|
|
193
288
|
timeZone: string
|
|
194
289
|
}
|
|
195
290
|
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
*/
|
|
196
294
|
interface Identity {
|
|
197
295
|
connection: string
|
|
198
296
|
isSocial: boolean
|
|
@@ -201,6 +299,27 @@ interface Identity {
|
|
|
201
299
|
user_id: string
|
|
202
300
|
}
|
|
203
301
|
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
*/
|
|
305
|
+
interface IPAddressDetails {
|
|
306
|
+
category: string;
|
|
307
|
+
ip: string;
|
|
308
|
+
matches: string;
|
|
309
|
+
source: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
*/
|
|
315
|
+
interface NewDeviceDetails {
|
|
316
|
+
device: string;
|
|
317
|
+
useragent: string;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
*/
|
|
204
323
|
interface Organization {
|
|
205
324
|
|
|
206
325
|
/* The friendly name of the Organization. */
|
|
@@ -223,6 +342,9 @@ interface Organization {
|
|
|
223
342
|
|
|
224
343
|
}
|
|
225
344
|
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
*/
|
|
226
348
|
interface Query {
|
|
227
349
|
audience: string
|
|
228
350
|
client_id: string
|
|
@@ -236,35 +358,86 @@ interface Query {
|
|
|
236
358
|
state: string
|
|
237
359
|
}
|
|
238
360
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
*/
|
|
364
|
+
interface Request<TBody> extends RequestBase<TBody> {
|
|
242
365
|
query: Query;
|
|
243
|
-
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
*/
|
|
371
|
+
interface RequestBase<TBody> {
|
|
372
|
+
body: TBody;
|
|
244
373
|
geoip: GeoIP;
|
|
245
374
|
hostname: string;
|
|
375
|
+
ip: string;
|
|
376
|
+
method: string;
|
|
246
377
|
user_agent: string;
|
|
247
378
|
}
|
|
248
379
|
|
|
249
|
-
|
|
250
|
-
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
*/
|
|
251
383
|
interface ResourceServer {
|
|
252
384
|
identifier: string
|
|
253
385
|
}
|
|
254
386
|
|
|
255
|
-
interface
|
|
387
|
+
interface RiskAssessmentBase {
|
|
388
|
+
|
|
389
|
+
code: string;
|
|
390
|
+
|
|
391
|
+
confidence: string;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
*/
|
|
397
|
+
interface RiskAssessmentSummary {
|
|
398
|
+
assessments: RiskAssessments;
|
|
256
399
|
confidence: "low" | "medium" | "high" | "neutral";
|
|
257
400
|
version: string;
|
|
258
401
|
}
|
|
259
402
|
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
*/
|
|
406
|
+
interface RiskAssessments {
|
|
407
|
+
|
|
408
|
+
ImpossibleTravel: RiskAssessmentBase;
|
|
409
|
+
|
|
410
|
+
NewDevice: RiskAssessmentWithDetails<NewDeviceDetails>
|
|
411
|
+
|
|
412
|
+
UntrustedIP: RiskAssessmentWithDetails<IPAddressDetails>
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
*/
|
|
418
|
+
interface RiskAssessmentWithDetails<TDetails> {
|
|
419
|
+
|
|
420
|
+
details: TDetails;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
*/
|
|
260
426
|
interface Stats {
|
|
261
427
|
logins_count: number
|
|
262
428
|
}
|
|
263
429
|
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
*/
|
|
264
433
|
interface Tenant {
|
|
265
434
|
id: string
|
|
266
435
|
}
|
|
267
|
-
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
440
|
+
interface Transaction extends TransactionBase {
|
|
268
441
|
acr_values: any[]
|
|
269
442
|
linking_id?: string
|
|
270
443
|
locale: string
|
|
@@ -272,13 +445,22 @@ interface Transaction {
|
|
|
272
445
|
prompt: string[]
|
|
273
446
|
protocol?: TransactionProtocols
|
|
274
447
|
redirect_uri?: string
|
|
275
|
-
requested_scopes: string[]
|
|
276
448
|
response_mode?: string
|
|
277
449
|
response_type?: string[]
|
|
278
450
|
state?: string
|
|
279
451
|
ui_locales: string[]
|
|
280
452
|
}
|
|
281
453
|
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
*/
|
|
457
|
+
interface TransactionBase {
|
|
458
|
+
requested_scopes: string[]
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
*/
|
|
282
464
|
enum TransactionProtocols {
|
|
283
465
|
oidc_basic = 'oidc-basic-profile',
|
|
284
466
|
/* Allows your application to have immediate access to an ID token while still providing for secure and safe retrieval of access and refresh tokens. */
|
|
@@ -296,40 +478,79 @@ enum TransactionProtocols {
|
|
|
296
478
|
oauth2_token_exchange = 'oauth2-token-exchange',
|
|
297
479
|
}
|
|
298
480
|
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
*/
|
|
484
|
+
export interface UserBase<TAppMetadata, TUserMetadata> {
|
|
485
|
+
|
|
486
|
+
/** Data that the user has read-only access to (e.g. roles, permissions, vip, etc) */
|
|
487
|
+
app_metadata: TAppMetadata
|
|
299
488
|
|
|
300
|
-
|
|
301
|
-
app_metadata: AppMetadata
|
|
489
|
+
/** */
|
|
302
490
|
created_at: string
|
|
491
|
+
|
|
492
|
+
/** */
|
|
303
493
|
email: string
|
|
494
|
+
|
|
495
|
+
/** */
|
|
304
496
|
email_verified: boolean
|
|
497
|
+
|
|
498
|
+
/** */
|
|
305
499
|
family_name: string
|
|
500
|
+
|
|
501
|
+
/** */
|
|
306
502
|
given_name: string
|
|
503
|
+
|
|
504
|
+
/** */
|
|
307
505
|
identities: Identity[]
|
|
506
|
+
|
|
507
|
+
/** */
|
|
308
508
|
last_password_reset?: string
|
|
509
|
+
|
|
510
|
+
/** */
|
|
309
511
|
multifactor?: string[]
|
|
512
|
+
|
|
513
|
+
/** */
|
|
310
514
|
name: string
|
|
515
|
+
|
|
516
|
+
/** */
|
|
311
517
|
nickname: string
|
|
518
|
+
|
|
519
|
+
/** */
|
|
312
520
|
phone_number?: string
|
|
521
|
+
|
|
522
|
+
/** */
|
|
313
523
|
phone_verified?: boolean
|
|
524
|
+
|
|
525
|
+
/** */
|
|
314
526
|
picture: string
|
|
527
|
+
|
|
528
|
+
/** */
|
|
315
529
|
updated_at: string
|
|
530
|
+
|
|
531
|
+
/** */
|
|
316
532
|
user_id: string
|
|
317
|
-
|
|
533
|
+
|
|
534
|
+
/** Data that the user has read/write access to (e.g. color_preference, blog_url, etc.) */
|
|
535
|
+
user_metadata: TUserMetadata
|
|
536
|
+
|
|
537
|
+
/** */
|
|
318
538
|
username?: string
|
|
319
539
|
}
|
|
320
540
|
|
|
321
541
|
//#endregion
|
|
322
542
|
|
|
323
|
-
//#region
|
|
543
|
+
//#region Actions APIs
|
|
324
544
|
|
|
325
|
-
export interface PostLoginApi {
|
|
545
|
+
export interface PostLoginApi extends ActionsApiBase<PostLoginApi> {
|
|
326
546
|
|
|
327
547
|
/** Modify the user's login access, such as by rejecting the login attempt. */
|
|
328
|
-
access: LoginAccessManager
|
|
548
|
+
access: LoginAccessManager<PostLoginApi>;
|
|
329
549
|
|
|
330
550
|
/** Request changes to the access token being issued. */
|
|
331
|
-
accessToken: AccessTokenManager
|
|
551
|
+
accessToken: AccessTokenManager<PostLoginApi>;
|
|
332
552
|
|
|
553
|
+
/** */
|
|
333
554
|
authentication: AuthenticationManager;
|
|
334
555
|
|
|
335
556
|
/** Store and retrieve data that persists across executions. */
|
|
@@ -348,26 +569,43 @@ export interface PostLoginApi {
|
|
|
348
569
|
user: UserManager;
|
|
349
570
|
}
|
|
350
571
|
|
|
351
|
-
export interface AccessTokenManager {
|
|
572
|
+
export interface AccessTokenManager<TApi extends ActionsApiBase<TApi>> extends AccessTokenManagerBase<TApi> {
|
|
352
573
|
|
|
353
574
|
/**
|
|
354
575
|
* Add a scope on the Access Token that will be issued upon completion of the login flow.
|
|
355
576
|
* @param scope The scope to be added.
|
|
356
577
|
*/
|
|
357
|
-
addScope(scope: string):
|
|
578
|
+
addScope(scope: string): TApi;
|
|
358
579
|
|
|
359
580
|
/**
|
|
360
581
|
* Remove a scope on the Access Token that will be issued upon completion of the login flow.
|
|
361
582
|
* @param scope The scope to be removed.
|
|
362
583
|
*/
|
|
363
|
-
removeScope(scope: string):
|
|
584
|
+
removeScope(scope: string): TApi;
|
|
585
|
+
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export interface AccessTokenManagerBase<TApi extends ActionsApiBase<TApi>> {
|
|
364
589
|
|
|
365
590
|
/**
|
|
366
591
|
* Set a custom claim on the Access Token that will be issued upon completion of the login flow.
|
|
367
592
|
* @param name Name of the claim (note that this may need to be a fully-qualified URL).
|
|
368
593
|
* @param value The value of the claim.
|
|
369
594
|
*/
|
|
370
|
-
setCustomClaim(name: string, value: any):
|
|
595
|
+
setCustomClaim(name: string, value: any): TApi;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export interface ActionsApiBase<TApi extends ActionsApiBase<TApi>> {
|
|
599
|
+
|
|
600
|
+
/** Modify the user's login access, such as by rejecting the login attempt. */
|
|
601
|
+
access: LoginAccessManager<TApi>;
|
|
602
|
+
|
|
603
|
+
/** Request changes to the access token being issued. */
|
|
604
|
+
accessToken: AccessTokenManagerBase<TApi>;
|
|
605
|
+
|
|
606
|
+
/** Store and retrieve data that persists across executions. */
|
|
607
|
+
cache: CacheManager;
|
|
608
|
+
|
|
371
609
|
}
|
|
372
610
|
|
|
373
611
|
export interface AuthenticationManager {
|
|
@@ -431,7 +669,11 @@ export interface CacheManager {
|
|
|
431
669
|
}
|
|
432
670
|
|
|
433
671
|
export interface CacheWriteResult {
|
|
672
|
+
|
|
673
|
+
/** */
|
|
434
674
|
type: 'success' | 'error'
|
|
675
|
+
|
|
676
|
+
/** If @see type = 'error', then the error code will be populated here. */
|
|
435
677
|
code: string
|
|
436
678
|
}
|
|
437
679
|
|
|
@@ -487,6 +729,19 @@ export enum ChallengeTypes {
|
|
|
487
729
|
webauthn_roaming = 'webauthn-roaming'
|
|
488
730
|
}
|
|
489
731
|
|
|
732
|
+
export interface CredentialsExchangeApi extends ActionsApiBase<CredentialsExchangeApi> {
|
|
733
|
+
|
|
734
|
+
/** Control availability to the access token. */
|
|
735
|
+
access: LoginAccessManager<CredentialsExchangeApi>;
|
|
736
|
+
|
|
737
|
+
/** Request changes to the access token being issued. */
|
|
738
|
+
accessToken: AccessTokenManagerBase<CredentialsExchangeApi>;
|
|
739
|
+
|
|
740
|
+
/** Store and retrieve data that persists across executions. */
|
|
741
|
+
cache: CacheManager;
|
|
742
|
+
|
|
743
|
+
}
|
|
744
|
+
|
|
490
745
|
export interface DuoMultifactorOptions {
|
|
491
746
|
host: string
|
|
492
747
|
ikey: string
|
|
@@ -514,7 +769,7 @@ export interface IdTokenManager {
|
|
|
514
769
|
setCustomClaim(name: string, value: any): PostLoginApi
|
|
515
770
|
}
|
|
516
771
|
|
|
517
|
-
export interface LoginAccessManager {
|
|
772
|
+
export interface LoginAccessManager<TApi extends ActionsApiBase<TApi>> {
|
|
518
773
|
|
|
519
774
|
/**
|
|
520
775
|
* Mark the current login attempt as denied. This will prevent the end-user from completing the login flow. This will NOT cancel other user-related
|
|
@@ -522,7 +777,7 @@ export interface LoginAccessManager {
|
|
|
522
777
|
* and no further Actions will be executed.
|
|
523
778
|
* @param reason A human-readable explanation for rejecting the login. This may be presented directly in end-user interfaces.
|
|
524
779
|
*/
|
|
525
|
-
deny(reason: string):
|
|
780
|
+
deny(reason: string): TApi;
|
|
526
781
|
}
|
|
527
782
|
|
|
528
783
|
export interface MultifactorManager {
|
|
@@ -585,6 +840,3 @@ export interface ValidateTokenOptions {
|
|
|
585
840
|
}
|
|
586
841
|
|
|
587
842
|
//#endregion
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
//notes: make a C# version too.
|