rcs-js 2.0.24-rc.2 → 2.0.24

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.
@@ -55,8 +55,8 @@ class PinnacleClient {
55
55
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
56
56
  "X-Fern-Language": "JavaScript",
57
57
  "X-Fern-SDK-Name": "rcs-js",
58
- "X-Fern-SDK-Version": "2.0.24-rc.2",
59
- "User-Agent": "rcs-js/2.0.24-rc.2",
58
+ "X-Fern-SDK-Version": "2.0.24",
59
+ "User-Agent": "rcs-js/2.0.24",
60
60
  "X-Fern-Runtime": core.RUNTIME.type,
61
61
  "X-Fern-Runtime-Version": core.RUNTIME.version,
62
62
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -30,10 +30,33 @@ export declare namespace RichCards {
30
30
  buttons?: Pinnacle.RichButton[];
31
31
  /** Media file URLs to send. */
32
32
  media?: string;
33
+ /**
34
+ * Height of the card media. <br><br>
35
+ * **Default:** `MEDIUM` <br>
36
+ * **Valid for:** Carousel cards and vertical standalone cards. <br>
37
+ * **Not valid for:** Horizontal standalone cards. <br>
38
+ * **Requires:** The card must include a `media` field.
39
+ */
40
+ mediaHeight?: Item.MediaHeight;
33
41
  /** Secondary text displayed below the title for additional context. */
34
42
  subtitle?: string;
35
43
  /** Title displayed on the card. */
36
44
  title: string;
37
45
  }
46
+ namespace Item {
47
+ /**
48
+ * Height of the card media. <br><br>
49
+ * **Default:** `MEDIUM` <br>
50
+ * **Valid for:** Carousel cards and vertical standalone cards. <br>
51
+ * **Not valid for:** Horizontal standalone cards. <br>
52
+ * **Requires:** The card must include a `media` field.
53
+ */
54
+ const MediaHeight: {
55
+ readonly Short: "SHORT";
56
+ readonly Medium: "MEDIUM";
57
+ readonly Tall: "TALL";
58
+ };
59
+ type MediaHeight = (typeof MediaHeight)[keyof typeof MediaHeight];
60
+ }
38
61
  }
39
62
  }
@@ -1,3 +1,25 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RichCards = void 0;
5
+ var RichCards;
6
+ (function (RichCards) {
7
+ let Cards;
8
+ (function (Cards) {
9
+ let Item;
10
+ (function (Item) {
11
+ /**
12
+ * Height of the card media. <br><br>
13
+ * **Default:** `MEDIUM` <br>
14
+ * **Valid for:** Carousel cards and vertical standalone cards. <br>
15
+ * **Not valid for:** Horizontal standalone cards. <br>
16
+ * **Requires:** The card must include a `media` field.
17
+ */
18
+ Item.MediaHeight = {
19
+ Short: "SHORT",
20
+ Medium: "MEDIUM",
21
+ Tall: "TALL",
22
+ };
23
+ })(Item = Cards.Item || (Cards.Item = {}));
24
+ })(Cards = RichCards.Cards || (RichCards.Cards = {}));
25
+ })(RichCards || (exports.RichCards = RichCards = {}));
@@ -32,6 +32,13 @@ export declare namespace RichCardsMessage {
32
32
  * > GIFs and videos are not supported and will be rendered as vertical cards.
33
33
  */
34
34
  standalone_card?: Options.StandaloneCard;
35
+ /**
36
+ * Width of each card in a carousel. <br><br>
37
+ * **Default:** `MEDIUM` <br>
38
+ * **Valid for:** Multi-card messages (2 to 10 cards). <br>
39
+ * **Not valid for:** Single-card messages. Setting it with one card fails validation.
40
+ */
41
+ cardWidth?: Options.CardWidth;
35
42
  }
36
43
  namespace Options {
37
44
  /**
@@ -62,5 +69,16 @@ export declare namespace RichCardsMessage {
62
69
  };
63
70
  type ImageAlignment = (typeof ImageAlignment)[keyof typeof ImageAlignment];
64
71
  }
72
+ /**
73
+ * Width of each card in a carousel. <br><br>
74
+ * **Default:** `MEDIUM` <br>
75
+ * **Valid for:** Multi-card messages (2 to 10 cards). <br>
76
+ * **Not valid for:** Single-card messages. Setting it with one card fails validation.
77
+ */
78
+ const CardWidth: {
79
+ readonly Small: "SMALL";
80
+ readonly Medium: "MEDIUM";
81
+ };
82
+ type CardWidth = (typeof CardWidth)[keyof typeof CardWidth];
65
83
  }
66
84
  }
@@ -19,5 +19,15 @@ var RichCardsMessage;
19
19
  Right: "RIGHT",
20
20
  };
21
21
  })(StandaloneCard = Options.StandaloneCard || (Options.StandaloneCard = {}));
22
+ /**
23
+ * Width of each card in a carousel. <br><br>
24
+ * **Default:** `MEDIUM` <br>
25
+ * **Valid for:** Multi-card messages (2 to 10 cards). <br>
26
+ * **Not valid for:** Single-card messages. Setting it with one card fails validation.
27
+ */
28
+ Options.CardWidth = {
29
+ Small: "SMALL",
30
+ Medium: "MEDIUM",
31
+ };
22
32
  })(Options = RichCardsMessage.Options || (RichCardsMessage.Options = {}));
23
33
  })(RichCardsMessage || (exports.RichCardsMessage = RichCardsMessage = {}));
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.24-rc.2";
1
+ export declare const SDK_VERSION = "2.0.24";
@@ -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 = "2.0.24-rc.2";
4
+ exports.SDK_VERSION = "2.0.24";
@@ -19,8 +19,8 @@ export class PinnacleClient {
19
19
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
20
20
  "X-Fern-Language": "JavaScript",
21
21
  "X-Fern-SDK-Name": "rcs-js",
22
- "X-Fern-SDK-Version": "2.0.24-rc.2",
23
- "User-Agent": "rcs-js/2.0.24-rc.2",
22
+ "X-Fern-SDK-Version": "2.0.24",
23
+ "User-Agent": "rcs-js/2.0.24",
24
24
  "X-Fern-Runtime": core.RUNTIME.type,
25
25
  "X-Fern-Runtime-Version": core.RUNTIME.version,
26
26
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -30,10 +30,33 @@ export declare namespace RichCards {
30
30
  buttons?: Pinnacle.RichButton[];
31
31
  /** Media file URLs to send. */
32
32
  media?: string;
33
+ /**
34
+ * Height of the card media. <br><br>
35
+ * **Default:** `MEDIUM` <br>
36
+ * **Valid for:** Carousel cards and vertical standalone cards. <br>
37
+ * **Not valid for:** Horizontal standalone cards. <br>
38
+ * **Requires:** The card must include a `media` field.
39
+ */
40
+ mediaHeight?: Item.MediaHeight;
33
41
  /** Secondary text displayed below the title for additional context. */
34
42
  subtitle?: string;
35
43
  /** Title displayed on the card. */
36
44
  title: string;
37
45
  }
46
+ namespace Item {
47
+ /**
48
+ * Height of the card media. <br><br>
49
+ * **Default:** `MEDIUM` <br>
50
+ * **Valid for:** Carousel cards and vertical standalone cards. <br>
51
+ * **Not valid for:** Horizontal standalone cards. <br>
52
+ * **Requires:** The card must include a `media` field.
53
+ */
54
+ const MediaHeight: {
55
+ readonly Short: "SHORT";
56
+ readonly Medium: "MEDIUM";
57
+ readonly Tall: "TALL";
58
+ };
59
+ type MediaHeight = (typeof MediaHeight)[keyof typeof MediaHeight];
60
+ }
38
61
  }
39
62
  }
@@ -1,2 +1,22 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var RichCards;
3
+ (function (RichCards) {
4
+ let Cards;
5
+ (function (Cards) {
6
+ let Item;
7
+ (function (Item) {
8
+ /**
9
+ * Height of the card media. <br><br>
10
+ * **Default:** `MEDIUM` <br>
11
+ * **Valid for:** Carousel cards and vertical standalone cards. <br>
12
+ * **Not valid for:** Horizontal standalone cards. <br>
13
+ * **Requires:** The card must include a `media` field.
14
+ */
15
+ Item.MediaHeight = {
16
+ Short: "SHORT",
17
+ Medium: "MEDIUM",
18
+ Tall: "TALL",
19
+ };
20
+ })(Item = Cards.Item || (Cards.Item = {}));
21
+ })(Cards = RichCards.Cards || (RichCards.Cards = {}));
22
+ })(RichCards || (RichCards = {}));
@@ -32,6 +32,13 @@ export declare namespace RichCardsMessage {
32
32
  * > GIFs and videos are not supported and will be rendered as vertical cards.
33
33
  */
34
34
  standalone_card?: Options.StandaloneCard;
35
+ /**
36
+ * Width of each card in a carousel. <br><br>
37
+ * **Default:** `MEDIUM` <br>
38
+ * **Valid for:** Multi-card messages (2 to 10 cards). <br>
39
+ * **Not valid for:** Single-card messages. Setting it with one card fails validation.
40
+ */
41
+ cardWidth?: Options.CardWidth;
35
42
  }
36
43
  namespace Options {
37
44
  /**
@@ -62,5 +69,16 @@ export declare namespace RichCardsMessage {
62
69
  };
63
70
  type ImageAlignment = (typeof ImageAlignment)[keyof typeof ImageAlignment];
64
71
  }
72
+ /**
73
+ * Width of each card in a carousel. <br><br>
74
+ * **Default:** `MEDIUM` <br>
75
+ * **Valid for:** Multi-card messages (2 to 10 cards). <br>
76
+ * **Not valid for:** Single-card messages. Setting it with one card fails validation.
77
+ */
78
+ const CardWidth: {
79
+ readonly Small: "SMALL";
80
+ readonly Medium: "MEDIUM";
81
+ };
82
+ type CardWidth = (typeof CardWidth)[keyof typeof CardWidth];
65
83
  }
66
84
  }
@@ -16,5 +16,15 @@ export var RichCardsMessage;
16
16
  Right: "RIGHT",
17
17
  };
18
18
  })(StandaloneCard = Options.StandaloneCard || (Options.StandaloneCard = {}));
19
+ /**
20
+ * Width of each card in a carousel. <br><br>
21
+ * **Default:** `MEDIUM` <br>
22
+ * **Valid for:** Multi-card messages (2 to 10 cards). <br>
23
+ * **Not valid for:** Single-card messages. Setting it with one card fails validation.
24
+ */
25
+ Options.CardWidth = {
26
+ Small: "SMALL",
27
+ Medium: "MEDIUM",
28
+ };
19
29
  })(Options = RichCardsMessage.Options || (RichCardsMessage.Options = {}));
20
30
  })(RichCardsMessage || (RichCardsMessage = {}));
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.24-rc.2";
1
+ export declare const SDK_VERSION = "2.0.24";
@@ -1 +1 @@
1
- export const SDK_VERSION = "2.0.24-rc.2";
1
+ export const SDK_VERSION = "2.0.24";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rcs-js",
3
- "version": "2.0.24-rc.2",
3
+ "version": "2.0.24",
4
4
  "private": false,
5
5
  "repository": "github:pinnacle-dev/rcs-js",
6
6
  "type": "commonjs",