@authsome/client 0.0.8 → 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/cms.d.ts +1 -1
- package/dist/plugins/multiapp.d.ts +2 -2
- package/dist/plugins/oidcprovider.d.ts +3 -3
- package/dist/plugins/secrets.d.ts +1 -1
- package/dist/plugins/webhook.d.ts +1 -1
- package/dist/types.d.ts +3872 -3863
- package/package.json +1 -1
- package/src/client.ts +44 -44
- package/src/index.ts +20 -20
- package/src/plugins/cms.ts +1 -1
- package/src/plugins/multiapp.ts +2 -2
- package/src/plugins/oidcprovider.ts +6 -6
- package/src/plugins/secrets.ts +1 -1
- package/src/plugins/webhook.ts +1 -1
- package/src/types.ts +3910 -3902
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 { PermissionsPlugin } from './plugins/permissions';
|
|
4
|
-
import { IdverificationPlugin } from './plugins/idverification';
|
|
5
|
-
import { TwofaPlugin } from './plugins/twofa';
|
|
6
|
-
import { JwtPlugin } from './plugins/jwt';
|
|
7
|
-
import { AdminPlugin } from './plugins/admin';
|
|
8
|
-
import { ApikeyPlugin } from './plugins/apikey';
|
|
9
|
-
import { EmailverificationPlugin } from './plugins/emailverification';
|
|
10
|
-
import { BackupauthPlugin } from './plugins/backupauth';
|
|
11
|
-
import { StepupPlugin } from './plugins/stepup';
|
|
12
3
|
import { MultiappPlugin } from './plugins/multiapp';
|
|
13
|
-
import { AnonymousPlugin } from './plugins/anonymous';
|
|
14
|
-
import { MultisessionPlugin } from './plugins/multisession';
|
|
15
|
-
import { NotificationPlugin } from './plugins/notification';
|
|
16
4
|
import { PasskeyPlugin } from './plugins/passkey';
|
|
17
5
|
import { PhonePlugin } from './plugins/phone';
|
|
18
6
|
import { WebhookPlugin } from './plugins/webhook';
|
|
19
|
-
import {
|
|
7
|
+
import { ImpersonationPlugin } from './plugins/impersonation';
|
|
20
8
|
import { CmsPlugin } from './plugins/cms';
|
|
21
9
|
import { OidcproviderPlugin } from './plugins/oidcprovider';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
10
|
+
import { EmailotpPlugin } from './plugins/emailotp';
|
|
11
|
+
import { BackupauthPlugin } from './plugins/backupauth';
|
|
12
|
+
import { TwofaPlugin } from './plugins/twofa';
|
|
13
|
+
import { SocialPlugin } from './plugins/social';
|
|
14
|
+
import { AdminPlugin } from './plugins/admin';
|
|
15
|
+
import { EmailverificationPlugin } from './plugins/emailverification';
|
|
26
16
|
import { ConsentPlugin } from './plugins/consent';
|
|
17
|
+
import { StepupPlugin } from './plugins/stepup';
|
|
18
|
+
import { JwtPlugin } from './plugins/jwt';
|
|
19
|
+
import { MfaPlugin } from './plugins/mfa';
|
|
27
20
|
import { SecretsPlugin } from './plugins/secrets';
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
21
|
+
import { UsernamePlugin } from './plugins/username';
|
|
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';
|
|
27
|
+
import { MultisessionPlugin } from './plugins/multisession';
|
|
28
|
+
import { PermissionsPlugin } from './plugins/permissions';
|
|
29
|
+
import { AnonymousPlugin } from './plugins/anonymous';
|
|
30
|
+
import { ApikeyPlugin } from './plugins/apikey';
|
|
30
31
|
import { CompliancePlugin } from './plugins/compliance';
|
|
31
|
-
import { MfaPlugin } from './plugins/mfa';
|
|
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
|
-
permissions: () => PermissionsPlugin | undefined;
|
|
94
|
-
idverification: () => IdverificationPlugin | undefined;
|
|
95
|
-
twofa: () => TwofaPlugin | undefined;
|
|
96
|
-
jwt: () => JwtPlugin | undefined;
|
|
97
|
-
admin: () => AdminPlugin | undefined;
|
|
98
|
-
apikey: () => ApikeyPlugin | undefined;
|
|
99
|
-
emailverification: () => EmailverificationPlugin | undefined;
|
|
100
|
-
backupauth: () => BackupauthPlugin | undefined;
|
|
101
|
-
stepup: () => StepupPlugin | undefined;
|
|
102
93
|
multiapp: () => MultiappPlugin | undefined;
|
|
103
|
-
anonymous: () => AnonymousPlugin | undefined;
|
|
104
|
-
multisession: () => MultisessionPlugin | undefined;
|
|
105
|
-
notification: () => NotificationPlugin | undefined;
|
|
106
94
|
passkey: () => PasskeyPlugin | undefined;
|
|
107
95
|
phone: () => PhonePlugin | undefined;
|
|
108
96
|
webhook: () => WebhookPlugin | undefined;
|
|
109
|
-
|
|
97
|
+
impersonation: () => ImpersonationPlugin | undefined;
|
|
110
98
|
cms: () => CmsPlugin | undefined;
|
|
111
99
|
oidcprovider: () => OidcproviderPlugin | undefined;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
100
|
+
emailotp: () => EmailotpPlugin | undefined;
|
|
101
|
+
backupauth: () => BackupauthPlugin | undefined;
|
|
102
|
+
twofa: () => TwofaPlugin | undefined;
|
|
103
|
+
social: () => SocialPlugin | undefined;
|
|
104
|
+
admin: () => AdminPlugin | undefined;
|
|
105
|
+
emailverification: () => EmailverificationPlugin | undefined;
|
|
116
106
|
consent: () => ConsentPlugin | undefined;
|
|
107
|
+
stepup: () => StepupPlugin | undefined;
|
|
108
|
+
jwt: () => JwtPlugin | undefined;
|
|
109
|
+
mfa: () => MfaPlugin | undefined;
|
|
117
110
|
secrets: () => SecretsPlugin | undefined;
|
|
118
|
-
|
|
119
|
-
|
|
111
|
+
username: () => UsernamePlugin | undefined;
|
|
112
|
+
magiclink: () => MagiclinkPlugin | undefined;
|
|
113
|
+
organization: () => OrganizationPlugin | undefined;
|
|
114
|
+
sso: () => SsoPlugin | undefined;
|
|
115
|
+
idverification: () => IdverificationPlugin | undefined;
|
|
116
|
+
notification: () => NotificationPlugin | undefined;
|
|
117
|
+
multisession: () => MultisessionPlugin | undefined;
|
|
118
|
+
permissions: () => PermissionsPlugin | undefined;
|
|
119
|
+
anonymous: () => AnonymousPlugin | undefined;
|
|
120
|
+
apikey: () => ApikeyPlugin | undefined;
|
|
120
121
|
compliance: () => CompliancePlugin | undefined;
|
|
121
|
-
mfa: () => MfaPlugin | undefined;
|
|
122
122
|
};
|
|
123
123
|
request<T>(method: string, path: string, options?: {
|
|
124
124
|
body?: any;
|
|
@@ -137,9 +137,9 @@ export declare class AuthsomeClient {
|
|
|
137
137
|
email: string;
|
|
138
138
|
password: string;
|
|
139
139
|
}): Promise<{
|
|
140
|
-
requiresTwoFactor: boolean;
|
|
141
140
|
user: types.User;
|
|
142
141
|
session: types.Session;
|
|
142
|
+
requiresTwoFactor: boolean;
|
|
143
143
|
}>;
|
|
144
144
|
signOut(): Promise<{
|
|
145
145
|
success: boolean;
|
|
@@ -165,11 +165,11 @@ export declare class AuthsomeClient {
|
|
|
165
165
|
refreshSession(request: {
|
|
166
166
|
refreshToken: string;
|
|
167
167
|
}): Promise<{
|
|
168
|
-
session: any;
|
|
169
168
|
accessToken: string;
|
|
170
169
|
refreshToken: string;
|
|
171
170
|
expiresAt: string;
|
|
172
171
|
refreshExpiresAt: string;
|
|
172
|
+
session: any;
|
|
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
|
-
permissions: () => this.getPlugin('permissions'),
|
|
10
|
-
idverification: () => this.getPlugin('idverification'),
|
|
11
|
-
twofa: () => this.getPlugin('twofa'),
|
|
12
|
-
jwt: () => this.getPlugin('jwt'),
|
|
13
|
-
admin: () => this.getPlugin('admin'),
|
|
14
|
-
apikey: () => this.getPlugin('apikey'),
|
|
15
|
-
emailverification: () => this.getPlugin('emailverification'),
|
|
16
|
-
backupauth: () => this.getPlugin('backupauth'),
|
|
17
|
-
stepup: () => this.getPlugin('stepup'),
|
|
18
9
|
multiapp: () => this.getPlugin('multiapp'),
|
|
19
|
-
anonymous: () => this.getPlugin('anonymous'),
|
|
20
|
-
multisession: () => this.getPlugin('multisession'),
|
|
21
|
-
notification: () => this.getPlugin('notification'),
|
|
22
10
|
passkey: () => this.getPlugin('passkey'),
|
|
23
11
|
phone: () => this.getPlugin('phone'),
|
|
24
12
|
webhook: () => this.getPlugin('webhook'),
|
|
25
|
-
|
|
13
|
+
impersonation: () => this.getPlugin('impersonation'),
|
|
26
14
|
cms: () => this.getPlugin('cms'),
|
|
27
15
|
oidcprovider: () => this.getPlugin('oidcprovider'),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
emailotp: () => this.getPlugin('emailotp'),
|
|
17
|
+
backupauth: () => this.getPlugin('backupauth'),
|
|
18
|
+
twofa: () => this.getPlugin('twofa'),
|
|
19
|
+
social: () => this.getPlugin('social'),
|
|
20
|
+
admin: () => this.getPlugin('admin'),
|
|
21
|
+
emailverification: () => this.getPlugin('emailverification'),
|
|
32
22
|
consent: () => this.getPlugin('consent'),
|
|
23
|
+
stepup: () => this.getPlugin('stepup'),
|
|
24
|
+
jwt: () => this.getPlugin('jwt'),
|
|
25
|
+
mfa: () => this.getPlugin('mfa'),
|
|
33
26
|
secrets: () => this.getPlugin('secrets'),
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
username: () => this.getPlugin('username'),
|
|
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'),
|
|
33
|
+
multisession: () => this.getPlugin('multisession'),
|
|
34
|
+
permissions: () => this.getPlugin('permissions'),
|
|
35
|
+
anonymous: () => this.getPlugin('anonymous'),
|
|
36
|
+
apikey: () => this.getPlugin('apikey'),
|
|
36
37
|
compliance: () => this.getPlugin('compliance'),
|
|
37
|
-
mfa: () => this.getPlugin('mfa'),
|
|
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 { PermissionsPlugin, permissionsClient } from './plugins/permissions';
|
|
6
|
-
export { IdverificationPlugin, idverificationClient } from './plugins/idverification';
|
|
7
|
-
export { TwofaPlugin, twofaClient } from './plugins/twofa';
|
|
8
|
-
export { JwtPlugin, jwtClient } from './plugins/jwt';
|
|
9
|
-
export { AdminPlugin, adminClient } from './plugins/admin';
|
|
10
|
-
export { ApikeyPlugin, apikeyClient } from './plugins/apikey';
|
|
11
|
-
export { EmailverificationPlugin, emailverificationClient } from './plugins/emailverification';
|
|
12
|
-
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
13
|
-
export { StepupPlugin, stepupClient } from './plugins/stepup';
|
|
14
5
|
export { MultiappPlugin, multiappClient } from './plugins/multiapp';
|
|
15
|
-
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
16
|
-
export { MultisessionPlugin, multisessionClient } from './plugins/multisession';
|
|
17
|
-
export { NotificationPlugin, notificationClient } from './plugins/notification';
|
|
18
6
|
export { PasskeyPlugin, passkeyClient } from './plugins/passkey';
|
|
19
7
|
export { PhonePlugin, phoneClient } from './plugins/phone';
|
|
20
8
|
export { WebhookPlugin, webhookClient } from './plugins/webhook';
|
|
21
|
-
export {
|
|
9
|
+
export { ImpersonationPlugin, impersonationClient } from './plugins/impersonation';
|
|
22
10
|
export { CmsPlugin, cmsClient } from './plugins/cms';
|
|
23
11
|
export { OidcproviderPlugin, oidcproviderClient } from './plugins/oidcprovider';
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
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';
|
|
16
|
+
export { AdminPlugin, adminClient } from './plugins/admin';
|
|
17
|
+
export { EmailverificationPlugin, emailverificationClient } from './plugins/emailverification';
|
|
28
18
|
export { ConsentPlugin, consentClient } from './plugins/consent';
|
|
19
|
+
export { StepupPlugin, stepupClient } from './plugins/stepup';
|
|
20
|
+
export { JwtPlugin, jwtClient } from './plugins/jwt';
|
|
21
|
+
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
|
29
22
|
export { SecretsPlugin, secretsClient } from './plugins/secrets';
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
23
|
+
export { UsernamePlugin, usernameClient } from './plugins/username';
|
|
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';
|
|
29
|
+
export { MultisessionPlugin, multisessionClient } from './plugins/multisession';
|
|
30
|
+
export { PermissionsPlugin, permissionsClient } from './plugins/permissions';
|
|
31
|
+
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
32
|
+
export { ApikeyPlugin, apikeyClient } from './plugins/apikey';
|
|
32
33
|
export { CompliancePlugin, complianceClient } from './plugins/compliance';
|
|
33
|
-
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
package/dist/index.js
CHANGED
|
@@ -15,52 +15,16 @@ 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 permissions_1 = require("./plugins/permissions");
|
|
26
|
-
Object.defineProperty(exports, "PermissionsPlugin", { enumerable: true, get: function () { return permissions_1.PermissionsPlugin; } });
|
|
27
|
-
Object.defineProperty(exports, "permissionsClient", { enumerable: true, get: function () { return permissions_1.permissionsClient; } });
|
|
28
|
-
var idverification_1 = require("./plugins/idverification");
|
|
29
|
-
Object.defineProperty(exports, "IdverificationPlugin", { enumerable: true, get: function () { return idverification_1.IdverificationPlugin; } });
|
|
30
|
-
Object.defineProperty(exports, "idverificationClient", { enumerable: true, get: function () { return idverification_1.idverificationClient; } });
|
|
31
|
-
var twofa_1 = require("./plugins/twofa");
|
|
32
|
-
Object.defineProperty(exports, "TwofaPlugin", { enumerable: true, get: function () { return twofa_1.TwofaPlugin; } });
|
|
33
|
-
Object.defineProperty(exports, "twofaClient", { enumerable: true, get: function () { return twofa_1.twofaClient; } });
|
|
34
|
-
var jwt_1 = require("./plugins/jwt");
|
|
35
|
-
Object.defineProperty(exports, "JwtPlugin", { enumerable: true, get: function () { return jwt_1.JwtPlugin; } });
|
|
36
|
-
Object.defineProperty(exports, "jwtClient", { enumerable: true, get: function () { return jwt_1.jwtClient; } });
|
|
37
|
-
var admin_1 = require("./plugins/admin");
|
|
38
|
-
Object.defineProperty(exports, "AdminPlugin", { enumerable: true, get: function () { return admin_1.AdminPlugin; } });
|
|
39
|
-
Object.defineProperty(exports, "adminClient", { enumerable: true, get: function () { return admin_1.adminClient; } });
|
|
40
|
-
var apikey_1 = require("./plugins/apikey");
|
|
41
|
-
Object.defineProperty(exports, "ApikeyPlugin", { enumerable: true, get: function () { return apikey_1.ApikeyPlugin; } });
|
|
42
|
-
Object.defineProperty(exports, "apikeyClient", { enumerable: true, get: function () { return apikey_1.apikeyClient; } });
|
|
43
|
-
var emailverification_1 = require("./plugins/emailverification");
|
|
44
|
-
Object.defineProperty(exports, "EmailverificationPlugin", { enumerable: true, get: function () { return emailverification_1.EmailverificationPlugin; } });
|
|
45
|
-
Object.defineProperty(exports, "emailverificationClient", { enumerable: true, get: function () { return emailverification_1.emailverificationClient; } });
|
|
46
|
-
var backupauth_1 = require("./plugins/backupauth");
|
|
47
|
-
Object.defineProperty(exports, "BackupauthPlugin", { enumerable: true, get: function () { return backupauth_1.BackupauthPlugin; } });
|
|
48
|
-
Object.defineProperty(exports, "backupauthClient", { enumerable: true, get: function () { return backupauth_1.backupauthClient; } });
|
|
49
|
-
var stepup_1 = require("./plugins/stepup");
|
|
50
|
-
Object.defineProperty(exports, "StepupPlugin", { enumerable: true, get: function () { return stepup_1.StepupPlugin; } });
|
|
51
|
-
Object.defineProperty(exports, "stepupClient", { enumerable: true, get: function () { return stepup_1.stepupClient; } });
|
|
52
25
|
var multiapp_1 = require("./plugins/multiapp");
|
|
53
26
|
Object.defineProperty(exports, "MultiappPlugin", { enumerable: true, get: function () { return multiapp_1.MultiappPlugin; } });
|
|
54
27
|
Object.defineProperty(exports, "multiappClient", { enumerable: true, get: function () { return multiapp_1.multiappClient; } });
|
|
55
|
-
var anonymous_1 = require("./plugins/anonymous");
|
|
56
|
-
Object.defineProperty(exports, "AnonymousPlugin", { enumerable: true, get: function () { return anonymous_1.AnonymousPlugin; } });
|
|
57
|
-
Object.defineProperty(exports, "anonymousClient", { enumerable: true, get: function () { return anonymous_1.anonymousClient; } });
|
|
58
|
-
var multisession_1 = require("./plugins/multisession");
|
|
59
|
-
Object.defineProperty(exports, "MultisessionPlugin", { enumerable: true, get: function () { return multisession_1.MultisessionPlugin; } });
|
|
60
|
-
Object.defineProperty(exports, "multisessionClient", { enumerable: true, get: function () { return multisession_1.multisessionClient; } });
|
|
61
|
-
var notification_1 = require("./plugins/notification");
|
|
62
|
-
Object.defineProperty(exports, "NotificationPlugin", { enumerable: true, get: function () { return notification_1.NotificationPlugin; } });
|
|
63
|
-
Object.defineProperty(exports, "notificationClient", { enumerable: true, get: function () { return notification_1.notificationClient; } });
|
|
64
28
|
var passkey_1 = require("./plugins/passkey");
|
|
65
29
|
Object.defineProperty(exports, "PasskeyPlugin", { enumerable: true, get: function () { return passkey_1.PasskeyPlugin; } });
|
|
66
30
|
Object.defineProperty(exports, "passkeyClient", { enumerable: true, get: function () { return passkey_1.passkeyClient; } });
|
|
@@ -70,42 +34,78 @@ Object.defineProperty(exports, "phoneClient", { enumerable: true, get: function
|
|
|
70
34
|
var webhook_1 = require("./plugins/webhook");
|
|
71
35
|
Object.defineProperty(exports, "WebhookPlugin", { enumerable: true, get: function () { return webhook_1.WebhookPlugin; } });
|
|
72
36
|
Object.defineProperty(exports, "webhookClient", { enumerable: true, get: function () { return webhook_1.webhookClient; } });
|
|
73
|
-
var
|
|
74
|
-
Object.defineProperty(exports, "
|
|
75
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
|
76
40
|
var cms_1 = require("./plugins/cms");
|
|
77
41
|
Object.defineProperty(exports, "CmsPlugin", { enumerable: true, get: function () { return cms_1.CmsPlugin; } });
|
|
78
42
|
Object.defineProperty(exports, "cmsClient", { enumerable: true, get: function () { return cms_1.cmsClient; } });
|
|
79
43
|
var oidcprovider_1 = require("./plugins/oidcprovider");
|
|
80
44
|
Object.defineProperty(exports, "OidcproviderPlugin", { enumerable: true, get: function () { return oidcprovider_1.OidcproviderPlugin; } });
|
|
81
45
|
Object.defineProperty(exports, "oidcproviderClient", { enumerable: true, get: function () { return oidcprovider_1.oidcproviderClient; } });
|
|
82
|
-
var
|
|
83
|
-
Object.defineProperty(exports, "
|
|
84
|
-
Object.defineProperty(exports, "
|
|
85
|
-
var
|
|
86
|
-
Object.defineProperty(exports, "
|
|
87
|
-
Object.defineProperty(exports, "
|
|
88
|
-
var
|
|
89
|
-
Object.defineProperty(exports, "
|
|
90
|
-
Object.defineProperty(exports, "
|
|
91
|
-
var
|
|
92
|
-
Object.defineProperty(exports, "
|
|
93
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
|
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 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; } });
|
|
94
64
|
var consent_1 = require("./plugins/consent");
|
|
95
65
|
Object.defineProperty(exports, "ConsentPlugin", { enumerable: true, get: function () { return consent_1.ConsentPlugin; } });
|
|
96
66
|
Object.defineProperty(exports, "consentClient", { enumerable: true, get: function () { return consent_1.consentClient; } });
|
|
67
|
+
var stepup_1 = require("./plugins/stepup");
|
|
68
|
+
Object.defineProperty(exports, "StepupPlugin", { enumerable: true, get: function () { return stepup_1.StepupPlugin; } });
|
|
69
|
+
Object.defineProperty(exports, "stepupClient", { enumerable: true, get: function () { return stepup_1.stepupClient; } });
|
|
70
|
+
var jwt_1 = require("./plugins/jwt");
|
|
71
|
+
Object.defineProperty(exports, "JwtPlugin", { enumerable: true, get: function () { return jwt_1.JwtPlugin; } });
|
|
72
|
+
Object.defineProperty(exports, "jwtClient", { enumerable: true, get: function () { return jwt_1.jwtClient; } });
|
|
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; } });
|
|
97
76
|
var secrets_1 = require("./plugins/secrets");
|
|
98
77
|
Object.defineProperty(exports, "SecretsPlugin", { enumerable: true, get: function () { return secrets_1.SecretsPlugin; } });
|
|
99
78
|
Object.defineProperty(exports, "secretsClient", { enumerable: true, get: function () { return secrets_1.secretsClient; } });
|
|
100
|
-
var
|
|
101
|
-
Object.defineProperty(exports, "
|
|
102
|
-
Object.defineProperty(exports, "
|
|
103
|
-
var
|
|
104
|
-
Object.defineProperty(exports, "
|
|
105
|
-
Object.defineProperty(exports, "
|
|
79
|
+
var username_1 = require("./plugins/username");
|
|
80
|
+
Object.defineProperty(exports, "UsernamePlugin", { enumerable: true, get: function () { return username_1.UsernamePlugin; } });
|
|
81
|
+
Object.defineProperty(exports, "usernameClient", { enumerable: true, get: function () { return username_1.usernameClient; } });
|
|
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; } });
|
|
97
|
+
var multisession_1 = require("./plugins/multisession");
|
|
98
|
+
Object.defineProperty(exports, "MultisessionPlugin", { enumerable: true, get: function () { return multisession_1.MultisessionPlugin; } });
|
|
99
|
+
Object.defineProperty(exports, "multisessionClient", { enumerable: true, get: function () { return multisession_1.multisessionClient; } });
|
|
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; } });
|
|
106
|
+
var apikey_1 = require("./plugins/apikey");
|
|
107
|
+
Object.defineProperty(exports, "ApikeyPlugin", { enumerable: true, get: function () { return apikey_1.ApikeyPlugin; } });
|
|
108
|
+
Object.defineProperty(exports, "apikeyClient", { enumerable: true, get: function () { return apikey_1.apikeyClient; } });
|
|
106
109
|
var compliance_1 = require("./plugins/compliance");
|
|
107
110
|
Object.defineProperty(exports, "CompliancePlugin", { enumerable: true, get: function () { return compliance_1.CompliancePlugin; } });
|
|
108
111
|
Object.defineProperty(exports, "complianceClient", { enumerable: true, get: function () { return compliance_1.complianceClient; } });
|
|
109
|
-
var mfa_1 = require("./plugins/mfa");
|
|
110
|
-
Object.defineProperty(exports, "MfaPlugin", { enumerable: true, get: function () { return mfa_1.MfaPlugin; } });
|
|
111
|
-
Object.defineProperty(exports, "mfaClient", { enumerable: true, get: function () { return mfa_1.mfaClient; } });
|
package/dist/plugins/cms.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export declare class CmsPlugin implements ClientPlugin {
|
|
|
12
12
|
typeSlug: string;
|
|
13
13
|
}, request: types.CreateEntryRequest): Promise<void>;
|
|
14
14
|
getEntry(params: {
|
|
15
|
-
entryId: string;
|
|
16
15
|
typeSlug: string;
|
|
16
|
+
entryId: string;
|
|
17
17
|
}): Promise<void>;
|
|
18
18
|
updateEntry(params: {
|
|
19
19
|
typeSlug: string;
|
|
@@ -58,13 +58,13 @@ export declare class MultiappPlugin implements ClientPlugin {
|
|
|
58
58
|
appId: string;
|
|
59
59
|
}): Promise<types.TeamsListResponse>;
|
|
60
60
|
addTeamMember(params: {
|
|
61
|
-
appId: string;
|
|
62
61
|
teamId: string;
|
|
62
|
+
appId: string;
|
|
63
63
|
}, request: types.AddTeamMember_req): Promise<types.MultitenancyStatusResponse>;
|
|
64
64
|
removeTeamMember(params: {
|
|
65
|
+
appId: string;
|
|
65
66
|
teamId: string;
|
|
66
67
|
memberId: string;
|
|
67
|
-
appId: string;
|
|
68
68
|
}): Promise<types.MultitenancyStatusResponse>;
|
|
69
69
|
}
|
|
70
70
|
export declare function multiappClient(): MultiappPlugin;
|
|
@@ -25,8 +25,8 @@ export declare class OidcproviderPlugin implements ClientPlugin {
|
|
|
25
25
|
introspectToken(request: types.TokenIntrospectionRequest): Promise<types.TokenIntrospectionResponse>;
|
|
26
26
|
revokeToken(request: types.TokenRevocationRequest): Promise<types.StatusResponse>;
|
|
27
27
|
deviceAuthorize(request: types.DeviceAuthorizationRequest): Promise<types.DeviceAuthorizationResponse>;
|
|
28
|
-
deviceCodeEntry(): Promise<
|
|
29
|
-
deviceVerify(request: types.DeviceVerificationRequest): Promise<
|
|
30
|
-
deviceAuthorizeDecision(request: types.DeviceAuthorizationDecisionRequest): Promise<
|
|
28
|
+
deviceCodeEntry(): Promise<types.DeviceCodeEntryResponse>;
|
|
29
|
+
deviceVerify(request: types.DeviceVerificationRequest): Promise<types.DeviceVerifyResponse>;
|
|
30
|
+
deviceAuthorizeDecision(request: types.DeviceAuthorizationDecisionRequest): Promise<types.DeviceDecisionResponse>;
|
|
31
31
|
}
|
|
32
32
|
export declare function oidcproviderClient(): OidcproviderPlugin;
|
|
@@ -24,8 +24,8 @@ export declare class SecretsPlugin implements ClientPlugin {
|
|
|
24
24
|
id: string;
|
|
25
25
|
}, request?: types.GetVersionsRequest): Promise<types.ListVersionsResponse>;
|
|
26
26
|
rollback(params: {
|
|
27
|
-
id: string;
|
|
28
27
|
version: number;
|
|
28
|
+
id: string;
|
|
29
29
|
}, request: types.RollbackRequest): Promise<types.SecretDTO>;
|
|
30
30
|
getStats(): Promise<types.StatsDTO>;
|
|
31
31
|
getTree(request?: types.GetTreeRequest): Promise<types.SecretTreeNode>;
|
|
@@ -6,9 +6,9 @@ export declare class WebhookPlugin implements ClientPlugin {
|
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
8
|
create(request: {
|
|
9
|
+
events: string[];
|
|
9
10
|
secret?: string;
|
|
10
11
|
url: string;
|
|
11
|
-
events: string[];
|
|
12
12
|
}): Promise<{
|
|
13
13
|
webhook: types.Webhook;
|
|
14
14
|
}>;
|