@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
|
@@ -1487,6 +1487,10 @@ export type CallSessionResponse = {
|
|
|
1487
1487
|
*/
|
|
1488
1488
|
phone_number_id: string | null;
|
|
1489
1489
|
recording: RecordingResponse;
|
|
1490
|
+
/**
|
|
1491
|
+
* Resumed From Call Id
|
|
1492
|
+
*/
|
|
1493
|
+
resumed_from_call_id: string | null;
|
|
1490
1494
|
screen_recording: RecordingResponse;
|
|
1491
1495
|
/**
|
|
1492
1496
|
* Started At
|
|
@@ -1616,6 +1620,10 @@ export type CallSummaryResponse = {
|
|
|
1616
1620
|
outcome?: 'success' | 'failure' | 'unknown' | null;
|
|
1617
1621
|
plan?: CallPlanSummary | null;
|
|
1618
1622
|
recording: RecordingResponse;
|
|
1623
|
+
/**
|
|
1624
|
+
* Resumed From Call Id
|
|
1625
|
+
*/
|
|
1626
|
+
resumed_from_call_id?: string | null;
|
|
1619
1627
|
/**
|
|
1620
1628
|
* Started At
|
|
1621
1629
|
*/
|
|
@@ -2406,7 +2414,7 @@ export type ConversationSpec = {
|
|
|
2406
2414
|
/**
|
|
2407
2415
|
* Context
|
|
2408
2416
|
*
|
|
2409
|
-
*
|
|
2417
|
+
* 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
2418
|
*/
|
|
2411
2419
|
context?: 'none' | 'summary' | 'transcript';
|
|
2412
2420
|
/**
|
|
@@ -2431,7 +2439,7 @@ export type ConversationSpecOverride = {
|
|
|
2431
2439
|
/**
|
|
2432
2440
|
* Context
|
|
2433
2441
|
*
|
|
2434
|
-
*
|
|
2442
|
+
* 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
2443
|
*/
|
|
2436
2444
|
context?: 'none' | 'summary' | 'transcript' | null;
|
|
2437
2445
|
/**
|
|
@@ -4488,6 +4496,12 @@ export type HandoffConfig = {
|
|
|
4488
4496
|
* Context
|
|
4489
4497
|
*/
|
|
4490
4498
|
context?: 'none' | 'summary' | 'transcript';
|
|
4499
|
+
/**
|
|
4500
|
+
* Instructions
|
|
4501
|
+
*
|
|
4502
|
+
* What the target is told as it opens, when it has no greeting.
|
|
4503
|
+
*/
|
|
4504
|
+
instructions?: string | null;
|
|
4491
4505
|
/**
|
|
4492
4506
|
* Message
|
|
4493
4507
|
*
|
|
@@ -4497,7 +4511,7 @@ export type HandoffConfig = {
|
|
|
4497
4511
|
/**
|
|
4498
4512
|
* Recent Turns
|
|
4499
4513
|
*
|
|
4500
|
-
*
|
|
4514
|
+
* Context 'summary' only: turns of this call that cross verbatim beside the summary. Defaults to 2.
|
|
4501
4515
|
*/
|
|
4502
4516
|
recent_turns?: number | null;
|
|
4503
4517
|
/**
|
|
@@ -4548,6 +4562,10 @@ export type HandoffTarget = {
|
|
|
4548
4562
|
* Description
|
|
4549
4563
|
*/
|
|
4550
4564
|
description: string;
|
|
4565
|
+
/**
|
|
4566
|
+
* Instructions
|
|
4567
|
+
*/
|
|
4568
|
+
instructions?: string | null;
|
|
4551
4569
|
/**
|
|
4552
4570
|
* Message
|
|
4553
4571
|
*/
|
|
@@ -14022,6 +14040,59 @@ export type CallsRecordingGetResults = {
|
|
|
14022
14040
|
200: Blob | File;
|
|
14023
14041
|
};
|
|
14024
14042
|
export type CallsRecordingGetResult = CallsRecordingGetResults[keyof CallsRecordingGetResults];
|
|
14043
|
+
export type CallsResumeData = {
|
|
14044
|
+
body?: never;
|
|
14045
|
+
path: {
|
|
14046
|
+
/**
|
|
14047
|
+
* Session Id
|
|
14048
|
+
*/
|
|
14049
|
+
session_id: string;
|
|
14050
|
+
};
|
|
14051
|
+
query?: never;
|
|
14052
|
+
url: '/v1/calls/{session_id}/resume';
|
|
14053
|
+
};
|
|
14054
|
+
export type CallsResumeErrors = {
|
|
14055
|
+
/**
|
|
14056
|
+
* Well-formed, but rejected by a rule; `detail.errors` lists each problem.
|
|
14057
|
+
*/
|
|
14058
|
+
400: ErrorResponse;
|
|
14059
|
+
/**
|
|
14060
|
+
* Missing credential, or one that is revoked or no longer a member of this organization.
|
|
14061
|
+
*/
|
|
14062
|
+
401: ErrorResponse;
|
|
14063
|
+
/**
|
|
14064
|
+
* This organization has no credit left, so a new call cannot be started. Calls already running are unaffected.
|
|
14065
|
+
*/
|
|
14066
|
+
402: ErrorResponse;
|
|
14067
|
+
/**
|
|
14068
|
+
* Authenticated, but this organization role may not perform the operation.
|
|
14069
|
+
*/
|
|
14070
|
+
403: ErrorResponse;
|
|
14071
|
+
/**
|
|
14072
|
+
* No such resource in this organization.
|
|
14073
|
+
*/
|
|
14074
|
+
404: ErrorResponse;
|
|
14075
|
+
/**
|
|
14076
|
+
* The resource's current state forbids this — a name already taken, a job already running.
|
|
14077
|
+
*/
|
|
14078
|
+
409: ErrorResponse;
|
|
14079
|
+
/**
|
|
14080
|
+
* The request did not match this operation's schema; `detail.errors` lists each field.
|
|
14081
|
+
*/
|
|
14082
|
+
422: ErrorResponse;
|
|
14083
|
+
/**
|
|
14084
|
+
* Unexpected error. Every error this API returns carries this body.
|
|
14085
|
+
*/
|
|
14086
|
+
default: ErrorResponse;
|
|
14087
|
+
};
|
|
14088
|
+
export type CallsResumeError = CallsResumeErrors[keyof CallsResumeErrors];
|
|
14089
|
+
export type CallsResumeResults = {
|
|
14090
|
+
/**
|
|
14091
|
+
* Successful Response
|
|
14092
|
+
*/
|
|
14093
|
+
200: CallTokenResponse;
|
|
14094
|
+
};
|
|
14095
|
+
export type CallsResumeResult = CallsResumeResults[keyof CallsResumeResults];
|
|
14025
14096
|
export type CallsScreenRecordingGetData = {
|
|
14026
14097
|
body?: never;
|
|
14027
14098
|
path: {
|