rcs-js 2.0.24-rc.1 → 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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/faxes/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/faxes/client/Client.js +2 -3
- package/dist/cjs/api/resources/faxes/client/requests/SendFaxParams.d.ts +2 -3
- package/dist/cjs/api/types/RichCards.d.ts +23 -0
- package/dist/cjs/api/types/RichCards.js +22 -0
- package/dist/cjs/api/types/RichCardsMessage.d.ts +18 -0
- package/dist/cjs/api/types/RichCardsMessage.js +10 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/faxes/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/faxes/client/Client.mjs +2 -3
- package/dist/esm/api/resources/faxes/client/requests/SendFaxParams.d.mts +2 -3
- package/dist/esm/api/types/RichCards.d.mts +23 -0
- package/dist/esm/api/types/RichCards.mjs +21 -1
- package/dist/esm/api/types/RichCardsMessage.d.mts +18 -0
- package/dist/esm/api/types/RichCardsMessage.mjs +10 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -2
package/dist/cjs/Client.js
CHANGED
|
@@ -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
|
|
59
|
-
"User-Agent": "rcs-js/2.0.24
|
|
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) });
|
|
@@ -54,7 +54,7 @@ export declare class Faxes {
|
|
|
54
54
|
*
|
|
55
55
|
* **Delivery uncertainty:** Pinnacle does not automatically retry a fax after transmission may have started, which prevents duplicate delivery and charges. If transmission cannot be confirmed, status becomes `SUBMISSION_UNKNOWN` while Pinnacle reconciles the fax.
|
|
56
56
|
*
|
|
57
|
-
* **Idempotency:**
|
|
57
|
+
* **Idempotency:** `Idempotency-Key` is optional. Without it, each request creates a new fax, including retries. For retry-safe sending, generate a UUID for each intended fax and retain it until the outcome is known. After a client timeout, retry with the same key and identical body. The key is scoped to your team and covers `from`, `to`, `mediaUrl`, and `quality`. Reusing it with an identical body returns the existing fax; changing any of those fields returns 409.
|
|
58
58
|
*
|
|
59
59
|
* @param {Pinnacle.SendFaxParams} request
|
|
60
60
|
* @param {Faxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -69,7 +69,6 @@ export declare class Faxes {
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* await client.faxes.send({
|
|
72
|
-
* "Idempotency-Key": "Idempotency-Key",
|
|
73
72
|
* from: "from",
|
|
74
73
|
* to: "to",
|
|
75
74
|
* mediaUrl: "mediaUrl"
|
|
@@ -175,7 +175,7 @@ class Faxes {
|
|
|
175
175
|
*
|
|
176
176
|
* **Delivery uncertainty:** Pinnacle does not automatically retry a fax after transmission may have started, which prevents duplicate delivery and charges. If transmission cannot be confirmed, status becomes `SUBMISSION_UNKNOWN` while Pinnacle reconciles the fax.
|
|
177
177
|
*
|
|
178
|
-
* **Idempotency:**
|
|
178
|
+
* **Idempotency:** `Idempotency-Key` is optional. Without it, each request creates a new fax, including retries. For retry-safe sending, generate a UUID for each intended fax and retain it until the outcome is known. After a client timeout, retry with the same key and identical body. The key is scoped to your team and covers `from`, `to`, `mediaUrl`, and `quality`. Reusing it with an identical body returns the existing fax; changing any of those fields returns 409.
|
|
179
179
|
*
|
|
180
180
|
* @param {Pinnacle.SendFaxParams} request
|
|
181
181
|
* @param {Faxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -190,7 +190,6 @@ class Faxes {
|
|
|
190
190
|
*
|
|
191
191
|
* @example
|
|
192
192
|
* await client.faxes.send({
|
|
193
|
-
* "Idempotency-Key": "Idempotency-Key",
|
|
194
193
|
* from: "from",
|
|
195
194
|
* to: "to",
|
|
196
195
|
* mediaUrl: "mediaUrl"
|
|
@@ -203,7 +202,7 @@ class Faxes {
|
|
|
203
202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
203
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
205
204
|
const { "Idempotency-Key": idempotencyKey } = request, _body = __rest(request, ["Idempotency-Key"]);
|
|
206
|
-
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "Idempotency-Key": idempotencyKey }, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
205
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
207
206
|
const _response = yield core.fetcher({
|
|
208
207
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "fax"),
|
|
209
208
|
method: "POST",
|
|
@@ -2,15 +2,14 @@ import type * as Pinnacle from "../../../../index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
-
* "Idempotency-Key": "Idempotency-Key",
|
|
6
5
|
* from: "from",
|
|
7
6
|
* to: "to",
|
|
8
7
|
* mediaUrl: "mediaUrl"
|
|
9
8
|
* }
|
|
10
9
|
*/
|
|
11
10
|
export interface SendFaxParams {
|
|
12
|
-
/**
|
|
13
|
-
"Idempotency-Key"
|
|
11
|
+
/** Optional unique key for one logical send. Without it, every request creates a new fax. Use 1–128 ASCII letters, numbers, periods, underscores, or hyphens. Reuse it only with the identical `from`, `to`, `mediaUrl`, and effective `quality`; any change returns 409. */
|
|
12
|
+
"Idempotency-Key"?: string;
|
|
14
13
|
/** Fax-enabled, non-sandbox number owned by your HIPAA team, in E.164 format (`+` followed by 10–15 digits; the first digit cannot be zero). The number must remain enabled and configured through preparation. Fax sending is unavailable to development-mode teams. */
|
|
15
14
|
from: string;
|
|
16
15
|
/** Recipient fax number in E.164 format (`+` followed by 10–15 digits; the first digit cannot be zero). */
|
|
@@ -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 = {}));
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.24
|
|
1
|
+
export declare const SDK_VERSION = "2.0.24";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -19,8 +19,8 @@ export class PinnacleClient {
|
|
|
19
19
|
this._options = Object.assign(Object.assign({}, _options), { 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
|
|
23
|
-
"User-Agent": "rcs-js/2.0.24
|
|
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) });
|
|
@@ -54,7 +54,7 @@ export declare class Faxes {
|
|
|
54
54
|
*
|
|
55
55
|
* **Delivery uncertainty:** Pinnacle does not automatically retry a fax after transmission may have started, which prevents duplicate delivery and charges. If transmission cannot be confirmed, status becomes `SUBMISSION_UNKNOWN` while Pinnacle reconciles the fax.
|
|
56
56
|
*
|
|
57
|
-
* **Idempotency:**
|
|
57
|
+
* **Idempotency:** `Idempotency-Key` is optional. Without it, each request creates a new fax, including retries. For retry-safe sending, generate a UUID for each intended fax and retain it until the outcome is known. After a client timeout, retry with the same key and identical body. The key is scoped to your team and covers `from`, `to`, `mediaUrl`, and `quality`. Reusing it with an identical body returns the existing fax; changing any of those fields returns 409.
|
|
58
58
|
*
|
|
59
59
|
* @param {Pinnacle.SendFaxParams} request
|
|
60
60
|
* @param {Faxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -69,7 +69,6 @@ export declare class Faxes {
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* await client.faxes.send({
|
|
72
|
-
* "Idempotency-Key": "Idempotency-Key",
|
|
73
72
|
* from: "from",
|
|
74
73
|
* to: "to",
|
|
75
74
|
* mediaUrl: "mediaUrl"
|
|
@@ -139,7 +139,7 @@ export class Faxes {
|
|
|
139
139
|
*
|
|
140
140
|
* **Delivery uncertainty:** Pinnacle does not automatically retry a fax after transmission may have started, which prevents duplicate delivery and charges. If transmission cannot be confirmed, status becomes `SUBMISSION_UNKNOWN` while Pinnacle reconciles the fax.
|
|
141
141
|
*
|
|
142
|
-
* **Idempotency:**
|
|
142
|
+
* **Idempotency:** `Idempotency-Key` is optional. Without it, each request creates a new fax, including retries. For retry-safe sending, generate a UUID for each intended fax and retain it until the outcome is known. After a client timeout, retry with the same key and identical body. The key is scoped to your team and covers `from`, `to`, `mediaUrl`, and `quality`. Reusing it with an identical body returns the existing fax; changing any of those fields returns 409.
|
|
143
143
|
*
|
|
144
144
|
* @param {Pinnacle.SendFaxParams} request
|
|
145
145
|
* @param {Faxes.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -154,7 +154,6 @@ export class Faxes {
|
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
156
|
* await client.faxes.send({
|
|
157
|
-
* "Idempotency-Key": "Idempotency-Key",
|
|
158
157
|
* from: "from",
|
|
159
158
|
* to: "to",
|
|
160
159
|
* mediaUrl: "mediaUrl"
|
|
@@ -167,7 +166,7 @@ export class Faxes {
|
|
|
167
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
167
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
169
168
|
const { "Idempotency-Key": idempotencyKey } = request, _body = __rest(request, ["Idempotency-Key"]);
|
|
170
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ "Idempotency-Key": idempotencyKey }, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
169
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ "Idempotency-Key": idempotencyKey != null ? idempotencyKey : undefined }, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
171
170
|
const _response = yield core.fetcher({
|
|
172
171
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "fax"),
|
|
173
172
|
method: "POST",
|
|
@@ -2,15 +2,14 @@ import type * as Pinnacle from "../../../../index.mjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
-
* "Idempotency-Key": "Idempotency-Key",
|
|
6
5
|
* from: "from",
|
|
7
6
|
* to: "to",
|
|
8
7
|
* mediaUrl: "mediaUrl"
|
|
9
8
|
* }
|
|
10
9
|
*/
|
|
11
10
|
export interface SendFaxParams {
|
|
12
|
-
/**
|
|
13
|
-
"Idempotency-Key"
|
|
11
|
+
/** Optional unique key for one logical send. Without it, every request creates a new fax. Use 1–128 ASCII letters, numbers, periods, underscores, or hyphens. Reuse it only with the identical `from`, `to`, `mediaUrl`, and effective `quality`; any change returns 409. */
|
|
12
|
+
"Idempotency-Key"?: string;
|
|
14
13
|
/** Fax-enabled, non-sandbox number owned by your HIPAA team, in E.164 format (`+` followed by 10–15 digits; the first digit cannot be zero). The number must remain enabled and configured through preparation. Fax sending is unavailable to development-mode teams. */
|
|
15
14
|
from: string;
|
|
16
15
|
/** Recipient fax number in E.164 format (`+` followed by 10–15 digits; the first digit cannot be zero). */
|
|
@@ -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 = {}));
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.24
|
|
1
|
+
export declare const SDK_VERSION = "2.0.24";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.24
|
|
1
|
+
export const SDK_VERSION = "2.0.24";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2417,7 +2417,7 @@ Send one PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, or TXT document from a configured
|
|
|
2417
2417
|
|
|
2418
2418
|
**Delivery uncertainty:** Pinnacle does not automatically retry a fax after transmission may have started, which prevents duplicate delivery and charges. If transmission cannot be confirmed, status becomes `SUBMISSION_UNKNOWN` while Pinnacle reconciles the fax.
|
|
2419
2419
|
|
|
2420
|
-
**Idempotency:**
|
|
2420
|
+
**Idempotency:** `Idempotency-Key` is optional. Without it, each request creates a new fax, including retries. For retry-safe sending, generate a UUID for each intended fax and retain it until the outcome is known. After a client timeout, retry with the same key and identical body. The key is scoped to your team and covers `from`, `to`, `mediaUrl`, and `quality`. Reusing it with an identical body returns the existing fax; changing any of those fields returns 409.
|
|
2421
2421
|
</dd>
|
|
2422
2422
|
</dl>
|
|
2423
2423
|
</dd>
|
|
@@ -2433,7 +2433,6 @@ Send one PDF, TIFF, JPEG, PNG, DOC, DOCX, RTF, or TXT document from a configured
|
|
|
2433
2433
|
|
|
2434
2434
|
```typescript
|
|
2435
2435
|
await client.faxes.send({
|
|
2436
|
-
"Idempotency-Key": "Idempotency-Key",
|
|
2437
2436
|
from: "from",
|
|
2438
2437
|
to: "to",
|
|
2439
2438
|
mediaUrl: "mediaUrl"
|