@talqing/sdk 0.9.1 → 0.10.1

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.
@@ -38,6 +38,10 @@ export type AddEmailRecipientsResponse = {
38
38
  * AddMessageConfig
39
39
  */
40
40
  export type AddMessageConfig = {
41
+ /**
42
+ * Scope
43
+ */
44
+ scope?: 'conversation' | 'turn';
41
45
  /**
42
46
  * Text
43
47
  */
@@ -1487,6 +1491,10 @@ export type CallSessionResponse = {
1487
1491
  */
1488
1492
  phone_number_id: string | null;
1489
1493
  recording: RecordingResponse;
1494
+ /**
1495
+ * Resumed From Call Id
1496
+ */
1497
+ resumed_from_call_id: string | null;
1490
1498
  screen_recording: RecordingResponse;
1491
1499
  /**
1492
1500
  * Started At
@@ -1616,6 +1624,10 @@ export type CallSummaryResponse = {
1616
1624
  outcome?: 'success' | 'failure' | 'unknown' | null;
1617
1625
  plan?: CallPlanSummary | null;
1618
1626
  recording: RecordingResponse;
1627
+ /**
1628
+ * Resumed From Call Id
1629
+ */
1630
+ resumed_from_call_id?: string | null;
1619
1631
  /**
1620
1632
  * Started At
1621
1633
  */
@@ -2155,6 +2167,10 @@ export type ConversationItemResponse = {
2155
2167
  * Role
2156
2168
  */
2157
2169
  role: 'developer' | 'system' | 'user' | 'assistant' | 'tool' | null;
2170
+ /**
2171
+ * Scope
2172
+ */
2173
+ scope: 'conversation' | 'turn';
2158
2174
  /**
2159
2175
  * Session Id
2160
2176
  */
@@ -2406,7 +2422,7 @@ export type ConversationSpec = {
2406
2422
  /**
2407
2423
  * Context
2408
2424
  *
2409
- * How much of the past comes into a new call: 'none' starts clean, 'summary' adds background on recent conversations, 'transcript' carries the same conversation on. Set on the agent that answers. A WhatsApp call always carries the chat on.
2425
+ * What a new session starts with from earlier ones with this person: 'none' starts clean, 'summary' adds background on recent conversations, 'transcript' carries the same conversation on. Read only from the agent that answers. A WhatsApp call always carries the chat on, whatever this says.
2410
2426
  */
2411
2427
  context?: 'none' | 'summary' | 'transcript';
2412
2428
  /**
@@ -2431,7 +2447,7 @@ export type ConversationSpecOverride = {
2431
2447
  /**
2432
2448
  * Context
2433
2449
  *
2434
- * How much of the past comes into a new call: 'none' starts clean, 'summary' adds background on recent conversations, 'transcript' carries the same conversation on. Set on the agent that answers. A WhatsApp call always carries the chat on.
2450
+ * What a new session starts with from earlier ones with this person: 'none' starts clean, 'summary' adds background on recent conversations, 'transcript' carries the same conversation on. Read only from the agent that answers. A WhatsApp call always carries the chat on, whatever this says.
2435
2451
  */
2436
2452
  context?: 'none' | 'summary' | 'transcript' | null;
2437
2453
  /**
@@ -4488,6 +4504,12 @@ export type HandoffConfig = {
4488
4504
  * Context
4489
4505
  */
4490
4506
  context?: 'none' | 'summary' | 'transcript';
4507
+ /**
4508
+ * Instructions
4509
+ *
4510
+ * What the target is told as it opens, when it has no greeting.
4511
+ */
4512
+ instructions?: string | null;
4491
4513
  /**
4492
4514
  * Message
4493
4515
  *
@@ -4497,7 +4519,7 @@ export type HandoffConfig = {
4497
4519
  /**
4498
4520
  * Recent Turns
4499
4521
  *
4500
- * Turns that cross verbatim alongside a summary, or in place of one under 'none'. Past ten, the honest answer is context 'transcript'.
4522
+ * Context 'summary' only: turns of this call that cross verbatim beside the summary. Defaults to 2.
4501
4523
  */
4502
4524
  recent_turns?: number | null;
4503
4525
  /**
@@ -4548,6 +4570,10 @@ export type HandoffTarget = {
4548
4570
  * Description
4549
4571
  */
4550
4572
  description: string;
4573
+ /**
4574
+ * Instructions
4575
+ */
4576
+ instructions?: string | null;
4551
4577
  /**
4552
4578
  * Message
4553
4579
  */
@@ -5474,6 +5500,10 @@ export type ItemCreatedEvent = {
5474
5500
  * Role
5475
5501
  */
5476
5502
  role: 'developer' | 'system' | 'user' | 'assistant' | 'tool' | null;
5503
+ /**
5504
+ * Scope
5505
+ */
5506
+ scope: 'conversation' | 'turn';
5477
5507
  /**
5478
5508
  * Session Id
5479
5509
  */
@@ -14022,6 +14052,59 @@ export type CallsRecordingGetResults = {
14022
14052
  200: Blob | File;
14023
14053
  };
14024
14054
  export type CallsRecordingGetResult = CallsRecordingGetResults[keyof CallsRecordingGetResults];
14055
+ export type CallsResumeData = {
14056
+ body?: never;
14057
+ path: {
14058
+ /**
14059
+ * Session Id
14060
+ */
14061
+ session_id: string;
14062
+ };
14063
+ query?: never;
14064
+ url: '/v1/calls/{session_id}/resume';
14065
+ };
14066
+ export type CallsResumeErrors = {
14067
+ /**
14068
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
14069
+ */
14070
+ 400: ErrorResponse;
14071
+ /**
14072
+ * Missing credential, or one that is revoked or no longer a member of this organization.
14073
+ */
14074
+ 401: ErrorResponse;
14075
+ /**
14076
+ * This organization has no credit left, so a new call cannot be started. Calls already running are unaffected.
14077
+ */
14078
+ 402: ErrorResponse;
14079
+ /**
14080
+ * Authenticated, but this organization role may not perform the operation.
14081
+ */
14082
+ 403: ErrorResponse;
14083
+ /**
14084
+ * No such resource in this organization.
14085
+ */
14086
+ 404: ErrorResponse;
14087
+ /**
14088
+ * The resource's current state forbids this — a name already taken, a job already running.
14089
+ */
14090
+ 409: ErrorResponse;
14091
+ /**
14092
+ * The request did not match this operation's schema; `detail.errors` lists each field.
14093
+ */
14094
+ 422: ErrorResponse;
14095
+ /**
14096
+ * Unexpected error. Every error this API returns carries this body.
14097
+ */
14098
+ default: ErrorResponse;
14099
+ };
14100
+ export type CallsResumeError = CallsResumeErrors[keyof CallsResumeErrors];
14101
+ export type CallsResumeResults = {
14102
+ /**
14103
+ * Successful Response
14104
+ */
14105
+ 200: CallTokenResponse;
14106
+ };
14107
+ export type CallsResumeResult = CallsResumeResults[keyof CallsResumeResults];
14025
14108
  export type CallsScreenRecordingGetData = {
14026
14109
  body?: never;
14027
14110
  path: {