@authsome/client 0.0.4 → 0.0.6
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 +41 -37
- package/dist/client.js +32 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +56 -56
- package/dist/plugins/admin.d.ts +5 -5
- package/dist/plugins/admin.js +21 -31
- package/dist/plugins/anonymous.d.ts +1 -1
- package/dist/plugins/anonymous.js +4 -2
- package/dist/plugins/apikey.d.ts +7 -7
- package/dist/plugins/apikey.js +41 -27
- package/dist/plugins/backupauth.d.ts +28 -28
- package/dist/plugins/backupauth.js +29 -29
- package/dist/plugins/cms.d.ts +11 -11
- package/dist/plugins/cms.js +67 -57
- package/dist/plugins/compliance.d.ts +33 -33
- package/dist/plugins/compliance.js +4 -2
- package/dist/plugins/consent.d.ts +18 -18
- package/dist/plugins/emailverification.d.ts +2 -2
- package/dist/plugins/emailverification.js +4 -2
- package/dist/plugins/idverification.d.ts +11 -11
- package/dist/plugins/idverification.js +11 -11
- package/dist/plugins/impersonation.d.ts +6 -6
- package/dist/plugins/impersonation.js +11 -15
- package/dist/plugins/jwt.d.ts +6 -5
- package/dist/plugins/jwt.js +21 -13
- package/dist/plugins/mfa.d.ts +9 -9
- package/dist/plugins/mfa.js +4 -8
- package/dist/plugins/multiapp.d.ts +19 -19
- package/dist/plugins/multiapp.js +35 -27
- package/dist/plugins/multisession.d.ts +5 -5
- package/dist/plugins/multisession.js +13 -11
- package/dist/plugins/notification.d.ts +15 -15
- package/dist/plugins/notification.js +12 -6
- package/dist/plugins/oidcprovider.d.ts +11 -11
- package/dist/plugins/oidcprovider.js +25 -19
- package/dist/plugins/organization.d.ts +5 -5
- package/dist/plugins/organization.js +16 -16
- package/dist/plugins/passkey.js +7 -7
- package/dist/plugins/permissions.js +3 -3
- package/dist/plugins/secrets.d.ts +10 -10
- package/dist/plugins/secrets.js +43 -27
- package/dist/plugins/social.js +1 -1
- package/dist/plugins/sso.js +6 -6
- package/dist/plugins/stepup.d.ts +13 -13
- package/dist/plugins/stepup.js +14 -14
- package/dist/plugins/twofa.d.ts +6 -6
- package/dist/plugins/twofa.js +12 -24
- package/dist/plugins/username.d.ts +2 -2
- package/dist/plugins/username.js +8 -4
- package/dist/plugins/webhook.js +4 -4
- package/dist/types.d.ts +3316 -2791
- package/package.json +3 -3
- package/src/client.ts +52 -37
- package/src/index.ts +18 -18
- package/src/plugins/admin.ts +21 -31
- package/src/plugins/anonymous.ts +4 -2
- package/src/plugins/apikey.ts +35 -21
- package/src/plugins/backupauth.ts +85 -85
- package/src/plugins/cms.ts +67 -57
- package/src/plugins/compliance.ts +68 -66
- package/src/plugins/consent.ts +36 -36
- package/src/plugins/emailverification.ts +6 -4
- package/src/plugins/idverification.ts +33 -33
- package/src/plugins/impersonation.ts +18 -22
- package/src/plugins/jwt.ts +23 -15
- package/src/plugins/mfa.ts +18 -22
- package/src/plugins/multiapp.ts +65 -57
- package/src/plugins/multisession.ts +20 -18
- package/src/plugins/notification.ts +36 -30
- package/src/plugins/oidcprovider.ts +41 -35
- package/src/plugins/organization.ts +26 -26
- package/src/plugins/passkey.ts +7 -7
- package/src/plugins/permissions.ts +3 -3
- package/src/plugins/secrets.ts +47 -31
- package/src/plugins/social.ts +1 -1
- package/src/plugins/sso.ts +6 -6
- package/src/plugins/stepup.ts +40 -40
- package/src/plugins/twofa.ts +12 -24
- package/src/plugins/username.ts +8 -4
- package/src/plugins/webhook.ts +4 -4
- package/src/types.ts +3576 -2874
package/dist/client.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { ClientPlugin } from './plugin';
|
|
2
2
|
import * as types from './types';
|
|
3
3
|
import { AdminPlugin } from './plugins/admin';
|
|
4
|
+
import { PermissionsPlugin } from './plugins/permissions';
|
|
5
|
+
import { WebhookPlugin } from './plugins/webhook';
|
|
4
6
|
import { CmsPlugin } from './plugins/cms';
|
|
7
|
+
import { EmailverificationPlugin } from './plugins/emailverification';
|
|
8
|
+
import { IdverificationPlugin } from './plugins/idverification';
|
|
9
|
+
import { MagiclinkPlugin } from './plugins/magiclink';
|
|
10
|
+
import { NotificationPlugin } from './plugins/notification';
|
|
11
|
+
import { TwofaPlugin } from './plugins/twofa';
|
|
12
|
+
import { ApikeyPlugin } from './plugins/apikey';
|
|
13
|
+
import { EmailotpPlugin } from './plugins/emailotp';
|
|
14
|
+
import { BackupauthPlugin } from './plugins/backupauth';
|
|
5
15
|
import { CompliancePlugin } from './plugins/compliance';
|
|
6
16
|
import { StepupPlugin } from './plugins/stepup';
|
|
17
|
+
import { MfaPlugin } from './plugins/mfa';
|
|
18
|
+
import { MultiappPlugin } from './plugins/multiapp';
|
|
19
|
+
import { PhonePlugin } from './plugins/phone';
|
|
20
|
+
import { AnonymousPlugin } from './plugins/anonymous';
|
|
7
21
|
import { PasskeyPlugin } from './plugins/passkey';
|
|
8
|
-
import {
|
|
9
|
-
import { EmailverificationPlugin } from './plugins/emailverification';
|
|
22
|
+
import { UsernamePlugin } from './plugins/username';
|
|
10
23
|
import { MultisessionPlugin } from './plugins/multisession';
|
|
24
|
+
import { ConsentPlugin } from './plugins/consent';
|
|
25
|
+
import { ImpersonationPlugin } from './plugins/impersonation';
|
|
11
26
|
import { OidcproviderPlugin } from './plugins/oidcprovider';
|
|
12
27
|
import { OrganizationPlugin } from './plugins/organization';
|
|
13
|
-
import { WebhookPlugin } from './plugins/webhook';
|
|
14
|
-
import { ImpersonationPlugin } from './plugins/impersonation';
|
|
15
|
-
import { MagiclinkPlugin } from './plugins/magiclink';
|
|
16
|
-
import { SecretsPlugin } from './plugins/secrets';
|
|
17
28
|
import { SsoPlugin } from './plugins/sso';
|
|
18
|
-
import {
|
|
19
|
-
import { BackupauthPlugin } from './plugins/backupauth';
|
|
20
|
-
import { IdverificationPlugin } from './plugins/idverification';
|
|
21
|
-
import { TwofaPlugin } from './plugins/twofa';
|
|
22
|
-
import { EmailotpPlugin } from './plugins/emailotp';
|
|
23
|
-
import { NotificationPlugin } from './plugins/notification';
|
|
24
|
-
import { PermissionsPlugin } from './plugins/permissions';
|
|
25
|
-
import { UsernamePlugin } from './plugins/username';
|
|
26
|
-
import { ConsentPlugin } from './plugins/consent';
|
|
27
|
-
import { MfaPlugin } from './plugins/mfa';
|
|
29
|
+
import { SecretsPlugin } from './plugins/secrets';
|
|
28
30
|
import { SocialPlugin } from './plugins/social';
|
|
29
31
|
import { JwtPlugin } from './plugins/jwt';
|
|
30
|
-
import { MultiappPlugin } from './plugins/multiapp';
|
|
31
|
-
import { PhonePlugin } from './plugins/phone';
|
|
32
32
|
/**
|
|
33
33
|
* AuthSome client configuration
|
|
34
34
|
* Supports multiple authentication methods that can be used simultaneously:
|
|
@@ -78,6 +78,10 @@ export declare class AuthsomeClient {
|
|
|
78
78
|
*/
|
|
79
79
|
setSecretKey(secretKey: string): void;
|
|
80
80
|
setBasePath(basePath: string): void;
|
|
81
|
+
/**
|
|
82
|
+
* Convert an object to query parameters, handling optional values and type conversion
|
|
83
|
+
*/
|
|
84
|
+
toQueryParams(obj?: Record<string, any>): Record<string, string> | undefined;
|
|
81
85
|
/**
|
|
82
86
|
* Set global headers for all requests
|
|
83
87
|
* @param headers - Headers to set
|
|
@@ -87,34 +91,34 @@ export declare class AuthsomeClient {
|
|
|
87
91
|
getPlugin<T extends ClientPlugin>(id: string): T | undefined;
|
|
88
92
|
readonly $plugins: {
|
|
89
93
|
admin: () => AdminPlugin | undefined;
|
|
94
|
+
permissions: () => PermissionsPlugin | undefined;
|
|
95
|
+
webhook: () => WebhookPlugin | undefined;
|
|
90
96
|
cms: () => CmsPlugin | undefined;
|
|
97
|
+
emailverification: () => EmailverificationPlugin | undefined;
|
|
98
|
+
idverification: () => IdverificationPlugin | undefined;
|
|
99
|
+
magiclink: () => MagiclinkPlugin | undefined;
|
|
100
|
+
notification: () => NotificationPlugin | undefined;
|
|
101
|
+
twofa: () => TwofaPlugin | undefined;
|
|
102
|
+
apikey: () => ApikeyPlugin | undefined;
|
|
103
|
+
emailotp: () => EmailotpPlugin | undefined;
|
|
104
|
+
backupauth: () => BackupauthPlugin | undefined;
|
|
91
105
|
compliance: () => CompliancePlugin | undefined;
|
|
92
106
|
stepup: () => StepupPlugin | undefined;
|
|
107
|
+
mfa: () => MfaPlugin | undefined;
|
|
108
|
+
multiapp: () => MultiappPlugin | undefined;
|
|
109
|
+
phone: () => PhonePlugin | undefined;
|
|
110
|
+
anonymous: () => AnonymousPlugin | undefined;
|
|
93
111
|
passkey: () => PasskeyPlugin | undefined;
|
|
94
|
-
|
|
95
|
-
emailverification: () => EmailverificationPlugin | undefined;
|
|
112
|
+
username: () => UsernamePlugin | undefined;
|
|
96
113
|
multisession: () => MultisessionPlugin | undefined;
|
|
114
|
+
consent: () => ConsentPlugin | undefined;
|
|
115
|
+
impersonation: () => ImpersonationPlugin | undefined;
|
|
97
116
|
oidcprovider: () => OidcproviderPlugin | undefined;
|
|
98
117
|
organization: () => OrganizationPlugin | undefined;
|
|
99
|
-
webhook: () => WebhookPlugin | undefined;
|
|
100
|
-
impersonation: () => ImpersonationPlugin | undefined;
|
|
101
|
-
magiclink: () => MagiclinkPlugin | undefined;
|
|
102
|
-
secrets: () => SecretsPlugin | undefined;
|
|
103
118
|
sso: () => SsoPlugin | undefined;
|
|
104
|
-
|
|
105
|
-
backupauth: () => BackupauthPlugin | undefined;
|
|
106
|
-
idverification: () => IdverificationPlugin | undefined;
|
|
107
|
-
twofa: () => TwofaPlugin | undefined;
|
|
108
|
-
emailotp: () => EmailotpPlugin | undefined;
|
|
109
|
-
notification: () => NotificationPlugin | undefined;
|
|
110
|
-
permissions: () => PermissionsPlugin | undefined;
|
|
111
|
-
username: () => UsernamePlugin | undefined;
|
|
112
|
-
consent: () => ConsentPlugin | undefined;
|
|
113
|
-
mfa: () => MfaPlugin | undefined;
|
|
119
|
+
secrets: () => SecretsPlugin | undefined;
|
|
114
120
|
social: () => SocialPlugin | undefined;
|
|
115
121
|
jwt: () => JwtPlugin | undefined;
|
|
116
|
-
multiapp: () => MultiappPlugin | undefined;
|
|
117
|
-
phone: () => PhonePlugin | undefined;
|
|
118
122
|
};
|
|
119
123
|
request<T>(method: string, path: string, options?: {
|
|
120
124
|
body?: any;
|
|
@@ -133,9 +137,9 @@ export declare class AuthsomeClient {
|
|
|
133
137
|
email: string;
|
|
134
138
|
password: string;
|
|
135
139
|
}): Promise<{
|
|
140
|
+
user: types.User;
|
|
136
141
|
session: types.Session;
|
|
137
142
|
requiresTwoFactor: boolean;
|
|
138
|
-
user: types.User;
|
|
139
143
|
}>;
|
|
140
144
|
signOut(): Promise<{
|
|
141
145
|
success: boolean;
|
package/dist/client.js
CHANGED
|
@@ -7,34 +7,34 @@ class AuthsomeClient {
|
|
|
7
7
|
constructor(config) {
|
|
8
8
|
this.$plugins = {
|
|
9
9
|
admin: () => this.getPlugin('admin'),
|
|
10
|
+
permissions: () => this.getPlugin('permissions'),
|
|
11
|
+
webhook: () => this.getPlugin('webhook'),
|
|
10
12
|
cms: () => this.getPlugin('cms'),
|
|
13
|
+
emailverification: () => this.getPlugin('emailverification'),
|
|
14
|
+
idverification: () => this.getPlugin('idverification'),
|
|
15
|
+
magiclink: () => this.getPlugin('magiclink'),
|
|
16
|
+
notification: () => this.getPlugin('notification'),
|
|
17
|
+
twofa: () => this.getPlugin('twofa'),
|
|
18
|
+
apikey: () => this.getPlugin('apikey'),
|
|
19
|
+
emailotp: () => this.getPlugin('emailotp'),
|
|
20
|
+
backupauth: () => this.getPlugin('backupauth'),
|
|
11
21
|
compliance: () => this.getPlugin('compliance'),
|
|
12
22
|
stepup: () => this.getPlugin('stepup'),
|
|
23
|
+
mfa: () => this.getPlugin('mfa'),
|
|
24
|
+
multiapp: () => this.getPlugin('multiapp'),
|
|
25
|
+
phone: () => this.getPlugin('phone'),
|
|
26
|
+
anonymous: () => this.getPlugin('anonymous'),
|
|
13
27
|
passkey: () => this.getPlugin('passkey'),
|
|
14
|
-
|
|
15
|
-
emailverification: () => this.getPlugin('emailverification'),
|
|
28
|
+
username: () => this.getPlugin('username'),
|
|
16
29
|
multisession: () => this.getPlugin('multisession'),
|
|
30
|
+
consent: () => this.getPlugin('consent'),
|
|
31
|
+
impersonation: () => this.getPlugin('impersonation'),
|
|
17
32
|
oidcprovider: () => this.getPlugin('oidcprovider'),
|
|
18
33
|
organization: () => this.getPlugin('organization'),
|
|
19
|
-
webhook: () => this.getPlugin('webhook'),
|
|
20
|
-
impersonation: () => this.getPlugin('impersonation'),
|
|
21
|
-
magiclink: () => this.getPlugin('magiclink'),
|
|
22
|
-
secrets: () => this.getPlugin('secrets'),
|
|
23
34
|
sso: () => this.getPlugin('sso'),
|
|
24
|
-
|
|
25
|
-
backupauth: () => this.getPlugin('backupauth'),
|
|
26
|
-
idverification: () => this.getPlugin('idverification'),
|
|
27
|
-
twofa: () => this.getPlugin('twofa'),
|
|
28
|
-
emailotp: () => this.getPlugin('emailotp'),
|
|
29
|
-
notification: () => this.getPlugin('notification'),
|
|
30
|
-
permissions: () => this.getPlugin('permissions'),
|
|
31
|
-
username: () => this.getPlugin('username'),
|
|
32
|
-
consent: () => this.getPlugin('consent'),
|
|
33
|
-
mfa: () => this.getPlugin('mfa'),
|
|
35
|
+
secrets: () => this.getPlugin('secrets'),
|
|
34
36
|
social: () => this.getPlugin('social'),
|
|
35
37
|
jwt: () => this.getPlugin('jwt'),
|
|
36
|
-
multiapp: () => this.getPlugin('multiapp'),
|
|
37
|
-
phone: () => this.getPlugin('phone'),
|
|
38
38
|
};
|
|
39
39
|
this.baseURL = config.baseURL;
|
|
40
40
|
this.basePath = config.basePath || '';
|
|
@@ -84,6 +84,20 @@ class AuthsomeClient {
|
|
|
84
84
|
setBasePath(basePath) {
|
|
85
85
|
this.basePath = basePath;
|
|
86
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Convert an object to query parameters, handling optional values and type conversion
|
|
89
|
+
*/
|
|
90
|
+
toQueryParams(obj) {
|
|
91
|
+
if (!obj)
|
|
92
|
+
return undefined;
|
|
93
|
+
const params = {};
|
|
94
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
95
|
+
if (value !== undefined && value !== null) {
|
|
96
|
+
params[key] = String(value);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return Object.keys(params).length > 0 ? params : undefined;
|
|
100
|
+
}
|
|
87
101
|
/**
|
|
88
102
|
* Set global headers for all requests
|
|
89
103
|
* @param headers - Headers to set
|
package/dist/index.d.ts
CHANGED
|
@@ -3,31 +3,31 @@ export { ClientPlugin } from './plugin';
|
|
|
3
3
|
export * from './types';
|
|
4
4
|
export * from './errors';
|
|
5
5
|
export { AdminPlugin, adminClient } from './plugins/admin';
|
|
6
|
+
export { PermissionsPlugin, permissionsClient } from './plugins/permissions';
|
|
7
|
+
export { WebhookPlugin, webhookClient } from './plugins/webhook';
|
|
6
8
|
export { CmsPlugin, cmsClient } from './plugins/cms';
|
|
9
|
+
export { EmailverificationPlugin, emailverificationClient } from './plugins/emailverification';
|
|
10
|
+
export { IdverificationPlugin, idverificationClient } from './plugins/idverification';
|
|
11
|
+
export { MagiclinkPlugin, magiclinkClient } from './plugins/magiclink';
|
|
12
|
+
export { NotificationPlugin, notificationClient } from './plugins/notification';
|
|
13
|
+
export { TwofaPlugin, twofaClient } from './plugins/twofa';
|
|
14
|
+
export { ApikeyPlugin, apikeyClient } from './plugins/apikey';
|
|
15
|
+
export { EmailotpPlugin, emailotpClient } from './plugins/emailotp';
|
|
16
|
+
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
7
17
|
export { CompliancePlugin, complianceClient } from './plugins/compliance';
|
|
8
18
|
export { StepupPlugin, stepupClient } from './plugins/stepup';
|
|
19
|
+
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
|
20
|
+
export { MultiappPlugin, multiappClient } from './plugins/multiapp';
|
|
21
|
+
export { PhonePlugin, phoneClient } from './plugins/phone';
|
|
22
|
+
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
9
23
|
export { PasskeyPlugin, passkeyClient } from './plugins/passkey';
|
|
10
|
-
export {
|
|
11
|
-
export { EmailverificationPlugin, emailverificationClient } from './plugins/emailverification';
|
|
24
|
+
export { UsernamePlugin, usernameClient } from './plugins/username';
|
|
12
25
|
export { MultisessionPlugin, multisessionClient } from './plugins/multisession';
|
|
26
|
+
export { ConsentPlugin, consentClient } from './plugins/consent';
|
|
27
|
+
export { ImpersonationPlugin, impersonationClient } from './plugins/impersonation';
|
|
13
28
|
export { OidcproviderPlugin, oidcproviderClient } from './plugins/oidcprovider';
|
|
14
29
|
export { OrganizationPlugin, organizationClient } from './plugins/organization';
|
|
15
|
-
export { WebhookPlugin, webhookClient } from './plugins/webhook';
|
|
16
|
-
export { ImpersonationPlugin, impersonationClient } from './plugins/impersonation';
|
|
17
|
-
export { MagiclinkPlugin, magiclinkClient } from './plugins/magiclink';
|
|
18
|
-
export { SecretsPlugin, secretsClient } from './plugins/secrets';
|
|
19
30
|
export { SsoPlugin, ssoClient } from './plugins/sso';
|
|
20
|
-
export {
|
|
21
|
-
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
22
|
-
export { IdverificationPlugin, idverificationClient } from './plugins/idverification';
|
|
23
|
-
export { TwofaPlugin, twofaClient } from './plugins/twofa';
|
|
24
|
-
export { EmailotpPlugin, emailotpClient } from './plugins/emailotp';
|
|
25
|
-
export { NotificationPlugin, notificationClient } from './plugins/notification';
|
|
26
|
-
export { PermissionsPlugin, permissionsClient } from './plugins/permissions';
|
|
27
|
-
export { UsernamePlugin, usernameClient } from './plugins/username';
|
|
28
|
-
export { ConsentPlugin, consentClient } from './plugins/consent';
|
|
29
|
-
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
|
31
|
+
export { SecretsPlugin, secretsClient } from './plugins/secrets';
|
|
30
32
|
export { SocialPlugin, socialClient } from './plugins/social';
|
|
31
33
|
export { JwtPlugin, jwtClient } from './plugins/jwt';
|
|
32
|
-
export { MultiappPlugin, multiappClient } from './plugins/multiapp';
|
|
33
|
-
export { PhonePlugin, phoneClient } from './plugins/phone';
|
package/dist/index.js
CHANGED
|
@@ -15,8 +15,8 @@ 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.oidcproviderClient = exports.OidcproviderPlugin = exports.impersonationClient = exports.ImpersonationPlugin = exports.consentClient = exports.ConsentPlugin = exports.multisessionClient = exports.MultisessionPlugin = exports.usernameClient = exports.UsernamePlugin = exports.passkeyClient = exports.PasskeyPlugin = exports.anonymousClient = exports.AnonymousPlugin = exports.phoneClient = exports.PhonePlugin = exports.multiappClient = exports.MultiappPlugin = exports.mfaClient = exports.MfaPlugin = exports.stepupClient = exports.StepupPlugin = exports.complianceClient = exports.CompliancePlugin = exports.backupauthClient = exports.BackupauthPlugin = exports.emailotpClient = exports.EmailotpPlugin = exports.apikeyClient = exports.ApikeyPlugin = exports.twofaClient = exports.TwofaPlugin = exports.notificationClient = exports.NotificationPlugin = exports.magiclinkClient = exports.MagiclinkPlugin = exports.idverificationClient = exports.IdverificationPlugin = exports.emailverificationClient = exports.EmailverificationPlugin = exports.cmsClient = exports.CmsPlugin = exports.webhookClient = exports.WebhookPlugin = exports.permissionsClient = exports.PermissionsPlugin = exports.adminClient = exports.AdminPlugin = exports.AuthsomeClient = void 0;
|
|
19
|
+
exports.jwtClient = exports.JwtPlugin = exports.socialClient = exports.SocialPlugin = exports.secretsClient = exports.SecretsPlugin = exports.ssoClient = exports.SsoPlugin = 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);
|
|
@@ -25,87 +25,87 @@ __exportStar(require("./errors"), exports);
|
|
|
25
25
|
var admin_1 = require("./plugins/admin");
|
|
26
26
|
Object.defineProperty(exports, "AdminPlugin", { enumerable: true, get: function () { return admin_1.AdminPlugin; } });
|
|
27
27
|
Object.defineProperty(exports, "adminClient", { enumerable: true, get: function () { return admin_1.adminClient; } });
|
|
28
|
+
var permissions_1 = require("./plugins/permissions");
|
|
29
|
+
Object.defineProperty(exports, "PermissionsPlugin", { enumerable: true, get: function () { return permissions_1.PermissionsPlugin; } });
|
|
30
|
+
Object.defineProperty(exports, "permissionsClient", { enumerable: true, get: function () { return permissions_1.permissionsClient; } });
|
|
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; } });
|
|
28
34
|
var cms_1 = require("./plugins/cms");
|
|
29
35
|
Object.defineProperty(exports, "CmsPlugin", { enumerable: true, get: function () { return cms_1.CmsPlugin; } });
|
|
30
36
|
Object.defineProperty(exports, "cmsClient", { enumerable: true, get: function () { return cms_1.cmsClient; } });
|
|
37
|
+
var emailverification_1 = require("./plugins/emailverification");
|
|
38
|
+
Object.defineProperty(exports, "EmailverificationPlugin", { enumerable: true, get: function () { return emailverification_1.EmailverificationPlugin; } });
|
|
39
|
+
Object.defineProperty(exports, "emailverificationClient", { enumerable: true, get: function () { return emailverification_1.emailverificationClient; } });
|
|
40
|
+
var idverification_1 = require("./plugins/idverification");
|
|
41
|
+
Object.defineProperty(exports, "IdverificationPlugin", { enumerable: true, get: function () { return idverification_1.IdverificationPlugin; } });
|
|
42
|
+
Object.defineProperty(exports, "idverificationClient", { enumerable: true, get: function () { return idverification_1.idverificationClient; } });
|
|
43
|
+
var magiclink_1 = require("./plugins/magiclink");
|
|
44
|
+
Object.defineProperty(exports, "MagiclinkPlugin", { enumerable: true, get: function () { return magiclink_1.MagiclinkPlugin; } });
|
|
45
|
+
Object.defineProperty(exports, "magiclinkClient", { enumerable: true, get: function () { return magiclink_1.magiclinkClient; } });
|
|
46
|
+
var notification_1 = require("./plugins/notification");
|
|
47
|
+
Object.defineProperty(exports, "NotificationPlugin", { enumerable: true, get: function () { return notification_1.NotificationPlugin; } });
|
|
48
|
+
Object.defineProperty(exports, "notificationClient", { enumerable: true, get: function () { return notification_1.notificationClient; } });
|
|
49
|
+
var twofa_1 = require("./plugins/twofa");
|
|
50
|
+
Object.defineProperty(exports, "TwofaPlugin", { enumerable: true, get: function () { return twofa_1.TwofaPlugin; } });
|
|
51
|
+
Object.defineProperty(exports, "twofaClient", { enumerable: true, get: function () { return twofa_1.twofaClient; } });
|
|
52
|
+
var apikey_1 = require("./plugins/apikey");
|
|
53
|
+
Object.defineProperty(exports, "ApikeyPlugin", { enumerable: true, get: function () { return apikey_1.ApikeyPlugin; } });
|
|
54
|
+
Object.defineProperty(exports, "apikeyClient", { enumerable: true, get: function () { return apikey_1.apikeyClient; } });
|
|
55
|
+
var emailotp_1 = require("./plugins/emailotp");
|
|
56
|
+
Object.defineProperty(exports, "EmailotpPlugin", { enumerable: true, get: function () { return emailotp_1.EmailotpPlugin; } });
|
|
57
|
+
Object.defineProperty(exports, "emailotpClient", { enumerable: true, get: function () { return emailotp_1.emailotpClient; } });
|
|
58
|
+
var backupauth_1 = require("./plugins/backupauth");
|
|
59
|
+
Object.defineProperty(exports, "BackupauthPlugin", { enumerable: true, get: function () { return backupauth_1.BackupauthPlugin; } });
|
|
60
|
+
Object.defineProperty(exports, "backupauthClient", { enumerable: true, get: function () { return backupauth_1.backupauthClient; } });
|
|
31
61
|
var compliance_1 = require("./plugins/compliance");
|
|
32
62
|
Object.defineProperty(exports, "CompliancePlugin", { enumerable: true, get: function () { return compliance_1.CompliancePlugin; } });
|
|
33
63
|
Object.defineProperty(exports, "complianceClient", { enumerable: true, get: function () { return compliance_1.complianceClient; } });
|
|
34
64
|
var stepup_1 = require("./plugins/stepup");
|
|
35
65
|
Object.defineProperty(exports, "StepupPlugin", { enumerable: true, get: function () { return stepup_1.StepupPlugin; } });
|
|
36
66
|
Object.defineProperty(exports, "stepupClient", { enumerable: true, get: function () { return stepup_1.stepupClient; } });
|
|
67
|
+
var mfa_1 = require("./plugins/mfa");
|
|
68
|
+
Object.defineProperty(exports, "MfaPlugin", { enumerable: true, get: function () { return mfa_1.MfaPlugin; } });
|
|
69
|
+
Object.defineProperty(exports, "mfaClient", { enumerable: true, get: function () { return mfa_1.mfaClient; } });
|
|
70
|
+
var multiapp_1 = require("./plugins/multiapp");
|
|
71
|
+
Object.defineProperty(exports, "MultiappPlugin", { enumerable: true, get: function () { return multiapp_1.MultiappPlugin; } });
|
|
72
|
+
Object.defineProperty(exports, "multiappClient", { enumerable: true, get: function () { return multiapp_1.multiappClient; } });
|
|
73
|
+
var phone_1 = require("./plugins/phone");
|
|
74
|
+
Object.defineProperty(exports, "PhonePlugin", { enumerable: true, get: function () { return phone_1.PhonePlugin; } });
|
|
75
|
+
Object.defineProperty(exports, "phoneClient", { enumerable: true, get: function () { return phone_1.phoneClient; } });
|
|
76
|
+
var anonymous_1 = require("./plugins/anonymous");
|
|
77
|
+
Object.defineProperty(exports, "AnonymousPlugin", { enumerable: true, get: function () { return anonymous_1.AnonymousPlugin; } });
|
|
78
|
+
Object.defineProperty(exports, "anonymousClient", { enumerable: true, get: function () { return anonymous_1.anonymousClient; } });
|
|
37
79
|
var passkey_1 = require("./plugins/passkey");
|
|
38
80
|
Object.defineProperty(exports, "PasskeyPlugin", { enumerable: true, get: function () { return passkey_1.PasskeyPlugin; } });
|
|
39
81
|
Object.defineProperty(exports, "passkeyClient", { enumerable: true, get: function () { return passkey_1.passkeyClient; } });
|
|
40
|
-
var
|
|
41
|
-
Object.defineProperty(exports, "
|
|
42
|
-
Object.defineProperty(exports, "
|
|
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; } });
|
|
82
|
+
var username_1 = require("./plugins/username");
|
|
83
|
+
Object.defineProperty(exports, "UsernamePlugin", { enumerable: true, get: function () { return username_1.UsernamePlugin; } });
|
|
84
|
+
Object.defineProperty(exports, "usernameClient", { enumerable: true, get: function () { return username_1.usernameClient; } });
|
|
46
85
|
var multisession_1 = require("./plugins/multisession");
|
|
47
86
|
Object.defineProperty(exports, "MultisessionPlugin", { enumerable: true, get: function () { return multisession_1.MultisessionPlugin; } });
|
|
48
87
|
Object.defineProperty(exports, "multisessionClient", { enumerable: true, get: function () { return multisession_1.multisessionClient; } });
|
|
88
|
+
var consent_1 = require("./plugins/consent");
|
|
89
|
+
Object.defineProperty(exports, "ConsentPlugin", { enumerable: true, get: function () { return consent_1.ConsentPlugin; } });
|
|
90
|
+
Object.defineProperty(exports, "consentClient", { enumerable: true, get: function () { return consent_1.consentClient; } });
|
|
91
|
+
var impersonation_1 = require("./plugins/impersonation");
|
|
92
|
+
Object.defineProperty(exports, "ImpersonationPlugin", { enumerable: true, get: function () { return impersonation_1.ImpersonationPlugin; } });
|
|
93
|
+
Object.defineProperty(exports, "impersonationClient", { enumerable: true, get: function () { return impersonation_1.impersonationClient; } });
|
|
49
94
|
var oidcprovider_1 = require("./plugins/oidcprovider");
|
|
50
95
|
Object.defineProperty(exports, "OidcproviderPlugin", { enumerable: true, get: function () { return oidcprovider_1.OidcproviderPlugin; } });
|
|
51
96
|
Object.defineProperty(exports, "oidcproviderClient", { enumerable: true, get: function () { return oidcprovider_1.oidcproviderClient; } });
|
|
52
97
|
var organization_1 = require("./plugins/organization");
|
|
53
98
|
Object.defineProperty(exports, "OrganizationPlugin", { enumerable: true, get: function () { return organization_1.OrganizationPlugin; } });
|
|
54
99
|
Object.defineProperty(exports, "organizationClient", { enumerable: true, get: function () { return organization_1.organizationClient; } });
|
|
55
|
-
var webhook_1 = require("./plugins/webhook");
|
|
56
|
-
Object.defineProperty(exports, "WebhookPlugin", { enumerable: true, get: function () { return webhook_1.WebhookPlugin; } });
|
|
57
|
-
Object.defineProperty(exports, "webhookClient", { enumerable: true, get: function () { return webhook_1.webhookClient; } });
|
|
58
|
-
var impersonation_1 = require("./plugins/impersonation");
|
|
59
|
-
Object.defineProperty(exports, "ImpersonationPlugin", { enumerable: true, get: function () { return impersonation_1.ImpersonationPlugin; } });
|
|
60
|
-
Object.defineProperty(exports, "impersonationClient", { enumerable: true, get: function () { return impersonation_1.impersonationClient; } });
|
|
61
|
-
var magiclink_1 = require("./plugins/magiclink");
|
|
62
|
-
Object.defineProperty(exports, "MagiclinkPlugin", { enumerable: true, get: function () { return magiclink_1.MagiclinkPlugin; } });
|
|
63
|
-
Object.defineProperty(exports, "magiclinkClient", { enumerable: true, get: function () { return magiclink_1.magiclinkClient; } });
|
|
64
|
-
var secrets_1 = require("./plugins/secrets");
|
|
65
|
-
Object.defineProperty(exports, "SecretsPlugin", { enumerable: true, get: function () { return secrets_1.SecretsPlugin; } });
|
|
66
|
-
Object.defineProperty(exports, "secretsClient", { enumerable: true, get: function () { return secrets_1.secretsClient; } });
|
|
67
100
|
var sso_1 = require("./plugins/sso");
|
|
68
101
|
Object.defineProperty(exports, "SsoPlugin", { enumerable: true, get: function () { return sso_1.SsoPlugin; } });
|
|
69
102
|
Object.defineProperty(exports, "ssoClient", { enumerable: true, get: function () { return sso_1.ssoClient; } });
|
|
70
|
-
var
|
|
71
|
-
Object.defineProperty(exports, "
|
|
72
|
-
Object.defineProperty(exports, "
|
|
73
|
-
var backupauth_1 = require("./plugins/backupauth");
|
|
74
|
-
Object.defineProperty(exports, "BackupauthPlugin", { enumerable: true, get: function () { return backupauth_1.BackupauthPlugin; } });
|
|
75
|
-
Object.defineProperty(exports, "backupauthClient", { enumerable: true, get: function () { return backupauth_1.backupauthClient; } });
|
|
76
|
-
var idverification_1 = require("./plugins/idverification");
|
|
77
|
-
Object.defineProperty(exports, "IdverificationPlugin", { enumerable: true, get: function () { return idverification_1.IdverificationPlugin; } });
|
|
78
|
-
Object.defineProperty(exports, "idverificationClient", { enumerable: true, get: function () { return idverification_1.idverificationClient; } });
|
|
79
|
-
var twofa_1 = require("./plugins/twofa");
|
|
80
|
-
Object.defineProperty(exports, "TwofaPlugin", { enumerable: true, get: function () { return twofa_1.TwofaPlugin; } });
|
|
81
|
-
Object.defineProperty(exports, "twofaClient", { enumerable: true, get: function () { return twofa_1.twofaClient; } });
|
|
82
|
-
var emailotp_1 = require("./plugins/emailotp");
|
|
83
|
-
Object.defineProperty(exports, "EmailotpPlugin", { enumerable: true, get: function () { return emailotp_1.EmailotpPlugin; } });
|
|
84
|
-
Object.defineProperty(exports, "emailotpClient", { enumerable: true, get: function () { return emailotp_1.emailotpClient; } });
|
|
85
|
-
var notification_1 = require("./plugins/notification");
|
|
86
|
-
Object.defineProperty(exports, "NotificationPlugin", { enumerable: true, get: function () { return notification_1.NotificationPlugin; } });
|
|
87
|
-
Object.defineProperty(exports, "notificationClient", { enumerable: true, get: function () { return notification_1.notificationClient; } });
|
|
88
|
-
var permissions_1 = require("./plugins/permissions");
|
|
89
|
-
Object.defineProperty(exports, "PermissionsPlugin", { enumerable: true, get: function () { return permissions_1.PermissionsPlugin; } });
|
|
90
|
-
Object.defineProperty(exports, "permissionsClient", { enumerable: true, get: function () { return permissions_1.permissionsClient; } });
|
|
91
|
-
var username_1 = require("./plugins/username");
|
|
92
|
-
Object.defineProperty(exports, "UsernamePlugin", { enumerable: true, get: function () { return username_1.UsernamePlugin; } });
|
|
93
|
-
Object.defineProperty(exports, "usernameClient", { enumerable: true, get: function () { return username_1.usernameClient; } });
|
|
94
|
-
var consent_1 = require("./plugins/consent");
|
|
95
|
-
Object.defineProperty(exports, "ConsentPlugin", { enumerable: true, get: function () { return consent_1.ConsentPlugin; } });
|
|
96
|
-
Object.defineProperty(exports, "consentClient", { enumerable: true, get: function () { return consent_1.consentClient; } });
|
|
97
|
-
var mfa_1 = require("./plugins/mfa");
|
|
98
|
-
Object.defineProperty(exports, "MfaPlugin", { enumerable: true, get: function () { return mfa_1.MfaPlugin; } });
|
|
99
|
-
Object.defineProperty(exports, "mfaClient", { enumerable: true, get: function () { return mfa_1.mfaClient; } });
|
|
103
|
+
var secrets_1 = require("./plugins/secrets");
|
|
104
|
+
Object.defineProperty(exports, "SecretsPlugin", { enumerable: true, get: function () { return secrets_1.SecretsPlugin; } });
|
|
105
|
+
Object.defineProperty(exports, "secretsClient", { enumerable: true, get: function () { return secrets_1.secretsClient; } });
|
|
100
106
|
var social_1 = require("./plugins/social");
|
|
101
107
|
Object.defineProperty(exports, "SocialPlugin", { enumerable: true, get: function () { return social_1.SocialPlugin; } });
|
|
102
108
|
Object.defineProperty(exports, "socialClient", { enumerable: true, get: function () { return social_1.socialClient; } });
|
|
103
109
|
var jwt_1 = require("./plugins/jwt");
|
|
104
110
|
Object.defineProperty(exports, "JwtPlugin", { enumerable: true, get: function () { return jwt_1.JwtPlugin; } });
|
|
105
111
|
Object.defineProperty(exports, "jwtClient", { enumerable: true, get: function () { return jwt_1.jwtClient; } });
|
|
106
|
-
var multiapp_1 = require("./plugins/multiapp");
|
|
107
|
-
Object.defineProperty(exports, "MultiappPlugin", { enumerable: true, get: function () { return multiapp_1.MultiappPlugin; } });
|
|
108
|
-
Object.defineProperty(exports, "multiappClient", { enumerable: true, get: function () { return multiapp_1.multiappClient; } });
|
|
109
|
-
var phone_1 = require("./plugins/phone");
|
|
110
|
-
Object.defineProperty(exports, "PhonePlugin", { enumerable: true, get: function () { return phone_1.PhonePlugin; } });
|
|
111
|
-
Object.defineProperty(exports, "phoneClient", { enumerable: true, get: function () { return phone_1.phoneClient; } });
|
package/dist/plugins/admin.d.ts
CHANGED
|
@@ -5,23 +5,23 @@ export declare class AdminPlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "admin";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
createUser(
|
|
8
|
+
createUser(): Promise<void>;
|
|
9
9
|
listUsers(): Promise<void>;
|
|
10
10
|
deleteUser(params: {
|
|
11
11
|
id: string;
|
|
12
12
|
}): Promise<types.MessageResponse>;
|
|
13
13
|
banUser(params: {
|
|
14
14
|
id: string;
|
|
15
|
-
}
|
|
15
|
+
}): Promise<types.MessageResponse>;
|
|
16
16
|
unbanUser(params: {
|
|
17
17
|
id: string;
|
|
18
|
-
}
|
|
18
|
+
}): Promise<types.MessageResponse>;
|
|
19
19
|
impersonateUser(params: {
|
|
20
20
|
id: string;
|
|
21
|
-
}
|
|
21
|
+
}): Promise<void>;
|
|
22
22
|
setUserRole(params: {
|
|
23
23
|
id: string;
|
|
24
|
-
}
|
|
24
|
+
}): Promise<types.MessageResponse>;
|
|
25
25
|
listSessions(): Promise<void>;
|
|
26
26
|
revokeSession(params: {
|
|
27
27
|
id: string;
|
package/dist/plugins/admin.js
CHANGED
|
@@ -10,58 +10,48 @@ class AdminPlugin {
|
|
|
10
10
|
init(client) {
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
|
-
async createUser(
|
|
14
|
-
const path = '/users';
|
|
15
|
-
return this.client.request('POST', path
|
|
16
|
-
body: request,
|
|
17
|
-
});
|
|
13
|
+
async createUser() {
|
|
14
|
+
const path = '/admin/users';
|
|
15
|
+
return this.client.request('POST', path);
|
|
18
16
|
}
|
|
19
17
|
async listUsers() {
|
|
20
|
-
const path = '/users';
|
|
18
|
+
const path = '/admin/users';
|
|
21
19
|
return this.client.request('GET', path);
|
|
22
20
|
}
|
|
23
21
|
async deleteUser(params) {
|
|
24
|
-
const path = `/users/${params.id}`;
|
|
22
|
+
const path = `/admin/users/${params.id}`;
|
|
25
23
|
return this.client.request('DELETE', path);
|
|
26
24
|
}
|
|
27
|
-
async banUser(params
|
|
28
|
-
const path = `/users/${params.id}/ban`;
|
|
29
|
-
return this.client.request('POST', path
|
|
30
|
-
body: request,
|
|
31
|
-
});
|
|
25
|
+
async banUser(params) {
|
|
26
|
+
const path = `/admin/users/${params.id}/ban`;
|
|
27
|
+
return this.client.request('POST', path);
|
|
32
28
|
}
|
|
33
|
-
async unbanUser(params
|
|
34
|
-
const path = `/users/${params.id}/unban`;
|
|
35
|
-
return this.client.request('POST', path
|
|
36
|
-
body: request,
|
|
37
|
-
});
|
|
29
|
+
async unbanUser(params) {
|
|
30
|
+
const path = `/admin/users/${params.id}/unban`;
|
|
31
|
+
return this.client.request('POST', path);
|
|
38
32
|
}
|
|
39
|
-
async impersonateUser(params
|
|
40
|
-
const path = `/users/${params.id}/impersonate`;
|
|
41
|
-
return this.client.request('POST', path
|
|
42
|
-
body: request,
|
|
43
|
-
});
|
|
33
|
+
async impersonateUser(params) {
|
|
34
|
+
const path = `/admin/users/${params.id}/impersonate`;
|
|
35
|
+
return this.client.request('POST', path);
|
|
44
36
|
}
|
|
45
|
-
async setUserRole(params
|
|
46
|
-
const path = `/users/${params.id}/role`;
|
|
47
|
-
return this.client.request('POST', path
|
|
48
|
-
body: request,
|
|
49
|
-
});
|
|
37
|
+
async setUserRole(params) {
|
|
38
|
+
const path = `/admin/users/${params.id}/role`;
|
|
39
|
+
return this.client.request('POST', path);
|
|
50
40
|
}
|
|
51
41
|
async listSessions() {
|
|
52
|
-
const path = '/sessions';
|
|
42
|
+
const path = '/admin/sessions';
|
|
53
43
|
return this.client.request('GET', path);
|
|
54
44
|
}
|
|
55
45
|
async revokeSession(params) {
|
|
56
|
-
const path = `/sessions/${params.id}`;
|
|
46
|
+
const path = `/admin/sessions/${params.id}`;
|
|
57
47
|
return this.client.request('DELETE', path);
|
|
58
48
|
}
|
|
59
49
|
async getStats() {
|
|
60
|
-
const path = '/stats';
|
|
50
|
+
const path = '/admin/stats';
|
|
61
51
|
return this.client.request('GET', path);
|
|
62
52
|
}
|
|
63
53
|
async getAuditLogs() {
|
|
64
|
-
const path = '/audit-logs';
|
|
54
|
+
const path = '/admin/audit-logs';
|
|
65
55
|
return this.client.request('GET', path);
|
|
66
56
|
}
|
|
67
57
|
}
|
|
@@ -5,7 +5,7 @@ export declare class AnonymousPlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "anonymous";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
signIn(): Promise<types.SignInResponse>;
|
|
8
|
+
signIn(request: types.SignInRequest): Promise<types.SignInResponse>;
|
|
9
9
|
link(request: types.LinkRequest): Promise<types.LinkResponse>;
|
|
10
10
|
}
|
|
11
11
|
export declare function anonymousClient(): AnonymousPlugin;
|
|
@@ -10,9 +10,11 @@ class AnonymousPlugin {
|
|
|
10
10
|
init(client) {
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
|
-
async signIn() {
|
|
13
|
+
async signIn(request) {
|
|
14
14
|
const path = '/anonymous/signin';
|
|
15
|
-
return this.client.request('POST', path
|
|
15
|
+
return this.client.request('POST', path, {
|
|
16
|
+
body: request,
|
|
17
|
+
});
|
|
16
18
|
}
|
|
17
19
|
async link(request) {
|
|
18
20
|
const path = '/anonymous/link';
|
package/dist/plugins/apikey.d.ts
CHANGED
|
@@ -5,20 +5,20 @@ export declare class ApikeyPlugin implements ClientPlugin {
|
|
|
5
5
|
readonly id = "apikey";
|
|
6
6
|
private client;
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
|
-
createAPIKey(): Promise<
|
|
8
|
+
createAPIKey(request: types.CreateAPIKeyRequest): Promise<types.CreateAPIKeyResponse>;
|
|
9
9
|
rotateAPIKey(params: {
|
|
10
10
|
id: string;
|
|
11
|
-
}): Promise<
|
|
12
|
-
listAPIKeys(): Promise<
|
|
11
|
+
}, request: types.RotateAPIKeyRequest): Promise<types.RotateAPIKeyResponse>;
|
|
12
|
+
listAPIKeys(request?: types.ListAPIKeysRequest): Promise<types.ListAPIKeysResponse>;
|
|
13
13
|
getAPIKey(params: {
|
|
14
14
|
id: string;
|
|
15
|
-
}): Promise<
|
|
15
|
+
}, request?: types.GetAPIKeyRequest): Promise<types.APIKey>;
|
|
16
16
|
updateAPIKey(params: {
|
|
17
17
|
id: string;
|
|
18
|
-
}): Promise<
|
|
18
|
+
}, request: types.UpdateAPIKeyRequest): Promise<types.APIKey>;
|
|
19
19
|
deleteAPIKey(params: {
|
|
20
20
|
id: string;
|
|
21
|
-
}): Promise<types.MessageResponse>;
|
|
22
|
-
verifyAPIKey(): Promise<
|
|
21
|
+
}, request?: types.DeleteAPIKeyRequest): Promise<types.MessageResponse>;
|
|
22
|
+
verifyAPIKey(request: types.VerifyAPIKeyRequest): Promise<types.VerifyAPIKeyResponse>;
|
|
23
23
|
}
|
|
24
24
|
export declare function apikeyClient(): ApikeyPlugin;
|