@talqing/sdk 0.9.1 → 0.10.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/README.md +1 -1
- package/dist/cjs/gen/index.d.ts +1 -1
- package/dist/cjs/gen/index.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.d.ts +12 -1
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +202 -180
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +74 -3
- package/dist/cjs/gen/types.gen.d.ts.map +1 -1
- package/dist/esm/gen/index.d.ts +1 -1
- package/dist/esm/gen/index.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.d.ts +12 -1
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +202 -180
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +74 -3
- package/dist/esm/gen/types.gen.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/gen/index.ts +1 -1
- package/src/gen/sdk.gen.ts +206 -181
- package/src/gen/types.gen.ts +79 -3
package/src/gen/types.gen.ts
CHANGED
|
@@ -1538,6 +1538,10 @@ export type CallSessionResponse = {
|
|
|
1538
1538
|
*/
|
|
1539
1539
|
phone_number_id: string | null;
|
|
1540
1540
|
recording: RecordingResponse;
|
|
1541
|
+
/**
|
|
1542
|
+
* Resumed From Call Id
|
|
1543
|
+
*/
|
|
1544
|
+
resumed_from_call_id: string | null;
|
|
1541
1545
|
screen_recording: RecordingResponse;
|
|
1542
1546
|
/**
|
|
1543
1547
|
* Started At
|
|
@@ -1669,6 +1673,10 @@ export type CallSummaryResponse = {
|
|
|
1669
1673
|
outcome?: 'success' | 'failure' | 'unknown' | null;
|
|
1670
1674
|
plan?: CallPlanSummary | null;
|
|
1671
1675
|
recording: RecordingResponse;
|
|
1676
|
+
/**
|
|
1677
|
+
* Resumed From Call Id
|
|
1678
|
+
*/
|
|
1679
|
+
resumed_from_call_id?: string | null;
|
|
1672
1680
|
/**
|
|
1673
1681
|
* Started At
|
|
1674
1682
|
*/
|
|
@@ -2480,7 +2488,7 @@ export type ConversationSpec = {
|
|
|
2480
2488
|
/**
|
|
2481
2489
|
* Context
|
|
2482
2490
|
*
|
|
2483
|
-
*
|
|
2491
|
+
* 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
2492
|
*/
|
|
2485
2493
|
context?: 'none' | 'summary' | 'transcript';
|
|
2486
2494
|
/**
|
|
@@ -2506,7 +2514,7 @@ export type ConversationSpecOverride = {
|
|
|
2506
2514
|
/**
|
|
2507
2515
|
* Context
|
|
2508
2516
|
*
|
|
2509
|
-
*
|
|
2517
|
+
* 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
2518
|
*/
|
|
2511
2519
|
context?: 'none' | 'summary' | 'transcript' | null;
|
|
2512
2520
|
/**
|
|
@@ -4631,6 +4639,12 @@ export type HandoffConfig = {
|
|
|
4631
4639
|
* Context
|
|
4632
4640
|
*/
|
|
4633
4641
|
context?: 'none' | 'summary' | 'transcript';
|
|
4642
|
+
/**
|
|
4643
|
+
* Instructions
|
|
4644
|
+
*
|
|
4645
|
+
* What the target is told as it opens, when it has no greeting.
|
|
4646
|
+
*/
|
|
4647
|
+
instructions?: string | null;
|
|
4634
4648
|
/**
|
|
4635
4649
|
* Message
|
|
4636
4650
|
*
|
|
@@ -4640,7 +4654,7 @@ export type HandoffConfig = {
|
|
|
4640
4654
|
/**
|
|
4641
4655
|
* Recent Turns
|
|
4642
4656
|
*
|
|
4643
|
-
*
|
|
4657
|
+
* Context 'summary' only: turns of this call that cross verbatim beside the summary. Defaults to 2.
|
|
4644
4658
|
*/
|
|
4645
4659
|
recent_turns?: number | null;
|
|
4646
4660
|
/**
|
|
@@ -4693,6 +4707,10 @@ export type HandoffTarget = {
|
|
|
4693
4707
|
* Description
|
|
4694
4708
|
*/
|
|
4695
4709
|
description: string;
|
|
4710
|
+
/**
|
|
4711
|
+
* Instructions
|
|
4712
|
+
*/
|
|
4713
|
+
instructions?: string | null;
|
|
4696
4714
|
/**
|
|
4697
4715
|
* Message
|
|
4698
4716
|
*/
|
|
@@ -14614,6 +14632,64 @@ export type CallsRecordingGetResults = {
|
|
|
14614
14632
|
|
|
14615
14633
|
export type CallsRecordingGetResult = CallsRecordingGetResults[keyof CallsRecordingGetResults];
|
|
14616
14634
|
|
|
14635
|
+
export type CallsResumeData = {
|
|
14636
|
+
body?: never;
|
|
14637
|
+
path: {
|
|
14638
|
+
/**
|
|
14639
|
+
* Session Id
|
|
14640
|
+
*/
|
|
14641
|
+
session_id: string;
|
|
14642
|
+
};
|
|
14643
|
+
query?: never;
|
|
14644
|
+
url: '/v1/calls/{session_id}/resume';
|
|
14645
|
+
};
|
|
14646
|
+
|
|
14647
|
+
export type CallsResumeErrors = {
|
|
14648
|
+
/**
|
|
14649
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
14650
|
+
*/
|
|
14651
|
+
400: ErrorResponse;
|
|
14652
|
+
/**
|
|
14653
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
14654
|
+
*/
|
|
14655
|
+
401: ErrorResponse;
|
|
14656
|
+
/**
|
|
14657
|
+
* This organization has no credit left, so a new call cannot be started. Calls already running are unaffected.
|
|
14658
|
+
*/
|
|
14659
|
+
402: ErrorResponse;
|
|
14660
|
+
/**
|
|
14661
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
14662
|
+
*/
|
|
14663
|
+
403: ErrorResponse;
|
|
14664
|
+
/**
|
|
14665
|
+
* No such resource in this organization.
|
|
14666
|
+
*/
|
|
14667
|
+
404: ErrorResponse;
|
|
14668
|
+
/**
|
|
14669
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
14670
|
+
*/
|
|
14671
|
+
409: ErrorResponse;
|
|
14672
|
+
/**
|
|
14673
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
14674
|
+
*/
|
|
14675
|
+
422: ErrorResponse;
|
|
14676
|
+
/**
|
|
14677
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
14678
|
+
*/
|
|
14679
|
+
default: ErrorResponse;
|
|
14680
|
+
};
|
|
14681
|
+
|
|
14682
|
+
export type CallsResumeError = CallsResumeErrors[keyof CallsResumeErrors];
|
|
14683
|
+
|
|
14684
|
+
export type CallsResumeResults = {
|
|
14685
|
+
/**
|
|
14686
|
+
* Successful Response
|
|
14687
|
+
*/
|
|
14688
|
+
200: CallTokenResponse;
|
|
14689
|
+
};
|
|
14690
|
+
|
|
14691
|
+
export type CallsResumeResult = CallsResumeResults[keyof CallsResumeResults];
|
|
14692
|
+
|
|
14617
14693
|
export type CallsScreenRecordingGetData = {
|
|
14618
14694
|
body?: never;
|
|
14619
14695
|
path: {
|