shipmail 0.4.19 → 0.4.20

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>;
@@ -2101,6 +2115,7 @@ type ReplyToThreadParams = {
2101
2115
  readonly text?: string | undefined;
2102
2116
  readonly cc?: readonly EmailRecipientInput[] | undefined;
2103
2117
  readonly scheduled_at?: string | undefined;
2118
+ readonly track_reply?: boolean | undefined;
2104
2119
  readonly sandbox_outcome?: SandboxOutcome | undefined;
2105
2120
  };
2106
2121
 
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>;
@@ -2101,6 +2115,7 @@ type ReplyToThreadParams = {
2101
2115
  readonly text?: string | undefined;
2102
2116
  readonly cc?: readonly EmailRecipientInput[] | undefined;
2103
2117
  readonly scheduled_at?: string | undefined;
2118
+ readonly track_reply?: boolean | undefined;
2104
2119
  readonly sandbox_outcome?: SandboxOutcome | undefined;
2105
2120
  };
2106
2121
 
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.20";
1636
1651
 
1637
1652
  // src/client.ts
1638
1653
  var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";