@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.
@@ -43,6 +43,10 @@ export type AddEmailRecipientsResponse = {
43
43
  * AddMessageConfig
44
44
  */
45
45
  export type AddMessageConfig = {
46
+ /**
47
+ * Scope
48
+ */
49
+ scope?: 'conversation' | 'turn';
46
50
  /**
47
51
  * Text
48
52
  */
@@ -1538,6 +1542,10 @@ export type CallSessionResponse = {
1538
1542
  */
1539
1543
  phone_number_id: string | null;
1540
1544
  recording: RecordingResponse;
1545
+ /**
1546
+ * Resumed From Call Id
1547
+ */
1548
+ resumed_from_call_id: string | null;
1541
1549
  screen_recording: RecordingResponse;
1542
1550
  /**
1543
1551
  * Started At
@@ -1669,6 +1677,10 @@ export type CallSummaryResponse = {
1669
1677
  outcome?: 'success' | 'failure' | 'unknown' | null;
1670
1678
  plan?: CallPlanSummary | null;
1671
1679
  recording: RecordingResponse;
1680
+ /**
1681
+ * Resumed From Call Id
1682
+ */
1683
+ resumed_from_call_id?: string | null;
1672
1684
  /**
1673
1685
  * Started At
1674
1686
  */
@@ -2224,6 +2236,10 @@ export type ConversationItemResponse = {
2224
2236
  * Role
2225
2237
  */
2226
2238
  role: 'developer' | 'system' | 'user' | 'assistant' | 'tool' | null;
2239
+ /**
2240
+ * Scope
2241
+ */
2242
+ scope: 'conversation' | 'turn';
2227
2243
  /**
2228
2244
  * Session Id
2229
2245
  */
@@ -2480,7 +2496,7 @@ export type ConversationSpec = {
2480
2496
  /**
2481
2497
  * Context
2482
2498
  *
2483
- * 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.
2499
+ * 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.
2484
2500
  */
2485
2501
  context?: 'none' | 'summary' | 'transcript';
2486
2502
  /**
@@ -2506,7 +2522,7 @@ export type ConversationSpecOverride = {
2506
2522
  /**
2507
2523
  * Context
2508
2524
  *
2509
- * 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.
2525
+ * 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.
2510
2526
  */
2511
2527
  context?: 'none' | 'summary' | 'transcript' | null;
2512
2528
  /**
@@ -4631,6 +4647,12 @@ export type HandoffConfig = {
4631
4647
  * Context
4632
4648
  */
4633
4649
  context?: 'none' | 'summary' | 'transcript';
4650
+ /**
4651
+ * Instructions
4652
+ *
4653
+ * What the target is told as it opens, when it has no greeting.
4654
+ */
4655
+ instructions?: string | null;
4634
4656
  /**
4635
4657
  * Message
4636
4658
  *
@@ -4640,7 +4662,7 @@ export type HandoffConfig = {
4640
4662
  /**
4641
4663
  * Recent Turns
4642
4664
  *
4643
- * Turns that cross verbatim alongside a summary, or in place of one under 'none'. Past ten, the honest answer is context 'transcript'.
4665
+ * Context 'summary' only: turns of this call that cross verbatim beside the summary. Defaults to 2.
4644
4666
  */
4645
4667
  recent_turns?: number | null;
4646
4668
  /**
@@ -4693,6 +4715,10 @@ export type HandoffTarget = {
4693
4715
  * Description
4694
4716
  */
4695
4717
  description: string;
4718
+ /**
4719
+ * Instructions
4720
+ */
4721
+ instructions?: string | null;
4696
4722
  /**
4697
4723
  * Message
4698
4724
  */
@@ -5645,6 +5671,10 @@ export type ItemCreatedEvent = {
5645
5671
  * Role
5646
5672
  */
5647
5673
  role: 'developer' | 'system' | 'user' | 'assistant' | 'tool' | null;
5674
+ /**
5675
+ * Scope
5676
+ */
5677
+ scope: 'conversation' | 'turn';
5648
5678
  /**
5649
5679
  * Session Id
5650
5680
  */
@@ -14614,6 +14644,64 @@ export type CallsRecordingGetResults = {
14614
14644
 
14615
14645
  export type CallsRecordingGetResult = CallsRecordingGetResults[keyof CallsRecordingGetResults];
14616
14646
 
14647
+ export type CallsResumeData = {
14648
+ body?: never;
14649
+ path: {
14650
+ /**
14651
+ * Session Id
14652
+ */
14653
+ session_id: string;
14654
+ };
14655
+ query?: never;
14656
+ url: '/v1/calls/{session_id}/resume';
14657
+ };
14658
+
14659
+ export type CallsResumeErrors = {
14660
+ /**
14661
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
14662
+ */
14663
+ 400: ErrorResponse;
14664
+ /**
14665
+ * Missing credential, or one that is revoked or no longer a member of this organization.
14666
+ */
14667
+ 401: ErrorResponse;
14668
+ /**
14669
+ * This organization has no credit left, so a new call cannot be started. Calls already running are unaffected.
14670
+ */
14671
+ 402: ErrorResponse;
14672
+ /**
14673
+ * Authenticated, but this organization role may not perform the operation.
14674
+ */
14675
+ 403: ErrorResponse;
14676
+ /**
14677
+ * No such resource in this organization.
14678
+ */
14679
+ 404: ErrorResponse;
14680
+ /**
14681
+ * The resource's current state forbids this — a name already taken, a job already running.
14682
+ */
14683
+ 409: ErrorResponse;
14684
+ /**
14685
+ * The request did not match this operation's schema; `detail.errors` lists each field.
14686
+ */
14687
+ 422: ErrorResponse;
14688
+ /**
14689
+ * Unexpected error. Every error this API returns carries this body.
14690
+ */
14691
+ default: ErrorResponse;
14692
+ };
14693
+
14694
+ export type CallsResumeError = CallsResumeErrors[keyof CallsResumeErrors];
14695
+
14696
+ export type CallsResumeResults = {
14697
+ /**
14698
+ * Successful Response
14699
+ */
14700
+ 200: CallTokenResponse;
14701
+ };
14702
+
14703
+ export type CallsResumeResult = CallsResumeResults[keyof CallsResumeResults];
14704
+
14617
14705
  export type CallsScreenRecordingGetData = {
14618
14706
  body?: never;
14619
14707
  path: {