@authsome/client 0.0.3 → 0.0.4
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 +86 -37
- package/dist/client.js +65 -17
- package/dist/index.d.ts +21 -17
- package/dist/index.js +65 -53
- package/dist/plugins/admin.d.ts +18 -6
- package/dist/plugins/admin.js +12 -12
- package/dist/plugins/apikey.d.ts +13 -5
- package/dist/plugins/apikey.js +12 -14
- package/dist/plugins/backupauth.d.ts +15 -5
- package/dist/plugins/backupauth.js +10 -10
- package/dist/plugins/cms.d.ts +54 -0
- package/dist/plugins/cms.js +139 -0
- package/dist/plugins/compliance.d.ts +90 -30
- package/dist/plugins/compliance.js +60 -60
- package/dist/plugins/consent.d.ts +24 -8
- package/dist/plugins/consent.js +16 -16
- package/dist/plugins/emailverification.d.ts +12 -0
- package/dist/plugins/emailverification.js +33 -0
- package/dist/plugins/idverification.d.ts +21 -7
- package/dist/plugins/idverification.js +14 -14
- package/dist/plugins/impersonation.d.ts +3 -1
- package/dist/plugins/impersonation.js +2 -2
- package/dist/plugins/mfa.d.ts +21 -7
- package/dist/plugins/mfa.js +14 -14
- package/dist/plugins/multiapp.d.ts +40 -13
- package/dist/plugins/multiapp.js +26 -26
- package/dist/plugins/multisession.d.ts +11 -1
- package/dist/plugins/multisession.js +28 -2
- package/dist/plugins/notification.d.ts +25 -9
- package/dist/plugins/notification.js +16 -16
- package/dist/plugins/oidcprovider.d.ts +9 -3
- package/dist/plugins/oidcprovider.js +6 -6
- package/dist/plugins/organization.d.ts +30 -10
- package/dist/plugins/organization.js +20 -20
- package/dist/plugins/passkey.d.ts +6 -2
- package/dist/plugins/passkey.js +4 -4
- package/dist/plugins/permissions.d.ts +12 -0
- package/dist/plugins/permissions.js +33 -0
- package/dist/plugins/secrets.d.ts +33 -0
- package/dist/plugins/secrets.js +63 -0
- package/dist/plugins/social.d.ts +11 -2
- package/dist/plugins/social.js +7 -5
- package/dist/plugins/sso.d.ts +12 -4
- package/dist/plugins/sso.js +8 -8
- package/dist/plugins/stepup.d.ts +15 -5
- package/dist/plugins/stepup.js +10 -10
- package/dist/types.d.ts +2878 -2453
- package/package.json +2 -1
- package/src/client.ts +96 -37
- package/src/index.ts +21 -17
- package/src/plugins/admin.ts +12 -12
- package/src/plugins/apikey.ts +13 -15
- package/src/plugins/backupauth.ts +10 -10
- package/src/plugins/cms.ts +170 -0
- package/src/plugins/compliance.ts +60 -60
- package/src/plugins/consent.ts +16 -16
- package/src/plugins/emailverification.ts +38 -0
- package/src/plugins/idverification.ts +14 -14
- package/src/plugins/impersonation.ts +2 -2
- package/src/plugins/mfa.ts +14 -14
- package/src/plugins/multiapp.ts +26 -26
- package/src/plugins/multisession.ts +34 -2
- package/src/plugins/notification.ts +18 -18
- package/src/plugins/oidcprovider.ts +6 -6
- package/src/plugins/organization.ts +20 -20
- package/src/plugins/passkey.ts +4 -4
- package/src/plugins/permissions.ts +38 -0
- package/src/plugins/secrets.ts +76 -0
- package/src/plugins/social.ts +7 -5
- package/src/plugins/sso.ts +8 -8
- package/src/plugins/stepup.ts +10 -10
- package/src/types.ts +2989 -2486
- package/authsome-client-0.0.2.tgz +0 -0
package/dist/client.d.ts
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
import { ClientPlugin } from './plugin';
|
|
2
2
|
import * as types from './types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { AdminPlugin } from './plugins/admin';
|
|
4
|
+
import { CmsPlugin } from './plugins/cms';
|
|
5
|
+
import { CompliancePlugin } from './plugins/compliance';
|
|
6
|
+
import { StepupPlugin } from './plugins/stepup';
|
|
5
7
|
import { PasskeyPlugin } from './plugins/passkey';
|
|
6
|
-
import { UsernamePlugin } from './plugins/username';
|
|
7
8
|
import { ApikeyPlugin } from './plugins/apikey';
|
|
9
|
+
import { EmailverificationPlugin } from './plugins/emailverification';
|
|
10
|
+
import { MultisessionPlugin } from './plugins/multisession';
|
|
11
|
+
import { OidcproviderPlugin } from './plugins/oidcprovider';
|
|
12
|
+
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
|
+
import { SsoPlugin } from './plugins/sso';
|
|
18
|
+
import { AnonymousPlugin } from './plugins/anonymous';
|
|
8
19
|
import { BackupauthPlugin } from './plugins/backupauth';
|
|
9
|
-
import { ConsentPlugin } from './plugins/consent';
|
|
10
20
|
import { IdverificationPlugin } from './plugins/idverification';
|
|
11
|
-
import {
|
|
12
|
-
import { OidcproviderPlugin } from './plugins/oidcprovider';
|
|
13
|
-
import { PhonePlugin } from './plugins/phone';
|
|
14
|
-
import { AdminPlugin } from './plugins/admin';
|
|
21
|
+
import { TwofaPlugin } from './plugins/twofa';
|
|
15
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';
|
|
16
27
|
import { MfaPlugin } from './plugins/mfa';
|
|
17
|
-
import { OrganizationPlugin } from './plugins/organization';
|
|
18
28
|
import { SocialPlugin } from './plugins/social';
|
|
19
|
-
import { SsoPlugin } from './plugins/sso';
|
|
20
|
-
import { AnonymousPlugin } from './plugins/anonymous';
|
|
21
|
-
import { StepupPlugin } from './plugins/stepup';
|
|
22
29
|
import { JwtPlugin } from './plugins/jwt';
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { WebhookPlugin } from './plugins/webhook';
|
|
26
|
-
import { CompliancePlugin } from './plugins/compliance';
|
|
27
|
-
import { ImpersonationPlugin } from './plugins/impersonation';
|
|
30
|
+
import { MultiappPlugin } from './plugins/multiapp';
|
|
31
|
+
import { PhonePlugin } from './plugins/phone';
|
|
28
32
|
/**
|
|
29
33
|
* AuthSome client configuration
|
|
30
34
|
* Supports multiple authentication methods that can be used simultaneously:
|
|
@@ -82,31 +86,35 @@ export declare class AuthsomeClient {
|
|
|
82
86
|
setGlobalHeaders(headers: Record<string, string>, replace?: boolean): void;
|
|
83
87
|
getPlugin<T extends ClientPlugin>(id: string): T | undefined;
|
|
84
88
|
readonly $plugins: {
|
|
85
|
-
|
|
86
|
-
|
|
89
|
+
admin: () => AdminPlugin | undefined;
|
|
90
|
+
cms: () => CmsPlugin | undefined;
|
|
91
|
+
compliance: () => CompliancePlugin | undefined;
|
|
92
|
+
stepup: () => StepupPlugin | undefined;
|
|
87
93
|
passkey: () => PasskeyPlugin | undefined;
|
|
88
|
-
username: () => UsernamePlugin | undefined;
|
|
89
94
|
apikey: () => ApikeyPlugin | undefined;
|
|
95
|
+
emailverification: () => EmailverificationPlugin | undefined;
|
|
96
|
+
multisession: () => MultisessionPlugin | undefined;
|
|
97
|
+
oidcprovider: () => OidcproviderPlugin | undefined;
|
|
98
|
+
organization: () => OrganizationPlugin | undefined;
|
|
99
|
+
webhook: () => WebhookPlugin | undefined;
|
|
100
|
+
impersonation: () => ImpersonationPlugin | undefined;
|
|
101
|
+
magiclink: () => MagiclinkPlugin | undefined;
|
|
102
|
+
secrets: () => SecretsPlugin | undefined;
|
|
103
|
+
sso: () => SsoPlugin | undefined;
|
|
104
|
+
anonymous: () => AnonymousPlugin | undefined;
|
|
90
105
|
backupauth: () => BackupauthPlugin | undefined;
|
|
91
|
-
consent: () => ConsentPlugin | undefined;
|
|
92
106
|
idverification: () => IdverificationPlugin | undefined;
|
|
93
|
-
|
|
94
|
-
oidcprovider: () => OidcproviderPlugin | undefined;
|
|
95
|
-
phone: () => PhonePlugin | undefined;
|
|
96
|
-
admin: () => AdminPlugin | undefined;
|
|
107
|
+
twofa: () => TwofaPlugin | undefined;
|
|
97
108
|
emailotp: () => EmailotpPlugin | undefined;
|
|
109
|
+
notification: () => NotificationPlugin | undefined;
|
|
110
|
+
permissions: () => PermissionsPlugin | undefined;
|
|
111
|
+
username: () => UsernamePlugin | undefined;
|
|
112
|
+
consent: () => ConsentPlugin | undefined;
|
|
98
113
|
mfa: () => MfaPlugin | undefined;
|
|
99
|
-
organization: () => OrganizationPlugin | undefined;
|
|
100
114
|
social: () => SocialPlugin | undefined;
|
|
101
|
-
sso: () => SsoPlugin | undefined;
|
|
102
|
-
anonymous: () => AnonymousPlugin | undefined;
|
|
103
|
-
stepup: () => StepupPlugin | undefined;
|
|
104
115
|
jwt: () => JwtPlugin | undefined;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
webhook: () => WebhookPlugin | undefined;
|
|
108
|
-
compliance: () => CompliancePlugin | undefined;
|
|
109
|
-
impersonation: () => ImpersonationPlugin | undefined;
|
|
116
|
+
multiapp: () => MultiappPlugin | undefined;
|
|
117
|
+
phone: () => PhonePlugin | undefined;
|
|
110
118
|
};
|
|
111
119
|
request<T>(method: string, path: string, options?: {
|
|
112
120
|
body?: any;
|
|
@@ -125,9 +133,9 @@ export declare class AuthsomeClient {
|
|
|
125
133
|
email: string;
|
|
126
134
|
password: string;
|
|
127
135
|
}): Promise<{
|
|
128
|
-
user: types.User;
|
|
129
136
|
session: types.Session;
|
|
130
137
|
requiresTwoFactor: boolean;
|
|
138
|
+
user: types.User;
|
|
131
139
|
}>;
|
|
132
140
|
signOut(): Promise<{
|
|
133
141
|
success: boolean;
|
|
@@ -146,8 +154,49 @@ export declare class AuthsomeClient {
|
|
|
146
154
|
devices: types.Device[];
|
|
147
155
|
}>;
|
|
148
156
|
revokeDevice(request: {
|
|
149
|
-
|
|
157
|
+
fingerprint: string;
|
|
150
158
|
}): Promise<{
|
|
151
|
-
|
|
159
|
+
status: string;
|
|
160
|
+
}>;
|
|
161
|
+
refreshSession(request: {
|
|
162
|
+
refreshToken: string;
|
|
163
|
+
}): Promise<{
|
|
164
|
+
expiresAt: string;
|
|
165
|
+
refreshExpiresAt: string;
|
|
166
|
+
session: any;
|
|
167
|
+
accessToken: string;
|
|
168
|
+
refreshToken: string;
|
|
169
|
+
}>;
|
|
170
|
+
requestPasswordReset(request: {
|
|
171
|
+
email: string;
|
|
172
|
+
}): Promise<{
|
|
173
|
+
message: string;
|
|
174
|
+
}>;
|
|
175
|
+
resetPassword(request: {
|
|
176
|
+
token: string;
|
|
177
|
+
newPassword: string;
|
|
178
|
+
}): Promise<{
|
|
179
|
+
message: string;
|
|
180
|
+
}>;
|
|
181
|
+
validateResetToken(query?: {
|
|
182
|
+
token?: string;
|
|
183
|
+
}): Promise<{
|
|
184
|
+
valid: boolean;
|
|
185
|
+
}>;
|
|
186
|
+
changePassword(request: {
|
|
187
|
+
oldPassword: string;
|
|
188
|
+
newPassword: string;
|
|
189
|
+
}): Promise<{
|
|
190
|
+
message: string;
|
|
191
|
+
}>;
|
|
192
|
+
requestEmailChange(request: {
|
|
193
|
+
newEmail: string;
|
|
194
|
+
}): Promise<{
|
|
195
|
+
message: string;
|
|
196
|
+
}>;
|
|
197
|
+
confirmEmailChange(request: {
|
|
198
|
+
token: string;
|
|
199
|
+
}): Promise<{
|
|
200
|
+
message: string;
|
|
152
201
|
}>;
|
|
153
202
|
}
|
package/dist/client.js
CHANGED
|
@@ -6,31 +6,35 @@ const errors_1 = require("./errors");
|
|
|
6
6
|
class AuthsomeClient {
|
|
7
7
|
constructor(config) {
|
|
8
8
|
this.$plugins = {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
admin: () => this.getPlugin('admin'),
|
|
10
|
+
cms: () => this.getPlugin('cms'),
|
|
11
|
+
compliance: () => this.getPlugin('compliance'),
|
|
12
|
+
stepup: () => this.getPlugin('stepup'),
|
|
11
13
|
passkey: () => this.getPlugin('passkey'),
|
|
12
|
-
username: () => this.getPlugin('username'),
|
|
13
14
|
apikey: () => this.getPlugin('apikey'),
|
|
15
|
+
emailverification: () => this.getPlugin('emailverification'),
|
|
16
|
+
multisession: () => this.getPlugin('multisession'),
|
|
17
|
+
oidcprovider: () => this.getPlugin('oidcprovider'),
|
|
18
|
+
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
|
+
sso: () => this.getPlugin('sso'),
|
|
24
|
+
anonymous: () => this.getPlugin('anonymous'),
|
|
14
25
|
backupauth: () => this.getPlugin('backupauth'),
|
|
15
|
-
consent: () => this.getPlugin('consent'),
|
|
16
26
|
idverification: () => this.getPlugin('idverification'),
|
|
17
|
-
|
|
18
|
-
oidcprovider: () => this.getPlugin('oidcprovider'),
|
|
19
|
-
phone: () => this.getPlugin('phone'),
|
|
20
|
-
admin: () => this.getPlugin('admin'),
|
|
27
|
+
twofa: () => this.getPlugin('twofa'),
|
|
21
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'),
|
|
22
33
|
mfa: () => this.getPlugin('mfa'),
|
|
23
|
-
organization: () => this.getPlugin('organization'),
|
|
24
34
|
social: () => this.getPlugin('social'),
|
|
25
|
-
sso: () => this.getPlugin('sso'),
|
|
26
|
-
anonymous: () => this.getPlugin('anonymous'),
|
|
27
|
-
stepup: () => this.getPlugin('stepup'),
|
|
28
35
|
jwt: () => this.getPlugin('jwt'),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
webhook: () => this.getPlugin('webhook'),
|
|
32
|
-
compliance: () => this.getPlugin('compliance'),
|
|
33
|
-
impersonation: () => this.getPlugin('impersonation'),
|
|
36
|
+
multiapp: () => this.getPlugin('multiapp'),
|
|
37
|
+
phone: () => this.getPlugin('phone'),
|
|
34
38
|
};
|
|
35
39
|
this.baseURL = config.baseURL;
|
|
36
40
|
this.basePath = config.basePath || '';
|
|
@@ -169,5 +173,49 @@ class AuthsomeClient {
|
|
|
169
173
|
auth: true,
|
|
170
174
|
});
|
|
171
175
|
}
|
|
176
|
+
async refreshSession(request) {
|
|
177
|
+
const path = '/refresh';
|
|
178
|
+
return this.request('POST', path, {
|
|
179
|
+
body: request,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
async requestPasswordReset(request) {
|
|
183
|
+
const path = '/password/reset/request';
|
|
184
|
+
return this.request('POST', path, {
|
|
185
|
+
body: request,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
async resetPassword(request) {
|
|
189
|
+
const path = '/password/reset/confirm';
|
|
190
|
+
return this.request('POST', path, {
|
|
191
|
+
body: request,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
async validateResetToken(query) {
|
|
195
|
+
const path = '/password/reset/validate';
|
|
196
|
+
return this.request('GET', path, {
|
|
197
|
+
query,
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
async changePassword(request) {
|
|
201
|
+
const path = '/password/change';
|
|
202
|
+
return this.request('POST', path, {
|
|
203
|
+
body: request,
|
|
204
|
+
auth: true,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
async requestEmailChange(request) {
|
|
208
|
+
const path = '/email/change/request';
|
|
209
|
+
return this.request('POST', path, {
|
|
210
|
+
body: request,
|
|
211
|
+
auth: true,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
async confirmEmailChange(request) {
|
|
215
|
+
const path = '/email/change/confirm';
|
|
216
|
+
return this.request('POST', path, {
|
|
217
|
+
body: request,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
172
220
|
}
|
|
173
221
|
exports.AuthsomeClient = AuthsomeClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,28 +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 {
|
|
5
|
+
export { AdminPlugin, adminClient } from './plugins/admin';
|
|
6
|
+
export { CmsPlugin, cmsClient } from './plugins/cms';
|
|
7
|
+
export { CompliancePlugin, complianceClient } from './plugins/compliance';
|
|
8
|
+
export { StepupPlugin, stepupClient } from './plugins/stepup';
|
|
7
9
|
export { PasskeyPlugin, passkeyClient } from './plugins/passkey';
|
|
8
|
-
export { UsernamePlugin, usernameClient } from './plugins/username';
|
|
9
10
|
export { ApikeyPlugin, apikeyClient } from './plugins/apikey';
|
|
11
|
+
export { EmailverificationPlugin, emailverificationClient } from './plugins/emailverification';
|
|
12
|
+
export { MultisessionPlugin, multisessionClient } from './plugins/multisession';
|
|
13
|
+
export { OidcproviderPlugin, oidcproviderClient } from './plugins/oidcprovider';
|
|
14
|
+
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
|
+
export { SsoPlugin, ssoClient } from './plugins/sso';
|
|
20
|
+
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
10
21
|
export { BackupauthPlugin, backupauthClient } from './plugins/backupauth';
|
|
11
|
-
export { ConsentPlugin, consentClient } from './plugins/consent';
|
|
12
22
|
export { IdverificationPlugin, idverificationClient } from './plugins/idverification';
|
|
13
|
-
export {
|
|
14
|
-
export { OidcproviderPlugin, oidcproviderClient } from './plugins/oidcprovider';
|
|
15
|
-
export { PhonePlugin, phoneClient } from './plugins/phone';
|
|
16
|
-
export { AdminPlugin, adminClient } from './plugins/admin';
|
|
23
|
+
export { TwofaPlugin, twofaClient } from './plugins/twofa';
|
|
17
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';
|
|
18
29
|
export { MfaPlugin, mfaClient } from './plugins/mfa';
|
|
19
|
-
export { OrganizationPlugin, organizationClient } from './plugins/organization';
|
|
20
30
|
export { SocialPlugin, socialClient } from './plugins/social';
|
|
21
|
-
export { SsoPlugin, ssoClient } from './plugins/sso';
|
|
22
|
-
export { AnonymousPlugin, anonymousClient } from './plugins/anonymous';
|
|
23
|
-
export { StepupPlugin, stepupClient } from './plugins/stepup';
|
|
24
31
|
export { JwtPlugin, jwtClient } from './plugins/jwt';
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export { WebhookPlugin, webhookClient } from './plugins/webhook';
|
|
28
|
-
export { CompliancePlugin, complianceClient } from './plugins/compliance';
|
|
29
|
-
export { ImpersonationPlugin, impersonationClient } from './plugins/impersonation';
|
|
32
|
+
export { MultiappPlugin, multiappClient } from './plugins/multiapp';
|
|
33
|
+
export { PhonePlugin, phoneClient } from './plugins/phone';
|
package/dist/index.js
CHANGED
|
@@ -15,85 +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.MfaPlugin = exports.consentClient = exports.ConsentPlugin = exports.usernameClient = exports.UsernamePlugin = exports.permissionsClient = exports.PermissionsPlugin = exports.notificationClient = exports.NotificationPlugin = exports.emailotpClient = exports.EmailotpPlugin = exports.twofaClient = exports.TwofaPlugin = exports.idverificationClient = exports.IdverificationPlugin = exports.backupauthClient = exports.BackupauthPlugin = exports.anonymousClient = exports.AnonymousPlugin = exports.ssoClient = exports.SsoPlugin = exports.secretsClient = exports.SecretsPlugin = exports.magiclinkClient = exports.MagiclinkPlugin = exports.impersonationClient = exports.ImpersonationPlugin = exports.webhookClient = exports.WebhookPlugin = exports.organizationClient = exports.OrganizationPlugin = exports.oidcproviderClient = exports.OidcproviderPlugin = exports.multisessionClient = exports.MultisessionPlugin = exports.emailverificationClient = exports.EmailverificationPlugin = exports.apikeyClient = exports.ApikeyPlugin = exports.passkeyClient = exports.PasskeyPlugin = exports.stepupClient = exports.StepupPlugin = exports.complianceClient = exports.CompliancePlugin = exports.cmsClient = exports.CmsPlugin = exports.adminClient = exports.AdminPlugin = exports.AuthsomeClient = void 0;
|
|
19
|
+
exports.phoneClient = exports.PhonePlugin = exports.multiappClient = exports.MultiappPlugin = exports.jwtClient = exports.JwtPlugin = exports.socialClient = exports.SocialPlugin = exports.mfaClient = 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
|
|
29
|
-
Object.defineProperty(exports, "
|
|
30
|
-
Object.defineProperty(exports, "
|
|
25
|
+
var admin_1 = require("./plugins/admin");
|
|
26
|
+
Object.defineProperty(exports, "AdminPlugin", { enumerable: true, get: function () { return admin_1.AdminPlugin; } });
|
|
27
|
+
Object.defineProperty(exports, "adminClient", { enumerable: true, get: function () { return admin_1.adminClient; } });
|
|
28
|
+
var cms_1 = require("./plugins/cms");
|
|
29
|
+
Object.defineProperty(exports, "CmsPlugin", { enumerable: true, get: function () { return cms_1.CmsPlugin; } });
|
|
30
|
+
Object.defineProperty(exports, "cmsClient", { enumerable: true, get: function () { return cms_1.cmsClient; } });
|
|
31
|
+
var compliance_1 = require("./plugins/compliance");
|
|
32
|
+
Object.defineProperty(exports, "CompliancePlugin", { enumerable: true, get: function () { return compliance_1.CompliancePlugin; } });
|
|
33
|
+
Object.defineProperty(exports, "complianceClient", { enumerable: true, get: function () { return compliance_1.complianceClient; } });
|
|
34
|
+
var stepup_1 = require("./plugins/stepup");
|
|
35
|
+
Object.defineProperty(exports, "StepupPlugin", { enumerable: true, get: function () { return stepup_1.StepupPlugin; } });
|
|
36
|
+
Object.defineProperty(exports, "stepupClient", { enumerable: true, get: function () { return stepup_1.stepupClient; } });
|
|
31
37
|
var passkey_1 = require("./plugins/passkey");
|
|
32
38
|
Object.defineProperty(exports, "PasskeyPlugin", { enumerable: true, get: function () { return passkey_1.PasskeyPlugin; } });
|
|
33
39
|
Object.defineProperty(exports, "passkeyClient", { enumerable: true, get: function () { return passkey_1.passkeyClient; } });
|
|
34
|
-
var username_1 = require("./plugins/username");
|
|
35
|
-
Object.defineProperty(exports, "UsernamePlugin", { enumerable: true, get: function () { return username_1.UsernamePlugin; } });
|
|
36
|
-
Object.defineProperty(exports, "usernameClient", { enumerable: true, get: function () { return username_1.usernameClient; } });
|
|
37
40
|
var apikey_1 = require("./plugins/apikey");
|
|
38
41
|
Object.defineProperty(exports, "ApikeyPlugin", { enumerable: true, get: function () { return apikey_1.ApikeyPlugin; } });
|
|
39
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 multisession_1 = require("./plugins/multisession");
|
|
47
|
+
Object.defineProperty(exports, "MultisessionPlugin", { enumerable: true, get: function () { return multisession_1.MultisessionPlugin; } });
|
|
48
|
+
Object.defineProperty(exports, "multisessionClient", { enumerable: true, get: function () { return multisession_1.multisessionClient; } });
|
|
49
|
+
var oidcprovider_1 = require("./plugins/oidcprovider");
|
|
50
|
+
Object.defineProperty(exports, "OidcproviderPlugin", { enumerable: true, get: function () { return oidcprovider_1.OidcproviderPlugin; } });
|
|
51
|
+
Object.defineProperty(exports, "oidcproviderClient", { enumerable: true, get: function () { return oidcprovider_1.oidcproviderClient; } });
|
|
52
|
+
var organization_1 = require("./plugins/organization");
|
|
53
|
+
Object.defineProperty(exports, "OrganizationPlugin", { enumerable: true, get: function () { return organization_1.OrganizationPlugin; } });
|
|
54
|
+
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
|
+
var sso_1 = require("./plugins/sso");
|
|
68
|
+
Object.defineProperty(exports, "SsoPlugin", { enumerable: true, get: function () { return sso_1.SsoPlugin; } });
|
|
69
|
+
Object.defineProperty(exports, "ssoClient", { enumerable: true, get: function () { return sso_1.ssoClient; } });
|
|
70
|
+
var anonymous_1 = require("./plugins/anonymous");
|
|
71
|
+
Object.defineProperty(exports, "AnonymousPlugin", { enumerable: true, get: function () { return anonymous_1.AnonymousPlugin; } });
|
|
72
|
+
Object.defineProperty(exports, "anonymousClient", { enumerable: true, get: function () { return anonymous_1.anonymousClient; } });
|
|
40
73
|
var backupauth_1 = require("./plugins/backupauth");
|
|
41
74
|
Object.defineProperty(exports, "BackupauthPlugin", { enumerable: true, get: function () { return backupauth_1.BackupauthPlugin; } });
|
|
42
75
|
Object.defineProperty(exports, "backupauthClient", { enumerable: true, get: function () { return backupauth_1.backupauthClient; } });
|
|
43
|
-
var consent_1 = require("./plugins/consent");
|
|
44
|
-
Object.defineProperty(exports, "ConsentPlugin", { enumerable: true, get: function () { return consent_1.ConsentPlugin; } });
|
|
45
|
-
Object.defineProperty(exports, "consentClient", { enumerable: true, get: function () { return consent_1.consentClient; } });
|
|
46
76
|
var idverification_1 = require("./plugins/idverification");
|
|
47
77
|
Object.defineProperty(exports, "IdverificationPlugin", { enumerable: true, get: function () { return idverification_1.IdverificationPlugin; } });
|
|
48
78
|
Object.defineProperty(exports, "idverificationClient", { enumerable: true, get: function () { return idverification_1.idverificationClient; } });
|
|
49
|
-
var
|
|
50
|
-
Object.defineProperty(exports, "
|
|
51
|
-
Object.defineProperty(exports, "
|
|
52
|
-
var oidcprovider_1 = require("./plugins/oidcprovider");
|
|
53
|
-
Object.defineProperty(exports, "OidcproviderPlugin", { enumerable: true, get: function () { return oidcprovider_1.OidcproviderPlugin; } });
|
|
54
|
-
Object.defineProperty(exports, "oidcproviderClient", { enumerable: true, get: function () { return oidcprovider_1.oidcproviderClient; } });
|
|
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 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; } });
|
|
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; } });
|
|
61
82
|
var emailotp_1 = require("./plugins/emailotp");
|
|
62
83
|
Object.defineProperty(exports, "EmailotpPlugin", { enumerable: true, get: function () { return emailotp_1.EmailotpPlugin; } });
|
|
63
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; } });
|
|
64
97
|
var mfa_1 = require("./plugins/mfa");
|
|
65
98
|
Object.defineProperty(exports, "MfaPlugin", { enumerable: true, get: function () { return mfa_1.MfaPlugin; } });
|
|
66
99
|
Object.defineProperty(exports, "mfaClient", { enumerable: true, get: function () { return mfa_1.mfaClient; } });
|
|
67
|
-
var organization_1 = require("./plugins/organization");
|
|
68
|
-
Object.defineProperty(exports, "OrganizationPlugin", { enumerable: true, get: function () { return organization_1.OrganizationPlugin; } });
|
|
69
|
-
Object.defineProperty(exports, "organizationClient", { enumerable: true, get: function () { return organization_1.organizationClient; } });
|
|
70
100
|
var social_1 = require("./plugins/social");
|
|
71
101
|
Object.defineProperty(exports, "SocialPlugin", { enumerable: true, get: function () { return social_1.SocialPlugin; } });
|
|
72
102
|
Object.defineProperty(exports, "socialClient", { enumerable: true, get: function () { return social_1.socialClient; } });
|
|
73
|
-
var sso_1 = require("./plugins/sso");
|
|
74
|
-
Object.defineProperty(exports, "SsoPlugin", { enumerable: true, get: function () { return sso_1.SsoPlugin; } });
|
|
75
|
-
Object.defineProperty(exports, "ssoClient", { enumerable: true, get: function () { return sso_1.ssoClient; } });
|
|
76
|
-
var anonymous_1 = require("./plugins/anonymous");
|
|
77
|
-
Object.defineProperty(exports, "AnonymousPlugin", { enumerable: true, get: function () { return anonymous_1.AnonymousPlugin; } });
|
|
78
|
-
Object.defineProperty(exports, "anonymousClient", { enumerable: true, get: function () { return anonymous_1.anonymousClient; } });
|
|
79
|
-
var stepup_1 = require("./plugins/stepup");
|
|
80
|
-
Object.defineProperty(exports, "StepupPlugin", { enumerable: true, get: function () { return stepup_1.StepupPlugin; } });
|
|
81
|
-
Object.defineProperty(exports, "stepupClient", { enumerable: true, get: function () { return stepup_1.stepupClient; } });
|
|
82
103
|
var jwt_1 = require("./plugins/jwt");
|
|
83
104
|
Object.defineProperty(exports, "JwtPlugin", { enumerable: true, get: function () { return jwt_1.JwtPlugin; } });
|
|
84
105
|
Object.defineProperty(exports, "jwtClient", { enumerable: true, get: function () { return jwt_1.jwtClient; } });
|
|
85
|
-
var
|
|
86
|
-
Object.defineProperty(exports, "
|
|
87
|
-
Object.defineProperty(exports, "
|
|
88
|
-
var
|
|
89
|
-
Object.defineProperty(exports, "
|
|
90
|
-
Object.defineProperty(exports, "
|
|
91
|
-
var webhook_1 = require("./plugins/webhook");
|
|
92
|
-
Object.defineProperty(exports, "WebhookPlugin", { enumerable: true, get: function () { return webhook_1.WebhookPlugin; } });
|
|
93
|
-
Object.defineProperty(exports, "webhookClient", { enumerable: true, get: function () { return webhook_1.webhookClient; } });
|
|
94
|
-
var compliance_1 = require("./plugins/compliance");
|
|
95
|
-
Object.defineProperty(exports, "CompliancePlugin", { enumerable: true, get: function () { return compliance_1.CompliancePlugin; } });
|
|
96
|
-
Object.defineProperty(exports, "complianceClient", { enumerable: true, get: function () { return compliance_1.complianceClient; } });
|
|
97
|
-
var impersonation_1 = require("./plugins/impersonation");
|
|
98
|
-
Object.defineProperty(exports, "ImpersonationPlugin", { enumerable: true, get: function () { return impersonation_1.ImpersonationPlugin; } });
|
|
99
|
-
Object.defineProperty(exports, "impersonationClient", { enumerable: true, get: function () { return impersonation_1.impersonationClient; } });
|
|
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
|
@@ -7,13 +7,25 @@ export declare class AdminPlugin implements ClientPlugin {
|
|
|
7
7
|
init(client: AuthsomeClient): void;
|
|
8
8
|
createUser(request: types.CreateUser_reqBody): Promise<void>;
|
|
9
9
|
listUsers(): Promise<void>;
|
|
10
|
-
deleteUser(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
deleteUser(params: {
|
|
11
|
+
id: string;
|
|
12
|
+
}): Promise<types.MessageResponse>;
|
|
13
|
+
banUser(params: {
|
|
14
|
+
id: string;
|
|
15
|
+
}, request: types.BanUser_reqBody): Promise<types.MessageResponse>;
|
|
16
|
+
unbanUser(params: {
|
|
17
|
+
id: string;
|
|
18
|
+
}, request: types.UnbanUser_reqBody): Promise<types.MessageResponse>;
|
|
19
|
+
impersonateUser(params: {
|
|
20
|
+
id: string;
|
|
21
|
+
}, request: types.ImpersonateUser_reqBody): Promise<void>;
|
|
22
|
+
setUserRole(params: {
|
|
23
|
+
id: string;
|
|
24
|
+
}, request: types.SetUserRole_reqBody): Promise<types.MessageResponse>;
|
|
15
25
|
listSessions(): Promise<void>;
|
|
16
|
-
revokeSession(
|
|
26
|
+
revokeSession(params: {
|
|
27
|
+
id: string;
|
|
28
|
+
}): Promise<types.MessageResponse>;
|
|
17
29
|
getStats(): Promise<void>;
|
|
18
30
|
getAuditLogs(): Promise<void>;
|
|
19
31
|
}
|
package/dist/plugins/admin.js
CHANGED
|
@@ -20,30 +20,30 @@ class AdminPlugin {
|
|
|
20
20
|
const path = '/users';
|
|
21
21
|
return this.client.request('GET', path);
|
|
22
22
|
}
|
|
23
|
-
async deleteUser() {
|
|
24
|
-
const path =
|
|
23
|
+
async deleteUser(params) {
|
|
24
|
+
const path = `/users/${params.id}`;
|
|
25
25
|
return this.client.request('DELETE', path);
|
|
26
26
|
}
|
|
27
|
-
async banUser(request) {
|
|
28
|
-
const path =
|
|
27
|
+
async banUser(params, request) {
|
|
28
|
+
const path = `/users/${params.id}/ban`;
|
|
29
29
|
return this.client.request('POST', path, {
|
|
30
30
|
body: request,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
async unbanUser(request) {
|
|
34
|
-
const path =
|
|
33
|
+
async unbanUser(params, request) {
|
|
34
|
+
const path = `/users/${params.id}/unban`;
|
|
35
35
|
return this.client.request('POST', path, {
|
|
36
36
|
body: request,
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
async impersonateUser(request) {
|
|
40
|
-
const path =
|
|
39
|
+
async impersonateUser(params, request) {
|
|
40
|
+
const path = `/users/${params.id}/impersonate`;
|
|
41
41
|
return this.client.request('POST', path, {
|
|
42
42
|
body: request,
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
async setUserRole(request) {
|
|
46
|
-
const path =
|
|
45
|
+
async setUserRole(params, request) {
|
|
46
|
+
const path = `/users/${params.id}/role`;
|
|
47
47
|
return this.client.request('POST', path, {
|
|
48
48
|
body: request,
|
|
49
49
|
});
|
|
@@ -52,8 +52,8 @@ class AdminPlugin {
|
|
|
52
52
|
const path = '/sessions';
|
|
53
53
|
return this.client.request('GET', path);
|
|
54
54
|
}
|
|
55
|
-
async revokeSession() {
|
|
56
|
-
const path =
|
|
55
|
+
async revokeSession(params) {
|
|
56
|
+
const path = `/sessions/${params.id}`;
|
|
57
57
|
return this.client.request('DELETE', path);
|
|
58
58
|
}
|
|
59
59
|
async getStats() {
|
package/dist/plugins/apikey.d.ts
CHANGED
|
@@ -5,12 +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(
|
|
8
|
+
createAPIKey(): Promise<void>;
|
|
9
|
+
rotateAPIKey(params: {
|
|
10
|
+
id: string;
|
|
11
|
+
}): Promise<void>;
|
|
9
12
|
listAPIKeys(): Promise<void>;
|
|
10
|
-
getAPIKey(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
getAPIKey(params: {
|
|
14
|
+
id: string;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
updateAPIKey(params: {
|
|
17
|
+
id: string;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
deleteAPIKey(params: {
|
|
20
|
+
id: string;
|
|
21
|
+
}): Promise<types.MessageResponse>;
|
|
14
22
|
verifyAPIKey(): Promise<void>;
|
|
15
23
|
}
|
|
16
24
|
export declare function apikeyClient(): ApikeyPlugin;
|
package/dist/plugins/apikey.js
CHANGED
|
@@ -10,32 +10,30 @@ class ApikeyPlugin {
|
|
|
10
10
|
init(client) {
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
|
-
async createAPIKey(
|
|
13
|
+
async createAPIKey() {
|
|
14
14
|
const path = '/createapikey';
|
|
15
|
-
return this.client.request('POST', path
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
return this.client.request('POST', path);
|
|
16
|
+
}
|
|
17
|
+
async rotateAPIKey(params) {
|
|
18
|
+
const path = `/${params.id}/rotate`;
|
|
19
|
+
return this.client.request('POST', path);
|
|
18
20
|
}
|
|
19
21
|
async listAPIKeys() {
|
|
20
22
|
const path = '/listapikeys';
|
|
21
23
|
return this.client.request('GET', path);
|
|
22
24
|
}
|
|
23
|
-
async getAPIKey() {
|
|
24
|
-
const path =
|
|
25
|
+
async getAPIKey(params) {
|
|
26
|
+
const path = `/${params.id}`;
|
|
25
27
|
return this.client.request('GET', path);
|
|
26
28
|
}
|
|
27
|
-
async updateAPIKey() {
|
|
28
|
-
const path =
|
|
29
|
+
async updateAPIKey(params) {
|
|
30
|
+
const path = `/${params.id}`;
|
|
29
31
|
return this.client.request('PUT', path);
|
|
30
32
|
}
|
|
31
|
-
async deleteAPIKey() {
|
|
32
|
-
const path =
|
|
33
|
+
async deleteAPIKey(params) {
|
|
34
|
+
const path = `/${params.id}`;
|
|
33
35
|
return this.client.request('DELETE', path);
|
|
34
36
|
}
|
|
35
|
-
async rotateAPIKey() {
|
|
36
|
-
const path = '/:id/rotate';
|
|
37
|
-
return this.client.request('POST', path);
|
|
38
|
-
}
|
|
39
37
|
async verifyAPIKey() {
|
|
40
38
|
const path = '/verify';
|
|
41
39
|
return this.client.request('POST', path);
|