@unlimited-messaging/sdk 0.1.19 → 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 (131) 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/resources/webhooks/client/Client.d.ts +8 -1
  49. package/src/api/resources/webhooks/client/Client.js +8 -1
  50. package/src/api/types/WebhookEventMessageEditedDataEdit.d.ts +2 -1
  51. package/src/api/types/WebhookEventMessageEditedDataEditError.d.ts +8 -0
  52. package/src/api/types/WebhookEventMessageEditedDataEditError.js +10 -0
  53. package/src/api/types/WebhookEventMessageHistoryDataMessagesItem.d.ts +3 -0
  54. package/src/api/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.d.ts +10 -0
  55. package/src/api/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.js +5 -0
  56. package/src/api/types/WebhookEventMessageReceivedDataMessage.d.ts +3 -0
  57. package/src/api/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.d.ts +10 -0
  58. package/src/api/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.js +5 -0
  59. package/src/api/types/WebhookEventMessageSelfSentDataMessage.d.ts +3 -0
  60. package/src/api/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.d.ts +10 -0
  61. package/src/api/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.js +5 -0
  62. package/src/api/types/index.d.ts +4 -0
  63. package/src/api/types/index.js +4 -0
  64. package/src/serialization/resources/accounts/types/AccountGetAccountResponse.d.ts +2 -0
  65. package/src/serialization/resources/accounts/types/AccountGetAccountResponse.js +2 -0
  66. package/src/serialization/resources/accounts/types/AccountGetAccountResponseOwner.d.ts +10 -0
  67. package/src/serialization/resources/accounts/types/AccountGetAccountResponseOwner.js +41 -0
  68. package/src/serialization/resources/accounts/types/AccountListAccountsResponseItem.d.ts +2 -0
  69. package/src/serialization/resources/accounts/types/AccountListAccountsResponseItem.js +2 -0
  70. package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemOwner.d.ts +10 -0
  71. package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemOwner.js +41 -0
  72. package/src/serialization/resources/accounts/types/AccountUpdateAccountResponse.d.ts +2 -0
  73. package/src/serialization/resources/accounts/types/AccountUpdateAccountResponse.js +2 -0
  74. package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseOwner.d.ts +10 -0
  75. package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseOwner.js +41 -0
  76. package/src/serialization/resources/accounts/types/index.d.ts +3 -0
  77. package/src/serialization/resources/accounts/types/index.js +3 -0
  78. package/src/serialization/resources/messages/client/requests/MessageSendRequest.d.ts +8 -0
  79. package/src/serialization/resources/messages/client/requests/MessageSendRequest.js +8 -0
  80. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.d.ts +5 -0
  81. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.js +5 -0
  82. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.d.ts +16 -0
  83. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.js +47 -0
  84. package/src/serialization/resources/messages/types/MessageFindOneResponse.d.ts +5 -0
  85. package/src/serialization/resources/messages/types/MessageFindOneResponse.js +5 -0
  86. package/src/serialization/resources/messages/types/MessageFindOneResponseAttachmentsItem.d.ts +16 -0
  87. package/src/serialization/resources/messages/types/MessageFindOneResponseAttachmentsItem.js +47 -0
  88. package/src/serialization/resources/messages/types/MessageSendRequestAttachmentsItem.d.ts +15 -0
  89. package/src/serialization/resources/messages/types/MessageSendRequestAttachmentsItem.js +46 -0
  90. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItem.d.ts +17 -0
  91. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItem.js +48 -0
  92. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItemChannel.d.ts +10 -0
  93. package/src/serialization/resources/messages/types/MessageSendRequestChannelsItemChannel.js +41 -0
  94. package/src/serialization/resources/messages/types/MessageSendRequestTo.d.ts +13 -0
  95. package/src/serialization/resources/messages/types/MessageSendRequestTo.js +44 -0
  96. package/src/serialization/resources/messages/types/MessageSendResponse.d.ts +7 -0
  97. package/src/serialization/resources/messages/types/MessageSendResponse.js +7 -0
  98. package/src/serialization/resources/messages/types/MessageSendResponseAttachmentsItem.d.ts +16 -0
  99. package/src/serialization/resources/messages/types/MessageSendResponseAttachmentsItem.js +47 -0
  100. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.d.ts +47 -0
  101. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.js +78 -0
  102. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.d.ts +10 -0
  103. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.js +41 -0
  104. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.d.ts +16 -0
  105. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.js +47 -0
  106. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemChannel.d.ts +10 -0
  107. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemChannel.js +41 -0
  108. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemDirection.d.ts +10 -0
  109. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemDirection.js +41 -0
  110. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemStatus.d.ts +10 -0
  111. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemStatus.js +41 -0
  112. package/src/serialization/resources/messages/types/index.d.ts +13 -0
  113. package/src/serialization/resources/messages/types/index.js +13 -0
  114. package/src/serialization/types/WebhookEventMessageEditedDataEdit.d.ts +3 -1
  115. package/src/serialization/types/WebhookEventMessageEditedDataEdit.js +3 -1
  116. package/src/serialization/types/WebhookEventMessageEditedDataEditError.d.ts +10 -0
  117. package/src/serialization/types/WebhookEventMessageEditedDataEditError.js +41 -0
  118. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItem.d.ts +4 -0
  119. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItem.js +4 -0
  120. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.d.ts +16 -0
  121. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.js +47 -0
  122. package/src/serialization/types/WebhookEventMessageReceivedDataMessage.d.ts +4 -0
  123. package/src/serialization/types/WebhookEventMessageReceivedDataMessage.js +4 -0
  124. package/src/serialization/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.d.ts +16 -0
  125. package/src/serialization/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.js +47 -0
  126. package/src/serialization/types/WebhookEventMessageSelfSentDataMessage.d.ts +4 -0
  127. package/src/serialization/types/WebhookEventMessageSelfSentDataMessage.js +4 -0
  128. package/src/serialization/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.d.ts +16 -0
  129. package/src/serialization/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.js +47 -0
  130. package/src/serialization/types/index.d.ts +4 -0
  131. package/src/serialization/types/index.js +4 -0
@@ -4,6 +4,9 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as UnlimitedMessagingApi from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { MessageSendRequestAttachmentsItem } from "../../types/MessageSendRequestAttachmentsItem";
8
+ import { MessageSendRequestTo } from "../../types/MessageSendRequestTo";
9
+ import { MessageSendRequestChannelsItem } from "../../types/MessageSendRequestChannelsItem";
7
10
  import { MessageSendRequestMediaType } from "../../types/MessageSendRequestMediaType";
8
11
  import { MessageSendRequestPriority } from "../../types/MessageSendRequestPriority";
9
12
  import { MessageSendRequestProductData } from "../../types/MessageSendRequestProductData";
@@ -12,6 +15,11 @@ export declare namespace MessageSendRequest {
12
15
  interface Raw {
13
16
  recipient?: string | null;
14
17
  text?: string | null;
18
+ html?: string | null;
19
+ subject?: string | null;
20
+ attachments?: MessageSendRequestAttachmentsItem.Raw[] | null;
21
+ to?: MessageSendRequestTo.Raw | null;
22
+ channels?: MessageSendRequestChannelsItem.Raw[] | null;
15
23
  mediaUrl?: string | null;
16
24
  mediaType?: MessageSendRequestMediaType.Raw | null;
17
25
  mimeType?: string | null;
@@ -38,12 +38,20 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.MessageSendRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
+ const MessageSendRequestAttachmentsItem_1 = require("../../types/MessageSendRequestAttachmentsItem");
42
+ const MessageSendRequestTo_1 = require("../../types/MessageSendRequestTo");
43
+ const MessageSendRequestChannelsItem_1 = require("../../types/MessageSendRequestChannelsItem");
41
44
  const MessageSendRequestMediaType_1 = require("../../types/MessageSendRequestMediaType");
42
45
  const MessageSendRequestPriority_1 = require("../../types/MessageSendRequestPriority");
43
46
  const MessageSendRequestProductData_1 = require("../../types/MessageSendRequestProductData");
44
47
  exports.MessageSendRequest = core.serialization.object({
45
48
  recipient: core.serialization.string().optional(),
46
49
  text: core.serialization.string().optional(),
50
+ html: core.serialization.string().optional(),
51
+ subject: core.serialization.string().optional(),
52
+ attachments: core.serialization.list(MessageSendRequestAttachmentsItem_1.MessageSendRequestAttachmentsItem).optional(),
53
+ to: MessageSendRequestTo_1.MessageSendRequestTo.optional(),
54
+ channels: core.serialization.list(MessageSendRequestChannelsItem_1.MessageSendRequestChannelsItem).optional(),
47
55
  mediaUrl: core.serialization.string().optional(),
48
56
  mediaType: MessageSendRequestMediaType_1.MessageSendRequestMediaType.optional(),
49
57
  mimeType: core.serialization.string().optional(),
@@ -8,6 +8,7 @@ import { MessageFindAllResponseDataItemDirection } from "./MessageFindAllRespons
8
8
  import { MessageFindAllResponseDataItemStatus } from "./MessageFindAllResponseDataItemStatus";
9
9
  import { MessageFindAllResponseDataItemChannel } from "./MessageFindAllResponseDataItemChannel";
10
10
  import { MessageFindAllResponseDataItemAccountChannel } from "./MessageFindAllResponseDataItemAccountChannel";
11
+ import { MessageFindAllResponseDataItemAttachmentsItem } from "./MessageFindAllResponseDataItemAttachmentsItem";
11
12
  export declare const MessageFindAllResponseDataItem: core.serialization.ObjectSchema<serializers.MessageFindAllResponseDataItem.Raw, UnlimitedMessagingApi.MessageFindAllResponseDataItem>;
12
13
  export declare namespace MessageFindAllResponseDataItem {
13
14
  interface Raw {
@@ -28,6 +29,10 @@ export declare namespace MessageFindAllResponseDataItem {
28
29
  channel: MessageFindAllResponseDataItemChannel.Raw;
29
30
  accountChannel: MessageFindAllResponseDataItemAccountChannel.Raw;
30
31
  watermarked: boolean;
32
+ subject: string | null;
33
+ contentHtml: string | null;
34
+ dispatchId: string | null;
35
+ attachments: MessageFindAllResponseDataItemAttachmentsItem.Raw[];
31
36
  mediaUrl: string | null;
32
37
  mediaType: string | null;
33
38
  mimeType: string | null;
@@ -42,6 +42,7 @@ const MessageFindAllResponseDataItemDirection_1 = require("./MessageFindAllRespo
42
42
  const MessageFindAllResponseDataItemStatus_1 = require("./MessageFindAllResponseDataItemStatus");
43
43
  const MessageFindAllResponseDataItemChannel_1 = require("./MessageFindAllResponseDataItemChannel");
44
44
  const MessageFindAllResponseDataItemAccountChannel_1 = require("./MessageFindAllResponseDataItemAccountChannel");
45
+ const MessageFindAllResponseDataItemAttachmentsItem_1 = require("./MessageFindAllResponseDataItemAttachmentsItem");
45
46
  exports.MessageFindAllResponseDataItem = core.serialization.object({
46
47
  id: core.serialization.string(),
47
48
  content: core.serialization.string().nullable(),
@@ -60,6 +61,10 @@ exports.MessageFindAllResponseDataItem = core.serialization.object({
60
61
  channel: MessageFindAllResponseDataItemChannel_1.MessageFindAllResponseDataItemChannel,
61
62
  accountChannel: MessageFindAllResponseDataItemAccountChannel_1.MessageFindAllResponseDataItemAccountChannel,
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(MessageFindAllResponseDataItemAttachmentsItem_1.MessageFindAllResponseDataItemAttachmentsItem),
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 MessageFindAllResponseDataItemAttachmentsItem: core.serialization.ObjectSchema<serializers.MessageFindAllResponseDataItemAttachmentsItem.Raw, UnlimitedMessagingApi.MessageFindAllResponseDataItemAttachmentsItem>;
8
+ export declare namespace MessageFindAllResponseDataItemAttachmentsItem {
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.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
+ });