mailchannels-sdk 0.3.7 → 0.4.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.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Yizack Rangel
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Yizack Rangel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,159 +1,177 @@
1
- ![MailChannels](/docs/public/images/presentation.png)
2
-
3
- # MailChannels
4
-
5
- [![npm version][npm-version-src]][npm-version-href]
6
- [![npm downloads][npm-downloads-src]][npm-downloads-href]
7
- [![codecov][codecov-coverage-src]][codecov-coverage-href]
8
-
9
- Node.js SDK to integrate [MailChannels API](https://docs.mailchannels.net/) into your JavaScript or TypeScript server-side applications.
10
-
11
- <!-- #region overview -->
12
- This library provides a simple way to interact with the [MailChannels API](https://docs.mailchannels.net/). It is written in TypeScript and can be used in both JavaScript and TypeScript projects and in different runtimes.
13
- <!-- #endregion overview -->
14
-
15
- <!-- #region note -->
16
- > [!NOTE]
17
- > This library is NOT officially maintained by [MailChannels Corporation](https://mailchannels.com/).
18
- <!-- #endregion note -->
19
-
20
- - [✨ Release Notes](CHANGELOG.md)
21
- - [📖 Documentation](https://mailchannels.yizack.com)
22
-
23
- ## Contents
24
-
25
- - 🚀 [Features](#features)
26
- - 📏 [Requirements](#requirements)
27
- - 🏃 [Quick setup](#quick-setup)
28
- - 🚧 [Roadmap](#roadmap)
29
- - ⚖️ [License](#license)
30
- - 💻 [Development](#development)
31
-
32
- ## <a name="features">🚀 Features</a>
33
-
34
- - Send transactional emails
35
- - Check DKIM, SPF & Domain Lockdown
36
- - Webhook notifications
37
- - Manage sub-accounts
38
- - Manage inbound domains
39
- - Manage account lists
40
- - Manage recipient lists
41
-
42
- ## <a name="requirements">📏 Requirements</a>
43
-
44
- - MailChannels account
45
- - Email API key
46
-
47
- ## <a name="quick-setup">🏃 Quick setup</a>
48
-
49
- 1. Add `mailchannels-sdk` dependency to your project
50
-
51
- ```sh
52
- # npm
53
- npm i mailchannels-sdk
54
-
55
- # yarn
56
- yarn add mailchannels-sdk
57
-
58
- # pnpm
59
- pnpm add mailchannels-sdk
60
- ```
61
-
62
- ## <a name="license">⚖️ License</a>
63
-
64
- [MIT License](LICENSE)
65
-
66
- <!-- #region roadmap -->
67
- ## <a name="roadmap">🚧 Roadmap</a>
68
-
69
- Already implemented features are marked with a checkmark. Please open an issue if you find any bugs or missing features.
70
-
71
- ### [Email API](https://docs.mailchannels.net/email-api/api-reference/email-api)
72
-
73
- - 📧 Emails
74
- - ✅ Send an Email
75
- - DKIM, SPF & Domain Lockdown Check
76
- - 📢 Webhooks
77
- - ✅ Enroll for Webhook Notifications
78
- - Retrieve Customer Webhooks
79
- - ✅ Delete Customer Webhooks
80
- - ✅ Retrieve Webhook Signing Key
81
- - 🪪 Sub-accounts
82
- - ✅ Create Sub-account
83
- - ✅ Retrieve Sub-accounts
84
- - Delete Sub-account
85
- - ✅ Suspend Sub-account
86
- - ✅ Activate Sub-account
87
- - ✅ Create Sub-account API Key
88
- - ✅ Delete Sub-account API Key
89
- - ✅ Retrieve Sub-account API Keys
90
- - ✅ Create Sub-account SMTP password
91
- - ✅ Delete Sub-account SMTP password
92
- - ✅ Retrieve Sub-account SMTP Passwords
93
-
94
- ### [Inbound API](https://docs.mailchannels.net/inbound-api/API-reference/inbound-api)
95
-
96
- - 🌐 Domains
97
- - ✅ Provision domain
98
- - ✅ Remove domain
99
- - ✅ List domains
100
- - Bulk provision domains
101
- - ✅ Add domain list entry
102
- - ✅ Get domain list entries
103
- - ✅ Delete domain list entry
104
- - ✅ Create login link
105
- - ✅ Set downstream address
106
- - Fetch downstream addresses
107
- - ✅ Update API key
108
- - 📋 Lists
109
- - ✅ Add item to customer list
110
- - ✅ Delete item from customer list
111
- - Get customer list entries
112
- - 📥 Users
113
- - Create a recipient
114
- - ✅ Add item to recipient list
115
- - ✅ Get recipient list entries
116
- - ✅ Delete item from recipient list
117
- - ⚙️ Service
118
- - ✅ Retrieve the condition of the service
119
- - ✅ Submit a false negative or false positive report
120
- - ✅ Get a list of your subscriptions to MailChannels Inbound
121
- <!-- #endregion roadmap -->
122
-
123
- ## <a name="development">💻 Development</a>
124
-
125
- <details>
126
- <summary>Local development</summary>
127
-
128
- ```sh
129
- # Install dependencies
130
- pnpm install
131
-
132
- # Build the package
133
- npm run build
134
-
135
- # Run ESLint
136
- npm run lint
137
-
138
- # Run Vitest
139
- npm run test
140
- npm run test:watch
141
-
142
- # Run typecheck
143
- npm run test:types
144
-
145
- # Release new version
146
- npm run release
147
- ```
148
-
149
- </details>
150
-
151
- <!-- Badges -->
152
- [npm-version-src]: https://img.shields.io/npm/v/mailchannels-sdk.svg?style=flat&colorA=070a30&colorB=35a047
153
- [npm-version-href]: https://npmjs.com/package/mailchannels-sdk
154
-
155
- [npm-downloads-src]: https://img.shields.io/npm/dm/mailchannels-sdk.svg?style=flat&colorA=070a30&colorB=35a047
156
- [npm-downloads-href]: https://npmjs.com/package/mailchannels-sdk
157
-
158
- [codecov-coverage-src]: https://img.shields.io/codecov/c/github/yizack/mailchannels?style=flat&colorA=070a30&token=HTSBRHSJ5M
159
- [codecov-coverage-href]: https://codecov.io/gh/Yizack/mailchannels
1
+ ![MailChannels](/docs/public/images/presentation.png)
2
+
3
+ # MailChannels
4
+
5
+ [![npm version][npm-version-src]][npm-version-href]
6
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
7
+ [![codecov][codecov-coverage-src]][codecov-coverage-href]
8
+
9
+ Node.js SDK to integrate [MailChannels API](https://docs.mailchannels.net/) into your JavaScript or TypeScript server-side applications.
10
+
11
+ <!-- #region overview -->
12
+ This library provides a simple way to interact with the [MailChannels API](https://docs.mailchannels.net/). It is written in TypeScript and can be used in both JavaScript and TypeScript projects and in different runtimes.
13
+ <!-- #endregion overview -->
14
+
15
+ <!-- #region note -->
16
+ > [!NOTE]
17
+ > This library is NOT officially maintained by [MailChannels Corporation](https://mailchannels.com/).
18
+ <!-- #endregion note -->
19
+
20
+ - [✨ Release Notes](CHANGELOG.md)
21
+ - [📖 Documentation](https://mailchannels.yizack.com)
22
+
23
+ ## Contents
24
+
25
+ - 🚀 [Features](#features)
26
+ - 📏 [Requirements](#requirements)
27
+ - 🏃 [Quick setup](#quick-setup)
28
+ - 🚧 [Roadmap](#roadmap)
29
+ - ⚖️ [License](#license)
30
+ - 💻 [Development](#development)
31
+
32
+ ## <a name="features">🚀 Features</a>
33
+
34
+ - Send transactional emails
35
+ - Check DKIM, SPF & Domain Lockdown
36
+ - Webhook notifications
37
+ - Manage sub-accounts
38
+ - Retrieve metrics
39
+ - Manage suppressions
40
+ - Manage inbound domains
41
+ - Manage account lists
42
+ - Manage recipient lists
43
+
44
+ ## <a name="requirements">📏 Requirements</a>
45
+
46
+ - MailChannels account
47
+ - Email API key
48
+
49
+ ## <a name="quick-setup">🏃 Quick setup</a>
50
+
51
+ 1. Add `mailchannels-sdk` dependency to your project
52
+
53
+ ```sh
54
+ # npm
55
+ npm i mailchannels-sdk
56
+
57
+ # yarn
58
+ yarn add mailchannels-sdk
59
+
60
+ # pnpm
61
+ pnpm add mailchannels-sdk
62
+ ```
63
+
64
+ ## <a name="license">⚖️ License</a>
65
+
66
+ [MIT License](LICENSE)
67
+
68
+ <!-- #region roadmap -->
69
+ ## <a name="roadmap">🚧 Roadmap</a>
70
+
71
+ Already implemented features are marked with a checkmark. Please open an issue if you find any bugs or missing features.
72
+
73
+ ### [Email API](https://docs.mailchannels.net/email-api/api-reference/email-api)
74
+
75
+ - 📧 Emails
76
+ - [Send an Email](https://docs.mailchannels.net/email-api/api-reference/send-an-email)
77
+ - ✅ [DKIM, SPF & Domain Lockdown Check](https://docs.mailchannels.net/email-api/api-reference/dkim-spf-domain-lockdown-check)
78
+ - 📢 Webhooks
79
+ - ✅ [Enroll for Webhook Notifications](https://docs.mailchannels.net/email-api/api-reference/enroll-for-webhook-notifications)
80
+ - ✅ [Retrieve Customer Webhooks](https://docs.mailchannels.net/email-api/api-reference/retrieve-customer-webhooks)
81
+ - [Delete Customer Webhooks](https://docs.mailchannels.net/email-api/api-reference/delete-customer-webhooks)
82
+ - ✅ [Retrieve Webhook Signing Key](https://docs.mailchannels.net/email-api/api-reference/retrieve-webhook-signing-key)
83
+ - ✅ [Validate Enrolled Webhook](https://docs.mailchannels.net/email-api/api-reference/validate-enrolled-webhook)
84
+ - 🪪 Sub-accounts
85
+ - ✅ [Create Sub-account](https://docs.mailchannels.net/email-api/api-reference/create-sub-account)
86
+ - ✅ [Retrieve Sub-accounts](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-accounts)
87
+ - ✅ [Delete Sub-account](https://docs.mailchannels.net/email-api/api-reference/delete-sub-account)
88
+ - ✅ [Suspend Sub-account](https://docs.mailchannels.net/email-api/api-reference/suspend-sub-account)
89
+ - ✅ [Activate Sub-account](https://docs.mailchannels.net/email-api/api-reference/activate-sub-account)
90
+ - ✅ [Create Sub-account API Key](https://docs.mailchannels.net/email-api/api-reference/create-sub-account-api-key)
91
+ - ✅ [Delete Sub-account API Key](https://docs.mailchannels.net/email-api/api-reference/delete-sub-account-api-key)
92
+ - ✅ [Retrieve Sub-account API Keys](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-account-api-keys)
93
+ - ✅ [Create Sub-account SMTP Password](https://docs.mailchannels.net/email-api/api-reference/create-sub-account-smtp-password)
94
+ - [Delete Sub-account SMTP Password](https://docs.mailchannels.net/email-api/api-reference/delete-sub-account-smtp-password)
95
+ - ✅ [Retrieve Sub-account SMTP Passwords](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-account-smtp-passwords)
96
+ - [Retrieve Sub-account Limit](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-account-limit)
97
+ - ✅ [Set Sub-account Limit](https://docs.mailchannels.net/email-api/api-reference/set-sub-account-limit)
98
+ - ✅ [Delete Sub-account Limit](https://docs.mailchannels.net/email-api/api-reference/delete-sub-account-limit)
99
+ - ✅ [Retrieve Sub-account Usage Stats](https://docs.mailchannels.net/email-api/api-reference/retrieve-sub-account-usage-stats)
100
+ - 📊 Metrics
101
+ - ✅ [Retrieve Engagement Metrics](https://docs.mailchannels.net/email-api/api-reference/retrieve-engagement-metrics)
102
+ - ✅ [Retrieve Performance Metrics](https://docs.mailchannels.net/email-api/api-reference/retrieve-performance-metrics)
103
+ - ✅ [Retrieve Recipient Behaviour Metrics](https://docs.mailchannels.net/email-api/api-reference/retrieve-recipient-behaviour-metrics)
104
+ - ✅ [Retrieve Usage Stats](https://docs.mailchannels.net/email-api/api-reference/retrieve-usage-stats)
105
+ - ✅ [Retrieve Volume Metrics](https://docs.mailchannels.net/email-api/api-reference/retrieve-volume-metrics)
106
+ - 🚫 Suppressions
107
+ - ✅ [Create Suppression Entries](https://docs.mailchannels.net/email-api/api-reference/create-suppression-entries)
108
+ - [Delete Suppression Entry](https://docs.mailchannels.net/email-api/api-reference/delete-suppression-entry)
109
+ - ✅ [Retrieve Suppression List](https://docs.mailchannels.net/email-api/api-reference/retrieve-suppression-list)
110
+
111
+ ### [Inbound API](https://docs.mailchannels.net/inbound-api/API-reference/inbound-api)
112
+
113
+ - 🌐 Domains
114
+ - ✅ [Provision domain](https://docs.mailchannels.net/inbound-api/API-reference/provision-domain)
115
+ - ✅ [Remove domain](https://docs.mailchannels.net/inbound-api/API-reference/remove-domain)
116
+ - ✅ [List domains](https://docs.mailchannels.net/inbound-api/API-reference/list-domains)
117
+ - [Bulk provision domains](https://docs.mailchannels.net/inbound-api/API-reference/bulk-provision-domains)
118
+ - ✅ [Add domain list entry](https://docs.mailchannels.net/inbound-api/API-reference/add-domain-list-entry)
119
+ - ✅ [Get domain list entries](https://docs.mailchannels.net/inbound-api/API-reference/get-domain-list-entries)
120
+ - ✅ [Delete domain list entry](https://docs.mailchannels.net/inbound-api/API-reference/delete-domain-list-entry)
121
+ - [Create login link](https://docs.mailchannels.net/inbound-api/API-reference/create-login-link)
122
+ - ✅ [Bulk create login links](https://docs.mailchannels.net/inbound-api/API-reference/bulk-create-login-links)
123
+ - [Set downstream address](https://docs.mailchannels.net/inbound-api/API-reference/set-downstream-address)
124
+ - ✅ [Fetch downstream addresses](https://docs.mailchannels.net/inbound-api/API-reference/fetch-downstream-addresses)
125
+ - ✅ [Update API key](https://docs.mailchannels.net/inbound-api/API-reference/update-api-key)
126
+ - 📋 Lists
127
+ - ✅ [Add item to customer list](https://docs.mailchannels.net/inbound-api/API-reference/add-item-to-customer-list)
128
+ - ✅ [Delete item from customer list](https://docs.mailchannels.net/inbound-api/API-reference/delete-item-from-customer-list)
129
+ - [Get customer list entries](https://docs.mailchannels.net/inbound-api/API-reference/get-customer-list-entries)
130
+ - 📥 Users
131
+ - ✅ [Create a recipient](https://docs.mailchannels.net/inbound-api/API-reference/create-a-recipient)
132
+ - [Add item to recipient list](https://docs.mailchannels.net/inbound-api/API-reference/add-item-to-recipient-list)
133
+ - [Get recipient list entries](https://docs.mailchannels.net/inbound-api/API-reference/get-recipient-list-entries)
134
+ - ✅ [Delete item from recipient list](https://docs.mailchannels.net/inbound-api/API-reference/delete-item-from-recipient-list)
135
+ - ⚙️ Service
136
+ - [Retrieve the condition of the service](https://docs.mailchannels.net/inbound-api/API-reference/retrieve-the-condition-of-the-service)
137
+ - ✅ [Submit a false negative or false positive report](https://docs.mailchannels.net/inbound-api/API-reference/submit-a-false-negative-or-false-positive-report)
138
+ - [Get a list of your subscriptions to MailChannels Inbound](https://docs.mailchannels.net/inbound-api/API-reference/get-a-list-of-your-subscriptions-to-mail-channels-inbound)
139
+ <!-- #endregion roadmap -->
140
+
141
+ ## <a name="development">💻 Development</a>
142
+
143
+ <details>
144
+ <summary>Local development</summary>
145
+
146
+ ```sh
147
+ # Install dependencies
148
+ pnpm install
149
+
150
+ # Build the package
151
+ npm run build
152
+
153
+ # Run ESLint
154
+ npm run lint
155
+
156
+ # Run Vitest
157
+ npm run test
158
+ npm run test:watch
159
+
160
+ # Run typecheck
161
+ npm run test:types
162
+
163
+ # Release new version
164
+ npm run release
165
+ ```
166
+
167
+ </details>
168
+
169
+ <!-- Badges -->
170
+ [npm-version-src]: https://img.shields.io/npm/v/mailchannels-sdk.svg?style=flat&colorA=070a30&colorB=35a047
171
+ [npm-version-href]: https://npmjs.com/package/mailchannels-sdk
172
+
173
+ [npm-downloads-src]: https://img.shields.io/npm/dm/mailchannels-sdk.svg?style=flat&colorA=070a30&colorB=35a047
174
+ [npm-downloads-href]: https://npmjs.com/package/mailchannels-sdk
175
+
176
+ [codecov-coverage-src]: https://img.shields.io/codecov/c/github/yizack/mailchannels?style=flat&colorA=070a30&token=HTSBRHSJ5M
177
+ [codecov-coverage-href]: https://codecov.io/gh/Yizack/mailchannels
@@ -1,15 +1,17 @@
1
- import { M as MailChannelsClient, E as Emails, W as Webhooks, S as SubAccounts, a as Service, D as Domains, U as Users, L as Lists } from './shared/mailchannels-sdk.BDB65ygx.mjs';
2
- export { z as DomainsBulkProvisionOptions, B as DomainsBulkProvisionResponse, G as DomainsCreateLoginLinkResponse, x as DomainsData, I as DomainsDownstreamAddress, H as DomainsListDownstreamAddressesOptions, J as DomainsListDownstreamAddressesResponse, C as DomainsListOptions, F as DomainsListResponse, y as DomainsProvisionOptions, A as DomainsProvisionResponse, h as EmailsCheckDomainDkim, i as EmailsCheckDomainOptions, k as EmailsCheckDomainResponse, j as EmailsCheckDomainVerdict, c as EmailsSendAttachment, f as EmailsSendOptions, e as EmailsSendOptionsBase, b as EmailsSendRecipient, g as EmailsSendResponse, d as EmailsSendTracking, V as ListEntriesResponse, R as ListEntry, Q as ListEntryOptions, T as ListEntryResponse, P as ListNames, N as ServiceReportOptions, K as ServiceSubscriptionsResponse, l as SubAccountsAccount, p as SubAccountsApiKey, q as SubAccountsCreateApiKeyResponse, m as SubAccountsCreateResponse, t as SubAccountsCreateSmtpPasswordResponse, r as SubAccountsListApiKeyResponse, n as SubAccountsListOptions, o as SubAccountsListResponse, u as SubAccountsListSmtpPasswordResponse, s as SubAccountsSmtpPassword, O as SuccessResponse, v as WebhooksListResponse, w as WebhooksSigningKeyResponse } from './shared/mailchannels-sdk.BDB65ygx.mjs';
1
+ import { M as MailChannelsClient, E as Emails, W as Webhooks, S as SubAccounts, a as Metrics, b as Suppressions, D as Domains, L as Lists, U as Users, c as Service } from './shared/mailchannels-sdk.Bakg_aFG.mjs';
2
+ export { ac as DomainsBulkCreateLoginLink, ab as DomainsBulkCreateLoginLinkResult, ad as DomainsBulkCreateLoginLinksResponse, a2 as DomainsBulkProvisionOptions, a4 as DomainsBulkProvisionResponse, a7 as DomainsCreateLoginLinkResponse, a0 as DomainsData, a9 as DomainsDownstreamAddress, a8 as DomainsListDownstreamAddressesOptions, aa as DomainsListDownstreamAddressesResponse, a5 as DomainsListOptions, a6 as DomainsListResponse, a1 as DomainsProvisionOptions, a3 as DomainsProvisionResponse, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, ai as ListEntriesResponse, ag as ListEntry, af as ListEntryOptions, ah as ListEntryResponse, ae as ListNames, G as MetricsBucket, I as MetricsEngagement, J as MetricsEngagementResponse, H as MetricsOptions, K as MetricsPerformance, N as MetricsPerformanceResponse, O as MetricsRecipientBehaviour, P as MetricsRecipientBehaviourResponse, T as MetricsUsageResponse, Q as MetricsVolume, R as MetricsVolumeResponse, am as ServiceReportOptions, al as ServiceSubscriptionsResponse, q as SubAccountsAccount, u as SubAccountsApiKey, v as SubAccountsCreateApiKeyResponse, r as SubAccountsCreateResponse, y as SubAccountsCreateSmtpPasswordResponse, A as SubAccountsLimit, B as SubAccountsLimitResponse, w as SubAccountsListApiKeyResponse, s as SubAccountsListOptions, t as SubAccountsListResponse, z as SubAccountsListSmtpPasswordResponse, x as SubAccountsSmtpPassword, C as SubAccountsUsage, F as SubAccountsUsageResponse, an as SuccessResponse, X as SuppressionsCreateOptions, _ as SuppressionsListEntry, Z as SuppressionsListOptions, $ as SuppressionsListResponse, Y as SuppressionsSource, V as SuppressionsTypes, aj as UsersCreateOptions, ak as UsersCreateResponse, n as WebhooksListResponse, o as WebhooksSigningKeyResponse, p as WebhooksValidateResponse } from './shared/mailchannels-sdk.Bakg_aFG.mjs';
3
3
  import 'ofetch';
4
4
 
5
5
  declare class MailChannels extends MailChannelsClient {
6
6
  readonly emails: Emails;
7
7
  readonly webhooks: Webhooks;
8
8
  readonly subAccounts: SubAccounts;
9
- readonly service: Service;
9
+ readonly metrics: Metrics;
10
+ readonly suppressions: Suppressions;
10
11
  readonly domains: Domains;
11
- readonly users: Users;
12
12
  readonly lists: Lists;
13
+ readonly users: Users;
14
+ readonly service: Service;
13
15
  constructor(key: string);
14
16
  }
15
17
 
@@ -1,15 +1,17 @@
1
- import { M as MailChannelsClient, E as Emails, W as Webhooks, S as SubAccounts, a as Service, D as Domains, U as Users, L as Lists } from './shared/mailchannels-sdk.BDB65ygx.js';
2
- export { z as DomainsBulkProvisionOptions, B as DomainsBulkProvisionResponse, G as DomainsCreateLoginLinkResponse, x as DomainsData, I as DomainsDownstreamAddress, H as DomainsListDownstreamAddressesOptions, J as DomainsListDownstreamAddressesResponse, C as DomainsListOptions, F as DomainsListResponse, y as DomainsProvisionOptions, A as DomainsProvisionResponse, h as EmailsCheckDomainDkim, i as EmailsCheckDomainOptions, k as EmailsCheckDomainResponse, j as EmailsCheckDomainVerdict, c as EmailsSendAttachment, f as EmailsSendOptions, e as EmailsSendOptionsBase, b as EmailsSendRecipient, g as EmailsSendResponse, d as EmailsSendTracking, V as ListEntriesResponse, R as ListEntry, Q as ListEntryOptions, T as ListEntryResponse, P as ListNames, N as ServiceReportOptions, K as ServiceSubscriptionsResponse, l as SubAccountsAccount, p as SubAccountsApiKey, q as SubAccountsCreateApiKeyResponse, m as SubAccountsCreateResponse, t as SubAccountsCreateSmtpPasswordResponse, r as SubAccountsListApiKeyResponse, n as SubAccountsListOptions, o as SubAccountsListResponse, u as SubAccountsListSmtpPasswordResponse, s as SubAccountsSmtpPassword, O as SuccessResponse, v as WebhooksListResponse, w as WebhooksSigningKeyResponse } from './shared/mailchannels-sdk.BDB65ygx.js';
1
+ import { M as MailChannelsClient, E as Emails, W as Webhooks, S as SubAccounts, a as Metrics, b as Suppressions, D as Domains, L as Lists, U as Users, c as Service } from './shared/mailchannels-sdk.Bakg_aFG.js';
2
+ export { ac as DomainsBulkCreateLoginLink, ab as DomainsBulkCreateLoginLinkResult, ad as DomainsBulkCreateLoginLinksResponse, a2 as DomainsBulkProvisionOptions, a4 as DomainsBulkProvisionResponse, a7 as DomainsCreateLoginLinkResponse, a0 as DomainsData, a9 as DomainsDownstreamAddress, a8 as DomainsListDownstreamAddressesOptions, aa as DomainsListDownstreamAddressesResponse, a5 as DomainsListOptions, a6 as DomainsListResponse, a1 as DomainsProvisionOptions, a3 as DomainsProvisionResponse, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, ai as ListEntriesResponse, ag as ListEntry, af as ListEntryOptions, ah as ListEntryResponse, ae as ListNames, G as MetricsBucket, I as MetricsEngagement, J as MetricsEngagementResponse, H as MetricsOptions, K as MetricsPerformance, N as MetricsPerformanceResponse, O as MetricsRecipientBehaviour, P as MetricsRecipientBehaviourResponse, T as MetricsUsageResponse, Q as MetricsVolume, R as MetricsVolumeResponse, am as ServiceReportOptions, al as ServiceSubscriptionsResponse, q as SubAccountsAccount, u as SubAccountsApiKey, v as SubAccountsCreateApiKeyResponse, r as SubAccountsCreateResponse, y as SubAccountsCreateSmtpPasswordResponse, A as SubAccountsLimit, B as SubAccountsLimitResponse, w as SubAccountsListApiKeyResponse, s as SubAccountsListOptions, t as SubAccountsListResponse, z as SubAccountsListSmtpPasswordResponse, x as SubAccountsSmtpPassword, C as SubAccountsUsage, F as SubAccountsUsageResponse, an as SuccessResponse, X as SuppressionsCreateOptions, _ as SuppressionsListEntry, Z as SuppressionsListOptions, $ as SuppressionsListResponse, Y as SuppressionsSource, V as SuppressionsTypes, aj as UsersCreateOptions, ak as UsersCreateResponse, n as WebhooksListResponse, o as WebhooksSigningKeyResponse, p as WebhooksValidateResponse } from './shared/mailchannels-sdk.Bakg_aFG.js';
3
3
  import 'ofetch';
4
4
 
5
5
  declare class MailChannels extends MailChannelsClient {
6
6
  readonly emails: Emails;
7
7
  readonly webhooks: Webhooks;
8
8
  readonly subAccounts: SubAccounts;
9
- readonly service: Service;
9
+ readonly metrics: Metrics;
10
+ readonly suppressions: Suppressions;
10
11
  readonly domains: Domains;
11
- readonly users: Users;
12
12
  readonly lists: Lists;
13
+ readonly users: Users;
14
+ readonly service: Service;
13
15
  constructor(key: string);
14
16
  }
15
17
 
@@ -1,5 +1,5 @@
1
1
  import { $fetch } from 'ofetch';
2
- import { Emails, Webhooks, SubAccounts, Service, Domains, Users, Lists } from './modules.mjs';
2
+ import { Emails, Webhooks, SubAccounts, Metrics, Suppressions, Domains, Lists, Users, Service } from './modules.mjs';
3
3
 
4
4
  class MailChannelsClient {
5
5
  static BASE_URL = "https://api.mailchannels.net";
@@ -39,13 +39,17 @@ class MailChannelsClient {
39
39
  }
40
40
 
41
41
  class MailChannels extends MailChannelsClient {
42
+ // Modules: Email API
42
43
  emails = new Emails(this);
43
44
  webhooks = new Webhooks(this);
44
45
  subAccounts = new SubAccounts(this);
45
- service = new Service(this);
46
+ metrics = new Metrics(this);
47
+ suppressions = new Suppressions(this);
48
+ // Modules: Inbound API
46
49
  domains = new Domains(this);
47
- users = new Users(this);
48
50
  lists = new Lists(this);
51
+ users = new Users(this);
52
+ service = new Service(this);
49
53
  constructor(key) {
50
54
  super(key);
51
55
  }
@@ -1,2 +1,2 @@
1
- export { D as Domains, z as DomainsBulkProvisionOptions, B as DomainsBulkProvisionResponse, G as DomainsCreateLoginLinkResponse, x as DomainsData, I as DomainsDownstreamAddress, H as DomainsListDownstreamAddressesOptions, J as DomainsListDownstreamAddressesResponse, C as DomainsListOptions, F as DomainsListResponse, y as DomainsProvisionOptions, A as DomainsProvisionResponse, E as Emails, h as EmailsCheckDomainDkim, i as EmailsCheckDomainOptions, k as EmailsCheckDomainResponse, j as EmailsCheckDomainVerdict, c as EmailsSendAttachment, f as EmailsSendOptions, e as EmailsSendOptionsBase, b as EmailsSendRecipient, g as EmailsSendResponse, d as EmailsSendTracking, V as ListEntriesResponse, R as ListEntry, Q as ListEntryOptions, T as ListEntryResponse, P as ListNames, L as Lists, a as Service, N as ServiceReportOptions, K as ServiceSubscriptionsResponse, S as SubAccounts, l as SubAccountsAccount, p as SubAccountsApiKey, q as SubAccountsCreateApiKeyResponse, m as SubAccountsCreateResponse, t as SubAccountsCreateSmtpPasswordResponse, r as SubAccountsListApiKeyResponse, n as SubAccountsListOptions, o as SubAccountsListResponse, u as SubAccountsListSmtpPasswordResponse, s as SubAccountsSmtpPassword, O as SuccessResponse, U as Users, W as Webhooks, v as WebhooksListResponse, w as WebhooksSigningKeyResponse } from './shared/mailchannels-sdk.BDB65ygx.mjs';
1
+ export { D as Domains, ac as DomainsBulkCreateLoginLink, ab as DomainsBulkCreateLoginLinkResult, ad as DomainsBulkCreateLoginLinksResponse, a2 as DomainsBulkProvisionOptions, a4 as DomainsBulkProvisionResponse, a7 as DomainsCreateLoginLinkResponse, a0 as DomainsData, a9 as DomainsDownstreamAddress, a8 as DomainsListDownstreamAddressesOptions, aa as DomainsListDownstreamAddressesResponse, a5 as DomainsListOptions, a6 as DomainsListResponse, a1 as DomainsProvisionOptions, a3 as DomainsProvisionResponse, E as Emails, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, ai as ListEntriesResponse, ag as ListEntry, af as ListEntryOptions, ah as ListEntryResponse, ae as ListNames, L as Lists, a as Metrics, G as MetricsBucket, I as MetricsEngagement, J as MetricsEngagementResponse, H as MetricsOptions, K as MetricsPerformance, N as MetricsPerformanceResponse, O as MetricsRecipientBehaviour, P as MetricsRecipientBehaviourResponse, T as MetricsUsageResponse, Q as MetricsVolume, R as MetricsVolumeResponse, c as Service, am as ServiceReportOptions, al as ServiceSubscriptionsResponse, S as SubAccounts, q as SubAccountsAccount, u as SubAccountsApiKey, v as SubAccountsCreateApiKeyResponse, r as SubAccountsCreateResponse, y as SubAccountsCreateSmtpPasswordResponse, A as SubAccountsLimit, B as SubAccountsLimitResponse, w as SubAccountsListApiKeyResponse, s as SubAccountsListOptions, t as SubAccountsListResponse, z as SubAccountsListSmtpPasswordResponse, x as SubAccountsSmtpPassword, C as SubAccountsUsage, F as SubAccountsUsageResponse, an as SuccessResponse, b as Suppressions, X as SuppressionsCreateOptions, _ as SuppressionsListEntry, Z as SuppressionsListOptions, $ as SuppressionsListResponse, Y as SuppressionsSource, V as SuppressionsTypes, U as Users, aj as UsersCreateOptions, ak as UsersCreateResponse, W as Webhooks, n as WebhooksListResponse, o as WebhooksSigningKeyResponse, p as WebhooksValidateResponse } from './shared/mailchannels-sdk.Bakg_aFG.mjs';
2
2
  import 'ofetch';
package/dist/modules.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { D as Domains, z as DomainsBulkProvisionOptions, B as DomainsBulkProvisionResponse, G as DomainsCreateLoginLinkResponse, x as DomainsData, I as DomainsDownstreamAddress, H as DomainsListDownstreamAddressesOptions, J as DomainsListDownstreamAddressesResponse, C as DomainsListOptions, F as DomainsListResponse, y as DomainsProvisionOptions, A as DomainsProvisionResponse, E as Emails, h as EmailsCheckDomainDkim, i as EmailsCheckDomainOptions, k as EmailsCheckDomainResponse, j as EmailsCheckDomainVerdict, c as EmailsSendAttachment, f as EmailsSendOptions, e as EmailsSendOptionsBase, b as EmailsSendRecipient, g as EmailsSendResponse, d as EmailsSendTracking, V as ListEntriesResponse, R as ListEntry, Q as ListEntryOptions, T as ListEntryResponse, P as ListNames, L as Lists, a as Service, N as ServiceReportOptions, K as ServiceSubscriptionsResponse, S as SubAccounts, l as SubAccountsAccount, p as SubAccountsApiKey, q as SubAccountsCreateApiKeyResponse, m as SubAccountsCreateResponse, t as SubAccountsCreateSmtpPasswordResponse, r as SubAccountsListApiKeyResponse, n as SubAccountsListOptions, o as SubAccountsListResponse, u as SubAccountsListSmtpPasswordResponse, s as SubAccountsSmtpPassword, O as SuccessResponse, U as Users, W as Webhooks, v as WebhooksListResponse, w as WebhooksSigningKeyResponse } from './shared/mailchannels-sdk.BDB65ygx.js';
1
+ export { D as Domains, ac as DomainsBulkCreateLoginLink, ab as DomainsBulkCreateLoginLinkResult, ad as DomainsBulkCreateLoginLinksResponse, a2 as DomainsBulkProvisionOptions, a4 as DomainsBulkProvisionResponse, a7 as DomainsCreateLoginLinkResponse, a0 as DomainsData, a9 as DomainsDownstreamAddress, a8 as DomainsListDownstreamAddressesOptions, aa as DomainsListDownstreamAddressesResponse, a5 as DomainsListOptions, a6 as DomainsListResponse, a1 as DomainsProvisionOptions, a3 as DomainsProvisionResponse, E as Emails, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, ai as ListEntriesResponse, ag as ListEntry, af as ListEntryOptions, ah as ListEntryResponse, ae as ListNames, L as Lists, a as Metrics, G as MetricsBucket, I as MetricsEngagement, J as MetricsEngagementResponse, H as MetricsOptions, K as MetricsPerformance, N as MetricsPerformanceResponse, O as MetricsRecipientBehaviour, P as MetricsRecipientBehaviourResponse, T as MetricsUsageResponse, Q as MetricsVolume, R as MetricsVolumeResponse, c as Service, am as ServiceReportOptions, al as ServiceSubscriptionsResponse, S as SubAccounts, q as SubAccountsAccount, u as SubAccountsApiKey, v as SubAccountsCreateApiKeyResponse, r as SubAccountsCreateResponse, y as SubAccountsCreateSmtpPasswordResponse, A as SubAccountsLimit, B as SubAccountsLimitResponse, w as SubAccountsListApiKeyResponse, s as SubAccountsListOptions, t as SubAccountsListResponse, z as SubAccountsListSmtpPasswordResponse, x as SubAccountsSmtpPassword, C as SubAccountsUsage, F as SubAccountsUsageResponse, an as SuccessResponse, b as Suppressions, X as SuppressionsCreateOptions, _ as SuppressionsListEntry, Z as SuppressionsListOptions, $ as SuppressionsListResponse, Y as SuppressionsSource, V as SuppressionsTypes, U as Users, aj as UsersCreateOptions, ak as UsersCreateResponse, W as Webhooks, n as WebhooksListResponse, o as WebhooksSigningKeyResponse, p as WebhooksValidateResponse } from './shared/mailchannels-sdk.Bakg_aFG.js';
2
2
  import 'ofetch';