shipmail 0.4.19 → 0.4.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -735,6 +735,16 @@ type MailboxImport = {
735
735
  readonly started_at: string | null;
736
736
  readonly completed_at: string | null;
737
737
  readonly folders?: readonly MailboxImportFolder[] | undefined;
738
+ readonly source_retention?: MailboxImportSourceRetention | undefined;
739
+ };
740
+ type MailboxImportSourceRetentionState = "available" | "missing" | "expired" | "deleted" | "not_applicable";
741
+ type MailboxImportSourceRetention = {
742
+ readonly state: MailboxImportSourceRetentionState;
743
+ readonly expires_at: string | null;
744
+ readonly deleted_at: string | null;
745
+ };
746
+ type RestoreMailboxImportParams = {
747
+ readonly file_ids: readonly string[];
738
748
  };
739
749
  type MailboxImports = {
740
750
  readonly object: "imports";
@@ -891,6 +901,7 @@ type SendMessageParams = {
891
901
  readonly source_rfc_message_id?: string | undefined;
892
902
  readonly headers?: readonly OutboundHeader[] | undefined;
893
903
  readonly scheduled_at?: string | undefined;
904
+ readonly track_reply?: boolean | undefined;
894
905
  readonly sandbox_outcome?: SandboxOutcome | undefined;
895
906
  };
896
907
  type ScheduledMessageRecipient = {
@@ -1004,6 +1015,7 @@ type ReplyToMessageParams = {
1004
1015
  readonly source_rfc_message_id?: string | undefined;
1005
1016
  readonly headers?: readonly OutboundHeader[] | undefined;
1006
1017
  readonly scheduled_at?: string | undefined;
1018
+ readonly track_reply?: boolean | undefined;
1007
1019
  readonly sandbox_outcome?: SandboxOutcome | undefined;
1008
1020
  };
1009
1021
  type InjectSandboxInboundParams = {
@@ -1485,6 +1497,8 @@ declare class Mailboxes extends ApiResource {
1485
1497
  listImports(id: string, options?: MethodOptions): Promise<MailboxImports>;
1486
1498
  getImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
1487
1499
  cancelImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
1500
+ resumeImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
1501
+ restoreImport(id: string, importId: string, params: RestoreMailboxImportParams, options?: MethodOptions): Promise<MailboxImport>;
1488
1502
  undoImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
1489
1503
  createImportUpload(id: string, params: CreateImportUploadParams, options?: MethodOptions): Promise<ImportUpload>;
1490
1504
  completeImportUpload(id: string, fileId: string, params: CompleteImportUploadParams, options?: MethodOptions): Promise<void>;
@@ -1518,12 +1532,12 @@ type NewsletterButtonAlign = "left" | "center" | "right";
1518
1532
  type NewsletterDomain = {
1519
1533
  readonly object: "newsletter_domain";
1520
1534
  readonly id: string;
1521
- readonly root_domain_id: string;
1535
+ readonly root_domain_name: string;
1522
1536
  readonly domain_name: string;
1523
1537
  readonly from_local_part: string;
1524
1538
  readonly from_address: string;
1525
1539
  readonly mail_from_domain: string;
1526
- readonly reply_to_mailbox_id: string | null;
1540
+ readonly reply_to_address: string | null;
1527
1541
  readonly status: NewsletterDomainStatus;
1528
1542
  readonly dkim_status: NewsletterDomainRecordStatus;
1529
1543
  readonly mail_from_status: NewsletterDomainRecordStatus;
@@ -1551,9 +1565,8 @@ type Newsletter = {
1551
1565
  readonly object: "newsletter";
1552
1566
  readonly id: string;
1553
1567
  readonly audience_id: string | null;
1554
- readonly sender_identity_id: string;
1555
- readonly newsletter_domain_id: string;
1556
- readonly reply_to_mailbox_id: string | null;
1568
+ readonly sender_identity_id: string | null;
1569
+ readonly newsletter_domain_id: string | null;
1557
1570
  readonly name: string;
1558
1571
  readonly subject: string | null;
1559
1572
  readonly preview_text: string | null;
@@ -2101,6 +2114,7 @@ type ReplyToThreadParams = {
2101
2114
  readonly text?: string | undefined;
2102
2115
  readonly cc?: readonly EmailRecipientInput[] | undefined;
2103
2116
  readonly scheduled_at?: string | undefined;
2117
+ readonly track_reply?: boolean | undefined;
2104
2118
  readonly sandbox_outcome?: SandboxOutcome | undefined;
2105
2119
  };
2106
2120
 
package/dist/index.d.ts CHANGED
@@ -735,6 +735,16 @@ type MailboxImport = {
735
735
  readonly started_at: string | null;
736
736
  readonly completed_at: string | null;
737
737
  readonly folders?: readonly MailboxImportFolder[] | undefined;
738
+ readonly source_retention?: MailboxImportSourceRetention | undefined;
739
+ };
740
+ type MailboxImportSourceRetentionState = "available" | "missing" | "expired" | "deleted" | "not_applicable";
741
+ type MailboxImportSourceRetention = {
742
+ readonly state: MailboxImportSourceRetentionState;
743
+ readonly expires_at: string | null;
744
+ readonly deleted_at: string | null;
745
+ };
746
+ type RestoreMailboxImportParams = {
747
+ readonly file_ids: readonly string[];
738
748
  };
739
749
  type MailboxImports = {
740
750
  readonly object: "imports";
@@ -891,6 +901,7 @@ type SendMessageParams = {
891
901
  readonly source_rfc_message_id?: string | undefined;
892
902
  readonly headers?: readonly OutboundHeader[] | undefined;
893
903
  readonly scheduled_at?: string | undefined;
904
+ readonly track_reply?: boolean | undefined;
894
905
  readonly sandbox_outcome?: SandboxOutcome | undefined;
895
906
  };
896
907
  type ScheduledMessageRecipient = {
@@ -1004,6 +1015,7 @@ type ReplyToMessageParams = {
1004
1015
  readonly source_rfc_message_id?: string | undefined;
1005
1016
  readonly headers?: readonly OutboundHeader[] | undefined;
1006
1017
  readonly scheduled_at?: string | undefined;
1018
+ readonly track_reply?: boolean | undefined;
1007
1019
  readonly sandbox_outcome?: SandboxOutcome | undefined;
1008
1020
  };
1009
1021
  type InjectSandboxInboundParams = {
@@ -1485,6 +1497,8 @@ declare class Mailboxes extends ApiResource {
1485
1497
  listImports(id: string, options?: MethodOptions): Promise<MailboxImports>;
1486
1498
  getImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
1487
1499
  cancelImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
1500
+ resumeImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
1501
+ restoreImport(id: string, importId: string, params: RestoreMailboxImportParams, options?: MethodOptions): Promise<MailboxImport>;
1488
1502
  undoImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
1489
1503
  createImportUpload(id: string, params: CreateImportUploadParams, options?: MethodOptions): Promise<ImportUpload>;
1490
1504
  completeImportUpload(id: string, fileId: string, params: CompleteImportUploadParams, options?: MethodOptions): Promise<void>;
@@ -1518,12 +1532,12 @@ type NewsletterButtonAlign = "left" | "center" | "right";
1518
1532
  type NewsletterDomain = {
1519
1533
  readonly object: "newsletter_domain";
1520
1534
  readonly id: string;
1521
- readonly root_domain_id: string;
1535
+ readonly root_domain_name: string;
1522
1536
  readonly domain_name: string;
1523
1537
  readonly from_local_part: string;
1524
1538
  readonly from_address: string;
1525
1539
  readonly mail_from_domain: string;
1526
- readonly reply_to_mailbox_id: string | null;
1540
+ readonly reply_to_address: string | null;
1527
1541
  readonly status: NewsletterDomainStatus;
1528
1542
  readonly dkim_status: NewsletterDomainRecordStatus;
1529
1543
  readonly mail_from_status: NewsletterDomainRecordStatus;
@@ -1551,9 +1565,8 @@ type Newsletter = {
1551
1565
  readonly object: "newsletter";
1552
1566
  readonly id: string;
1553
1567
  readonly audience_id: string | null;
1554
- readonly sender_identity_id: string;
1555
- readonly newsletter_domain_id: string;
1556
- readonly reply_to_mailbox_id: string | null;
1568
+ readonly sender_identity_id: string | null;
1569
+ readonly newsletter_domain_id: string | null;
1557
1570
  readonly name: string;
1558
1571
  readonly subject: string | null;
1559
1572
  readonly preview_text: string | null;
@@ -2101,6 +2114,7 @@ type ReplyToThreadParams = {
2101
2114
  readonly text?: string | undefined;
2102
2115
  readonly cc?: readonly EmailRecipientInput[] | undefined;
2103
2116
  readonly scheduled_at?: string | undefined;
2117
+ readonly track_reply?: boolean | undefined;
2104
2118
  readonly sandbox_outcome?: SandboxOutcome | undefined;
2105
2119
  };
2106
2120
 
package/dist/index.js CHANGED
@@ -1036,6 +1036,21 @@ var Mailboxes = class extends ApiResource {
1036
1036
  methodOptions: options
1037
1037
  });
1038
1038
  }
1039
+ resumeImport(id, importId, options) {
1040
+ return this.client.request({
1041
+ method: "POST",
1042
+ path: `/mailboxes/${encodeURIComponent(id)}/imports/${encodeURIComponent(importId)}/resume`,
1043
+ methodOptions: options
1044
+ });
1045
+ }
1046
+ restoreImport(id, importId, params, options) {
1047
+ return this.client.request({
1048
+ method: "POST",
1049
+ path: `/mailboxes/${encodeURIComponent(id)}/imports/${encodeURIComponent(importId)}/restore`,
1050
+ body: params,
1051
+ methodOptions: options
1052
+ });
1053
+ }
1039
1054
  undoImport(id, importId, options) {
1040
1055
  return this.client.request({
1041
1056
  method: "POST",
@@ -1632,7 +1647,7 @@ var Webhooks = class extends ApiResource {
1632
1647
  };
1633
1648
 
1634
1649
  // src/version.ts
1635
- var VERSION = "0.4.19";
1650
+ var VERSION = "0.4.21";
1636
1651
 
1637
1652
  // src/client.ts
1638
1653
  var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";