@pushwoosh/rpc-gateway-messaging 0.6.207 → 0.6.209
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/data.js +17 -0
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +20 -1
package/data.js
CHANGED
|
@@ -1417,6 +1417,17 @@ export const data = {
|
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
1419
|
},
|
|
1420
|
+
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesSMS.RCS": {
|
|
1421
|
+
"type": "I",
|
|
1422
|
+
"fields": {
|
|
1423
|
+
"contentSid": {
|
|
1424
|
+
"type": "string"
|
|
1425
|
+
},
|
|
1426
|
+
"contentVariables": {
|
|
1427
|
+
"type": "string"
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
},
|
|
1420
1431
|
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesSMS": {
|
|
1421
1432
|
"type": "I",
|
|
1422
1433
|
"fields": {
|
|
@@ -1432,6 +1443,9 @@ export const data = {
|
|
|
1432
1443
|
},
|
|
1433
1444
|
"messageAt": {
|
|
1434
1445
|
"type": "number"
|
|
1446
|
+
},
|
|
1447
|
+
"rcs": {
|
|
1448
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesSMS.RCS"
|
|
1435
1449
|
}
|
|
1436
1450
|
}
|
|
1437
1451
|
},
|
|
@@ -1457,6 +1471,9 @@ export const data = {
|
|
|
1457
1471
|
},
|
|
1458
1472
|
"messageTag": {
|
|
1459
1473
|
"type": "string"
|
|
1474
|
+
},
|
|
1475
|
+
"message": {
|
|
1476
|
+
"type": "string"
|
|
1460
1477
|
}
|
|
1461
1478
|
}
|
|
1462
1479
|
},
|
package/package.json
CHANGED
|
@@ -938,6 +938,12 @@ export type Content_PlatformPropertiesAppInbox = {
|
|
|
938
938
|
/** Per-platform override of open_action, keyed by the numeric platform code. */
|
|
939
939
|
openActions: Record<number, OpenAction>;
|
|
940
940
|
};
|
|
941
|
+
export type Content_PlatformPropertiesSMS_RCS = {
|
|
942
|
+
/** Twilio Content template SID (HX followed by 32 hex characters). */
|
|
943
|
+
contentSid: string;
|
|
944
|
+
/** JSON object of template variables; values may hold tags and Liquid. */
|
|
945
|
+
contentVariables: string;
|
|
946
|
+
};
|
|
941
947
|
export type Content_PlatformPropertiesSMS = {
|
|
942
948
|
/** Notification body text. */
|
|
943
949
|
body: string;
|
|
@@ -949,6 +955,11 @@ export type Content_PlatformPropertiesSMS = {
|
|
|
949
955
|
fileUrls: string[];
|
|
950
956
|
/** Attachment index the body text is shown after; 0 means after the first attachment. */
|
|
951
957
|
messageAt: number;
|
|
958
|
+
/**
|
|
959
|
+
* RCS: a Twilio Content template sent instead of the body; Twilio falls back to the template's
|
|
960
|
+
* own SMS text. Accepted only for Twilio applications with their own credentials and a Messaging Service.
|
|
961
|
+
*/
|
|
962
|
+
rcs: Content_PlatformPropertiesSMS_RCS;
|
|
952
963
|
};
|
|
953
964
|
export type Content_PlatformPropertiesTelegram = {
|
|
954
965
|
/** Message text. */
|
|
@@ -966,6 +977,11 @@ export type Content_PlatformPropertiesFBMessenger = {
|
|
|
966
977
|
* HUMAN_AGENT). Required to reach a user outside the 24-hour messaging window.
|
|
967
978
|
*/
|
|
968
979
|
messageTag: string;
|
|
980
|
+
/**
|
|
981
|
+
* Complete Send API `message` object as JSON (text, attachment, template, quick_replies), as stored
|
|
982
|
+
* in an FB Messenger preset. Sent instead of `body`; `body` stays the plain-text form of the message.
|
|
983
|
+
*/
|
|
984
|
+
message: string;
|
|
969
985
|
};
|
|
970
986
|
export type Content_PlatformPropertiesViber = {
|
|
971
987
|
/** Notification body text. */
|
|
@@ -1125,7 +1141,10 @@ export type Payload_kind_silent = {
|
|
|
1125
1141
|
};
|
|
1126
1142
|
export type Payload_kind = Payload_kind_content | Payload_kind_silent;
|
|
1127
1143
|
export type Payload = {
|
|
1128
|
-
/**
|
|
1144
|
+
/**
|
|
1145
|
+
* Preset code (XXXXX-XXXXX) whose content this message starts from: a push preset, a LINE preset when platforms include LINE,
|
|
1146
|
+
* or an FB Messenger preset when platforms include FB_MESSENGER.
|
|
1147
|
+
*/
|
|
1129
1148
|
preset: string;
|
|
1130
1149
|
/** Free-form JSON delivered to the SDK as the `u` parameter. */
|
|
1131
1150
|
customData: object;
|