rcs-js 2.0.0-rc.13 → 2.0.0-rc.15
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.d.ts +2 -2
- package/dist/cjs/Client.js +3 -3
- package/dist/cjs/api/resources/brands/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/brands/client/Client.js +9 -9
- package/dist/cjs/api/resources/brands/client/requests/BrandsGetRequest.d.ts +1 -1
- package/dist/cjs/api/resources/brands/client/requests/UpsertBrandParams.d.ts +3 -3
- package/dist/cjs/api/resources/campaigns/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/campaigns/client/Client.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/campaigns/resources/dlc/client/Client.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/campaigns/resources/rcs/client/Client.js +1 -1
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/campaigns/resources/tollFree/client/Client.js +1 -1
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/contacts/client/Client.js +7 -7
- package/dist/cjs/api/resources/contacts/client/requests/ContactsGetRequest.d.ts +2 -2
- package/dist/cjs/api/resources/conversations/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/conversations/client/Client.js +2 -5
- package/dist/cjs/api/resources/messages/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/messages/client/Client.js +1 -1
- package/dist/cjs/api/resources/messages/client/requests/ReactMessageParams.d.ts +1 -1
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/messages/resources/mms/client/Client.js +1 -1
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/messages/resources/rcs/client/Client.js +1 -1
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/messages/resources/sms/client/Client.js +1 -1
- package/dist/cjs/api/resources/phoneNumbers/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/phoneNumbers/client/Client.js +1 -1
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/phoneNumbers/resources/campaign/client/Client.js +2 -2
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.d.ts +6 -5
- package/dist/cjs/api/resources/phoneNumbers/resources/webhook/client/Client.js +4 -3
- package/dist/cjs/api/resources/rcs/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/rcs/client/Client.js +1 -1
- package/dist/cjs/api/resources/status/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/status/client/Client.js +1 -1
- package/dist/cjs/api/resources/status/resources/get/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/status/resources/get/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tools/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/tools/resources/contactCard/client/Client.js +3 -3
- package/dist/cjs/api/resources/tools/resources/file/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tools/resources/file/client/Client.js +1 -1
- package/dist/cjs/api/resources/tools/resources/url/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tools/resources/url/client/Client.js +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/webhooks/client/Client.js +1 -1
- package/dist/cjs/api/types/AdvancedPhoneInformation.d.ts +9 -9
- package/dist/cjs/api/types/AttachWebhookParams.d.ts +2 -2
- package/dist/cjs/api/types/ButtonClickedData.d.ts +3 -1
- package/dist/cjs/api/types/Conversation.d.ts +3 -3
- package/dist/cjs/api/types/EnhancedContactItem.d.ts +1 -1
- package/dist/cjs/api/types/ExtendedBrand.d.ts +6 -2
- package/dist/cjs/api/types/ExtendedBrandWithVetting.d.ts +2 -2
- package/dist/cjs/api/types/Message.d.ts +4 -4
- package/dist/cjs/api/types/RcsCapabilitiesResult.d.ts +1 -1
- package/dist/cjs/api/types/ShortenedUrl.d.ts +1 -1
- package/dist/cjs/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.ts +0 -1
- package/dist/cjs/api/types/UploadResults.d.ts +1 -1
- package/dist/cjs/api/types/VCardData.d.ts +1 -1
- package/dist/cjs/api/types/WebhookEventEnum.d.ts +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/messages/Client.js +1 -1
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +3 -3
- package/dist/esm/api/resources/brands/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/brands/client/Client.mjs +9 -9
- package/dist/esm/api/resources/brands/client/requests/BrandsGetRequest.d.mts +1 -1
- package/dist/esm/api/resources/brands/client/requests/UpsertBrandParams.d.mts +3 -3
- package/dist/esm/api/resources/campaigns/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/campaigns/client/Client.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/campaigns/resources/dlc/client/Client.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/campaigns/resources/rcs/client/Client.mjs +1 -1
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/campaigns/resources/tollFree/client/Client.mjs +1 -1
- package/dist/esm/api/resources/contacts/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/contacts/client/Client.mjs +7 -7
- package/dist/esm/api/resources/contacts/client/requests/ContactsGetRequest.d.mts +2 -2
- package/dist/esm/api/resources/conversations/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/conversations/client/Client.mjs +2 -5
- package/dist/esm/api/resources/messages/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/messages/client/Client.mjs +1 -1
- package/dist/esm/api/resources/messages/client/requests/ReactMessageParams.d.mts +1 -1
- package/dist/esm/api/resources/messages/resources/mms/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/messages/resources/mms/client/Client.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/messages/resources/rcs/client/Client.mjs +1 -1
- package/dist/esm/api/resources/messages/resources/sms/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/messages/resources/sms/client/Client.mjs +1 -1
- package/dist/esm/api/resources/phoneNumbers/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/phoneNumbers/client/Client.mjs +1 -1
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/phoneNumbers/resources/campaign/client/Client.mjs +2 -2
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.d.mts +6 -5
- package/dist/esm/api/resources/phoneNumbers/resources/webhook/client/Client.mjs +4 -3
- package/dist/esm/api/resources/rcs/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/rcs/client/Client.mjs +1 -1
- package/dist/esm/api/resources/status/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/status/client/Client.mjs +1 -1
- package/dist/esm/api/resources/status/resources/get/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/status/resources/get/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tools/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/tools/resources/contactCard/client/Client.mjs +3 -3
- package/dist/esm/api/resources/tools/resources/file/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tools/resources/file/client/Client.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/url/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tools/resources/url/client/Client.mjs +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/webhooks/client/Client.mjs +1 -1
- package/dist/esm/api/types/AdvancedPhoneInformation.d.mts +9 -9
- package/dist/esm/api/types/AttachWebhookParams.d.mts +2 -2
- package/dist/esm/api/types/ButtonClickedData.d.mts +3 -1
- package/dist/esm/api/types/Conversation.d.mts +3 -3
- package/dist/esm/api/types/EnhancedContactItem.d.mts +1 -1
- package/dist/esm/api/types/ExtendedBrand.d.mts +6 -2
- package/dist/esm/api/types/ExtendedBrandWithVetting.d.mts +2 -2
- package/dist/esm/api/types/Message.d.mts +4 -4
- package/dist/esm/api/types/RcsCapabilitiesResult.d.mts +1 -1
- package/dist/esm/api/types/ShortenedUrl.d.mts +1 -1
- package/dist/esm/api/types/TollFreeCampaignWithExtendedBrandAndStatus.d.mts +0 -1
- package/dist/esm/api/types/UploadResults.d.mts +1 -1
- package/dist/esm/api/types/VCardData.d.mts +1 -1
- package/dist/esm/api/types/WebhookEventEnum.d.mts +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/messages/Client.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +8 -7
|
@@ -5,4 +5,4 @@ import * as Pinnacle from "../index.mjs";
|
|
|
5
5
|
/**
|
|
6
6
|
* Response containing RCS capabilities for requested phone numbers
|
|
7
7
|
*/
|
|
8
|
-
export type RcsCapabilitiesResult = Record<string,
|
|
8
|
+
export type RcsCapabilitiesResult = Record<string, Pinnacle.RcsCapability | null>;
|
|
@@ -11,6 +11,6 @@ export declare namespace ShortenedUrl {
|
|
|
11
11
|
/** Destination URL that your shortened link redirects to. */
|
|
12
12
|
to: string;
|
|
13
13
|
/** Expiration date for your shortened link in ISO 8601 format, or null if it's permanent. */
|
|
14
|
-
expiresAt
|
|
14
|
+
expiresAt: string | null;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -11,7 +11,6 @@ export interface TollFreeCampaignWithExtendedBrandAndStatus extends Pinnacle.Tol
|
|
|
11
11
|
* `INCOMPLETE`: Has not been submitted.<br>
|
|
12
12
|
* `PENDING`: Currently being reviewed.<br>
|
|
13
13
|
* `VERIFIED`: Verified and good to go.<br>
|
|
14
|
-
* `UNVERIFIED`: No longer verified due to an update in the brand details.<br>
|
|
15
14
|
* `VETTED`: Brand has been vetted by an external provider and has received vetting scores.
|
|
16
15
|
*/
|
|
17
16
|
status: Pinnacle.ProfileStatusEnum;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Types of events that can trigger webhook notifications for phone numbers.
|
|
6
6
|
* Subscribe to specific events to receive real-time updates about your phone number activity.
|
|
7
|
+
* Use `null` to listen to all events.
|
|
7
8
|
*/
|
|
8
9
|
export type WebhookEventEnum = "MESSAGE.STATUS" | "MESSAGE.RECEIVED";
|
|
9
10
|
export declare const WebhookEventEnum: {
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.0-rc.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0-rc.15";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.0-rc.
|
|
1
|
+
export const SDK_VERSION = "2.0.0-rc.15";
|
|
@@ -28,7 +28,7 @@ export class EnhancedMessages extends Messages {
|
|
|
28
28
|
}
|
|
29
29
|
if (!signingSecret) {
|
|
30
30
|
throw new UnauthorizedError({
|
|
31
|
-
error: "Make sure to set the
|
|
31
|
+
error: "Make sure to set the PINNACLE_SIGNING_SECRET environment variable or pass the secret as an argument to the process method",
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
if (!headerSecret) {
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -645,7 +645,7 @@ await client.contacts.update({
|
|
|
645
645
|
|
|
646
646
|
## Conversations
|
|
647
647
|
|
|
648
|
-
<details><summary><code>client.conversations.<a href="/src/api/resources/conversations/client/Client.ts">get</a>({ ...params }) ->
|
|
648
|
+
<details><summary><code>client.conversations.<a href="/src/api/resources/conversations/client/Client.ts">get</a>({ ...params }) -> Pinnacle.Conversation | null</code></summary>
|
|
649
649
|
<dl>
|
|
650
650
|
<dd>
|
|
651
651
|
|
|
@@ -3037,7 +3037,8 @@ Connect a webhook to your phone number to receive real-time notifications for in
|
|
|
3037
3037
|
|
|
3038
3038
|
```typescript
|
|
3039
3039
|
await client.phoneNumbers.webhook.attach("%2B14155551234", {
|
|
3040
|
-
webhookId:
|
|
3040
|
+
webhookId: 123,
|
|
3041
|
+
event: "MESSAGE.STATUS",
|
|
3041
3042
|
});
|
|
3042
3043
|
```
|
|
3043
3044
|
|
|
@@ -3058,7 +3059,7 @@ await client.phoneNumbers.webhook.attach("%2B14155551234", {
|
|
|
3058
3059
|
|
|
3059
3060
|
The phone number you want to attach the webhook to in E.164 format. Make sure it is url encoded (i.e. replace the leading + with %2B). <br>
|
|
3060
3061
|
|
|
3061
|
-
Must be a phone number that you own and have already [purchased](./buy) through the API.
|
|
3062
|
+
Must be a phone number that you own and have already [purchased](./buy) through the API. A phone number can have multiple webhooks attached to it.
|
|
3062
3063
|
|
|
3063
3064
|
</dd>
|
|
3064
3065
|
</dl>
|
|
@@ -3180,7 +3181,7 @@ This must be a valid webhook ID that is currently attached to the specified phon
|
|
|
3180
3181
|
<dl>
|
|
3181
3182
|
<dd>
|
|
3182
3183
|
|
|
3183
|
-
Link a phone number to a specific campaign.
|
|
3184
|
+
Link a phone number to a specific campaign. Phone numbers must be linked to a campaign to send messages.
|
|
3184
3185
|
|
|
3185
3186
|
</dd>
|
|
3186
3187
|
</dl>
|
|
@@ -3923,7 +3924,7 @@ Refresh expiring presigned URLs for Pinnacle-hosted files to extend their access
|
|
|
3923
3924
|
|
|
3924
3925
|
<Callout type="info">
|
|
3925
3926
|
This only works for presigned download URLs. At this moment, you cannot refresh a presigned upload URL, generate a new one instead.
|
|
3926
|
-
</Callout>
|
|
3927
|
+
</Callout>
|
|
3927
3928
|
</dd>
|
|
3928
3929
|
</dl>
|
|
3929
3930
|
</dd>
|
|
@@ -3995,7 +3996,7 @@ await client.tools.file.refresh({
|
|
|
3995
3996
|
<dl>
|
|
3996
3997
|
<dd>
|
|
3997
3998
|
|
|
3998
|
-
Retrieve contact information as a vCard and get a presigned URL to download the file.
|
|
3999
|
+
Retrieve contact information as a vCard and get a presigned URL to download the file. Contact cards can be sent [via MMS](/api-reference/messages/send-mms) as a media file.
|
|
3999
4000
|
|
|
4000
4001
|
</dd>
|
|
4001
4002
|
</dl>
|
|
@@ -4060,7 +4061,7 @@ await client.tools.contactCard.get({
|
|
|
4060
4061
|
<dl>
|
|
4061
4062
|
<dd>
|
|
4062
4063
|
|
|
4063
|
-
Create a new contact card or updates an existing one with full vCard data.
|
|
4064
|
+
Create a new contact card or updates an existing one with full vCard data. Contact cards can be sent [via MMS](/api-reference/messages/send-mms) as a media file.
|
|
4064
4065
|
|
|
4065
4066
|
</dd>
|
|
4066
4067
|
</dl>
|