@unlimited-messaging/sdk 0.1.25 → 0.1.27

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 (134) hide show
  1. package/package.json +1 -1
  2. package/src/api/resources/accounts/client/Client.d.ts +182 -1
  3. package/src/api/resources/accounts/client/Client.js +437 -1
  4. package/src/api/resources/accounts/client/requests/AccountConnectEmailRequest.d.ts +39 -0
  5. package/src/api/resources/accounts/client/requests/AccountConnectEmailRequest.js +5 -0
  6. package/src/api/resources/accounts/client/requests/AccountEmailAutoconfigRequest.d.ts +12 -0
  7. package/src/api/resources/accounts/client/requests/AccountEmailAutoconfigRequest.js +5 -0
  8. package/src/api/resources/accounts/client/requests/AccountReconnectEmailRequest.d.ts +22 -0
  9. package/src/api/resources/accounts/client/requests/AccountReconnectEmailRequest.js +5 -0
  10. package/src/api/resources/accounts/client/requests/AccountTestEmailRequest.d.ts +35 -0
  11. package/src/api/resources/accounts/client/requests/AccountTestEmailRequest.js +5 -0
  12. package/src/api/resources/accounts/client/requests/index.d.ts +4 -0
  13. package/src/api/resources/accounts/types/AccountConnectEmailRequestImap.d.ts +15 -0
  14. package/src/api/resources/accounts/types/AccountConnectEmailRequestImap.js +5 -0
  15. package/src/api/resources/accounts/types/AccountConnectEmailRequestImapSecurity.d.ts +11 -0
  16. package/src/api/resources/accounts/types/AccountConnectEmailRequestImapSecurity.js +10 -0
  17. package/src/api/resources/accounts/types/AccountConnectEmailRequestSmtp.d.ts +15 -0
  18. package/src/api/resources/accounts/types/AccountConnectEmailRequestSmtp.js +5 -0
  19. package/src/api/resources/accounts/types/AccountConnectEmailRequestSmtpSecurity.d.ts +11 -0
  20. package/src/api/resources/accounts/types/AccountConnectEmailRequestSmtpSecurity.js +10 -0
  21. package/src/api/resources/accounts/types/AccountConnectEmailResponse.d.ts +26 -0
  22. package/src/api/resources/accounts/types/AccountConnectEmailResponse.js +5 -0
  23. package/src/api/resources/accounts/types/AccountConnectEmailResponseChannel.d.ts +10 -0
  24. package/src/api/resources/accounts/types/AccountConnectEmailResponseChannel.js +12 -0
  25. package/src/api/resources/accounts/types/AccountConnectEmailResponseOwner.d.ts +11 -0
  26. package/src/api/resources/accounts/types/AccountConnectEmailResponseOwner.js +10 -0
  27. package/src/api/resources/accounts/types/AccountConnectEmailResponseStatus.d.ts +12 -0
  28. package/src/api/resources/accounts/types/AccountConnectEmailResponseStatus.js +14 -0
  29. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponse.d.ts +16 -0
  30. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponse.js +5 -0
  31. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponseImap.d.ts +12 -0
  32. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponseImap.js +5 -0
  33. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponseImapSecurity.d.ts +11 -0
  34. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponseImapSecurity.js +10 -0
  35. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponseSmtp.d.ts +12 -0
  36. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponseSmtp.js +5 -0
  37. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponseSmtpSecurity.d.ts +11 -0
  38. package/src/api/resources/accounts/types/AccountEmailAutoconfigResponseSmtpSecurity.js +10 -0
  39. package/src/api/resources/accounts/types/AccountReconnectEmailRequestImap.d.ts +15 -0
  40. package/src/api/resources/accounts/types/AccountReconnectEmailRequestImap.js +5 -0
  41. package/src/api/resources/accounts/types/AccountReconnectEmailRequestImapSecurity.d.ts +11 -0
  42. package/src/api/resources/accounts/types/AccountReconnectEmailRequestImapSecurity.js +10 -0
  43. package/src/api/resources/accounts/types/AccountReconnectEmailRequestSmtp.d.ts +15 -0
  44. package/src/api/resources/accounts/types/AccountReconnectEmailRequestSmtp.js +5 -0
  45. package/src/api/resources/accounts/types/AccountReconnectEmailRequestSmtpSecurity.d.ts +11 -0
  46. package/src/api/resources/accounts/types/AccountReconnectEmailRequestSmtpSecurity.js +10 -0
  47. package/src/api/resources/accounts/types/AccountReconnectEmailResponse.d.ts +26 -0
  48. package/src/api/resources/accounts/types/AccountReconnectEmailResponse.js +5 -0
  49. package/src/api/resources/accounts/types/AccountReconnectEmailResponseChannel.d.ts +10 -0
  50. package/src/api/resources/accounts/types/AccountReconnectEmailResponseChannel.js +12 -0
  51. package/src/api/resources/accounts/types/AccountReconnectEmailResponseOwner.d.ts +11 -0
  52. package/src/api/resources/accounts/types/AccountReconnectEmailResponseOwner.js +10 -0
  53. package/src/api/resources/accounts/types/AccountReconnectEmailResponseStatus.d.ts +12 -0
  54. package/src/api/resources/accounts/types/AccountReconnectEmailResponseStatus.js +14 -0
  55. package/src/api/resources/accounts/types/AccountTestEmailRequestImap.d.ts +15 -0
  56. package/src/api/resources/accounts/types/AccountTestEmailRequestImap.js +5 -0
  57. package/src/api/resources/accounts/types/AccountTestEmailRequestImapSecurity.d.ts +11 -0
  58. package/src/api/resources/accounts/types/AccountTestEmailRequestImapSecurity.js +10 -0
  59. package/src/api/resources/accounts/types/AccountTestEmailRequestSmtp.d.ts +15 -0
  60. package/src/api/resources/accounts/types/AccountTestEmailRequestSmtp.js +5 -0
  61. package/src/api/resources/accounts/types/AccountTestEmailRequestSmtpSecurity.d.ts +11 -0
  62. package/src/api/resources/accounts/types/AccountTestEmailRequestSmtpSecurity.js +10 -0
  63. package/src/api/resources/accounts/types/AccountTestEmailResponse.d.ts +8 -0
  64. package/src/api/resources/accounts/types/AccountTestEmailResponse.js +5 -0
  65. package/src/api/resources/accounts/types/index.d.ts +26 -0
  66. package/src/api/resources/accounts/types/index.js +26 -0
  67. package/src/api/resources/messages/client/Client.d.ts +1 -1
  68. package/src/api/resources/messages/client/Client.js +1 -1
  69. package/src/api/resources/messages/types/MessageSendRequestChannelsItemChannel.d.ts +2 -1
  70. package/src/api/resources/messages/types/MessageSendRequestChannelsItemChannel.js +1 -0
  71. package/src/serialization/resources/accounts/client/requests/AccountConnectEmailRequest.d.ts +21 -0
  72. package/src/serialization/resources/accounts/client/requests/AccountConnectEmailRequest.js +52 -0
  73. package/src/serialization/resources/accounts/client/requests/AccountReconnectEmailRequest.d.ts +18 -0
  74. package/src/serialization/resources/accounts/client/requests/AccountReconnectEmailRequest.js +49 -0
  75. package/src/serialization/resources/accounts/client/requests/AccountTestEmailRequest.d.ts +19 -0
  76. package/src/serialization/resources/accounts/client/requests/AccountTestEmailRequest.js +50 -0
  77. package/src/serialization/resources/accounts/client/requests/index.d.ts +3 -0
  78. package/src/serialization/resources/accounts/client/requests/index.js +7 -1
  79. package/src/serialization/resources/accounts/types/AccountConnectEmailRequestImap.d.ts +15 -0
  80. package/src/serialization/resources/accounts/types/AccountConnectEmailRequestImap.js +46 -0
  81. package/src/serialization/resources/accounts/types/AccountConnectEmailRequestImapSecurity.d.ts +10 -0
  82. package/src/serialization/resources/accounts/types/AccountConnectEmailRequestImapSecurity.js +41 -0
  83. package/src/serialization/resources/accounts/types/AccountConnectEmailRequestSmtp.d.ts +15 -0
  84. package/src/serialization/resources/accounts/types/AccountConnectEmailRequestSmtp.js +46 -0
  85. package/src/serialization/resources/accounts/types/AccountConnectEmailRequestSmtpSecurity.d.ts +10 -0
  86. package/src/serialization/resources/accounts/types/AccountConnectEmailRequestSmtpSecurity.js +41 -0
  87. package/src/serialization/resources/accounts/types/AccountConnectEmailResponse.d.ts +28 -0
  88. package/src/serialization/resources/accounts/types/AccountConnectEmailResponse.js +59 -0
  89. package/src/serialization/resources/accounts/types/AccountConnectEmailResponseChannel.d.ts +10 -0
  90. package/src/serialization/resources/accounts/types/AccountConnectEmailResponseChannel.js +41 -0
  91. package/src/serialization/resources/accounts/types/AccountConnectEmailResponseOwner.d.ts +10 -0
  92. package/src/serialization/resources/accounts/types/AccountConnectEmailResponseOwner.js +41 -0
  93. package/src/serialization/resources/accounts/types/AccountConnectEmailResponseStatus.d.ts +10 -0
  94. package/src/serialization/resources/accounts/types/AccountConnectEmailResponseStatus.js +41 -0
  95. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponse.d.ts +19 -0
  96. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponse.js +50 -0
  97. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponseImap.d.ts +15 -0
  98. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponseImap.js +46 -0
  99. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponseImapSecurity.d.ts +10 -0
  100. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponseImapSecurity.js +41 -0
  101. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponseSmtp.d.ts +15 -0
  102. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponseSmtp.js +46 -0
  103. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponseSmtpSecurity.d.ts +10 -0
  104. package/src/serialization/resources/accounts/types/AccountEmailAutoconfigResponseSmtpSecurity.js +41 -0
  105. package/src/serialization/resources/accounts/types/AccountReconnectEmailRequestImap.d.ts +15 -0
  106. package/src/serialization/resources/accounts/types/AccountReconnectEmailRequestImap.js +46 -0
  107. package/src/serialization/resources/accounts/types/AccountReconnectEmailRequestImapSecurity.d.ts +10 -0
  108. package/src/serialization/resources/accounts/types/AccountReconnectEmailRequestImapSecurity.js +41 -0
  109. package/src/serialization/resources/accounts/types/AccountReconnectEmailRequestSmtp.d.ts +15 -0
  110. package/src/serialization/resources/accounts/types/AccountReconnectEmailRequestSmtp.js +46 -0
  111. package/src/serialization/resources/accounts/types/AccountReconnectEmailRequestSmtpSecurity.d.ts +10 -0
  112. package/src/serialization/resources/accounts/types/AccountReconnectEmailRequestSmtpSecurity.js +41 -0
  113. package/src/serialization/resources/accounts/types/AccountReconnectEmailResponse.d.ts +28 -0
  114. package/src/serialization/resources/accounts/types/AccountReconnectEmailResponse.js +59 -0
  115. package/src/serialization/resources/accounts/types/AccountReconnectEmailResponseChannel.d.ts +10 -0
  116. package/src/serialization/resources/accounts/types/AccountReconnectEmailResponseChannel.js +41 -0
  117. package/src/serialization/resources/accounts/types/AccountReconnectEmailResponseOwner.d.ts +10 -0
  118. package/src/serialization/resources/accounts/types/AccountReconnectEmailResponseOwner.js +41 -0
  119. package/src/serialization/resources/accounts/types/AccountReconnectEmailResponseStatus.d.ts +10 -0
  120. package/src/serialization/resources/accounts/types/AccountReconnectEmailResponseStatus.js +41 -0
  121. package/src/serialization/resources/accounts/types/AccountTestEmailRequestImap.d.ts +15 -0
  122. package/src/serialization/resources/accounts/types/AccountTestEmailRequestImap.js +46 -0
  123. package/src/serialization/resources/accounts/types/AccountTestEmailRequestImapSecurity.d.ts +10 -0
  124. package/src/serialization/resources/accounts/types/AccountTestEmailRequestImapSecurity.js +41 -0
  125. package/src/serialization/resources/accounts/types/AccountTestEmailRequestSmtp.d.ts +15 -0
  126. package/src/serialization/resources/accounts/types/AccountTestEmailRequestSmtp.js +46 -0
  127. package/src/serialization/resources/accounts/types/AccountTestEmailRequestSmtpSecurity.d.ts +10 -0
  128. package/src/serialization/resources/accounts/types/AccountTestEmailRequestSmtpSecurity.js +41 -0
  129. package/src/serialization/resources/accounts/types/AccountTestEmailResponse.d.ts +13 -0
  130. package/src/serialization/resources/accounts/types/AccountTestEmailResponse.js +44 -0
  131. package/src/serialization/resources/accounts/types/index.d.ts +26 -0
  132. package/src/serialization/resources/accounts/types/index.js +26 -0
  133. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItemChannel.d.ts +1 -1
  134. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItemChannel.js +1 -1
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ /**
6
+ * Outgoing mail server (SMTP).
7
+ */
8
+ export interface AccountConnectEmailRequestSmtp {
9
+ /** Server hostname, e.g. imap.gmail.com. */
10
+ host: string;
11
+ /** Server port, e.g. 993 (IMAP) or 465 / 587 (SMTP). */
12
+ port: number;
13
+ /** `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused. */
14
+ security: UnlimitedMessagingApi.AccountConnectEmailRequestSmtpSecurity;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused.
6
+ */
7
+ export type AccountConnectEmailRequestSmtpSecurity = "tls" | "starttls";
8
+ export declare const AccountConnectEmailRequestSmtpSecurity: {
9
+ readonly Tls: "tls";
10
+ readonly Starttls: "starttls";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountConnectEmailRequestSmtpSecurity = void 0;
7
+ exports.AccountConnectEmailRequestSmtpSecurity = {
8
+ Tls: "tls",
9
+ Starttls: "starttls",
10
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ export interface AccountConnectEmailResponse {
6
+ id: string;
7
+ channel: UnlimitedMessagingApi.AccountConnectEmailResponseChannel;
8
+ /** Who provides the account: USER when you connected it with your own credentials, SYSTEM when UnlimitedMessaging provides it. */
9
+ owner: UnlimitedMessagingApi.AccountConnectEmailResponseOwner;
10
+ /** Deprecated: use `owner` instead (true when owner is SYSTEM). */
11
+ isSystem: boolean;
12
+ status: UnlimitedMessagingApi.AccountConnectEmailResponseStatus;
13
+ phone: string | null;
14
+ name: string | null;
15
+ /** Your own reference for this account, as set at linking or with PATCH. */
16
+ externalRef: string | null;
17
+ blockedUntil: Date | null;
18
+ /** Whether fetching a stored media also requires authenticating as its owner. */
19
+ mediaUrlRequiresAuth: boolean;
20
+ /** Whether the account's message history is stored and announced. */
21
+ syncHistory: boolean;
22
+ /** The pause this account keeps between two sends, in seconds. */
23
+ sendIntervalSeconds: number;
24
+ createdAt: Date;
25
+ updatedAt: Date;
26
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AccountConnectEmailResponseChannel = "WHATSAPP_BAILYES" | "EMAIL" | "SMS" | "WHATSAPP_WHATSMEOW";
5
+ export declare const AccountConnectEmailResponseChannel: {
6
+ readonly WhatsappBailyes: "WHATSAPP_BAILYES";
7
+ readonly Email: "EMAIL";
8
+ readonly Sms: "SMS";
9
+ readonly WhatsappWhatsmeow: "WHATSAPP_WHATSMEOW";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountConnectEmailResponseChannel = void 0;
7
+ exports.AccountConnectEmailResponseChannel = {
8
+ WhatsappBailyes: "WHATSAPP_BAILYES",
9
+ Email: "EMAIL",
10
+ Sms: "SMS",
11
+ WhatsappWhatsmeow: "WHATSAPP_WHATSMEOW",
12
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Who provides the account: USER when you connected it with your own credentials, SYSTEM when UnlimitedMessaging provides it.
6
+ */
7
+ export type AccountConnectEmailResponseOwner = "USER" | "SYSTEM";
8
+ export declare const AccountConnectEmailResponseOwner: {
9
+ readonly User: "USER";
10
+ readonly System: "SYSTEM";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountConnectEmailResponseOwner = void 0;
7
+ exports.AccountConnectEmailResponseOwner = {
8
+ User: "USER",
9
+ System: "SYSTEM",
10
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AccountConnectEmailResponseStatus = "PENDING" | "ACTIVE" | "INACTIVE" | "LINKING" | "BLOCKED" | "DUPLICATE";
5
+ export declare const AccountConnectEmailResponseStatus: {
6
+ readonly Pending: "PENDING";
7
+ readonly Active: "ACTIVE";
8
+ readonly Inactive: "INACTIVE";
9
+ readonly Linking: "LINKING";
10
+ readonly Blocked: "BLOCKED";
11
+ readonly Duplicate: "DUPLICATE";
12
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountConnectEmailResponseStatus = void 0;
7
+ exports.AccountConnectEmailResponseStatus = {
8
+ Pending: "PENDING",
9
+ Active: "ACTIVE",
10
+ Inactive: "INACTIVE",
11
+ Linking: "LINKING",
12
+ Blocked: "BLOCKED",
13
+ Duplicate: "DUPLICATE",
14
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ export interface AccountEmailAutoconfigResponse {
6
+ /** How the settings were found, from most to least reliable: `autoconfig` (published by the provider), `ispdb` (Mozilla ISP database), `mx` or `srv` (DNS records), `probe` (servers answered), `guess` (common hostnames, check them before connecting). */
7
+ source: string;
8
+ imap: UnlimitedMessagingApi.AccountEmailAutoconfigResponseImap;
9
+ smtp: UnlimitedMessagingApi.AccountEmailAutoconfigResponseSmtp;
10
+ /** The login to use, usually the address itself. */
11
+ username: string;
12
+ /** Suggested value for `appendSent` when connecting. */
13
+ appendSent: boolean;
14
+ /** True when the provider refuses password logins (Outlook.com, Hotmail, Microsoft 365). Such mailboxes cannot be connected yet. */
15
+ oauthRequired: boolean;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ export interface AccountEmailAutoconfigResponseImap {
6
+ /** Server hostname, e.g. imap.gmail.com. */
7
+ host: string;
8
+ /** Server port, e.g. 993 (IMAP) or 465 / 587 (SMTP). */
9
+ port: number;
10
+ /** `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused. */
11
+ security: UnlimitedMessagingApi.AccountEmailAutoconfigResponseImapSecurity;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused.
6
+ */
7
+ export type AccountEmailAutoconfigResponseImapSecurity = "tls" | "starttls";
8
+ export declare const AccountEmailAutoconfigResponseImapSecurity: {
9
+ readonly Tls: "tls";
10
+ readonly Starttls: "starttls";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountEmailAutoconfigResponseImapSecurity = void 0;
7
+ exports.AccountEmailAutoconfigResponseImapSecurity = {
8
+ Tls: "tls",
9
+ Starttls: "starttls",
10
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ export interface AccountEmailAutoconfigResponseSmtp {
6
+ /** Server hostname, e.g. imap.gmail.com. */
7
+ host: string;
8
+ /** Server port, e.g. 993 (IMAP) or 465 / 587 (SMTP). */
9
+ port: number;
10
+ /** `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused. */
11
+ security: UnlimitedMessagingApi.AccountEmailAutoconfigResponseSmtpSecurity;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused.
6
+ */
7
+ export type AccountEmailAutoconfigResponseSmtpSecurity = "tls" | "starttls";
8
+ export declare const AccountEmailAutoconfigResponseSmtpSecurity: {
9
+ readonly Tls: "tls";
10
+ readonly Starttls: "starttls";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountEmailAutoconfigResponseSmtpSecurity = void 0;
7
+ exports.AccountEmailAutoconfigResponseSmtpSecurity = {
8
+ Tls: "tls",
9
+ Starttls: "starttls",
10
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ /**
6
+ * New IMAP server. Defaults to the stored one.
7
+ */
8
+ export interface AccountReconnectEmailRequestImap {
9
+ /** Server hostname, e.g. imap.gmail.com. */
10
+ host: string;
11
+ /** Server port, e.g. 993 (IMAP) or 465 / 587 (SMTP). */
12
+ port: number;
13
+ /** `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused. */
14
+ security: UnlimitedMessagingApi.AccountReconnectEmailRequestImapSecurity;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused.
6
+ */
7
+ export type AccountReconnectEmailRequestImapSecurity = "tls" | "starttls";
8
+ export declare const AccountReconnectEmailRequestImapSecurity: {
9
+ readonly Tls: "tls";
10
+ readonly Starttls: "starttls";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountReconnectEmailRequestImapSecurity = void 0;
7
+ exports.AccountReconnectEmailRequestImapSecurity = {
8
+ Tls: "tls",
9
+ Starttls: "starttls",
10
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ /**
6
+ * New SMTP server. Defaults to the stored one.
7
+ */
8
+ export interface AccountReconnectEmailRequestSmtp {
9
+ /** Server hostname, e.g. imap.gmail.com. */
10
+ host: string;
11
+ /** Server port, e.g. 993 (IMAP) or 465 / 587 (SMTP). */
12
+ port: number;
13
+ /** `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused. */
14
+ security: UnlimitedMessagingApi.AccountReconnectEmailRequestSmtpSecurity;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused.
6
+ */
7
+ export type AccountReconnectEmailRequestSmtpSecurity = "tls" | "starttls";
8
+ export declare const AccountReconnectEmailRequestSmtpSecurity: {
9
+ readonly Tls: "tls";
10
+ readonly Starttls: "starttls";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountReconnectEmailRequestSmtpSecurity = void 0;
7
+ exports.AccountReconnectEmailRequestSmtpSecurity = {
8
+ Tls: "tls",
9
+ Starttls: "starttls",
10
+ };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ export interface AccountReconnectEmailResponse {
6
+ id: string;
7
+ channel: UnlimitedMessagingApi.AccountReconnectEmailResponseChannel;
8
+ /** Who provides the account: USER when you connected it with your own credentials, SYSTEM when UnlimitedMessaging provides it. */
9
+ owner: UnlimitedMessagingApi.AccountReconnectEmailResponseOwner;
10
+ /** Deprecated: use `owner` instead (true when owner is SYSTEM). */
11
+ isSystem: boolean;
12
+ status: UnlimitedMessagingApi.AccountReconnectEmailResponseStatus;
13
+ phone: string | null;
14
+ name: string | null;
15
+ /** Your own reference for this account, as set at linking or with PATCH. */
16
+ externalRef: string | null;
17
+ blockedUntil: Date | null;
18
+ /** Whether fetching a stored media also requires authenticating as its owner. */
19
+ mediaUrlRequiresAuth: boolean;
20
+ /** Whether the account's message history is stored and announced. */
21
+ syncHistory: boolean;
22
+ /** The pause this account keeps between two sends, in seconds. */
23
+ sendIntervalSeconds: number;
24
+ createdAt: Date;
25
+ updatedAt: Date;
26
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AccountReconnectEmailResponseChannel = "WHATSAPP_BAILYES" | "EMAIL" | "SMS" | "WHATSAPP_WHATSMEOW";
5
+ export declare const AccountReconnectEmailResponseChannel: {
6
+ readonly WhatsappBailyes: "WHATSAPP_BAILYES";
7
+ readonly Email: "EMAIL";
8
+ readonly Sms: "SMS";
9
+ readonly WhatsappWhatsmeow: "WHATSAPP_WHATSMEOW";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountReconnectEmailResponseChannel = void 0;
7
+ exports.AccountReconnectEmailResponseChannel = {
8
+ WhatsappBailyes: "WHATSAPP_BAILYES",
9
+ Email: "EMAIL",
10
+ Sms: "SMS",
11
+ WhatsappWhatsmeow: "WHATSAPP_WHATSMEOW",
12
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Who provides the account: USER when you connected it with your own credentials, SYSTEM when UnlimitedMessaging provides it.
6
+ */
7
+ export type AccountReconnectEmailResponseOwner = "USER" | "SYSTEM";
8
+ export declare const AccountReconnectEmailResponseOwner: {
9
+ readonly User: "USER";
10
+ readonly System: "SYSTEM";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountReconnectEmailResponseOwner = void 0;
7
+ exports.AccountReconnectEmailResponseOwner = {
8
+ User: "USER",
9
+ System: "SYSTEM",
10
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AccountReconnectEmailResponseStatus = "PENDING" | "ACTIVE" | "INACTIVE" | "LINKING" | "BLOCKED" | "DUPLICATE";
5
+ export declare const AccountReconnectEmailResponseStatus: {
6
+ readonly Pending: "PENDING";
7
+ readonly Active: "ACTIVE";
8
+ readonly Inactive: "INACTIVE";
9
+ readonly Linking: "LINKING";
10
+ readonly Blocked: "BLOCKED";
11
+ readonly Duplicate: "DUPLICATE";
12
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountReconnectEmailResponseStatus = void 0;
7
+ exports.AccountReconnectEmailResponseStatus = {
8
+ Pending: "PENDING",
9
+ Active: "ACTIVE",
10
+ Inactive: "INACTIVE",
11
+ Linking: "LINKING",
12
+ Blocked: "BLOCKED",
13
+ Duplicate: "DUPLICATE",
14
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ /**
6
+ * Incoming mail server (IMAP).
7
+ */
8
+ export interface AccountTestEmailRequestImap {
9
+ /** Server hostname, e.g. imap.gmail.com. */
10
+ host: string;
11
+ /** Server port, e.g. 993 (IMAP) or 465 / 587 (SMTP). */
12
+ port: number;
13
+ /** `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused. */
14
+ security: UnlimitedMessagingApi.AccountTestEmailRequestImapSecurity;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused.
6
+ */
7
+ export type AccountTestEmailRequestImapSecurity = "tls" | "starttls";
8
+ export declare const AccountTestEmailRequestImapSecurity: {
9
+ readonly Tls: "tls";
10
+ readonly Starttls: "starttls";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountTestEmailRequestImapSecurity = void 0;
7
+ exports.AccountTestEmailRequestImapSecurity = {
8
+ Tls: "tls",
9
+ Starttls: "starttls",
10
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as UnlimitedMessagingApi from "../../../index";
5
+ /**
6
+ * Outgoing mail server (SMTP).
7
+ */
8
+ export interface AccountTestEmailRequestSmtp {
9
+ /** Server hostname, e.g. imap.gmail.com. */
10
+ host: string;
11
+ /** Server port, e.g. 993 (IMAP) or 465 / 587 (SMTP). */
12
+ port: number;
13
+ /** `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused. */
14
+ security: UnlimitedMessagingApi.AccountTestEmailRequestSmtpSecurity;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * `tls` for implicit TLS (993, 465), `starttls` for an upgraded connection (143, 587). Plain text is refused.
6
+ */
7
+ export type AccountTestEmailRequestSmtpSecurity = "tls" | "starttls";
8
+ export declare const AccountTestEmailRequestSmtpSecurity: {
9
+ readonly Tls: "tls";
10
+ readonly Starttls: "starttls";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AccountTestEmailRequestSmtpSecurity = void 0;
7
+ exports.AccountTestEmailRequestSmtpSecurity = {
8
+ Tls: "tls",
9
+ Starttls: "starttls",
10
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AccountTestEmailResponse {
5
+ ok: boolean;
6
+ /** The Sent folder found on the IMAP server, or null when none was found. */
7
+ sentFolder: string | null;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,32 @@ export * from "./AccountListAccountsResponseItemStatus";
4
4
  export * from "./AccountListAccountsResponseItem";
5
5
  export * from "./AccountLinkAccountRequestMode";
6
6
  export * from "./AccountLinkAccountResponse";
7
+ export * from "./AccountEmailAutoconfigResponseImapSecurity";
8
+ export * from "./AccountEmailAutoconfigResponseImap";
9
+ export * from "./AccountEmailAutoconfigResponseSmtpSecurity";
10
+ export * from "./AccountEmailAutoconfigResponseSmtp";
11
+ export * from "./AccountEmailAutoconfigResponse";
12
+ export * from "./AccountTestEmailRequestImapSecurity";
13
+ export * from "./AccountTestEmailRequestImap";
14
+ export * from "./AccountTestEmailRequestSmtpSecurity";
15
+ export * from "./AccountTestEmailRequestSmtp";
16
+ export * from "./AccountTestEmailResponse";
17
+ export * from "./AccountConnectEmailRequestImapSecurity";
18
+ export * from "./AccountConnectEmailRequestImap";
19
+ export * from "./AccountConnectEmailRequestSmtpSecurity";
20
+ export * from "./AccountConnectEmailRequestSmtp";
21
+ export * from "./AccountConnectEmailResponseChannel";
22
+ export * from "./AccountConnectEmailResponseOwner";
23
+ export * from "./AccountConnectEmailResponseStatus";
24
+ export * from "./AccountConnectEmailResponse";
25
+ export * from "./AccountReconnectEmailRequestImapSecurity";
26
+ export * from "./AccountReconnectEmailRequestImap";
27
+ export * from "./AccountReconnectEmailRequestSmtpSecurity";
28
+ export * from "./AccountReconnectEmailRequestSmtp";
29
+ export * from "./AccountReconnectEmailResponseChannel";
30
+ export * from "./AccountReconnectEmailResponseOwner";
31
+ export * from "./AccountReconnectEmailResponseStatus";
32
+ export * from "./AccountReconnectEmailResponse";
7
33
  export * from "./AccountGetChallengeResponseChallengeQr";
8
34
  export * from "./AccountGetChallengeResponseChallengeCode";
9
35
  export * from "./AccountGetChallengeResponseChallengeRedirect";