rcs-js 2.0.14 → 2.0.16
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/resources/campaigns/resources/rcs/client/Client.d.ts +6 -12
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +6 -12
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.ts +12 -32
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +0 -10
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +0 -10
- package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/phoneNumbers/client/Client.js +0 -5
- package/dist/cjs/api/resources/phoneNumbers/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/index.js +1 -2
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +43 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +157 -0
- package/dist/cjs/api/resources/webhooks/client/requests/AttachWebhookParams.d.ts +23 -0
- package/dist/cjs/api/resources/webhooks/client/requests/DetachWebhookParams.d.ts +13 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/types/AttachWebhookResult.d.ts +22 -0
- package/dist/cjs/api/types/BaseRichMessage.d.ts +18 -1
- package/dist/cjs/api/types/DetachWebhookResult.d.ts +9 -0
- package/dist/cjs/api/types/ExtendedBrandWithVetting.d.ts +2 -2
- package/dist/cjs/api/types/ExtendedRcsCampaign.d.ts +6 -20
- package/dist/cjs/api/types/FailedSender.d.ts +6 -0
- package/dist/cjs/api/types/FailedSender.js +3 -0
- package/dist/cjs/api/types/RcsCampaign.d.ts +6 -20
- package/dist/cjs/api/types/RcsCampaignSummary.d.ts +0 -2
- package/dist/cjs/api/types/RcsCardsContent.d.ts +1 -1
- package/dist/cjs/api/types/RcsMediaContent.d.ts +1 -1
- package/dist/cjs/api/types/RcsValidateContent.d.ts +1 -1
- package/dist/cjs/api/types/RichCards.d.ts +1 -1
- package/dist/cjs/api/types/RichCardsMessage.d.ts +15 -1
- package/dist/cjs/api/types/RichMediaMessage.d.ts +1 -1
- package/dist/cjs/api/types/RichText.d.ts +1 -1
- package/dist/cjs/api/types/{SendRichMessageOptions.d.ts → SendRichMessageOptions4.d.ts} +1 -1
- package/dist/cjs/api/types/SendRichMessageOptions4.js +3 -0
- package/dist/cjs/api/types/SentRichMessageFallbackMms.d.ts +1 -1
- package/dist/cjs/api/types/SentRichMessageFallbackSms.d.ts +1 -1
- package/dist/cjs/api/types/SuccessfulConversationUpdate.d.ts +1 -1
- package/dist/cjs/api/types/VcardContent.d.ts +1 -1
- package/dist/cjs/api/types/WebhookEventEnum.d.ts +3 -2
- package/dist/cjs/api/types/WebhookEventEnum.js +3 -2
- package/dist/cjs/api/types/index.d.ts +4 -5
- package/dist/cjs/api/types/index.js +4 -5
- 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/resources/campaigns/resources/rcs/client/Client.d.mts +6 -12
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +6 -12
- package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts +12 -32
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +0 -10
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +0 -10
- package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +0 -3
- package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +0 -5
- package/dist/esm/api/resources/phoneNumbers/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/phoneNumbers/resources/index.mjs +0 -1
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +43 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +157 -0
- package/dist/esm/api/resources/webhooks/client/requests/AttachWebhookParams.d.mts +23 -0
- package/dist/esm/api/resources/webhooks/client/requests/DetachWebhookParams.d.mts +13 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +2 -0
- package/dist/esm/api/types/AttachWebhookResult.d.mts +22 -0
- package/dist/esm/api/types/BaseRichMessage.d.mts +18 -1
- package/dist/esm/api/types/DetachWebhookResult.d.mts +9 -0
- package/dist/esm/api/types/ExtendedBrandWithVetting.d.mts +2 -2
- package/dist/esm/api/types/ExtendedRcsCampaign.d.mts +6 -20
- package/dist/esm/api/types/FailedSender.d.mts +6 -0
- package/dist/esm/api/types/FailedSender.mjs +2 -0
- package/dist/esm/api/types/RcsCampaign.d.mts +6 -20
- package/dist/esm/api/types/RcsCampaignSummary.d.mts +0 -2
- package/dist/esm/api/types/RcsCardsContent.d.mts +1 -1
- package/dist/esm/api/types/RcsMediaContent.d.mts +1 -1
- package/dist/esm/api/types/RcsValidateContent.d.mts +1 -1
- package/dist/esm/api/types/RichCards.d.mts +1 -1
- package/dist/esm/api/types/RichCardsMessage.d.mts +15 -1
- package/dist/esm/api/types/RichMediaMessage.d.mts +1 -1
- package/dist/esm/api/types/RichText.d.mts +1 -1
- package/dist/esm/api/types/{SendRichMessageOptions.d.mts → SendRichMessageOptions4.d.mts} +1 -1
- package/dist/esm/api/types/SendRichMessageOptions4.mjs +2 -0
- package/dist/esm/api/types/SentRichMessageFallbackMms.d.mts +1 -1
- package/dist/esm/api/types/SentRichMessageFallbackSms.d.mts +1 -1
- package/dist/esm/api/types/SuccessfulConversationUpdate.d.mts +1 -1
- package/dist/esm/api/types/VcardContent.d.mts +1 -1
- package/dist/esm/api/types/WebhookEventEnum.d.mts +3 -2
- package/dist/esm/api/types/WebhookEventEnum.mjs +3 -2
- package/dist/esm/api/types/index.d.mts +4 -5
- package/dist/esm/api/types/index.mjs +4 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +143 -182
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +0 -63
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +0 -231
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/index.js +0 -2
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/index.d.ts +0 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/index.js +0 -17
- package/dist/cjs/api/types/AttachWebhookParams.d.ts +0 -19
- package/dist/cjs/api/types/ConfiguredWebhook.d.ts +0 -32
- package/dist/cjs/api/types/DetachedWebhookInfo.d.ts +0 -8
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.d.ts +0 -37
- package/dist/cjs/api/types/RcsCampaignUseCaseEnum.js +0 -40
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +0 -63
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +0 -194
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/index.d.mts +0 -1
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/index.mjs +0 -1
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/index.d.mts +0 -1
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/index.mjs +0 -1
- package/dist/esm/api/types/AttachWebhookParams.d.mts +0 -19
- package/dist/esm/api/types/ConfiguredWebhook.d.mts +0 -32
- package/dist/esm/api/types/DetachedWebhookInfo.d.mts +0 -8
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.d.mts +0 -37
- package/dist/esm/api/types/RcsCampaignUseCaseEnum.mjs +0 -37
- /package/dist/cjs/api/{types → resources/webhooks/client/requests}/AttachWebhookParams.js +0 -0
- /package/dist/cjs/api/{types/ConfiguredWebhook.js → resources/webhooks/client/requests/DetachWebhookParams.js} +0 -0
- /package/dist/cjs/api/types/{DetachedWebhookInfo.js → AttachWebhookResult.js} +0 -0
- /package/dist/cjs/api/types/{SendRichMessageOptions.js → DetachWebhookResult.js} +0 -0
- /package/dist/esm/api/{types → resources/webhooks/client/requests}/AttachWebhookParams.mjs +0 -0
- /package/dist/esm/api/{types/ConfiguredWebhook.mjs → resources/webhooks/client/requests/DetachWebhookParams.mjs} +0 -0
- /package/dist/esm/api/types/{DetachedWebhookInfo.mjs → AttachWebhookResult.mjs} +0 -0
- /package/dist/esm/api/types/{SendRichMessageOptions.mjs → DetachWebhookResult.mjs} +0 -0
|
@@ -13,21 +13,15 @@ export interface ExtendedRcsCampaign {
|
|
|
13
13
|
/** Legal documentation links. */
|
|
14
14
|
links?: ExtendedRcsCampaign.Links;
|
|
15
15
|
status: Pinnacle.ProfileStatusEnum;
|
|
16
|
-
/** Use case
|
|
17
|
-
|
|
18
|
-
/** Details on how opt-in is acquired. If it is done through a website or app, provide the link. See the [Opt-In Terms and Conditions](/guides/campaigns/rcs-compliance#opt-in-terms-and-conditions) section for requirements. */
|
|
19
|
-
optInTermsAndConditions?: string;
|
|
16
|
+
/** Detailed summary of what the brand is and how this agent will be used. See the [Use Case Behavior](/guides/campaigns/rcs-compliance#use-case-behavior) section for requirements. */
|
|
17
|
+
useCaseDescription?: string;
|
|
20
18
|
messagingType?: Pinnacle.RcsMessagingTypeEnum;
|
|
21
|
-
/**
|
|
22
|
-
|
|
19
|
+
/** URL to the opt-in form or a URL to a screenshot of the opt-in CTA. */
|
|
20
|
+
ctaMedia?: string;
|
|
21
|
+
/** Details on how opt-in is acquired. If it is done through a website or app, provide the link. See the [Opt-In Method](/guides/campaigns/rcs-compliance#opt-in-method) section for requirements. */
|
|
22
|
+
optInMethod?: string;
|
|
23
23
|
keywords?: ExtendedRcsCampaign.Keywords;
|
|
24
24
|
traffic?: ExtendedRcsCampaign.Traffic;
|
|
25
|
-
/** Explanation of how the agent is triggered. This includes how the first message is delivered, whether messages follow a schedule or triggered by user actions, and any external triggers. See the [Agent Triggers](/guides/campaigns/rcs-compliance#agent-triggers) section for requirements. */
|
|
26
|
-
agentTriggers?: string;
|
|
27
|
-
/** Description of all agent interactions, including primary and secondary use cases. See the [Interaction Description](/guides/campaigns/rcs-compliance#interaction-description) section for requirements. */
|
|
28
|
-
interactionDescription?: string;
|
|
29
|
-
/** Whether the agent supports conversational flows or respond to P2A messages from the users. Set to false for one-way messages from agent to user. */
|
|
30
|
-
isConversational?: boolean;
|
|
31
25
|
/** Required text that appears next to the opt-in checkbox for your opt-in form. This checkbox has to be unchecked by default. See the [CTA Language](/guides/campaigns/rcs-compliance#cta-language-opt-in-disclosure) section for requirements. */
|
|
32
26
|
ctaLanguage?: string;
|
|
33
27
|
/** Instructions on how an external reviewer can trigger messages and an example flow from the agent. This is usually an inbound text message to the agent that will start a flow of messages between the agent and the user. See the [Demo Trigger](/guides/campaigns/rcs-compliance#demo-trigger) section for requirements. */
|
|
@@ -93,14 +87,6 @@ export declare namespace ExtendedRcsCampaign {
|
|
|
93
87
|
/** Terms of service URL. */
|
|
94
88
|
termsOfService?: string;
|
|
95
89
|
}
|
|
96
|
-
/**
|
|
97
|
-
* Use case classification for the campaign.
|
|
98
|
-
*/
|
|
99
|
-
interface UseCase {
|
|
100
|
-
/** Detailed summary of what the brand is and how this agent will be used. See the [Use Case Behavior](/guides/campaigns/rcs-compliance#use-case-behavior) section for requirements. */
|
|
101
|
-
behavior?: string;
|
|
102
|
-
value?: Pinnacle.RcsCampaignUseCaseEnum;
|
|
103
|
-
}
|
|
104
90
|
interface Keywords {
|
|
105
91
|
HELP?: Keywords.Help;
|
|
106
92
|
OPT_IN?: Keywords.OptIn;
|
|
@@ -8,21 +8,15 @@ export interface RcsCampaign {
|
|
|
8
8
|
expectedAgentResponses?: string[];
|
|
9
9
|
/** Legal documentation links. */
|
|
10
10
|
links?: RcsCampaign.Links;
|
|
11
|
-
/** Use case
|
|
12
|
-
|
|
13
|
-
/** Details on how opt-in is acquired. If it is done through a website or app, provide the link. See the [Opt-In Terms and Conditions](/guides/campaigns/rcs-compliance#opt-in-terms-and-conditions) section for requirements. */
|
|
14
|
-
optInTermsAndConditions?: string;
|
|
11
|
+
/** Detailed summary of what the brand is and how this agent will be used. See the [Use Case Behavior](/guides/campaigns/rcs-compliance#use-case-behavior) section for requirements. */
|
|
12
|
+
useCaseDescription?: string;
|
|
15
13
|
messagingType?: Pinnacle.RcsMessagingTypeEnum;
|
|
16
|
-
/**
|
|
17
|
-
|
|
14
|
+
/** URL to the opt-in form or a URL to a screenshot of the opt-in CTA. */
|
|
15
|
+
ctaMedia?: string;
|
|
16
|
+
/** Details on how opt-in is acquired. If it is done through a website or app, provide the link. See the [Opt-In Method](/guides/campaigns/rcs-compliance#opt-in-method) section for requirements. */
|
|
17
|
+
optInMethod?: string;
|
|
18
18
|
keywords?: RcsCampaign.Keywords;
|
|
19
19
|
traffic?: RcsCampaign.Traffic;
|
|
20
|
-
/** Explanation of how the agent is triggered. This includes how the first message is delivered, whether messages follow a schedule or triggered by user actions, and any external triggers. See the [Agent Triggers](/guides/campaigns/rcs-compliance#agent-triggers) section for requirements. */
|
|
21
|
-
agentTriggers?: string;
|
|
22
|
-
/** Description of all agent interactions, including primary and secondary use cases. See the [Interaction Description](/guides/campaigns/rcs-compliance#interaction-description) section for requirements. */
|
|
23
|
-
interactionDescription?: string;
|
|
24
|
-
/** Whether the agent supports conversational flows or respond to P2A messages from the users. Set to false for one-way messages from agent to user. */
|
|
25
|
-
isConversational?: boolean;
|
|
26
20
|
/** Required text that appears next to the opt-in checkbox for your opt-in form. This checkbox has to be unchecked by default. See the [CTA Language](/guides/campaigns/rcs-compliance#cta-language-opt-in-disclosure) section for requirements. */
|
|
27
21
|
ctaLanguage?: string;
|
|
28
22
|
/** Instructions on how an external reviewer can trigger messages and an example flow from the agent. This is usually an inbound text message to the agent that will start a flow of messages between the agent and the user. See the [Demo Trigger](/guides/campaigns/rcs-compliance#demo-trigger) section for requirements. */
|
|
@@ -88,14 +82,6 @@ export declare namespace RcsCampaign {
|
|
|
88
82
|
/** Terms of service URL. */
|
|
89
83
|
termsOfService?: string;
|
|
90
84
|
}
|
|
91
|
-
/**
|
|
92
|
-
* Use case classification for the campaign.
|
|
93
|
-
*/
|
|
94
|
-
interface UseCase {
|
|
95
|
-
/** Detailed summary of what the brand is and how this agent will be used. See the [Use Case Behavior](/guides/campaigns/rcs-compliance#use-case-behavior) section for requirements. */
|
|
96
|
-
behavior?: string;
|
|
97
|
-
value?: Pinnacle.RcsCampaignUseCaseEnum;
|
|
98
|
-
}
|
|
99
85
|
interface Keywords {
|
|
100
86
|
HELP?: Keywords.Help;
|
|
101
87
|
OPT_IN?: Keywords.OptIn;
|
|
@@ -7,8 +7,6 @@ export interface RcsCampaignSummary {
|
|
|
7
7
|
status: RcsCampaignSummary.Status;
|
|
8
8
|
/** Brand ID associated with this campaign. */
|
|
9
9
|
brandId?: string;
|
|
10
|
-
/** Primary use case for this campaign. */
|
|
11
|
-
useCase?: string;
|
|
12
10
|
/** RCS agent ID associated with this campaign. */
|
|
13
11
|
agentId?: string;
|
|
14
12
|
/** ISO 8601 timestamp of when the campaign was created. */
|
|
@@ -14,7 +14,7 @@ export interface RcsCardsContent {
|
|
|
14
14
|
* List of interactive quick reply buttons in the message. <br><br>
|
|
15
15
|
* **Limit:** 10 max
|
|
16
16
|
*/
|
|
17
|
-
quickReplies
|
|
17
|
+
quickReplies?: Pinnacle.RichButton[];
|
|
18
18
|
}
|
|
19
19
|
export declare namespace RcsCardsContent {
|
|
20
20
|
type Cards = Cards.Item[];
|
|
@@ -9,7 +9,7 @@ Pinnacle.RichText
|
|
|
9
9
|
* See [supported media types](https://app.pinnacle.sh/supported-file-types?type=RCS-MEDIA). */
|
|
10
10
|
| {
|
|
11
11
|
media: string;
|
|
12
|
-
quickReplies
|
|
12
|
+
quickReplies?: Pinnacle.RichButton[] | undefined;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Message containing cards, each with its own title, subtitle, and/or buttons. Quick replies can also be added. <br>
|
|
@@ -14,7 +14,7 @@ export interface RichCards {
|
|
|
14
14
|
* List of interactive quick reply buttons in the message. <br><br>
|
|
15
15
|
* **Limit:** 10 max
|
|
16
16
|
*/
|
|
17
|
-
quickReplies
|
|
17
|
+
quickReplies?: Pinnacle.RichButton[];
|
|
18
18
|
}
|
|
19
19
|
export declare namespace RichCards {
|
|
20
20
|
type Cards = Cards.Item[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Pinnacle from "../index.js";
|
|
2
2
|
export interface RichCardsMessage extends Pinnacle.RichCards {
|
|
3
|
+
/** Configure how your RCS message is sent and tracked. */
|
|
3
4
|
options?: RichCardsMessage.Options;
|
|
4
5
|
/** Your RCS agent ID which must be prefixed with 'agent_'. */
|
|
5
6
|
from: string;
|
|
@@ -8,7 +9,20 @@ export interface RichCardsMessage extends Pinnacle.RichCards {
|
|
|
8
9
|
to: string;
|
|
9
10
|
}
|
|
10
11
|
export declare namespace RichCardsMessage {
|
|
11
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Configure how your RCS message is sent and tracked.
|
|
14
|
+
*/
|
|
15
|
+
interface Options {
|
|
16
|
+
schedule?: Pinnacle.MessageSchedule;
|
|
17
|
+
tracking?: Pinnacle.Tracking;
|
|
18
|
+
/** Media files and card media will be transcoded to a supported RCS format. This adds a small delay to sending the message. Ignored for rich text messages. */
|
|
19
|
+
transcode?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Validate your message for any unsupported files. <br>
|
|
22
|
+
*
|
|
23
|
+
* If failed, errors will be thrown and the message will not send.
|
|
24
|
+
*/
|
|
25
|
+
validate?: boolean;
|
|
12
26
|
/**
|
|
13
27
|
* Configure standalone card layout options for enhanced visual presentation.
|
|
14
28
|
*
|
|
@@ -7,7 +7,7 @@ export interface RichText {
|
|
|
7
7
|
* List of interactive quick reply buttons in the message. <br><br>
|
|
8
8
|
* **Limit:** 10 max
|
|
9
9
|
*/
|
|
10
|
-
quickReplies
|
|
10
|
+
quickReplies?: Pinnacle.RichButton[];
|
|
11
11
|
/** Text content of the RCS message. */
|
|
12
12
|
text: string;
|
|
13
13
|
}
|
|
@@ -2,7 +2,7 @@ import type * as Pinnacle from "../index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Configure how your RCS message is sent and tracked.
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface SendRichMessageOptions4 {
|
|
6
6
|
schedule?: Pinnacle.MessageSchedule;
|
|
7
7
|
tracking?: Pinnacle.Tracking;
|
|
8
8
|
/** Media files and card media will be transcoded to a supported RCS format. This adds a small delay to sending the message. Ignored for rich text messages. */
|
|
@@ -4,7 +4,7 @@ import type * as Pinnacle from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface SentRichMessageFallbackMms extends Pinnacle.SentMmsDetails {
|
|
6
6
|
/** Indicates that the fallback MMS was sent because the recipient does not support RCS. */
|
|
7
|
-
fallbackSent:
|
|
7
|
+
fallbackSent: true;
|
|
8
8
|
/** Unique identifier of the original RCS message that triggered this fallback. Always begins with the prefix `msg_`. This is the RCS message that could not be delivered — the `messageIds` field on this response refers to the actual MMS message(s) that were sent as the fallback. */
|
|
9
9
|
originalMessageId: string;
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@ import type * as Pinnacle from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface SentRichMessageFallbackSms extends Pinnacle.SentSmsDetails {
|
|
6
6
|
/** Indicates that the fallback SMS was sent because the recipient does not support RCS. */
|
|
7
|
-
fallbackSent:
|
|
7
|
+
fallbackSent: true;
|
|
8
8
|
/** Unique identifier of the original RCS message that triggered this fallback. Always begins with the prefix `msg_`. This is the RCS message that could not be delivered — the `messageId` field on this response refers to the actual SMS that was sent as the fallback. */
|
|
9
9
|
originalMessageId: string;
|
|
10
10
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Types of events that can trigger webhook notifications
|
|
3
|
-
* Subscribe to specific events to receive real-time updates about your
|
|
2
|
+
* Types of events that can trigger webhook notifications.
|
|
3
|
+
* Subscribe to specific events to receive real-time updates about your sender activity.
|
|
4
4
|
* Use `null` to listen to all events.
|
|
5
5
|
*/
|
|
6
6
|
export declare const WebhookEventEnum: {
|
|
7
7
|
readonly MessageStatus: "MESSAGE.STATUS";
|
|
8
8
|
readonly MessageReceived: "MESSAGE.RECEIVED";
|
|
9
|
+
readonly UserTyping: "USER.TYPING";
|
|
9
10
|
};
|
|
10
11
|
export type WebhookEventEnum = (typeof WebhookEventEnum)[keyof typeof WebhookEventEnum];
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.WebhookEventEnum = void 0;
|
|
5
5
|
/**
|
|
6
|
-
* Types of events that can trigger webhook notifications
|
|
7
|
-
* Subscribe to specific events to receive real-time updates about your
|
|
6
|
+
* Types of events that can trigger webhook notifications.
|
|
7
|
+
* Subscribe to specific events to receive real-time updates about your sender activity.
|
|
8
8
|
* Use `null` to listen to all events.
|
|
9
9
|
*/
|
|
10
10
|
exports.WebhookEventEnum = {
|
|
11
11
|
MessageStatus: "MESSAGE.STATUS",
|
|
12
12
|
MessageReceived: "MESSAGE.RECEIVED",
|
|
13
|
+
UserTyping: "USER.TYPING",
|
|
13
14
|
};
|
|
@@ -5,7 +5,7 @@ export * from "./AgentSummary.js";
|
|
|
5
5
|
export * from "./AgentUseCase.js";
|
|
6
6
|
export * from "./AgentWebsiteEntry.js";
|
|
7
7
|
export * from "./AttachedPhoneNumberResult.js";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./AttachWebhookResult.js";
|
|
9
9
|
export * from "./AudienceCountOnly.js";
|
|
10
10
|
export * from "./AudienceSummary.js";
|
|
11
11
|
export * from "./AudienceWithPagination.js";
|
|
@@ -29,7 +29,6 @@ export * from "./CarrierLaunchStatus.js";
|
|
|
29
29
|
export * from "./CompanyEntityTypeEnum.js";
|
|
30
30
|
export * from "./CompanySectorEnum.js";
|
|
31
31
|
export * from "./CompanyTypeEnum.js";
|
|
32
|
-
export * from "./ConfiguredWebhook.js";
|
|
33
32
|
export * from "./Contact.js";
|
|
34
33
|
export * from "./ContactId.js";
|
|
35
34
|
export * from "./Conversation.js";
|
|
@@ -37,7 +36,7 @@ export * from "./ConversationList.js";
|
|
|
37
36
|
export * from "./CreateUrlOptions.js";
|
|
38
37
|
export * from "./DeleteAudienceResponse.js";
|
|
39
38
|
export * from "./DetachedPhoneNumberResult.js";
|
|
40
|
-
export * from "./
|
|
39
|
+
export * from "./DetachWebhookResult.js";
|
|
41
40
|
export * from "./DetailedPhoneNumberEnum.js";
|
|
42
41
|
export * from "./DlcAssignmentStatusEnum.js";
|
|
43
42
|
export * from "./DlcCampaignStatus.js";
|
|
@@ -50,6 +49,7 @@ export * from "./Error_.js";
|
|
|
50
49
|
export * from "./ExtendedBrand.js";
|
|
51
50
|
export * from "./ExtendedBrandWithVetting.js";
|
|
52
51
|
export * from "./ExtendedRcsCampaign.js";
|
|
52
|
+
export * from "./FailedSender.js";
|
|
53
53
|
export * from "./FallbackMessage.js";
|
|
54
54
|
export * from "./GetConversationParams.js";
|
|
55
55
|
export * from "./LinkClickEvent.js";
|
|
@@ -119,7 +119,6 @@ export * from "./RcsButtonTrigger.js";
|
|
|
119
119
|
export * from "./RcsCampaign.js";
|
|
120
120
|
export * from "./RcsCampaignStatus.js";
|
|
121
121
|
export * from "./RcsCampaignSummary.js";
|
|
122
|
-
export * from "./RcsCampaignUseCaseEnum.js";
|
|
123
122
|
export * from "./RcsCapabilitiesResult.js";
|
|
124
123
|
export * from "./RcsCapability.js";
|
|
125
124
|
export * from "./RcsCardsContent.js";
|
|
@@ -145,7 +144,7 @@ export * from "./ScheduledBlastDetails.js";
|
|
|
145
144
|
export * from "./ScheduledMessage.js";
|
|
146
145
|
export * from "./ScheduledMessageSummary.js";
|
|
147
146
|
export * from "./Sender.js";
|
|
148
|
-
export * from "./
|
|
147
|
+
export * from "./SendRichMessageOptions4.js";
|
|
149
148
|
export * from "./SendTypingIndicatorResponse.js";
|
|
150
149
|
export * from "./SentMmsDetails.js";
|
|
151
150
|
export * from "./SentRichMessage.js";
|
|
@@ -21,7 +21,7 @@ __exportStar(require("./AgentSummary.js"), exports);
|
|
|
21
21
|
__exportStar(require("./AgentUseCase.js"), exports);
|
|
22
22
|
__exportStar(require("./AgentWebsiteEntry.js"), exports);
|
|
23
23
|
__exportStar(require("./AttachedPhoneNumberResult.js"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./AttachWebhookResult.js"), exports);
|
|
25
25
|
__exportStar(require("./AudienceCountOnly.js"), exports);
|
|
26
26
|
__exportStar(require("./AudienceSummary.js"), exports);
|
|
27
27
|
__exportStar(require("./AudienceWithPagination.js"), exports);
|
|
@@ -45,7 +45,6 @@ __exportStar(require("./CarrierLaunchStatus.js"), exports);
|
|
|
45
45
|
__exportStar(require("./CompanyEntityTypeEnum.js"), exports);
|
|
46
46
|
__exportStar(require("./CompanySectorEnum.js"), exports);
|
|
47
47
|
__exportStar(require("./CompanyTypeEnum.js"), exports);
|
|
48
|
-
__exportStar(require("./ConfiguredWebhook.js"), exports);
|
|
49
48
|
__exportStar(require("./Contact.js"), exports);
|
|
50
49
|
__exportStar(require("./ContactId.js"), exports);
|
|
51
50
|
__exportStar(require("./Conversation.js"), exports);
|
|
@@ -53,7 +52,7 @@ __exportStar(require("./ConversationList.js"), exports);
|
|
|
53
52
|
__exportStar(require("./CreateUrlOptions.js"), exports);
|
|
54
53
|
__exportStar(require("./DeleteAudienceResponse.js"), exports);
|
|
55
54
|
__exportStar(require("./DetachedPhoneNumberResult.js"), exports);
|
|
56
|
-
__exportStar(require("./
|
|
55
|
+
__exportStar(require("./DetachWebhookResult.js"), exports);
|
|
57
56
|
__exportStar(require("./DetailedPhoneNumberEnum.js"), exports);
|
|
58
57
|
__exportStar(require("./DlcAssignmentStatusEnum.js"), exports);
|
|
59
58
|
__exportStar(require("./DlcCampaignStatus.js"), exports);
|
|
@@ -66,6 +65,7 @@ __exportStar(require("./Error_.js"), exports);
|
|
|
66
65
|
__exportStar(require("./ExtendedBrand.js"), exports);
|
|
67
66
|
__exportStar(require("./ExtendedBrandWithVetting.js"), exports);
|
|
68
67
|
__exportStar(require("./ExtendedRcsCampaign.js"), exports);
|
|
68
|
+
__exportStar(require("./FailedSender.js"), exports);
|
|
69
69
|
__exportStar(require("./FallbackMessage.js"), exports);
|
|
70
70
|
__exportStar(require("./GetConversationParams.js"), exports);
|
|
71
71
|
__exportStar(require("./LinkClickEvent.js"), exports);
|
|
@@ -135,7 +135,6 @@ __exportStar(require("./RcsButtonTrigger.js"), exports);
|
|
|
135
135
|
__exportStar(require("./RcsCampaign.js"), exports);
|
|
136
136
|
__exportStar(require("./RcsCampaignStatus.js"), exports);
|
|
137
137
|
__exportStar(require("./RcsCampaignSummary.js"), exports);
|
|
138
|
-
__exportStar(require("./RcsCampaignUseCaseEnum.js"), exports);
|
|
139
138
|
__exportStar(require("./RcsCapabilitiesResult.js"), exports);
|
|
140
139
|
__exportStar(require("./RcsCapability.js"), exports);
|
|
141
140
|
__exportStar(require("./RcsCardsContent.js"), exports);
|
|
@@ -161,7 +160,7 @@ __exportStar(require("./ScheduledBlastDetails.js"), exports);
|
|
|
161
160
|
__exportStar(require("./ScheduledMessage.js"), exports);
|
|
162
161
|
__exportStar(require("./ScheduledMessageSummary.js"), exports);
|
|
163
162
|
__exportStar(require("./Sender.js"), exports);
|
|
164
|
-
__exportStar(require("./
|
|
163
|
+
__exportStar(require("./SendRichMessageOptions4.js"), exports);
|
|
165
164
|
__exportStar(require("./SendTypingIndicatorResponse.js"), exports);
|
|
166
165
|
__exportStar(require("./SentMmsDetails.js"), exports);
|
|
167
166
|
__exportStar(require("./SentRichMessage.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.16";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -17,8 +17,8 @@ export class PinnacleClient {
|
|
|
17
17
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
|
|
18
18
|
"X-Fern-Language": "JavaScript",
|
|
19
19
|
"X-Fern-SDK-Name": "rcs-js",
|
|
20
|
-
"X-Fern-SDK-Version": "2.0.
|
|
21
|
-
"User-Agent": "rcs-js/2.0.
|
|
20
|
+
"X-Fern-SDK-Version": "2.0.16",
|
|
21
|
+
"User-Agent": "rcs-js/2.0.16",
|
|
22
22
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
23
23
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
24
24
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -109,16 +109,13 @@ export declare class Rcs {
|
|
|
109
109
|
* campaignId: "rcs_1234567890",
|
|
110
110
|
* expectedAgentResponses: ["Here are the things I can help you with.", "I can assist you with booking an appointment, or you may choose to book manually.", "Here are the available times to connect with a representative tomorrow.", "Your appointment has been scheduled."],
|
|
111
111
|
* links: {
|
|
112
|
-
* privacyPolicy: "
|
|
113
|
-
* termsOfService: "
|
|
112
|
+
* privacyPolicy: "\u201Chttps://www.trypinnacle.app/privacy\u201D",
|
|
113
|
+
* termsOfService: "\u201Chttps://www.trypinnacle.app/terms\u201D"
|
|
114
114
|
* },
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* optInTermsAndConditions: "We ensure consent through an explicit opt-in process that follows 10DLC best practices.Users must agree to receive messages from Pinnacle before the agent sends them any messages.<br>\nUsers agree to these messages by signing an opt-in paper form that they can be found online at https://www.pinnacle.sh/opt-in. We only send messages once users have filled out the form and submitted it to us via email or through the dashboard.\n",
|
|
120
|
-
* messagingType: "MULTI_USE",
|
|
121
|
-
* carrierDescription: "Demonstrate the power of RCS to medium and large companies already sending massive SMS/MMS volumes through our platform. These clients send conversational messages in industries such as commerce, appointments, and customer support.",
|
|
115
|
+
* useCaseDescription: "Pinnacle is a developer-focused RCS assistant that helps teams design, test, and optimize rich messaging experiences across SMS, MMS, and RCS. The agent acts as both an \u201Conboarding guide\u201D for new customers and a \u201Cbest-practices coach\u201D for existing teams exploring higher-value RCS workflows like rich cards, carousels, and suggested actions.<br>\nThe agent delivers a mix of operational updates and educational content (2\u20136 messages/month). Content includes important platform notices (e.g., deliverability or throughput changes), implementation tips with sample RCS templates, and personalized recommendations on how to upgrade existing SMS campaigns into richer, higher-converting RCS conversations.\n",
|
|
116
|
+
* messagingType: "OTP",
|
|
117
|
+
* ctaMedia: "\u201Chttps://www.pinnacle.sh/send\u201D",
|
|
118
|
+
* optInMethod: "We ensure consent through an explicit opt-in process that follows 10DLC best practices.Users must agree to receive messages from Pinnacle before the agent sends them any messages.<br>\nUsers agree to these messages by signing an opt-in paper form that they can be found online at https://www.pinnacle.sh/opt-in. We only send messages once users have filled out the form and submitted it to us via email or through the dashboard.\n",
|
|
122
119
|
* keywords: {
|
|
123
120
|
* HELP: {
|
|
124
121
|
* message: "Email founders@trypinnacle.app for support.",
|
|
@@ -137,9 +134,6 @@ export declare class Rcs {
|
|
|
137
134
|
* monthlyWebsite: 10000,
|
|
138
135
|
* monthlyRcsEstimate: 10000
|
|
139
136
|
* },
|
|
140
|
-
* agentTriggers: "The agent sends the first message when the user subscribes to Pinnacle. Messages are based on user actions such as pressing suggestion buttons. External triggers such as reminders can be setup by users in advance for a later time.",
|
|
141
|
-
* interactionDescription: "The agent's primary interaction will be customer service \u2014 helping users with questions, troubleshooting issues, and providing quick assistance through chat. Other interactions include appointment management and sending notifications to the user.",
|
|
142
|
-
* isConversational: true,
|
|
143
137
|
* ctaLanguage: "By checking this box and submitting this form, you consent to receive transactional text messages for support, appointment, and reminder messages from Pinnacle Software Development Inc. Reply STOP to opt out. Reply HELP for help. Standard message and data rates may apply. Message frequency may vary. View our Terms and Conditions at https://www.pinnacle.sh/terms. View our Privacy Policy at https://www.pinnacle.sh/privacy.",
|
|
144
138
|
* demoTrigger: "Text \"START\" to trigger the flow."
|
|
145
139
|
* })
|
|
@@ -290,16 +290,13 @@ export class Rcs {
|
|
|
290
290
|
* campaignId: "rcs_1234567890",
|
|
291
291
|
* expectedAgentResponses: ["Here are the things I can help you with.", "I can assist you with booking an appointment, or you may choose to book manually.", "Here are the available times to connect with a representative tomorrow.", "Your appointment has been scheduled."],
|
|
292
292
|
* links: {
|
|
293
|
-
* privacyPolicy: "
|
|
294
|
-
* termsOfService: "
|
|
293
|
+
* privacyPolicy: "\u201Chttps://www.trypinnacle.app/privacy\u201D",
|
|
294
|
+
* termsOfService: "\u201Chttps://www.trypinnacle.app/terms\u201D"
|
|
295
295
|
* },
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
* optInTermsAndConditions: "We ensure consent through an explicit opt-in process that follows 10DLC best practices.Users must agree to receive messages from Pinnacle before the agent sends them any messages.<br>\nUsers agree to these messages by signing an opt-in paper form that they can be found online at https://www.pinnacle.sh/opt-in. We only send messages once users have filled out the form and submitted it to us via email or through the dashboard.\n",
|
|
301
|
-
* messagingType: "MULTI_USE",
|
|
302
|
-
* carrierDescription: "Demonstrate the power of RCS to medium and large companies already sending massive SMS/MMS volumes through our platform. These clients send conversational messages in industries such as commerce, appointments, and customer support.",
|
|
296
|
+
* useCaseDescription: "Pinnacle is a developer-focused RCS assistant that helps teams design, test, and optimize rich messaging experiences across SMS, MMS, and RCS. The agent acts as both an \u201Conboarding guide\u201D for new customers and a \u201Cbest-practices coach\u201D for existing teams exploring higher-value RCS workflows like rich cards, carousels, and suggested actions.<br>\nThe agent delivers a mix of operational updates and educational content (2\u20136 messages/month). Content includes important platform notices (e.g., deliverability or throughput changes), implementation tips with sample RCS templates, and personalized recommendations on how to upgrade existing SMS campaigns into richer, higher-converting RCS conversations.\n",
|
|
297
|
+
* messagingType: "OTP",
|
|
298
|
+
* ctaMedia: "\u201Chttps://www.pinnacle.sh/send\u201D",
|
|
299
|
+
* optInMethod: "We ensure consent through an explicit opt-in process that follows 10DLC best practices.Users must agree to receive messages from Pinnacle before the agent sends them any messages.<br>\nUsers agree to these messages by signing an opt-in paper form that they can be found online at https://www.pinnacle.sh/opt-in. We only send messages once users have filled out the form and submitted it to us via email or through the dashboard.\n",
|
|
303
300
|
* keywords: {
|
|
304
301
|
* HELP: {
|
|
305
302
|
* message: "Email founders@trypinnacle.app for support.",
|
|
@@ -318,9 +315,6 @@ export class Rcs {
|
|
|
318
315
|
* monthlyWebsite: 10000,
|
|
319
316
|
* monthlyRcsEstimate: 10000
|
|
320
317
|
* },
|
|
321
|
-
* agentTriggers: "The agent sends the first message when the user subscribes to Pinnacle. Messages are based on user actions such as pressing suggestion buttons. External triggers such as reminders can be setup by users in advance for a later time.",
|
|
322
|
-
* interactionDescription: "The agent's primary interaction will be customer service \u2014 helping users with questions, troubleshooting issues, and providing quick assistance through chat. Other interactions include appointment management and sending notifications to the user.",
|
|
323
|
-
* isConversational: true,
|
|
324
318
|
* ctaLanguage: "By checking this box and submitting this form, you consent to receive transactional text messages for support, appointment, and reminder messages from Pinnacle Software Development Inc. Reply STOP to opt out. Reply HELP for help. Standard message and data rates may apply. Message frequency may vary. View our Terms and Conditions at https://www.pinnacle.sh/terms. View our Privacy Policy at https://www.pinnacle.sh/privacy.",
|
|
325
319
|
* demoTrigger: "Text \"START\" to trigger the flow."
|
|
326
320
|
* })
|
package/dist/esm/api/resources/campaigns/resources/rcs/client/requests/UpsertRcsCampaignParams.d.mts
CHANGED
|
@@ -25,16 +25,13 @@ import type * as Pinnacle from "../../../../../../index.mjs";
|
|
|
25
25
|
* campaignId: "rcs_1234567890",
|
|
26
26
|
* expectedAgentResponses: ["Here are the things I can help you with.", "I can assist you with booking an appointment, or you may choose to book manually.", "Here are the available times to connect with a representative tomorrow.", "Your appointment has been scheduled."],
|
|
27
27
|
* links: {
|
|
28
|
-
* privacyPolicy: "
|
|
29
|
-
* termsOfService: "
|
|
28
|
+
* privacyPolicy: "\u201Chttps://www.trypinnacle.app/privacy\u201D",
|
|
29
|
+
* termsOfService: "\u201Chttps://www.trypinnacle.app/terms\u201D"
|
|
30
30
|
* },
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* optInTermsAndConditions: "We ensure consent through an explicit opt-in process that follows 10DLC best practices.Users must agree to receive messages from Pinnacle before the agent sends them any messages.<br>\nUsers agree to these messages by signing an opt-in paper form that they can be found online at https://www.pinnacle.sh/opt-in. We only send messages once users have filled out the form and submitted it to us via email or through the dashboard.\n",
|
|
36
|
-
* messagingType: "MULTI_USE",
|
|
37
|
-
* carrierDescription: "Demonstrate the power of RCS to medium and large companies already sending massive SMS/MMS volumes through our platform. These clients send conversational messages in industries such as commerce, appointments, and customer support.",
|
|
31
|
+
* useCaseDescription: "Pinnacle is a developer-focused RCS assistant that helps teams design, test, and optimize rich messaging experiences across SMS, MMS, and RCS. The agent acts as both an \u201Conboarding guide\u201D for new customers and a \u201Cbest-practices coach\u201D for existing teams exploring higher-value RCS workflows like rich cards, carousels, and suggested actions.<br>\nThe agent delivers a mix of operational updates and educational content (2\u20136 messages/month). Content includes important platform notices (e.g., deliverability or throughput changes), implementation tips with sample RCS templates, and personalized recommendations on how to upgrade existing SMS campaigns into richer, higher-converting RCS conversations.\n",
|
|
32
|
+
* messagingType: "OTP",
|
|
33
|
+
* ctaMedia: "\u201Chttps://www.pinnacle.sh/send\u201D",
|
|
34
|
+
* optInMethod: "We ensure consent through an explicit opt-in process that follows 10DLC best practices.Users must agree to receive messages from Pinnacle before the agent sends them any messages.<br>\nUsers agree to these messages by signing an opt-in paper form that they can be found online at https://www.pinnacle.sh/opt-in. We only send messages once users have filled out the form and submitted it to us via email or through the dashboard.\n",
|
|
38
35
|
* keywords: {
|
|
39
36
|
* HELP: {
|
|
40
37
|
* message: "Email founders@trypinnacle.app for support.",
|
|
@@ -53,9 +50,6 @@ import type * as Pinnacle from "../../../../../../index.mjs";
|
|
|
53
50
|
* monthlyWebsite: 10000,
|
|
54
51
|
* monthlyRcsEstimate: 10000
|
|
55
52
|
* },
|
|
56
|
-
* agentTriggers: "The agent sends the first message when the user subscribes to Pinnacle. Messages are based on user actions such as pressing suggestion buttons. External triggers such as reminders can be setup by users in advance for a later time.",
|
|
57
|
-
* interactionDescription: "The agent's primary interaction will be customer service \u2014 helping users with questions, troubleshooting issues, and providing quick assistance through chat. Other interactions include appointment management and sending notifications to the user.",
|
|
58
|
-
* isConversational: true,
|
|
59
53
|
* ctaLanguage: "By checking this box and submitting this form, you consent to receive transactional text messages for support, appointment, and reminder messages from Pinnacle Software Development Inc. Reply STOP to opt out. Reply HELP for help. Standard message and data rates may apply. Message frequency may vary. View our Terms and Conditions at https://www.pinnacle.sh/terms. View our Privacy Policy at https://www.pinnacle.sh/privacy.",
|
|
60
54
|
* demoTrigger: "Text \"START\" to trigger the flow."
|
|
61
55
|
* }
|
|
@@ -74,21 +68,15 @@ export interface UpsertRcsCampaignParams {
|
|
|
74
68
|
expectedAgentResponses?: string[];
|
|
75
69
|
/** Legal documentation links. */
|
|
76
70
|
links?: UpsertRcsCampaignParams.Links;
|
|
77
|
-
/** Use case
|
|
78
|
-
|
|
79
|
-
/** Details on how opt-in is acquired. If it is done through a website or app, provide the link. See the [Opt-In Terms and Conditions](/guides/campaigns/rcs-compliance#opt-in-terms-and-conditions) section for requirements. */
|
|
80
|
-
optInTermsAndConditions?: string;
|
|
71
|
+
/** Detailed summary of what the brand is and how this agent will be used. See the [Use Case Behavior](/guides/campaigns/rcs-compliance#use-case-behavior) section for requirements. */
|
|
72
|
+
useCaseDescription?: string;
|
|
81
73
|
messagingType?: Pinnacle.RcsMessagingTypeEnum;
|
|
82
|
-
/**
|
|
83
|
-
|
|
74
|
+
/** URL to the opt-in form or a URL to a screenshot of the opt-in CTA. */
|
|
75
|
+
ctaMedia?: string;
|
|
76
|
+
/** Details on how opt-in is acquired. If it is done through a website or app, provide the link. See the [Opt-In Method](/guides/campaigns/rcs-compliance#opt-in-method) section for requirements. */
|
|
77
|
+
optInMethod?: string;
|
|
84
78
|
keywords?: UpsertRcsCampaignParams.Keywords;
|
|
85
79
|
traffic?: UpsertRcsCampaignParams.Traffic;
|
|
86
|
-
/** Explanation of how the agent is triggered. This includes how the first message is delivered, whether messages follow a schedule or triggered by user actions, and any external triggers. See the [Agent Triggers](/guides/campaigns/rcs-compliance#agent-triggers) section for requirements. */
|
|
87
|
-
agentTriggers?: string;
|
|
88
|
-
/** Description of all agent interactions, including primary and secondary use cases. See the [Interaction Description](/guides/campaigns/rcs-compliance#interaction-description) section for requirements. */
|
|
89
|
-
interactionDescription?: string;
|
|
90
|
-
/** Whether the agent supports conversational flows or respond to P2A messages from the users. Set to false for one-way messages from agent to user. */
|
|
91
|
-
isConversational?: boolean;
|
|
92
80
|
/** Required text that appears next to the opt-in checkbox for your opt-in form. This checkbox has to be unchecked by default. See the [CTA Language](/guides/campaigns/rcs-compliance#cta-language-opt-in-disclosure) section for requirements. */
|
|
93
81
|
ctaLanguage?: string;
|
|
94
82
|
/** Instructions on how an external reviewer can trigger messages and an example flow from the agent. This is usually an inbound text message to the agent that will start a flow of messages between the agent and the user. See the [Demo Trigger](/guides/campaigns/rcs-compliance#demo-trigger) section for requirements. */
|
|
@@ -175,14 +163,6 @@ export declare namespace UpsertRcsCampaignParams {
|
|
|
175
163
|
/** Terms of service URL. */
|
|
176
164
|
termsOfService?: string;
|
|
177
165
|
}
|
|
178
|
-
/**
|
|
179
|
-
* Use case classification for the campaign.
|
|
180
|
-
*/
|
|
181
|
-
interface UseCase {
|
|
182
|
-
/** Detailed summary of what the brand is and how this agent will be used. See the [Use Case Behavior](/guides/campaigns/rcs-compliance#use-case-behavior) section for requirements. */
|
|
183
|
-
behavior?: string;
|
|
184
|
-
value?: Pinnacle.RcsCampaignUseCaseEnum;
|
|
185
|
-
}
|
|
186
166
|
interface Keywords {
|
|
187
167
|
HELP?: Keywords.Help;
|
|
188
168
|
OPT_IN?: Keywords.OptIn;
|
|
@@ -28,11 +28,6 @@ export declare class Rcs {
|
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* await client.messages.rcs.send({
|
|
31
|
-
* quickReplies: [{
|
|
32
|
-
* type: "openUrl",
|
|
33
|
-
* payload: "payload",
|
|
34
|
-
* title: "title"
|
|
35
|
-
* }],
|
|
36
31
|
* text: "text",
|
|
37
32
|
* from: "from",
|
|
38
33
|
* to: "to"
|
|
@@ -84,11 +79,6 @@ export declare class Rcs {
|
|
|
84
79
|
*
|
|
85
80
|
* @example
|
|
86
81
|
* await client.messages.rcs.validate({
|
|
87
|
-
* quickReplies: [{
|
|
88
|
-
* type: "openUrl",
|
|
89
|
-
* payload: "payload",
|
|
90
|
-
* title: "title"
|
|
91
|
-
* }],
|
|
92
82
|
* text: "text"
|
|
93
83
|
* })
|
|
94
84
|
*/
|
|
@@ -35,11 +35,6 @@ export class Rcs {
|
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* await client.messages.rcs.send({
|
|
38
|
-
* quickReplies: [{
|
|
39
|
-
* type: "openUrl",
|
|
40
|
-
* payload: "payload",
|
|
41
|
-
* title: "title"
|
|
42
|
-
* }],
|
|
43
38
|
* text: "text",
|
|
44
39
|
* from: "from",
|
|
45
40
|
* to: "to"
|
|
@@ -218,11 +213,6 @@ export class Rcs {
|
|
|
218
213
|
*
|
|
219
214
|
* @example
|
|
220
215
|
* await client.messages.rcs.validate({
|
|
221
|
-
* quickReplies: [{
|
|
222
|
-
* type: "openUrl",
|
|
223
|
-
* payload: "payload",
|
|
224
|
-
* title: "title"
|
|
225
|
-
* }],
|
|
226
216
|
* text: "text"
|
|
227
217
|
* })
|
|
228
218
|
*/
|