rcs-js 2.0.1-rc.1 → 2.0.1
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/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/errors/NotFoundError.d.ts +2 -1
- package/dist/cjs/api/resources/brands/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/brands/client/Client.js +10 -10
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +3 -6
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +13 -14
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +11 -12
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +8 -8
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +10 -11
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +8 -9
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +3 -4
- package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.ts +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +10 -10
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +7 -7
- package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +2 -4
- package/dist/cjs/api/resources/contacts/client/Client.js +3 -5
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +2 -4
- package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +4 -21
- package/dist/cjs/api/resources/conversations/client/Client.js +4 -99
- package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +6 -11
- package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +3 -3
- package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/conversations/index.d.ts +0 -1
- package/dist/cjs/api/resources/conversations/index.js +0 -1
- package/dist/cjs/api/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/index.js +2 -3
- package/dist/cjs/api/resources/messages/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/messages/client/Client.js +3 -3
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +3 -3
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +1 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +3 -12
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +4 -4
- package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/status/resources/get/client/Client.js +8 -8
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +2 -2
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +3 -3
- package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/file/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.ts +11 -3
- package/dist/cjs/api/types/AttachWebhookParams.d.ts +1 -1
- package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +2 -2
- package/dist/cjs/api/types/AutofillCampaignParams.d.ts +2 -7
- package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +4 -4
- package/dist/cjs/api/types/BrandStatus.d.ts +2 -2
- package/dist/cjs/api/types/ButtonClickedData.d.ts +1 -1
- package/dist/cjs/api/types/CampaignQuery.d.ts +1 -6
- package/dist/cjs/api/types/ConfiguredWebhook.d.ts +2 -2
- package/dist/cjs/api/types/Contact.d.ts +2 -2
- package/dist/cjs/api/types/ContactId.d.ts +2 -2
- package/dist/cjs/api/types/Conversation.d.ts +7 -7
- package/dist/cjs/api/types/ConversationList.d.ts +4 -4
- package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +2 -2
- package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +2 -2
- package/dist/cjs/api/types/DlcCampaignStatus.d.ts +2 -2
- package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +2 -2
- package/dist/cjs/api/types/ExtendedBrand.d.ts +2 -2
- package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +2 -2
- package/dist/cjs/api/types/GetConversationParams.d.ts +1 -1
- package/dist/cjs/api/types/LinkClickEvent.d.ts +4 -0
- package/dist/cjs/api/types/Message.d.ts +2 -2
- package/dist/cjs/api/types/MessageEvent.d.ts +4 -10
- package/dist/cjs/api/types/RcsCampaign.d.ts +1 -1
- package/dist/cjs/api/types/RcsCampaignStatus.d.ts +2 -2
- package/dist/cjs/api/types/ReactionResult.d.ts +4 -4
- package/dist/cjs/api/types/ScheduledMessaage.d.ts +2 -2
- package/dist/cjs/api/types/SentMmsDetails.d.ts +2 -2
- package/dist/cjs/api/types/SentRcsDetails.d.ts +2 -2
- package/dist/cjs/api/types/SentSmsDetails.d.ts +2 -2
- package/dist/cjs/api/types/TollFreeCampaign.d.ts +2 -2
- package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +2 -2
- package/dist/cjs/api/types/UpdatedContactId.d.ts +2 -2
- package/dist/cjs/api/types/ValidateCampaignParams.d.ts +2 -7
- package/dist/cjs/api/types/Vcard.d.ts +2 -2
- package/dist/cjs/api/types/VcardResource.d.ts +2 -2
- package/dist/cjs/api/types/Webhooks.d.ts +2 -2
- package/dist/cjs/api/types/index.d.ts +0 -3
- package/dist/cjs/api/types/index.js +0 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/errors/NotFoundError.d.mts +2 -1
- package/dist/esm/api/resources/brands/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/brands/client/Client.mjs +10 -10
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +3 -6
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +13 -14
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +11 -12
- package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +8 -8
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +10 -11
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +8 -9
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +3 -4
- package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +10 -10
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +7 -7
- package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +1 -1
- package/dist/esm/api/resources/contacts/client/Client.d.mts +2 -4
- package/dist/esm/api/resources/contacts/client/Client.mjs +3 -5
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +2 -4
- package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +3 -3
- package/dist/esm/api/resources/conversations/client/Client.d.mts +4 -21
- package/dist/esm/api/resources/conversations/client/Client.mjs +4 -99
- package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +6 -11
- package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +3 -3
- package/dist/esm/api/resources/conversations/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/conversations/index.d.mts +0 -1
- package/dist/esm/api/resources/conversations/index.mjs +0 -1
- package/dist/esm/api/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/index.mjs +1 -2
- package/dist/esm/api/resources/messages/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/messages/client/Client.mjs +3 -3
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +3 -3
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +1 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +3 -12
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +4 -4
- package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/status/resources/get/client/Client.mjs +8 -8
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +3 -3
- package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.mts +11 -3
- package/dist/esm/api/types/AttachWebhookParams.d.mts +1 -1
- package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +2 -2
- package/dist/esm/api/types/AutofillCampaignParams.d.mts +2 -7
- package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +4 -4
- package/dist/esm/api/types/BrandStatus.d.mts +2 -2
- package/dist/esm/api/types/ButtonClickedData.d.mts +1 -1
- package/dist/esm/api/types/CampaignQuery.d.mts +1 -6
- package/dist/esm/api/types/ConfiguredWebhook.d.mts +2 -2
- package/dist/esm/api/types/Contact.d.mts +2 -2
- package/dist/esm/api/types/ContactId.d.mts +2 -2
- package/dist/esm/api/types/Conversation.d.mts +7 -7
- package/dist/esm/api/types/ConversationList.d.mts +4 -4
- package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +2 -2
- package/dist/esm/api/types/DetachedWebhookInfo.d.mts +2 -2
- package/dist/esm/api/types/DlcCampaignStatus.d.mts +2 -2
- package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +2 -2
- package/dist/esm/api/types/ExtendedBrand.d.mts +2 -2
- package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +2 -2
- package/dist/esm/api/types/GetConversationParams.d.mts +1 -1
- package/dist/esm/api/types/LinkClickEvent.d.mts +4 -0
- package/dist/esm/api/types/Message.d.mts +2 -2
- package/dist/esm/api/types/MessageEvent.d.mts +4 -10
- package/dist/esm/api/types/RcsCampaign.d.mts +1 -1
- package/dist/esm/api/types/RcsCampaignStatus.d.mts +2 -2
- package/dist/esm/api/types/ReactionResult.d.mts +4 -4
- package/dist/esm/api/types/ScheduledMessaage.d.mts +2 -2
- package/dist/esm/api/types/SentMmsDetails.d.mts +2 -2
- package/dist/esm/api/types/SentRcsDetails.d.mts +2 -2
- package/dist/esm/api/types/SentSmsDetails.d.mts +2 -2
- package/dist/esm/api/types/TollFreeCampaign.d.mts +2 -2
- package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +2 -2
- package/dist/esm/api/types/UpdatedContactId.d.mts +2 -2
- package/dist/esm/api/types/ValidateCampaignParams.d.mts +2 -7
- package/dist/esm/api/types/Vcard.d.mts +2 -2
- package/dist/esm/api/types/VcardResource.d.mts +2 -2
- package/dist/esm/api/types/Webhooks.d.mts +2 -2
- package/dist/esm/api/types/index.d.mts +0 -3
- package/dist/esm/api/types/index.mjs +0 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +66 -144
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.ts +0 -36
- package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.js +0 -5
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.ts +0 -8
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.js +0 -10
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.ts +0 -8
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.js +0 -10
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.ts +0 -13
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js +0 -15
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts +0 -9
- package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.js +0 -11
- package/dist/cjs/api/resources/conversations/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/conversations/types/index.js +0 -20
- package/dist/cjs/api/types/MessageList.d.ts +0 -15
- package/dist/cjs/api/types/MessageList.js +0 -5
- package/dist/cjs/api/types/MessageWithReaction.d.ts +0 -27
- package/dist/cjs/api/types/MessageWithReaction.js +0 -13
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -6
- package/dist/cjs/api/types/NotFoundErrorBody.js +0 -5
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts +0 -36
- package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.mjs +0 -4
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts +0 -8
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.mjs +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts +0 -8
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.mjs +0 -7
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts +0 -13
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs +0 -12
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts +0 -9
- package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.mjs +0 -8
- package/dist/esm/api/resources/conversations/types/index.d.mts +0 -4
- package/dist/esm/api/resources/conversations/types/index.mjs +0 -4
- package/dist/esm/api/types/MessageList.d.mts +0 -15
- package/dist/esm/api/types/MessageList.mjs +0 -4
- package/dist/esm/api/types/MessageWithReaction.d.mts +0 -27
- package/dist/esm/api/types/MessageWithReaction.mjs +0 -10
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -6
- package/dist/esm/api/types/NotFoundErrorBody.mjs +0 -4
package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ConversationsListMessagesRequestStatus = void 0;
|
|
7
|
-
exports.ConversationsListMessagesRequestStatus = {
|
|
8
|
-
Pending: "PENDING",
|
|
9
|
-
Sent: "SENT",
|
|
10
|
-
SendFailed: "SEND_FAILED",
|
|
11
|
-
Delivered: "DELIVERED",
|
|
12
|
-
DeliveryFailed: "DELIVERY_FAILED",
|
|
13
|
-
Received: "RECEIVED",
|
|
14
|
-
Read: "READ",
|
|
15
|
-
};
|
package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type ConversationsListMessagesRequestType = "SMS" | "MMS" | "RCS";
|
|
5
|
-
export declare const ConversationsListMessagesRequestType: {
|
|
6
|
-
readonly Sms: "SMS";
|
|
7
|
-
readonly Mms: "MMS";
|
|
8
|
-
readonly Rcs: "RCS";
|
|
9
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ConversationsListMessagesRequestType = void 0;
|
|
7
|
-
exports.ConversationsListMessagesRequestType = {
|
|
8
|
-
Sms: "SMS",
|
|
9
|
-
Mms: "MMS",
|
|
10
|
-
Rcs: "RCS",
|
|
11
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ConversationsListMessagesRequestSortOrder.js"), exports);
|
|
18
|
-
__exportStar(require("./ConversationsListMessagesRequestDirection.js"), exports);
|
|
19
|
-
__exportStar(require("./ConversationsListMessagesRequestStatus.js"), exports);
|
|
20
|
-
__exportStar(require("./ConversationsListMessagesRequestType.js"), exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* Paginated list of messages in a conversation.
|
|
7
|
-
*/
|
|
8
|
-
export interface MessageList {
|
|
9
|
-
/** Array of messages in the conversation. */
|
|
10
|
-
messages: Pinnacle.MessageWithReaction[];
|
|
11
|
-
/** Indicates if more messages are available beyond the current page. */
|
|
12
|
-
hasMore: boolean;
|
|
13
|
-
/** Total number of messages in the conversation. */
|
|
14
|
-
count: number;
|
|
15
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* Message with additional conversation-specific fields including direction and reaction.
|
|
7
|
-
*/
|
|
8
|
-
export interface MessageWithReaction extends Pinnacle.Message {
|
|
9
|
-
/** Direction of the message flow. */
|
|
10
|
-
direction: MessageWithReaction.Direction;
|
|
11
|
-
/**
|
|
12
|
-
* Unicode emoji reaction attached to this message. <br>
|
|
13
|
-
*
|
|
14
|
-
* Null indicates no reaction has been added.
|
|
15
|
-
*/
|
|
16
|
-
reaction: string | null;
|
|
17
|
-
}
|
|
18
|
-
export declare namespace MessageWithReaction {
|
|
19
|
-
/**
|
|
20
|
-
* Direction of the message flow.
|
|
21
|
-
*/
|
|
22
|
-
type Direction = "INBOUND" | "OUTBOUND";
|
|
23
|
-
const Direction: {
|
|
24
|
-
readonly Inbound: "INBOUND";
|
|
25
|
-
readonly Outbound: "OUTBOUND";
|
|
26
|
-
};
|
|
27
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MessageWithReaction = void 0;
|
|
7
|
-
var MessageWithReaction;
|
|
8
|
-
(function (MessageWithReaction) {
|
|
9
|
-
MessageWithReaction.Direction = {
|
|
10
|
-
Inbound: "INBOUND",
|
|
11
|
-
Outbound: "OUTBOUND",
|
|
12
|
-
};
|
|
13
|
-
})(MessageWithReaction || (exports.MessageWithReaction = MessageWithReaction = {}));
|
package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../../../../index.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {}
|
|
8
|
-
*/
|
|
9
|
-
export interface ConversationsListMessagesRequest {
|
|
10
|
-
/** Zero-based index for pagination. */
|
|
11
|
-
pageIndex?: number;
|
|
12
|
-
/** Number of messages to return per page. */
|
|
13
|
-
pageSize?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Sort order for messages. <br>
|
|
16
|
-
*
|
|
17
|
-
* - `asc`: Oldest messages first
|
|
18
|
-
* - `desc`: Newest messages first (default)
|
|
19
|
-
*/
|
|
20
|
-
sortOrder?: Pinnacle.ConversationsListMessagesRequestSortOrder;
|
|
21
|
-
/**
|
|
22
|
-
* Filter messages by direction. <br>
|
|
23
|
-
*
|
|
24
|
-
* - `INBOUND`: Messages received from contacts
|
|
25
|
-
* - `OUTBOUND`: Messages sent to contacts
|
|
26
|
-
*/
|
|
27
|
-
direction?: Pinnacle.ConversationsListMessagesRequestDirection;
|
|
28
|
-
/** Filter messages by delivery status. */
|
|
29
|
-
status?: Pinnacle.ConversationsListMessagesRequestStatus;
|
|
30
|
-
/** Filter messages by protocol type. */
|
|
31
|
-
type?: Pinnacle.ConversationsListMessagesRequestType;
|
|
32
|
-
/** Filter messages sent on or after this date (ISO 8601 format). */
|
|
33
|
-
dateFrom?: string;
|
|
34
|
-
/** Filter messages sent on or before this date (ISO 8601 format). */
|
|
35
|
-
dateTo?: string;
|
|
36
|
-
}
|
package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type ConversationsListMessagesRequestDirection = "INBOUND" | "OUTBOUND";
|
|
5
|
-
export declare const ConversationsListMessagesRequestDirection: {
|
|
6
|
-
readonly Inbound: "INBOUND";
|
|
7
|
-
readonly Outbound: "OUTBOUND";
|
|
8
|
-
};
|
package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type ConversationsListMessagesRequestSortOrder = "asc" | "desc";
|
|
5
|
-
export declare const ConversationsListMessagesRequestSortOrder: {
|
|
6
|
-
readonly Asc: "asc";
|
|
7
|
-
readonly Desc: "desc";
|
|
8
|
-
};
|
package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type ConversationsListMessagesRequestStatus = "PENDING" | "SENT" | "SEND_FAILED" | "DELIVERED" | "DELIVERY_FAILED" | "RECEIVED" | "READ";
|
|
5
|
-
export declare const ConversationsListMessagesRequestStatus: {
|
|
6
|
-
readonly Pending: "PENDING";
|
|
7
|
-
readonly Sent: "SENT";
|
|
8
|
-
readonly SendFailed: "SEND_FAILED";
|
|
9
|
-
readonly Delivered: "DELIVERED";
|
|
10
|
-
readonly DeliveryFailed: "DELIVERY_FAILED";
|
|
11
|
-
readonly Received: "RECEIVED";
|
|
12
|
-
readonly Read: "READ";
|
|
13
|
-
};
|
package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export const ConversationsListMessagesRequestStatus = {
|
|
5
|
-
Pending: "PENDING",
|
|
6
|
-
Sent: "SENT",
|
|
7
|
-
SendFailed: "SEND_FAILED",
|
|
8
|
-
Delivered: "DELIVERED",
|
|
9
|
-
DeliveryFailed: "DELIVERY_FAILED",
|
|
10
|
-
Received: "RECEIVED",
|
|
11
|
-
Read: "READ",
|
|
12
|
-
};
|
package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type ConversationsListMessagesRequestType = "SMS" | "MMS" | "RCS";
|
|
5
|
-
export declare const ConversationsListMessagesRequestType: {
|
|
6
|
-
readonly Sms: "SMS";
|
|
7
|
-
readonly Mms: "MMS";
|
|
8
|
-
readonly Rcs: "RCS";
|
|
9
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../index.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* Paginated list of messages in a conversation.
|
|
7
|
-
*/
|
|
8
|
-
export interface MessageList {
|
|
9
|
-
/** Array of messages in the conversation. */
|
|
10
|
-
messages: Pinnacle.MessageWithReaction[];
|
|
11
|
-
/** Indicates if more messages are available beyond the current page. */
|
|
12
|
-
hasMore: boolean;
|
|
13
|
-
/** Total number of messages in the conversation. */
|
|
14
|
-
count: number;
|
|
15
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../index.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* Message with additional conversation-specific fields including direction and reaction.
|
|
7
|
-
*/
|
|
8
|
-
export interface MessageWithReaction extends Pinnacle.Message {
|
|
9
|
-
/** Direction of the message flow. */
|
|
10
|
-
direction: MessageWithReaction.Direction;
|
|
11
|
-
/**
|
|
12
|
-
* Unicode emoji reaction attached to this message. <br>
|
|
13
|
-
*
|
|
14
|
-
* Null indicates no reaction has been added.
|
|
15
|
-
*/
|
|
16
|
-
reaction: string | null;
|
|
17
|
-
}
|
|
18
|
-
export declare namespace MessageWithReaction {
|
|
19
|
-
/**
|
|
20
|
-
* Direction of the message flow.
|
|
21
|
-
*/
|
|
22
|
-
type Direction = "INBOUND" | "OUTBOUND";
|
|
23
|
-
const Direction: {
|
|
24
|
-
readonly Inbound: "INBOUND";
|
|
25
|
-
readonly Outbound: "OUTBOUND";
|
|
26
|
-
};
|
|
27
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export var MessageWithReaction;
|
|
5
|
-
(function (MessageWithReaction) {
|
|
6
|
-
MessageWithReaction.Direction = {
|
|
7
|
-
Inbound: "INBOUND",
|
|
8
|
-
Outbound: "OUTBOUND",
|
|
9
|
-
};
|
|
10
|
-
})(MessageWithReaction || (MessageWithReaction = {}));
|