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.
Files changed (82) hide show
  1. package/Client.d.ts +2 -2
  2. package/Client.js +6 -6
  3. package/api/types/BasicRcs.d.ts +1 -1
  4. package/api/types/Call.d.ts +2 -0
  5. package/api/types/Card.d.ts +1 -1
  6. package/api/types/CardRcs.d.ts +1 -1
  7. package/api/types/CarouselRcs.d.ts +1 -1
  8. package/api/types/Event.d.ts +2 -0
  9. package/api/types/MediaRcs.d.ts +1 -1
  10. package/api/types/Postback.d.ts +3 -1
  11. package/api/types/ShareLocation.d.ts +2 -0
  12. package/api/types/Sms.d.ts +1 -1
  13. package/api/types/Url.d.ts +2 -0
  14. package/api/types/ViewLocation.d.ts +3 -1
  15. package/dist/Client.d.ts +2 -2
  16. package/dist/Client.js +6 -6
  17. package/dist/api/types/BasicRcs.d.ts +1 -1
  18. package/dist/api/types/Call.d.ts +2 -0
  19. package/dist/api/types/Card.d.ts +1 -1
  20. package/dist/api/types/CardRcs.d.ts +1 -1
  21. package/dist/api/types/CarouselRcs.d.ts +1 -1
  22. package/dist/api/types/Event.d.ts +2 -0
  23. package/dist/api/types/MediaRcs.d.ts +1 -1
  24. package/dist/api/types/Postback.d.ts +3 -1
  25. package/dist/api/types/ShareLocation.d.ts +2 -0
  26. package/dist/api/types/Sms.d.ts +1 -1
  27. package/dist/api/types/Url.d.ts +2 -0
  28. package/dist/api/types/ViewLocation.d.ts +3 -1
  29. package/dist/serialization/types/BasicRcs.d.ts +1 -1
  30. package/dist/serialization/types/BasicRcs.js +1 -1
  31. package/dist/serialization/types/Call.d.ts +1 -0
  32. package/dist/serialization/types/Call.js +1 -0
  33. package/dist/serialization/types/Card.d.ts +1 -1
  34. package/dist/serialization/types/Card.js +1 -1
  35. package/dist/serialization/types/CardRcs.d.ts +1 -1
  36. package/dist/serialization/types/CardRcs.js +1 -1
  37. package/dist/serialization/types/CarouselRcs.d.ts +1 -1
  38. package/dist/serialization/types/CarouselRcs.js +1 -1
  39. package/dist/serialization/types/Event.d.ts +1 -0
  40. package/dist/serialization/types/Event.js +1 -0
  41. package/dist/serialization/types/MediaRcs.d.ts +1 -1
  42. package/dist/serialization/types/MediaRcs.js +1 -1
  43. package/dist/serialization/types/Postback.d.ts +1 -0
  44. package/dist/serialization/types/Postback.js +1 -0
  45. package/dist/serialization/types/ShareLocation.d.ts +1 -0
  46. package/dist/serialization/types/ShareLocation.js +1 -0
  47. package/dist/serialization/types/Sms.d.ts +1 -1
  48. package/dist/serialization/types/Sms.js +1 -1
  49. package/dist/serialization/types/Url.d.ts +1 -0
  50. package/dist/serialization/types/Url.js +1 -0
  51. package/dist/serialization/types/ViewLocation.d.ts +2 -1
  52. package/dist/serialization/types/ViewLocation.js +2 -1
  53. package/dist/version.d.ts +1 -1
  54. package/dist/version.js +1 -1
  55. package/package.json +1 -1
  56. package/reference.md +1 -1
  57. package/serialization/types/BasicRcs.d.ts +1 -1
  58. package/serialization/types/BasicRcs.js +1 -1
  59. package/serialization/types/Call.d.ts +1 -0
  60. package/serialization/types/Call.js +1 -0
  61. package/serialization/types/Card.d.ts +1 -1
  62. package/serialization/types/Card.js +1 -1
  63. package/serialization/types/CardRcs.d.ts +1 -1
  64. package/serialization/types/CardRcs.js +1 -1
  65. package/serialization/types/CarouselRcs.d.ts +1 -1
  66. package/serialization/types/CarouselRcs.js +1 -1
  67. package/serialization/types/Event.d.ts +1 -0
  68. package/serialization/types/Event.js +1 -0
  69. package/serialization/types/MediaRcs.d.ts +1 -1
  70. package/serialization/types/MediaRcs.js +1 -1
  71. package/serialization/types/Postback.d.ts +1 -0
  72. package/serialization/types/Postback.js +1 -0
  73. package/serialization/types/ShareLocation.d.ts +1 -0
  74. package/serialization/types/ShareLocation.js +1 -0
  75. package/serialization/types/Sms.d.ts +1 -1
  76. package/serialization/types/Sms.js +1 -1
  77. package/serialization/types/Url.d.ts +1 -0
  78. package/serialization/types/Url.js +1 -0
  79. package/serialization/types/ViewLocation.d.ts +2 -1
  80. package/serialization/types/ViewLocation.js +2 -1
  81. package/version.d.ts +1 -1
  82. 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.2", "User-Agent": "rcs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.2", "User-Agent": "rcs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.2", "User-Agent": "rcs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.2", "User-Agent": "rcs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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?: Pinnacle.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 */
@@ -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
  }
@@ -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: string;
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?: Pinnacle.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?: Pinnacle.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?: Pinnacle.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 button is tapped. */
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
  }
@@ -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?: Pinnacle.PhoneNumber;
7
+ phoneNumber: Pinnacle.PhoneNumber;
8
8
  /** The type of message being sent */
9
9
  messageType: "sms";
10
10
  /** The content of the message */
@@ -4,6 +4,8 @@
4
4
  export interface Url {
5
5
  /** The type of action being sent */
6
6
  actionType: "weburl";
7
+ /** The title for the URL action. Maximum length is 25 characters. */
8
+ title: string;
7
9
  /** The url to open. Maximum length is 1000 characters. */
8
10
  payload: string;
9
11
  }
@@ -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?: string;
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.2", "User-Agent": "rcs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.2", "User-Agent": "rcs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.2", "User-Agent": "rcs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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.2", "User-Agent": "rcs-js/1.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
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?: Pinnacle.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 */
@@ -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
  }
@@ -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: string;
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?: Pinnacle.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?: Pinnacle.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?: Pinnacle.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 button is tapped. */
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
  }
@@ -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?: Pinnacle.PhoneNumber;
7
+ phoneNumber: Pinnacle.PhoneNumber;
8
8
  /** The type of message being sent */
9
9
  messageType: "sms";
10
10
  /** The content of the message */
@@ -4,6 +4,8 @@
4
4
  export interface Url {
5
5
  /** The type of action being sent */
6
6
  actionType: "weburl";
7
+ /** The title for the URL action. Maximum length is 25 characters. */
8
+ title: string;
7
9
  /** The url to open. Maximum length is 1000 characters. */
8
10
  payload: string;
9
11
  }
@@ -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?: string;
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?: PhoneNumber.Raw | null;
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.optional()),
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()),
@@ -8,6 +8,7 @@ export declare const Call: core.serialization.ObjectSchema<serializers.Call.Raw,
8
8
  export declare namespace Call {
9
9
  interface Raw {
10
10
  action_type: "call";
11
+ title: string;
11
12
  payload: string;
12
13
  }
13
14
  }
@@ -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
  });
@@ -11,7 +11,7 @@ export declare namespace Card {
11
11
  interface Raw {
12
12
  title: string;
13
13
  subtitle?: string | null;
14
- image_url: string;
14
+ image_url?: string | null;
15
15
  buttons?: Action.Raw[] | null;
16
16
  card_style?: CardStyle.Raw | null;
17
17
  }
@@ -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?: PhoneNumber.Raw | null;
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.optional()),
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?: PhoneNumber.Raw | null;
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.optional()),
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?: PhoneNumber.Raw | null;
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.optional()),
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
  });
@@ -8,6 +8,7 @@ export declare const Postback: core.serialization.ObjectSchema<serializers.Postb
8
8
  export declare namespace Postback {
9
9
  interface Raw {
10
10
  action_type: "postback";
11
+ title: string;
11
12
  payload: string;
12
13
  execute?: string | null;
13
14
  }
@@ -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?: PhoneNumber.Raw | null;
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.optional()),
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
  });
@@ -8,6 +8,7 @@ export declare const Url: core.serialization.ObjectSchema<serializers.Url.Raw, P
8
8
  export declare namespace Url {
9
9
  interface Raw {
10
10
  action_type: "weburl";
11
+ title: string;
11
12
  payload: string;
12
13
  }
13
14
  }
@@ -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?: string | null;
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().optional(),
36
+ label: core.serialization.string(),
36
37
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.2";
1
+ export declare const SDK_VERSION = "1.0.4";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.0.2";
4
+ exports.SDK_VERSION = "1.0.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rcs-js",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "repository": "https://github.com/pinnacle-dev/rcs-js",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -29,12 +29,12 @@ Send a SMS or RCS message to a phone number
29
29
 
30
30
  ```typescript
31
31
  await client.send({
32
+ phoneNumber: "phone_number",
32
33
  messageType: "card",
33
34
  message: {
34
35
  cards: [
35
36
  {
36
37
  title: "title",
37
- imageUrl: "image_url",
38
38
  },
39
39
  ],
40
40
  },
@@ -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?: PhoneNumber.Raw | null;
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.optional()),
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()),
@@ -8,6 +8,7 @@ export declare const Call: core.serialization.ObjectSchema<serializers.Call.Raw,
8
8
  export declare namespace Call {
9
9
  interface Raw {
10
10
  action_type: "call";
11
+ title: string;
11
12
  payload: string;
12
13
  }
13
14
  }
@@ -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
  });
@@ -11,7 +11,7 @@ export declare namespace Card {
11
11
  interface Raw {
12
12
  title: string;
13
13
  subtitle?: string | null;
14
- image_url: string;
14
+ image_url?: string | null;
15
15
  buttons?: Action.Raw[] | null;
16
16
  card_style?: CardStyle.Raw | null;
17
17
  }
@@ -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?: PhoneNumber.Raw | null;
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.optional()),
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?: PhoneNumber.Raw | null;
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.optional()),
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?: PhoneNumber.Raw | null;
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.optional()),
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
  });
@@ -8,6 +8,7 @@ export declare const Postback: core.serialization.ObjectSchema<serializers.Postb
8
8
  export declare namespace Postback {
9
9
  interface Raw {
10
10
  action_type: "postback";
11
+ title: string;
11
12
  payload: string;
12
13
  execute?: string | null;
13
14
  }
@@ -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?: PhoneNumber.Raw | null;
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.optional()),
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
  });
@@ -8,6 +8,7 @@ export declare const Url: core.serialization.ObjectSchema<serializers.Url.Raw, P
8
8
  export declare namespace Url {
9
9
  interface Raw {
10
10
  action_type: "weburl";
11
+ title: string;
11
12
  payload: string;
12
13
  }
13
14
  }
@@ -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?: string | null;
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().optional(),
36
+ label: core.serialization.string(),
36
37
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.2";
1
+ export declare const SDK_VERSION = "1.0.4";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.0.2";
4
+ exports.SDK_VERSION = "1.0.4";