@authsome/client 0.0.7 → 0.0.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.
- package/dist/client.d.ts +42 -42
- package/dist/client.js +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +62 -62
- package/dist/plugins/admin.js +11 -11
- package/dist/plugins/apikey.js +7 -7
- package/dist/plugins/backupauth.js +6 -6
- package/dist/plugins/cms.d.ts +69 -18
- package/dist/plugins/cms.js +47 -47
- package/dist/plugins/idverification.js +11 -11
- package/dist/plugins/impersonation.js +6 -6
- package/dist/plugins/jwt.js +5 -5
- package/dist/plugins/multiapp.d.ts +19 -4
- package/dist/plugins/multiapp.js +23 -23
- package/dist/plugins/multisession.js +9 -9
- package/dist/plugins/notification.js +14 -14
- package/dist/plugins/oidcprovider.d.ts +3 -3
- package/dist/plugins/oidcprovider.js +17 -17
- package/dist/plugins/organization.d.ts +16 -4
- package/dist/plugins/organization.js +20 -20
- package/dist/plugins/permissions.js +3 -3
- package/dist/plugins/secrets.d.ts +1 -1
- package/dist/plugins/secrets.js +11 -11
- package/dist/plugins/sso.js +6 -6
- package/dist/plugins/stepup.js +14 -14
- package/dist/plugins/webhook.d.ts +1 -1
- package/dist/types.d.ts +3837 -3787
- package/package.json +1 -2
- package/src/client.ts +42 -42
- package/src/index.ts +20 -20
- package/src/plugins/admin.ts +11 -11
- package/src/plugins/apikey.ts +7 -7
- package/src/plugins/backupauth.ts +6 -6
- package/src/plugins/cms.ts +52 -52
- package/src/plugins/idverification.ts +11 -11
- package/src/plugins/impersonation.ts +6 -6
- package/src/plugins/jwt.ts +5 -5
- package/src/plugins/multiapp.ts +30 -30
- package/src/plugins/multisession.ts +9 -9
- package/src/plugins/notification.ts +14 -14
- package/src/plugins/oidcprovider.ts +23 -23
- package/src/plugins/organization.ts +24 -24
- package/src/plugins/permissions.ts +3 -3
- package/src/plugins/secrets.ts +12 -12
- package/src/plugins/sso.ts +6 -6
- package/src/plugins/stepup.ts +14 -14
- package/src/plugins/webhook.ts +1 -1
- package/src/types.ts +3928 -3877
package/dist/client.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { ClientPlugin } from './plugin';
|
|
2
2
|
import * as types from './types';
|
|
3
|
-
import { AnonymousPlugin } from './plugins/anonymous';
|
|
4
|
-
import { EmailverificationPlugin } from './plugins/emailverification';
|
|
5
|
-
import { IdverificationPlugin } from './plugins/idverification';
|
|
6
|
-
import { PasskeyPlugin } from './plugins/passkey';
|
|
7
|
-
import { PermissionsPlugin } from './plugins/permissions';
|
|
8
|
-
import { MfaPlugin } from './plugins/mfa';
|
|
9
3
|
import { MultiappPlugin } from './plugins/multiapp';
|
|
10
|
-
import {
|
|
11
|
-
import { CompliancePlugin } from './plugins/compliance';
|
|
12
|
-
import { MagiclinkPlugin } from './plugins/magiclink';
|
|
4
|
+
import { PasskeyPlugin } from './plugins/passkey';
|
|
13
5
|
import { PhonePlugin } from './plugins/phone';
|
|
14
6
|
import { WebhookPlugin } from './plugins/webhook';
|
|
7
|
+
import { ImpersonationPlugin } from './plugins/impersonation';
|
|
8
|
+
import { CmsPlugin } from './plugins/cms';
|
|
9
|
+
import { OidcproviderPlugin } from './plugins/oidcprovider';
|
|
10
|
+
import { EmailotpPlugin } from './plugins/emailotp';
|
|
11
|
+
import { BackupauthPlugin } from './plugins/backupauth';
|
|
12
|
+
import { TwofaPlugin } from './plugins/twofa';
|
|
13
|
+
import { SocialPlugin } from './plugins/social';
|
|
15
14
|
import { AdminPlugin } from './plugins/admin';
|
|
15
|
+
import { EmailverificationPlugin } from './plugins/emailverification';
|
|
16
|
+
import { ConsentPlugin } from './plugins/consent';
|
|
16
17
|
import { StepupPlugin } from './plugins/stepup';
|
|
17
|
-
import { ImpersonationPlugin } from './plugins/impersonation';
|
|
18
18
|
import { JwtPlugin } from './plugins/jwt';
|
|
19
|
-
import {
|
|
19
|
+
import { MfaPlugin } from './plugins/mfa';
|
|
20
|
+
import { SecretsPlugin } from './plugins/secrets';
|
|
20
21
|
import { UsernamePlugin } from './plugins/username';
|
|
21
|
-
import {
|
|
22
|
+
import { MagiclinkPlugin } from './plugins/magiclink';
|
|
23
|
+
import { OrganizationPlugin } from './plugins/organization';
|
|
24
|
+
import { SsoPlugin } from './plugins/sso';
|
|
25
|
+
import { IdverificationPlugin } from './plugins/idverification';
|
|
26
|
+
import { NotificationPlugin } from './plugins/notification';
|
|
22
27
|
import { MultisessionPlugin } from './plugins/multisession';
|
|
23
|
-
import {
|
|
28
|
+
import { PermissionsPlugin } from './plugins/permissions';
|
|
29
|
+
import { AnonymousPlugin } from './plugins/anonymous';
|
|
24
30
|
import { ApikeyPlugin } from './plugins/apikey';
|
|
25
|
-
import {
|
|
26
|
-
import { BackupauthPlugin } from './plugins/backupauth';
|
|
27
|
-
import { OrganizationPlugin } from './plugins/organization';
|
|
28
|
-
import { TwofaPlugin } from './plugins/twofa';
|
|
29
|
-
import { EmailotpPlugin } from './plugins/emailotp';
|
|
30
|
-
import { SecretsPlugin } from './plugins/secrets';
|
|
31
|
-
import { SocialPlugin } from './plugins/social';
|
|
31
|
+
import { CompliancePlugin } from './plugins/compliance';
|
|
32
32
|
/**
|
|
33
33
|
* AuthSome client configuration
|
|
34
34
|
* Supports multiple authentication methods that can be used simultaneously:
|
|
@@ -90,35 +90,35 @@ export declare class AuthsomeClient {
|
|
|
90
90
|
setGlobalHeaders(headers: Record<string, string>, replace?: boolean): void;
|
|
91
91
|
getPlugin<T extends ClientPlugin>(id: string): T | undefined;
|
|
92
92
|
readonly $plugins: {
|
|
93
|
-
anonymous: () => AnonymousPlugin | undefined;
|
|
94
|
-
emailverification: () => EmailverificationPlugin | undefined;
|
|
95
|
-
idverification: () => IdverificationPlugin | undefined;
|
|
96
|
-
passkey: () => PasskeyPlugin | undefined;
|
|
97
|
-
permissions: () => PermissionsPlugin | undefined;
|
|
98
|
-
mfa: () => MfaPlugin | undefined;
|
|
99
93
|
multiapp: () => MultiappPlugin | undefined;
|
|
100
|
-
|
|
101
|
-
compliance: () => CompliancePlugin | undefined;
|
|
102
|
-
magiclink: () => MagiclinkPlugin | undefined;
|
|
94
|
+
passkey: () => PasskeyPlugin | undefined;
|
|
103
95
|
phone: () => PhonePlugin | undefined;
|
|
104
96
|
webhook: () => WebhookPlugin | undefined;
|
|
97
|
+
impersonation: () => ImpersonationPlugin | undefined;
|
|
98
|
+
cms: () => CmsPlugin | undefined;
|
|
99
|
+
oidcprovider: () => OidcproviderPlugin | undefined;
|
|
100
|
+
emailotp: () => EmailotpPlugin | undefined;
|
|
101
|
+
backupauth: () => BackupauthPlugin | undefined;
|
|
102
|
+
twofa: () => TwofaPlugin | undefined;
|
|
103
|
+
social: () => SocialPlugin | undefined;
|
|
105
104
|
admin: () => AdminPlugin | undefined;
|
|
105
|
+
emailverification: () => EmailverificationPlugin | undefined;
|
|
106
|
+
consent: () => ConsentPlugin | undefined;
|
|
106
107
|
stepup: () => StepupPlugin | undefined;
|
|
107
|
-
impersonation: () => ImpersonationPlugin | undefined;
|
|
108
108
|
jwt: () => JwtPlugin | undefined;
|
|
109
|
-
|
|
109
|
+
mfa: () => MfaPlugin | undefined;
|
|
110
|
+
secrets: () => SecretsPlugin | undefined;
|
|
110
111
|
username: () => UsernamePlugin | undefined;
|
|
111
|
-
|
|
112
|
+
magiclink: () => MagiclinkPlugin | undefined;
|
|
113
|
+
organization: () => OrganizationPlugin | undefined;
|
|
114
|
+
sso: () => SsoPlugin | undefined;
|
|
115
|
+
idverification: () => IdverificationPlugin | undefined;
|
|
116
|
+
notification: () => NotificationPlugin | undefined;
|
|
112
117
|
multisession: () => MultisessionPlugin | undefined;
|
|
113
|
-
|
|
118
|
+
permissions: () => PermissionsPlugin | undefined;
|
|
119
|
+
anonymous: () => AnonymousPlugin | undefined;
|
|
114
120
|
apikey: () => ApikeyPlugin | undefined;
|
|
115
|
-
|
|
116
|
-
backupauth: () => BackupauthPlugin | undefined;
|
|
117
|
-
organization: () => OrganizationPlugin | undefined;
|
|
118
|
-
twofa: () => TwofaPlugin | undefined;
|
|
119
|
-
emailotp: () => EmailotpPlugin | undefined;
|
|
120
|
-
secrets: () => SecretsPlugin | undefined;
|
|
121
|
-
social: () => SocialPlugin | undefined;
|
|
121
|
+
compliance: () => CompliancePlugin | undefined;
|
|
122
122
|
};
|
|
123
123
|
request<T>(method: string, path: string, options?: {
|
|
124
124
|
body?: any;
|
|
@@ -126,9 +126,9 @@ export declare class AuthsomeClient {
|
|
|
126
126
|
auth?: boolean;
|
|
127
127
|
}): Promise<T>;
|
|
128
128
|
signUp(request: {
|
|
129
|
-
name?: string;
|
|
130
129
|
email: string;
|
|
131
130
|
password: string;
|
|
131
|
+
name?: string;
|
|
132
132
|
}): Promise<{
|
|
133
133
|
user: types.User;
|
|
134
134
|
session: types.Session;
|
|
@@ -165,11 +165,11 @@ export declare class AuthsomeClient {
|
|
|
165
165
|
refreshSession(request: {
|
|
166
166
|
refreshToken: string;
|
|
167
167
|
}): Promise<{
|
|
168
|
+
accessToken: string;
|
|
168
169
|
refreshToken: string;
|
|
169
170
|
expiresAt: string;
|
|
170
171
|
refreshExpiresAt: string;
|
|
171
172
|
session: any;
|
|
172
|
-
accessToken: string;
|
|
173
173
|
}>;
|
|
174
174
|
requestPasswordReset(request: {
|
|
175
175
|
email: string;
|
package/dist/client.js
CHANGED
|
@@ -6,35 +6,35 @@ const errors_1 = require("./errors");
|
|
|
6
6
|
class AuthsomeClient {
|
|
7
7
|
constructor(config) {
|
|
8
8
|
this.$plugins = {
|
|
9
|
-
anonymous: () => this.getPlugin('anonymous'),
|
|
10
|
-
emailverification: () => this.getPlugin('emailverification'),
|
|
11
|
-
idverification: () => this.getPlugin('idverification'),
|
|
12
|
-
passkey: () => this.getPlugin('passkey'),
|
|
13
|
-
permissions: () => this.getPlugin('permissions'),
|
|
14
|
-
mfa: () => this.getPlugin('mfa'),
|
|
15
9
|
multiapp: () => this.getPlugin('multiapp'),
|
|
16
|
-
|
|
17
|
-
compliance: () => this.getPlugin('compliance'),
|
|
18
|
-
magiclink: () => this.getPlugin('magiclink'),
|
|
10
|
+
passkey: () => this.getPlugin('passkey'),
|
|
19
11
|
phone: () => this.getPlugin('phone'),
|
|
20
12
|
webhook: () => this.getPlugin('webhook'),
|
|
13
|
+
impersonation: () => this.getPlugin('impersonation'),
|
|
14
|
+
cms: () => this.getPlugin('cms'),
|
|
15
|
+
oidcprovider: () => this.getPlugin('oidcprovider'),
|
|
16
|
+
emailotp: () => this.getPlugin('emailotp'),
|
|
17
|
+
backupauth: () => this.getPlugin('backupauth'),
|
|
18
|
+
twofa: () => this.getPlugin('twofa'),
|
|
19
|
+
social: () => this.getPlugin('social'),
|
|
21
20
|
admin: () => this.getPlugin('admin'),
|
|
21
|
+
emailverification: () => this.getPlugin('emailverification'),
|
|
22
|
+
consent: () => this.getPlugin('consent'),
|
|
22
23
|
stepup: () => this.getPlugin('stepup'),
|
|
23
|
-
impersonation: () => this.getPlugin('impersonation'),
|
|
24
24
|
jwt: () => this.getPlugin('jwt'),
|
|
25
|
-
|
|
25
|
+
mfa: () => this.getPlugin('mfa'),
|
|
26
|
+
secrets: () => this.getPlugin('secrets'),
|
|
26
27
|
username: () => this.getPlugin('username'),
|
|
27
|
-
|
|
28
|
+
magiclink: () => this.getPlugin('magiclink'),
|
|
29
|
+
organization: () => this.getPlugin('organization'),
|
|
30
|
+
sso: () => this.getPlugin('sso'),
|
|
31
|
+
idverification: () => this.getPlugin('idverification'),
|
|
32
|
+
notification: () => this.getPlugin('notification'),
|
|
28
33
|
multisession: () => this.getPlugin('multisession'),
|
|
29
|
-
|
|
34
|
+
permissions: () => this.getPlugin('permissions'),
|
|
35
|
+
anonymous: () => this.getPlugin('anonymous'),
|
|
30
36
|
apikey: () => this.getPlugin('apikey'),
|
|
31
|
-
|
|
32
|
-
backupauth: () => this.getPlugin('backupauth'),
|
|
33
|
-
organization: () => this.getPlugin('organization'),
|
|
34
|
-
twofa: () => this.getPlugin('twofa'),
|
|
35
|
-
emailotp: () => this.getPlugin('emailotp'),
|
|
36
|
-
secrets: () => this.getPlugin('secrets'),
|
|
37
|
-
social: () => this.getPlugin('social'),
|
|
37
|
+
compliance: () => this.getPlugin('compliance'),
|
|
38
38
|
};
|
|
39
39
|
this.baseURL = config.baseURL;
|
|
40
40
|
this.basePath = config.basePath || '';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,32 +2,32 @@ export { AuthsomeClient, AuthsomeClientConfig } from './client';
|
|
|
2
2
|
export { ClientPlugin } from './plugin';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export * from './errors';
|
|
5
|
-
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
6
|
-
export { EmailverificationPlugin, emailverificationClient } from './plugins/emailverification';
|
|
7
|
-
export { IdverificationPlugin, idverificationClient } from './plugins/idverification';
|
|
8
|
-
export { PasskeyPlugin, passkeyClient } from './plugins/passkey';
|
|
9
|
-
export { PermissionsPlugin, permissionsClient } from './plugins/permissions';
|
|
10
|
-
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
|
11
5
|
export { MultiappPlugin, multiappClient } from './plugins/multiapp';
|
|
12
|
-
export {
|
|
13
|
-
export { CompliancePlugin, complianceClient } from './plugins/compliance';
|
|
14
|
-
export { MagiclinkPlugin, magiclinkClient } from './plugins/magiclink';
|
|
6
|
+
export { PasskeyPlugin, passkeyClient } from './plugins/passkey';
|
|
15
7
|
export { PhonePlugin, phoneClient } from './plugins/phone';
|
|
16
8
|
export { WebhookPlugin, webhookClient } from './plugins/webhook';
|
|
9
|
+
export { ImpersonationPlugin, impersonationClient } from './plugins/impersonation';
|
|
10
|
+
export { CmsPlugin, cmsClient } from './plugins/cms';
|
|
11
|
+
export { OidcproviderPlugin, oidcproviderClient } from './plugins/oidcprovider';
|
|
12
|
+
export { EmailotpPlugin, emailotpClient } from './plugins/emailotp';
|
|
13
|
+
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
14
|
+
export { TwofaPlugin, twofaClient } from './plugins/twofa';
|
|
15
|
+
export { SocialPlugin, socialClient } from './plugins/social';
|
|
17
16
|
export { AdminPlugin, adminClient } from './plugins/admin';
|
|
17
|
+
export { EmailverificationPlugin, emailverificationClient } from './plugins/emailverification';
|
|
18
|
+
export { ConsentPlugin, consentClient } from './plugins/consent';
|
|
18
19
|
export { StepupPlugin, stepupClient } from './plugins/stepup';
|
|
19
|
-
export { ImpersonationPlugin, impersonationClient } from './plugins/impersonation';
|
|
20
20
|
export { JwtPlugin, jwtClient } from './plugins/jwt';
|
|
21
|
-
export {
|
|
21
|
+
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
|
22
|
+
export { SecretsPlugin, secretsClient } from './plugins/secrets';
|
|
22
23
|
export { UsernamePlugin, usernameClient } from './plugins/username';
|
|
23
|
-
export {
|
|
24
|
+
export { MagiclinkPlugin, magiclinkClient } from './plugins/magiclink';
|
|
25
|
+
export { OrganizationPlugin, organizationClient } from './plugins/organization';
|
|
26
|
+
export { SsoPlugin, ssoClient } from './plugins/sso';
|
|
27
|
+
export { IdverificationPlugin, idverificationClient } from './plugins/idverification';
|
|
28
|
+
export { NotificationPlugin, notificationClient } from './plugins/notification';
|
|
24
29
|
export { MultisessionPlugin, multisessionClient } from './plugins/multisession';
|
|
25
|
-
export {
|
|
30
|
+
export { PermissionsPlugin, permissionsClient } from './plugins/permissions';
|
|
31
|
+
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
26
32
|
export { ApikeyPlugin, apikeyClient } from './plugins/apikey';
|
|
27
|
-
export {
|
|
28
|
-
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
29
|
-
export { OrganizationPlugin, organizationClient } from './plugins/organization';
|
|
30
|
-
export { TwofaPlugin, twofaClient } from './plugins/twofa';
|
|
31
|
-
export { EmailotpPlugin, emailotpClient } from './plugins/emailotp';
|
|
32
|
-
export { SecretsPlugin, secretsClient } from './plugins/secrets';
|
|
33
|
-
export { SocialPlugin, socialClient } from './plugins/social';
|
|
33
|
+
export { CompliancePlugin, complianceClient } from './plugins/compliance';
|
package/dist/index.js
CHANGED
|
@@ -15,97 +15,97 @@ 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.MultisessionPlugin = exports.notificationClient = exports.NotificationPlugin = exports.idverificationClient = exports.IdverificationPlugin = exports.ssoClient = exports.SsoPlugin = exports.organizationClient = exports.OrganizationPlugin = exports.magiclinkClient = exports.MagiclinkPlugin = exports.usernameClient = exports.UsernamePlugin = exports.secretsClient = exports.SecretsPlugin = exports.mfaClient = exports.MfaPlugin = exports.jwtClient = exports.JwtPlugin = exports.stepupClient = exports.StepupPlugin = exports.consentClient = exports.ConsentPlugin = exports.emailverificationClient = exports.EmailverificationPlugin = exports.adminClient = exports.AdminPlugin = exports.socialClient = exports.SocialPlugin = exports.twofaClient = exports.TwofaPlugin = exports.backupauthClient = exports.BackupauthPlugin = exports.emailotpClient = exports.EmailotpPlugin = exports.oidcproviderClient = exports.OidcproviderPlugin = exports.cmsClient = exports.CmsPlugin = exports.impersonationClient = exports.ImpersonationPlugin = exports.webhookClient = exports.WebhookPlugin = exports.phoneClient = exports.PhonePlugin = exports.passkeyClient = exports.PasskeyPlugin = exports.multiappClient = exports.MultiappPlugin = exports.AuthsomeClient = void 0;
|
|
19
|
+
exports.complianceClient = exports.CompliancePlugin = exports.apikeyClient = exports.ApikeyPlugin = exports.anonymousClient = exports.AnonymousPlugin = exports.permissionsClient = exports.PermissionsPlugin = exports.multisessionClient = 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 anonymous_1 = require("./plugins/anonymous");
|
|
26
|
-
Object.defineProperty(exports, "AnonymousPlugin", { enumerable: true, get: function () { return anonymous_1.AnonymousPlugin; } });
|
|
27
|
-
Object.defineProperty(exports, "anonymousClient", { enumerable: true, get: function () { return anonymous_1.anonymousClient; } });
|
|
28
|
-
var emailverification_1 = require("./plugins/emailverification");
|
|
29
|
-
Object.defineProperty(exports, "EmailverificationPlugin", { enumerable: true, get: function () { return emailverification_1.EmailverificationPlugin; } });
|
|
30
|
-
Object.defineProperty(exports, "emailverificationClient", { enumerable: true, get: function () { return emailverification_1.emailverificationClient; } });
|
|
31
|
-
var idverification_1 = require("./plugins/idverification");
|
|
32
|
-
Object.defineProperty(exports, "IdverificationPlugin", { enumerable: true, get: function () { return idverification_1.IdverificationPlugin; } });
|
|
33
|
-
Object.defineProperty(exports, "idverificationClient", { enumerable: true, get: function () { return idverification_1.idverificationClient; } });
|
|
34
|
-
var passkey_1 = require("./plugins/passkey");
|
|
35
|
-
Object.defineProperty(exports, "PasskeyPlugin", { enumerable: true, get: function () { return passkey_1.PasskeyPlugin; } });
|
|
36
|
-
Object.defineProperty(exports, "passkeyClient", { enumerable: true, get: function () { return passkey_1.passkeyClient; } });
|
|
37
|
-
var permissions_1 = require("./plugins/permissions");
|
|
38
|
-
Object.defineProperty(exports, "PermissionsPlugin", { enumerable: true, get: function () { return permissions_1.PermissionsPlugin; } });
|
|
39
|
-
Object.defineProperty(exports, "permissionsClient", { enumerable: true, get: function () { return permissions_1.permissionsClient; } });
|
|
40
|
-
var mfa_1 = require("./plugins/mfa");
|
|
41
|
-
Object.defineProperty(exports, "MfaPlugin", { enumerable: true, get: function () { return mfa_1.MfaPlugin; } });
|
|
42
|
-
Object.defineProperty(exports, "mfaClient", { enumerable: true, get: function () { return mfa_1.mfaClient; } });
|
|
43
25
|
var multiapp_1 = require("./plugins/multiapp");
|
|
44
26
|
Object.defineProperty(exports, "MultiappPlugin", { enumerable: true, get: function () { return multiapp_1.MultiappPlugin; } });
|
|
45
27
|
Object.defineProperty(exports, "multiappClient", { enumerable: true, get: function () { return multiapp_1.multiappClient; } });
|
|
46
|
-
var
|
|
47
|
-
Object.defineProperty(exports, "
|
|
48
|
-
Object.defineProperty(exports, "
|
|
49
|
-
var compliance_1 = require("./plugins/compliance");
|
|
50
|
-
Object.defineProperty(exports, "CompliancePlugin", { enumerable: true, get: function () { return compliance_1.CompliancePlugin; } });
|
|
51
|
-
Object.defineProperty(exports, "complianceClient", { enumerable: true, get: function () { return compliance_1.complianceClient; } });
|
|
52
|
-
var magiclink_1 = require("./plugins/magiclink");
|
|
53
|
-
Object.defineProperty(exports, "MagiclinkPlugin", { enumerable: true, get: function () { return magiclink_1.MagiclinkPlugin; } });
|
|
54
|
-
Object.defineProperty(exports, "magiclinkClient", { enumerable: true, get: function () { return magiclink_1.magiclinkClient; } });
|
|
28
|
+
var passkey_1 = require("./plugins/passkey");
|
|
29
|
+
Object.defineProperty(exports, "PasskeyPlugin", { enumerable: true, get: function () { return passkey_1.PasskeyPlugin; } });
|
|
30
|
+
Object.defineProperty(exports, "passkeyClient", { enumerable: true, get: function () { return passkey_1.passkeyClient; } });
|
|
55
31
|
var phone_1 = require("./plugins/phone");
|
|
56
32
|
Object.defineProperty(exports, "PhonePlugin", { enumerable: true, get: function () { return phone_1.PhonePlugin; } });
|
|
57
33
|
Object.defineProperty(exports, "phoneClient", { enumerable: true, get: function () { return phone_1.phoneClient; } });
|
|
58
34
|
var webhook_1 = require("./plugins/webhook");
|
|
59
35
|
Object.defineProperty(exports, "WebhookPlugin", { enumerable: true, get: function () { return webhook_1.WebhookPlugin; } });
|
|
60
36
|
Object.defineProperty(exports, "webhookClient", { enumerable: true, get: function () { return webhook_1.webhookClient; } });
|
|
37
|
+
var impersonation_1 = require("./plugins/impersonation");
|
|
38
|
+
Object.defineProperty(exports, "ImpersonationPlugin", { enumerable: true, get: function () { return impersonation_1.ImpersonationPlugin; } });
|
|
39
|
+
Object.defineProperty(exports, "impersonationClient", { enumerable: true, get: function () { return impersonation_1.impersonationClient; } });
|
|
40
|
+
var cms_1 = require("./plugins/cms");
|
|
41
|
+
Object.defineProperty(exports, "CmsPlugin", { enumerable: true, get: function () { return cms_1.CmsPlugin; } });
|
|
42
|
+
Object.defineProperty(exports, "cmsClient", { enumerable: true, get: function () { return cms_1.cmsClient; } });
|
|
43
|
+
var oidcprovider_1 = require("./plugins/oidcprovider");
|
|
44
|
+
Object.defineProperty(exports, "OidcproviderPlugin", { enumerable: true, get: function () { return oidcprovider_1.OidcproviderPlugin; } });
|
|
45
|
+
Object.defineProperty(exports, "oidcproviderClient", { enumerable: true, get: function () { return oidcprovider_1.oidcproviderClient; } });
|
|
46
|
+
var emailotp_1 = require("./plugins/emailotp");
|
|
47
|
+
Object.defineProperty(exports, "EmailotpPlugin", { enumerable: true, get: function () { return emailotp_1.EmailotpPlugin; } });
|
|
48
|
+
Object.defineProperty(exports, "emailotpClient", { enumerable: true, get: function () { return emailotp_1.emailotpClient; } });
|
|
49
|
+
var backupauth_1 = require("./plugins/backupauth");
|
|
50
|
+
Object.defineProperty(exports, "BackupauthPlugin", { enumerable: true, get: function () { return backupauth_1.BackupauthPlugin; } });
|
|
51
|
+
Object.defineProperty(exports, "backupauthClient", { enumerable: true, get: function () { return backupauth_1.backupauthClient; } });
|
|
52
|
+
var twofa_1 = require("./plugins/twofa");
|
|
53
|
+
Object.defineProperty(exports, "TwofaPlugin", { enumerable: true, get: function () { return twofa_1.TwofaPlugin; } });
|
|
54
|
+
Object.defineProperty(exports, "twofaClient", { enumerable: true, get: function () { return twofa_1.twofaClient; } });
|
|
55
|
+
var social_1 = require("./plugins/social");
|
|
56
|
+
Object.defineProperty(exports, "SocialPlugin", { enumerable: true, get: function () { return social_1.SocialPlugin; } });
|
|
57
|
+
Object.defineProperty(exports, "socialClient", { enumerable: true, get: function () { return social_1.socialClient; } });
|
|
61
58
|
var admin_1 = require("./plugins/admin");
|
|
62
59
|
Object.defineProperty(exports, "AdminPlugin", { enumerable: true, get: function () { return admin_1.AdminPlugin; } });
|
|
63
60
|
Object.defineProperty(exports, "adminClient", { enumerable: true, get: function () { return admin_1.adminClient; } });
|
|
61
|
+
var emailverification_1 = require("./plugins/emailverification");
|
|
62
|
+
Object.defineProperty(exports, "EmailverificationPlugin", { enumerable: true, get: function () { return emailverification_1.EmailverificationPlugin; } });
|
|
63
|
+
Object.defineProperty(exports, "emailverificationClient", { enumerable: true, get: function () { return emailverification_1.emailverificationClient; } });
|
|
64
|
+
var consent_1 = require("./plugins/consent");
|
|
65
|
+
Object.defineProperty(exports, "ConsentPlugin", { enumerable: true, get: function () { return consent_1.ConsentPlugin; } });
|
|
66
|
+
Object.defineProperty(exports, "consentClient", { enumerable: true, get: function () { return consent_1.consentClient; } });
|
|
64
67
|
var stepup_1 = require("./plugins/stepup");
|
|
65
68
|
Object.defineProperty(exports, "StepupPlugin", { enumerable: true, get: function () { return stepup_1.StepupPlugin; } });
|
|
66
69
|
Object.defineProperty(exports, "stepupClient", { enumerable: true, get: function () { return stepup_1.stepupClient; } });
|
|
67
|
-
var impersonation_1 = require("./plugins/impersonation");
|
|
68
|
-
Object.defineProperty(exports, "ImpersonationPlugin", { enumerable: true, get: function () { return impersonation_1.ImpersonationPlugin; } });
|
|
69
|
-
Object.defineProperty(exports, "impersonationClient", { enumerable: true, get: function () { return impersonation_1.impersonationClient; } });
|
|
70
70
|
var jwt_1 = require("./plugins/jwt");
|
|
71
71
|
Object.defineProperty(exports, "JwtPlugin", { enumerable: true, get: function () { return jwt_1.JwtPlugin; } });
|
|
72
72
|
Object.defineProperty(exports, "jwtClient", { enumerable: true, get: function () { return jwt_1.jwtClient; } });
|
|
73
|
-
var
|
|
74
|
-
Object.defineProperty(exports, "
|
|
75
|
-
Object.defineProperty(exports, "
|
|
73
|
+
var mfa_1 = require("./plugins/mfa");
|
|
74
|
+
Object.defineProperty(exports, "MfaPlugin", { enumerable: true, get: function () { return mfa_1.MfaPlugin; } });
|
|
75
|
+
Object.defineProperty(exports, "mfaClient", { enumerable: true, get: function () { return mfa_1.mfaClient; } });
|
|
76
|
+
var secrets_1 = require("./plugins/secrets");
|
|
77
|
+
Object.defineProperty(exports, "SecretsPlugin", { enumerable: true, get: function () { return secrets_1.SecretsPlugin; } });
|
|
78
|
+
Object.defineProperty(exports, "secretsClient", { enumerable: true, get: function () { return secrets_1.secretsClient; } });
|
|
76
79
|
var username_1 = require("./plugins/username");
|
|
77
80
|
Object.defineProperty(exports, "UsernamePlugin", { enumerable: true, get: function () { return username_1.UsernamePlugin; } });
|
|
78
81
|
Object.defineProperty(exports, "usernameClient", { enumerable: true, get: function () { return username_1.usernameClient; } });
|
|
79
|
-
var
|
|
80
|
-
Object.defineProperty(exports, "
|
|
81
|
-
Object.defineProperty(exports, "
|
|
82
|
+
var magiclink_1 = require("./plugins/magiclink");
|
|
83
|
+
Object.defineProperty(exports, "MagiclinkPlugin", { enumerable: true, get: function () { return magiclink_1.MagiclinkPlugin; } });
|
|
84
|
+
Object.defineProperty(exports, "magiclinkClient", { enumerable: true, get: function () { return magiclink_1.magiclinkClient; } });
|
|
85
|
+
var organization_1 = require("./plugins/organization");
|
|
86
|
+
Object.defineProperty(exports, "OrganizationPlugin", { enumerable: true, get: function () { return organization_1.OrganizationPlugin; } });
|
|
87
|
+
Object.defineProperty(exports, "organizationClient", { enumerable: true, get: function () { return organization_1.organizationClient; } });
|
|
88
|
+
var sso_1 = require("./plugins/sso");
|
|
89
|
+
Object.defineProperty(exports, "SsoPlugin", { enumerable: true, get: function () { return sso_1.SsoPlugin; } });
|
|
90
|
+
Object.defineProperty(exports, "ssoClient", { enumerable: true, get: function () { return sso_1.ssoClient; } });
|
|
91
|
+
var idverification_1 = require("./plugins/idverification");
|
|
92
|
+
Object.defineProperty(exports, "IdverificationPlugin", { enumerable: true, get: function () { return idverification_1.IdverificationPlugin; } });
|
|
93
|
+
Object.defineProperty(exports, "idverificationClient", { enumerable: true, get: function () { return idverification_1.idverificationClient; } });
|
|
94
|
+
var notification_1 = require("./plugins/notification");
|
|
95
|
+
Object.defineProperty(exports, "NotificationPlugin", { enumerable: true, get: function () { return notification_1.NotificationPlugin; } });
|
|
96
|
+
Object.defineProperty(exports, "notificationClient", { enumerable: true, get: function () { return notification_1.notificationClient; } });
|
|
82
97
|
var multisession_1 = require("./plugins/multisession");
|
|
83
98
|
Object.defineProperty(exports, "MultisessionPlugin", { enumerable: true, get: function () { return multisession_1.MultisessionPlugin; } });
|
|
84
99
|
Object.defineProperty(exports, "multisessionClient", { enumerable: true, get: function () { return multisession_1.multisessionClient; } });
|
|
85
|
-
var
|
|
86
|
-
Object.defineProperty(exports, "
|
|
87
|
-
Object.defineProperty(exports, "
|
|
100
|
+
var permissions_1 = require("./plugins/permissions");
|
|
101
|
+
Object.defineProperty(exports, "PermissionsPlugin", { enumerable: true, get: function () { return permissions_1.PermissionsPlugin; } });
|
|
102
|
+
Object.defineProperty(exports, "permissionsClient", { enumerable: true, get: function () { return permissions_1.permissionsClient; } });
|
|
103
|
+
var anonymous_1 = require("./plugins/anonymous");
|
|
104
|
+
Object.defineProperty(exports, "AnonymousPlugin", { enumerable: true, get: function () { return anonymous_1.AnonymousPlugin; } });
|
|
105
|
+
Object.defineProperty(exports, "anonymousClient", { enumerable: true, get: function () { return anonymous_1.anonymousClient; } });
|
|
88
106
|
var apikey_1 = require("./plugins/apikey");
|
|
89
107
|
Object.defineProperty(exports, "ApikeyPlugin", { enumerable: true, get: function () { return apikey_1.ApikeyPlugin; } });
|
|
90
108
|
Object.defineProperty(exports, "apikeyClient", { enumerable: true, get: function () { return apikey_1.apikeyClient; } });
|
|
91
|
-
var
|
|
92
|
-
Object.defineProperty(exports, "
|
|
93
|
-
Object.defineProperty(exports, "
|
|
94
|
-
var backupauth_1 = require("./plugins/backupauth");
|
|
95
|
-
Object.defineProperty(exports, "BackupauthPlugin", { enumerable: true, get: function () { return backupauth_1.BackupauthPlugin; } });
|
|
96
|
-
Object.defineProperty(exports, "backupauthClient", { enumerable: true, get: function () { return backupauth_1.backupauthClient; } });
|
|
97
|
-
var organization_1 = require("./plugins/organization");
|
|
98
|
-
Object.defineProperty(exports, "OrganizationPlugin", { enumerable: true, get: function () { return organization_1.OrganizationPlugin; } });
|
|
99
|
-
Object.defineProperty(exports, "organizationClient", { enumerable: true, get: function () { return organization_1.organizationClient; } });
|
|
100
|
-
var twofa_1 = require("./plugins/twofa");
|
|
101
|
-
Object.defineProperty(exports, "TwofaPlugin", { enumerable: true, get: function () { return twofa_1.TwofaPlugin; } });
|
|
102
|
-
Object.defineProperty(exports, "twofaClient", { enumerable: true, get: function () { return twofa_1.twofaClient; } });
|
|
103
|
-
var emailotp_1 = require("./plugins/emailotp");
|
|
104
|
-
Object.defineProperty(exports, "EmailotpPlugin", { enumerable: true, get: function () { return emailotp_1.EmailotpPlugin; } });
|
|
105
|
-
Object.defineProperty(exports, "emailotpClient", { enumerable: true, get: function () { return emailotp_1.emailotpClient; } });
|
|
106
|
-
var secrets_1 = require("./plugins/secrets");
|
|
107
|
-
Object.defineProperty(exports, "SecretsPlugin", { enumerable: true, get: function () { return secrets_1.SecretsPlugin; } });
|
|
108
|
-
Object.defineProperty(exports, "secretsClient", { enumerable: true, get: function () { return secrets_1.secretsClient; } });
|
|
109
|
-
var social_1 = require("./plugins/social");
|
|
110
|
-
Object.defineProperty(exports, "SocialPlugin", { enumerable: true, get: function () { return social_1.SocialPlugin; } });
|
|
111
|
-
Object.defineProperty(exports, "socialClient", { enumerable: true, get: function () { return social_1.socialClient; } });
|
|
109
|
+
var compliance_1 = require("./plugins/compliance");
|
|
110
|
+
Object.defineProperty(exports, "CompliancePlugin", { enumerable: true, get: function () { return compliance_1.CompliancePlugin; } });
|
|
111
|
+
Object.defineProperty(exports, "complianceClient", { enumerable: true, get: function () { return compliance_1.complianceClient; } });
|
package/dist/plugins/admin.js
CHANGED
|
@@ -11,47 +11,47 @@ class AdminPlugin {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
async createUser() {
|
|
14
|
-
const path = '/users';
|
|
14
|
+
const path = '/admin/users';
|
|
15
15
|
return this.client.request('POST', path);
|
|
16
16
|
}
|
|
17
17
|
async listUsers() {
|
|
18
|
-
const path = '/users';
|
|
18
|
+
const path = '/admin/users';
|
|
19
19
|
return this.client.request('GET', path);
|
|
20
20
|
}
|
|
21
21
|
async deleteUser(params) {
|
|
22
|
-
const path = `/users/${params.id}`;
|
|
22
|
+
const path = `/admin/users/${params.id}`;
|
|
23
23
|
return this.client.request('DELETE', path);
|
|
24
24
|
}
|
|
25
25
|
async banUser(params) {
|
|
26
|
-
const path = `/users/${params.id}/ban`;
|
|
26
|
+
const path = `/admin/users/${params.id}/ban`;
|
|
27
27
|
return this.client.request('POST', path);
|
|
28
28
|
}
|
|
29
29
|
async unbanUser(params) {
|
|
30
|
-
const path = `/users/${params.id}/unban`;
|
|
30
|
+
const path = `/admin/users/${params.id}/unban`;
|
|
31
31
|
return this.client.request('POST', path);
|
|
32
32
|
}
|
|
33
33
|
async impersonateUser(params) {
|
|
34
|
-
const path = `/users/${params.id}/impersonate`;
|
|
34
|
+
const path = `/admin/users/${params.id}/impersonate`;
|
|
35
35
|
return this.client.request('POST', path);
|
|
36
36
|
}
|
|
37
37
|
async setUserRole(params) {
|
|
38
|
-
const path = `/users/${params.id}/role`;
|
|
38
|
+
const path = `/admin/users/${params.id}/role`;
|
|
39
39
|
return this.client.request('POST', path);
|
|
40
40
|
}
|
|
41
41
|
async listSessions() {
|
|
42
|
-
const path = '/sessions';
|
|
42
|
+
const path = '/admin/sessions';
|
|
43
43
|
return this.client.request('GET', path);
|
|
44
44
|
}
|
|
45
45
|
async revokeSession(params) {
|
|
46
|
-
const path = `/sessions/${params.id}`;
|
|
46
|
+
const path = `/admin/sessions/${params.id}`;
|
|
47
47
|
return this.client.request('DELETE', path);
|
|
48
48
|
}
|
|
49
49
|
async getStats() {
|
|
50
|
-
const path = '/stats';
|
|
50
|
+
const path = '/admin/stats';
|
|
51
51
|
return this.client.request('GET', path);
|
|
52
52
|
}
|
|
53
53
|
async getAuditLogs() {
|
|
54
|
-
const path = '/audit-logs';
|
|
54
|
+
const path = '/admin/audit-logs';
|
|
55
55
|
return this.client.request('GET', path);
|
|
56
56
|
}
|
|
57
57
|
}
|
package/dist/plugins/apikey.js
CHANGED
|
@@ -11,43 +11,43 @@ class ApikeyPlugin {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
async createAPIKey(request) {
|
|
14
|
-
const path = '/
|
|
14
|
+
const path = '/api-keys';
|
|
15
15
|
return this.client.request('POST', path, {
|
|
16
16
|
body: request,
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
async listAPIKeys(request) {
|
|
20
|
-
const path = '/
|
|
20
|
+
const path = '/api-keys';
|
|
21
21
|
return this.client.request('GET', path, {
|
|
22
22
|
query: this.client.toQueryParams(request),
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
async getAPIKey(params, request) {
|
|
26
|
-
const path =
|
|
26
|
+
const path = `/api-keys/${params.id}`;
|
|
27
27
|
return this.client.request('GET', path, {
|
|
28
28
|
query: this.client.toQueryParams(request),
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
async updateAPIKey(params, request) {
|
|
32
|
-
const path =
|
|
32
|
+
const path = `/api-keys/${params.id}`;
|
|
33
33
|
return this.client.request('PUT', path, {
|
|
34
34
|
body: request,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
async deleteAPIKey(params, request) {
|
|
38
|
-
const path =
|
|
38
|
+
const path = `/api-keys/${params.id}`;
|
|
39
39
|
return this.client.request('DELETE', path, {
|
|
40
40
|
query: this.client.toQueryParams(request),
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
async rotateAPIKey(params, request) {
|
|
44
|
-
const path =
|
|
44
|
+
const path = `/api-keys/${params.id}/rotate`;
|
|
45
45
|
return this.client.request('POST', path, {
|
|
46
46
|
body: request,
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
async verifyAPIKey(request) {
|
|
50
|
-
const path = '/verify';
|
|
50
|
+
const path = '/api-keys/verify';
|
|
51
51
|
return this.client.request('POST', path, {
|
|
52
52
|
body: request,
|
|
53
53
|
});
|
|
@@ -137,31 +137,31 @@ class BackupauthPlugin {
|
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
async listRecoverySessions() {
|
|
140
|
-
const path = '/sessions';
|
|
140
|
+
const path = '/admin/sessions';
|
|
141
141
|
return this.client.request('GET', path);
|
|
142
142
|
}
|
|
143
143
|
async approveRecovery(params, request) {
|
|
144
|
-
const path = `/sessions/${params.id}/approve`;
|
|
144
|
+
const path = `/admin/sessions/${params.id}/approve`;
|
|
145
145
|
return this.client.request('POST', path, {
|
|
146
146
|
body: request,
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
async rejectRecovery(params, request) {
|
|
150
|
-
const path = `/sessions/${params.id}/reject`;
|
|
150
|
+
const path = `/admin/sessions/${params.id}/reject`;
|
|
151
151
|
return this.client.request('POST', path, {
|
|
152
152
|
body: request,
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
async getRecoveryStats() {
|
|
156
|
-
const path = '/stats';
|
|
156
|
+
const path = '/admin/stats';
|
|
157
157
|
return this.client.request('GET', path);
|
|
158
158
|
}
|
|
159
159
|
async getRecoveryConfig() {
|
|
160
|
-
const path = '/config';
|
|
160
|
+
const path = '/admin/config';
|
|
161
161
|
return this.client.request('GET', path);
|
|
162
162
|
}
|
|
163
163
|
async updateRecoveryConfig(request) {
|
|
164
|
-
const path = '/config';
|
|
164
|
+
const path = '/admin/config';
|
|
165
165
|
return this.client.request('PUT', path, {
|
|
166
166
|
body: request,
|
|
167
167
|
});
|