@talqing/sdk 0.22.1 → 0.22.3

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.
@@ -1248,10 +1248,22 @@ export type CallBatchCounts = {
1248
1248
  * CallBatchRecipientResponse
1249
1249
  */
1250
1250
  export type CallBatchRecipientResponse = {
1251
+ /**
1252
+ * The latest call's post-call analysis. Null until a call is placed.
1253
+ */
1254
+ analysis: AnalysisResponse | null;
1251
1255
  /**
1252
1256
  * Attempts
1253
1257
  */
1254
1258
  attempts: number;
1259
+ /**
1260
+ * Collected
1261
+ *
1262
+ * The contact's userdata that differs from this row's, callbacks included.
1263
+ */
1264
+ collected: {
1265
+ [key: string]: unknown;
1266
+ };
1255
1267
  /**
1256
1268
  * Id
1257
1269
  */
@@ -1304,7 +1316,15 @@ export type CallBatchResponse = {
1304
1316
  */
1305
1317
  agent_name: string | null;
1306
1318
  agent_plan?: StoredAgentPlan | null;
1319
+ /**
1320
+ * Analysis Columns
1321
+ */
1322
+ analysis_columns: Array<string>;
1307
1323
  calling_window: TimeWindow | null;
1324
+ /**
1325
+ * Collected Columns
1326
+ */
1327
+ collected_columns: Array<string>;
1308
1328
  counts: CallBatchCounts;
1309
1329
  /**
1310
1330
  * Created At
@@ -1350,6 +1370,10 @@ export type CallBatchResponse = {
1350
1370
  * Id
1351
1371
  */
1352
1372
  id: string;
1373
+ /**
1374
+ * Input Columns
1375
+ */
1376
+ input_columns: Array<string>;
1353
1377
  /**
1354
1378
  * Max Attempts
1355
1379
  */
@@ -8531,6 +8555,33 @@ export type PageWhatsAppRecipientResponse = {
8531
8555
  */
8532
8556
  offset: number;
8533
8557
  };
8558
+ /**
8559
+ * PatchCallBatchRecipientRequest
8560
+ *
8561
+ * Cell edits on one row. An empty value clears that cell.
8562
+ */
8563
+ export type PatchCallBatchRecipientRequest = {
8564
+ /**
8565
+ * Collected
8566
+ *
8567
+ * Written to the contact, so their later calls see it too.
8568
+ */
8569
+ collected?: {
8570
+ [key: string]: string;
8571
+ };
8572
+ /**
8573
+ * To
8574
+ */
8575
+ to?: string;
8576
+ /**
8577
+ * Userdata
8578
+ *
8579
+ * Uploaded columns; only before the row is dialled.
8580
+ */
8581
+ userdata?: {
8582
+ [key: string]: string;
8583
+ };
8584
+ };
8534
8585
  /**
8535
8586
  * PatchCallBatchRequest
8536
8587
  *
@@ -8606,6 +8657,8 @@ export type PatchConversationRequest = {
8606
8657
  summary?: string | null;
8607
8658
  /**
8608
8659
  * Userdata
8660
+ *
8661
+ * Merged by key; a null value removes that key.
8609
8662
  */
8610
8663
  userdata?: {
8611
8664
  [key: string]: unknown;
@@ -15718,6 +15771,59 @@ export type CallsBatchesRecipientsDeleteResults = {
15718
15771
  200: RecipientActionResponse;
15719
15772
  };
15720
15773
  export type CallsBatchesRecipientsDeleteResult = CallsBatchesRecipientsDeleteResults[keyof CallsBatchesRecipientsDeleteResults];
15774
+ export type CallsBatchesRecipientsUpdateData = {
15775
+ body: PatchCallBatchRecipientRequest;
15776
+ path: {
15777
+ /**
15778
+ * Batch Id
15779
+ */
15780
+ batch_id: string;
15781
+ /**
15782
+ * Recipient Id
15783
+ */
15784
+ recipient_id: string;
15785
+ };
15786
+ query?: never;
15787
+ url: '/v1/calls/batches/{batch_id}/recipients/{recipient_id}';
15788
+ };
15789
+ export type CallsBatchesRecipientsUpdateErrors = {
15790
+ /**
15791
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
15792
+ */
15793
+ 400: ErrorResponse;
15794
+ /**
15795
+ * Missing credential, or one that is revoked or no longer a member of this organization.
15796
+ */
15797
+ 401: ErrorResponse;
15798
+ /**
15799
+ * Authenticated, but this organization role may not perform the operation.
15800
+ */
15801
+ 403: ErrorResponse;
15802
+ /**
15803
+ * No such resource in this organization.
15804
+ */
15805
+ 404: ErrorResponse;
15806
+ /**
15807
+ * The resource's current state forbids this — a name already taken, a job already running.
15808
+ */
15809
+ 409: ErrorResponse;
15810
+ /**
15811
+ * The request did not match this operation's schema; `detail.errors` lists each field.
15812
+ */
15813
+ 422: ErrorResponse;
15814
+ /**
15815
+ * Unexpected error. Every error this API returns carries this body.
15816
+ */
15817
+ default: ErrorResponse;
15818
+ };
15819
+ export type CallsBatchesRecipientsUpdateError = CallsBatchesRecipientsUpdateErrors[keyof CallsBatchesRecipientsUpdateErrors];
15820
+ export type CallsBatchesRecipientsUpdateResults = {
15821
+ /**
15822
+ * Successful Response
15823
+ */
15824
+ 200: CallBatchRecipientResponse;
15825
+ };
15826
+ export type CallsBatchesRecipientsUpdateResult = CallsBatchesRecipientsUpdateResults[keyof CallsBatchesRecipientsUpdateResults];
15721
15827
  export type CallsBatchesResumeData = {
15722
15828
  body?: never;
15723
15829
  path: {