@talqing/sdk 0.14.1 → 0.15.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/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 +4 -3
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +4 -3
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +105 -69
- 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 +4 -3
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +4 -3
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +105 -69
- package/dist/esm/gen/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/index.ts +1 -1
- package/src/gen/sdk.gen.ts +4 -3
- package/src/gen/types.gen.ts +107 -71
|
@@ -1386,9 +1386,9 @@ export type CallBatchResponse = {
|
|
|
1386
1386
|
* CallDetailResponse
|
|
1387
1387
|
*/
|
|
1388
1388
|
export type CallDetailResponse = {
|
|
1389
|
-
agent_config
|
|
1390
|
-
agent_plan
|
|
1391
|
-
cost
|
|
1389
|
+
agent_config: AgentConfig | null;
|
|
1390
|
+
agent_plan: StoredAgentPlan | null;
|
|
1391
|
+
cost: CostDetailResponse | null;
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Events
|
|
1394
1394
|
*/
|
|
@@ -1396,21 +1396,21 @@ export type CallDetailResponse = {
|
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Greeting
|
|
1398
1398
|
*/
|
|
1399
|
-
greeting
|
|
1399
|
+
greeting: string | null;
|
|
1400
1400
|
session: CallSessionResponse;
|
|
1401
1401
|
snapshot: HealthSnapshotResponse;
|
|
1402
1402
|
/**
|
|
1403
1403
|
* Starting Prompt
|
|
1404
1404
|
*/
|
|
1405
|
-
starting_prompt
|
|
1405
|
+
starting_prompt: string;
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Team
|
|
1408
1408
|
*/
|
|
1409
|
-
team
|
|
1409
|
+
team: Array<TeamMemberResponse>;
|
|
1410
1410
|
/**
|
|
1411
1411
|
* Tools
|
|
1412
1412
|
*/
|
|
1413
|
-
tools: Array<
|
|
1413
|
+
tools: Array<SessionToolResponse>;
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Transcript
|
|
1416
1416
|
*/
|
|
@@ -1419,7 +1419,7 @@ export type CallDetailResponse = {
|
|
|
1419
1419
|
/**
|
|
1420
1420
|
* Vars
|
|
1421
1421
|
*/
|
|
1422
|
-
vars
|
|
1422
|
+
vars: {
|
|
1423
1423
|
[key: string]: string;
|
|
1424
1424
|
};
|
|
1425
1425
|
};
|
|
@@ -1718,25 +1718,6 @@ export type CallSummaryResponse = {
|
|
|
1718
1718
|
*/
|
|
1719
1719
|
type: 'WEB' | 'SIP_INBOUND' | 'SIP_OUTBOUND' | 'STREAM' | 'WHATSAPP_INBOUND';
|
|
1720
1720
|
};
|
|
1721
|
-
/**
|
|
1722
|
-
* CallTeamMemberResponse
|
|
1723
|
-
*
|
|
1724
|
-
* One agent on the call's roster. `[0]` is the one that answered.
|
|
1725
|
-
*/
|
|
1726
|
-
export type CallTeamMemberResponse = {
|
|
1727
|
-
/**
|
|
1728
|
-
* Agent Id
|
|
1729
|
-
*/
|
|
1730
|
-
agent_id?: string | null;
|
|
1731
|
-
/**
|
|
1732
|
-
* Name
|
|
1733
|
-
*/
|
|
1734
|
-
name: string;
|
|
1735
|
-
/**
|
|
1736
|
-
* Version
|
|
1737
|
-
*/
|
|
1738
|
-
version?: number | 'draft' | null;
|
|
1739
|
-
};
|
|
1740
1721
|
/**
|
|
1741
1722
|
* CallTokenResponse
|
|
1742
1723
|
*
|
|
@@ -1760,47 +1741,6 @@ export type CallTokenResponse = {
|
|
|
1760
1741
|
*/
|
|
1761
1742
|
warnings: Array<string>;
|
|
1762
1743
|
};
|
|
1763
|
-
/**
|
|
1764
|
-
* CallToolResponse
|
|
1765
|
-
*
|
|
1766
|
-
* A tool the agent could call, as it stood on this call.
|
|
1767
|
-
*
|
|
1768
|
-
* ``id`` is null for a tool defined inline in the request that started the
|
|
1769
|
-
* call: it has no `tools` row, and inventing an id would offer a link to a
|
|
1770
|
-
* page that does not exist.
|
|
1771
|
-
*/
|
|
1772
|
-
export type CallToolResponse = {
|
|
1773
|
-
/**
|
|
1774
|
-
* Description
|
|
1775
|
-
*/
|
|
1776
|
-
description: string;
|
|
1777
|
-
/**
|
|
1778
|
-
* Disable Interruptions
|
|
1779
|
-
*/
|
|
1780
|
-
disable_interruptions?: boolean;
|
|
1781
|
-
/**
|
|
1782
|
-
* Id
|
|
1783
|
-
*/
|
|
1784
|
-
id?: string | null;
|
|
1785
|
-
/**
|
|
1786
|
-
* Json Schema
|
|
1787
|
-
*/
|
|
1788
|
-
json_schema?: {
|
|
1789
|
-
[key: string]: unknown;
|
|
1790
|
-
};
|
|
1791
|
-
/**
|
|
1792
|
-
* Long Running Task
|
|
1793
|
-
*/
|
|
1794
|
-
long_running_task?: boolean;
|
|
1795
|
-
/**
|
|
1796
|
-
* Name
|
|
1797
|
-
*/
|
|
1798
|
-
name: string;
|
|
1799
|
-
/**
|
|
1800
|
-
* Silent
|
|
1801
|
-
*/
|
|
1802
|
-
silent?: boolean;
|
|
1803
|
-
};
|
|
1804
1744
|
/**
|
|
1805
1745
|
* CatalogResponse
|
|
1806
1746
|
*/
|
|
@@ -1863,16 +1803,52 @@ export type CatalogResponse = {
|
|
|
1863
1803
|
/**
|
|
1864
1804
|
* ChatDetailResponse
|
|
1865
1805
|
*
|
|
1866
|
-
* One chat with what explains it: health, priced lines,
|
|
1806
|
+
* One chat with what explains it: health, priced lines, what it ran, and trace.
|
|
1867
1807
|
*/
|
|
1868
1808
|
export type ChatDetailResponse = {
|
|
1809
|
+
agent_config: AgentConfig | null;
|
|
1810
|
+
agent_plan: StoredAgentPlan | null;
|
|
1811
|
+
/**
|
|
1812
|
+
* Agent Version
|
|
1813
|
+
*/
|
|
1814
|
+
agent_version: number | 'draft' | null;
|
|
1815
|
+
/**
|
|
1816
|
+
* Billed At
|
|
1817
|
+
*/
|
|
1818
|
+
billed_at: string | null;
|
|
1819
|
+
/**
|
|
1820
|
+
* Billing Status
|
|
1821
|
+
*/
|
|
1822
|
+
billing_status: string;
|
|
1869
1823
|
chat: ChatResponse;
|
|
1824
|
+
/**
|
|
1825
|
+
* Contact Userdata
|
|
1826
|
+
*/
|
|
1827
|
+
contact_userdata: {
|
|
1828
|
+
[key: string]: unknown;
|
|
1829
|
+
};
|
|
1870
1830
|
cost: CostDetailResponse | null;
|
|
1871
1831
|
/**
|
|
1872
1832
|
* Events
|
|
1873
1833
|
*/
|
|
1874
1834
|
events: Array<SessionEventResponse>;
|
|
1835
|
+
/**
|
|
1836
|
+
* Phone Number Id
|
|
1837
|
+
*/
|
|
1838
|
+
phone_number_id: string | null;
|
|
1875
1839
|
snapshot: HealthSnapshotResponse;
|
|
1840
|
+
/**
|
|
1841
|
+
* Starting Prompt
|
|
1842
|
+
*/
|
|
1843
|
+
starting_prompt: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* Team
|
|
1846
|
+
*/
|
|
1847
|
+
team: Array<TeamMemberResponse>;
|
|
1848
|
+
/**
|
|
1849
|
+
* Tools
|
|
1850
|
+
*/
|
|
1851
|
+
tools: Array<SessionToolResponse>;
|
|
1876
1852
|
/**
|
|
1877
1853
|
* Vars
|
|
1878
1854
|
*/
|
|
@@ -10495,6 +10471,47 @@ export type SessionMetrics = {
|
|
|
10495
10471
|
*/
|
|
10496
10472
|
usage_reported?: boolean;
|
|
10497
10473
|
};
|
|
10474
|
+
/**
|
|
10475
|
+
* SessionToolResponse
|
|
10476
|
+
*
|
|
10477
|
+
* A tool the agent could call, as it stood on this session.
|
|
10478
|
+
*
|
|
10479
|
+
* ``id`` is null for a tool defined inline in the request that started the
|
|
10480
|
+
* session: it has no `tools` row, and inventing an id would offer a link to a
|
|
10481
|
+
* page that does not exist.
|
|
10482
|
+
*/
|
|
10483
|
+
export type SessionToolResponse = {
|
|
10484
|
+
/**
|
|
10485
|
+
* Description
|
|
10486
|
+
*/
|
|
10487
|
+
description: string;
|
|
10488
|
+
/**
|
|
10489
|
+
* Disable Interruptions
|
|
10490
|
+
*/
|
|
10491
|
+
disable_interruptions?: boolean;
|
|
10492
|
+
/**
|
|
10493
|
+
* Id
|
|
10494
|
+
*/
|
|
10495
|
+
id?: string | null;
|
|
10496
|
+
/**
|
|
10497
|
+
* Json Schema
|
|
10498
|
+
*/
|
|
10499
|
+
json_schema?: {
|
|
10500
|
+
[key: string]: unknown;
|
|
10501
|
+
};
|
|
10502
|
+
/**
|
|
10503
|
+
* Long Running Task
|
|
10504
|
+
*/
|
|
10505
|
+
long_running_task?: boolean;
|
|
10506
|
+
/**
|
|
10507
|
+
* Name
|
|
10508
|
+
*/
|
|
10509
|
+
name: string;
|
|
10510
|
+
/**
|
|
10511
|
+
* Silent
|
|
10512
|
+
*/
|
|
10513
|
+
silent?: boolean;
|
|
10514
|
+
};
|
|
10498
10515
|
/**
|
|
10499
10516
|
* SessionUsage
|
|
10500
10517
|
*
|
|
@@ -11873,6 +11890,25 @@ export type TaskVersionResponse = {
|
|
|
11873
11890
|
*/
|
|
11874
11891
|
version: number;
|
|
11875
11892
|
};
|
|
11893
|
+
/**
|
|
11894
|
+
* TeamMemberResponse
|
|
11895
|
+
*
|
|
11896
|
+
* One agent on the session's roster. `[0]` is the one that answered.
|
|
11897
|
+
*/
|
|
11898
|
+
export type TeamMemberResponse = {
|
|
11899
|
+
/**
|
|
11900
|
+
* Agent Id
|
|
11901
|
+
*/
|
|
11902
|
+
agent_id?: string | null;
|
|
11903
|
+
/**
|
|
11904
|
+
* Name
|
|
11905
|
+
*/
|
|
11906
|
+
name: string;
|
|
11907
|
+
/**
|
|
11908
|
+
* Version
|
|
11909
|
+
*/
|
|
11910
|
+
version?: number | 'draft' | null;
|
|
11911
|
+
};
|
|
11876
11912
|
/**
|
|
11877
11913
|
* TelephonyAccountResponse
|
|
11878
11914
|
*/
|