@authsome/client 0.0.2 → 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/client.d.ts +44 -38
- package/dist/client.js +31 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +56 -56
- package/dist/plugins/webhook.d.ts +2 -2
- package/dist/types.d.ts +2481 -2456
- package/package.json +1 -1
- package/src/client.ts +52 -39
- package/src/index.ts +18 -18
- package/src/plugins/webhook.ts +1 -1
- package/src/types.ts +2502 -2477
package/dist/client.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { ClientPlugin } from './plugin';
|
|
2
2
|
import * as types from './types';
|
|
3
|
-
import { SsoPlugin } from './plugins/sso';
|
|
4
|
-
import { TwofaPlugin } from './plugins/twofa';
|
|
5
|
-
import { WebhookPlugin } from './plugins/webhook';
|
|
6
|
-
import { AdminPlugin } from './plugins/admin';
|
|
7
|
-
import { ApikeyPlugin } from './plugins/apikey';
|
|
8
|
-
import { EmailotpPlugin } from './plugins/emailotp';
|
|
9
|
-
import { BackupauthPlugin } from './plugins/backupauth';
|
|
10
|
-
import { CompliancePlugin } from './plugins/compliance';
|
|
11
|
-
import { ImpersonationPlugin } from './plugins/impersonation';
|
|
12
3
|
import { MagiclinkPlugin } from './plugins/magiclink';
|
|
13
|
-
import { MultiappPlugin } from './plugins/multiapp';
|
|
14
|
-
import { AnonymousPlugin } from './plugins/anonymous';
|
|
15
|
-
import { JwtPlugin } from './plugins/jwt';
|
|
16
|
-
import { MfaPlugin } from './plugins/mfa';
|
|
17
|
-
import { MultisessionPlugin } from './plugins/multisession';
|
|
18
4
|
import { NotificationPlugin } from './plugins/notification';
|
|
19
|
-
import { OidcproviderPlugin } from './plugins/oidcprovider';
|
|
20
|
-
import { OrganizationPlugin } from './plugins/organization';
|
|
21
5
|
import { PasskeyPlugin } from './plugins/passkey';
|
|
22
|
-
import { SocialPlugin } from './plugins/social';
|
|
23
6
|
import { UsernamePlugin } from './plugins/username';
|
|
7
|
+
import { ApikeyPlugin } from './plugins/apikey';
|
|
8
|
+
import { BackupauthPlugin } from './plugins/backupauth';
|
|
24
9
|
import { ConsentPlugin } from './plugins/consent';
|
|
25
10
|
import { IdverificationPlugin } from './plugins/idverification';
|
|
26
|
-
import {
|
|
11
|
+
import { MultiappPlugin } from './plugins/multiapp';
|
|
12
|
+
import { OidcproviderPlugin } from './plugins/oidcprovider';
|
|
27
13
|
import { PhonePlugin } from './plugins/phone';
|
|
14
|
+
import { AdminPlugin } from './plugins/admin';
|
|
15
|
+
import { EmailotpPlugin } from './plugins/emailotp';
|
|
16
|
+
import { MfaPlugin } from './plugins/mfa';
|
|
17
|
+
import { OrganizationPlugin } from './plugins/organization';
|
|
18
|
+
import { SocialPlugin } from './plugins/social';
|
|
19
|
+
import { SsoPlugin } from './plugins/sso';
|
|
20
|
+
import { AnonymousPlugin } from './plugins/anonymous';
|
|
21
|
+
import { StepupPlugin } from './plugins/stepup';
|
|
22
|
+
import { JwtPlugin } from './plugins/jwt';
|
|
23
|
+
import { MultisessionPlugin } from './plugins/multisession';
|
|
24
|
+
import { TwofaPlugin } from './plugins/twofa';
|
|
25
|
+
import { WebhookPlugin } from './plugins/webhook';
|
|
26
|
+
import { CompliancePlugin } from './plugins/compliance';
|
|
27
|
+
import { ImpersonationPlugin } from './plugins/impersonation';
|
|
28
28
|
/**
|
|
29
29
|
* AuthSome client configuration
|
|
30
30
|
* Supports multiple authentication methods that can be used simultaneously:
|
|
@@ -74,33 +74,39 @@ export declare class AuthsomeClient {
|
|
|
74
74
|
*/
|
|
75
75
|
setSecretKey(secretKey: string): void;
|
|
76
76
|
setBasePath(basePath: string): void;
|
|
77
|
+
/**
|
|
78
|
+
* Set global headers for all requests
|
|
79
|
+
* @param headers - Headers to set
|
|
80
|
+
* @param replace - If true, replaces all existing headers. If false (default), merges with existing headers
|
|
81
|
+
*/
|
|
82
|
+
setGlobalHeaders(headers: Record<string, string>, replace?: boolean): void;
|
|
77
83
|
getPlugin<T extends ClientPlugin>(id: string): T | undefined;
|
|
78
84
|
readonly $plugins: {
|
|
79
|
-
sso: () => SsoPlugin | undefined;
|
|
80
|
-
twofa: () => TwofaPlugin | undefined;
|
|
81
|
-
webhook: () => WebhookPlugin | undefined;
|
|
82
|
-
admin: () => AdminPlugin | undefined;
|
|
83
|
-
apikey: () => ApikeyPlugin | undefined;
|
|
84
|
-
emailotp: () => EmailotpPlugin | undefined;
|
|
85
|
-
backupauth: () => BackupauthPlugin | undefined;
|
|
86
|
-
compliance: () => CompliancePlugin | undefined;
|
|
87
|
-
impersonation: () => ImpersonationPlugin | undefined;
|
|
88
85
|
magiclink: () => MagiclinkPlugin | undefined;
|
|
89
|
-
multiapp: () => MultiappPlugin | undefined;
|
|
90
|
-
anonymous: () => AnonymousPlugin | undefined;
|
|
91
|
-
jwt: () => JwtPlugin | undefined;
|
|
92
|
-
mfa: () => MfaPlugin | undefined;
|
|
93
|
-
multisession: () => MultisessionPlugin | undefined;
|
|
94
86
|
notification: () => NotificationPlugin | undefined;
|
|
95
|
-
oidcprovider: () => OidcproviderPlugin | undefined;
|
|
96
|
-
organization: () => OrganizationPlugin | undefined;
|
|
97
87
|
passkey: () => PasskeyPlugin | undefined;
|
|
98
|
-
social: () => SocialPlugin | undefined;
|
|
99
88
|
username: () => UsernamePlugin | undefined;
|
|
89
|
+
apikey: () => ApikeyPlugin | undefined;
|
|
90
|
+
backupauth: () => BackupauthPlugin | undefined;
|
|
100
91
|
consent: () => ConsentPlugin | undefined;
|
|
101
92
|
idverification: () => IdverificationPlugin | undefined;
|
|
102
|
-
|
|
93
|
+
multiapp: () => MultiappPlugin | undefined;
|
|
94
|
+
oidcprovider: () => OidcproviderPlugin | undefined;
|
|
103
95
|
phone: () => PhonePlugin | undefined;
|
|
96
|
+
admin: () => AdminPlugin | undefined;
|
|
97
|
+
emailotp: () => EmailotpPlugin | undefined;
|
|
98
|
+
mfa: () => MfaPlugin | undefined;
|
|
99
|
+
organization: () => OrganizationPlugin | undefined;
|
|
100
|
+
social: () => SocialPlugin | undefined;
|
|
101
|
+
sso: () => SsoPlugin | undefined;
|
|
102
|
+
anonymous: () => AnonymousPlugin | undefined;
|
|
103
|
+
stepup: () => StepupPlugin | undefined;
|
|
104
|
+
jwt: () => JwtPlugin | undefined;
|
|
105
|
+
multisession: () => MultisessionPlugin | undefined;
|
|
106
|
+
twofa: () => TwofaPlugin | undefined;
|
|
107
|
+
webhook: () => WebhookPlugin | undefined;
|
|
108
|
+
compliance: () => CompliancePlugin | undefined;
|
|
109
|
+
impersonation: () => ImpersonationPlugin | undefined;
|
|
104
110
|
};
|
|
105
111
|
request<T>(method: string, path: string, options?: {
|
|
106
112
|
body?: any;
|
|
@@ -119,9 +125,9 @@ export declare class AuthsomeClient {
|
|
|
119
125
|
email: string;
|
|
120
126
|
password: string;
|
|
121
127
|
}): Promise<{
|
|
128
|
+
user: types.User;
|
|
122
129
|
session: types.Session;
|
|
123
130
|
requiresTwoFactor: boolean;
|
|
124
|
-
user: types.User;
|
|
125
131
|
}>;
|
|
126
132
|
signOut(): Promise<{
|
|
127
133
|
success: boolean;
|
|
@@ -131,8 +137,8 @@ export declare class AuthsomeClient {
|
|
|
131
137
|
session: types.Session;
|
|
132
138
|
}>;
|
|
133
139
|
updateUser(request: {
|
|
134
|
-
name?: string;
|
|
135
140
|
email?: string;
|
|
141
|
+
name?: string;
|
|
136
142
|
}): Promise<{
|
|
137
143
|
user: types.User;
|
|
138
144
|
}>;
|
package/dist/client.js
CHANGED
|
@@ -6,31 +6,31 @@ const errors_1 = require("./errors");
|
|
|
6
6
|
class AuthsomeClient {
|
|
7
7
|
constructor(config) {
|
|
8
8
|
this.$plugins = {
|
|
9
|
-
sso: () => this.getPlugin('sso'),
|
|
10
|
-
twofa: () => this.getPlugin('twofa'),
|
|
11
|
-
webhook: () => this.getPlugin('webhook'),
|
|
12
|
-
admin: () => this.getPlugin('admin'),
|
|
13
|
-
apikey: () => this.getPlugin('apikey'),
|
|
14
|
-
emailotp: () => this.getPlugin('emailotp'),
|
|
15
|
-
backupauth: () => this.getPlugin('backupauth'),
|
|
16
|
-
compliance: () => this.getPlugin('compliance'),
|
|
17
|
-
impersonation: () => this.getPlugin('impersonation'),
|
|
18
9
|
magiclink: () => this.getPlugin('magiclink'),
|
|
19
|
-
multiapp: () => this.getPlugin('multiapp'),
|
|
20
|
-
anonymous: () => this.getPlugin('anonymous'),
|
|
21
|
-
jwt: () => this.getPlugin('jwt'),
|
|
22
|
-
mfa: () => this.getPlugin('mfa'),
|
|
23
|
-
multisession: () => this.getPlugin('multisession'),
|
|
24
10
|
notification: () => this.getPlugin('notification'),
|
|
25
|
-
oidcprovider: () => this.getPlugin('oidcprovider'),
|
|
26
|
-
organization: () => this.getPlugin('organization'),
|
|
27
11
|
passkey: () => this.getPlugin('passkey'),
|
|
28
|
-
social: () => this.getPlugin('social'),
|
|
29
12
|
username: () => this.getPlugin('username'),
|
|
13
|
+
apikey: () => this.getPlugin('apikey'),
|
|
14
|
+
backupauth: () => this.getPlugin('backupauth'),
|
|
30
15
|
consent: () => this.getPlugin('consent'),
|
|
31
16
|
idverification: () => this.getPlugin('idverification'),
|
|
32
|
-
|
|
17
|
+
multiapp: () => this.getPlugin('multiapp'),
|
|
18
|
+
oidcprovider: () => this.getPlugin('oidcprovider'),
|
|
33
19
|
phone: () => this.getPlugin('phone'),
|
|
20
|
+
admin: () => this.getPlugin('admin'),
|
|
21
|
+
emailotp: () => this.getPlugin('emailotp'),
|
|
22
|
+
mfa: () => this.getPlugin('mfa'),
|
|
23
|
+
organization: () => this.getPlugin('organization'),
|
|
24
|
+
social: () => this.getPlugin('social'),
|
|
25
|
+
sso: () => this.getPlugin('sso'),
|
|
26
|
+
anonymous: () => this.getPlugin('anonymous'),
|
|
27
|
+
stepup: () => this.getPlugin('stepup'),
|
|
28
|
+
jwt: () => this.getPlugin('jwt'),
|
|
29
|
+
multisession: () => this.getPlugin('multisession'),
|
|
30
|
+
twofa: () => this.getPlugin('twofa'),
|
|
31
|
+
webhook: () => this.getPlugin('webhook'),
|
|
32
|
+
compliance: () => this.getPlugin('compliance'),
|
|
33
|
+
impersonation: () => this.getPlugin('impersonation'),
|
|
34
34
|
};
|
|
35
35
|
this.baseURL = config.baseURL;
|
|
36
36
|
this.basePath = config.basePath || '';
|
|
@@ -80,6 +80,19 @@ class AuthsomeClient {
|
|
|
80
80
|
setBasePath(basePath) {
|
|
81
81
|
this.basePath = basePath;
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Set global headers for all requests
|
|
85
|
+
* @param headers - Headers to set
|
|
86
|
+
* @param replace - If true, replaces all existing headers. If false (default), merges with existing headers
|
|
87
|
+
*/
|
|
88
|
+
setGlobalHeaders(headers, replace = false) {
|
|
89
|
+
if (replace) {
|
|
90
|
+
this.headers = { ...headers };
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
this.headers = { ...this.headers, ...headers };
|
|
94
|
+
}
|
|
95
|
+
}
|
|
83
96
|
getPlugin(id) {
|
|
84
97
|
return this.plugins.get(id);
|
|
85
98
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,28 +2,28 @@ export { AuthsomeClient, AuthsomeClientConfig } from './client';
|
|
|
2
2
|
export { ClientPlugin } from './plugin';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export * from './errors';
|
|
5
|
-
export { SsoPlugin, ssoClient } from './plugins/sso';
|
|
6
|
-
export { TwofaPlugin, twofaClient } from './plugins/twofa';
|
|
7
|
-
export { WebhookPlugin, webhookClient } from './plugins/webhook';
|
|
8
|
-
export { AdminPlugin, adminClient } from './plugins/admin';
|
|
9
|
-
export { ApikeyPlugin, apikeyClient } from './plugins/apikey';
|
|
10
|
-
export { EmailotpPlugin, emailotpClient } from './plugins/emailotp';
|
|
11
|
-
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
12
|
-
export { CompliancePlugin, complianceClient } from './plugins/compliance';
|
|
13
|
-
export { ImpersonationPlugin, impersonationClient } from './plugins/impersonation';
|
|
14
5
|
export { MagiclinkPlugin, magiclinkClient } from './plugins/magiclink';
|
|
15
|
-
export { MultiappPlugin, multiappClient } from './plugins/multiapp';
|
|
16
|
-
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
17
|
-
export { JwtPlugin, jwtClient } from './plugins/jwt';
|
|
18
|
-
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
|
19
|
-
export { MultisessionPlugin, multisessionClient } from './plugins/multisession';
|
|
20
6
|
export { NotificationPlugin, notificationClient } from './plugins/notification';
|
|
21
|
-
export { OidcproviderPlugin, oidcproviderClient } from './plugins/oidcprovider';
|
|
22
|
-
export { OrganizationPlugin, organizationClient } from './plugins/organization';
|
|
23
7
|
export { PasskeyPlugin, passkeyClient } from './plugins/passkey';
|
|
24
|
-
export { SocialPlugin, socialClient } from './plugins/social';
|
|
25
8
|
export { UsernamePlugin, usernameClient } from './plugins/username';
|
|
9
|
+
export { ApikeyPlugin, apikeyClient } from './plugins/apikey';
|
|
10
|
+
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
26
11
|
export { ConsentPlugin, consentClient } from './plugins/consent';
|
|
27
12
|
export { IdverificationPlugin, idverificationClient } from './plugins/idverification';
|
|
28
|
-
export {
|
|
13
|
+
export { MultiappPlugin, multiappClient } from './plugins/multiapp';
|
|
14
|
+
export { OidcproviderPlugin, oidcproviderClient } from './plugins/oidcprovider';
|
|
29
15
|
export { PhonePlugin, phoneClient } from './plugins/phone';
|
|
16
|
+
export { AdminPlugin, adminClient } from './plugins/admin';
|
|
17
|
+
export { EmailotpPlugin, emailotpClient } from './plugins/emailotp';
|
|
18
|
+
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
|
19
|
+
export { OrganizationPlugin, organizationClient } from './plugins/organization';
|
|
20
|
+
export { SocialPlugin, socialClient } from './plugins/social';
|
|
21
|
+
export { SsoPlugin, ssoClient } from './plugins/sso';
|
|
22
|
+
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
23
|
+
export { StepupPlugin, stepupClient } from './plugins/stepup';
|
|
24
|
+
export { JwtPlugin, jwtClient } from './plugins/jwt';
|
|
25
|
+
export { MultisessionPlugin, multisessionClient } from './plugins/multisession';
|
|
26
|
+
export { TwofaPlugin, twofaClient } from './plugins/twofa';
|
|
27
|
+
export { WebhookPlugin, webhookClient } from './plugins/webhook';
|
|
28
|
+
export { CompliancePlugin, complianceClient } from './plugins/compliance';
|
|
29
|
+
export { ImpersonationPlugin, impersonationClient } from './plugins/impersonation';
|
package/dist/index.js
CHANGED
|
@@ -15,85 +15,85 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
18
|
+
exports.ImpersonationPlugin = exports.complianceClient = exports.CompliancePlugin = exports.webhookClient = exports.WebhookPlugin = exports.twofaClient = exports.TwofaPlugin = exports.multisessionClient = exports.MultisessionPlugin = exports.jwtClient = exports.JwtPlugin = exports.stepupClient = exports.StepupPlugin = exports.anonymousClient = exports.AnonymousPlugin = exports.ssoClient = exports.SsoPlugin = exports.socialClient = exports.SocialPlugin = exports.organizationClient = exports.OrganizationPlugin = exports.mfaClient = exports.MfaPlugin = exports.emailotpClient = exports.EmailotpPlugin = exports.adminClient = exports.AdminPlugin = exports.phoneClient = exports.PhonePlugin = exports.oidcproviderClient = exports.OidcproviderPlugin = exports.multiappClient = exports.MultiappPlugin = exports.idverificationClient = exports.IdverificationPlugin = exports.consentClient = exports.ConsentPlugin = exports.backupauthClient = exports.BackupauthPlugin = exports.apikeyClient = exports.ApikeyPlugin = exports.usernameClient = exports.UsernamePlugin = exports.passkeyClient = exports.PasskeyPlugin = exports.notificationClient = exports.NotificationPlugin = exports.magiclinkClient = exports.MagiclinkPlugin = exports.AuthsomeClient = void 0;
|
|
19
|
+
exports.impersonationClient = void 0;
|
|
20
20
|
var client_1 = require("./client");
|
|
21
21
|
Object.defineProperty(exports, "AuthsomeClient", { enumerable: true, get: function () { return client_1.AuthsomeClient; } });
|
|
22
22
|
__exportStar(require("./types"), exports);
|
|
23
23
|
__exportStar(require("./errors"), exports);
|
|
24
24
|
// Plugin exports
|
|
25
|
-
var sso_1 = require("./plugins/sso");
|
|
26
|
-
Object.defineProperty(exports, "SsoPlugin", { enumerable: true, get: function () { return sso_1.SsoPlugin; } });
|
|
27
|
-
Object.defineProperty(exports, "ssoClient", { enumerable: true, get: function () { return sso_1.ssoClient; } });
|
|
28
|
-
var twofa_1 = require("./plugins/twofa");
|
|
29
|
-
Object.defineProperty(exports, "TwofaPlugin", { enumerable: true, get: function () { return twofa_1.TwofaPlugin; } });
|
|
30
|
-
Object.defineProperty(exports, "twofaClient", { enumerable: true, get: function () { return twofa_1.twofaClient; } });
|
|
31
|
-
var webhook_1 = require("./plugins/webhook");
|
|
32
|
-
Object.defineProperty(exports, "WebhookPlugin", { enumerable: true, get: function () { return webhook_1.WebhookPlugin; } });
|
|
33
|
-
Object.defineProperty(exports, "webhookClient", { enumerable: true, get: function () { return webhook_1.webhookClient; } });
|
|
34
|
-
var admin_1 = require("./plugins/admin");
|
|
35
|
-
Object.defineProperty(exports, "AdminPlugin", { enumerable: true, get: function () { return admin_1.AdminPlugin; } });
|
|
36
|
-
Object.defineProperty(exports, "adminClient", { enumerable: true, get: function () { return admin_1.adminClient; } });
|
|
37
|
-
var apikey_1 = require("./plugins/apikey");
|
|
38
|
-
Object.defineProperty(exports, "ApikeyPlugin", { enumerable: true, get: function () { return apikey_1.ApikeyPlugin; } });
|
|
39
|
-
Object.defineProperty(exports, "apikeyClient", { enumerable: true, get: function () { return apikey_1.apikeyClient; } });
|
|
40
|
-
var emailotp_1 = require("./plugins/emailotp");
|
|
41
|
-
Object.defineProperty(exports, "EmailotpPlugin", { enumerable: true, get: function () { return emailotp_1.EmailotpPlugin; } });
|
|
42
|
-
Object.defineProperty(exports, "emailotpClient", { enumerable: true, get: function () { return emailotp_1.emailotpClient; } });
|
|
43
|
-
var backupauth_1 = require("./plugins/backupauth");
|
|
44
|
-
Object.defineProperty(exports, "BackupauthPlugin", { enumerable: true, get: function () { return backupauth_1.BackupauthPlugin; } });
|
|
45
|
-
Object.defineProperty(exports, "backupauthClient", { enumerable: true, get: function () { return backupauth_1.backupauthClient; } });
|
|
46
|
-
var compliance_1 = require("./plugins/compliance");
|
|
47
|
-
Object.defineProperty(exports, "CompliancePlugin", { enumerable: true, get: function () { return compliance_1.CompliancePlugin; } });
|
|
48
|
-
Object.defineProperty(exports, "complianceClient", { enumerable: true, get: function () { return compliance_1.complianceClient; } });
|
|
49
|
-
var impersonation_1 = require("./plugins/impersonation");
|
|
50
|
-
Object.defineProperty(exports, "ImpersonationPlugin", { enumerable: true, get: function () { return impersonation_1.ImpersonationPlugin; } });
|
|
51
|
-
Object.defineProperty(exports, "impersonationClient", { enumerable: true, get: function () { return impersonation_1.impersonationClient; } });
|
|
52
25
|
var magiclink_1 = require("./plugins/magiclink");
|
|
53
26
|
Object.defineProperty(exports, "MagiclinkPlugin", { enumerable: true, get: function () { return magiclink_1.MagiclinkPlugin; } });
|
|
54
27
|
Object.defineProperty(exports, "magiclinkClient", { enumerable: true, get: function () { return magiclink_1.magiclinkClient; } });
|
|
55
|
-
var multiapp_1 = require("./plugins/multiapp");
|
|
56
|
-
Object.defineProperty(exports, "MultiappPlugin", { enumerable: true, get: function () { return multiapp_1.MultiappPlugin; } });
|
|
57
|
-
Object.defineProperty(exports, "multiappClient", { enumerable: true, get: function () { return multiapp_1.multiappClient; } });
|
|
58
|
-
var anonymous_1 = require("./plugins/anonymous");
|
|
59
|
-
Object.defineProperty(exports, "AnonymousPlugin", { enumerable: true, get: function () { return anonymous_1.AnonymousPlugin; } });
|
|
60
|
-
Object.defineProperty(exports, "anonymousClient", { enumerable: true, get: function () { return anonymous_1.anonymousClient; } });
|
|
61
|
-
var jwt_1 = require("./plugins/jwt");
|
|
62
|
-
Object.defineProperty(exports, "JwtPlugin", { enumerable: true, get: function () { return jwt_1.JwtPlugin; } });
|
|
63
|
-
Object.defineProperty(exports, "jwtClient", { enumerable: true, get: function () { return jwt_1.jwtClient; } });
|
|
64
|
-
var mfa_1 = require("./plugins/mfa");
|
|
65
|
-
Object.defineProperty(exports, "MfaPlugin", { enumerable: true, get: function () { return mfa_1.MfaPlugin; } });
|
|
66
|
-
Object.defineProperty(exports, "mfaClient", { enumerable: true, get: function () { return mfa_1.mfaClient; } });
|
|
67
|
-
var multisession_1 = require("./plugins/multisession");
|
|
68
|
-
Object.defineProperty(exports, "MultisessionPlugin", { enumerable: true, get: function () { return multisession_1.MultisessionPlugin; } });
|
|
69
|
-
Object.defineProperty(exports, "multisessionClient", { enumerable: true, get: function () { return multisession_1.multisessionClient; } });
|
|
70
28
|
var notification_1 = require("./plugins/notification");
|
|
71
29
|
Object.defineProperty(exports, "NotificationPlugin", { enumerable: true, get: function () { return notification_1.NotificationPlugin; } });
|
|
72
30
|
Object.defineProperty(exports, "notificationClient", { enumerable: true, get: function () { return notification_1.notificationClient; } });
|
|
73
|
-
var oidcprovider_1 = require("./plugins/oidcprovider");
|
|
74
|
-
Object.defineProperty(exports, "OidcproviderPlugin", { enumerable: true, get: function () { return oidcprovider_1.OidcproviderPlugin; } });
|
|
75
|
-
Object.defineProperty(exports, "oidcproviderClient", { enumerable: true, get: function () { return oidcprovider_1.oidcproviderClient; } });
|
|
76
|
-
var organization_1 = require("./plugins/organization");
|
|
77
|
-
Object.defineProperty(exports, "OrganizationPlugin", { enumerable: true, get: function () { return organization_1.OrganizationPlugin; } });
|
|
78
|
-
Object.defineProperty(exports, "organizationClient", { enumerable: true, get: function () { return organization_1.organizationClient; } });
|
|
79
31
|
var passkey_1 = require("./plugins/passkey");
|
|
80
32
|
Object.defineProperty(exports, "PasskeyPlugin", { enumerable: true, get: function () { return passkey_1.PasskeyPlugin; } });
|
|
81
33
|
Object.defineProperty(exports, "passkeyClient", { enumerable: true, get: function () { return passkey_1.passkeyClient; } });
|
|
82
|
-
var social_1 = require("./plugins/social");
|
|
83
|
-
Object.defineProperty(exports, "SocialPlugin", { enumerable: true, get: function () { return social_1.SocialPlugin; } });
|
|
84
|
-
Object.defineProperty(exports, "socialClient", { enumerable: true, get: function () { return social_1.socialClient; } });
|
|
85
34
|
var username_1 = require("./plugins/username");
|
|
86
35
|
Object.defineProperty(exports, "UsernamePlugin", { enumerable: true, get: function () { return username_1.UsernamePlugin; } });
|
|
87
36
|
Object.defineProperty(exports, "usernameClient", { enumerable: true, get: function () { return username_1.usernameClient; } });
|
|
37
|
+
var apikey_1 = require("./plugins/apikey");
|
|
38
|
+
Object.defineProperty(exports, "ApikeyPlugin", { enumerable: true, get: function () { return apikey_1.ApikeyPlugin; } });
|
|
39
|
+
Object.defineProperty(exports, "apikeyClient", { enumerable: true, get: function () { return apikey_1.apikeyClient; } });
|
|
40
|
+
var backupauth_1 = require("./plugins/backupauth");
|
|
41
|
+
Object.defineProperty(exports, "BackupauthPlugin", { enumerable: true, get: function () { return backupauth_1.BackupauthPlugin; } });
|
|
42
|
+
Object.defineProperty(exports, "backupauthClient", { enumerable: true, get: function () { return backupauth_1.backupauthClient; } });
|
|
88
43
|
var consent_1 = require("./plugins/consent");
|
|
89
44
|
Object.defineProperty(exports, "ConsentPlugin", { enumerable: true, get: function () { return consent_1.ConsentPlugin; } });
|
|
90
45
|
Object.defineProperty(exports, "consentClient", { enumerable: true, get: function () { return consent_1.consentClient; } });
|
|
91
46
|
var idverification_1 = require("./plugins/idverification");
|
|
92
47
|
Object.defineProperty(exports, "IdverificationPlugin", { enumerable: true, get: function () { return idverification_1.IdverificationPlugin; } });
|
|
93
48
|
Object.defineProperty(exports, "idverificationClient", { enumerable: true, get: function () { return idverification_1.idverificationClient; } });
|
|
94
|
-
var
|
|
95
|
-
Object.defineProperty(exports, "
|
|
96
|
-
Object.defineProperty(exports, "
|
|
49
|
+
var multiapp_1 = require("./plugins/multiapp");
|
|
50
|
+
Object.defineProperty(exports, "MultiappPlugin", { enumerable: true, get: function () { return multiapp_1.MultiappPlugin; } });
|
|
51
|
+
Object.defineProperty(exports, "multiappClient", { enumerable: true, get: function () { return multiapp_1.multiappClient; } });
|
|
52
|
+
var oidcprovider_1 = require("./plugins/oidcprovider");
|
|
53
|
+
Object.defineProperty(exports, "OidcproviderPlugin", { enumerable: true, get: function () { return oidcprovider_1.OidcproviderPlugin; } });
|
|
54
|
+
Object.defineProperty(exports, "oidcproviderClient", { enumerable: true, get: function () { return oidcprovider_1.oidcproviderClient; } });
|
|
97
55
|
var phone_1 = require("./plugins/phone");
|
|
98
56
|
Object.defineProperty(exports, "PhonePlugin", { enumerable: true, get: function () { return phone_1.PhonePlugin; } });
|
|
99
57
|
Object.defineProperty(exports, "phoneClient", { enumerable: true, get: function () { return phone_1.phoneClient; } });
|
|
58
|
+
var admin_1 = require("./plugins/admin");
|
|
59
|
+
Object.defineProperty(exports, "AdminPlugin", { enumerable: true, get: function () { return admin_1.AdminPlugin; } });
|
|
60
|
+
Object.defineProperty(exports, "adminClient", { enumerable: true, get: function () { return admin_1.adminClient; } });
|
|
61
|
+
var emailotp_1 = require("./plugins/emailotp");
|
|
62
|
+
Object.defineProperty(exports, "EmailotpPlugin", { enumerable: true, get: function () { return emailotp_1.EmailotpPlugin; } });
|
|
63
|
+
Object.defineProperty(exports, "emailotpClient", { enumerable: true, get: function () { return emailotp_1.emailotpClient; } });
|
|
64
|
+
var mfa_1 = require("./plugins/mfa");
|
|
65
|
+
Object.defineProperty(exports, "MfaPlugin", { enumerable: true, get: function () { return mfa_1.MfaPlugin; } });
|
|
66
|
+
Object.defineProperty(exports, "mfaClient", { enumerable: true, get: function () { return mfa_1.mfaClient; } });
|
|
67
|
+
var organization_1 = require("./plugins/organization");
|
|
68
|
+
Object.defineProperty(exports, "OrganizationPlugin", { enumerable: true, get: function () { return organization_1.OrganizationPlugin; } });
|
|
69
|
+
Object.defineProperty(exports, "organizationClient", { enumerable: true, get: function () { return organization_1.organizationClient; } });
|
|
70
|
+
var social_1 = require("./plugins/social");
|
|
71
|
+
Object.defineProperty(exports, "SocialPlugin", { enumerable: true, get: function () { return social_1.SocialPlugin; } });
|
|
72
|
+
Object.defineProperty(exports, "socialClient", { enumerable: true, get: function () { return social_1.socialClient; } });
|
|
73
|
+
var sso_1 = require("./plugins/sso");
|
|
74
|
+
Object.defineProperty(exports, "SsoPlugin", { enumerable: true, get: function () { return sso_1.SsoPlugin; } });
|
|
75
|
+
Object.defineProperty(exports, "ssoClient", { enumerable: true, get: function () { return sso_1.ssoClient; } });
|
|
76
|
+
var anonymous_1 = require("./plugins/anonymous");
|
|
77
|
+
Object.defineProperty(exports, "AnonymousPlugin", { enumerable: true, get: function () { return anonymous_1.AnonymousPlugin; } });
|
|
78
|
+
Object.defineProperty(exports, "anonymousClient", { enumerable: true, get: function () { return anonymous_1.anonymousClient; } });
|
|
79
|
+
var stepup_1 = require("./plugins/stepup");
|
|
80
|
+
Object.defineProperty(exports, "StepupPlugin", { enumerable: true, get: function () { return stepup_1.StepupPlugin; } });
|
|
81
|
+
Object.defineProperty(exports, "stepupClient", { enumerable: true, get: function () { return stepup_1.stepupClient; } });
|
|
82
|
+
var jwt_1 = require("./plugins/jwt");
|
|
83
|
+
Object.defineProperty(exports, "JwtPlugin", { enumerable: true, get: function () { return jwt_1.JwtPlugin; } });
|
|
84
|
+
Object.defineProperty(exports, "jwtClient", { enumerable: true, get: function () { return jwt_1.jwtClient; } });
|
|
85
|
+
var multisession_1 = require("./plugins/multisession");
|
|
86
|
+
Object.defineProperty(exports, "MultisessionPlugin", { enumerable: true, get: function () { return multisession_1.MultisessionPlugin; } });
|
|
87
|
+
Object.defineProperty(exports, "multisessionClient", { enumerable: true, get: function () { return multisession_1.multisessionClient; } });
|
|
88
|
+
var twofa_1 = require("./plugins/twofa");
|
|
89
|
+
Object.defineProperty(exports, "TwofaPlugin", { enumerable: true, get: function () { return twofa_1.TwofaPlugin; } });
|
|
90
|
+
Object.defineProperty(exports, "twofaClient", { enumerable: true, get: function () { return twofa_1.twofaClient; } });
|
|
91
|
+
var webhook_1 = require("./plugins/webhook");
|
|
92
|
+
Object.defineProperty(exports, "WebhookPlugin", { enumerable: true, get: function () { return webhook_1.WebhookPlugin; } });
|
|
93
|
+
Object.defineProperty(exports, "webhookClient", { enumerable: true, get: function () { return webhook_1.webhookClient; } });
|
|
94
|
+
var compliance_1 = require("./plugins/compliance");
|
|
95
|
+
Object.defineProperty(exports, "CompliancePlugin", { enumerable: true, get: function () { return compliance_1.CompliancePlugin; } });
|
|
96
|
+
Object.defineProperty(exports, "complianceClient", { enumerable: true, get: function () { return compliance_1.complianceClient; } });
|
|
97
|
+
var impersonation_1 = require("./plugins/impersonation");
|
|
98
|
+
Object.defineProperty(exports, "ImpersonationPlugin", { enumerable: true, get: function () { return impersonation_1.ImpersonationPlugin; } });
|
|
99
|
+
Object.defineProperty(exports, "impersonationClient", { enumerable: true, get: function () { return impersonation_1.impersonationClient; } });
|
|
@@ -16,10 +16,10 @@ export declare class WebhookPlugin implements ClientPlugin {
|
|
|
16
16
|
webhooks: types.Webhook[];
|
|
17
17
|
}>;
|
|
18
18
|
update(request: {
|
|
19
|
-
events?: string[];
|
|
20
|
-
enabled?: boolean;
|
|
21
19
|
id: string;
|
|
22
20
|
url?: string;
|
|
21
|
+
events?: string[];
|
|
22
|
+
enabled?: boolean;
|
|
23
23
|
}): Promise<{
|
|
24
24
|
webhook: types.Webhook;
|
|
25
25
|
}>;
|