@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.
- package/package.json +1 -1
- package/src/api/resources/accounts/client/requests/AccountEmailAutoconfigRequest.d.ts +3 -0
- package/src/api/resources/accounts/client/requests/AccountLinkAccountRequest.d.ts +12 -0
- package/src/api/resources/messages/client/Client.d.ts +1 -1
- package/src/api/resources/messages/client/Client.js +1 -1
- package/src/api/resources/messages/types/MessageFindAllResponseDataItem.d.ts +9 -1
- package/src/api/resources/messages/types/MessageFindAllResponseDataItemReactionsItem.d.ts +16 -0
- package/src/api/resources/messages/types/MessageFindAllResponseDataItemReactionsItem.js +5 -0
- package/src/api/resources/messages/types/MessageFindOneResponse.d.ts +9 -1
- package/src/api/resources/messages/types/MessageFindOneResponseReactionsItem.d.ts +16 -0
- package/src/api/resources/messages/types/MessageFindOneResponseReactionsItem.js +5 -0
- package/src/api/resources/messages/types/MessageSendResponse.d.ts +9 -1
- package/src/api/resources/messages/types/MessageSendResponseMessagesItem.d.ts +9 -1
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemReactionsItem.d.ts +16 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemReactionsItem.js +5 -0
- package/src/api/resources/messages/types/MessageSendResponseReactionsItem.d.ts +16 -0
- package/src/api/resources/messages/types/MessageSendResponseReactionsItem.js +5 -0
- package/src/api/resources/messages/types/index.d.ts +4 -0
- package/src/api/resources/messages/types/index.js +4 -0
- package/src/api/resources/webhooks/client/Client.d.ts +12 -3
- package/src/api/resources/webhooks/client/Client.js +12 -3
- package/src/api/resources/webhooks/types/WebhookEndpointCreateResponse.d.ts +2 -0
- package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponse.d.ts +2 -0
- package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItem.d.ts +2 -0
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponse.d.ts +2 -0
- package/src/api/types/WebhookEventMessageHistoryDataMessagesItemReplyTo.d.ts +1 -0
- package/src/api/types/WebhookEventMessageReceivedDataMessageReplyTo.d.ts +1 -0
- package/src/api/types/WebhookEventMessageSelfSentDataMessageReplyTo.d.ts +1 -0
- package/src/api/types/WebhookEventMessageSentDataMessageReplyTo.d.ts +1 -0
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.d.ts +5 -0
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.js +5 -0
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemReactionsItem.d.ts +17 -0
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemReactionsItem.js +48 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponse.d.ts +5 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponse.js +5 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponseReactionsItem.d.ts +17 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponseReactionsItem.js +48 -0
- package/src/serialization/resources/messages/types/MessageSendResponse.d.ts +5 -0
- package/src/serialization/resources/messages/types/MessageSendResponse.js +5 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.d.ts +5 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.js +5 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemReactionsItem.d.ts +17 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemReactionsItem.js +48 -0
- package/src/serialization/resources/messages/types/MessageSendResponseReactionsItem.d.ts +17 -0
- package/src/serialization/resources/messages/types/MessageSendResponseReactionsItem.js +48 -0
- package/src/serialization/resources/messages/types/index.d.ts +4 -0
- package/src/serialization/resources/messages/types/index.js +4 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponse.d.ts +2 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponse.js +2 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponse.d.ts +2 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponse.js +2 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItem.d.ts +2 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItem.js +2 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponse.d.ts +2 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponse.js +2 -0
- package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemReplyTo.d.ts +1 -0
- package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemReplyTo.js +1 -0
- package/src/serialization/types/WebhookEventMessageReceivedDataMessageReplyTo.d.ts +1 -0
- package/src/serialization/types/WebhookEventMessageReceivedDataMessageReplyTo.js +1 -0
- package/src/serialization/types/WebhookEventMessageSelfSentDataMessageReplyTo.d.ts +1 -0
- package/src/serialization/types/WebhookEventMessageSelfSentDataMessageReplyTo.js +1 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessageReplyTo.d.ts +1 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessageReplyTo.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unlimited-messaging/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.30",
|
|
4
4
|
"description": "TypeScript / Node.js SDK for the Unlimited Messaging API — send and receive WhatsApp messages programmatically",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -7,8 +7,20 @@ import * as UnlimitedMessagingApi from "../../../../index";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface AccountLinkAccountRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Connection method. Both "stable" and "beta" use the same underlying transport (whatsmeow). The two values are kept for backwards compatibility. Defaults to "stable".
|
|
12
|
+
*/
|
|
10
13
|
mode?: UnlimitedMessagingApi.AccountLinkAccountRequestMode;
|
|
14
|
+
/**
|
|
15
|
+
* Always start a new linking attempt, even if one is already pending. Other pending attempts are left alone.
|
|
16
|
+
*/
|
|
11
17
|
new?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Receive the account's message history: its past conversations are stored and announced as `message.history` webhook batches once the number is linked. Beta (whatsmeow) accounts only. Defaults to false.
|
|
20
|
+
*/
|
|
12
21
|
syncHistory?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Your own reference for this account (e.g. your customer organization id), stored on it. Only a pending attempt made with the same reference is resumed, so two of your customers linking at the same time each get their own account.
|
|
24
|
+
*/
|
|
13
25
|
externalRef?: string;
|
|
14
26
|
}
|
|
@@ -60,7 +60,7 @@ export declare class Messages {
|
|
|
60
60
|
*
|
|
61
61
|
* WhatsApp text is limited to 1 600 characters. `simId` is a deprecated alias for `accountId`, removed 2026-12-16.
|
|
62
62
|
*
|
|
63
|
-
* Watermark: on the paid plans (Medium, Max) nothing is ever added to your messages. On the Free plan, a text message (WhatsApp) or an email ends with a "Sent with UnlimitedMessaging.app" line; media and product messages never do.
|
|
63
|
+
* Watermark: on the paid plans (Medium, Max) nothing is ever added to your messages. On the Free plan, a text message (WhatsApp, SMS) or an email ends with a "Sent with UnlimitedMessaging.app" line; media and product messages never do. The line is part of the stored message: `content` (and an email's `contentHtml`) is exactly what was sent, and `watermarked` says whether it was added.
|
|
64
64
|
*
|
|
65
65
|
* @param {UnlimitedMessagingApi.MessageSendRequest} request
|
|
66
66
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -186,7 +186,7 @@ class Messages {
|
|
|
186
186
|
*
|
|
187
187
|
* WhatsApp text is limited to 1 600 characters. `simId` is a deprecated alias for `accountId`, removed 2026-12-16.
|
|
188
188
|
*
|
|
189
|
-
* Watermark: on the paid plans (Medium, Max) nothing is ever added to your messages. On the Free plan, a text message (WhatsApp) or an email ends with a "Sent with UnlimitedMessaging.app" line; media and product messages never do.
|
|
189
|
+
* Watermark: on the paid plans (Medium, Max) nothing is ever added to your messages. On the Free plan, a text message (WhatsApp, SMS) or an email ends with a "Sent with UnlimitedMessaging.app" line; media and product messages never do. The line is part of the stored message: `content` (and an email's `contentHtml`) is exactly what was sent, and `watermarked` says whether it was added.
|
|
190
190
|
*
|
|
191
191
|
* @param {UnlimitedMessagingApi.MessageSendRequest} request
|
|
192
192
|
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -8,6 +8,8 @@ export interface MessageFindAllResponseDataItem {
|
|
|
8
8
|
direction: UnlimitedMessagingApi.MessageFindAllResponseDataItemDirection;
|
|
9
9
|
/** True when the account holder sent this message (direction OUT), false when they received it (direction IN). Redundant with direction, but spares the client from having to know which enum value means "we sent it" - the same convention as WhatsApp's own fromMe. */
|
|
10
10
|
fromMe: boolean;
|
|
11
|
+
/** True when Unlimited Messaging sent this message (through the API, the dashboard, MCP or the SDK). False for a received message, and for one written on the account's own device (the phone, a mail client) that Unlimited Messaging only mirrored. */
|
|
12
|
+
sentViaUm: boolean;
|
|
11
13
|
externalId: string | null;
|
|
12
14
|
error: string | null;
|
|
13
15
|
/** Meaning depends on direction and isGroup. 1:1 chat: the other party's phone number, both directions. Group + direction IN: the participant who posted the message. Group + direction OUT: the group's own bare id, since an outbound message's author is always the account holder (never the account holder's own number). For who a reply specifically targets, see replyToParticipant instead. */
|
|
@@ -18,12 +20,16 @@ export interface MessageFindAllResponseDataItem {
|
|
|
18
20
|
replyToExternalId: string | null;
|
|
19
21
|
/** For a reply to a group message, the phone number of whoever posted the message being replied to - not necessarily the same as interlocutor. Null outside that case. */
|
|
20
22
|
replyToParticipant: string | null;
|
|
23
|
+
/** The id of the message this one quotes, when Unlimited Messaging has it stored. Null when this is not a reply, or when the quoted message is not stored (older than the account link, or past the retention period). */
|
|
24
|
+
replyToMessageId: string | null;
|
|
25
|
+
/** The text of the message this one quotes: that stored message's content when it is stored, otherwise the quoted text the channel delivered with the reply. Null when this is not a reply, or when the quoted message has no text (a photo without a caption, a voice note). */
|
|
26
|
+
replyToContent: string | null;
|
|
21
27
|
retryCount: number;
|
|
22
28
|
messagingAccountId: string;
|
|
23
29
|
status: UnlimitedMessagingApi.MessageFindAllResponseDataItemStatus;
|
|
24
30
|
channel: UnlimitedMessagingApi.MessageFindAllResponseDataItemChannel;
|
|
25
31
|
accountChannel: UnlimitedMessagingApi.MessageFindAllResponseDataItemAccountChannel;
|
|
26
|
-
/** Whether the "Sent with UnlimitedMessaging.app" line was appended. Never on the paid plans (Medium, Max), nor on media and product messages; on the Free plan, text messages and emails only. */
|
|
32
|
+
/** Whether the "Sent with UnlimitedMessaging.app" line was appended. Never on the paid plans (Medium, Max), nor on media and product messages; on the Free plan, text messages and emails only. When true, the line is already part of `content` (and `contentHtml`), as sent. */
|
|
27
33
|
watermarked: boolean;
|
|
28
34
|
/** The email subject. Null on channels without one. */
|
|
29
35
|
subject: string | null;
|
|
@@ -32,6 +38,8 @@ export interface MessageFindAllResponseDataItem {
|
|
|
32
38
|
/** Ties together the messages one send request created, one per channel. Null for inbound messages. */
|
|
33
39
|
dispatchId: string | null;
|
|
34
40
|
attachments: UnlimitedMessagingApi.MessageFindAllResponseDataItemAttachmentsItem[];
|
|
41
|
+
/** The reactions on this message, one per person (a new reaction replaces theirs, a removed one is gone), oldest first. Empty when there are none. */
|
|
42
|
+
reactions: UnlimitedMessagingApi.MessageFindAllResponseDataItemReactionsItem[];
|
|
35
43
|
/** Deprecated: use `attachments` instead (this is the first one). */
|
|
36
44
|
mediaUrl: string | null;
|
|
37
45
|
/** Deprecated: use `attachments` instead (this is the first one). */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface MessageFindAllResponseDataItemReactionsItem {
|
|
5
|
+
emoji: string;
|
|
6
|
+
/** Who reacted, as an address (+E164 phone number) when known. */
|
|
7
|
+
sender: string | null;
|
|
8
|
+
/** Who reacted, as the channel's own id: always set, even when the number is hidden. */
|
|
9
|
+
senderId: string;
|
|
10
|
+
/** The display name they chose. Null for a reaction of the account holder. */
|
|
11
|
+
senderName: string | null;
|
|
12
|
+
/** True when the account holder reacted. */
|
|
13
|
+
fromMe: boolean;
|
|
14
|
+
/** When they reacted, per the channel. */
|
|
15
|
+
sentAt: Date;
|
|
16
|
+
}
|
|
@@ -8,6 +8,8 @@ export interface MessageFindOneResponse {
|
|
|
8
8
|
direction: UnlimitedMessagingApi.MessageFindOneResponseDirection;
|
|
9
9
|
/** True when the account holder sent this message (direction OUT), false when they received it (direction IN). Redundant with direction, but spares the client from having to know which enum value means "we sent it" - the same convention as WhatsApp's own fromMe. */
|
|
10
10
|
fromMe: boolean;
|
|
11
|
+
/** True when Unlimited Messaging sent this message (through the API, the dashboard, MCP or the SDK). False for a received message, and for one written on the account's own device (the phone, a mail client) that Unlimited Messaging only mirrored. */
|
|
12
|
+
sentViaUm: boolean;
|
|
11
13
|
externalId: string | null;
|
|
12
14
|
error: string | null;
|
|
13
15
|
/** Meaning depends on direction and isGroup. 1:1 chat: the other party's phone number, both directions. Group + direction IN: the participant who posted the message. Group + direction OUT: the group's own bare id, since an outbound message's author is always the account holder (never the account holder's own number). For who a reply specifically targets, see replyToParticipant instead. */
|
|
@@ -18,12 +20,16 @@ export interface MessageFindOneResponse {
|
|
|
18
20
|
replyToExternalId: string | null;
|
|
19
21
|
/** For a reply to a group message, the phone number of whoever posted the message being replied to - not necessarily the same as interlocutor. Null outside that case. */
|
|
20
22
|
replyToParticipant: string | null;
|
|
23
|
+
/** The id of the message this one quotes, when Unlimited Messaging has it stored. Null when this is not a reply, or when the quoted message is not stored (older than the account link, or past the retention period). */
|
|
24
|
+
replyToMessageId: string | null;
|
|
25
|
+
/** The text of the message this one quotes: that stored message's content when it is stored, otherwise the quoted text the channel delivered with the reply. Null when this is not a reply, or when the quoted message has no text (a photo without a caption, a voice note). */
|
|
26
|
+
replyToContent: string | null;
|
|
21
27
|
retryCount: number;
|
|
22
28
|
messagingAccountId: string;
|
|
23
29
|
status: UnlimitedMessagingApi.MessageFindOneResponseStatus;
|
|
24
30
|
channel: UnlimitedMessagingApi.MessageFindOneResponseChannel;
|
|
25
31
|
accountChannel: UnlimitedMessagingApi.MessageFindOneResponseAccountChannel;
|
|
26
|
-
/** Whether the "Sent with UnlimitedMessaging.app" line was appended. Never on the paid plans (Medium, Max), nor on media and product messages; on the Free plan, text messages and emails only. */
|
|
32
|
+
/** Whether the "Sent with UnlimitedMessaging.app" line was appended. Never on the paid plans (Medium, Max), nor on media and product messages; on the Free plan, text messages and emails only. When true, the line is already part of `content` (and `contentHtml`), as sent. */
|
|
27
33
|
watermarked: boolean;
|
|
28
34
|
/** The email subject. Null on channels without one. */
|
|
29
35
|
subject: string | null;
|
|
@@ -32,6 +38,8 @@ export interface MessageFindOneResponse {
|
|
|
32
38
|
/** Ties together the messages one send request created, one per channel. Null for inbound messages. */
|
|
33
39
|
dispatchId: string | null;
|
|
34
40
|
attachments: UnlimitedMessagingApi.MessageFindOneResponseAttachmentsItem[];
|
|
41
|
+
/** The reactions on this message, one per person (a new reaction replaces theirs, a removed one is gone), oldest first. Empty when there are none. */
|
|
42
|
+
reactions: UnlimitedMessagingApi.MessageFindOneResponseReactionsItem[];
|
|
35
43
|
/** Deprecated: use `attachments` instead (this is the first one). */
|
|
36
44
|
mediaUrl: string | null;
|
|
37
45
|
/** Deprecated: use `attachments` instead (this is the first one). */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface MessageFindOneResponseReactionsItem {
|
|
5
|
+
emoji: string;
|
|
6
|
+
/** Who reacted, as an address (+E164 phone number) when known. */
|
|
7
|
+
sender: string | null;
|
|
8
|
+
/** Who reacted, as the channel's own id: always set, even when the number is hidden. */
|
|
9
|
+
senderId: string;
|
|
10
|
+
/** The display name they chose. Null for a reaction of the account holder. */
|
|
11
|
+
senderName: string | null;
|
|
12
|
+
/** True when the account holder reacted. */
|
|
13
|
+
fromMe: boolean;
|
|
14
|
+
/** When they reacted, per the channel. */
|
|
15
|
+
sentAt: Date;
|
|
16
|
+
}
|
|
@@ -8,6 +8,8 @@ export interface MessageSendResponse {
|
|
|
8
8
|
direction: UnlimitedMessagingApi.MessageSendResponseDirection;
|
|
9
9
|
/** True when the account holder sent this message (direction OUT), false when they received it (direction IN). Redundant with direction, but spares the client from having to know which enum value means "we sent it" - the same convention as WhatsApp's own fromMe. */
|
|
10
10
|
fromMe: boolean;
|
|
11
|
+
/** True when Unlimited Messaging sent this message (through the API, the dashboard, MCP or the SDK). False for a received message, and for one written on the account's own device (the phone, a mail client) that Unlimited Messaging only mirrored. */
|
|
12
|
+
sentViaUm: boolean;
|
|
11
13
|
externalId: string | null;
|
|
12
14
|
error: string | null;
|
|
13
15
|
/** Meaning depends on direction and isGroup. 1:1 chat: the other party's phone number, both directions. Group + direction IN: the participant who posted the message. Group + direction OUT: the group's own bare id, since an outbound message's author is always the account holder (never the account holder's own number). For who a reply specifically targets, see replyToParticipant instead. */
|
|
@@ -18,12 +20,16 @@ export interface MessageSendResponse {
|
|
|
18
20
|
replyToExternalId: string | null;
|
|
19
21
|
/** For a reply to a group message, the phone number of whoever posted the message being replied to - not necessarily the same as interlocutor. Null outside that case. */
|
|
20
22
|
replyToParticipant: string | null;
|
|
23
|
+
/** The id of the message this one quotes, when Unlimited Messaging has it stored. Null when this is not a reply, or when the quoted message is not stored (older than the account link, or past the retention period). */
|
|
24
|
+
replyToMessageId: string | null;
|
|
25
|
+
/** The text of the message this one quotes: that stored message's content when it is stored, otherwise the quoted text the channel delivered with the reply. Null when this is not a reply, or when the quoted message has no text (a photo without a caption, a voice note). */
|
|
26
|
+
replyToContent: string | null;
|
|
21
27
|
retryCount: number;
|
|
22
28
|
messagingAccountId: string;
|
|
23
29
|
status: UnlimitedMessagingApi.MessageSendResponseStatus;
|
|
24
30
|
channel: UnlimitedMessagingApi.MessageSendResponseChannel;
|
|
25
31
|
accountChannel: UnlimitedMessagingApi.MessageSendResponseAccountChannel;
|
|
26
|
-
/** Whether the "Sent with UnlimitedMessaging.app" line was appended. Never on the paid plans (Medium, Max), nor on media and product messages; on the Free plan, text messages and emails only. */
|
|
32
|
+
/** Whether the "Sent with UnlimitedMessaging.app" line was appended. Never on the paid plans (Medium, Max), nor on media and product messages; on the Free plan, text messages and emails only. When true, the line is already part of `content` (and `contentHtml`), as sent. */
|
|
27
33
|
watermarked: boolean;
|
|
28
34
|
/** The email subject. Null on channels without one. */
|
|
29
35
|
subject: string | null;
|
|
@@ -31,6 +37,8 @@ export interface MessageSendResponse {
|
|
|
31
37
|
contentHtml: string | null;
|
|
32
38
|
dispatchId: string;
|
|
33
39
|
attachments: UnlimitedMessagingApi.MessageSendResponseAttachmentsItem[];
|
|
40
|
+
/** The reactions on this message, one per person (a new reaction replaces theirs, a removed one is gone), oldest first. Empty when there are none. */
|
|
41
|
+
reactions: UnlimitedMessagingApi.MessageSendResponseReactionsItem[];
|
|
34
42
|
/** Deprecated: use `attachments` instead (this is the first one). */
|
|
35
43
|
mediaUrl: string | null;
|
|
36
44
|
/** Deprecated: use `attachments` instead (this is the first one). */
|
|
@@ -8,6 +8,8 @@ export interface MessageSendResponseMessagesItem {
|
|
|
8
8
|
direction: UnlimitedMessagingApi.MessageSendResponseMessagesItemDirection;
|
|
9
9
|
/** True when the account holder sent this message (direction OUT), false when they received it (direction IN). Redundant with direction, but spares the client from having to know which enum value means "we sent it" - the same convention as WhatsApp's own fromMe. */
|
|
10
10
|
fromMe: boolean;
|
|
11
|
+
/** True when Unlimited Messaging sent this message (through the API, the dashboard, MCP or the SDK). False for a received message, and for one written on the account's own device (the phone, a mail client) that Unlimited Messaging only mirrored. */
|
|
12
|
+
sentViaUm: boolean;
|
|
11
13
|
externalId: string | null;
|
|
12
14
|
error: string | null;
|
|
13
15
|
/** Meaning depends on direction and isGroup. 1:1 chat: the other party's phone number, both directions. Group + direction IN: the participant who posted the message. Group + direction OUT: the group's own bare id, since an outbound message's author is always the account holder (never the account holder's own number). For who a reply specifically targets, see replyToParticipant instead. */
|
|
@@ -18,12 +20,16 @@ export interface MessageSendResponseMessagesItem {
|
|
|
18
20
|
replyToExternalId: string | null;
|
|
19
21
|
/** For a reply to a group message, the phone number of whoever posted the message being replied to - not necessarily the same as interlocutor. Null outside that case. */
|
|
20
22
|
replyToParticipant: string | null;
|
|
23
|
+
/** The id of the message this one quotes, when Unlimited Messaging has it stored. Null when this is not a reply, or when the quoted message is not stored (older than the account link, or past the retention period). */
|
|
24
|
+
replyToMessageId: string | null;
|
|
25
|
+
/** The text of the message this one quotes: that stored message's content when it is stored, otherwise the quoted text the channel delivered with the reply. Null when this is not a reply, or when the quoted message has no text (a photo without a caption, a voice note). */
|
|
26
|
+
replyToContent: string | null;
|
|
21
27
|
retryCount: number;
|
|
22
28
|
messagingAccountId: string;
|
|
23
29
|
status: UnlimitedMessagingApi.MessageSendResponseMessagesItemStatus;
|
|
24
30
|
channel: UnlimitedMessagingApi.MessageSendResponseMessagesItemChannel;
|
|
25
31
|
accountChannel: UnlimitedMessagingApi.MessageSendResponseMessagesItemAccountChannel;
|
|
26
|
-
/** Whether the "Sent with UnlimitedMessaging.app" line was appended. Never on the paid plans (Medium, Max), nor on media and product messages; on the Free plan, text messages and emails only. */
|
|
32
|
+
/** Whether the "Sent with UnlimitedMessaging.app" line was appended. Never on the paid plans (Medium, Max), nor on media and product messages; on the Free plan, text messages and emails only. When true, the line is already part of `content` (and `contentHtml`), as sent. */
|
|
27
33
|
watermarked: boolean;
|
|
28
34
|
/** The email subject. Null on channels without one. */
|
|
29
35
|
subject: string | null;
|
|
@@ -32,6 +38,8 @@ export interface MessageSendResponseMessagesItem {
|
|
|
32
38
|
/** Ties together the messages one send request created, one per channel. Null for inbound messages. */
|
|
33
39
|
dispatchId: string | null;
|
|
34
40
|
attachments: UnlimitedMessagingApi.MessageSendResponseMessagesItemAttachmentsItem[];
|
|
41
|
+
/** The reactions on this message, one per person (a new reaction replaces theirs, a removed one is gone), oldest first. Empty when there are none. */
|
|
42
|
+
reactions: UnlimitedMessagingApi.MessageSendResponseMessagesItemReactionsItem[];
|
|
35
43
|
/** Deprecated: use `attachments` instead (this is the first one). */
|
|
36
44
|
mediaUrl: string | null;
|
|
37
45
|
/** Deprecated: use `attachments` instead (this is the first one). */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface MessageSendResponseMessagesItemReactionsItem {
|
|
5
|
+
emoji: string;
|
|
6
|
+
/** Who reacted, as an address (+E164 phone number) when known. */
|
|
7
|
+
sender: string | null;
|
|
8
|
+
/** Who reacted, as the channel's own id: always set, even when the number is hidden. */
|
|
9
|
+
senderId: string;
|
|
10
|
+
/** The display name they chose. Null for a reaction of the account holder. */
|
|
11
|
+
senderName: string | null;
|
|
12
|
+
/** True when the account holder reacted. */
|
|
13
|
+
fromMe: boolean;
|
|
14
|
+
/** When they reacted, per the channel. */
|
|
15
|
+
sentAt: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface MessageSendResponseReactionsItem {
|
|
5
|
+
emoji: string;
|
|
6
|
+
/** Who reacted, as an address (+E164 phone number) when known. */
|
|
7
|
+
sender: string | null;
|
|
8
|
+
/** Who reacted, as the channel's own id: always set, even when the number is hidden. */
|
|
9
|
+
senderId: string;
|
|
10
|
+
/** The display name they chose. Null for a reaction of the account holder. */
|
|
11
|
+
senderName: string | null;
|
|
12
|
+
/** True when the account holder reacted. */
|
|
13
|
+
fromMe: boolean;
|
|
14
|
+
/** When they reacted, per the channel. */
|
|
15
|
+
sentAt: Date;
|
|
16
|
+
}
|
|
@@ -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);
|
|
@@ -64,6 +64,12 @@ export declare namespace Webhooks {
|
|
|
64
64
|
* after 30 s, 2 min, 10 min, 1 h, 6 h, 1 day, 2 days: 8 attempts in all, over a little more than 3 days. Any other
|
|
65
65
|
* `4xx` is final and never retried. Delivery attempts are kept for 30 days.
|
|
66
66
|
*
|
|
67
|
+
* When every delivery to an endpoint keeps failing, each event is retried less: 2 retries after 1 day, 1 retry after 2 days, no retry after 3 days
|
|
68
|
+
* without a single successful delivery. After 7 days the endpoint is turned off
|
|
69
|
+
* (`enabled: false`, with `autoDisabledAt` set) and its owner is emailed; events that happen while it
|
|
70
|
+
* is off are not sent. `failingSince` on the endpoint shows since when nothing has gone through. Any
|
|
71
|
+
* successful delivery, or turning the endpoint back on, starts over with the full schedule.
|
|
72
|
+
*
|
|
67
73
|
* ### Ordering and duplicates
|
|
68
74
|
*
|
|
69
75
|
* Delivery is at least once: the same event can arrive twice, so deduplicate on `eventId` (equal to
|
|
@@ -120,7 +126,8 @@ export declare namespace Webhooks {
|
|
|
120
126
|
* the same message object (`data.message`, or each item of `data.messages`): `id` (UnlimitedMessaging),
|
|
121
127
|
* `externalId` (WhatsApp), `direction` (`IN` or `OUT`), `fromMe`, `content`, `sentAt` (the channel's
|
|
122
128
|
* timestamp), `receivedAt` (when UnlimitedMessaging recorded it), `sender`, `senderId`, `senderName`,
|
|
123
|
-
* `participant`, `replyTo`, `
|
|
129
|
+
* `participant`, `replyTo` (`externalId`, `participant`, and `content`, the quoted message's text, for
|
|
130
|
+
* a reply; null otherwise), `transcript`, the media fields described below, and for email `subject`,
|
|
124
131
|
* `html` and `attachments`. Message events also carry `data.channel`: `type` (`WHATSAPP`, `EMAIL`),
|
|
125
132
|
* `account` (`id`, `name`) and `conversation` (`id`, `isGroup`, `address`, and `participants` for a
|
|
126
133
|
* group).
|
|
@@ -175,8 +182,10 @@ export declare namespace Webhooks {
|
|
|
175
182
|
* Someone reacted to a message, or took their reaction back (`removed: true`, empty `emoji`). The
|
|
176
183
|
* account's own reactions are included, with `fromMe: true`. `data.reaction` holds `emoji`, `removed`,
|
|
177
184
|
* `reactedToExternalId`, `reactedToMessageId` (null when that message is not stored, see below),
|
|
178
|
-
* `sender`, `senderId`, `senderName`, `participant` (in a group), `fromMe` and `sentAt`.
|
|
179
|
-
* stored
|
|
185
|
+
* `sender`, `senderId`, `senderName`, `participant` (in a group), `fromMe` and `sentAt`. When
|
|
186
|
+
* that message is stored, the reaction is kept with it and listed in its `reactions` (`GET /message`),
|
|
187
|
+
* one per person: a new reaction replaces theirs, a removed one disappears. A reaction is not a
|
|
188
|
+
* message and is never counted as one.
|
|
180
189
|
*
|
|
181
190
|
* #### message.edited
|
|
182
191
|
*
|
|
@@ -97,6 +97,12 @@ const errors = __importStar(require("../../../../errors/index"));
|
|
|
97
97
|
* after 30 s, 2 min, 10 min, 1 h, 6 h, 1 day, 2 days: 8 attempts in all, over a little more than 3 days. Any other
|
|
98
98
|
* `4xx` is final and never retried. Delivery attempts are kept for 30 days.
|
|
99
99
|
*
|
|
100
|
+
* When every delivery to an endpoint keeps failing, each event is retried less: 2 retries after 1 day, 1 retry after 2 days, no retry after 3 days
|
|
101
|
+
* without a single successful delivery. After 7 days the endpoint is turned off
|
|
102
|
+
* (`enabled: false`, with `autoDisabledAt` set) and its owner is emailed; events that happen while it
|
|
103
|
+
* is off are not sent. `failingSince` on the endpoint shows since when nothing has gone through. Any
|
|
104
|
+
* successful delivery, or turning the endpoint back on, starts over with the full schedule.
|
|
105
|
+
*
|
|
100
106
|
* ### Ordering and duplicates
|
|
101
107
|
*
|
|
102
108
|
* Delivery is at least once: the same event can arrive twice, so deduplicate on `eventId` (equal to
|
|
@@ -153,7 +159,8 @@ const errors = __importStar(require("../../../../errors/index"));
|
|
|
153
159
|
* the same message object (`data.message`, or each item of `data.messages`): `id` (UnlimitedMessaging),
|
|
154
160
|
* `externalId` (WhatsApp), `direction` (`IN` or `OUT`), `fromMe`, `content`, `sentAt` (the channel's
|
|
155
161
|
* timestamp), `receivedAt` (when UnlimitedMessaging recorded it), `sender`, `senderId`, `senderName`,
|
|
156
|
-
* `participant`, `replyTo`, `
|
|
162
|
+
* `participant`, `replyTo` (`externalId`, `participant`, and `content`, the quoted message's text, for
|
|
163
|
+
* a reply; null otherwise), `transcript`, the media fields described below, and for email `subject`,
|
|
157
164
|
* `html` and `attachments`. Message events also carry `data.channel`: `type` (`WHATSAPP`, `EMAIL`),
|
|
158
165
|
* `account` (`id`, `name`) and `conversation` (`id`, `isGroup`, `address`, and `participants` for a
|
|
159
166
|
* group).
|
|
@@ -208,8 +215,10 @@ const errors = __importStar(require("../../../../errors/index"));
|
|
|
208
215
|
* Someone reacted to a message, or took their reaction back (`removed: true`, empty `emoji`). The
|
|
209
216
|
* account's own reactions are included, with `fromMe: true`. `data.reaction` holds `emoji`, `removed`,
|
|
210
217
|
* `reactedToExternalId`, `reactedToMessageId` (null when that message is not stored, see below),
|
|
211
|
-
* `sender`, `senderId`, `senderName`, `participant` (in a group), `fromMe` and `sentAt`.
|
|
212
|
-
* stored
|
|
218
|
+
* `sender`, `senderId`, `senderName`, `participant` (in a group), `fromMe` and `sentAt`. When
|
|
219
|
+
* that message is stored, the reaction is kept with it and listed in its `reactions` (`GET /message`),
|
|
220
|
+
* one per person: a new reaction replaces theirs, a removed one disappears. A reaction is not a
|
|
221
|
+
* message and is never counted as one.
|
|
213
222
|
*
|
|
214
223
|
* #### message.edited
|
|
215
224
|
*
|
|
@@ -8,6 +8,8 @@ export interface WebhookEndpointCreateResponse {
|
|
|
8
8
|
description: string | null;
|
|
9
9
|
secretPrefix: string;
|
|
10
10
|
enabled: boolean;
|
|
11
|
+
autoDisabledAt: Date | null;
|
|
12
|
+
failingSince: Date | null;
|
|
11
13
|
eventTypes: UnlimitedMessagingApi.WebhookEndpointCreateResponseEventTypesItem[];
|
|
12
14
|
accountIds: string[];
|
|
13
15
|
createdAt: Date;
|
|
@@ -8,6 +8,8 @@ export interface WebhookEndpointFindOneResponse {
|
|
|
8
8
|
description: string | null;
|
|
9
9
|
secretPrefix: string;
|
|
10
10
|
enabled: boolean;
|
|
11
|
+
autoDisabledAt: Date | null;
|
|
12
|
+
failingSince: Date | null;
|
|
11
13
|
eventTypes: UnlimitedMessagingApi.WebhookEndpointFindOneResponseEventTypesItem[];
|
|
12
14
|
accountIds: string[];
|
|
13
15
|
createdAt: Date;
|
|
@@ -8,6 +8,8 @@ export interface WebhookEndpointListResponseDataItem {
|
|
|
8
8
|
description: string | null;
|
|
9
9
|
secretPrefix: string;
|
|
10
10
|
enabled: boolean;
|
|
11
|
+
autoDisabledAt: Date | null;
|
|
12
|
+
failingSince: Date | null;
|
|
11
13
|
eventTypes: UnlimitedMessagingApi.WebhookEndpointListResponseDataItemEventTypesItem[];
|
|
12
14
|
accountIds: string[];
|
|
13
15
|
createdAt: Date;
|
|
@@ -8,6 +8,8 @@ export interface WebhookEndpointUpdateResponse {
|
|
|
8
8
|
description: string | null;
|
|
9
9
|
secretPrefix: string;
|
|
10
10
|
enabled: boolean;
|
|
11
|
+
autoDisabledAt: Date | null;
|
|
12
|
+
failingSince: Date | null;
|
|
11
13
|
eventTypes: UnlimitedMessagingApi.WebhookEndpointUpdateResponseEventTypesItem[];
|
|
12
14
|
accountIds: string[];
|
|
13
15
|
createdAt: Date;
|
|
@@ -9,6 +9,7 @@ import { MessageFindAllResponseDataItemStatus } from "./MessageFindAllResponseDa
|
|
|
9
9
|
import { MessageFindAllResponseDataItemChannel } from "./MessageFindAllResponseDataItemChannel";
|
|
10
10
|
import { MessageFindAllResponseDataItemAccountChannel } from "./MessageFindAllResponseDataItemAccountChannel";
|
|
11
11
|
import { MessageFindAllResponseDataItemAttachmentsItem } from "./MessageFindAllResponseDataItemAttachmentsItem";
|
|
12
|
+
import { MessageFindAllResponseDataItemReactionsItem } from "./MessageFindAllResponseDataItemReactionsItem";
|
|
12
13
|
export declare const MessageFindAllResponseDataItem: core.serialization.ObjectSchema<serializers.MessageFindAllResponseDataItem.Raw, UnlimitedMessagingApi.MessageFindAllResponseDataItem>;
|
|
13
14
|
export declare namespace MessageFindAllResponseDataItem {
|
|
14
15
|
interface Raw {
|
|
@@ -16,6 +17,7 @@ export declare namespace MessageFindAllResponseDataItem {
|
|
|
16
17
|
content: string | null;
|
|
17
18
|
direction: MessageFindAllResponseDataItemDirection.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 MessageFindAllResponseDataItem {
|
|
|
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: MessageFindAllResponseDataItemStatus.Raw;
|
|
@@ -33,6 +37,7 @@ export declare namespace MessageFindAllResponseDataItem {
|
|
|
33
37
|
contentHtml: string | null;
|
|
34
38
|
dispatchId: string | null;
|
|
35
39
|
attachments: MessageFindAllResponseDataItemAttachmentsItem.Raw[];
|
|
40
|
+
reactions: MessageFindAllResponseDataItemReactionsItem.Raw[];
|
|
36
41
|
mediaUrl: string | null;
|
|
37
42
|
mediaType: string | null;
|
|
38
43
|
mimeType: string | null;
|
|
@@ -43,11 +43,13 @@ const MessageFindAllResponseDataItemStatus_1 = require("./MessageFindAllResponse
|
|
|
43
43
|
const MessageFindAllResponseDataItemChannel_1 = require("./MessageFindAllResponseDataItemChannel");
|
|
44
44
|
const MessageFindAllResponseDataItemAccountChannel_1 = require("./MessageFindAllResponseDataItemAccountChannel");
|
|
45
45
|
const MessageFindAllResponseDataItemAttachmentsItem_1 = require("./MessageFindAllResponseDataItemAttachmentsItem");
|
|
46
|
+
const MessageFindAllResponseDataItemReactionsItem_1 = require("./MessageFindAllResponseDataItemReactionsItem");
|
|
46
47
|
exports.MessageFindAllResponseDataItem = core.serialization.object({
|
|
47
48
|
id: core.serialization.string(),
|
|
48
49
|
content: core.serialization.string().nullable(),
|
|
49
50
|
direction: MessageFindAllResponseDataItemDirection_1.MessageFindAllResponseDataItemDirection,
|
|
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.MessageFindAllResponseDataItem = 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: MessageFindAllResponseDataItemStatus_1.MessageFindAllResponseDataItemStatus,
|
|
@@ -65,6 +69,7 @@ exports.MessageFindAllResponseDataItem = core.serialization.object({
|
|
|
65
69
|
contentHtml: core.serialization.string().nullable(),
|
|
66
70
|
dispatchId: core.serialization.string().nullable(),
|
|
67
71
|
attachments: core.serialization.list(MessageFindAllResponseDataItemAttachmentsItem_1.MessageFindAllResponseDataItemAttachmentsItem),
|
|
72
|
+
reactions: core.serialization.list(MessageFindAllResponseDataItemReactionsItem_1.MessageFindAllResponseDataItemReactionsItem),
|
|
68
73
|
mediaUrl: core.serialization.string().nullable(),
|
|
69
74
|
mediaType: core.serialization.string().nullable(),
|
|
70
75
|
mimeType: core.serialization.string().nullable(),
|
package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemReactionsItem.d.ts
ADDED
|
@@ -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 MessageFindAllResponseDataItemReactionsItem: core.serialization.ObjectSchema<serializers.MessageFindAllResponseDataItemReactionsItem.Raw, UnlimitedMessagingApi.MessageFindAllResponseDataItemReactionsItem>;
|
|
8
|
+
export declare namespace MessageFindAllResponseDataItemReactionsItem {
|
|
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
|
+
}
|