@selleragent/api-contract 0.3.0 → 0.6.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.
@@ -1567,6 +1567,505 @@ export declare const conversationsProcessInboundEventResponseSchema: z.ZodObject
1567
1567
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1568
1568
  }, z.core.$strip>>;
1569
1569
  }, z.core.$strip>;
1570
+ export declare const conversationReplayJobStatusSchema: z.ZodEnum<{
1571
+ failed: "failed";
1572
+ queued: "queued";
1573
+ running: "running";
1574
+ completed: "completed";
1575
+ cancelled: "cancelled";
1576
+ }>;
1577
+ export declare const conversationReplayJobErrorSchema: z.ZodObject<{
1578
+ code: z.ZodString;
1579
+ message: z.ZodString;
1580
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1581
+ }, z.core.$strip>;
1582
+ export declare const conversationReplayJobSummarySchema: z.ZodObject<{
1583
+ replayJobId: z.ZodString;
1584
+ status: z.ZodEnum<{
1585
+ failed: "failed";
1586
+ queued: "queued";
1587
+ running: "running";
1588
+ completed: "completed";
1589
+ cancelled: "cancelled";
1590
+ }>;
1591
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1592
+ referenceTranscriptId: z.ZodString;
1593
+ familyId: z.ZodString;
1594
+ referenceConversationId: z.ZodString;
1595
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1596
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1597
+ channelKind: z.ZodEnum<{
1598
+ telegram: "telegram";
1599
+ telegram_business: "telegram_business";
1600
+ local_playground: "local_playground";
1601
+ web_chat: "web_chat";
1602
+ manual: "manual";
1603
+ }>;
1604
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1605
+ conversationThreadRef: z.ZodString;
1606
+ externalUserId: z.ZodString;
1607
+ displayName: z.ZodString;
1608
+ totalBursts: z.ZodNumber;
1609
+ completedBursts: z.ZodNumber;
1610
+ replayedCustomerTurnCount: z.ZodNumber;
1611
+ generatedCompanyTurnCount: z.ZodNumber;
1612
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1613
+ code: z.ZodString;
1614
+ message: z.ZodString;
1615
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1616
+ }, z.core.$strip>>>;
1617
+ createdAt: z.ZodString;
1618
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1619
+ updatedAt: z.ZodString;
1620
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1621
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1622
+ }, z.core.$strip>;
1623
+ export declare const conversationReplayJobRecordSchema: z.ZodObject<{
1624
+ replayJobId: z.ZodString;
1625
+ status: z.ZodEnum<{
1626
+ failed: "failed";
1627
+ queued: "queued";
1628
+ running: "running";
1629
+ completed: "completed";
1630
+ cancelled: "cancelled";
1631
+ }>;
1632
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1633
+ referenceTranscriptId: z.ZodString;
1634
+ familyId: z.ZodString;
1635
+ referenceConversationId: z.ZodString;
1636
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1637
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1638
+ channelKind: z.ZodEnum<{
1639
+ telegram: "telegram";
1640
+ telegram_business: "telegram_business";
1641
+ local_playground: "local_playground";
1642
+ web_chat: "web_chat";
1643
+ manual: "manual";
1644
+ }>;
1645
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1646
+ conversationThreadRef: z.ZodString;
1647
+ externalUserId: z.ZodString;
1648
+ displayName: z.ZodString;
1649
+ totalBursts: z.ZodNumber;
1650
+ completedBursts: z.ZodNumber;
1651
+ replayedCustomerTurnCount: z.ZodNumber;
1652
+ generatedCompanyTurnCount: z.ZodNumber;
1653
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1654
+ code: z.ZodString;
1655
+ message: z.ZodString;
1656
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1657
+ }, z.core.$strip>>>;
1658
+ createdAt: z.ZodString;
1659
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1660
+ updatedAt: z.ZodString;
1661
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1662
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1663
+ transcript: z.ZodObject<{
1664
+ schema_version: z.ZodLiteral<1>;
1665
+ kind: z.ZodLiteral<"sa_conversation">;
1666
+ business_slug: z.ZodString;
1667
+ profile_version: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1668
+ conversation: z.ZodObject<{
1669
+ conversationId: z.ZodString;
1670
+ channel: z.ZodString;
1671
+ threadRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1672
+ source: z.ZodObject<{
1673
+ type: z.ZodEnum<{
1674
+ exported_live_conversation: "exported_live_conversation";
1675
+ scenario_fixture: "scenario_fixture";
1676
+ manual_file: "manual_file";
1677
+ telegram_export_html: "telegram_export_html";
1678
+ }>;
1679
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1680
+ exportedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1681
+ }, z.core.$strip>;
1682
+ }, z.core.$strip>;
1683
+ participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
1684
+ id: z.ZodString;
1685
+ role: z.ZodEnum<{
1686
+ customer: "customer";
1687
+ system: "system";
1688
+ company: "company";
1689
+ }>;
1690
+ actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1691
+ hybrid: "hybrid";
1692
+ operator: "operator";
1693
+ bot: "bot";
1694
+ }>>>;
1695
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1696
+ }, z.core.$strip>>>;
1697
+ turns: z.ZodDefault<z.ZodArray<z.ZodObject<{
1698
+ turnId: z.ZodString;
1699
+ actorId: z.ZodString;
1700
+ actorRole: z.ZodEnum<{
1701
+ customer: "customer";
1702
+ system: "system";
1703
+ company: "company";
1704
+ }>;
1705
+ actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1706
+ hybrid: "hybrid";
1707
+ operator: "operator";
1708
+ bot: "bot";
1709
+ }>>>;
1710
+ external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1711
+ reply_to_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1712
+ reply_to_external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1713
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1714
+ text: z.ZodString;
1715
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1716
+ kind: z.ZodEnum<{
1717
+ photo: "photo";
1718
+ document: "document";
1719
+ audio: "audio";
1720
+ video: "video";
1721
+ other: "other";
1722
+ sticker: "sticker";
1723
+ }>;
1724
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1725
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1726
+ status: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1727
+ source_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1728
+ storage_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1729
+ mime_type: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1730
+ size_bytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1731
+ included: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1732
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1733
+ }, z.core.$strip>>>;
1734
+ }, z.core.$strip>>>;
1735
+ context: z.ZodObject<{
1736
+ domainNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1737
+ stateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1738
+ packedContextSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1739
+ historicalSummaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1740
+ summaryRef: z.ZodString;
1741
+ summaryText: z.ZodString;
1742
+ knownFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
1743
+ productsMentioned: z.ZodDefault<z.ZodArray<z.ZodString>>;
1744
+ customerGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
1745
+ }, z.core.$strip>>>;
1746
+ traceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1747
+ ref: z.ZodString;
1748
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1749
+ }, z.core.$strip>>>;
1750
+ }, z.core.$strip>;
1751
+ coverage: z.ZodOptional<z.ZodObject<{
1752
+ mode: z.ZodEnum<{
1753
+ full: "full";
1754
+ packed: "packed";
1755
+ excerpt: "excerpt";
1756
+ raw_full: "raw_full";
1757
+ }>;
1758
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1759
+ }, z.core.$strip>>;
1760
+ focus: z.ZodOptional<z.ZodObject<{
1761
+ customer_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1762
+ company_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1763
+ }, z.core.$strip>>;
1764
+ profile_provenance: z.ZodOptional<z.ZodObject<{
1765
+ version_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1766
+ version_number: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1767
+ repository_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1768
+ commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1769
+ }, z.core.$strip>>;
1770
+ lineage: z.ZodOptional<z.ZodObject<{
1771
+ transcript_id: z.ZodString;
1772
+ family_id: z.ZodString;
1773
+ run_kind: z.ZodDefault<z.ZodEnum<{
1774
+ reference: "reference";
1775
+ replay: "replay";
1776
+ live_export: "live_export";
1777
+ }>>;
1778
+ actor_mode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1779
+ hybrid: "hybrid";
1780
+ operator: "operator";
1781
+ bot: "bot";
1782
+ }>>>;
1783
+ based_on_transcript_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1784
+ based_on_conversation_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1785
+ }, z.core.$strip>>;
1786
+ runtime_provenance: z.ZodOptional<z.ZodObject<{
1787
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1788
+ api_base_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1789
+ profile_repository_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1790
+ profile_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1791
+ profile_branch_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1792
+ profile_has_tracked_changes: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1793
+ platform_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1794
+ catalog_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1795
+ rules_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1796
+ prompt_catalog_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1797
+ }, z.core.$strip>>;
1798
+ import_provenance: z.ZodOptional<z.ZodObject<{
1799
+ provider: z.ZodEnum<{
1800
+ telegram: "telegram";
1801
+ }>;
1802
+ format: z.ZodEnum<{
1803
+ html_export: "html_export";
1804
+ }>;
1805
+ dataset_id: z.ZodString;
1806
+ dataset_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1807
+ chat_folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1808
+ source_relative_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1809
+ chat_title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1810
+ imported_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1811
+ }, z.core.$strip>>;
1812
+ }, z.core.$strip>;
1813
+ }, z.core.$strip>;
1814
+ export declare const conversationsReplayTranscriptRequestSchema: z.ZodObject<{
1815
+ transcript: z.ZodObject<{
1816
+ schema_version: z.ZodLiteral<1>;
1817
+ kind: z.ZodLiteral<"sa_conversation">;
1818
+ business_slug: z.ZodString;
1819
+ profile_version: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1820
+ conversation: z.ZodObject<{
1821
+ conversationId: z.ZodString;
1822
+ channel: z.ZodString;
1823
+ threadRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1824
+ source: z.ZodObject<{
1825
+ type: z.ZodEnum<{
1826
+ exported_live_conversation: "exported_live_conversation";
1827
+ scenario_fixture: "scenario_fixture";
1828
+ manual_file: "manual_file";
1829
+ telegram_export_html: "telegram_export_html";
1830
+ }>;
1831
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1832
+ exportedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1833
+ }, z.core.$strip>;
1834
+ }, z.core.$strip>;
1835
+ participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
1836
+ id: z.ZodString;
1837
+ role: z.ZodEnum<{
1838
+ customer: "customer";
1839
+ system: "system";
1840
+ company: "company";
1841
+ }>;
1842
+ actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1843
+ hybrid: "hybrid";
1844
+ operator: "operator";
1845
+ bot: "bot";
1846
+ }>>>;
1847
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1848
+ }, z.core.$strip>>>;
1849
+ turns: z.ZodDefault<z.ZodArray<z.ZodObject<{
1850
+ turnId: z.ZodString;
1851
+ actorId: z.ZodString;
1852
+ actorRole: z.ZodEnum<{
1853
+ customer: "customer";
1854
+ system: "system";
1855
+ company: "company";
1856
+ }>;
1857
+ actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1858
+ hybrid: "hybrid";
1859
+ operator: "operator";
1860
+ bot: "bot";
1861
+ }>>>;
1862
+ external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1863
+ reply_to_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1864
+ reply_to_external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1865
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1866
+ text: z.ZodString;
1867
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1868
+ kind: z.ZodEnum<{
1869
+ photo: "photo";
1870
+ document: "document";
1871
+ audio: "audio";
1872
+ video: "video";
1873
+ other: "other";
1874
+ sticker: "sticker";
1875
+ }>;
1876
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1877
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1878
+ status: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1879
+ source_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1880
+ storage_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1881
+ mime_type: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1882
+ size_bytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1883
+ included: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1884
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1885
+ }, z.core.$strip>>>;
1886
+ }, z.core.$strip>>>;
1887
+ context: z.ZodObject<{
1888
+ domainNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1889
+ stateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1890
+ packedContextSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1891
+ historicalSummaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1892
+ summaryRef: z.ZodString;
1893
+ summaryText: z.ZodString;
1894
+ knownFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
1895
+ productsMentioned: z.ZodDefault<z.ZodArray<z.ZodString>>;
1896
+ customerGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
1897
+ }, z.core.$strip>>>;
1898
+ traceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1899
+ ref: z.ZodString;
1900
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1901
+ }, z.core.$strip>>>;
1902
+ }, z.core.$strip>;
1903
+ coverage: z.ZodOptional<z.ZodObject<{
1904
+ mode: z.ZodEnum<{
1905
+ full: "full";
1906
+ packed: "packed";
1907
+ excerpt: "excerpt";
1908
+ raw_full: "raw_full";
1909
+ }>;
1910
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1911
+ }, z.core.$strip>>;
1912
+ focus: z.ZodOptional<z.ZodObject<{
1913
+ customer_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1914
+ company_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1915
+ }, z.core.$strip>>;
1916
+ profile_provenance: z.ZodOptional<z.ZodObject<{
1917
+ version_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1918
+ version_number: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1919
+ repository_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1920
+ commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1921
+ }, z.core.$strip>>;
1922
+ lineage: z.ZodOptional<z.ZodObject<{
1923
+ transcript_id: z.ZodString;
1924
+ family_id: z.ZodString;
1925
+ run_kind: z.ZodDefault<z.ZodEnum<{
1926
+ reference: "reference";
1927
+ replay: "replay";
1928
+ live_export: "live_export";
1929
+ }>>;
1930
+ actor_mode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1931
+ hybrid: "hybrid";
1932
+ operator: "operator";
1933
+ bot: "bot";
1934
+ }>>>;
1935
+ based_on_transcript_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1936
+ based_on_conversation_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1937
+ }, z.core.$strip>>;
1938
+ runtime_provenance: z.ZodOptional<z.ZodObject<{
1939
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1940
+ api_base_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1941
+ profile_repository_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1942
+ profile_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1943
+ profile_branch_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1944
+ profile_has_tracked_changes: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1945
+ platform_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1946
+ catalog_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1947
+ rules_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1948
+ prompt_catalog_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1949
+ }, z.core.$strip>>;
1950
+ import_provenance: z.ZodOptional<z.ZodObject<{
1951
+ provider: z.ZodEnum<{
1952
+ telegram: "telegram";
1953
+ }>;
1954
+ format: z.ZodEnum<{
1955
+ html_export: "html_export";
1956
+ }>;
1957
+ dataset_id: z.ZodString;
1958
+ dataset_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1959
+ chat_folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1960
+ source_relative_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1961
+ chat_title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1962
+ imported_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1963
+ }, z.core.$strip>>;
1964
+ }, z.core.$strip>;
1965
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1966
+ channelKind: z.ZodDefault<z.ZodEnum<{
1967
+ telegram: "telegram";
1968
+ telegram_business: "telegram_business";
1969
+ local_playground: "local_playground";
1970
+ web_chat: "web_chat";
1971
+ manual: "manual";
1972
+ }>>;
1973
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1974
+ conversationThreadRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1975
+ externalUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1976
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1977
+ }, z.core.$strip>;
1978
+ export declare const conversationsReplayTranscriptResponseSchema: z.ZodObject<{
1979
+ job: z.ZodObject<{
1980
+ replayJobId: z.ZodString;
1981
+ status: z.ZodEnum<{
1982
+ failed: "failed";
1983
+ queued: "queued";
1984
+ running: "running";
1985
+ completed: "completed";
1986
+ cancelled: "cancelled";
1987
+ }>;
1988
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1989
+ referenceTranscriptId: z.ZodString;
1990
+ familyId: z.ZodString;
1991
+ referenceConversationId: z.ZodString;
1992
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1993
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1994
+ channelKind: z.ZodEnum<{
1995
+ telegram: "telegram";
1996
+ telegram_business: "telegram_business";
1997
+ local_playground: "local_playground";
1998
+ web_chat: "web_chat";
1999
+ manual: "manual";
2000
+ }>;
2001
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2002
+ conversationThreadRef: z.ZodString;
2003
+ externalUserId: z.ZodString;
2004
+ displayName: z.ZodString;
2005
+ totalBursts: z.ZodNumber;
2006
+ completedBursts: z.ZodNumber;
2007
+ replayedCustomerTurnCount: z.ZodNumber;
2008
+ generatedCompanyTurnCount: z.ZodNumber;
2009
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2010
+ code: z.ZodString;
2011
+ message: z.ZodString;
2012
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2013
+ }, z.core.$strip>>>;
2014
+ createdAt: z.ZodString;
2015
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2016
+ updatedAt: z.ZodString;
2017
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2018
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2019
+ }, z.core.$strip>;
2020
+ }, z.core.$strip>;
2021
+ export declare const conversationsGetReplayJobRequestSchema: z.ZodObject<{
2022
+ replayJobId: z.ZodString;
2023
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2024
+ }, z.core.$strip>;
2025
+ export declare const conversationsGetReplayJobResponseSchema: z.ZodObject<{
2026
+ found: z.ZodBoolean;
2027
+ job: z.ZodNullable<z.ZodObject<{
2028
+ replayJobId: z.ZodString;
2029
+ status: z.ZodEnum<{
2030
+ failed: "failed";
2031
+ queued: "queued";
2032
+ running: "running";
2033
+ completed: "completed";
2034
+ cancelled: "cancelled";
2035
+ }>;
2036
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2037
+ referenceTranscriptId: z.ZodString;
2038
+ familyId: z.ZodString;
2039
+ referenceConversationId: z.ZodString;
2040
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2041
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2042
+ channelKind: z.ZodEnum<{
2043
+ telegram: "telegram";
2044
+ telegram_business: "telegram_business";
2045
+ local_playground: "local_playground";
2046
+ web_chat: "web_chat";
2047
+ manual: "manual";
2048
+ }>;
2049
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2050
+ conversationThreadRef: z.ZodString;
2051
+ externalUserId: z.ZodString;
2052
+ displayName: z.ZodString;
2053
+ totalBursts: z.ZodNumber;
2054
+ completedBursts: z.ZodNumber;
2055
+ replayedCustomerTurnCount: z.ZodNumber;
2056
+ generatedCompanyTurnCount: z.ZodNumber;
2057
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2058
+ code: z.ZodString;
2059
+ message: z.ZodString;
2060
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2061
+ }, z.core.$strip>>>;
2062
+ createdAt: z.ZodString;
2063
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2064
+ updatedAt: z.ZodString;
2065
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2066
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2067
+ }, z.core.$strip>>;
2068
+ }, z.core.$strip>;
1570
2069
  export declare const conversationsGetContextRequestSchema: z.ZodObject<{
1571
2070
  conversationId: z.ZodOptional<z.ZodString>;
1572
2071
  channelKind: z.ZodOptional<z.ZodEnum<{
@@ -2183,4 +2682,12 @@ export type ConversationsGetContextInput = z.infer<typeof conversationsGetContex
2183
2682
  export type ConversationsGetContextOutput = z.infer<typeof conversationsGetContextResponseSchema>;
2184
2683
  export type ConversationsListTimelineInput = z.infer<typeof conversationsListTimelineRequestSchema>;
2185
2684
  export type ConversationsListTimelineOutput = z.infer<typeof conversationsListTimelineResponseSchema>;
2685
+ export type ConversationsReplayTranscriptInput = z.infer<typeof conversationsReplayTranscriptRequestSchema>;
2686
+ export type ConversationsReplayTranscriptOutput = z.infer<typeof conversationsReplayTranscriptResponseSchema>;
2687
+ export type ConversationReplayJobStatus = z.infer<typeof conversationReplayJobStatusSchema>;
2688
+ export type ConversationReplayJobError = z.infer<typeof conversationReplayJobErrorSchema>;
2689
+ export type ConversationReplayJobSummary = z.infer<typeof conversationReplayJobSummarySchema>;
2690
+ export type ConversationReplayJobRecord = z.infer<typeof conversationReplayJobRecordSchema>;
2691
+ export type ConversationsGetReplayJobInput = z.infer<typeof conversationsGetReplayJobRequestSchema>;
2692
+ export type ConversationsGetReplayJobOutput = z.infer<typeof conversationsGetReplayJobResponseSchema>;
2186
2693
  //# sourceMappingURL=conversations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../src/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,6BAA6B;;;;;;EAMxC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;EAAyD,CAAC;AAC/F,eAAO,MAAM,mBAAmB;;;;EAAoC,CAAC;AACrE,eAAO,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AO,2CAA2C,CACnD,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AACpG,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.conversationsListTimelineResponseSchema = exports.conversationsListTimelineRequestSchema = exports.conversationsGetContextResponseSchema = exports.conversationsGetContextRequestSchema = exports.conversationsProcessInboundEventResponseSchema = exports.conversationsProcessInboundEventRequestSchema = exports.conversationContextSchema = exports.outboundDispatchSchema = exports.assistArtifactSchema = exports.timelineEntrySchema = exports.conversationEventSchema = exports.messageSchema = exports.attachmentInputSchema = exports.attachmentSchema = exports.conversationSchema = exports.conversationBusinessConnectionSchema = exports.inboundEventKindSchema = exports.assistArtifactStatusSchema = exports.assistArtifactKindSchema = exports.sendModeSchema = exports.assistModeSchema = exports.timelineEntryKindSchema = exports.conversationEventKindSchema = exports.attachmentKindSchema = exports.messageDeliveryKindSchema = exports.messageAuthorKindSchema = exports.ownershipModeSchema = exports.conversationStatusSchema = exports.conversationChannelKindSchema = void 0;
3
+ exports.conversationsListTimelineResponseSchema = exports.conversationsListTimelineRequestSchema = exports.conversationsGetContextResponseSchema = exports.conversationsGetContextRequestSchema = exports.conversationsGetReplayJobResponseSchema = exports.conversationsGetReplayJobRequestSchema = exports.conversationsReplayTranscriptResponseSchema = exports.conversationsReplayTranscriptRequestSchema = exports.conversationReplayJobRecordSchema = exports.conversationReplayJobSummarySchema = exports.conversationReplayJobErrorSchema = exports.conversationReplayJobStatusSchema = exports.conversationsProcessInboundEventResponseSchema = exports.conversationsProcessInboundEventRequestSchema = exports.conversationContextSchema = exports.outboundDispatchSchema = exports.assistArtifactSchema = exports.timelineEntrySchema = exports.conversationEventSchema = exports.messageSchema = exports.attachmentInputSchema = exports.attachmentSchema = exports.conversationSchema = exports.conversationBusinessConnectionSchema = exports.inboundEventKindSchema = exports.assistArtifactStatusSchema = exports.assistArtifactKindSchema = exports.sendModeSchema = exports.assistModeSchema = exports.timelineEntryKindSchema = exports.conversationEventKindSchema = exports.attachmentKindSchema = exports.messageDeliveryKindSchema = exports.messageAuthorKindSchema = exports.ownershipModeSchema = exports.conversationStatusSchema = exports.conversationChannelKindSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const runtime_1 = require("./runtime");
6
+ const judge_files_1 = require("./judge-files");
6
7
  const optionalTextSchema = zod_1.z.string().min(1).nullable();
7
8
  const jsonRecordSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).default({});
8
9
  exports.conversationChannelKindSchema = zod_1.z.enum([
@@ -215,6 +216,66 @@ exports.conversationsProcessInboundEventResponseSchema = zod_1.z.object({
215
216
  assistArtifacts: zod_1.z.array(exports.assistArtifactSchema),
216
217
  outboundDispatches: zod_1.z.array(exports.outboundDispatchSchema)
217
218
  });
219
+ exports.conversationReplayJobStatusSchema = zod_1.z.enum([
220
+ 'queued',
221
+ 'running',
222
+ 'completed',
223
+ 'failed',
224
+ 'cancelled'
225
+ ]);
226
+ exports.conversationReplayJobErrorSchema = zod_1.z.object({
227
+ code: zod_1.z.string().min(1),
228
+ message: zod_1.z.string().min(1),
229
+ details: jsonRecordSchema
230
+ });
231
+ exports.conversationReplayJobSummarySchema = zod_1.z.object({
232
+ replayJobId: zod_1.z.string().uuid(),
233
+ status: exports.conversationReplayJobStatusSchema,
234
+ businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
235
+ referenceTranscriptId: zod_1.z.string().min(1),
236
+ familyId: zod_1.z.string().min(1),
237
+ referenceConversationId: zod_1.z.string().min(1),
238
+ workflowRunId: zod_1.z.string().min(1).nullable().default(null),
239
+ conversationId: zod_1.z.string().uuid().nullable().default(null),
240
+ channelKind: exports.conversationChannelKindSchema,
241
+ channelAccountId: zod_1.z.string().min(1).nullable().default(null),
242
+ conversationThreadRef: zod_1.z.string().min(1),
243
+ externalUserId: zod_1.z.string().min(1),
244
+ displayName: zod_1.z.string().min(1),
245
+ totalBursts: zod_1.z.number().int().nonnegative(),
246
+ completedBursts: zod_1.z.number().int().nonnegative(),
247
+ replayedCustomerTurnCount: zod_1.z.number().int().nonnegative(),
248
+ generatedCompanyTurnCount: zod_1.z.number().int().nonnegative(),
249
+ lastError: exports.conversationReplayJobErrorSchema.nullable().default(null),
250
+ createdAt: zod_1.z.string(),
251
+ startedAt: zod_1.z.string().nullable().default(null),
252
+ updatedAt: zod_1.z.string(),
253
+ completedAt: zod_1.z.string().nullable().default(null),
254
+ cancelledAt: zod_1.z.string().nullable().default(null)
255
+ });
256
+ exports.conversationReplayJobRecordSchema = exports.conversationReplayJobSummarySchema.extend({
257
+ transcript: judge_files_1.canonicalConversationTranscriptSchema
258
+ });
259
+ exports.conversationsReplayTranscriptRequestSchema = zod_1.z.object({
260
+ transcript: judge_files_1.canonicalConversationTranscriptSchema,
261
+ businessProfileSlug: zod_1.z.string().min(1).nullable().default(null),
262
+ channelKind: exports.conversationChannelKindSchema.default('local_playground'),
263
+ channelAccountId: zod_1.z.string().min(1).nullable().default(null),
264
+ conversationThreadRef: zod_1.z.string().min(1).nullable().default(null),
265
+ externalUserId: zod_1.z.string().min(1).nullable().default(null),
266
+ displayName: zod_1.z.string().min(1).nullable().default(null)
267
+ });
268
+ exports.conversationsReplayTranscriptResponseSchema = zod_1.z.object({
269
+ job: exports.conversationReplayJobSummarySchema
270
+ });
271
+ exports.conversationsGetReplayJobRequestSchema = zod_1.z.object({
272
+ replayJobId: zod_1.z.string().uuid(),
273
+ businessProfileSlug: zod_1.z.string().min(1).nullable().default(null)
274
+ });
275
+ exports.conversationsGetReplayJobResponseSchema = zod_1.z.object({
276
+ found: zod_1.z.boolean(),
277
+ job: exports.conversationReplayJobSummarySchema.nullable()
278
+ });
218
279
  exports.conversationsGetContextRequestSchema = zod_1.z
219
280
  .object({
220
281
  conversationId: zod_1.z.string().uuid().optional(),