@unlimited-messaging/sdk 0.1.28 → 0.1.30

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 (63) hide show
  1. package/package.json +1 -1
  2. package/src/api/resources/accounts/client/requests/AccountEmailAutoconfigRequest.d.ts +3 -0
  3. package/src/api/resources/accounts/client/requests/AccountLinkAccountRequest.d.ts +12 -0
  4. package/src/api/resources/messages/client/Client.d.ts +1 -1
  5. package/src/api/resources/messages/client/Client.js +1 -1
  6. package/src/api/resources/messages/types/MessageFindAllResponseDataItem.d.ts +9 -1
  7. package/src/api/resources/messages/types/MessageFindAllResponseDataItemReactionsItem.d.ts +16 -0
  8. package/src/api/resources/messages/types/MessageFindAllResponseDataItemReactionsItem.js +5 -0
  9. package/src/api/resources/messages/types/MessageFindOneResponse.d.ts +9 -1
  10. package/src/api/resources/messages/types/MessageFindOneResponseReactionsItem.d.ts +16 -0
  11. package/src/api/resources/messages/types/MessageFindOneResponseReactionsItem.js +5 -0
  12. package/src/api/resources/messages/types/MessageSendResponse.d.ts +9 -1
  13. package/src/api/resources/messages/types/MessageSendResponseMessagesItem.d.ts +9 -1
  14. package/src/api/resources/messages/types/MessageSendResponseMessagesItemReactionsItem.d.ts +16 -0
  15. package/src/api/resources/messages/types/MessageSendResponseMessagesItemReactionsItem.js +5 -0
  16. package/src/api/resources/messages/types/MessageSendResponseReactionsItem.d.ts +16 -0
  17. package/src/api/resources/messages/types/MessageSendResponseReactionsItem.js +5 -0
  18. package/src/api/resources/messages/types/index.d.ts +4 -0
  19. package/src/api/resources/messages/types/index.js +4 -0
  20. package/src/api/resources/webhooks/client/Client.d.ts +12 -3
  21. package/src/api/resources/webhooks/client/Client.js +12 -3
  22. package/src/api/resources/webhooks/types/WebhookEndpointCreateResponse.d.ts +2 -0
  23. package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponse.d.ts +2 -0
  24. package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItem.d.ts +2 -0
  25. package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponse.d.ts +2 -0
  26. package/src/api/types/WebhookEventMessageHistoryDataMessagesItemReplyTo.d.ts +1 -0
  27. package/src/api/types/WebhookEventMessageReceivedDataMessageReplyTo.d.ts +1 -0
  28. package/src/api/types/WebhookEventMessageSelfSentDataMessageReplyTo.d.ts +1 -0
  29. package/src/api/types/WebhookEventMessageSentDataMessageReplyTo.d.ts +1 -0
  30. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.d.ts +5 -0
  31. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.js +5 -0
  32. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemReactionsItem.d.ts +17 -0
  33. package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemReactionsItem.js +48 -0
  34. package/src/serialization/resources/messages/types/MessageFindOneResponse.d.ts +5 -0
  35. package/src/serialization/resources/messages/types/MessageFindOneResponse.js +5 -0
  36. package/src/serialization/resources/messages/types/MessageFindOneResponseReactionsItem.d.ts +17 -0
  37. package/src/serialization/resources/messages/types/MessageFindOneResponseReactionsItem.js +48 -0
  38. package/src/serialization/resources/messages/types/MessageSendResponse.d.ts +5 -0
  39. package/src/serialization/resources/messages/types/MessageSendResponse.js +5 -0
  40. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.d.ts +5 -0
  41. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.js +5 -0
  42. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemReactionsItem.d.ts +17 -0
  43. package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemReactionsItem.js +48 -0
  44. package/src/serialization/resources/messages/types/MessageSendResponseReactionsItem.d.ts +17 -0
  45. package/src/serialization/resources/messages/types/MessageSendResponseReactionsItem.js +48 -0
  46. package/src/serialization/resources/messages/types/index.d.ts +4 -0
  47. package/src/serialization/resources/messages/types/index.js +4 -0
  48. package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponse.d.ts +2 -0
  49. package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponse.js +2 -0
  50. package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponse.d.ts +2 -0
  51. package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponse.js +2 -0
  52. package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItem.d.ts +2 -0
  53. package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItem.js +2 -0
  54. package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponse.d.ts +2 -0
  55. package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponse.js +2 -0
  56. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemReplyTo.d.ts +1 -0
  57. package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemReplyTo.js +1 -0
  58. package/src/serialization/types/WebhookEventMessageReceivedDataMessageReplyTo.d.ts +1 -0
  59. package/src/serialization/types/WebhookEventMessageReceivedDataMessageReplyTo.js +1 -0
  60. package/src/serialization/types/WebhookEventMessageSelfSentDataMessageReplyTo.d.ts +1 -0
  61. package/src/serialization/types/WebhookEventMessageSelfSentDataMessageReplyTo.js +1 -0
  62. package/src/serialization/types/WebhookEventMessageSentDataMessageReplyTo.d.ts +1 -0
  63. package/src/serialization/types/WebhookEventMessageSentDataMessageReplyTo.js +1 -0
@@ -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.MessageFindAllResponseDataItemReactionsItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageFindAllResponseDataItemReactionsItem = core.serialization.object({
42
+ emoji: core.serialization.string(),
43
+ sender: core.serialization.string().nullable(),
44
+ senderId: core.serialization.string(),
45
+ senderName: core.serialization.string().nullable(),
46
+ fromMe: core.serialization.boolean(),
47
+ sentAt: core.serialization.date(),
48
+ });
@@ -9,6 +9,7 @@ import { MessageFindOneResponseStatus } from "./MessageFindOneResponseStatus";
9
9
  import { MessageFindOneResponseChannel } from "./MessageFindOneResponseChannel";
10
10
  import { MessageFindOneResponseAccountChannel } from "./MessageFindOneResponseAccountChannel";
11
11
  import { MessageFindOneResponseAttachmentsItem } from "./MessageFindOneResponseAttachmentsItem";
12
+ import { MessageFindOneResponseReactionsItem } from "./MessageFindOneResponseReactionsItem";
12
13
  export declare const MessageFindOneResponse: core.serialization.ObjectSchema<serializers.MessageFindOneResponse.Raw, UnlimitedMessagingApi.MessageFindOneResponse>;
13
14
  export declare namespace MessageFindOneResponse {
14
15
  interface Raw {
@@ -16,6 +17,7 @@ export declare namespace MessageFindOneResponse {
16
17
  content: string | null;
17
18
  direction: MessageFindOneResponseDirection.Raw;
18
19
  fromMe: boolean;
20
+ sentViaUm: boolean;
19
21
  externalId: string | null;
20
22
  error: string | null;
21
23
  interlocutor: string;
@@ -23,6 +25,8 @@ export declare namespace MessageFindOneResponse {
23
25
  isGroup: boolean;
24
26
  replyToExternalId: string | null;
25
27
  replyToParticipant: string | null;
28
+ replyToMessageId: string | null;
29
+ replyToContent: string | null;
26
30
  retryCount: number;
27
31
  messagingAccountId: string;
28
32
  status: MessageFindOneResponseStatus.Raw;
@@ -33,6 +37,7 @@ export declare namespace MessageFindOneResponse {
33
37
  contentHtml: string | null;
34
38
  dispatchId: string | null;
35
39
  attachments: MessageFindOneResponseAttachmentsItem.Raw[];
40
+ reactions: MessageFindOneResponseReactionsItem.Raw[];
36
41
  mediaUrl: string | null;
37
42
  mediaType: string | null;
38
43
  mimeType: string | null;
@@ -43,11 +43,13 @@ const MessageFindOneResponseStatus_1 = require("./MessageFindOneResponseStatus")
43
43
  const MessageFindOneResponseChannel_1 = require("./MessageFindOneResponseChannel");
44
44
  const MessageFindOneResponseAccountChannel_1 = require("./MessageFindOneResponseAccountChannel");
45
45
  const MessageFindOneResponseAttachmentsItem_1 = require("./MessageFindOneResponseAttachmentsItem");
46
+ const MessageFindOneResponseReactionsItem_1 = require("./MessageFindOneResponseReactionsItem");
46
47
  exports.MessageFindOneResponse = core.serialization.object({
47
48
  id: core.serialization.string(),
48
49
  content: core.serialization.string().nullable(),
49
50
  direction: MessageFindOneResponseDirection_1.MessageFindOneResponseDirection,
50
51
  fromMe: core.serialization.boolean(),
52
+ sentViaUm: core.serialization.boolean(),
51
53
  externalId: core.serialization.string().nullable(),
52
54
  error: core.serialization.string().nullable(),
53
55
  interlocutor: core.serialization.string(),
@@ -55,6 +57,8 @@ exports.MessageFindOneResponse = core.serialization.object({
55
57
  isGroup: core.serialization.boolean(),
56
58
  replyToExternalId: core.serialization.string().nullable(),
57
59
  replyToParticipant: core.serialization.string().nullable(),
60
+ replyToMessageId: core.serialization.string().nullable(),
61
+ replyToContent: core.serialization.string().nullable(),
58
62
  retryCount: core.serialization.number(),
59
63
  messagingAccountId: core.serialization.string(),
60
64
  status: MessageFindOneResponseStatus_1.MessageFindOneResponseStatus,
@@ -65,6 +69,7 @@ exports.MessageFindOneResponse = core.serialization.object({
65
69
  contentHtml: core.serialization.string().nullable(),
66
70
  dispatchId: core.serialization.string().nullable(),
67
71
  attachments: core.serialization.list(MessageFindOneResponseAttachmentsItem_1.MessageFindOneResponseAttachmentsItem),
72
+ reactions: core.serialization.list(MessageFindOneResponseReactionsItem_1.MessageFindOneResponseReactionsItem),
68
73
  mediaUrl: core.serialization.string().nullable(),
69
74
  mediaType: core.serialization.string().nullable(),
70
75
  mimeType: core.serialization.string().nullable(),
@@ -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
+ export declare const MessageFindOneResponseReactionsItem: core.serialization.ObjectSchema<serializers.MessageFindOneResponseReactionsItem.Raw, UnlimitedMessagingApi.MessageFindOneResponseReactionsItem>;
8
+ export declare namespace MessageFindOneResponseReactionsItem {
9
+ interface Raw {
10
+ emoji: string;
11
+ sender: string | null;
12
+ senderId: string;
13
+ senderName: string | null;
14
+ fromMe: boolean;
15
+ sentAt: string;
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.MessageFindOneResponseReactionsItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageFindOneResponseReactionsItem = core.serialization.object({
42
+ emoji: core.serialization.string(),
43
+ sender: core.serialization.string().nullable(),
44
+ senderId: core.serialization.string(),
45
+ senderName: core.serialization.string().nullable(),
46
+ fromMe: core.serialization.boolean(),
47
+ sentAt: core.serialization.date(),
48
+ });
@@ -9,6 +9,7 @@ import { MessageSendResponseStatus } from "./MessageSendResponseStatus";
9
9
  import { MessageSendResponseChannel } from "./MessageSendResponseChannel";
10
10
  import { MessageSendResponseAccountChannel } from "./MessageSendResponseAccountChannel";
11
11
  import { MessageSendResponseAttachmentsItem } from "./MessageSendResponseAttachmentsItem";
12
+ import { MessageSendResponseReactionsItem } from "./MessageSendResponseReactionsItem";
12
13
  import { MessageSendResponseMessagesItem } from "./MessageSendResponseMessagesItem";
13
14
  export declare const MessageSendResponse: core.serialization.ObjectSchema<serializers.MessageSendResponse.Raw, UnlimitedMessagingApi.MessageSendResponse>;
14
15
  export declare namespace MessageSendResponse {
@@ -17,6 +18,7 @@ export declare namespace MessageSendResponse {
17
18
  content: string | null;
18
19
  direction: MessageSendResponseDirection.Raw;
19
20
  fromMe: boolean;
21
+ sentViaUm: boolean;
20
22
  externalId: string | null;
21
23
  error: string | null;
22
24
  interlocutor: string;
@@ -24,6 +26,8 @@ export declare namespace MessageSendResponse {
24
26
  isGroup: boolean;
25
27
  replyToExternalId: string | null;
26
28
  replyToParticipant: string | null;
29
+ replyToMessageId: string | null;
30
+ replyToContent: string | null;
27
31
  retryCount: number;
28
32
  messagingAccountId: string;
29
33
  status: MessageSendResponseStatus.Raw;
@@ -34,6 +38,7 @@ export declare namespace MessageSendResponse {
34
38
  contentHtml: string | null;
35
39
  dispatchId: string;
36
40
  attachments: MessageSendResponseAttachmentsItem.Raw[];
41
+ reactions: MessageSendResponseReactionsItem.Raw[];
37
42
  mediaUrl: string | null;
38
43
  mediaType: string | null;
39
44
  mimeType: string | null;
@@ -43,12 +43,14 @@ const MessageSendResponseStatus_1 = require("./MessageSendResponseStatus");
43
43
  const MessageSendResponseChannel_1 = require("./MessageSendResponseChannel");
44
44
  const MessageSendResponseAccountChannel_1 = require("./MessageSendResponseAccountChannel");
45
45
  const MessageSendResponseAttachmentsItem_1 = require("./MessageSendResponseAttachmentsItem");
46
+ const MessageSendResponseReactionsItem_1 = require("./MessageSendResponseReactionsItem");
46
47
  const MessageSendResponseMessagesItem_1 = require("./MessageSendResponseMessagesItem");
47
48
  exports.MessageSendResponse = core.serialization.object({
48
49
  id: core.serialization.string(),
49
50
  content: core.serialization.string().nullable(),
50
51
  direction: MessageSendResponseDirection_1.MessageSendResponseDirection,
51
52
  fromMe: core.serialization.boolean(),
53
+ sentViaUm: core.serialization.boolean(),
52
54
  externalId: core.serialization.string().nullable(),
53
55
  error: core.serialization.string().nullable(),
54
56
  interlocutor: core.serialization.string(),
@@ -56,6 +58,8 @@ exports.MessageSendResponse = core.serialization.object({
56
58
  isGroup: core.serialization.boolean(),
57
59
  replyToExternalId: core.serialization.string().nullable(),
58
60
  replyToParticipant: core.serialization.string().nullable(),
61
+ replyToMessageId: core.serialization.string().nullable(),
62
+ replyToContent: core.serialization.string().nullable(),
59
63
  retryCount: core.serialization.number(),
60
64
  messagingAccountId: core.serialization.string(),
61
65
  status: MessageSendResponseStatus_1.MessageSendResponseStatus,
@@ -66,6 +70,7 @@ exports.MessageSendResponse = core.serialization.object({
66
70
  contentHtml: core.serialization.string().nullable(),
67
71
  dispatchId: core.serialization.string(),
68
72
  attachments: core.serialization.list(MessageSendResponseAttachmentsItem_1.MessageSendResponseAttachmentsItem),
73
+ reactions: core.serialization.list(MessageSendResponseReactionsItem_1.MessageSendResponseReactionsItem),
69
74
  mediaUrl: core.serialization.string().nullable(),
70
75
  mediaType: core.serialization.string().nullable(),
71
76
  mimeType: core.serialization.string().nullable(),
@@ -9,6 +9,7 @@ import { MessageSendResponseMessagesItemStatus } from "./MessageSendResponseMess
9
9
  import { MessageSendResponseMessagesItemChannel } from "./MessageSendResponseMessagesItemChannel";
10
10
  import { MessageSendResponseMessagesItemAccountChannel } from "./MessageSendResponseMessagesItemAccountChannel";
11
11
  import { MessageSendResponseMessagesItemAttachmentsItem } from "./MessageSendResponseMessagesItemAttachmentsItem";
12
+ import { MessageSendResponseMessagesItemReactionsItem } from "./MessageSendResponseMessagesItemReactionsItem";
12
13
  export declare const MessageSendResponseMessagesItem: core.serialization.ObjectSchema<serializers.MessageSendResponseMessagesItem.Raw, UnlimitedMessagingApi.MessageSendResponseMessagesItem>;
13
14
  export declare namespace MessageSendResponseMessagesItem {
14
15
  interface Raw {
@@ -16,6 +17,7 @@ export declare namespace MessageSendResponseMessagesItem {
16
17
  content: string | null;
17
18
  direction: MessageSendResponseMessagesItemDirection.Raw;
18
19
  fromMe: boolean;
20
+ sentViaUm: boolean;
19
21
  externalId: string | null;
20
22
  error: string | null;
21
23
  interlocutor: string;
@@ -23,6 +25,8 @@ export declare namespace MessageSendResponseMessagesItem {
23
25
  isGroup: boolean;
24
26
  replyToExternalId: string | null;
25
27
  replyToParticipant: string | null;
28
+ replyToMessageId: string | null;
29
+ replyToContent: string | null;
26
30
  retryCount: number;
27
31
  messagingAccountId: string;
28
32
  status: MessageSendResponseMessagesItemStatus.Raw;
@@ -33,6 +37,7 @@ export declare namespace MessageSendResponseMessagesItem {
33
37
  contentHtml: string | null;
34
38
  dispatchId: string | null;
35
39
  attachments: MessageSendResponseMessagesItemAttachmentsItem.Raw[];
40
+ reactions: MessageSendResponseMessagesItemReactionsItem.Raw[];
36
41
  mediaUrl: string | null;
37
42
  mediaType: string | null;
38
43
  mimeType: string | null;
@@ -43,11 +43,13 @@ const MessageSendResponseMessagesItemStatus_1 = require("./MessageSendResponseMe
43
43
  const MessageSendResponseMessagesItemChannel_1 = require("./MessageSendResponseMessagesItemChannel");
44
44
  const MessageSendResponseMessagesItemAccountChannel_1 = require("./MessageSendResponseMessagesItemAccountChannel");
45
45
  const MessageSendResponseMessagesItemAttachmentsItem_1 = require("./MessageSendResponseMessagesItemAttachmentsItem");
46
+ const MessageSendResponseMessagesItemReactionsItem_1 = require("./MessageSendResponseMessagesItemReactionsItem");
46
47
  exports.MessageSendResponseMessagesItem = core.serialization.object({
47
48
  id: core.serialization.string(),
48
49
  content: core.serialization.string().nullable(),
49
50
  direction: MessageSendResponseMessagesItemDirection_1.MessageSendResponseMessagesItemDirection,
50
51
  fromMe: core.serialization.boolean(),
52
+ sentViaUm: core.serialization.boolean(),
51
53
  externalId: core.serialization.string().nullable(),
52
54
  error: core.serialization.string().nullable(),
53
55
  interlocutor: core.serialization.string(),
@@ -55,6 +57,8 @@ exports.MessageSendResponseMessagesItem = core.serialization.object({
55
57
  isGroup: core.serialization.boolean(),
56
58
  replyToExternalId: core.serialization.string().nullable(),
57
59
  replyToParticipant: core.serialization.string().nullable(),
60
+ replyToMessageId: core.serialization.string().nullable(),
61
+ replyToContent: core.serialization.string().nullable(),
58
62
  retryCount: core.serialization.number(),
59
63
  messagingAccountId: core.serialization.string(),
60
64
  status: MessageSendResponseMessagesItemStatus_1.MessageSendResponseMessagesItemStatus,
@@ -65,6 +69,7 @@ exports.MessageSendResponseMessagesItem = core.serialization.object({
65
69
  contentHtml: core.serialization.string().nullable(),
66
70
  dispatchId: core.serialization.string().nullable(),
67
71
  attachments: core.serialization.list(MessageSendResponseMessagesItemAttachmentsItem_1.MessageSendResponseMessagesItemAttachmentsItem),
72
+ reactions: core.serialization.list(MessageSendResponseMessagesItemReactionsItem_1.MessageSendResponseMessagesItemReactionsItem),
68
73
  mediaUrl: core.serialization.string().nullable(),
69
74
  mediaType: core.serialization.string().nullable(),
70
75
  mimeType: core.serialization.string().nullable(),
@@ -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
+ export declare const MessageSendResponseMessagesItemReactionsItem: core.serialization.ObjectSchema<serializers.MessageSendResponseMessagesItemReactionsItem.Raw, UnlimitedMessagingApi.MessageSendResponseMessagesItemReactionsItem>;
8
+ export declare namespace MessageSendResponseMessagesItemReactionsItem {
9
+ interface Raw {
10
+ emoji: string;
11
+ sender: string | null;
12
+ senderId: string;
13
+ senderName: string | null;
14
+ fromMe: boolean;
15
+ sentAt: string;
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.MessageSendResponseMessagesItemReactionsItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageSendResponseMessagesItemReactionsItem = core.serialization.object({
42
+ emoji: core.serialization.string(),
43
+ sender: core.serialization.string().nullable(),
44
+ senderId: core.serialization.string(),
45
+ senderName: core.serialization.string().nullable(),
46
+ fromMe: core.serialization.boolean(),
47
+ sentAt: core.serialization.date(),
48
+ });
@@ -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
+ export declare const MessageSendResponseReactionsItem: core.serialization.ObjectSchema<serializers.MessageSendResponseReactionsItem.Raw, UnlimitedMessagingApi.MessageSendResponseReactionsItem>;
8
+ export declare namespace MessageSendResponseReactionsItem {
9
+ interface Raw {
10
+ emoji: string;
11
+ sender: string | null;
12
+ senderId: string;
13
+ senderName: string | null;
14
+ fromMe: boolean;
15
+ sentAt: string;
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.MessageSendResponseReactionsItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.MessageSendResponseReactionsItem = core.serialization.object({
42
+ emoji: core.serialization.string(),
43
+ sender: core.serialization.string().nullable(),
44
+ senderId: core.serialization.string(),
45
+ senderName: core.serialization.string().nullable(),
46
+ fromMe: core.serialization.boolean(),
47
+ sentAt: core.serialization.date(),
48
+ });
@@ -6,6 +6,7 @@ export * from "./MessageFindAllResponseDataItemStatus";
6
6
  export * from "./MessageFindAllResponseDataItemChannel";
7
7
  export * from "./MessageFindAllResponseDataItemAccountChannel";
8
8
  export * from "./MessageFindAllResponseDataItemAttachmentsItem";
9
+ export * from "./MessageFindAllResponseDataItemReactionsItem";
9
10
  export * from "./MessageFindAllResponseDataItem";
10
11
  export * from "./MessageFindAllResponse";
11
12
  export * from "./MessageSendRequestAttachmentsItem";
@@ -20,11 +21,13 @@ export * from "./MessageSendResponseStatus";
20
21
  export * from "./MessageSendResponseChannel";
21
22
  export * from "./MessageSendResponseAccountChannel";
22
23
  export * from "./MessageSendResponseAttachmentsItem";
24
+ export * from "./MessageSendResponseReactionsItem";
23
25
  export * from "./MessageSendResponseMessagesItemDirection";
24
26
  export * from "./MessageSendResponseMessagesItemStatus";
25
27
  export * from "./MessageSendResponseMessagesItemChannel";
26
28
  export * from "./MessageSendResponseMessagesItemAccountChannel";
27
29
  export * from "./MessageSendResponseMessagesItemAttachmentsItem";
30
+ export * from "./MessageSendResponseMessagesItemReactionsItem";
28
31
  export * from "./MessageSendResponseMessagesItem";
29
32
  export * from "./MessageSendResponse";
30
33
  export * from "./MessageFindOneResponseDirection";
@@ -32,6 +35,7 @@ export * from "./MessageFindOneResponseStatus";
32
35
  export * from "./MessageFindOneResponseChannel";
33
36
  export * from "./MessageFindOneResponseAccountChannel";
34
37
  export * from "./MessageFindOneResponseAttachmentsItem";
38
+ export * from "./MessageFindOneResponseReactionsItem";
35
39
  export * from "./MessageFindOneResponse";
36
40
  export * from "./MessageGetStatusHistoryResponseChannelsItemChannel";
37
41
  export * from "./MessageGetStatusHistoryResponseChannelsItemEventsItemStatus";
@@ -22,6 +22,7 @@ __exportStar(require("./MessageFindAllResponseDataItemStatus"), exports);
22
22
  __exportStar(require("./MessageFindAllResponseDataItemChannel"), exports);
23
23
  __exportStar(require("./MessageFindAllResponseDataItemAccountChannel"), exports);
24
24
  __exportStar(require("./MessageFindAllResponseDataItemAttachmentsItem"), exports);
25
+ __exportStar(require("./MessageFindAllResponseDataItemReactionsItem"), exports);
25
26
  __exportStar(require("./MessageFindAllResponseDataItem"), exports);
26
27
  __exportStar(require("./MessageFindAllResponse"), exports);
27
28
  __exportStar(require("./MessageSendRequestAttachmentsItem"), exports);
@@ -36,11 +37,13 @@ __exportStar(require("./MessageSendResponseStatus"), exports);
36
37
  __exportStar(require("./MessageSendResponseChannel"), exports);
37
38
  __exportStar(require("./MessageSendResponseAccountChannel"), exports);
38
39
  __exportStar(require("./MessageSendResponseAttachmentsItem"), exports);
40
+ __exportStar(require("./MessageSendResponseReactionsItem"), exports);
39
41
  __exportStar(require("./MessageSendResponseMessagesItemDirection"), exports);
40
42
  __exportStar(require("./MessageSendResponseMessagesItemStatus"), exports);
41
43
  __exportStar(require("./MessageSendResponseMessagesItemChannel"), exports);
42
44
  __exportStar(require("./MessageSendResponseMessagesItemAccountChannel"), exports);
43
45
  __exportStar(require("./MessageSendResponseMessagesItemAttachmentsItem"), exports);
46
+ __exportStar(require("./MessageSendResponseMessagesItemReactionsItem"), exports);
44
47
  __exportStar(require("./MessageSendResponseMessagesItem"), exports);
45
48
  __exportStar(require("./MessageSendResponse"), exports);
46
49
  __exportStar(require("./MessageFindOneResponseDirection"), exports);
@@ -48,6 +51,7 @@ __exportStar(require("./MessageFindOneResponseStatus"), exports);
48
51
  __exportStar(require("./MessageFindOneResponseChannel"), exports);
49
52
  __exportStar(require("./MessageFindOneResponseAccountChannel"), exports);
50
53
  __exportStar(require("./MessageFindOneResponseAttachmentsItem"), exports);
54
+ __exportStar(require("./MessageFindOneResponseReactionsItem"), exports);
51
55
  __exportStar(require("./MessageFindOneResponse"), exports);
52
56
  __exportStar(require("./MessageGetStatusHistoryResponseChannelsItemChannel"), exports);
53
57
  __exportStar(require("./MessageGetStatusHistoryResponseChannelsItemEventsItemStatus"), exports);
@@ -13,6 +13,8 @@ export declare namespace WebhookEndpointCreateResponse {
13
13
  description: string | null;
14
14
  secretPrefix: string;
15
15
  enabled: boolean;
16
+ autoDisabledAt: string | null;
17
+ failingSince: string | null;
16
18
  eventTypes: WebhookEndpointCreateResponseEventTypesItem.Raw[];
17
19
  accountIds: string[];
18
20
  createdAt: string;
@@ -45,6 +45,8 @@ exports.WebhookEndpointCreateResponse = core.serialization.object({
45
45
  description: core.serialization.string().nullable(),
46
46
  secretPrefix: core.serialization.string(),
47
47
  enabled: core.serialization.boolean(),
48
+ autoDisabledAt: core.serialization.date().nullable(),
49
+ failingSince: core.serialization.date().nullable(),
48
50
  eventTypes: core.serialization.list(WebhookEndpointCreateResponseEventTypesItem_1.WebhookEndpointCreateResponseEventTypesItem),
49
51
  accountIds: core.serialization.list(core.serialization.string()),
50
52
  createdAt: core.serialization.date(),
@@ -13,6 +13,8 @@ export declare namespace WebhookEndpointFindOneResponse {
13
13
  description: string | null;
14
14
  secretPrefix: string;
15
15
  enabled: boolean;
16
+ autoDisabledAt: string | null;
17
+ failingSince: string | null;
16
18
  eventTypes: WebhookEndpointFindOneResponseEventTypesItem.Raw[];
17
19
  accountIds: string[];
18
20
  createdAt: string;
@@ -45,6 +45,8 @@ exports.WebhookEndpointFindOneResponse = core.serialization.object({
45
45
  description: core.serialization.string().nullable(),
46
46
  secretPrefix: core.serialization.string(),
47
47
  enabled: core.serialization.boolean(),
48
+ autoDisabledAt: core.serialization.date().nullable(),
49
+ failingSince: core.serialization.date().nullable(),
48
50
  eventTypes: core.serialization.list(WebhookEndpointFindOneResponseEventTypesItem_1.WebhookEndpointFindOneResponseEventTypesItem),
49
51
  accountIds: core.serialization.list(core.serialization.string()),
50
52
  createdAt: core.serialization.date(),
@@ -13,6 +13,8 @@ export declare namespace WebhookEndpointListResponseDataItem {
13
13
  description: string | null;
14
14
  secretPrefix: string;
15
15
  enabled: boolean;
16
+ autoDisabledAt: string | null;
17
+ failingSince: string | null;
16
18
  eventTypes: WebhookEndpointListResponseDataItemEventTypesItem.Raw[];
17
19
  accountIds: string[];
18
20
  createdAt: string;
@@ -45,6 +45,8 @@ exports.WebhookEndpointListResponseDataItem = core.serialization.object({
45
45
  description: core.serialization.string().nullable(),
46
46
  secretPrefix: core.serialization.string(),
47
47
  enabled: core.serialization.boolean(),
48
+ autoDisabledAt: core.serialization.date().nullable(),
49
+ failingSince: core.serialization.date().nullable(),
48
50
  eventTypes: core.serialization.list(WebhookEndpointListResponseDataItemEventTypesItem_1.WebhookEndpointListResponseDataItemEventTypesItem),
49
51
  accountIds: core.serialization.list(core.serialization.string()),
50
52
  createdAt: core.serialization.date(),
@@ -13,6 +13,8 @@ export declare namespace WebhookEndpointUpdateResponse {
13
13
  description: string | null;
14
14
  secretPrefix: string;
15
15
  enabled: boolean;
16
+ autoDisabledAt: string | null;
17
+ failingSince: string | null;
16
18
  eventTypes: WebhookEndpointUpdateResponseEventTypesItem.Raw[];
17
19
  accountIds: string[];
18
20
  createdAt: string;
@@ -45,6 +45,8 @@ exports.WebhookEndpointUpdateResponse = core.serialization.object({
45
45
  description: core.serialization.string().nullable(),
46
46
  secretPrefix: core.serialization.string(),
47
47
  enabled: core.serialization.boolean(),
48
+ autoDisabledAt: core.serialization.date().nullable(),
49
+ failingSince: core.serialization.date().nullable(),
48
50
  eventTypes: core.serialization.list(WebhookEndpointUpdateResponseEventTypesItem_1.WebhookEndpointUpdateResponseEventTypesItem),
49
51
  accountIds: core.serialization.list(core.serialization.string()),
50
52
  createdAt: core.serialization.date(),
@@ -9,5 +9,6 @@ export declare namespace WebhookEventMessageHistoryDataMessagesItemReplyTo {
9
9
  interface Raw {
10
10
  externalId: string;
11
11
  participant: string | null;
12
+ content: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.WebhookEventMessageHistoryDataMessagesItemReplyTo = core.serialization.object({
42
42
  externalId: core.serialization.string(),
43
43
  participant: core.serialization.string().nullable(),
44
+ content: core.serialization.string().nullable(),
44
45
  });
@@ -9,5 +9,6 @@ export declare namespace WebhookEventMessageReceivedDataMessageReplyTo {
9
9
  interface Raw {
10
10
  externalId: string;
11
11
  participant: string | null;
12
+ content: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.WebhookEventMessageReceivedDataMessageReplyTo = core.serialization.object({
42
42
  externalId: core.serialization.string(),
43
43
  participant: core.serialization.string().nullable(),
44
+ content: core.serialization.string().nullable(),
44
45
  });
@@ -9,5 +9,6 @@ export declare namespace WebhookEventMessageSelfSentDataMessageReplyTo {
9
9
  interface Raw {
10
10
  externalId: string;
11
11
  participant: string | null;
12
+ content: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.WebhookEventMessageSelfSentDataMessageReplyTo = core.serialization.object({
42
42
  externalId: core.serialization.string(),
43
43
  participant: core.serialization.string().nullable(),
44
+ content: core.serialization.string().nullable(),
44
45
  });
@@ -9,5 +9,6 @@ export declare namespace WebhookEventMessageSentDataMessageReplyTo {
9
9
  interface Raw {
10
10
  externalId: string;
11
11
  participant: string | null;
12
+ content: string | null;
12
13
  }
13
14
  }