@authsome/client 0.0.1

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.
Files changed (61) hide show
  1. package/dist/client.d.ts +91 -0
  2. package/dist/client.js +129 -0
  3. package/dist/errors.d.ts +31 -0
  4. package/dist/errors.js +94 -0
  5. package/dist/index.d.ts +29 -0
  6. package/dist/index.js +47 -0
  7. package/dist/plugin.d.ts +6 -0
  8. package/dist/plugin.js +3 -0
  9. package/dist/plugins/admin.d.ts +20 -0
  10. package/dist/plugins/admin.js +71 -0
  11. package/dist/plugins/anonymous.d.ts +11 -0
  12. package/dist/plugins/anonymous.js +27 -0
  13. package/dist/plugins/apikey.d.ts +16 -0
  14. package/dist/plugins/apikey.js +47 -0
  15. package/dist/plugins/backupauth.d.ts +38 -0
  16. package/dist/plugins/backupauth.js +177 -0
  17. package/dist/plugins/compliance.d.ts +42 -0
  18. package/dist/plugins/compliance.js +169 -0
  19. package/dist/plugins/consent.d.ts +27 -0
  20. package/dist/plugins/consent.js +105 -0
  21. package/dist/plugins/emailotp.d.ts +11 -0
  22. package/dist/plugins/emailotp.js +29 -0
  23. package/dist/plugins/idverification.d.ts +20 -0
  24. package/dist/plugins/idverification.js +67 -0
  25. package/dist/plugins/impersonation.d.ts +15 -0
  26. package/dist/plugins/impersonation.js +45 -0
  27. package/dist/plugins/jwt.d.ts +13 -0
  28. package/dist/plugins/jwt.js +37 -0
  29. package/dist/plugins/magiclink.d.ts +11 -0
  30. package/dist/plugins/magiclink.js +27 -0
  31. package/dist/plugins/mfa.d.ts +25 -0
  32. package/dist/plugins/mfa.js +93 -0
  33. package/dist/plugins/multiapp.d.ts +28 -0
  34. package/dist/plugins/multiapp.js +95 -0
  35. package/dist/plugins/multisession.d.ts +12 -0
  36. package/dist/plugins/multisession.js +31 -0
  37. package/dist/plugins/notification.d.ts +24 -0
  38. package/dist/plugins/notification.js +81 -0
  39. package/dist/plugins/oidcprovider.d.ts +22 -0
  40. package/dist/plugins/oidcprovider.js +75 -0
  41. package/dist/plugins/organization.d.ts +25 -0
  42. package/dist/plugins/organization.js +81 -0
  43. package/dist/plugins/passkey.d.ts +16 -0
  44. package/dist/plugins/passkey.js +45 -0
  45. package/dist/plugins/phone.d.ts +12 -0
  46. package/dist/plugins/phone.js +35 -0
  47. package/dist/plugins/social.d.ts +14 -0
  48. package/dist/plugins/social.js +41 -0
  49. package/dist/plugins/sso.d.ts +15 -0
  50. package/dist/plugins/sso.js +47 -0
  51. package/dist/plugins/stepup.d.ts +23 -0
  52. package/dist/plugins/stepup.js +81 -0
  53. package/dist/plugins/twofa.d.ts +15 -0
  54. package/dist/plugins/twofa.js +53 -0
  55. package/dist/plugins/username.d.ts +11 -0
  56. package/dist/plugins/username.js +25 -0
  57. package/dist/plugins/webhook.d.ts +32 -0
  58. package/dist/plugins/webhook.js +44 -0
  59. package/dist/types.d.ts +3175 -0
  60. package/dist/types.js +3 -0
  61. package/package.json +38 -0
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ // Auto-generated organization plugin
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OrganizationPlugin = void 0;
5
+ exports.organizationClient = organizationClient;
6
+ class OrganizationPlugin {
7
+ constructor() {
8
+ this.id = 'organization';
9
+ }
10
+ init(client) {
11
+ this.client = client;
12
+ }
13
+ async createOrganization() {
14
+ const path = '/createorganization';
15
+ return this.client.request('POST', path);
16
+ }
17
+ async updateOrganization() {
18
+ const path = '/:id';
19
+ return this.client.request('PATCH', path);
20
+ }
21
+ async deleteOrganization() {
22
+ const path = '/:id';
23
+ return this.client.request('DELETE', path);
24
+ }
25
+ async inviteMember() {
26
+ const path = '/invite';
27
+ return this.client.request('POST', path);
28
+ }
29
+ async removeMember() {
30
+ const path = '/:memberId';
31
+ return this.client.request('DELETE', path);
32
+ }
33
+ async createTeam() {
34
+ const path = '/createteam';
35
+ return this.client.request('POST', path);
36
+ }
37
+ async updateTeam() {
38
+ const path = '/:teamId';
39
+ return this.client.request('PATCH', path);
40
+ }
41
+ async deleteTeam() {
42
+ const path = '/:teamId';
43
+ return this.client.request('DELETE', path);
44
+ }
45
+ async getOrganization() {
46
+ const path = '/:id';
47
+ return this.client.request('GET', path);
48
+ }
49
+ async listOrganizations() {
50
+ const path = '/listorganizations';
51
+ return this.client.request('GET', path);
52
+ }
53
+ async getOrganizationBySlug() {
54
+ const path = '/slug/:slug';
55
+ return this.client.request('GET', path);
56
+ }
57
+ async listMembers() {
58
+ const path = '/listmembers';
59
+ return this.client.request('GET', path);
60
+ }
61
+ async updateMember() {
62
+ const path = '/:memberId';
63
+ return this.client.request('PATCH', path);
64
+ }
65
+ async acceptInvitation() {
66
+ const path = '/:token/accept';
67
+ return this.client.request('POST', path);
68
+ }
69
+ async declineInvitation() {
70
+ const path = '/:token/decline';
71
+ return this.client.request('POST', path);
72
+ }
73
+ async listTeams() {
74
+ const path = '/listteams';
75
+ return this.client.request('GET', path);
76
+ }
77
+ }
78
+ exports.OrganizationPlugin = OrganizationPlugin;
79
+ function organizationClient() {
80
+ return new OrganizationPlugin();
81
+ }
@@ -0,0 +1,16 @@
1
+ import { ClientPlugin } from '../plugin';
2
+ import { AuthsomeClient } from '../client';
3
+ import * as types from '../types';
4
+ export declare class PasskeyPlugin implements ClientPlugin {
5
+ readonly id = "passkey";
6
+ private client;
7
+ init(client: AuthsomeClient): void;
8
+ beginRegister(): Promise<void>;
9
+ finishRegister(): Promise<void>;
10
+ beginLogin(): Promise<void>;
11
+ finishLogin(): Promise<void>;
12
+ list(): Promise<void>;
13
+ update(): Promise<void>;
14
+ delete(): Promise<types.StatusResponse>;
15
+ }
16
+ export declare function passkeyClient(): PasskeyPlugin;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // Auto-generated passkey plugin
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PasskeyPlugin = void 0;
5
+ exports.passkeyClient = passkeyClient;
6
+ class PasskeyPlugin {
7
+ constructor() {
8
+ this.id = 'passkey';
9
+ }
10
+ init(client) {
11
+ this.client = client;
12
+ }
13
+ async beginRegister() {
14
+ const path = '/register/begin';
15
+ return this.client.request('POST', path);
16
+ }
17
+ async finishRegister() {
18
+ const path = '/register/finish';
19
+ return this.client.request('POST', path);
20
+ }
21
+ async beginLogin() {
22
+ const path = '/login/begin';
23
+ return this.client.request('POST', path);
24
+ }
25
+ async finishLogin() {
26
+ const path = '/login/finish';
27
+ return this.client.request('POST', path);
28
+ }
29
+ async list() {
30
+ const path = '/list';
31
+ return this.client.request('GET', path);
32
+ }
33
+ async update() {
34
+ const path = '/:id';
35
+ return this.client.request('PUT', path);
36
+ }
37
+ async delete() {
38
+ const path = '/:id';
39
+ return this.client.request('DELETE', path);
40
+ }
41
+ }
42
+ exports.PasskeyPlugin = PasskeyPlugin;
43
+ function passkeyClient() {
44
+ return new PasskeyPlugin();
45
+ }
@@ -0,0 +1,12 @@
1
+ import { ClientPlugin } from '../plugin';
2
+ import { AuthsomeClient } from '../client';
3
+ import * as types from '../types';
4
+ export declare class PhonePlugin implements ClientPlugin {
5
+ readonly id = "phone";
6
+ private client;
7
+ init(client: AuthsomeClient): void;
8
+ sendCode(request: types.SendCodeRequest): Promise<void>;
9
+ verify(request: types.VerifyRequest): Promise<types.PhoneVerifyResponse>;
10
+ signIn(request: types.VerifyRequest): Promise<types.PhoneVerifyResponse>;
11
+ }
12
+ export declare function phoneClient(): PhonePlugin;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // Auto-generated phone plugin
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PhonePlugin = void 0;
5
+ exports.phoneClient = phoneClient;
6
+ class PhonePlugin {
7
+ constructor() {
8
+ this.id = 'phone';
9
+ }
10
+ init(client) {
11
+ this.client = client;
12
+ }
13
+ async sendCode(request) {
14
+ const path = '/phone/send-code';
15
+ return this.client.request('POST', path, {
16
+ body: request,
17
+ });
18
+ }
19
+ async verify(request) {
20
+ const path = '/phone/verify';
21
+ return this.client.request('POST', path, {
22
+ body: request,
23
+ });
24
+ }
25
+ async signIn(request) {
26
+ const path = '/phone/signin';
27
+ return this.client.request('POST', path, {
28
+ body: request,
29
+ });
30
+ }
31
+ }
32
+ exports.PhonePlugin = PhonePlugin;
33
+ function phoneClient() {
34
+ return new PhonePlugin();
35
+ }
@@ -0,0 +1,14 @@
1
+ import { ClientPlugin } from '../plugin';
2
+ import { AuthsomeClient } from '../client';
3
+ import * as types from '../types';
4
+ export declare class SocialPlugin implements ClientPlugin {
5
+ readonly id = "social";
6
+ private client;
7
+ init(client: AuthsomeClient): void;
8
+ signIn(request: types.SignInRequest): Promise<types.AuthURLResponse>;
9
+ callback(): Promise<types.CallbackDataResponse>;
10
+ linkAccount(request: types.LinkAccountRequest): Promise<types.AuthURLResponse>;
11
+ unlinkAccount(): Promise<types.MessageResponse>;
12
+ listProviders(): Promise<types.ProvidersResponse>;
13
+ }
14
+ export declare function socialClient(): SocialPlugin;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // Auto-generated social plugin
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SocialPlugin = void 0;
5
+ exports.socialClient = socialClient;
6
+ class SocialPlugin {
7
+ constructor() {
8
+ this.id = 'social';
9
+ }
10
+ init(client) {
11
+ this.client = client;
12
+ }
13
+ async signIn(request) {
14
+ const path = '/signin/social';
15
+ return this.client.request('POST', path, {
16
+ body: request,
17
+ });
18
+ }
19
+ async callback() {
20
+ const path = '/callback/:provider';
21
+ return this.client.request('GET', path);
22
+ }
23
+ async linkAccount(request) {
24
+ const path = '/account/link';
25
+ return this.client.request('POST', path, {
26
+ body: request,
27
+ });
28
+ }
29
+ async unlinkAccount() {
30
+ const path = '/account/unlink/:provider';
31
+ return this.client.request('DELETE', path);
32
+ }
33
+ async listProviders() {
34
+ const path = '/providers';
35
+ return this.client.request('GET', path);
36
+ }
37
+ }
38
+ exports.SocialPlugin = SocialPlugin;
39
+ function socialClient() {
40
+ return new SocialPlugin();
41
+ }
@@ -0,0 +1,15 @@
1
+ import { ClientPlugin } from '../plugin';
2
+ import { AuthsomeClient } from '../client';
3
+ import * as types from '../types';
4
+ export declare class SsoPlugin implements ClientPlugin {
5
+ readonly id = "sso";
6
+ private client;
7
+ init(client: AuthsomeClient): void;
8
+ registerProvider(request: types.RegisterProviderRequest): Promise<types.ProviderRegisteredResponse>;
9
+ sAMLSPMetadata(): Promise<types.MetadataResponse>;
10
+ sAMLLogin(request: types.SAMLLoginRequest): Promise<types.SAMLLoginResponse>;
11
+ sAMLCallback(): Promise<types.SSOAuthResponse>;
12
+ oIDCLogin(request: types.OIDCLoginRequest): Promise<types.OIDCLoginResponse>;
13
+ oIDCCallback(): Promise<types.SSOAuthResponse>;
14
+ }
15
+ export declare function ssoClient(): SsoPlugin;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // Auto-generated sso plugin
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SsoPlugin = void 0;
5
+ exports.ssoClient = ssoClient;
6
+ class SsoPlugin {
7
+ constructor() {
8
+ this.id = 'sso';
9
+ }
10
+ init(client) {
11
+ this.client = client;
12
+ }
13
+ async registerProvider(request) {
14
+ const path = '/provider/register';
15
+ return this.client.request('POST', path, {
16
+ body: request,
17
+ });
18
+ }
19
+ async sAMLSPMetadata() {
20
+ const path = '/saml2/sp/metadata';
21
+ return this.client.request('GET', path);
22
+ }
23
+ async sAMLLogin(request) {
24
+ const path = '/saml2/login/:providerId';
25
+ return this.client.request('POST', path, {
26
+ body: request,
27
+ });
28
+ }
29
+ async sAMLCallback() {
30
+ const path = '/saml2/callback/:providerId';
31
+ return this.client.request('POST', path);
32
+ }
33
+ async oIDCLogin(request) {
34
+ const path = '/oidc/login/:providerId';
35
+ return this.client.request('POST', path, {
36
+ body: request,
37
+ });
38
+ }
39
+ async oIDCCallback() {
40
+ const path = '/oidc/callback/:providerId';
41
+ return this.client.request('GET', path);
42
+ }
43
+ }
44
+ exports.SsoPlugin = SsoPlugin;
45
+ function ssoClient() {
46
+ return new SsoPlugin();
47
+ }
@@ -0,0 +1,23 @@
1
+ import { ClientPlugin } from '../plugin';
2
+ import { AuthsomeClient } from '../client';
3
+ import * as types from '../types';
4
+ export declare class StepupPlugin implements ClientPlugin {
5
+ readonly id = "stepup";
6
+ private client;
7
+ init(client: AuthsomeClient): void;
8
+ evaluate(request: types.EvaluateRequest): Promise<void>;
9
+ verify(request: types.VerifyRequest): Promise<void>;
10
+ getRequirement(): Promise<void>;
11
+ listPendingRequirements(): Promise<types.RequirementsResponse>;
12
+ listVerifications(): Promise<void>;
13
+ listRememberedDevices(): Promise<types.StepUpDevicesResponse>;
14
+ forgetDevice(): Promise<types.ForgetDeviceResponse>;
15
+ createPolicy(request: types.StepUpPolicy): Promise<types.StepUpPolicy>;
16
+ listPolicies(): Promise<void>;
17
+ getPolicy(): Promise<void>;
18
+ updatePolicy(request: types.StepUpPolicy): Promise<types.StepUpPolicy>;
19
+ deletePolicy(): Promise<void>;
20
+ getAuditLogs(): Promise<void>;
21
+ status(): Promise<void>;
22
+ }
23
+ export declare function stepupClient(): StepupPlugin;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ // Auto-generated stepup plugin
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.StepupPlugin = void 0;
5
+ exports.stepupClient = stepupClient;
6
+ class StepupPlugin {
7
+ constructor() {
8
+ this.id = 'stepup';
9
+ }
10
+ init(client) {
11
+ this.client = client;
12
+ }
13
+ async evaluate(request) {
14
+ const path = '/evaluate';
15
+ return this.client.request('POST', path, {
16
+ body: request,
17
+ });
18
+ }
19
+ async verify(request) {
20
+ const path = '/verify';
21
+ return this.client.request('POST', path, {
22
+ body: request,
23
+ });
24
+ }
25
+ async getRequirement() {
26
+ const path = '/requirements/:id';
27
+ return this.client.request('GET', path);
28
+ }
29
+ async listPendingRequirements() {
30
+ const path = '/requirements/pending';
31
+ return this.client.request('GET', path);
32
+ }
33
+ async listVerifications() {
34
+ const path = '/verifications';
35
+ return this.client.request('GET', path);
36
+ }
37
+ async listRememberedDevices() {
38
+ const path = '/devices';
39
+ return this.client.request('GET', path);
40
+ }
41
+ async forgetDevice() {
42
+ const path = '/devices/:id';
43
+ return this.client.request('DELETE', path);
44
+ }
45
+ async createPolicy(request) {
46
+ const path = '/policies';
47
+ return this.client.request('POST', path, {
48
+ body: request,
49
+ });
50
+ }
51
+ async listPolicies() {
52
+ const path = '/policies';
53
+ return this.client.request('GET', path);
54
+ }
55
+ async getPolicy() {
56
+ const path = '/policies/:id';
57
+ return this.client.request('GET', path);
58
+ }
59
+ async updatePolicy(request) {
60
+ const path = '/policies/:id';
61
+ return this.client.request('PUT', path, {
62
+ body: request,
63
+ });
64
+ }
65
+ async deletePolicy() {
66
+ const path = '/policies/:id';
67
+ return this.client.request('DELETE', path);
68
+ }
69
+ async getAuditLogs() {
70
+ const path = '/audit';
71
+ return this.client.request('GET', path);
72
+ }
73
+ async status() {
74
+ const path = '/status';
75
+ return this.client.request('GET', path);
76
+ }
77
+ }
78
+ exports.StepupPlugin = StepupPlugin;
79
+ function stepupClient() {
80
+ return new StepupPlugin();
81
+ }
@@ -0,0 +1,15 @@
1
+ import { ClientPlugin } from '../plugin';
2
+ import { AuthsomeClient } from '../client';
3
+ import * as types from '../types';
4
+ export declare class TwofaPlugin implements ClientPlugin {
5
+ readonly id = "twofa";
6
+ private client;
7
+ init(client: AuthsomeClient): void;
8
+ enable(request: types.Enable_body): Promise<void>;
9
+ verify(request: types.Verify_body): Promise<types.StatusResponse>;
10
+ disable(request: types.Disable_body): Promise<types.StatusResponse>;
11
+ generateBackupCodes(request: types.GenerateBackupCodes_body): Promise<types.CodesResponse>;
12
+ sendOTP(request: types.SendOTP_body): Promise<types.OTPSentResponse>;
13
+ status(request: types.Status_body): Promise<types.TwoFAStatusResponse>;
14
+ }
15
+ export declare function twofaClient(): TwofaPlugin;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ // Auto-generated twofa plugin
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TwofaPlugin = void 0;
5
+ exports.twofaClient = twofaClient;
6
+ class TwofaPlugin {
7
+ constructor() {
8
+ this.id = 'twofa';
9
+ }
10
+ init(client) {
11
+ this.client = client;
12
+ }
13
+ async enable(request) {
14
+ const path = '/2fa/enable';
15
+ return this.client.request('POST', path, {
16
+ body: request,
17
+ });
18
+ }
19
+ async verify(request) {
20
+ const path = '/2fa/verify';
21
+ return this.client.request('POST', path, {
22
+ body: request,
23
+ });
24
+ }
25
+ async disable(request) {
26
+ const path = '/2fa/disable';
27
+ return this.client.request('POST', path, {
28
+ body: request,
29
+ });
30
+ }
31
+ async generateBackupCodes(request) {
32
+ const path = '/2fa/generate-backup-codes';
33
+ return this.client.request('POST', path, {
34
+ body: request,
35
+ });
36
+ }
37
+ async sendOTP(request) {
38
+ const path = '/2fa/send-otp';
39
+ return this.client.request('POST', path, {
40
+ body: request,
41
+ });
42
+ }
43
+ async status(request) {
44
+ const path = '/2fa/status';
45
+ return this.client.request('POST', path, {
46
+ body: request,
47
+ });
48
+ }
49
+ }
50
+ exports.TwofaPlugin = TwofaPlugin;
51
+ function twofaClient() {
52
+ return new TwofaPlugin();
53
+ }
@@ -0,0 +1,11 @@
1
+ import { ClientPlugin } from '../plugin';
2
+ import { AuthsomeClient } from '../client';
3
+ import * as types from '../types';
4
+ export declare class UsernamePlugin implements ClientPlugin {
5
+ readonly id = "username";
6
+ private client;
7
+ init(client: AuthsomeClient): void;
8
+ signUp(): Promise<types.SignUpResponse>;
9
+ signIn(): Promise<types.SignInResponse>;
10
+ }
11
+ export declare function usernameClient(): UsernamePlugin;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // Auto-generated username plugin
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.UsernamePlugin = void 0;
5
+ exports.usernameClient = usernameClient;
6
+ class UsernamePlugin {
7
+ constructor() {
8
+ this.id = 'username';
9
+ }
10
+ init(client) {
11
+ this.client = client;
12
+ }
13
+ async signUp() {
14
+ const path = '/username/signup';
15
+ return this.client.request('POST', path);
16
+ }
17
+ async signIn() {
18
+ const path = '/username/signin';
19
+ return this.client.request('POST', path);
20
+ }
21
+ }
22
+ exports.UsernamePlugin = UsernamePlugin;
23
+ function usernameClient() {
24
+ return new UsernamePlugin();
25
+ }
@@ -0,0 +1,32 @@
1
+ import { ClientPlugin } from '../plugin';
2
+ import { AuthsomeClient } from '../client';
3
+ import * as types from '../types';
4
+ export declare class WebhookPlugin implements ClientPlugin {
5
+ readonly id = "webhook";
6
+ private client;
7
+ init(client: AuthsomeClient): void;
8
+ create(request: {
9
+ events: string[];
10
+ secret?: string;
11
+ url: string;
12
+ }): Promise<{
13
+ webhook: types.Webhook;
14
+ }>;
15
+ list(): Promise<{
16
+ webhooks: types.Webhook[];
17
+ }>;
18
+ update(request: {
19
+ id: string;
20
+ url?: string;
21
+ events?: string[];
22
+ enabled?: boolean;
23
+ }): Promise<{
24
+ webhook: types.Webhook;
25
+ }>;
26
+ delete(request: {
27
+ id: string;
28
+ }): Promise<{
29
+ success: boolean;
30
+ }>;
31
+ }
32
+ export declare function webhookClient(): WebhookPlugin;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // Auto-generated webhook plugin
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WebhookPlugin = void 0;
5
+ exports.webhookClient = webhookClient;
6
+ class WebhookPlugin {
7
+ constructor() {
8
+ this.id = 'webhook';
9
+ }
10
+ init(client) {
11
+ this.client = client;
12
+ }
13
+ async create(request) {
14
+ const path = '/api/auth/webhooks';
15
+ return this.client.request('POST', path, {
16
+ body: request,
17
+ auth: true,
18
+ });
19
+ }
20
+ async list() {
21
+ const path = '/api/auth/webhooks';
22
+ return this.client.request('GET', path, {
23
+ auth: true,
24
+ });
25
+ }
26
+ async update(request) {
27
+ const path = '/api/auth/webhooks/update';
28
+ return this.client.request('POST', path, {
29
+ body: request,
30
+ auth: true,
31
+ });
32
+ }
33
+ async delete(request) {
34
+ const path = '/api/auth/webhooks/delete';
35
+ return this.client.request('POST', path, {
36
+ body: request,
37
+ auth: true,
38
+ });
39
+ }
40
+ }
41
+ exports.WebhookPlugin = WebhookPlugin;
42
+ function webhookClient() {
43
+ return new WebhookPlugin();
44
+ }