mailchannels-sdk 0.4.4 → 0.4.5

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/README.md CHANGED
@@ -33,13 +33,13 @@ This library provides a simple way to interact with the [MailChannels API](https
33
33
 
34
34
  - Send transactional emails
35
35
  - Check DKIM, SPF & Domain Lockdown
36
+ - Configure DKIM keys
36
37
  - Webhook notifications
37
38
  - Manage sub-accounts
38
39
  - Retrieve metrics
39
- - Manage suppressions
40
- - Manage inbound domains
41
- - Manage account lists
42
- - Manage recipient lists
40
+ - Handle suppressions
41
+ - Configure inbound domains
42
+ - Manage account and recipient lists
43
43
 
44
44
  ## <a name="requirements">📏 Requirements</a>
45
45
 
@@ -1,5 +1,5 @@
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.CiU7QtsS.mjs';
2
- export { ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, aq as UsersCreateOptions, ar as UsersCreateResponse, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.CiU7QtsS.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.LKYcN74O.mjs';
2
+ export { ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, aq as UsersCreateOptions, ar as UsersCreateResponse, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.LKYcN74O.mjs';
3
3
  import 'ofetch';
4
4
 
5
5
  declare class MailChannels extends MailChannelsClient {
@@ -1,5 +1,5 @@
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.CiU7QtsS.js';
2
- export { ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, aq as UsersCreateOptions, ar as UsersCreateResponse, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.CiU7QtsS.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.LKYcN74O.js';
2
+ export { ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, aq as UsersCreateOptions, ar as UsersCreateResponse, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.LKYcN74O.js';
3
3
  import 'ofetch';
4
4
 
5
5
  declare class MailChannels extends MailChannelsClient {
@@ -1,2 +1,2 @@
1
- export { D as Domains, ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, E as Emails, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, L as Lists, a as Metrics, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, c as Service, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, S as SubAccounts, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, b as Suppressions, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, U as Users, aq as UsersCreateOptions, ar as UsersCreateResponse, W as Webhooks, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.CiU7QtsS.mjs';
1
+ export { D as Domains, ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, E as Emails, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, L as Lists, a as Metrics, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, c as Service, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, S as SubAccounts, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, b as Suppressions, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, U as Users, aq as UsersCreateOptions, ar as UsersCreateResponse, W as Webhooks, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.LKYcN74O.mjs';
2
2
  import 'ofetch';
package/dist/modules.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { D as Domains, ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, E as Emails, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, L as Lists, a as Metrics, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, c as Service, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, S as SubAccounts, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, b as Suppressions, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, U as Users, aq as UsersCreateOptions, ar as UsersCreateResponse, W as Webhooks, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.CiU7QtsS.js';
1
+ export { D as Domains, ai as DomainsBulkCreateLoginLinkResult, aj as DomainsBulkCreateLoginLinks, ak as DomainsBulkCreateLoginLinksResponse, a9 as DomainsBulkProvisionOptions, ab as DomainsBulkProvisionResponse, ae as DomainsCreateLoginLinkResponse, a7 as DomainsData, ag as DomainsDownstreamAddress, af as DomainsListDownstreamAddressesOptions, ah as DomainsListDownstreamAddressesResponse, ac as DomainsListOptions, ad as DomainsListResponse, a8 as DomainsProvisionOptions, aa as DomainsProvisionResponse, E as Emails, j as EmailsCheckDomainDkim, k as EmailsCheckDomainOptions, m as EmailsCheckDomainResponse, l as EmailsCheckDomainVerdict, n as EmailsCreateDkimKeyOptions, p as EmailsCreateDkimKeyResponse, o as EmailsDkimKey, q as EmailsGetDkimKeysOptions, r as EmailsGetDkimKeysResponse, e as EmailsSendAttachment, h as EmailsSendOptions, g as EmailsSendOptionsBase, d as EmailsSendRecipient, i as EmailsSendResponse, f as EmailsSendTracking, s as EmailsUpdateDkimKeyOptions, ap as ListEntriesResponse, an as ListEntry, am as ListEntryOptions, ao as ListEntryResponse, al as ListNames, L as Lists, a as Metrics, P as MetricsBucket, R as MetricsEngagement, T as MetricsEngagementResponse, Q as MetricsOptions, V as MetricsPerformance, X as MetricsPerformanceResponse, Y as MetricsRecipientBehaviour, Z as MetricsRecipientBehaviourResponse, a0 as MetricsUsageResponse, _ as MetricsVolume, $ as MetricsVolumeResponse, O as Optional, c as Service, at as ServiceReportOptions, as as ServiceSubscriptionsResponse, S as SubAccounts, w as SubAccountsAccount, A as SubAccountsApiKey, B as SubAccountsCreateApiKeyResponse, x as SubAccountsCreateResponse, G as SubAccountsCreateSmtpPasswordResponse, I as SubAccountsLimit, J as SubAccountsLimitResponse, C as SubAccountsListApiKeyResponse, y as SubAccountsListOptions, z as SubAccountsListResponse, H as SubAccountsListSmtpPasswordResponse, F as SubAccountsSmtpPassword, K as SubAccountsUsage, N as SubAccountsUsageResponse, au as SuccessResponse, b as Suppressions, a2 as SuppressionsCreateOptions, a5 as SuppressionsListEntry, a4 as SuppressionsListOptions, a6 as SuppressionsListResponse, a3 as SuppressionsSource, a1 as SuppressionsTypes, U as Users, aq as UsersCreateOptions, ar as UsersCreateResponse, W as Webhooks, t as WebhooksListResponse, u as WebhooksSigningKeyResponse, v as WebhooksValidateResponse } from './shared/mailchannels-sdk.LKYcN74O.js';
2
2
  import 'ofetch';
package/dist/modules.mjs CHANGED
@@ -1252,7 +1252,7 @@ class Domains {
1252
1252
  }
1253
1253
  /**
1254
1254
  * Provision a single domain to use MailChannels Inbound.
1255
- * @param options - The domain data to provision.
1255
+ * @param options - The provision options and domain data.
1256
1256
  * @example
1257
1257
  * ```ts
1258
1258
  * const mailchannels = new MailChannels('your-api-key')
@@ -1285,7 +1285,7 @@ class Domains {
1285
1285
  /**
1286
1286
  * Provision up to 1000 domains to use MailChannels Inbound.
1287
1287
  * @param options - The options to provision the domains.
1288
- * @param domains - The list of domains to provision.
1288
+ * @param domains - A list of domain data to provision.
1289
1289
  * @example
1290
1290
  * ```ts
1291
1291
  * const mailchannels = new MailChannels('your-api-key')
@@ -187,13 +187,13 @@ interface EmailsSendOptionsBase {
187
187
  type EmailsSendOptions = EmailsSendOptionsBase & (
188
188
  | {
189
189
  /**
190
- * The HTML content of the email
190
+ * The HTML content of the email.
191
191
  * @example
192
192
  * '<p>Hello World</p>'
193
193
  */
194
194
  html: string;
195
195
  /**
196
- * The plain text content of the email (optional when html is provided)
196
+ * The plain text content of the email (optional when html is provided).
197
197
  * @example
198
198
  * 'Hello World'
199
199
  */
@@ -201,13 +201,13 @@ type EmailsSendOptions = EmailsSendOptionsBase & (
201
201
  }
202
202
  | {
203
203
  /**
204
- * The HTML content of the email (optional when text is provided)
204
+ * The HTML content of the email (optional when text is provided).
205
205
  * @example
206
206
  * '<p>Hello World</p>'
207
207
  */
208
208
  html?: string;
209
209
  /**
210
- * The plain text content of the email
210
+ * The plain text content of the email.
211
211
  * @example
212
212
  * 'Hello World'
213
213
  */
@@ -217,7 +217,7 @@ type EmailsSendOptions = EmailsSendOptionsBase & (
217
217
 
218
218
  interface EmailsSendResponse {
219
219
  /**
220
- * Indicates if the email was successfully sent
220
+ * Indicates if the email was successfully sent.
221
221
  */
222
222
  success: boolean;
223
223
  data: {
@@ -426,7 +426,7 @@ interface EmailsUpdateDkimKeyOptions {
426
426
  */
427
427
  selector: string;
428
428
  /**
429
- * New status of the DKIM key pair
429
+ * New status of the DKIM key pair.
430
430
  * - `revoked`: Indicates that the key is compromised and should not be used.
431
431
  * - `retired`: Indicates that the key has been rotated and is no longer in use.
432
432
  */
@@ -523,7 +523,7 @@ interface WebhooksSigningKeyResponse {
523
523
 
524
524
  interface WebhooksValidateResponse {
525
525
  /**
526
- * Indicates whether all webhook validations passed
526
+ * Indicates whether all webhook validations passed.
527
527
  */
528
528
  allPassed: boolean;
529
529
  /**
@@ -531,11 +531,11 @@ interface WebhooksValidateResponse {
531
531
  */
532
532
  results: {
533
533
  /**
534
- * Indicates whether the webhook responded with a 2xx HTTP status code
534
+ * Indicates whether the webhook responded with a 2xx HTTP status code.
535
535
  */
536
536
  result: "passed" | "failed";
537
537
  /**
538
- * The webhook that was validated
538
+ * The webhook that was validated.
539
539
  */
540
540
  webhook: string;
541
541
  /**
@@ -547,7 +547,7 @@ interface WebhooksValidateResponse {
547
547
  */
548
548
  body?: string;
549
549
  /**
550
- * HTTP status code returned by the webhook
550
+ * HTTP status code returned by the webhook.
551
551
  */
552
552
  status: number;
553
553
  } | null;
@@ -1144,11 +1144,11 @@ interface SuppressionsListOptions {
1144
1144
  */
1145
1145
  source?: Exclude<SuppressionsSource, "all">;
1146
1146
  /**
1147
- * The date and/or time before which the suppression entries were created. Format: `YYYY-MM-DD` or `YYYY-MM-DDTHH:MM:SSZ`
1147
+ * The date and/or time before which the suppression entries were created. Format: `YYYY-MM-DD` or `YYYY-MM-DDTHH:MM:SSZ`.
1148
1148
  */
1149
1149
  createdBefore?: string;
1150
1150
  /**
1151
- * The date and/or time after which the suppression entries were created. Format: `YYYY-MM-DD` or `YYYY-MM-DDTHH:MM:SSZ`
1151
+ * The date and/or time after which the suppression entries were created. Format: `YYYY-MM-DD` or `YYYY-MM-DDTHH:MM:SSZ`.
1152
1152
  */
1153
1153
  createdAfter?: string;
1154
1154
  /**
@@ -1298,7 +1298,7 @@ interface DomainsData {
1298
1298
  target: string;
1299
1299
  }[] | null;
1300
1300
  /**
1301
- * A list of aliases for the domain. Mail is accepted for these domains and routed to the `downstreamAddresses` defined for the domain. Must be <= 255 characters
1301
+ * A list of aliases for the domain. Mail is accepted for these domains and routed to the `downstreamAddresses` defined for the domain. Must be <= 255 characters.
1302
1302
  */
1303
1303
  aliases?: string[] | null;
1304
1304
  /**
@@ -1321,6 +1321,9 @@ interface DomainsProvisionOptions {
1321
1321
  type DomainsBulkProvisionOptions = DomainsProvisionOptions & Pick<DomainsData, "subscriptionHandle">;
1322
1322
 
1323
1323
  interface DomainsProvisionResponse {
1324
+ /**
1325
+ * The provisioned domain data.
1326
+ */
1324
1327
  data: DomainsData | null;
1325
1328
  error: string | null;
1326
1329
  }
@@ -1334,6 +1337,9 @@ interface DomainsBulkProvisionResponse {
1334
1337
  * Domains that were successfully provisioned or updated.
1335
1338
  */
1336
1339
  successes: {
1340
+ /**
1341
+ * The provisioned domain data.
1342
+ */
1337
1343
  domain: DomainsData;
1338
1344
  code: number;
1339
1345
  comment?: string;
@@ -1342,6 +1348,9 @@ interface DomainsBulkProvisionResponse {
1342
1348
  * Domains that were not successfully provisioned.
1343
1349
  */
1344
1350
  errors: {
1351
+ /**
1352
+ * The failed to provision domain data.
1353
+ */
1345
1354
  domain: DomainsData;
1346
1355
  code: number;
1347
1356
  comment?: string;
@@ -1356,7 +1365,7 @@ interface DomainsListOptions {
1356
1365
  */
1357
1366
  domains?: string[];
1358
1367
  /**
1359
- * The maximum number of domains included in the response. Possible values are 1 to 5000
1368
+ * The maximum number of domains included in the response. Possible values are 1 to 5000.
1360
1369
  * @default 10
1361
1370
  */
1362
1371
  limit?: number;
@@ -1369,7 +1378,7 @@ interface DomainsListOptions {
1369
1378
 
1370
1379
  interface DomainsListResponse {
1371
1380
  /**
1372
- * A list of domains
1381
+ * A list of domains.
1373
1382
  */
1374
1383
  domains: DomainsData[];
1375
1384
  /**
@@ -1455,7 +1464,7 @@ declare class Domains {
1455
1464
  constructor(mailchannels: MailChannelsClient);
1456
1465
  /**
1457
1466
  * Provision a single domain to use MailChannels Inbound.
1458
- * @param options - The domain data to provision.
1467
+ * @param options - The provision options and domain data.
1459
1468
  * @example
1460
1469
  * ```ts
1461
1470
  * const mailchannels = new MailChannels('your-api-key')
@@ -1469,7 +1478,7 @@ declare class Domains {
1469
1478
  /**
1470
1479
  * Provision up to 1000 domains to use MailChannels Inbound.
1471
1480
  * @param options - The options to provision the domains.
1472
- * @param domains - The list of domains to provision.
1481
+ * @param domains - A list of domain data to provision.
1473
1482
  * @example
1474
1483
  * ```ts
1475
1484
  * const mailchannels = new MailChannels('your-api-key')
@@ -1651,7 +1660,7 @@ declare class Lists {
1651
1660
 
1652
1661
  interface UsersCreateOptions {
1653
1662
  /**
1654
- * Flag to indicate if the user is a domain admin or a regular user
1663
+ * Flag to indicate if the user is a domain admin or a regular user.
1655
1664
  * @default false
1656
1665
  */
1657
1666
  admin?: boolean;
@@ -1664,7 +1673,7 @@ interface UsersCreateOptions {
1664
1673
  */
1665
1674
  filter?: boolean | "compute";
1666
1675
  /**
1667
- * safelist and blocklist entries to be added
1676
+ * safelist and blocklist entries to be added.
1668
1677
  */
1669
1678
  listEntries?: {
1670
1679
  blocklist?: string[];
@@ -1770,7 +1779,7 @@ interface ServiceReportOptions {
1770
1779
  */
1771
1780
  messageContent: string;
1772
1781
  /**
1773
- * The SMTP envelope information
1782
+ * The SMTP envelope information.
1774
1783
  */
1775
1784
  smtpEnvelopeInformation?: {
1776
1785
  ehlo: string;
@@ -187,13 +187,13 @@ interface EmailsSendOptionsBase {
187
187
  type EmailsSendOptions = EmailsSendOptionsBase & (
188
188
  | {
189
189
  /**
190
- * The HTML content of the email
190
+ * The HTML content of the email.
191
191
  * @example
192
192
  * '<p>Hello World</p>'
193
193
  */
194
194
  html: string;
195
195
  /**
196
- * The plain text content of the email (optional when html is provided)
196
+ * The plain text content of the email (optional when html is provided).
197
197
  * @example
198
198
  * 'Hello World'
199
199
  */
@@ -201,13 +201,13 @@ type EmailsSendOptions = EmailsSendOptionsBase & (
201
201
  }
202
202
  | {
203
203
  /**
204
- * The HTML content of the email (optional when text is provided)
204
+ * The HTML content of the email (optional when text is provided).
205
205
  * @example
206
206
  * '<p>Hello World</p>'
207
207
  */
208
208
  html?: string;
209
209
  /**
210
- * The plain text content of the email
210
+ * The plain text content of the email.
211
211
  * @example
212
212
  * 'Hello World'
213
213
  */
@@ -217,7 +217,7 @@ type EmailsSendOptions = EmailsSendOptionsBase & (
217
217
 
218
218
  interface EmailsSendResponse {
219
219
  /**
220
- * Indicates if the email was successfully sent
220
+ * Indicates if the email was successfully sent.
221
221
  */
222
222
  success: boolean;
223
223
  data: {
@@ -426,7 +426,7 @@ interface EmailsUpdateDkimKeyOptions {
426
426
  */
427
427
  selector: string;
428
428
  /**
429
- * New status of the DKIM key pair
429
+ * New status of the DKIM key pair.
430
430
  * - `revoked`: Indicates that the key is compromised and should not be used.
431
431
  * - `retired`: Indicates that the key has been rotated and is no longer in use.
432
432
  */
@@ -523,7 +523,7 @@ interface WebhooksSigningKeyResponse {
523
523
 
524
524
  interface WebhooksValidateResponse {
525
525
  /**
526
- * Indicates whether all webhook validations passed
526
+ * Indicates whether all webhook validations passed.
527
527
  */
528
528
  allPassed: boolean;
529
529
  /**
@@ -531,11 +531,11 @@ interface WebhooksValidateResponse {
531
531
  */
532
532
  results: {
533
533
  /**
534
- * Indicates whether the webhook responded with a 2xx HTTP status code
534
+ * Indicates whether the webhook responded with a 2xx HTTP status code.
535
535
  */
536
536
  result: "passed" | "failed";
537
537
  /**
538
- * The webhook that was validated
538
+ * The webhook that was validated.
539
539
  */
540
540
  webhook: string;
541
541
  /**
@@ -547,7 +547,7 @@ interface WebhooksValidateResponse {
547
547
  */
548
548
  body?: string;
549
549
  /**
550
- * HTTP status code returned by the webhook
550
+ * HTTP status code returned by the webhook.
551
551
  */
552
552
  status: number;
553
553
  } | null;
@@ -1144,11 +1144,11 @@ interface SuppressionsListOptions {
1144
1144
  */
1145
1145
  source?: Exclude<SuppressionsSource, "all">;
1146
1146
  /**
1147
- * The date and/or time before which the suppression entries were created. Format: `YYYY-MM-DD` or `YYYY-MM-DDTHH:MM:SSZ`
1147
+ * The date and/or time before which the suppression entries were created. Format: `YYYY-MM-DD` or `YYYY-MM-DDTHH:MM:SSZ`.
1148
1148
  */
1149
1149
  createdBefore?: string;
1150
1150
  /**
1151
- * The date and/or time after which the suppression entries were created. Format: `YYYY-MM-DD` or `YYYY-MM-DDTHH:MM:SSZ`
1151
+ * The date and/or time after which the suppression entries were created. Format: `YYYY-MM-DD` or `YYYY-MM-DDTHH:MM:SSZ`.
1152
1152
  */
1153
1153
  createdAfter?: string;
1154
1154
  /**
@@ -1298,7 +1298,7 @@ interface DomainsData {
1298
1298
  target: string;
1299
1299
  }[] | null;
1300
1300
  /**
1301
- * A list of aliases for the domain. Mail is accepted for these domains and routed to the `downstreamAddresses` defined for the domain. Must be <= 255 characters
1301
+ * A list of aliases for the domain. Mail is accepted for these domains and routed to the `downstreamAddresses` defined for the domain. Must be <= 255 characters.
1302
1302
  */
1303
1303
  aliases?: string[] | null;
1304
1304
  /**
@@ -1321,6 +1321,9 @@ interface DomainsProvisionOptions {
1321
1321
  type DomainsBulkProvisionOptions = DomainsProvisionOptions & Pick<DomainsData, "subscriptionHandle">;
1322
1322
 
1323
1323
  interface DomainsProvisionResponse {
1324
+ /**
1325
+ * The provisioned domain data.
1326
+ */
1324
1327
  data: DomainsData | null;
1325
1328
  error: string | null;
1326
1329
  }
@@ -1334,6 +1337,9 @@ interface DomainsBulkProvisionResponse {
1334
1337
  * Domains that were successfully provisioned or updated.
1335
1338
  */
1336
1339
  successes: {
1340
+ /**
1341
+ * The provisioned domain data.
1342
+ */
1337
1343
  domain: DomainsData;
1338
1344
  code: number;
1339
1345
  comment?: string;
@@ -1342,6 +1348,9 @@ interface DomainsBulkProvisionResponse {
1342
1348
  * Domains that were not successfully provisioned.
1343
1349
  */
1344
1350
  errors: {
1351
+ /**
1352
+ * The failed to provision domain data.
1353
+ */
1345
1354
  domain: DomainsData;
1346
1355
  code: number;
1347
1356
  comment?: string;
@@ -1356,7 +1365,7 @@ interface DomainsListOptions {
1356
1365
  */
1357
1366
  domains?: string[];
1358
1367
  /**
1359
- * The maximum number of domains included in the response. Possible values are 1 to 5000
1368
+ * The maximum number of domains included in the response. Possible values are 1 to 5000.
1360
1369
  * @default 10
1361
1370
  */
1362
1371
  limit?: number;
@@ -1369,7 +1378,7 @@ interface DomainsListOptions {
1369
1378
 
1370
1379
  interface DomainsListResponse {
1371
1380
  /**
1372
- * A list of domains
1381
+ * A list of domains.
1373
1382
  */
1374
1383
  domains: DomainsData[];
1375
1384
  /**
@@ -1455,7 +1464,7 @@ declare class Domains {
1455
1464
  constructor(mailchannels: MailChannelsClient);
1456
1465
  /**
1457
1466
  * Provision a single domain to use MailChannels Inbound.
1458
- * @param options - The domain data to provision.
1467
+ * @param options - The provision options and domain data.
1459
1468
  * @example
1460
1469
  * ```ts
1461
1470
  * const mailchannels = new MailChannels('your-api-key')
@@ -1469,7 +1478,7 @@ declare class Domains {
1469
1478
  /**
1470
1479
  * Provision up to 1000 domains to use MailChannels Inbound.
1471
1480
  * @param options - The options to provision the domains.
1472
- * @param domains - The list of domains to provision.
1481
+ * @param domains - A list of domain data to provision.
1473
1482
  * @example
1474
1483
  * ```ts
1475
1484
  * const mailchannels = new MailChannels('your-api-key')
@@ -1651,7 +1660,7 @@ declare class Lists {
1651
1660
 
1652
1661
  interface UsersCreateOptions {
1653
1662
  /**
1654
- * Flag to indicate if the user is a domain admin or a regular user
1663
+ * Flag to indicate if the user is a domain admin or a regular user.
1655
1664
  * @default false
1656
1665
  */
1657
1666
  admin?: boolean;
@@ -1664,7 +1673,7 @@ interface UsersCreateOptions {
1664
1673
  */
1665
1674
  filter?: boolean | "compute";
1666
1675
  /**
1667
- * safelist and blocklist entries to be added
1676
+ * safelist and blocklist entries to be added.
1668
1677
  */
1669
1678
  listEntries?: {
1670
1679
  blocklist?: string[];
@@ -1770,7 +1779,7 @@ interface ServiceReportOptions {
1770
1779
  */
1771
1780
  messageContent: string;
1772
1781
  /**
1773
- * The SMTP envelope information
1782
+ * The SMTP envelope information.
1774
1783
  */
1775
1784
  smtpEnvelopeInformation?: {
1776
1785
  ehlo: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailchannels-sdk",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Node.js SDK to integrate MailChannels API into your JavaScript or TypeScript server-side applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,16 +43,16 @@
43
43
  "devDependencies": {
44
44
  "@eslint/compat": "^1.4.0",
45
45
  "@stylistic/eslint-plugin": "^5.4.0",
46
- "@types/node": "^24.5.2",
47
- "@typescript-eslint/eslint-plugin": "^8.44.1",
48
- "@typescript-eslint/parser": "^8.44.1",
46
+ "@types/node": "^24.7.2",
47
+ "@typescript-eslint/eslint-plugin": "^8.46.0",
48
+ "@typescript-eslint/parser": "^8.46.0",
49
49
  "@vitest/coverage-v8": "^3.2.4",
50
50
  "changelogen": "^0.6.2",
51
- "eslint": "^9.36.0",
51
+ "eslint": "^9.37.0",
52
52
  "eslint-plugin-import-x": "^4.16.1",
53
- "jiti": "^2.6.0",
53
+ "jiti": "^2.6.1",
54
54
  "scule": "^1.3.0",
55
- "typescript": "^5.9.2",
55
+ "typescript": "^5.9.3",
56
56
  "unbuild": "^3.6.1",
57
57
  "vitepress": "^1.6.4",
58
58
  "vitepress-plugin-group-icons": "^1.6.3",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "scripts": {
62
62
  "build": "unbuild",
63
- "release": "npm run lint && npm run test && pnpm build && changelogen --release && git push --follow-tags",
63
+ "release": "pnpm lint && pnpm test && pnpm build && changelogen --release && git push --follow-tags",
64
64
  "lint": "eslint",
65
65
  "lint:fix": "eslint --fix",
66
66
  "test": "vitest run --reporter=verbose --coverage",