@signalhouse-sms/sdk 1.10.0 → 1.11.0
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/package.json
CHANGED
package/src/domains/Agents.js
CHANGED
|
@@ -158,6 +158,7 @@
|
|
|
158
158
|
* @property {number|null} [maxCallDurationSeconds] - Hard ceiling on one conversation (60-7200).
|
|
159
159
|
* @property {boolean} [allowGreetingInterruption] - Whether a caller may talk over the greeting.
|
|
160
160
|
* @property {string[]} [keyterms] - Words the transcriber is biased toward — names, jargon, unusual spellings.
|
|
161
|
+
* @property {Array<{kind: string, detail?: string|null}>} [allowedCommitments] - SMS channel only: the "a person will..." promises the agent may send on autopilot. Each `kind` is one of "confirm_booking", "call_back", "text_back", "follow_up", "hold_slot" or "send_reminder", listed at most once; `detail` (up to 200 characters) is shown to staff. Any other promise is held for review. Sending a non-empty list on webchat or voice is a 400.
|
|
161
162
|
* @property {Object|null} [backgroundSound] - Ambient audio bed as `{ preset, volume }`; null = silence.
|
|
162
163
|
* @property {AgentWorkflow|null} [workflow] - Conversation workflow graph. Voice channel only — sending one on webchat or sms is a 400. null = no workflow.
|
|
163
164
|
*/
|
package/src/domains/Numbers.js
CHANGED
|
@@ -87,6 +87,7 @@ export class Numbers {
|
|
|
87
87
|
* @param {string} [params.subgroupId] - Filter by subgroup ID
|
|
88
88
|
* @param {string} [params.groupId] - Filter by group ID
|
|
89
89
|
* @param {boolean} [params.currentTollFreeCarrier] - With subgroupId or groupId: when true, return only toll-free numbers that a new toll-free campaign in that group can use (those on the group's current toll-free carrier)
|
|
90
|
+
* @param {boolean} [params.released] - With subgroupId or groupId: when true, return only its released numbers (status RELEASED) instead of its active ones
|
|
90
91
|
* @param {number} [params.page] - The page number for pagination (default: 1)
|
|
91
92
|
* @param {number} [params.limit] - The number of items per page for pagination (default: 20)
|
|
92
93
|
* @param {RequestOptions} [params.options] - Additional options for the request
|
|
@@ -109,8 +110,8 @@ export class Numbers {
|
|
|
109
110
|
* or GET /campaign/health.
|
|
110
111
|
* @returns {Promise<SdkResponse<any>>} A promise that resolves to the list of phone numbers
|
|
111
112
|
*/
|
|
112
|
-
async getPhoneNumbers({ phoneNumber, campaignId, registrationId, brandId, subgroupId, groupId, currentTollFreeCarrier, page, limit, options = {} }) {
|
|
113
|
-
const filters = { phoneNumber, campaignId, registrationId, brandId, subgroupId, groupId, currentTollFreeCarrier, page, limit };
|
|
113
|
+
async getPhoneNumbers({ phoneNumber, campaignId, registrationId, brandId, subgroupId, groupId, currentTollFreeCarrier, released, page, limit, options = {} }) {
|
|
114
|
+
const filters = { phoneNumber, campaignId, registrationId, brandId, subgroupId, groupId, currentTollFreeCarrier, released, page, limit };
|
|
114
115
|
const queryString = this.client._getQueryString(filters);
|
|
115
116
|
return this.client(`/number${queryString}`, { method: 'GET', ...options });
|
|
116
117
|
}
|
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
* @property {number|null} [maxCallDurationSeconds] - Hard ceiling on one conversation (60-7200).
|
|
149
149
|
* @property {boolean} [allowGreetingInterruption] - Whether a caller may talk over the greeting.
|
|
150
150
|
* @property {string[]} [keyterms] - Words the transcriber is biased toward — names, jargon, unusual spellings.
|
|
151
|
+
* @property {Array<{kind: string, detail?: string|null}>} [allowedCommitments] - SMS channel only: the "a person will..." promises the agent may send on autopilot. Each `kind` is one of "confirm_booking", "call_back", "text_back", "follow_up", "hold_slot" or "send_reminder", listed at most once; `detail` (up to 200 characters) is shown to staff. Any other promise is held for review. Sending a non-empty list on webchat or voice is a 400.
|
|
151
152
|
* @property {Object|null} [backgroundSound] - Ambient audio bed as `{ preset, volume }`; null = silence.
|
|
152
153
|
* @property {AgentWorkflow|null} [workflow] - Conversation workflow graph. Voice channel only — sending one on webchat or sms is a 400. null = no workflow.
|
|
153
154
|
*/
|
|
@@ -1465,6 +1466,13 @@ export type AgentChannelSettingData = {
|
|
|
1465
1466
|
* - Words the transcriber is biased toward — names, jargon, unusual spellings.
|
|
1466
1467
|
*/
|
|
1467
1468
|
keyterms?: string[];
|
|
1469
|
+
/**
|
|
1470
|
+
* - SMS channel only: the "a person will..." promises the agent may send on autopilot. Each `kind` is one of "confirm_booking", "call_back", "text_back", "follow_up", "hold_slot" or "send_reminder", listed at most once; `detail` (up to 200 characters) is shown to staff. Any other promise is held for review. Sending a non-empty list on webchat or voice is a 400.
|
|
1471
|
+
*/
|
|
1472
|
+
allowedCommitments?: Array<{
|
|
1473
|
+
kind: string;
|
|
1474
|
+
detail?: string | null;
|
|
1475
|
+
}>;
|
|
1468
1476
|
/**
|
|
1469
1477
|
* - Ambient audio bed as `{ preset, volume }`; null = silence.
|
|
1470
1478
|
*/
|
|
@@ -77,6 +77,7 @@ export class Numbers {
|
|
|
77
77
|
* @param {string} [params.subgroupId] - Filter by subgroup ID
|
|
78
78
|
* @param {string} [params.groupId] - Filter by group ID
|
|
79
79
|
* @param {boolean} [params.currentTollFreeCarrier] - With subgroupId or groupId: when true, return only toll-free numbers that a new toll-free campaign in that group can use (those on the group's current toll-free carrier)
|
|
80
|
+
* @param {boolean} [params.released] - With subgroupId or groupId: when true, return only its released numbers (status RELEASED) instead of its active ones
|
|
80
81
|
* @param {number} [params.page] - The page number for pagination (default: 1)
|
|
81
82
|
* @param {number} [params.limit] - The number of items per page for pagination (default: 20)
|
|
82
83
|
* @param {RequestOptions} [params.options] - Additional options for the request
|
|
@@ -99,7 +100,7 @@ export class Numbers {
|
|
|
99
100
|
* or GET /campaign/health.
|
|
100
101
|
* @returns {Promise<SdkResponse<any>>} A promise that resolves to the list of phone numbers
|
|
101
102
|
*/
|
|
102
|
-
getPhoneNumbers({ phoneNumber, campaignId, registrationId, brandId, subgroupId, groupId, currentTollFreeCarrier, page, limit, options }: {
|
|
103
|
+
getPhoneNumbers({ phoneNumber, campaignId, registrationId, brandId, subgroupId, groupId, currentTollFreeCarrier, released, page, limit, options }: {
|
|
103
104
|
phoneNumber?: string;
|
|
104
105
|
campaignId?: string;
|
|
105
106
|
registrationId?: string;
|
|
@@ -107,6 +108,7 @@ export class Numbers {
|
|
|
107
108
|
subgroupId?: string;
|
|
108
109
|
groupId?: string;
|
|
109
110
|
currentTollFreeCarrier?: boolean;
|
|
111
|
+
released?: boolean;
|
|
110
112
|
page?: number;
|
|
111
113
|
limit?: number;
|
|
112
114
|
options?: RequestOptions;
|