rcs-js 1.0.2 → 1.0.4
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/Client.d.ts +2 -2
- package/Client.js +6 -6
- package/api/types/BasicRcs.d.ts +1 -1
- package/api/types/Call.d.ts +2 -0
- package/api/types/Card.d.ts +1 -1
- package/api/types/CardRcs.d.ts +1 -1
- package/api/types/CarouselRcs.d.ts +1 -1
- package/api/types/Event.d.ts +2 -0
- package/api/types/MediaRcs.d.ts +1 -1
- package/api/types/Postback.d.ts +3 -1
- package/api/types/ShareLocation.d.ts +2 -0
- package/api/types/Sms.d.ts +1 -1
- package/api/types/Url.d.ts +2 -0
- package/api/types/ViewLocation.d.ts +3 -1
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +6 -6
- package/dist/api/types/BasicRcs.d.ts +1 -1
- package/dist/api/types/Call.d.ts +2 -0
- package/dist/api/types/Card.d.ts +1 -1
- package/dist/api/types/CardRcs.d.ts +1 -1
- package/dist/api/types/CarouselRcs.d.ts +1 -1
- package/dist/api/types/Event.d.ts +2 -0
- package/dist/api/types/MediaRcs.d.ts +1 -1
- package/dist/api/types/Postback.d.ts +3 -1
- package/dist/api/types/ShareLocation.d.ts +2 -0
- package/dist/api/types/Sms.d.ts +1 -1
- package/dist/api/types/Url.d.ts +2 -0
- package/dist/api/types/ViewLocation.d.ts +3 -1
- package/dist/serialization/types/BasicRcs.d.ts +1 -1
- package/dist/serialization/types/BasicRcs.js +1 -1
- package/dist/serialization/types/Call.d.ts +1 -0
- package/dist/serialization/types/Call.js +1 -0
- package/dist/serialization/types/Card.d.ts +1 -1
- package/dist/serialization/types/Card.js +1 -1
- package/dist/serialization/types/CardRcs.d.ts +1 -1
- package/dist/serialization/types/CardRcs.js +1 -1
- package/dist/serialization/types/CarouselRcs.d.ts +1 -1
- package/dist/serialization/types/CarouselRcs.js +1 -1
- package/dist/serialization/types/Event.d.ts +1 -0
- package/dist/serialization/types/Event.js +1 -0
- package/dist/serialization/types/MediaRcs.d.ts +1 -1
- package/dist/serialization/types/MediaRcs.js +1 -1
- package/dist/serialization/types/Postback.d.ts +1 -0
- package/dist/serialization/types/Postback.js +1 -0
- package/dist/serialization/types/ShareLocation.d.ts +1 -0
- package/dist/serialization/types/ShareLocation.js +1 -0
- package/dist/serialization/types/Sms.d.ts +1 -1
- package/dist/serialization/types/Sms.js +1 -1
- package/dist/serialization/types/Url.d.ts +1 -0
- package/dist/serialization/types/Url.js +1 -0
- package/dist/serialization/types/ViewLocation.d.ts +2 -1
- package/dist/serialization/types/ViewLocation.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
- package/serialization/types/BasicRcs.d.ts +1 -1
- package/serialization/types/BasicRcs.js +1 -1
- package/serialization/types/Call.d.ts +1 -0
- package/serialization/types/Call.js +1 -0
- package/serialization/types/Card.d.ts +1 -1
- package/serialization/types/Card.js +1 -1
- package/serialization/types/CardRcs.d.ts +1 -1
- package/serialization/types/CardRcs.js +1 -1
- package/serialization/types/CarouselRcs.d.ts +1 -1
- package/serialization/types/CarouselRcs.js +1 -1
- package/serialization/types/Event.d.ts +1 -0
- package/serialization/types/Event.js +1 -0
- package/serialization/types/MediaRcs.d.ts +1 -1
- package/serialization/types/MediaRcs.js +1 -1
- package/serialization/types/Postback.d.ts +1 -0
- package/serialization/types/Postback.js +1 -0
- package/serialization/types/ShareLocation.d.ts +1 -0
- package/serialization/types/ShareLocation.js +1 -0
- package/serialization/types/Sms.d.ts +1 -1
- package/serialization/types/Sms.js +1 -1
- package/serialization/types/Url.d.ts +1 -0
- package/serialization/types/Url.js +1 -0
- package/serialization/types/ViewLocation.d.ts +2 -1
- package/serialization/types/ViewLocation.js +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/Client.d.ts
CHANGED
|
@@ -77,11 +77,11 @@ export declare class PinnacleClient {
|
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* await client.send({
|
|
80
|
+
* phoneNumber: "phone_number",
|
|
80
81
|
* messageType: "card",
|
|
81
82
|
* message: {
|
|
82
83
|
* cards: [{
|
|
83
|
-
* title: "title"
|
|
84
|
-
* imageUrl: "image_url"
|
|
84
|
+
* title: "title"
|
|
85
85
|
* }]
|
|
86
86
|
* }
|
|
87
87
|
* })
|
package/Client.js
CHANGED
|
@@ -73,7 +73,7 @@ class PinnacleClient {
|
|
|
73
73
|
const _response = yield core.fetcher({
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "check_rcs"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.4", "User-Agent": "rcs-js/1.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
queryParameters: _queryParams,
|
|
79
79
|
requestType: "json",
|
|
@@ -155,7 +155,7 @@ class PinnacleClient {
|
|
|
155
155
|
const _response = yield core.fetcher({
|
|
156
156
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "update_settings"),
|
|
157
157
|
method: "POST",
|
|
158
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
158
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.4", "User-Agent": "rcs-js/1.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
requestType: "json",
|
|
161
161
|
body: serializers.UpdateSettingsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -233,7 +233,7 @@ class PinnacleClient {
|
|
|
233
233
|
const _response = yield core.fetcher({
|
|
234
234
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "get_account_number"),
|
|
235
235
|
method: "GET",
|
|
236
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
236
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.4", "User-Agent": "rcs-js/1.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
237
237
|
contentType: "application/json",
|
|
238
238
|
requestType: "json",
|
|
239
239
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -298,11 +298,11 @@ class PinnacleClient {
|
|
|
298
298
|
*
|
|
299
299
|
* @example
|
|
300
300
|
* await client.send({
|
|
301
|
+
* phoneNumber: "phone_number",
|
|
301
302
|
* messageType: "card",
|
|
302
303
|
* message: {
|
|
303
304
|
* cards: [{
|
|
304
|
-
* title: "title"
|
|
305
|
-
* imageUrl: "image_url"
|
|
305
|
+
* title: "title"
|
|
306
306
|
* }]
|
|
307
307
|
* }
|
|
308
308
|
* })
|
|
@@ -313,7 +313,7 @@ class PinnacleClient {
|
|
|
313
313
|
const _response = yield core.fetcher({
|
|
314
314
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send"),
|
|
315
315
|
method: "POST",
|
|
316
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
316
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.4", "User-Agent": "rcs-js/1.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
317
317
|
contentType: "application/json",
|
|
318
318
|
requestType: "json",
|
|
319
319
|
body: serializers.SendRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
package/api/types/BasicRcs.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface BasicRcs {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "basic-rcs";
|
|
10
10
|
/** The content of the message */
|
package/api/types/Call.d.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
export interface Call {
|
|
5
5
|
/** The type of action being sent */
|
|
6
6
|
actionType: "call";
|
|
7
|
+
/** The title for the call action. Maximum length is 25 characters. */
|
|
8
|
+
title: string;
|
|
7
9
|
/** The number to call in E. 164 format. Maximum length is 1000 characters. */
|
|
8
10
|
payload: string;
|
|
9
11
|
}
|
package/api/types/Card.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface Card {
|
|
|
8
8
|
/** The subtitle of the card */
|
|
9
9
|
subtitle?: string;
|
|
10
10
|
/** The URL of the image to be displayed on the card */
|
|
11
|
-
imageUrl
|
|
11
|
+
imageUrl?: string;
|
|
12
12
|
/** Array of buttons attached to the card. Maximum of 4 buttons. */
|
|
13
13
|
buttons?: Pinnacle.Action[];
|
|
14
14
|
/** The style of the card */
|
package/api/types/CardRcs.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface CardRcs {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "card";
|
|
10
10
|
/** The content of the message */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface CarouselRcs {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "carousel";
|
|
10
10
|
/** The content of the message */
|
package/api/types/Event.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface Event {
|
|
5
|
+
/** The title for the event action. Maximum length is 25 characters. */
|
|
6
|
+
title: string;
|
|
5
7
|
/** The type of message being sent */
|
|
6
8
|
actionType: "calendar";
|
|
7
9
|
/** The start time for the event. */
|
package/api/types/MediaRcs.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface MediaRcs {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "media";
|
|
10
10
|
/** The content of the message */
|
package/api/types/Postback.d.ts
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
export interface Postback {
|
|
5
5
|
/** The type of action being sent */
|
|
6
6
|
actionType: "postback";
|
|
7
|
+
/** The title for the postback acti9on. Maximum length is 25 characters. */
|
|
8
|
+
title: string;
|
|
7
9
|
/** The postback payload. Maximum length is 1000 characters. */
|
|
8
10
|
payload: string;
|
|
9
|
-
/** The action to execute. Optional additional data sent when the
|
|
11
|
+
/** The action to execute. Optional additional data sent when the action is tapped. */
|
|
10
12
|
execute?: string;
|
|
11
13
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface ShareLocation {
|
|
5
|
+
/** The title for the share location action. Maximum length is 25 characters. */
|
|
6
|
+
title: string;
|
|
5
7
|
/** The type of action being sent */
|
|
6
8
|
actionType: "share_location";
|
|
7
9
|
}
|
package/api/types/Sms.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface Sms {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "sms";
|
|
10
10
|
/** The content of the message */
|
package/api/types/Url.d.ts
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface ViewLocation {
|
|
6
|
+
/** The title for the view location action. Maximum length is 25 characters. */
|
|
7
|
+
title?: string;
|
|
6
8
|
/** The type of action being sent */
|
|
7
9
|
actionType: "view_location";
|
|
8
10
|
latLng: Pinnacle.LatLng;
|
|
9
11
|
/** The name of the location */
|
|
10
|
-
label
|
|
12
|
+
label: string;
|
|
11
13
|
}
|
package/dist/Client.d.ts
CHANGED
|
@@ -77,11 +77,11 @@ export declare class PinnacleClient {
|
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* await client.send({
|
|
80
|
+
* phoneNumber: "phone_number",
|
|
80
81
|
* messageType: "card",
|
|
81
82
|
* message: {
|
|
82
83
|
* cards: [{
|
|
83
|
-
* title: "title"
|
|
84
|
-
* imageUrl: "image_url"
|
|
84
|
+
* title: "title"
|
|
85
85
|
* }]
|
|
86
86
|
* }
|
|
87
87
|
* })
|
package/dist/Client.js
CHANGED
|
@@ -73,7 +73,7 @@ class PinnacleClient {
|
|
|
73
73
|
const _response = yield core.fetcher({
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "check_rcs"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.4", "User-Agent": "rcs-js/1.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
queryParameters: _queryParams,
|
|
79
79
|
requestType: "json",
|
|
@@ -155,7 +155,7 @@ class PinnacleClient {
|
|
|
155
155
|
const _response = yield core.fetcher({
|
|
156
156
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "update_settings"),
|
|
157
157
|
method: "POST",
|
|
158
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
158
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.4", "User-Agent": "rcs-js/1.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
requestType: "json",
|
|
161
161
|
body: serializers.UpdateSettingsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -233,7 +233,7 @@ class PinnacleClient {
|
|
|
233
233
|
const _response = yield core.fetcher({
|
|
234
234
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "get_account_number"),
|
|
235
235
|
method: "GET",
|
|
236
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
236
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.4", "User-Agent": "rcs-js/1.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
237
237
|
contentType: "application/json",
|
|
238
238
|
requestType: "json",
|
|
239
239
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -298,11 +298,11 @@ class PinnacleClient {
|
|
|
298
298
|
*
|
|
299
299
|
* @example
|
|
300
300
|
* await client.send({
|
|
301
|
+
* phoneNumber: "phone_number",
|
|
301
302
|
* messageType: "card",
|
|
302
303
|
* message: {
|
|
303
304
|
* cards: [{
|
|
304
|
-
* title: "title"
|
|
305
|
-
* imageUrl: "image_url"
|
|
305
|
+
* title: "title"
|
|
306
306
|
* }]
|
|
307
307
|
* }
|
|
308
308
|
* })
|
|
@@ -313,7 +313,7 @@ class PinnacleClient {
|
|
|
313
313
|
const _response = yield core.fetcher({
|
|
314
314
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send"),
|
|
315
315
|
method: "POST",
|
|
316
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.
|
|
316
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.4", "User-Agent": "rcs-js/1.0.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
317
317
|
contentType: "application/json",
|
|
318
318
|
requestType: "json",
|
|
319
319
|
body: serializers.SendRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface BasicRcs {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "basic-rcs";
|
|
10
10
|
/** The content of the message */
|
package/dist/api/types/Call.d.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
export interface Call {
|
|
5
5
|
/** The type of action being sent */
|
|
6
6
|
actionType: "call";
|
|
7
|
+
/** The title for the call action. Maximum length is 25 characters. */
|
|
8
|
+
title: string;
|
|
7
9
|
/** The number to call in E. 164 format. Maximum length is 1000 characters. */
|
|
8
10
|
payload: string;
|
|
9
11
|
}
|
package/dist/api/types/Card.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface Card {
|
|
|
8
8
|
/** The subtitle of the card */
|
|
9
9
|
subtitle?: string;
|
|
10
10
|
/** The URL of the image to be displayed on the card */
|
|
11
|
-
imageUrl
|
|
11
|
+
imageUrl?: string;
|
|
12
12
|
/** Array of buttons attached to the card. Maximum of 4 buttons. */
|
|
13
13
|
buttons?: Pinnacle.Action[];
|
|
14
14
|
/** The style of the card */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface CardRcs {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "card";
|
|
10
10
|
/** The content of the message */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface CarouselRcs {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "carousel";
|
|
10
10
|
/** The content of the message */
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface Event {
|
|
5
|
+
/** The title for the event action. Maximum length is 25 characters. */
|
|
6
|
+
title: string;
|
|
5
7
|
/** The type of message being sent */
|
|
6
8
|
actionType: "calendar";
|
|
7
9
|
/** The start time for the event. */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface MediaRcs {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "media";
|
|
10
10
|
/** The content of the message */
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
export interface Postback {
|
|
5
5
|
/** The type of action being sent */
|
|
6
6
|
actionType: "postback";
|
|
7
|
+
/** The title for the postback acti9on. Maximum length is 25 characters. */
|
|
8
|
+
title: string;
|
|
7
9
|
/** The postback payload. Maximum length is 1000 characters. */
|
|
8
10
|
payload: string;
|
|
9
|
-
/** The action to execute. Optional additional data sent when the
|
|
11
|
+
/** The action to execute. Optional additional data sent when the action is tapped. */
|
|
10
12
|
execute?: string;
|
|
11
13
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface ShareLocation {
|
|
5
|
+
/** The title for the share location action. Maximum length is 25 characters. */
|
|
6
|
+
title: string;
|
|
5
7
|
/** The type of action being sent */
|
|
6
8
|
actionType: "share_location";
|
|
7
9
|
}
|
package/dist/api/types/Sms.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface Sms {
|
|
6
6
|
/** Phone number to send the SMS message to */
|
|
7
|
-
phoneNumber
|
|
7
|
+
phoneNumber: Pinnacle.PhoneNumber;
|
|
8
8
|
/** The type of message being sent */
|
|
9
9
|
messageType: "sms";
|
|
10
10
|
/** The content of the message */
|
package/dist/api/types/Url.d.ts
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Pinnacle from "../index";
|
|
5
5
|
export interface ViewLocation {
|
|
6
|
+
/** The title for the view location action. Maximum length is 25 characters. */
|
|
7
|
+
title?: string;
|
|
6
8
|
/** The type of action being sent */
|
|
7
9
|
actionType: "view_location";
|
|
8
10
|
latLng: Pinnacle.LatLng;
|
|
9
11
|
/** The name of the location */
|
|
10
|
-
label
|
|
12
|
+
label: string;
|
|
11
13
|
}
|
|
@@ -10,7 +10,7 @@ import { Action } from "./Action";
|
|
|
10
10
|
export declare const BasicRcs: core.serialization.ObjectSchema<serializers.BasicRcs.Raw, Pinnacle.BasicRcs>;
|
|
11
11
|
export declare namespace BasicRcs {
|
|
12
12
|
interface Raw {
|
|
13
|
-
phone_number
|
|
13
|
+
phone_number: PhoneNumber.Raw;
|
|
14
14
|
message_type: "basic-rcs";
|
|
15
15
|
message: BasicRcsMessage.Raw;
|
|
16
16
|
quick_replies?: Action.Raw[] | null;
|
|
@@ -32,7 +32,7 @@ const PhoneNumber_1 = require("./PhoneNumber");
|
|
|
32
32
|
const BasicRcsMessage_1 = require("./BasicRcsMessage");
|
|
33
33
|
const Action_1 = require("./Action");
|
|
34
34
|
exports.BasicRcs = core.serialization.object({
|
|
35
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
35
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
36
36
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("basic-rcs")),
|
|
37
37
|
message: BasicRcsMessage_1.BasicRcsMessage,
|
|
38
38
|
quickReplies: core.serialization.property("quick_replies", core.serialization.list(Action_1.Action).optional()),
|
|
@@ -30,5 +30,6 @@ exports.Call = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Call = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("call")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
});
|
|
@@ -33,7 +33,7 @@ const CardStyle_1 = require("./CardStyle");
|
|
|
33
33
|
exports.Card = core.serialization.object({
|
|
34
34
|
title: core.serialization.string(),
|
|
35
35
|
subtitle: core.serialization.string().optional(),
|
|
36
|
-
imageUrl: core.serialization.property("image_url", core.serialization.string()),
|
|
36
|
+
imageUrl: core.serialization.property("image_url", core.serialization.string().optional()),
|
|
37
37
|
buttons: core.serialization.list(Action_1.Action).optional(),
|
|
38
38
|
cardStyle: core.serialization.property("card_style", CardStyle_1.CardStyle.optional()),
|
|
39
39
|
});
|
|
@@ -9,7 +9,7 @@ import { CardRcsMessage } from "./CardRcsMessage";
|
|
|
9
9
|
export declare const CardRcs: core.serialization.ObjectSchema<serializers.CardRcs.Raw, Pinnacle.CardRcs>;
|
|
10
10
|
export declare namespace CardRcs {
|
|
11
11
|
interface Raw {
|
|
12
|
-
phone_number
|
|
12
|
+
phone_number: PhoneNumber.Raw;
|
|
13
13
|
message_type: "card";
|
|
14
14
|
message: CardRcsMessage.Raw;
|
|
15
15
|
}
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
32
|
const CardRcsMessage_1 = require("./CardRcsMessage");
|
|
33
33
|
exports.CardRcs = core.serialization.object({
|
|
34
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
34
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
35
35
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("card")),
|
|
36
36
|
message: CardRcsMessage_1.CardRcsMessage,
|
|
37
37
|
});
|
|
@@ -9,7 +9,7 @@ import { CarouselRcsMessage } from "./CarouselRcsMessage";
|
|
|
9
9
|
export declare const CarouselRcs: core.serialization.ObjectSchema<serializers.CarouselRcs.Raw, Pinnacle.CarouselRcs>;
|
|
10
10
|
export declare namespace CarouselRcs {
|
|
11
11
|
interface Raw {
|
|
12
|
-
phone_number
|
|
12
|
+
phone_number: PhoneNumber.Raw;
|
|
13
13
|
message_type: "carousel";
|
|
14
14
|
message: CarouselRcsMessage.Raw;
|
|
15
15
|
}
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
32
|
const CarouselRcsMessage_1 = require("./CarouselRcsMessage");
|
|
33
33
|
exports.CarouselRcs = core.serialization.object({
|
|
34
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
34
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
35
35
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("carousel")),
|
|
36
36
|
message: CarouselRcsMessage_1.CarouselRcsMessage,
|
|
37
37
|
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const Event: core.serialization.ObjectSchema<serializers.Event.Raw, Pinnacle.Event>;
|
|
8
8
|
export declare namespace Event {
|
|
9
9
|
interface Raw {
|
|
10
|
+
title: string;
|
|
10
11
|
action_type: "calendar";
|
|
11
12
|
start_time: string;
|
|
12
13
|
end_time: string;
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Event = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Event = core.serialization.object({
|
|
32
|
+
title: core.serialization.string(),
|
|
32
33
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("calendar")),
|
|
33
34
|
startTime: core.serialization.property("start_time", core.serialization.date()),
|
|
34
35
|
endTime: core.serialization.property("end_time", core.serialization.date()),
|
|
@@ -9,7 +9,7 @@ import { MediaRcsMessage } from "./MediaRcsMessage";
|
|
|
9
9
|
export declare const MediaRcs: core.serialization.ObjectSchema<serializers.MediaRcs.Raw, Pinnacle.MediaRcs>;
|
|
10
10
|
export declare namespace MediaRcs {
|
|
11
11
|
interface Raw {
|
|
12
|
-
phone_number
|
|
12
|
+
phone_number: PhoneNumber.Raw;
|
|
13
13
|
message_type: "media";
|
|
14
14
|
message: MediaRcsMessage.Raw;
|
|
15
15
|
}
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
32
|
const MediaRcsMessage_1 = require("./MediaRcsMessage");
|
|
33
33
|
exports.MediaRcs = core.serialization.object({
|
|
34
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
34
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
35
35
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("media")),
|
|
36
36
|
message: MediaRcsMessage_1.MediaRcsMessage,
|
|
37
37
|
});
|
|
@@ -30,6 +30,7 @@ exports.Postback = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Postback = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("postback")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
execute: core.serialization.string().optional(),
|
|
35
36
|
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const ShareLocation: core.serialization.ObjectSchema<serializers.ShareLocation.Raw, Pinnacle.ShareLocation>;
|
|
8
8
|
export declare namespace ShareLocation {
|
|
9
9
|
interface Raw {
|
|
10
|
+
title: string;
|
|
10
11
|
action_type: "share_location";
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -29,5 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ShareLocation = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ShareLocation = core.serialization.object({
|
|
32
|
+
title: core.serialization.string(),
|
|
32
33
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("share_location")),
|
|
33
34
|
});
|
|
@@ -9,7 +9,7 @@ import { SmsMessage } from "./SmsMessage";
|
|
|
9
9
|
export declare const Sms: core.serialization.ObjectSchema<serializers.Sms.Raw, Pinnacle.Sms>;
|
|
10
10
|
export declare namespace Sms {
|
|
11
11
|
interface Raw {
|
|
12
|
-
phone_number
|
|
12
|
+
phone_number: PhoneNumber.Raw;
|
|
13
13
|
message_type: "sms";
|
|
14
14
|
message: SmsMessage.Raw;
|
|
15
15
|
}
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
32
|
const SmsMessage_1 = require("./SmsMessage");
|
|
33
33
|
exports.Sms = core.serialization.object({
|
|
34
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
34
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
35
35
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("sms")),
|
|
36
36
|
message: SmsMessage_1.SmsMessage,
|
|
37
37
|
});
|
|
@@ -30,5 +30,6 @@ exports.Url = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Url = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("weburl")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
});
|
|
@@ -8,8 +8,9 @@ import { LatLng } from "./LatLng";
|
|
|
8
8
|
export declare const ViewLocation: core.serialization.ObjectSchema<serializers.ViewLocation.Raw, Pinnacle.ViewLocation>;
|
|
9
9
|
export declare namespace ViewLocation {
|
|
10
10
|
interface Raw {
|
|
11
|
+
title?: string | null;
|
|
11
12
|
action_type: "view_location";
|
|
12
13
|
lat_lng: LatLng.Raw;
|
|
13
|
-
label
|
|
14
|
+
label: string;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -30,7 +30,8 @@ exports.ViewLocation = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const LatLng_1 = require("./LatLng");
|
|
32
32
|
exports.ViewLocation = core.serialization.object({
|
|
33
|
+
title: core.serialization.string().optional(),
|
|
33
34
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("view_location")),
|
|
34
35
|
latLng: core.serialization.property("lat_lng", LatLng_1.LatLng),
|
|
35
|
-
label: core.serialization.string()
|
|
36
|
+
label: core.serialization.string(),
|
|
36
37
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.4";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -10,7 +10,7 @@ import { Action } from "./Action";
|
|
|
10
10
|
export declare const BasicRcs: core.serialization.ObjectSchema<serializers.BasicRcs.Raw, Pinnacle.BasicRcs>;
|
|
11
11
|
export declare namespace BasicRcs {
|
|
12
12
|
interface Raw {
|
|
13
|
-
phone_number
|
|
13
|
+
phone_number: PhoneNumber.Raw;
|
|
14
14
|
message_type: "basic-rcs";
|
|
15
15
|
message: BasicRcsMessage.Raw;
|
|
16
16
|
quick_replies?: Action.Raw[] | null;
|
|
@@ -32,7 +32,7 @@ const PhoneNumber_1 = require("./PhoneNumber");
|
|
|
32
32
|
const BasicRcsMessage_1 = require("./BasicRcsMessage");
|
|
33
33
|
const Action_1 = require("./Action");
|
|
34
34
|
exports.BasicRcs = core.serialization.object({
|
|
35
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
35
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
36
36
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("basic-rcs")),
|
|
37
37
|
message: BasicRcsMessage_1.BasicRcsMessage,
|
|
38
38
|
quickReplies: core.serialization.property("quick_replies", core.serialization.list(Action_1.Action).optional()),
|
|
@@ -30,5 +30,6 @@ exports.Call = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Call = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("call")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
});
|
|
@@ -33,7 +33,7 @@ const CardStyle_1 = require("./CardStyle");
|
|
|
33
33
|
exports.Card = core.serialization.object({
|
|
34
34
|
title: core.serialization.string(),
|
|
35
35
|
subtitle: core.serialization.string().optional(),
|
|
36
|
-
imageUrl: core.serialization.property("image_url", core.serialization.string()),
|
|
36
|
+
imageUrl: core.serialization.property("image_url", core.serialization.string().optional()),
|
|
37
37
|
buttons: core.serialization.list(Action_1.Action).optional(),
|
|
38
38
|
cardStyle: core.serialization.property("card_style", CardStyle_1.CardStyle.optional()),
|
|
39
39
|
});
|
|
@@ -9,7 +9,7 @@ import { CardRcsMessage } from "./CardRcsMessage";
|
|
|
9
9
|
export declare const CardRcs: core.serialization.ObjectSchema<serializers.CardRcs.Raw, Pinnacle.CardRcs>;
|
|
10
10
|
export declare namespace CardRcs {
|
|
11
11
|
interface Raw {
|
|
12
|
-
phone_number
|
|
12
|
+
phone_number: PhoneNumber.Raw;
|
|
13
13
|
message_type: "card";
|
|
14
14
|
message: CardRcsMessage.Raw;
|
|
15
15
|
}
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
32
|
const CardRcsMessage_1 = require("./CardRcsMessage");
|
|
33
33
|
exports.CardRcs = core.serialization.object({
|
|
34
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
34
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
35
35
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("card")),
|
|
36
36
|
message: CardRcsMessage_1.CardRcsMessage,
|
|
37
37
|
});
|
|
@@ -9,7 +9,7 @@ import { CarouselRcsMessage } from "./CarouselRcsMessage";
|
|
|
9
9
|
export declare const CarouselRcs: core.serialization.ObjectSchema<serializers.CarouselRcs.Raw, Pinnacle.CarouselRcs>;
|
|
10
10
|
export declare namespace CarouselRcs {
|
|
11
11
|
interface Raw {
|
|
12
|
-
phone_number
|
|
12
|
+
phone_number: PhoneNumber.Raw;
|
|
13
13
|
message_type: "carousel";
|
|
14
14
|
message: CarouselRcsMessage.Raw;
|
|
15
15
|
}
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
32
|
const CarouselRcsMessage_1 = require("./CarouselRcsMessage");
|
|
33
33
|
exports.CarouselRcs = core.serialization.object({
|
|
34
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
34
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
35
35
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("carousel")),
|
|
36
36
|
message: CarouselRcsMessage_1.CarouselRcsMessage,
|
|
37
37
|
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const Event: core.serialization.ObjectSchema<serializers.Event.Raw, Pinnacle.Event>;
|
|
8
8
|
export declare namespace Event {
|
|
9
9
|
interface Raw {
|
|
10
|
+
title: string;
|
|
10
11
|
action_type: "calendar";
|
|
11
12
|
start_time: string;
|
|
12
13
|
end_time: string;
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Event = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Event = core.serialization.object({
|
|
32
|
+
title: core.serialization.string(),
|
|
32
33
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("calendar")),
|
|
33
34
|
startTime: core.serialization.property("start_time", core.serialization.date()),
|
|
34
35
|
endTime: core.serialization.property("end_time", core.serialization.date()),
|
|
@@ -9,7 +9,7 @@ import { MediaRcsMessage } from "./MediaRcsMessage";
|
|
|
9
9
|
export declare const MediaRcs: core.serialization.ObjectSchema<serializers.MediaRcs.Raw, Pinnacle.MediaRcs>;
|
|
10
10
|
export declare namespace MediaRcs {
|
|
11
11
|
interface Raw {
|
|
12
|
-
phone_number
|
|
12
|
+
phone_number: PhoneNumber.Raw;
|
|
13
13
|
message_type: "media";
|
|
14
14
|
message: MediaRcsMessage.Raw;
|
|
15
15
|
}
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
32
|
const MediaRcsMessage_1 = require("./MediaRcsMessage");
|
|
33
33
|
exports.MediaRcs = core.serialization.object({
|
|
34
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
34
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
35
35
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("media")),
|
|
36
36
|
message: MediaRcsMessage_1.MediaRcsMessage,
|
|
37
37
|
});
|
|
@@ -30,6 +30,7 @@ exports.Postback = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Postback = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("postback")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
execute: core.serialization.string().optional(),
|
|
35
36
|
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const ShareLocation: core.serialization.ObjectSchema<serializers.ShareLocation.Raw, Pinnacle.ShareLocation>;
|
|
8
8
|
export declare namespace ShareLocation {
|
|
9
9
|
interface Raw {
|
|
10
|
+
title: string;
|
|
10
11
|
action_type: "share_location";
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -29,5 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ShareLocation = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ShareLocation = core.serialization.object({
|
|
32
|
+
title: core.serialization.string(),
|
|
32
33
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("share_location")),
|
|
33
34
|
});
|
|
@@ -9,7 +9,7 @@ import { SmsMessage } from "./SmsMessage";
|
|
|
9
9
|
export declare const Sms: core.serialization.ObjectSchema<serializers.Sms.Raw, Pinnacle.Sms>;
|
|
10
10
|
export declare namespace Sms {
|
|
11
11
|
interface Raw {
|
|
12
|
-
phone_number
|
|
12
|
+
phone_number: PhoneNumber.Raw;
|
|
13
13
|
message_type: "sms";
|
|
14
14
|
message: SmsMessage.Raw;
|
|
15
15
|
}
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
32
|
const SmsMessage_1 = require("./SmsMessage");
|
|
33
33
|
exports.Sms = core.serialization.object({
|
|
34
|
-
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber
|
|
34
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber),
|
|
35
35
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("sms")),
|
|
36
36
|
message: SmsMessage_1.SmsMessage,
|
|
37
37
|
});
|
|
@@ -30,5 +30,6 @@ exports.Url = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.Url = core.serialization.object({
|
|
32
32
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("weburl")),
|
|
33
|
+
title: core.serialization.string(),
|
|
33
34
|
payload: core.serialization.string(),
|
|
34
35
|
});
|
|
@@ -8,8 +8,9 @@ import { LatLng } from "./LatLng";
|
|
|
8
8
|
export declare const ViewLocation: core.serialization.ObjectSchema<serializers.ViewLocation.Raw, Pinnacle.ViewLocation>;
|
|
9
9
|
export declare namespace ViewLocation {
|
|
10
10
|
interface Raw {
|
|
11
|
+
title?: string | null;
|
|
11
12
|
action_type: "view_location";
|
|
12
13
|
lat_lng: LatLng.Raw;
|
|
13
|
-
label
|
|
14
|
+
label: string;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -30,7 +30,8 @@ exports.ViewLocation = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const LatLng_1 = require("./LatLng");
|
|
32
32
|
exports.ViewLocation = core.serialization.object({
|
|
33
|
+
title: core.serialization.string().optional(),
|
|
33
34
|
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("view_location")),
|
|
34
35
|
latLng: core.serialization.property("lat_lng", LatLng_1.LatLng),
|
|
35
|
-
label: core.serialization.string()
|
|
36
|
+
label: core.serialization.string(),
|
|
36
37
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.4";
|
package/version.js
CHANGED