@talqing/sdk 0.14.1 → 0.15.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.
@@ -1386,9 +1386,9 @@ export type CallBatchResponse = {
1386
1386
  * CallDetailResponse
1387
1387
  */
1388
1388
  export type CallDetailResponse = {
1389
- agent_config?: AgentConfig | null;
1390
- agent_plan?: StoredAgentPlan | null;
1391
- cost?: CostDetailResponse | null;
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?: string | null;
1399
+ greeting: string | null;
1400
1400
  session: CallSessionResponse;
1401
1401
  snapshot: HealthSnapshotResponse;
1402
1402
  /**
1403
1403
  * Starting Prompt
1404
1404
  */
1405
- starting_prompt?: string;
1405
+ starting_prompt: string;
1406
1406
  /**
1407
1407
  * Team
1408
1408
  */
1409
- team?: Array<CallTeamMemberResponse>;
1409
+ team: Array<TeamMemberResponse>;
1410
1410
  /**
1411
1411
  * Tools
1412
1412
  */
1413
- tools: Array<CallToolResponse>;
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,48 @@ export type CatalogResponse = {
1863
1803
  /**
1864
1804
  * ChatDetailResponse
1865
1805
  *
1866
- * One chat with what explains it: health, priced lines, vars and trace.
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>;
1875
1835
  snapshot: HealthSnapshotResponse;
1836
+ /**
1837
+ * Starting Prompt
1838
+ */
1839
+ starting_prompt: string;
1840
+ /**
1841
+ * Team
1842
+ */
1843
+ team: Array<TeamMemberResponse>;
1844
+ /**
1845
+ * Tools
1846
+ */
1847
+ tools: Array<SessionToolResponse>;
1876
1848
  /**
1877
1849
  * Vars
1878
1850
  */
@@ -10495,6 +10467,47 @@ export type SessionMetrics = {
10495
10467
  */
10496
10468
  usage_reported?: boolean;
10497
10469
  };
10470
+ /**
10471
+ * SessionToolResponse
10472
+ *
10473
+ * A tool the agent could call, as it stood on this session.
10474
+ *
10475
+ * ``id`` is null for a tool defined inline in the request that started the
10476
+ * session: it has no `tools` row, and inventing an id would offer a link to a
10477
+ * page that does not exist.
10478
+ */
10479
+ export type SessionToolResponse = {
10480
+ /**
10481
+ * Description
10482
+ */
10483
+ description: string;
10484
+ /**
10485
+ * Disable Interruptions
10486
+ */
10487
+ disable_interruptions?: boolean;
10488
+ /**
10489
+ * Id
10490
+ */
10491
+ id?: string | null;
10492
+ /**
10493
+ * Json Schema
10494
+ */
10495
+ json_schema?: {
10496
+ [key: string]: unknown;
10497
+ };
10498
+ /**
10499
+ * Long Running Task
10500
+ */
10501
+ long_running_task?: boolean;
10502
+ /**
10503
+ * Name
10504
+ */
10505
+ name: string;
10506
+ /**
10507
+ * Silent
10508
+ */
10509
+ silent?: boolean;
10510
+ };
10498
10511
  /**
10499
10512
  * SessionUsage
10500
10513
  *
@@ -11873,6 +11886,25 @@ export type TaskVersionResponse = {
11873
11886
  */
11874
11887
  version: number;
11875
11888
  };
11889
+ /**
11890
+ * TeamMemberResponse
11891
+ *
11892
+ * One agent on the session's roster. `[0]` is the one that answered.
11893
+ */
11894
+ export type TeamMemberResponse = {
11895
+ /**
11896
+ * Agent Id
11897
+ */
11898
+ agent_id?: string | null;
11899
+ /**
11900
+ * Name
11901
+ */
11902
+ name: string;
11903
+ /**
11904
+ * Version
11905
+ */
11906
+ version?: number | 'draft' | null;
11907
+ };
11876
11908
  /**
11877
11909
  * TelephonyAccountResponse
11878
11910
  */