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.
Files changed (210) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/errors/NotFoundError.d.ts +2 -1
  3. package/dist/cjs/api/resources/brands/client/Client.d.ts +13 -13
  4. package/dist/cjs/api/resources/brands/client/Client.js +10 -10
  5. package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +3 -6
  6. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +13 -14
  7. package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +11 -12
  8. package/dist/cjs/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.ts +8 -8
  9. package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +10 -11
  10. package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +8 -9
  11. package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +3 -4
  12. package/dist/cjs/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.ts +1 -1
  13. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +12 -12
  14. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +10 -10
  15. package/dist/cjs/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.ts +7 -7
  16. package/dist/cjs/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.ts +1 -1
  17. package/dist/cjs/api/resources/contacts/client/Client.d.ts +2 -4
  18. package/dist/cjs/api/resources/contacts/client/Client.js +3 -5
  19. package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +2 -4
  20. package/dist/cjs/api/resources/contacts/client/requests/UpdateContactParams.d.ts +3 -3
  21. package/dist/cjs/api/resources/conversations/client/Client.d.ts +4 -21
  22. package/dist/cjs/api/resources/conversations/client/Client.js +4 -99
  23. package/dist/cjs/api/resources/conversations/client/requests/ListConversationsParams.d.ts +6 -11
  24. package/dist/cjs/api/resources/conversations/client/requests/UpdateConversationParams.d.ts +3 -3
  25. package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +0 -1
  26. package/dist/cjs/api/resources/conversations/index.d.ts +0 -1
  27. package/dist/cjs/api/resources/conversations/index.js +0 -1
  28. package/dist/cjs/api/resources/index.d.ts +1 -2
  29. package/dist/cjs/api/resources/index.js +2 -3
  30. package/dist/cjs/api/resources/messages/client/Client.d.ts +4 -4
  31. package/dist/cjs/api/resources/messages/client/Client.js +3 -3
  32. package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +3 -3
  33. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +1 -1
  35. package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.ts +3 -12
  36. package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +5 -5
  37. package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +4 -4
  38. package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +12 -12
  39. package/dist/cjs/api/resources/status/resources/get/client/Client.js +8 -8
  40. package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +2 -2
  41. package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +2 -2
  42. package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.ts +3 -3
  43. package/dist/cjs/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.ts +1 -1
  44. package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +1 -1
  45. package/dist/cjs/api/resources/tools/resources/file/client/Client.js +1 -1
  46. package/dist/cjs/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.ts +11 -3
  47. package/dist/cjs/api/types/AttachWebhookParams.d.ts +1 -1
  48. package/dist/cjs/api/types/AttachedPhoneNumberResult.d.ts +2 -2
  49. package/dist/cjs/api/types/AutofillCampaignParams.d.ts +2 -7
  50. package/dist/cjs/api/types/AutofillDlcCampaignResponse.d.ts +4 -4
  51. package/dist/cjs/api/types/BrandStatus.d.ts +2 -2
  52. package/dist/cjs/api/types/ButtonClickedData.d.ts +1 -1
  53. package/dist/cjs/api/types/CampaignQuery.d.ts +1 -6
  54. package/dist/cjs/api/types/ConfiguredWebhook.d.ts +2 -2
  55. package/dist/cjs/api/types/Contact.d.ts +2 -2
  56. package/dist/cjs/api/types/ContactId.d.ts +2 -2
  57. package/dist/cjs/api/types/Conversation.d.ts +7 -7
  58. package/dist/cjs/api/types/ConversationList.d.ts +4 -4
  59. package/dist/cjs/api/types/DetachedPhoneNumberResult.d.ts +2 -2
  60. package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +2 -2
  61. package/dist/cjs/api/types/DlcCampaignStatus.d.ts +2 -2
  62. package/dist/cjs/api/types/DlcCampaignWithExtendedBrandAndStatus.d.ts +2 -2
  63. package/dist/cjs/api/types/ExtendedBrand.d.ts +2 -2
  64. package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +2 -2
  65. package/dist/cjs/api/types/GetConversationParams.d.ts +1 -1
  66. package/dist/cjs/api/types/LinkClickEvent.d.ts +4 -0
  67. package/dist/cjs/api/types/Message.d.ts +2 -2
  68. package/dist/cjs/api/types/MessageEvent.d.ts +4 -10
  69. package/dist/cjs/api/types/RcsCampaign.d.ts +1 -1
  70. package/dist/cjs/api/types/RcsCampaignStatus.d.ts +2 -2
  71. package/dist/cjs/api/types/ReactionResult.d.ts +4 -4
  72. package/dist/cjs/api/types/ScheduledMessaage.d.ts +2 -2
  73. package/dist/cjs/api/types/SentMmsDetails.d.ts +2 -2
  74. package/dist/cjs/api/types/SentRcsDetails.d.ts +2 -2
  75. package/dist/cjs/api/types/SentSmsDetails.d.ts +2 -2
  76. package/dist/cjs/api/types/TollFreeCampaign.d.ts +2 -2
  77. package/dist/cjs/api/types/TollFreeCampaignStatus.d.ts +2 -2
  78. package/dist/cjs/api/types/UpdatedContactId.d.ts +2 -2
  79. package/dist/cjs/api/types/ValidateCampaignParams.d.ts +2 -7
  80. package/dist/cjs/api/types/Vcard.d.ts +2 -2
  81. package/dist/cjs/api/types/VcardResource.d.ts +2 -2
  82. package/dist/cjs/api/types/Webhooks.d.ts +2 -2
  83. package/dist/cjs/api/types/index.d.ts +0 -3
  84. package/dist/cjs/api/types/index.js +0 -3
  85. package/dist/cjs/version.d.ts +1 -1
  86. package/dist/cjs/version.js +1 -1
  87. package/dist/esm/Client.mjs +2 -2
  88. package/dist/esm/api/errors/NotFoundError.d.mts +2 -1
  89. package/dist/esm/api/resources/brands/client/Client.d.mts +13 -13
  90. package/dist/esm/api/resources/brands/client/Client.mjs +10 -10
  91. package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +3 -6
  92. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +13 -14
  93. package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +11 -12
  94. package/dist/esm/api/resources/campaigns/resources/dlc/client/requests/UpsertDlcCampaignParams.d.mts +8 -8
  95. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +10 -11
  96. package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +8 -9
  97. package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +3 -4
  98. package/dist/esm/api/resources/campaigns/resources/rcs/types/RcsAutofillResponse.d.mts +1 -1
  99. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +12 -12
  100. package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +10 -10
  101. package/dist/esm/api/resources/campaigns/resources/tollFree/client/requests/UpsertTollFreeCampaignParams.d.mts +7 -7
  102. package/dist/esm/api/resources/campaigns/resources/tollFree/types/TollFreeAutofillResponse.d.mts +1 -1
  103. package/dist/esm/api/resources/contacts/client/Client.d.mts +2 -4
  104. package/dist/esm/api/resources/contacts/client/Client.mjs +3 -5
  105. package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +2 -4
  106. package/dist/esm/api/resources/contacts/client/requests/UpdateContactParams.d.mts +3 -3
  107. package/dist/esm/api/resources/conversations/client/Client.d.mts +4 -21
  108. package/dist/esm/api/resources/conversations/client/Client.mjs +4 -99
  109. package/dist/esm/api/resources/conversations/client/requests/ListConversationsParams.d.mts +6 -11
  110. package/dist/esm/api/resources/conversations/client/requests/UpdateConversationParams.d.mts +3 -3
  111. package/dist/esm/api/resources/conversations/client/requests/index.d.mts +0 -1
  112. package/dist/esm/api/resources/conversations/index.d.mts +0 -1
  113. package/dist/esm/api/resources/conversations/index.mjs +0 -1
  114. package/dist/esm/api/resources/index.d.mts +1 -2
  115. package/dist/esm/api/resources/index.mjs +1 -2
  116. package/dist/esm/api/resources/messages/client/Client.d.mts +4 -4
  117. package/dist/esm/api/resources/messages/client/Client.mjs +3 -3
  118. package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +3 -3
  119. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +1 -1
  120. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +1 -1
  121. package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/requests/AttachCampaignParams.d.mts +3 -12
  122. package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +5 -5
  123. package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +4 -4
  124. package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +12 -12
  125. package/dist/esm/api/resources/status/resources/get/client/Client.mjs +8 -8
  126. package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +2 -2
  127. package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +2 -2
  128. package/dist/esm/api/resources/tools/resources/contactCard/client/requests/GetVcardParams.d.mts +3 -3
  129. package/dist/esm/api/resources/tools/resources/contactCard/client/requests/UpsertVcardParams.d.mts +1 -1
  130. package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +1 -1
  131. package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +1 -1
  132. package/dist/esm/api/resources/tools/resources/file/client/requests/RefreshFileParams.d.mts +11 -3
  133. package/dist/esm/api/types/AttachWebhookParams.d.mts +1 -1
  134. package/dist/esm/api/types/AttachedPhoneNumberResult.d.mts +2 -2
  135. package/dist/esm/api/types/AutofillCampaignParams.d.mts +2 -7
  136. package/dist/esm/api/types/AutofillDlcCampaignResponse.d.mts +4 -4
  137. package/dist/esm/api/types/BrandStatus.d.mts +2 -2
  138. package/dist/esm/api/types/ButtonClickedData.d.mts +1 -1
  139. package/dist/esm/api/types/CampaignQuery.d.mts +1 -6
  140. package/dist/esm/api/types/ConfiguredWebhook.d.mts +2 -2
  141. package/dist/esm/api/types/Contact.d.mts +2 -2
  142. package/dist/esm/api/types/ContactId.d.mts +2 -2
  143. package/dist/esm/api/types/Conversation.d.mts +7 -7
  144. package/dist/esm/api/types/ConversationList.d.mts +4 -4
  145. package/dist/esm/api/types/DetachedPhoneNumberResult.d.mts +2 -2
  146. package/dist/esm/api/types/DetachedWebhookInfo.d.mts +2 -2
  147. package/dist/esm/api/types/DlcCampaignStatus.d.mts +2 -2
  148. package/dist/esm/api/types/DlcCampaignWithExtendedBrandAndStatus.d.mts +2 -2
  149. package/dist/esm/api/types/ExtendedBrand.d.mts +2 -2
  150. package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +2 -2
  151. package/dist/esm/api/types/GetConversationParams.d.mts +1 -1
  152. package/dist/esm/api/types/LinkClickEvent.d.mts +4 -0
  153. package/dist/esm/api/types/Message.d.mts +2 -2
  154. package/dist/esm/api/types/MessageEvent.d.mts +4 -10
  155. package/dist/esm/api/types/RcsCampaign.d.mts +1 -1
  156. package/dist/esm/api/types/RcsCampaignStatus.d.mts +2 -2
  157. package/dist/esm/api/types/ReactionResult.d.mts +4 -4
  158. package/dist/esm/api/types/ScheduledMessaage.d.mts +2 -2
  159. package/dist/esm/api/types/SentMmsDetails.d.mts +2 -2
  160. package/dist/esm/api/types/SentRcsDetails.d.mts +2 -2
  161. package/dist/esm/api/types/SentSmsDetails.d.mts +2 -2
  162. package/dist/esm/api/types/TollFreeCampaign.d.mts +2 -2
  163. package/dist/esm/api/types/TollFreeCampaignStatus.d.mts +2 -2
  164. package/dist/esm/api/types/UpdatedContactId.d.mts +2 -2
  165. package/dist/esm/api/types/ValidateCampaignParams.d.mts +2 -7
  166. package/dist/esm/api/types/Vcard.d.mts +2 -2
  167. package/dist/esm/api/types/VcardResource.d.mts +2 -2
  168. package/dist/esm/api/types/Webhooks.d.mts +2 -2
  169. package/dist/esm/api/types/index.d.mts +0 -3
  170. package/dist/esm/api/types/index.mjs +0 -3
  171. package/dist/esm/version.d.mts +1 -1
  172. package/dist/esm/version.mjs +1 -1
  173. package/package.json +1 -1
  174. package/reference.md +66 -144
  175. package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.ts +0 -36
  176. package/dist/cjs/api/resources/conversations/client/requests/ConversationsListMessagesRequest.js +0 -5
  177. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.ts +0 -8
  178. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestDirection.js +0 -10
  179. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.ts +0 -8
  180. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.js +0 -10
  181. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.ts +0 -13
  182. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestStatus.js +0 -15
  183. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.d.ts +0 -9
  184. package/dist/cjs/api/resources/conversations/types/ConversationsListMessagesRequestType.js +0 -11
  185. package/dist/cjs/api/resources/conversations/types/index.d.ts +0 -4
  186. package/dist/cjs/api/resources/conversations/types/index.js +0 -20
  187. package/dist/cjs/api/types/MessageList.d.ts +0 -15
  188. package/dist/cjs/api/types/MessageList.js +0 -5
  189. package/dist/cjs/api/types/MessageWithReaction.d.ts +0 -27
  190. package/dist/cjs/api/types/MessageWithReaction.js +0 -13
  191. package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -6
  192. package/dist/cjs/api/types/NotFoundErrorBody.js +0 -5
  193. package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.d.mts +0 -36
  194. package/dist/esm/api/resources/conversations/client/requests/ConversationsListMessagesRequest.mjs +0 -4
  195. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.d.mts +0 -8
  196. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestDirection.mjs +0 -7
  197. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.d.mts +0 -8
  198. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestSortOrder.mjs +0 -7
  199. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.d.mts +0 -13
  200. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestStatus.mjs +0 -12
  201. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.d.mts +0 -9
  202. package/dist/esm/api/resources/conversations/types/ConversationsListMessagesRequestType.mjs +0 -8
  203. package/dist/esm/api/resources/conversations/types/index.d.mts +0 -4
  204. package/dist/esm/api/resources/conversations/types/index.mjs +0 -4
  205. package/dist/esm/api/types/MessageList.d.mts +0 -15
  206. package/dist/esm/api/types/MessageList.mjs +0 -4
  207. package/dist/esm/api/types/MessageWithReaction.d.mts +0 -27
  208. package/dist/esm/api/types/MessageWithReaction.mjs +0 -10
  209. package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -6
  210. package/dist/esm/api/types/NotFoundErrorBody.mjs +0 -4
@@ -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
- };
@@ -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,4 +0,0 @@
1
- export * from "./ConversationsListMessagesRequestSortOrder.js";
2
- export * from "./ConversationsListMessagesRequestDirection.js";
3
- export * from "./ConversationsListMessagesRequestStatus.js";
4
- export * from "./ConversationsListMessagesRequestType.js";
@@ -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,5 +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 });
@@ -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 = {}));
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface NotFoundErrorBody {
5
- error?: string;
6
- }
@@ -1,5 +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 });
@@ -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
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -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
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const ConversationsListMessagesRequestDirection = {
5
- Inbound: "INBOUND",
6
- Outbound: "OUTBOUND",
7
- };
@@ -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
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const ConversationsListMessagesRequestSortOrder = {
5
- Asc: "asc",
6
- Desc: "desc",
7
- };
@@ -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
- };
@@ -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
- };
@@ -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,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const ConversationsListMessagesRequestType = {
5
- Sms: "SMS",
6
- Mms: "MMS",
7
- Rcs: "RCS",
8
- };
@@ -1,4 +0,0 @@
1
- export * from "./ConversationsListMessagesRequestSortOrder.mjs";
2
- export * from "./ConversationsListMessagesRequestDirection.mjs";
3
- export * from "./ConversationsListMessagesRequestStatus.mjs";
4
- export * from "./ConversationsListMessagesRequestType.mjs";
@@ -1,4 +0,0 @@
1
- export * from "./ConversationsListMessagesRequestSortOrder.mjs";
2
- export * from "./ConversationsListMessagesRequestDirection.mjs";
3
- export * from "./ConversationsListMessagesRequestStatus.mjs";
4
- export * from "./ConversationsListMessagesRequestType.mjs";
@@ -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,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -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 = {}));
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface NotFoundErrorBody {
5
- error?: string;
6
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};