rcs-js 2.0.5-rc.1 → 2.0.6
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/README.md +0 -217
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/audiences/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/audiences/client/Client.js +1 -1
- package/dist/cjs/api/resources/audiences/client/requests/CreateAudienceParams.d.ts +1 -1
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/audiences/resources/contacts/client/Client.js +2 -2
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.ts +1 -1
- package/dist/cjs/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.ts +1 -1
- package/dist/cjs/api/types/SentMmsDetails.d.ts +5 -1
- 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/audiences/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/audiences/client/Client.mjs +1 -1
- package/dist/esm/api/resources/audiences/client/requests/CreateAudienceParams.d.mts +1 -1
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/audiences/resources/contacts/client/Client.mjs +2 -2
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/AddContactsParams.d.mts +1 -1
- package/dist/esm/api/resources/audiences/resources/contacts/client/requests/RemoveContactsParams.d.mts +1 -1
- package/dist/esm/api/types/SentMmsDetails.d.mts +5 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +2 -2
package/README.md
CHANGED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
# Pinnacle TypeScript Library
|
|
2
|
-
|
|
3
|
-
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fpinnacle-dev%2Frcs-js)
|
|
4
|
-
[](https://www.npmjs.com/package/rcs-js)
|
|
5
|
-
|
|
6
|
-
The Pinnacle TypeScript library provides convenient access to the Pinnacle APIs from TypeScript.
|
|
7
|
-
|
|
8
|
-
## Table of Contents
|
|
9
|
-
|
|
10
|
-
- [Table of Contents](#table-of-contents)
|
|
11
|
-
- [Installation](#installation)
|
|
12
|
-
- [Usage](#usage)
|
|
13
|
-
- [Request and Response Types](#request-and-response-types)
|
|
14
|
-
- [Exception Handling](#exception-handling)
|
|
15
|
-
- [Advanced](#advanced)
|
|
16
|
-
- [Additional Headers](#additional-headers)
|
|
17
|
-
- [Additional Query String Parameters](#additional-query-string-parameters)
|
|
18
|
-
- [Retries](#retries)
|
|
19
|
-
- [Timeouts](#timeouts)
|
|
20
|
-
- [Aborting Requests](#aborting-requests)
|
|
21
|
-
- [Access Raw Response Data](#access-raw-response-data)
|
|
22
|
-
- [Runtime Compatibility](#runtime-compatibility)
|
|
23
|
-
- [Contributing](#contributing)
|
|
24
|
-
- [Reference](#reference)
|
|
25
|
-
|
|
26
|
-
## Table of Contents
|
|
27
|
-
|
|
28
|
-
- [Installation](#installation)
|
|
29
|
-
- [Usage](#usage)
|
|
30
|
-
- [Request and Response Types](#request-and-response-types)
|
|
31
|
-
- [Exception Handling](#exception-handling)
|
|
32
|
-
- [Advanced](#advanced)
|
|
33
|
-
- [Additional Headers](#additional-headers)
|
|
34
|
-
- [Additional Query String Parameters](#additional-query-string-parameters)
|
|
35
|
-
- [Retries](#retries)
|
|
36
|
-
- [Timeouts](#timeouts)
|
|
37
|
-
- [Aborting Requests](#aborting-requests)
|
|
38
|
-
- [Access Raw Response Data](#access-raw-response-data)
|
|
39
|
-
- [Runtime Compatibility](#runtime-compatibility)
|
|
40
|
-
- [Contributing](#contributing)
|
|
41
|
-
- [Reference](#reference)
|
|
42
|
-
|
|
43
|
-
## Installation
|
|
44
|
-
|
|
45
|
-
```sh
|
|
46
|
-
npm i -s rcs-js
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Usage
|
|
50
|
-
|
|
51
|
-
Instantiate and use the client with the following:
|
|
52
|
-
|
|
53
|
-
```typescript
|
|
54
|
-
import { PinnacleClient } from "rcs-js";
|
|
55
|
-
|
|
56
|
-
const client = new PinnacleClient({ apiKey: "YOUR_API_KEY" });
|
|
57
|
-
await client.brands.autofill({
|
|
58
|
-
additional_info: "A developer-friendly, compliant API for SMS, MMS, and RCS, built to scale real conversations.",
|
|
59
|
-
name: "Pinnacle",
|
|
60
|
-
options: {
|
|
61
|
-
forceReload: true,
|
|
62
|
-
},
|
|
63
|
-
website: "https://www.pinnacle.sh",
|
|
64
|
-
});
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
## Request and Response Types
|
|
68
|
-
|
|
69
|
-
The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
|
|
70
|
-
following namespace:
|
|
71
|
-
|
|
72
|
-
```typescript
|
|
73
|
-
import { Pinnacle } from "rcs-js";
|
|
74
|
-
|
|
75
|
-
const request: Pinnacle.AutofillBrandParams = {
|
|
76
|
-
...
|
|
77
|
-
};
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Exception Handling
|
|
81
|
-
|
|
82
|
-
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
83
|
-
will be thrown.
|
|
84
|
-
|
|
85
|
-
```typescript
|
|
86
|
-
import { PinnacleError } from "rcs-js";
|
|
87
|
-
|
|
88
|
-
try {
|
|
89
|
-
await client.brands.autofill(...);
|
|
90
|
-
} catch (err) {
|
|
91
|
-
if (err instanceof PinnacleError) {
|
|
92
|
-
console.log(err.statusCode);
|
|
93
|
-
console.log(err.message);
|
|
94
|
-
console.log(err.body);
|
|
95
|
-
console.log(err.rawResponse);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Advanced
|
|
101
|
-
|
|
102
|
-
### Additional Headers
|
|
103
|
-
|
|
104
|
-
If you would like to send additional headers as part of the request, use the `headers` request option.
|
|
105
|
-
|
|
106
|
-
```typescript
|
|
107
|
-
const response = await client.brands.autofill(..., {
|
|
108
|
-
headers: {
|
|
109
|
-
'X-Custom-Header': 'custom value'
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Additional Query String Parameters
|
|
115
|
-
|
|
116
|
-
If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
|
|
117
|
-
|
|
118
|
-
```typescript
|
|
119
|
-
const response = await client.brands.autofill(..., {
|
|
120
|
-
queryParams: {
|
|
121
|
-
'customQueryParamKey': 'custom query param value'
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Retries
|
|
127
|
-
|
|
128
|
-
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
129
|
-
as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
|
|
130
|
-
retry limit (default: 2).
|
|
131
|
-
|
|
132
|
-
A request is deemed retryable when any of the following HTTP status codes is returned:
|
|
133
|
-
|
|
134
|
-
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
135
|
-
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
136
|
-
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
|
|
137
|
-
|
|
138
|
-
Use the `maxRetries` request option to configure this behavior.
|
|
139
|
-
|
|
140
|
-
```typescript
|
|
141
|
-
const response = await client.brands.autofill(..., {
|
|
142
|
-
maxRetries: 0 // override maxRetries at the request level
|
|
143
|
-
});
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Timeouts
|
|
147
|
-
|
|
148
|
-
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
149
|
-
|
|
150
|
-
```typescript
|
|
151
|
-
const response = await client.brands.autofill(..., {
|
|
152
|
-
timeoutInSeconds: 30 // override timeout to 30s
|
|
153
|
-
});
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
### Aborting Requests
|
|
157
|
-
|
|
158
|
-
The SDK allows users to abort requests at any point by passing in an abort signal.
|
|
159
|
-
|
|
160
|
-
```typescript
|
|
161
|
-
const controller = new AbortController();
|
|
162
|
-
const response = await client.brands.autofill(..., {
|
|
163
|
-
abortSignal: controller.signal
|
|
164
|
-
});
|
|
165
|
-
controller.abort(); // aborts the request
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### Access Raw Response Data
|
|
169
|
-
|
|
170
|
-
The SDK provides access to raw response data, including headers, through the `.withRawResponse()` method.
|
|
171
|
-
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
|
|
172
|
-
|
|
173
|
-
```typescript
|
|
174
|
-
const { data, rawResponse } = await client.brands.autofill(...).withRawResponse();
|
|
175
|
-
|
|
176
|
-
console.log(data);
|
|
177
|
-
console.log(rawResponse.headers['X-My-Header']);
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
### Runtime Compatibility
|
|
181
|
-
|
|
182
|
-
The SDK works in the following runtimes:
|
|
183
|
-
|
|
184
|
-
- Node.js 18+
|
|
185
|
-
- Vercel
|
|
186
|
-
- Cloudflare Workers
|
|
187
|
-
- Deno v1.25+
|
|
188
|
-
- Bun 1.0+
|
|
189
|
-
- React Native
|
|
190
|
-
|
|
191
|
-
### Customizing Fetch Client
|
|
192
|
-
|
|
193
|
-
The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an
|
|
194
|
-
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
|
|
195
|
-
|
|
196
|
-
```typescript
|
|
197
|
-
import { PinnacleClient } from "rcs-js";
|
|
198
|
-
|
|
199
|
-
const client = new PinnacleClient({
|
|
200
|
-
...
|
|
201
|
-
fetcher: // provide your implementation here
|
|
202
|
-
});
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
## Contributing
|
|
206
|
-
|
|
207
|
-
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
208
|
-
Additions made directly to this library would have to be moved over to our generation code,
|
|
209
|
-
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
210
|
-
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
|
|
211
|
-
an issue first to discuss with us!
|
|
212
|
-
|
|
213
|
-
On the other hand, contributions to the README are always very welcome!
|
|
214
|
-
|
|
215
|
-
## Reference
|
|
216
|
-
|
|
217
|
-
A full reference for this library is available [here](https://github.com/pinnacle-dev/rcs-js/blob/HEAD/./reference.md).
|
package/dist/cjs/Client.js
CHANGED
|
@@ -55,8 +55,8 @@ class PinnacleClient {
|
|
|
55
55
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
56
56
|
"X-Fern-Language": "JavaScript",
|
|
57
57
|
"X-Fern-SDK-Name": "rcs-js",
|
|
58
|
-
"X-Fern-SDK-Version": "2.0.
|
|
59
|
-
"User-Agent": "rcs-js/2.0.
|
|
58
|
+
"X-Fern-SDK-Version": "2.0.6",
|
|
59
|
+
"User-Agent": "rcs-js/2.0.6",
|
|
60
60
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
61
61
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
62
62
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -76,7 +76,7 @@ export declare class Audiences {
|
|
|
76
76
|
* @example
|
|
77
77
|
* await client.audiences.create({
|
|
78
78
|
* name: "Mixed Audience",
|
|
79
|
-
* contacts: ["+12125551234", "
|
|
79
|
+
* contacts: ["+12125551234", "co_abc123", "+13105551234"]
|
|
80
80
|
* })
|
|
81
81
|
*/
|
|
82
82
|
create(request: Pinnacle.CreateAudienceParams, requestOptions?: Audiences.RequestOptions): core.HttpResponsePromise<Pinnacle.AudienceCountOnly>;
|
|
@@ -165,7 +165,7 @@ class Audiences {
|
|
|
165
165
|
* @example
|
|
166
166
|
* await client.audiences.create({
|
|
167
167
|
* name: "Mixed Audience",
|
|
168
|
-
* contacts: ["+12125551234", "
|
|
168
|
+
* contacts: ["+12125551234", "co_abc123", "+13105551234"]
|
|
169
169
|
* })
|
|
170
170
|
*/
|
|
171
171
|
create(request, requestOptions) {
|
|
@@ -46,7 +46,7 @@ export declare class Contacts {
|
|
|
46
46
|
* @example
|
|
47
47
|
* await client.audiences.contacts.remove({
|
|
48
48
|
* id: "aud_abc123",
|
|
49
|
-
* contacts: ["+12125551234", "
|
|
49
|
+
* contacts: ["+12125551234", "co_def456"]
|
|
50
50
|
* })
|
|
51
51
|
*/
|
|
52
52
|
remove(request: Pinnacle.audiences.RemoveContactsParams, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Pinnacle.AudienceCountOnly>;
|
|
@@ -69,7 +69,7 @@ export declare class Contacts {
|
|
|
69
69
|
* @example
|
|
70
70
|
* await client.audiences.contacts.add({
|
|
71
71
|
* id: "aud_abc123",
|
|
72
|
-
* contacts: ["+12125551234", "
|
|
72
|
+
* contacts: ["+12125551234", "co_def456", "+13105551234"]
|
|
73
73
|
* })
|
|
74
74
|
*/
|
|
75
75
|
add(request: Pinnacle.audiences.AddContactsParams, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Pinnacle.AudienceCountOnly>;
|
|
@@ -72,7 +72,7 @@ class Contacts {
|
|
|
72
72
|
* @example
|
|
73
73
|
* await client.audiences.contacts.remove({
|
|
74
74
|
* id: "aud_abc123",
|
|
75
|
-
* contacts: ["+12125551234", "
|
|
75
|
+
* contacts: ["+12125551234", "co_def456"]
|
|
76
76
|
* })
|
|
77
77
|
*/
|
|
78
78
|
remove(request, requestOptions) {
|
|
@@ -150,7 +150,7 @@ class Contacts {
|
|
|
150
150
|
* @example
|
|
151
151
|
* await client.audiences.contacts.add({
|
|
152
152
|
* id: "aud_abc123",
|
|
153
|
-
* contacts: ["+12125551234", "
|
|
153
|
+
* contacts: ["+12125551234", "co_def456", "+13105551234"]
|
|
154
154
|
* })
|
|
155
155
|
*/
|
|
156
156
|
add(request, requestOptions) {
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface SentMmsDetails {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Array of unique message identifiers for an individual MMS send. Each identifier is a string that always begins with the prefix `msg_`, for example: `msg_1234567890`. <br><br>
|
|
7
|
+
* When media assets are too large to fit in a single MMS and `options.multiple_messages` is set to true, the content is automatically split across multiple messages. Each split message gets its own ID, and all IDs are returned in this array. <br><br>
|
|
8
|
+
* Note: When sending to audiences, you'll receive multiple response objects (one per recipient), each containing its own messageIds array.
|
|
9
|
+
*/
|
|
6
10
|
messageIds: string[];
|
|
7
11
|
/** Total number of segments used across the message. */
|
|
8
12
|
segments: number;
|
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.6";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -19,8 +19,8 @@ export class PinnacleClient {
|
|
|
19
19
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
20
20
|
"X-Fern-Language": "JavaScript",
|
|
21
21
|
"X-Fern-SDK-Name": "rcs-js",
|
|
22
|
-
"X-Fern-SDK-Version": "2.0.
|
|
23
|
-
"User-Agent": "rcs-js/2.0.
|
|
22
|
+
"X-Fern-SDK-Version": "2.0.6",
|
|
23
|
+
"User-Agent": "rcs-js/2.0.6",
|
|
24
24
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
25
25
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
26
26
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -76,7 +76,7 @@ export declare class Audiences {
|
|
|
76
76
|
* @example
|
|
77
77
|
* await client.audiences.create({
|
|
78
78
|
* name: "Mixed Audience",
|
|
79
|
-
* contacts: ["+12125551234", "
|
|
79
|
+
* contacts: ["+12125551234", "co_abc123", "+13105551234"]
|
|
80
80
|
* })
|
|
81
81
|
*/
|
|
82
82
|
create(request: Pinnacle.CreateAudienceParams, requestOptions?: Audiences.RequestOptions): core.HttpResponsePromise<Pinnacle.AudienceCountOnly>;
|
|
@@ -129,7 +129,7 @@ export class Audiences {
|
|
|
129
129
|
* @example
|
|
130
130
|
* await client.audiences.create({
|
|
131
131
|
* name: "Mixed Audience",
|
|
132
|
-
* contacts: ["+12125551234", "
|
|
132
|
+
* contacts: ["+12125551234", "co_abc123", "+13105551234"]
|
|
133
133
|
* })
|
|
134
134
|
*/
|
|
135
135
|
create(request, requestOptions) {
|
|
@@ -46,7 +46,7 @@ export declare class Contacts {
|
|
|
46
46
|
* @example
|
|
47
47
|
* await client.audiences.contacts.remove({
|
|
48
48
|
* id: "aud_abc123",
|
|
49
|
-
* contacts: ["+12125551234", "
|
|
49
|
+
* contacts: ["+12125551234", "co_def456"]
|
|
50
50
|
* })
|
|
51
51
|
*/
|
|
52
52
|
remove(request: Pinnacle.audiences.RemoveContactsParams, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Pinnacle.AudienceCountOnly>;
|
|
@@ -69,7 +69,7 @@ export declare class Contacts {
|
|
|
69
69
|
* @example
|
|
70
70
|
* await client.audiences.contacts.add({
|
|
71
71
|
* id: "aud_abc123",
|
|
72
|
-
* contacts: ["+12125551234", "
|
|
72
|
+
* contacts: ["+12125551234", "co_def456", "+13105551234"]
|
|
73
73
|
* })
|
|
74
74
|
*/
|
|
75
75
|
add(request: Pinnacle.audiences.AddContactsParams, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<Pinnacle.AudienceCountOnly>;
|
|
@@ -36,7 +36,7 @@ export class Contacts {
|
|
|
36
36
|
* @example
|
|
37
37
|
* await client.audiences.contacts.remove({
|
|
38
38
|
* id: "aud_abc123",
|
|
39
|
-
* contacts: ["+12125551234", "
|
|
39
|
+
* contacts: ["+12125551234", "co_def456"]
|
|
40
40
|
* })
|
|
41
41
|
*/
|
|
42
42
|
remove(request, requestOptions) {
|
|
@@ -114,7 +114,7 @@ export class Contacts {
|
|
|
114
114
|
* @example
|
|
115
115
|
* await client.audiences.contacts.add({
|
|
116
116
|
* id: "aud_abc123",
|
|
117
|
-
* contacts: ["+12125551234", "
|
|
117
|
+
* contacts: ["+12125551234", "co_def456", "+13105551234"]
|
|
118
118
|
* })
|
|
119
119
|
*/
|
|
120
120
|
add(request, requestOptions) {
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface SentMmsDetails {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Array of unique message identifiers for an individual MMS send. Each identifier is a string that always begins with the prefix `msg_`, for example: `msg_1234567890`. <br><br>
|
|
7
|
+
* When media assets are too large to fit in a single MMS and `options.multiple_messages` is set to true, the content is automatically split across multiple messages. Each split message gets its own ID, and all IDs are returned in this array. <br><br>
|
|
8
|
+
* Note: When sending to audiences, you'll receive multiple response objects (one per recipient), each containing its own messageIds array.
|
|
9
|
+
*/
|
|
6
10
|
messageIds: string[];
|
|
7
11
|
/** Total number of segments used across the message. */
|
|
8
12
|
segments: number;
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.6";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.
|
|
1
|
+
export const SDK_VERSION = "2.0.6";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rcs-js",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "github:pinnacle-dev/rcs-js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"test": "jest --selectProjects unit && NODE_OPTIONS=--experimental-vm-modules jest --selectProjects wire",
|
|
37
37
|
"test:unit": "jest --selectProjects unit",
|
|
38
38
|
"test:browser": "jest --selectProjects browser",
|
|
39
|
-
"test:wire": "NODE_OPTIONS
|
|
39
|
+
"test:wire": "NODE_OPTIONS=--experimental-vm-modules jest --selectProjects wire"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"mime-types": "^3.0.1"
|
package/reference.md
CHANGED
|
@@ -1882,7 +1882,7 @@ Remove contacts from an existing audience. This operation is idempotent.
|
|
|
1882
1882
|
```typescript
|
|
1883
1883
|
await client.audiences.contacts.remove({
|
|
1884
1884
|
id: "aud_abc123",
|
|
1885
|
-
contacts: ["+12125551234", "
|
|
1885
|
+
contacts: ["+12125551234", "co_def456"],
|
|
1886
1886
|
});
|
|
1887
1887
|
```
|
|
1888
1888
|
|
|
@@ -1951,7 +1951,7 @@ Add contacts to an existing audience. This operation is additive and idempotent.
|
|
|
1951
1951
|
```typescript
|
|
1952
1952
|
await client.audiences.contacts.add({
|
|
1953
1953
|
id: "aud_abc123",
|
|
1954
|
-
contacts: ["+12125551234", "
|
|
1954
|
+
contacts: ["+12125551234", "co_def456", "+13105551234"],
|
|
1955
1955
|
});
|
|
1956
1956
|
```
|
|
1957
1957
|
|