@authsome/client 0.0.5 → 0.0.7
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 +43 -43
- package/dist/client.js +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +62 -62
- package/dist/plugins/apikey.d.ts +3 -3
- package/dist/plugins/apikey.js +6 -6
- package/dist/plugins/notification.d.ts +3 -3
- package/dist/plugins/notification.js +6 -6
- package/dist/plugins/oidcprovider.d.ts +4 -0
- package/dist/plugins/oidcprovider.js +22 -0
- package/dist/plugins/organization.d.ts +15 -15
- package/dist/plugins/organization.js +28 -28
- package/dist/plugins/passkey.js +7 -7
- package/dist/plugins/webhook.js +4 -4
- package/dist/types.d.ts +3912 -3148
- package/package.json +2 -2
- package/src/client.ts +43 -43
- package/src/index.ts +20 -20
- package/src/plugins/apikey.ts +7 -7
- package/src/plugins/notification.ts +7 -7
- package/src/plugins/oidcprovider.ts +26 -0
- package/src/plugins/organization.ts +35 -35
- package/src/plugins/passkey.ts +7 -7
- package/src/plugins/webhook.ts +4 -4
- package/src/types.ts +4098 -3201
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 {
|
|
4
|
-
import { UsernamePlugin } from './plugins/username';
|
|
5
|
-
import { WebhookPlugin } from './plugins/webhook';
|
|
3
|
+
import { AnonymousPlugin } from './plugins/anonymous';
|
|
6
4
|
import { EmailverificationPlugin } from './plugins/emailverification';
|
|
7
|
-
import { BackupauthPlugin } from './plugins/backupauth';
|
|
8
|
-
import { JwtPlugin } from './plugins/jwt';
|
|
9
|
-
import { SecretsPlugin } from './plugins/secrets';
|
|
10
|
-
import { EmailotpPlugin } from './plugins/emailotp';
|
|
11
5
|
import { IdverificationPlugin } from './plugins/idverification';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { AnonymousPlugin } from './plugins/anonymous';
|
|
6
|
+
import { PasskeyPlugin } from './plugins/passkey';
|
|
7
|
+
import { PermissionsPlugin } from './plugins/permissions';
|
|
15
8
|
import { MfaPlugin } from './plugins/mfa';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { ApikeyPlugin } from './plugins/apikey';
|
|
9
|
+
import { MultiappPlugin } from './plugins/multiapp';
|
|
10
|
+
import { SsoPlugin } from './plugins/sso';
|
|
19
11
|
import { CompliancePlugin } from './plugins/compliance';
|
|
20
|
-
import { ConsentPlugin } from './plugins/consent';
|
|
21
12
|
import { MagiclinkPlugin } from './plugins/magiclink';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
13
|
+
import { PhonePlugin } from './plugins/phone';
|
|
14
|
+
import { WebhookPlugin } from './plugins/webhook';
|
|
15
|
+
import { AdminPlugin } from './plugins/admin';
|
|
24
16
|
import { StepupPlugin } from './plugins/stepup';
|
|
25
17
|
import { ImpersonationPlugin } from './plugins/impersonation';
|
|
26
|
-
import {
|
|
27
|
-
import { PasskeyPlugin } from './plugins/passkey';
|
|
28
|
-
import { SocialPlugin } from './plugins/social';
|
|
18
|
+
import { JwtPlugin } from './plugins/jwt';
|
|
29
19
|
import { NotificationPlugin } from './plugins/notification';
|
|
20
|
+
import { UsernamePlugin } from './plugins/username';
|
|
21
|
+
import { ConsentPlugin } from './plugins/consent';
|
|
22
|
+
import { MultisessionPlugin } from './plugins/multisession';
|
|
23
|
+
import { OidcproviderPlugin } from './plugins/oidcprovider';
|
|
24
|
+
import { ApikeyPlugin } from './plugins/apikey';
|
|
25
|
+
import { CmsPlugin } from './plugins/cms';
|
|
26
|
+
import { BackupauthPlugin } from './plugins/backupauth';
|
|
30
27
|
import { OrganizationPlugin } from './plugins/organization';
|
|
31
|
-
import {
|
|
28
|
+
import { TwofaPlugin } from './plugins/twofa';
|
|
29
|
+
import { EmailotpPlugin } from './plugins/emailotp';
|
|
30
|
+
import { SecretsPlugin } from './plugins/secrets';
|
|
31
|
+
import { SocialPlugin } from './plugins/social';
|
|
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
|
-
|
|
94
|
-
username: () => UsernamePlugin | undefined;
|
|
95
|
-
webhook: () => WebhookPlugin | undefined;
|
|
93
|
+
anonymous: () => AnonymousPlugin | undefined;
|
|
96
94
|
emailverification: () => EmailverificationPlugin | undefined;
|
|
97
|
-
backupauth: () => BackupauthPlugin | undefined;
|
|
98
|
-
jwt: () => JwtPlugin | undefined;
|
|
99
|
-
secrets: () => SecretsPlugin | undefined;
|
|
100
|
-
emailotp: () => EmailotpPlugin | undefined;
|
|
101
95
|
idverification: () => IdverificationPlugin | undefined;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
anonymous: () => AnonymousPlugin | undefined;
|
|
96
|
+
passkey: () => PasskeyPlugin | undefined;
|
|
97
|
+
permissions: () => PermissionsPlugin | undefined;
|
|
105
98
|
mfa: () => MfaPlugin | undefined;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
apikey: () => ApikeyPlugin | undefined;
|
|
99
|
+
multiapp: () => MultiappPlugin | undefined;
|
|
100
|
+
sso: () => SsoPlugin | undefined;
|
|
109
101
|
compliance: () => CompliancePlugin | undefined;
|
|
110
|
-
consent: () => ConsentPlugin | undefined;
|
|
111
102
|
magiclink: () => MagiclinkPlugin | undefined;
|
|
112
|
-
|
|
113
|
-
|
|
103
|
+
phone: () => PhonePlugin | undefined;
|
|
104
|
+
webhook: () => WebhookPlugin | undefined;
|
|
105
|
+
admin: () => AdminPlugin | undefined;
|
|
114
106
|
stepup: () => StepupPlugin | undefined;
|
|
115
107
|
impersonation: () => ImpersonationPlugin | undefined;
|
|
116
|
-
|
|
117
|
-
passkey: () => PasskeyPlugin | undefined;
|
|
118
|
-
social: () => SocialPlugin | undefined;
|
|
108
|
+
jwt: () => JwtPlugin | undefined;
|
|
119
109
|
notification: () => NotificationPlugin | undefined;
|
|
110
|
+
username: () => UsernamePlugin | undefined;
|
|
111
|
+
consent: () => ConsentPlugin | undefined;
|
|
112
|
+
multisession: () => MultisessionPlugin | undefined;
|
|
113
|
+
oidcprovider: () => OidcproviderPlugin | undefined;
|
|
114
|
+
apikey: () => ApikeyPlugin | undefined;
|
|
115
|
+
cms: () => CmsPlugin | undefined;
|
|
116
|
+
backupauth: () => BackupauthPlugin | undefined;
|
|
120
117
|
organization: () => OrganizationPlugin | undefined;
|
|
121
|
-
|
|
118
|
+
twofa: () => TwofaPlugin | undefined;
|
|
119
|
+
emailotp: () => EmailotpPlugin | undefined;
|
|
120
|
+
secrets: () => SecretsPlugin | undefined;
|
|
121
|
+
social: () => SocialPlugin | 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;
|
|
129
130
|
email: string;
|
|
130
131
|
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
|
+
refreshToken: string;
|
|
169
|
+
expiresAt: string;
|
|
168
170
|
refreshExpiresAt: string;
|
|
169
171
|
session: any;
|
|
170
172
|
accessToken: string;
|
|
171
|
-
refreshToken: string;
|
|
172
|
-
expiresAt: 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
|
-
|
|
10
|
-
username: () => this.getPlugin('username'),
|
|
11
|
-
webhook: () => this.getPlugin('webhook'),
|
|
9
|
+
anonymous: () => this.getPlugin('anonymous'),
|
|
12
10
|
emailverification: () => this.getPlugin('emailverification'),
|
|
13
|
-
backupauth: () => this.getPlugin('backupauth'),
|
|
14
|
-
jwt: () => this.getPlugin('jwt'),
|
|
15
|
-
secrets: () => this.getPlugin('secrets'),
|
|
16
|
-
emailotp: () => this.getPlugin('emailotp'),
|
|
17
11
|
idverification: () => this.getPlugin('idverification'),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
anonymous: () => this.getPlugin('anonymous'),
|
|
12
|
+
passkey: () => this.getPlugin('passkey'),
|
|
13
|
+
permissions: () => this.getPlugin('permissions'),
|
|
21
14
|
mfa: () => this.getPlugin('mfa'),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
apikey: () => this.getPlugin('apikey'),
|
|
15
|
+
multiapp: () => this.getPlugin('multiapp'),
|
|
16
|
+
sso: () => this.getPlugin('sso'),
|
|
25
17
|
compliance: () => this.getPlugin('compliance'),
|
|
26
|
-
consent: () => this.getPlugin('consent'),
|
|
27
18
|
magiclink: () => this.getPlugin('magiclink'),
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
phone: () => this.getPlugin('phone'),
|
|
20
|
+
webhook: () => this.getPlugin('webhook'),
|
|
21
|
+
admin: () => this.getPlugin('admin'),
|
|
30
22
|
stepup: () => this.getPlugin('stepup'),
|
|
31
23
|
impersonation: () => this.getPlugin('impersonation'),
|
|
32
|
-
|
|
33
|
-
passkey: () => this.getPlugin('passkey'),
|
|
34
|
-
social: () => this.getPlugin('social'),
|
|
24
|
+
jwt: () => this.getPlugin('jwt'),
|
|
35
25
|
notification: () => this.getPlugin('notification'),
|
|
26
|
+
username: () => this.getPlugin('username'),
|
|
27
|
+
consent: () => this.getPlugin('consent'),
|
|
28
|
+
multisession: () => this.getPlugin('multisession'),
|
|
29
|
+
oidcprovider: () => this.getPlugin('oidcprovider'),
|
|
30
|
+
apikey: () => this.getPlugin('apikey'),
|
|
31
|
+
cms: () => this.getPlugin('cms'),
|
|
32
|
+
backupauth: () => this.getPlugin('backupauth'),
|
|
36
33
|
organization: () => this.getPlugin('organization'),
|
|
37
|
-
|
|
34
|
+
twofa: () => this.getPlugin('twofa'),
|
|
35
|
+
emailotp: () => this.getPlugin('emailotp'),
|
|
36
|
+
secrets: () => this.getPlugin('secrets'),
|
|
37
|
+
social: () => this.getPlugin('social'),
|
|
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 {
|
|
6
|
-
export { UsernamePlugin, usernameClient } from './plugins/username';
|
|
7
|
-
export { WebhookPlugin, webhookClient } from './plugins/webhook';
|
|
5
|
+
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
8
6
|
export { EmailverificationPlugin, emailverificationClient } from './plugins/emailverification';
|
|
9
|
-
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
10
|
-
export { JwtPlugin, jwtClient } from './plugins/jwt';
|
|
11
|
-
export { SecretsPlugin, secretsClient } from './plugins/secrets';
|
|
12
|
-
export { EmailotpPlugin, emailotpClient } from './plugins/emailotp';
|
|
13
7
|
export { IdverificationPlugin, idverificationClient } from './plugins/idverification';
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
8
|
+
export { PasskeyPlugin, passkeyClient } from './plugins/passkey';
|
|
9
|
+
export { PermissionsPlugin, permissionsClient } from './plugins/permissions';
|
|
17
10
|
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export { ApikeyPlugin, apikeyClient } from './plugins/apikey';
|
|
11
|
+
export { MultiappPlugin, multiappClient } from './plugins/multiapp';
|
|
12
|
+
export { SsoPlugin, ssoClient } from './plugins/sso';
|
|
21
13
|
export { CompliancePlugin, complianceClient } from './plugins/compliance';
|
|
22
|
-
export { ConsentPlugin, consentClient } from './plugins/consent';
|
|
23
14
|
export { MagiclinkPlugin, magiclinkClient } from './plugins/magiclink';
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
15
|
+
export { PhonePlugin, phoneClient } from './plugins/phone';
|
|
16
|
+
export { WebhookPlugin, webhookClient } from './plugins/webhook';
|
|
17
|
+
export { AdminPlugin, adminClient } from './plugins/admin';
|
|
26
18
|
export { StepupPlugin, stepupClient } from './plugins/stepup';
|
|
27
19
|
export { ImpersonationPlugin, impersonationClient } from './plugins/impersonation';
|
|
28
|
-
export {
|
|
29
|
-
export { PasskeyPlugin, passkeyClient } from './plugins/passkey';
|
|
30
|
-
export { SocialPlugin, socialClient } from './plugins/social';
|
|
20
|
+
export { JwtPlugin, jwtClient } from './plugins/jwt';
|
|
31
21
|
export { NotificationPlugin, notificationClient } from './plugins/notification';
|
|
22
|
+
export { UsernamePlugin, usernameClient } from './plugins/username';
|
|
23
|
+
export { ConsentPlugin, consentClient } from './plugins/consent';
|
|
24
|
+
export { MultisessionPlugin, multisessionClient } from './plugins/multisession';
|
|
25
|
+
export { OidcproviderPlugin, oidcproviderClient } from './plugins/oidcprovider';
|
|
26
|
+
export { ApikeyPlugin, apikeyClient } from './plugins/apikey';
|
|
27
|
+
export { CmsPlugin, cmsClient } from './plugins/cms';
|
|
28
|
+
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
32
29
|
export { OrganizationPlugin, organizationClient } from './plugins/organization';
|
|
33
|
-
export {
|
|
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';
|
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.OrganizationPlugin = exports.backupauthClient = exports.BackupauthPlugin = exports.cmsClient = exports.CmsPlugin = exports.apikeyClient = exports.ApikeyPlugin = exports.oidcproviderClient = exports.OidcproviderPlugin = exports.multisessionClient = exports.MultisessionPlugin = exports.consentClient = exports.ConsentPlugin = exports.usernameClient = exports.UsernamePlugin = exports.notificationClient = exports.NotificationPlugin = exports.jwtClient = exports.JwtPlugin = exports.impersonationClient = exports.ImpersonationPlugin = exports.stepupClient = exports.StepupPlugin = exports.adminClient = exports.AdminPlugin = exports.webhookClient = exports.WebhookPlugin = exports.phoneClient = exports.PhonePlugin = exports.magiclinkClient = exports.MagiclinkPlugin = exports.complianceClient = exports.CompliancePlugin = exports.ssoClient = exports.SsoPlugin = exports.multiappClient = exports.MultiappPlugin = exports.mfaClient = exports.MfaPlugin = exports.permissionsClient = exports.PermissionsPlugin = exports.passkeyClient = exports.PasskeyPlugin = exports.idverificationClient = exports.IdverificationPlugin = exports.emailverificationClient = exports.EmailverificationPlugin = exports.anonymousClient = exports.AnonymousPlugin = exports.AuthsomeClient = void 0;
|
|
19
|
+
exports.socialClient = exports.SocialPlugin = exports.secretsClient = exports.SecretsPlugin = exports.emailotpClient = exports.EmailotpPlugin = exports.twofaClient = exports.TwofaPlugin = exports.organizationClient = 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
|
|
26
|
-
Object.defineProperty(exports, "
|
|
27
|
-
Object.defineProperty(exports, "
|
|
28
|
-
var username_1 = require("./plugins/username");
|
|
29
|
-
Object.defineProperty(exports, "UsernamePlugin", { enumerable: true, get: function () { return username_1.UsernamePlugin; } });
|
|
30
|
-
Object.defineProperty(exports, "usernameClient", { enumerable: true, get: function () { return username_1.usernameClient; } });
|
|
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; } });
|
|
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; } });
|
|
34
28
|
var emailverification_1 = require("./plugins/emailverification");
|
|
35
29
|
Object.defineProperty(exports, "EmailverificationPlugin", { enumerable: true, get: function () { return emailverification_1.EmailverificationPlugin; } });
|
|
36
30
|
Object.defineProperty(exports, "emailverificationClient", { enumerable: true, get: function () { return emailverification_1.emailverificationClient; } });
|
|
37
|
-
var backupauth_1 = require("./plugins/backupauth");
|
|
38
|
-
Object.defineProperty(exports, "BackupauthPlugin", { enumerable: true, get: function () { return backupauth_1.BackupauthPlugin; } });
|
|
39
|
-
Object.defineProperty(exports, "backupauthClient", { enumerable: true, get: function () { return backupauth_1.backupauthClient; } });
|
|
40
|
-
var jwt_1 = require("./plugins/jwt");
|
|
41
|
-
Object.defineProperty(exports, "JwtPlugin", { enumerable: true, get: function () { return jwt_1.JwtPlugin; } });
|
|
42
|
-
Object.defineProperty(exports, "jwtClient", { enumerable: true, get: function () { return jwt_1.jwtClient; } });
|
|
43
|
-
var secrets_1 = require("./plugins/secrets");
|
|
44
|
-
Object.defineProperty(exports, "SecretsPlugin", { enumerable: true, get: function () { return secrets_1.SecretsPlugin; } });
|
|
45
|
-
Object.defineProperty(exports, "secretsClient", { enumerable: true, get: function () { return secrets_1.secretsClient; } });
|
|
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
31
|
var idverification_1 = require("./plugins/idverification");
|
|
50
32
|
Object.defineProperty(exports, "IdverificationPlugin", { enumerable: true, get: function () { return idverification_1.IdverificationPlugin; } });
|
|
51
33
|
Object.defineProperty(exports, "idverificationClient", { enumerable: true, get: function () { return idverification_1.idverificationClient; } });
|
|
52
|
-
var
|
|
53
|
-
Object.defineProperty(exports, "
|
|
54
|
-
Object.defineProperty(exports, "
|
|
55
|
-
var
|
|
56
|
-
Object.defineProperty(exports, "
|
|
57
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
|
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; } });
|
|
61
40
|
var mfa_1 = require("./plugins/mfa");
|
|
62
41
|
Object.defineProperty(exports, "MfaPlugin", { enumerable: true, get: function () { return mfa_1.MfaPlugin; } });
|
|
63
42
|
Object.defineProperty(exports, "mfaClient", { enumerable: true, get: function () { return mfa_1.mfaClient; } });
|
|
64
|
-
var
|
|
65
|
-
Object.defineProperty(exports, "
|
|
66
|
-
Object.defineProperty(exports, "
|
|
67
|
-
var
|
|
68
|
-
Object.defineProperty(exports, "
|
|
69
|
-
Object.defineProperty(exports, "
|
|
70
|
-
var apikey_1 = require("./plugins/apikey");
|
|
71
|
-
Object.defineProperty(exports, "ApikeyPlugin", { enumerable: true, get: function () { return apikey_1.ApikeyPlugin; } });
|
|
72
|
-
Object.defineProperty(exports, "apikeyClient", { enumerable: true, get: function () { return apikey_1.apikeyClient; } });
|
|
43
|
+
var multiapp_1 = require("./plugins/multiapp");
|
|
44
|
+
Object.defineProperty(exports, "MultiappPlugin", { enumerable: true, get: function () { return multiapp_1.MultiappPlugin; } });
|
|
45
|
+
Object.defineProperty(exports, "multiappClient", { enumerable: true, get: function () { return multiapp_1.multiappClient; } });
|
|
46
|
+
var sso_1 = require("./plugins/sso");
|
|
47
|
+
Object.defineProperty(exports, "SsoPlugin", { enumerable: true, get: function () { return sso_1.SsoPlugin; } });
|
|
48
|
+
Object.defineProperty(exports, "ssoClient", { enumerable: true, get: function () { return sso_1.ssoClient; } });
|
|
73
49
|
var compliance_1 = require("./plugins/compliance");
|
|
74
50
|
Object.defineProperty(exports, "CompliancePlugin", { enumerable: true, get: function () { return compliance_1.CompliancePlugin; } });
|
|
75
51
|
Object.defineProperty(exports, "complianceClient", { enumerable: true, get: function () { return compliance_1.complianceClient; } });
|
|
76
|
-
var consent_1 = require("./plugins/consent");
|
|
77
|
-
Object.defineProperty(exports, "ConsentPlugin", { enumerable: true, get: function () { return consent_1.ConsentPlugin; } });
|
|
78
|
-
Object.defineProperty(exports, "consentClient", { enumerable: true, get: function () { return consent_1.consentClient; } });
|
|
79
52
|
var magiclink_1 = require("./plugins/magiclink");
|
|
80
53
|
Object.defineProperty(exports, "MagiclinkPlugin", { enumerable: true, get: function () { return magiclink_1.MagiclinkPlugin; } });
|
|
81
54
|
Object.defineProperty(exports, "magiclinkClient", { enumerable: true, get: function () { return magiclink_1.magiclinkClient; } });
|
|
82
|
-
var
|
|
83
|
-
Object.defineProperty(exports, "
|
|
84
|
-
Object.defineProperty(exports, "
|
|
85
|
-
var
|
|
86
|
-
Object.defineProperty(exports, "
|
|
87
|
-
Object.defineProperty(exports, "
|
|
55
|
+
var phone_1 = require("./plugins/phone");
|
|
56
|
+
Object.defineProperty(exports, "PhonePlugin", { enumerable: true, get: function () { return phone_1.PhonePlugin; } });
|
|
57
|
+
Object.defineProperty(exports, "phoneClient", { enumerable: true, get: function () { return phone_1.phoneClient; } });
|
|
58
|
+
var webhook_1 = require("./plugins/webhook");
|
|
59
|
+
Object.defineProperty(exports, "WebhookPlugin", { enumerable: true, get: function () { return webhook_1.WebhookPlugin; } });
|
|
60
|
+
Object.defineProperty(exports, "webhookClient", { enumerable: true, get: function () { return webhook_1.webhookClient; } });
|
|
61
|
+
var admin_1 = require("./plugins/admin");
|
|
62
|
+
Object.defineProperty(exports, "AdminPlugin", { enumerable: true, get: function () { return admin_1.AdminPlugin; } });
|
|
63
|
+
Object.defineProperty(exports, "adminClient", { enumerable: true, get: function () { return admin_1.adminClient; } });
|
|
88
64
|
var stepup_1 = require("./plugins/stepup");
|
|
89
65
|
Object.defineProperty(exports, "StepupPlugin", { enumerable: true, get: function () { return stepup_1.StepupPlugin; } });
|
|
90
66
|
Object.defineProperty(exports, "stepupClient", { enumerable: true, get: function () { return stepup_1.stepupClient; } });
|
|
91
67
|
var impersonation_1 = require("./plugins/impersonation");
|
|
92
68
|
Object.defineProperty(exports, "ImpersonationPlugin", { enumerable: true, get: function () { return impersonation_1.ImpersonationPlugin; } });
|
|
93
69
|
Object.defineProperty(exports, "impersonationClient", { enumerable: true, get: function () { return impersonation_1.impersonationClient; } });
|
|
94
|
-
var
|
|
95
|
-
Object.defineProperty(exports, "
|
|
96
|
-
Object.defineProperty(exports, "
|
|
97
|
-
var passkey_1 = require("./plugins/passkey");
|
|
98
|
-
Object.defineProperty(exports, "PasskeyPlugin", { enumerable: true, get: function () { return passkey_1.PasskeyPlugin; } });
|
|
99
|
-
Object.defineProperty(exports, "passkeyClient", { enumerable: true, get: function () { return passkey_1.passkeyClient; } });
|
|
100
|
-
var social_1 = require("./plugins/social");
|
|
101
|
-
Object.defineProperty(exports, "SocialPlugin", { enumerable: true, get: function () { return social_1.SocialPlugin; } });
|
|
102
|
-
Object.defineProperty(exports, "socialClient", { enumerable: true, get: function () { return social_1.socialClient; } });
|
|
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; } });
|
|
103
73
|
var notification_1 = require("./plugins/notification");
|
|
104
74
|
Object.defineProperty(exports, "NotificationPlugin", { enumerable: true, get: function () { return notification_1.NotificationPlugin; } });
|
|
105
75
|
Object.defineProperty(exports, "notificationClient", { enumerable: true, get: function () { return notification_1.notificationClient; } });
|
|
76
|
+
var username_1 = require("./plugins/username");
|
|
77
|
+
Object.defineProperty(exports, "UsernamePlugin", { enumerable: true, get: function () { return username_1.UsernamePlugin; } });
|
|
78
|
+
Object.defineProperty(exports, "usernameClient", { enumerable: true, get: function () { return username_1.usernameClient; } });
|
|
79
|
+
var consent_1 = require("./plugins/consent");
|
|
80
|
+
Object.defineProperty(exports, "ConsentPlugin", { enumerable: true, get: function () { return consent_1.ConsentPlugin; } });
|
|
81
|
+
Object.defineProperty(exports, "consentClient", { enumerable: true, get: function () { return consent_1.consentClient; } });
|
|
82
|
+
var multisession_1 = require("./plugins/multisession");
|
|
83
|
+
Object.defineProperty(exports, "MultisessionPlugin", { enumerable: true, get: function () { return multisession_1.MultisessionPlugin; } });
|
|
84
|
+
Object.defineProperty(exports, "multisessionClient", { enumerable: true, get: function () { return multisession_1.multisessionClient; } });
|
|
85
|
+
var oidcprovider_1 = require("./plugins/oidcprovider");
|
|
86
|
+
Object.defineProperty(exports, "OidcproviderPlugin", { enumerable: true, get: function () { return oidcprovider_1.OidcproviderPlugin; } });
|
|
87
|
+
Object.defineProperty(exports, "oidcproviderClient", { enumerable: true, get: function () { return oidcprovider_1.oidcproviderClient; } });
|
|
88
|
+
var apikey_1 = require("./plugins/apikey");
|
|
89
|
+
Object.defineProperty(exports, "ApikeyPlugin", { enumerable: true, get: function () { return apikey_1.ApikeyPlugin; } });
|
|
90
|
+
Object.defineProperty(exports, "apikeyClient", { enumerable: true, get: function () { return apikey_1.apikeyClient; } });
|
|
91
|
+
var cms_1 = require("./plugins/cms");
|
|
92
|
+
Object.defineProperty(exports, "CmsPlugin", { enumerable: true, get: function () { return cms_1.CmsPlugin; } });
|
|
93
|
+
Object.defineProperty(exports, "cmsClient", { enumerable: true, get: function () { return cms_1.cmsClient; } });
|
|
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; } });
|
|
106
97
|
var organization_1 = require("./plugins/organization");
|
|
107
98
|
Object.defineProperty(exports, "OrganizationPlugin", { enumerable: true, get: function () { return organization_1.OrganizationPlugin; } });
|
|
108
99
|
Object.defineProperty(exports, "organizationClient", { enumerable: true, get: function () { return organization_1.organizationClient; } });
|
|
109
|
-
var
|
|
110
|
-
Object.defineProperty(exports, "
|
|
111
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
package/dist/plugins/apikey.d.ts
CHANGED
|
@@ -6,9 +6,6 @@ export declare class ApikeyPlugin implements ClientPlugin {
|
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
8
|
createAPIKey(request: types.CreateAPIKeyRequest): Promise<types.CreateAPIKeyResponse>;
|
|
9
|
-
rotateAPIKey(params: {
|
|
10
|
-
id: string;
|
|
11
|
-
}, request: types.RotateAPIKeyRequest): Promise<types.RotateAPIKeyResponse>;
|
|
12
9
|
listAPIKeys(request?: types.ListAPIKeysRequest): Promise<types.ListAPIKeysResponse>;
|
|
13
10
|
getAPIKey(params: {
|
|
14
11
|
id: string;
|
|
@@ -19,6 +16,9 @@ export declare class ApikeyPlugin implements ClientPlugin {
|
|
|
19
16
|
deleteAPIKey(params: {
|
|
20
17
|
id: string;
|
|
21
18
|
}, request?: types.DeleteAPIKeyRequest): Promise<types.MessageResponse>;
|
|
19
|
+
rotateAPIKey(params: {
|
|
20
|
+
id: string;
|
|
21
|
+
}, request: types.RotateAPIKeyRequest): Promise<types.RotateAPIKeyResponse>;
|
|
22
22
|
verifyAPIKey(request: types.VerifyAPIKeyRequest): Promise<types.VerifyAPIKeyResponse>;
|
|
23
23
|
}
|
|
24
24
|
export declare function apikeyClient(): ApikeyPlugin;
|
package/dist/plugins/apikey.js
CHANGED
|
@@ -16,12 +16,6 @@ class ApikeyPlugin {
|
|
|
16
16
|
body: request,
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
async rotateAPIKey(params, request) {
|
|
20
|
-
const path = `/${params.id}/rotate`;
|
|
21
|
-
return this.client.request('POST', path, {
|
|
22
|
-
body: request,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
19
|
async listAPIKeys(request) {
|
|
26
20
|
const path = '/listapikeys';
|
|
27
21
|
return this.client.request('GET', path, {
|
|
@@ -46,6 +40,12 @@ class ApikeyPlugin {
|
|
|
46
40
|
query: this.client.toQueryParams(request),
|
|
47
41
|
});
|
|
48
42
|
}
|
|
43
|
+
async rotateAPIKey(params, request) {
|
|
44
|
+
const path = `/${params.id}/rotate`;
|
|
45
|
+
return this.client.request('POST', path, {
|
|
46
|
+
body: request,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
49
|
async verifyAPIKey(request) {
|
|
50
50
|
const path = '/verify';
|
|
51
51
|
return this.client.request('POST', path, {
|
|
@@ -5,9 +5,6 @@ export declare class NotificationPlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "notification";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
previewTemplate(params: {
|
|
9
|
-
id: string;
|
|
10
|
-
}, request: types.PreviewTemplate_req): Promise<types.NotificationPreviewResponse>;
|
|
11
8
|
createTemplate(request: types.CreateTemplateRequest): Promise<types.NotificationTemplateResponse>;
|
|
12
9
|
getTemplate(params: {
|
|
13
10
|
id: string;
|
|
@@ -24,6 +21,9 @@ export declare class NotificationPlugin implements ClientPlugin {
|
|
|
24
21
|
}): Promise<types.NotificationStatusResponse>;
|
|
25
22
|
resetAllTemplates(): Promise<types.NotificationStatusResponse>;
|
|
26
23
|
getTemplateDefaults(): Promise<types.NotificationTemplateListResponse>;
|
|
24
|
+
previewTemplate(params: {
|
|
25
|
+
id: string;
|
|
26
|
+
}, request: types.PreviewTemplate_req): Promise<types.NotificationPreviewResponse>;
|
|
27
27
|
renderTemplate(request: types.RenderTemplate_req): Promise<types.NotificationPreviewResponse>;
|
|
28
28
|
sendNotification(request: types.SendRequest): Promise<types.NotificationResponse>;
|
|
29
29
|
getNotification(params: {
|
|
@@ -10,12 +10,6 @@ class NotificationPlugin {
|
|
|
10
10
|
init(client) {
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
|
-
async previewTemplate(params, request) {
|
|
14
|
-
const path = `/${params.id}/preview`;
|
|
15
|
-
return this.client.request('POST', path, {
|
|
16
|
-
body: request,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
13
|
async createTemplate(request) {
|
|
20
14
|
const path = '/createtemplate';
|
|
21
15
|
return this.client.request('POST', path, {
|
|
@@ -52,6 +46,12 @@ class NotificationPlugin {
|
|
|
52
46
|
const path = '/defaults';
|
|
53
47
|
return this.client.request('GET', path);
|
|
54
48
|
}
|
|
49
|
+
async previewTemplate(params, request) {
|
|
50
|
+
const path = `/${params.id}/preview`;
|
|
51
|
+
return this.client.request('POST', path, {
|
|
52
|
+
body: request,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
55
|
async renderTemplate(request) {
|
|
56
56
|
const path = '/render';
|
|
57
57
|
return this.client.request('POST', path, {
|
|
@@ -24,5 +24,9 @@ export declare class OidcproviderPlugin implements ClientPlugin {
|
|
|
24
24
|
userInfo(): Promise<types.UserInfoResponse>;
|
|
25
25
|
introspectToken(request: types.TokenIntrospectionRequest): Promise<types.TokenIntrospectionResponse>;
|
|
26
26
|
revokeToken(request: types.TokenRevocationRequest): Promise<types.StatusResponse>;
|
|
27
|
+
deviceAuthorize(request: types.DeviceAuthorizationRequest): Promise<types.DeviceAuthorizationResponse>;
|
|
28
|
+
deviceCodeEntry(): Promise<void>;
|
|
29
|
+
deviceVerify(request: types.DeviceVerificationRequest): Promise<void>;
|
|
30
|
+
deviceAuthorizeDecision(request: types.DeviceAuthorizationDecisionRequest): Promise<void>;
|
|
27
31
|
}
|
|
28
32
|
export declare function oidcproviderClient(): OidcproviderPlugin;
|
|
@@ -74,6 +74,28 @@ class OidcproviderPlugin {
|
|
|
74
74
|
body: request,
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
+
async deviceAuthorize(request) {
|
|
78
|
+
const path = '/device_authorization';
|
|
79
|
+
return this.client.request('POST', path, {
|
|
80
|
+
body: request,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
async deviceCodeEntry() {
|
|
84
|
+
const path = '/devicecodeentry';
|
|
85
|
+
return this.client.request('GET', path);
|
|
86
|
+
}
|
|
87
|
+
async deviceVerify(request) {
|
|
88
|
+
const path = '/verify';
|
|
89
|
+
return this.client.request('POST', path, {
|
|
90
|
+
body: request,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
async deviceAuthorizeDecision(request) {
|
|
94
|
+
const path = '/authorize';
|
|
95
|
+
return this.client.request('POST', path, {
|
|
96
|
+
body: request,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
77
99
|
}
|
|
78
100
|
exports.OidcproviderPlugin = OidcproviderPlugin;
|
|
79
101
|
function oidcproviderClient() {
|
|
@@ -6,34 +6,27 @@ export declare class OrganizationPlugin implements ClientPlugin {
|
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
8
|
createOrganization(): Promise<types.Organization>;
|
|
9
|
+
getOrganization(params: {
|
|
10
|
+
id: string;
|
|
11
|
+
}): Promise<types.Organization>;
|
|
12
|
+
listOrganizations(): Promise<types.Organization>;
|
|
9
13
|
updateOrganization(params: {
|
|
10
14
|
id: string;
|
|
11
15
|
}): Promise<types.Organization>;
|
|
12
16
|
deleteOrganization(params: {
|
|
13
17
|
id: string;
|
|
14
18
|
}): Promise<void>;
|
|
15
|
-
inviteMember(): Promise<void>;
|
|
16
|
-
removeMember(params: {
|
|
17
|
-
memberId: string;
|
|
18
|
-
}): Promise<void>;
|
|
19
|
-
createTeam(): Promise<void>;
|
|
20
|
-
updateTeam(params: {
|
|
21
|
-
teamId: string;
|
|
22
|
-
}): Promise<void>;
|
|
23
|
-
deleteTeam(params: {
|
|
24
|
-
teamId: string;
|
|
25
|
-
}): Promise<void>;
|
|
26
|
-
getOrganization(params: {
|
|
27
|
-
id: string;
|
|
28
|
-
}): Promise<types.Organization>;
|
|
29
|
-
listOrganizations(): Promise<types.Organization>;
|
|
30
19
|
getOrganizationBySlug(params: {
|
|
31
20
|
slug: string;
|
|
32
21
|
}): Promise<types.Organization>;
|
|
33
22
|
listMembers(): Promise<void>;
|
|
23
|
+
inviteMember(): Promise<void>;
|
|
34
24
|
updateMember(params: {
|
|
35
25
|
memberId: string;
|
|
36
26
|
}): Promise<void>;
|
|
27
|
+
removeMember(params: {
|
|
28
|
+
memberId: string;
|
|
29
|
+
}): Promise<void>;
|
|
37
30
|
acceptInvitation(params: {
|
|
38
31
|
token: string;
|
|
39
32
|
}): Promise<void>;
|
|
@@ -41,5 +34,12 @@ export declare class OrganizationPlugin implements ClientPlugin {
|
|
|
41
34
|
token: string;
|
|
42
35
|
}): Promise<types.StatusResponse>;
|
|
43
36
|
listTeams(): Promise<void>;
|
|
37
|
+
createTeam(): Promise<void>;
|
|
38
|
+
updateTeam(params: {
|
|
39
|
+
teamId: string;
|
|
40
|
+
}): Promise<void>;
|
|
41
|
+
deleteTeam(params: {
|
|
42
|
+
teamId: string;
|
|
43
|
+
}): Promise<void>;
|
|
44
44
|
}
|
|
45
45
|
export declare function organizationClient(): OrganizationPlugin;
|