@unlimited-messaging/sdk 0.1.20 → 0.1.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.
Files changed (122) hide show
  1. package/package.json +1 -1
  2. package/src/api/resources/accounts/types/AccountGetAccountResponse.d.ts +3 -0
  3. package/src/api/resources/accounts/types/AccountGetAccountResponseOwner.d.ts +11 -0
  4. package/src/api/resources/accounts/types/AccountGetAccountResponseOwner.js +10 -0
  5. package/src/api/resources/accounts/types/AccountListAccountsResponseItem.d.ts +3 -0
  6. package/src/api/resources/accounts/types/AccountListAccountsResponseItemOwner.d.ts +11 -0
  7. package/src/api/resources/accounts/types/AccountListAccountsResponseItemOwner.js +10 -0
  8. package/src/api/resources/accounts/types/AccountUpdateAccountResponse.d.ts +3 -0
  9. package/src/api/resources/accounts/types/AccountUpdateAccountResponseOwner.d.ts +11 -0
  10. package/src/api/resources/accounts/types/AccountUpdateAccountResponseOwner.js +10 -0
  11. package/src/api/resources/accounts/types/index.d.ts +3 -0
  12. package/src/api/resources/accounts/types/index.js +3 -0
  13. package/src/api/resources/messages/client/Client.d.ts +13 -1
  14. package/src/api/resources/messages/client/Client.js +13 -1
  15. package/src/api/resources/messages/client/requests/MessageSendRequest.d.ts +10 -0
  16. package/src/api/resources/messages/types/MessageFindAllResponseDataItem.d.ts +12 -1
  17. package/src/api/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.d.ts +11 -0
  18. package/src/api/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.js +5 -0
  19. package/src/api/resources/messages/types/MessageFindOneResponse.d.ts +12 -1
  20. package/src/api/resources/messages/types/MessageFindOneResponseAttachmentsItem.d.ts +11 -0
  21. package/src/api/resources/messages/types/MessageFindOneResponseAttachmentsItem.js +5 -0
  22. package/src/api/resources/messages/types/MessageSendRequestAttachmentsItem.d.ts +9 -0
  23. package/src/api/resources/messages/types/MessageSendRequestAttachmentsItem.js +5 -0
  24. package/src/api/resources/messages/types/MessageSendRequestChannelsItem.d.ts +11 -0
  25. package/src/api/resources/messages/types/MessageSendRequestChannelsItem.js +5 -0
  26. package/src/api/resources/messages/types/MessageSendRequestChannelsItemChannel.d.ts +8 -0
  27. package/src/api/resources/messages/types/MessageSendRequestChannelsItemChannel.js +10 -0
  28. package/src/api/resources/messages/types/MessageSendRequestMediaType.d.ts +3 -0
  29. package/src/api/resources/messages/types/MessageSendRequestTo.d.ts +7 -0
  30. package/src/api/resources/messages/types/MessageSendRequestTo.js +5 -0
  31. package/src/api/resources/messages/types/MessageSendResponse.d.ts +13 -1
  32. package/src/api/resources/messages/types/MessageSendResponseAttachmentsItem.d.ts +11 -0
  33. package/src/api/resources/messages/types/MessageSendResponseAttachmentsItem.js +5 -0
  34. package/src/api/resources/messages/types/MessageSendResponseMessagesItem.d.ts +52 -0
  35. package/src/api/resources/messages/types/MessageSendResponseMessagesItem.js +5 -0
  36. package/src/api/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.d.ts +10 -0
  37. package/src/api/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.js +12 -0
  38. package/src/api/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.d.ts +11 -0
  39. package/src/api/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.js +5 -0
  40. package/src/api/resources/messages/types/MessageSendResponseMessagesItemChannel.d.ts +9 -0
  41. package/src/api/resources/messages/types/MessageSendResponseMessagesItemChannel.js +11 -0
  42. package/src/api/resources/messages/types/MessageSendResponseMessagesItemDirection.d.ts +8 -0
  43. package/src/api/resources/messages/types/MessageSendResponseMessagesItemDirection.js +10 -0
  44. package/src/api/resources/messages/types/MessageSendResponseMessagesItemStatus.d.ts +13 -0
  45. package/src/api/resources/messages/types/MessageSendResponseMessagesItemStatus.js +15 -0
  46. package/src/api/resources/messages/types/index.d.ts +13 -0
  47. package/src/api/resources/messages/types/index.js +13 -0
  48. package/src/api/types/WebhookEventMessageHistoryDataMessagesItem.d.ts +3 -0
  49. package/src/api/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.d.ts +10 -0
  50. package/src/api/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.js +5 -0
  51. package/src/api/types/WebhookEventMessageReceivedDataMessage.d.ts +3 -0
  52. package/src/api/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.d.ts +10 -0
  53. package/src/api/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.js +5 -0
  54. package/src/api/types/WebhookEventMessageSelfSentDataMessage.d.ts +3 -0
  55. package/src/api/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.d.ts +10 -0
  56. package/src/api/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.js +5 -0
  57. package/src/api/types/index.d.ts +3 -0
  58. package/src/api/types/index.js +3 -0
  59. package/src/serialization/resources/accounts/types/AccountGetAccountResponse.d.ts +2 -0
  60. package/src/serialization/resources/accounts/types/AccountGetAccountResponse.js +2 -0
  61. package/src/serialization/resources/accounts/types/AccountGetAccountResponseOwner.d.ts +10 -0
  62. package/src/serialization/resources/accounts/types/AccountGetAccountResponseOwner.js +41 -0
  63. package/src/serialization/resources/accounts/types/AccountListAccountsResponseItem.d.ts +2 -0
  64. package/src/serialization/resources/accounts/types/AccountListAccountsResponseItem.js +2 -0
  65. package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemOwner.d.ts +10 -0
  66. package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemOwner.js +41 -0
  67. package/src/serialization/resources/accounts/types/AccountUpdateAccountResponse.d.ts +2 -0
  68. package/src/serialization/resources/accounts/types/AccountUpdateAccountResponse.js +2 -0
  69. package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseOwner.d.ts +10 -0
  70. package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseOwner.js +41 -0
  71. package/src/serialization/resources/accounts/types/index.d.ts +3 -0
  72. package/src/serialization/resources/accounts/types/index.js +3 -0
  73. package/src/serialization/resources/messages/client/requests/MessageSendRequest.d.ts +8 -0
  74. package/src/serialization/resources/messages/client/requests/MessageSendRequest.js +8 -0
  75. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.d.ts +5 -0
  76. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.js +5 -0
  77. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.d.ts +16 -0
  78. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.js +47 -0
  79. package/src/serialization/resources/messages/types/MessageFindOneResponse.d.ts +5 -0
  80. package/src/serialization/resources/messages/types/MessageFindOneResponse.js +5 -0
  81. package/src/serialization/resources/messages/types/MessageFindOneResponseAttachmentsItem.d.ts +16 -0
  82. package/src/serialization/resources/messages/types/MessageFindOneResponseAttachmentsItem.js +47 -0
  83. package/src/serialization/resources/messages/types/MessageSendRequestAttachmentsItem.d.ts +15 -0
  84. package/src/serialization/resources/messages/types/MessageSendRequestAttachmentsItem.js +46 -0
  85. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItem.d.ts +17 -0
  86. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItem.js +48 -0
  87. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItemChannel.d.ts +10 -0
  88. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItemChannel.js +41 -0
  89. package/src/serialization/resources/messages/types/MessageSendRequestTo.d.ts +13 -0
  90. package/src/serialization/resources/messages/types/MessageSendRequestTo.js +44 -0
  91. package/src/serialization/resources/messages/types/MessageSendResponse.d.ts +7 -0
  92. package/src/serialization/resources/messages/types/MessageSendResponse.js +7 -0
  93. package/src/serialization/resources/messages/types/MessageSendResponseAttachmentsItem.d.ts +16 -0
  94. package/src/serialization/resources/messages/types/MessageSendResponseAttachmentsItem.js +47 -0
  95. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.d.ts +47 -0
  96. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.js +78 -0
  97. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.d.ts +10 -0
  98. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.js +41 -0
  99. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.d.ts +16 -0
  100. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.js +47 -0
  101. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemChannel.d.ts +10 -0
  102. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemChannel.js +41 -0
  103. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemDirection.d.ts +10 -0
  104. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemDirection.js +41 -0
  105. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemStatus.d.ts +10 -0
  106. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemStatus.js +41 -0
  107. package/src/serialization/resources/messages/types/index.d.ts +13 -0
  108. package/src/serialization/resources/messages/types/index.js +13 -0
  109. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItem.d.ts +4 -0
  110. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItem.js +4 -0
  111. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.d.ts +16 -0
  112. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.js +47 -0
  113. package/src/serialization/types/WebhookEventMessageReceivedDataMessage.d.ts +4 -0
  114. package/src/serialization/types/WebhookEventMessageReceivedDataMessage.js +4 -0
  115. package/src/serialization/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.d.ts +16 -0
  116. package/src/serialization/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.js +47 -0
  117. package/src/serialization/types/WebhookEventMessageSelfSentDataMessage.d.ts +4 -0
  118. package/src/serialization/types/WebhookEventMessageSelfSentDataMessage.js +4 -0
  119. package/src/serialization/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.d.ts +16 -0
  120. package/src/serialization/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.js +47 -0
  121. package/src/serialization/types/index.d.ts +3 -0
  122. package/src/serialization/types/index.js +3 -0
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageFindAllResponseDataItemAttachmentsItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageFindAllResponseDataItemAttachmentsItem = core.serialization.object({
42
+ url: core.serialization.string(),
43
+ filename: core.serialization.string().nullable(),
44
+ mimeType: core.serialization.string(),
45
+ size: core.serialization.number(),
46
+ contentId: core.serialization.string().nullable(),
47
+ });
@@ -8,6 +8,7 @@ import { MessageFindOneResponseDirection } from "./MessageFindOneResponseDirecti
8
8
  import { MessageFindOneResponseStatus } from "./MessageFindOneResponseStatus";
9
9
  import { MessageFindOneResponseChannel } from "./MessageFindOneResponseChannel";
10
10
  import { MessageFindOneResponseAccountChannel } from "./MessageFindOneResponseAccountChannel";
11
+ import { MessageFindOneResponseAttachmentsItem } from "./MessageFindOneResponseAttachmentsItem";
11
12
  export declare const MessageFindOneResponse: core.serialization.ObjectSchema<serializers.MessageFindOneResponse.Raw, UnlimitedMessagingApi.MessageFindOneResponse>;
12
13
  export declare namespace MessageFindOneResponse {
13
14
  interface Raw {
@@ -28,6 +29,10 @@ export declare namespace MessageFindOneResponse {
28
29
  channel: MessageFindOneResponseChannel.Raw;
29
30
  accountChannel: MessageFindOneResponseAccountChannel.Raw;
30
31
  watermarked: boolean;
32
+ subject: string | null;
33
+ contentHtml: string | null;
34
+ dispatchId: string | null;
35
+ attachments: MessageFindOneResponseAttachmentsItem.Raw[];
31
36
  mediaUrl: string | null;
32
37
  mediaType: string | null;
33
38
  mimeType: string | null;
@@ -42,6 +42,7 @@ const MessageFindOneResponseDirection_1 = require("./MessageFindOneResponseDirec
42
42
  const MessageFindOneResponseStatus_1 = require("./MessageFindOneResponseStatus");
43
43
  const MessageFindOneResponseChannel_1 = require("./MessageFindOneResponseChannel");
44
44
  const MessageFindOneResponseAccountChannel_1 = require("./MessageFindOneResponseAccountChannel");
45
+ const MessageFindOneResponseAttachmentsItem_1 = require("./MessageFindOneResponseAttachmentsItem");
45
46
  exports.MessageFindOneResponse = core.serialization.object({
46
47
  id: core.serialization.string(),
47
48
  content: core.serialization.string().nullable(),
@@ -60,6 +61,10 @@ exports.MessageFindOneResponse = core.serialization.object({
60
61
  channel: MessageFindOneResponseChannel_1.MessageFindOneResponseChannel,
61
62
  accountChannel: MessageFindOneResponseAccountChannel_1.MessageFindOneResponseAccountChannel,
62
63
  watermarked: core.serialization.boolean(),
64
+ subject: core.serialization.string().nullable(),
65
+ contentHtml: core.serialization.string().nullable(),
66
+ dispatchId: core.serialization.string().nullable(),
67
+ attachments: core.serialization.list(MessageFindOneResponseAttachmentsItem_1.MessageFindOneResponseAttachmentsItem),
63
68
  mediaUrl: core.serialization.string().nullable(),
64
69
  mediaType: core.serialization.string().nullable(),
65
70
  mimeType: core.serialization.string().nullable(),
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as UnlimitedMessagingApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const MessageFindOneResponseAttachmentsItem: core.serialization.ObjectSchema<serializers.MessageFindOneResponseAttachmentsItem.Raw, UnlimitedMessagingApi.MessageFindOneResponseAttachmentsItem>;
8
+ export declare namespace MessageFindOneResponseAttachmentsItem {
9
+ interface Raw {
10
+ url: string;
11
+ filename: string | null;
12
+ mimeType: string;
13
+ size: number;
14
+ contentId: string | null;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageFindOneResponseAttachmentsItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageFindOneResponseAttachmentsItem = core.serialization.object({
42
+ url: core.serialization.string(),
43
+ filename: core.serialization.string().nullable(),
44
+ mimeType: core.serialization.string(),
45
+ size: core.serialization.number(),
46
+ contentId: core.serialization.string().nullable(),
47
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as UnlimitedMessagingApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const MessageSendRequestAttachmentsItem: core.serialization.ObjectSchema<serializers.MessageSendRequestAttachmentsItem.Raw, UnlimitedMessagingApi.MessageSendRequestAttachmentsItem>;
8
+ export declare namespace MessageSendRequestAttachmentsItem {
9
+ interface Raw {
10
+ url: string;
11
+ filename?: string | null;
12
+ mimeType?: string | null;
13
+ contentId?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSendRequestAttachmentsItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageSendRequestAttachmentsItem = core.serialization.object({
42
+ url: core.serialization.string(),
43
+ filename: core.serialization.string().optional(),
44
+ mimeType: core.serialization.string().optional(),
45
+ contentId: core.serialization.string().optional(),
46
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as UnlimitedMessagingApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { MessageSendRequestChannelsItemChannel } from "./MessageSendRequestChannelsItemChannel";
8
+ export declare const MessageSendRequestChannelsItem: core.serialization.ObjectSchema<serializers.MessageSendRequestChannelsItem.Raw, UnlimitedMessagingApi.MessageSendRequestChannelsItem>;
9
+ export declare namespace MessageSendRequestChannelsItem {
10
+ interface Raw {
11
+ channel: MessageSendRequestChannelsItemChannel.Raw;
12
+ accountId?: string | null;
13
+ text?: string | null;
14
+ html?: string | null;
15
+ subject?: string | null;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSendRequestChannelsItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const MessageSendRequestChannelsItemChannel_1 = require("./MessageSendRequestChannelsItemChannel");
42
+ exports.MessageSendRequestChannelsItem = core.serialization.object({
43
+ channel: MessageSendRequestChannelsItemChannel_1.MessageSendRequestChannelsItemChannel,
44
+ accountId: core.serialization.string().optional(),
45
+ text: core.serialization.string().optional(),
46
+ html: core.serialization.string().optional(),
47
+ subject: core.serialization.string().optional(),
48
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as UnlimitedMessagingApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const MessageSendRequestChannelsItemChannel: core.serialization.Schema<serializers.MessageSendRequestChannelsItemChannel.Raw, UnlimitedMessagingApi.MessageSendRequestChannelsItemChannel>;
8
+ export declare namespace MessageSendRequestChannelsItemChannel {
9
+ type Raw = "WHATSAPP" | "EMAIL";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSendRequestChannelsItemChannel = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageSendRequestChannelsItemChannel = core.serialization.enum_(["WHATSAPP", "EMAIL"]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as UnlimitedMessagingApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const MessageSendRequestTo: core.serialization.ObjectSchema<serializers.MessageSendRequestTo.Raw, UnlimitedMessagingApi.MessageSendRequestTo>;
8
+ export declare namespace MessageSendRequestTo {
9
+ interface Raw {
10
+ phone?: string | null;
11
+ email?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSendRequestTo = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageSendRequestTo = core.serialization.object({
42
+ phone: core.serialization.string().optional(),
43
+ email: core.serialization.string().optional(),
44
+ });
@@ -8,6 +8,8 @@ import { MessageSendResponseDirection } from "./MessageSendResponseDirection";
8
8
  import { MessageSendResponseStatus } from "./MessageSendResponseStatus";
9
9
  import { MessageSendResponseChannel } from "./MessageSendResponseChannel";
10
10
  import { MessageSendResponseAccountChannel } from "./MessageSendResponseAccountChannel";
11
+ import { MessageSendResponseAttachmentsItem } from "./MessageSendResponseAttachmentsItem";
12
+ import { MessageSendResponseMessagesItem } from "./MessageSendResponseMessagesItem";
11
13
  export declare const MessageSendResponse: core.serialization.ObjectSchema<serializers.MessageSendResponse.Raw, UnlimitedMessagingApi.MessageSendResponse>;
12
14
  export declare namespace MessageSendResponse {
13
15
  interface Raw {
@@ -28,6 +30,10 @@ export declare namespace MessageSendResponse {
28
30
  channel: MessageSendResponseChannel.Raw;
29
31
  accountChannel: MessageSendResponseAccountChannel.Raw;
30
32
  watermarked: boolean;
33
+ subject: string | null;
34
+ contentHtml: string | null;
35
+ dispatchId: string;
36
+ attachments: MessageSendResponseAttachmentsItem.Raw[];
31
37
  mediaUrl: string | null;
32
38
  mediaType: string | null;
33
39
  mimeType: string | null;
@@ -38,5 +44,6 @@ export declare namespace MessageSendResponse {
38
44
  deletedAt: string | null;
39
45
  createdAt: string;
40
46
  updatedAt: string;
47
+ messages: MessageSendResponseMessagesItem.Raw[];
41
48
  }
42
49
  }
@@ -42,6 +42,8 @@ const MessageSendResponseDirection_1 = require("./MessageSendResponseDirection")
42
42
  const MessageSendResponseStatus_1 = require("./MessageSendResponseStatus");
43
43
  const MessageSendResponseChannel_1 = require("./MessageSendResponseChannel");
44
44
  const MessageSendResponseAccountChannel_1 = require("./MessageSendResponseAccountChannel");
45
+ const MessageSendResponseAttachmentsItem_1 = require("./MessageSendResponseAttachmentsItem");
46
+ const MessageSendResponseMessagesItem_1 = require("./MessageSendResponseMessagesItem");
45
47
  exports.MessageSendResponse = core.serialization.object({
46
48
  id: core.serialization.string(),
47
49
  content: core.serialization.string().nullable(),
@@ -60,6 +62,10 @@ exports.MessageSendResponse = core.serialization.object({
60
62
  channel: MessageSendResponseChannel_1.MessageSendResponseChannel,
61
63
  accountChannel: MessageSendResponseAccountChannel_1.MessageSendResponseAccountChannel,
62
64
  watermarked: core.serialization.boolean(),
65
+ subject: core.serialization.string().nullable(),
66
+ contentHtml: core.serialization.string().nullable(),
67
+ dispatchId: core.serialization.string(),
68
+ attachments: core.serialization.list(MessageSendResponseAttachmentsItem_1.MessageSendResponseAttachmentsItem),
63
69
  mediaUrl: core.serialization.string().nullable(),
64
70
  mediaType: core.serialization.string().nullable(),
65
71
  mimeType: core.serialization.string().nullable(),
@@ -70,4 +76,5 @@ exports.MessageSendResponse = core.serialization.object({
70
76
  deletedAt: core.serialization.date().nullable(),
71
77
  createdAt: core.serialization.date(),
72
78
  updatedAt: core.serialization.date(),
79
+ messages: core.serialization.list(MessageSendResponseMessagesItem_1.MessageSendResponseMessagesItem),
73
80
  });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as UnlimitedMessagingApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const MessageSendResponseAttachmentsItem: core.serialization.ObjectSchema<serializers.MessageSendResponseAttachmentsItem.Raw, UnlimitedMessagingApi.MessageSendResponseAttachmentsItem>;
8
+ export declare namespace MessageSendResponseAttachmentsItem {
9
+ interface Raw {
10
+ url: string;
11
+ filename: string | null;
12
+ mimeType: string;
13
+ size: number;
14
+ contentId: string | null;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSendResponseAttachmentsItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageSendResponseAttachmentsItem = core.serialization.object({
42
+ url: core.serialization.string(),
43
+ filename: core.serialization.string().nullable(),
44
+ mimeType: core.serialization.string(),
45
+ size: core.serialization.number(),
46
+ contentId: core.serialization.string().nullable(),
47
+ });
@@ -0,0 +1,47 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as UnlimitedMessagingApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { MessageSendResponseMessagesItemDirection } from "./MessageSendResponseMessagesItemDirection";
8
+ import { MessageSendResponseMessagesItemStatus } from "./MessageSendResponseMessagesItemStatus";
9
+ import { MessageSendResponseMessagesItemChannel } from "./MessageSendResponseMessagesItemChannel";
10
+ import { MessageSendResponseMessagesItemAccountChannel } from "./MessageSendResponseMessagesItemAccountChannel";
11
+ import { MessageSendResponseMessagesItemAttachmentsItem } from "./MessageSendResponseMessagesItemAttachmentsItem";
12
+ export declare const MessageSendResponseMessagesItem: core.serialization.ObjectSchema<serializers.MessageSendResponseMessagesItem.Raw, UnlimitedMessagingApi.MessageSendResponseMessagesItem>;
13
+ export declare namespace MessageSendResponseMessagesItem {
14
+ interface Raw {
15
+ id: string;
16
+ content: string | null;
17
+ direction: MessageSendResponseMessagesItemDirection.Raw;
18
+ fromMe: boolean;
19
+ externalId: string | null;
20
+ error: string | null;
21
+ interlocutor: string;
22
+ conversationId: string | null;
23
+ isGroup: boolean;
24
+ replyToExternalId: string | null;
25
+ replyToParticipant: string | null;
26
+ retryCount: number;
27
+ messagingAccountId: string;
28
+ status: MessageSendResponseMessagesItemStatus.Raw;
29
+ channel: MessageSendResponseMessagesItemChannel.Raw;
30
+ accountChannel: MessageSendResponseMessagesItemAccountChannel.Raw;
31
+ watermarked: boolean;
32
+ subject: string | null;
33
+ contentHtml: string | null;
34
+ dispatchId: string | null;
35
+ attachments: MessageSendResponseMessagesItemAttachmentsItem.Raw[];
36
+ mediaUrl: string | null;
37
+ mediaType: string | null;
38
+ mimeType: string | null;
39
+ mediaFilename: string | null;
40
+ transcript: string | null;
41
+ productData: Record<string, unknown> | null;
42
+ sentAt: string | null;
43
+ deletedAt: string | null;
44
+ createdAt: string;
45
+ updatedAt: string;
46
+ }
47
+ }
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSendResponseMessagesItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const MessageSendResponseMessagesItemDirection_1 = require("./MessageSendResponseMessagesItemDirection");
42
+ const MessageSendResponseMessagesItemStatus_1 = require("./MessageSendResponseMessagesItemStatus");
43
+ const MessageSendResponseMessagesItemChannel_1 = require("./MessageSendResponseMessagesItemChannel");
44
+ const MessageSendResponseMessagesItemAccountChannel_1 = require("./MessageSendResponseMessagesItemAccountChannel");
45
+ const MessageSendResponseMessagesItemAttachmentsItem_1 = require("./MessageSendResponseMessagesItemAttachmentsItem");
46
+ exports.MessageSendResponseMessagesItem = core.serialization.object({
47
+ id: core.serialization.string(),
48
+ content: core.serialization.string().nullable(),
49
+ direction: MessageSendResponseMessagesItemDirection_1.MessageSendResponseMessagesItemDirection,
50
+ fromMe: core.serialization.boolean(),
51
+ externalId: core.serialization.string().nullable(),
52
+ error: core.serialization.string().nullable(),
53
+ interlocutor: core.serialization.string(),
54
+ conversationId: core.serialization.string().nullable(),
55
+ isGroup: core.serialization.boolean(),
56
+ replyToExternalId: core.serialization.string().nullable(),
57
+ replyToParticipant: core.serialization.string().nullable(),
58
+ retryCount: core.serialization.number(),
59
+ messagingAccountId: core.serialization.string(),
60
+ status: MessageSendResponseMessagesItemStatus_1.MessageSendResponseMessagesItemStatus,
61
+ channel: MessageSendResponseMessagesItemChannel_1.MessageSendResponseMessagesItemChannel,
62
+ accountChannel: MessageSendResponseMessagesItemAccountChannel_1.MessageSendResponseMessagesItemAccountChannel,
63
+ watermarked: core.serialization.boolean(),
64
+ subject: core.serialization.string().nullable(),
65
+ contentHtml: core.serialization.string().nullable(),
66
+ dispatchId: core.serialization.string().nullable(),
67
+ attachments: core.serialization.list(MessageSendResponseMessagesItemAttachmentsItem_1.MessageSendResponseMessagesItemAttachmentsItem),
68
+ mediaUrl: core.serialization.string().nullable(),
69
+ mediaType: core.serialization.string().nullable(),
70
+ mimeType: core.serialization.string().nullable(),
71
+ mediaFilename: core.serialization.string().nullable(),
72
+ transcript: core.serialization.string().nullable(),
73
+ productData: core.serialization.record(core.serialization.string(), core.serialization.unknown()).nullable(),
74
+ sentAt: core.serialization.date().nullable(),
75
+ deletedAt: core.serialization.date().nullable(),
76
+ createdAt: core.serialization.date(),
77
+ updatedAt: core.serialization.date(),
78
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as UnlimitedMessagingApi from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const MessageSendResponseMessagesItemAccountChannel: core.serialization.Schema<serializers.MessageSendResponseMessagesItemAccountChannel.Raw, UnlimitedMessagingApi.MessageSendResponseMessagesItemAccountChannel>;
8
+ export declare namespace MessageSendResponseMessagesItemAccountChannel {
9
+ type Raw = "WHATSAPP_BAILYES" | "EMAIL" | "SMS" | "WHATSAPP_WHATSMEOW";
10
+ }