@talqing/sdk 0.22.1 → 0.22.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talqing/sdk",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "TypeScript client for the Talqing API — build, publish and operate AI voice, video and text agents.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://talqing.com",
@@ -577,7 +577,8 @@ export class Recipients extends HeyApiClient {
577
577
  * `session_id` is that person's most recent call — pass it to `get_call` for
578
578
  * the transcript, recording and cost, and `last_close_reason` says exactly how
579
579
  * the attempt ended. A recipient of a cancelled batch reads as `canceled` even
580
- * though their row was never touched.
580
+ * though their row was never touched. `collected` is what is now known about the
581
+ * contact that differs from their row, callbacks included; `analysis` is the latest call's.
581
582
  */
582
583
  public list<ThrowOnError extends boolean = false>(parameters: {
583
584
  batch_id: string;
@@ -1297,10 +1297,22 @@ export type CallBatchCounts = {
1297
1297
  * CallBatchRecipientResponse
1298
1298
  */
1299
1299
  export type CallBatchRecipientResponse = {
1300
+ /**
1301
+ * The latest call's post-call analysis. Null until a call is placed.
1302
+ */
1303
+ analysis: AnalysisResponse | null;
1300
1304
  /**
1301
1305
  * Attempts
1302
1306
  */
1303
1307
  attempts: number;
1308
+ /**
1309
+ * Collected
1310
+ *
1311
+ * The contact's userdata that differs from this row's, callbacks included.
1312
+ */
1313
+ collected: {
1314
+ [key: string]: unknown;
1315
+ };
1304
1316
  /**
1305
1317
  * Id
1306
1318
  */
@@ -1354,7 +1366,15 @@ export type CallBatchResponse = {
1354
1366
  */
1355
1367
  agent_name: string | null;
1356
1368
  agent_plan?: StoredAgentPlan | null;
1369
+ /**
1370
+ * Analysis Columns
1371
+ */
1372
+ analysis_columns: Array<string>;
1357
1373
  calling_window: TimeWindow | null;
1374
+ /**
1375
+ * Collected Columns
1376
+ */
1377
+ collected_columns: Array<string>;
1358
1378
  counts: CallBatchCounts;
1359
1379
  /**
1360
1380
  * Created At
@@ -1400,6 +1420,10 @@ export type CallBatchResponse = {
1400
1420
  * Id
1401
1421
  */
1402
1422
  id: string;
1423
+ /**
1424
+ * Input Columns
1425
+ */
1426
+ input_columns: Array<string>;
1403
1427
  /**
1404
1428
  * Max Attempts
1405
1429
  */