@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.
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { conversationsGetContextRequestSchema, conversationsGetContextResponseSchema, conversationsListTimelineRequestSchema, conversationsListTimelineResponseSchema, conversationsProcessInboundEventRequestSchema, conversationsProcessInboundEventResponseSchema } from './conversations';
2
+ import { conversationsGetContextRequestSchema, conversationsGetContextResponseSchema, conversationsGetReplayJobRequestSchema, conversationsGetReplayJobResponseSchema, conversationsListTimelineRequestSchema, conversationsListTimelineResponseSchema, conversationsProcessInboundEventRequestSchema, conversationsProcessInboundEventResponseSchema, conversationsReplayTranscriptRequestSchema, conversationsReplayTranscriptResponseSchema } from './conversations';
3
3
  import { commerceCreateCartRequestSchema, commerceCreateCartResponseSchema, commerceCreateOrderSnapshotRequestSchema, commerceCreateOrderSnapshotResponseSchema, commerceGetCatalogRequestSchema, commerceGetCatalogResponseSchema, commerceGetContextRequestSchema, commerceGetContextResponseSchema, commerceQuoteDealRequestSchema, commerceQuoteDealResponseSchema, commerceReplaceCartItemsRequestSchema, commerceReplaceCartItemsResponseSchema, commerceSeedCatalogRequestSchema, commerceSeedCatalogResponseSchema } from './commerce';
4
4
  import { customersEnsureIdentityRequestSchema, customersEnsureIdentityResponseSchema, customersGetContextRequestSchema, customersGetContextResponseSchema, customersPatchMemoryRequestSchema, customersPatchMemoryResponseSchema } from './customers';
5
5
  import { systemEchoRequestSchema, systemEchoResponseSchema, systemHealthRequestSchema, systemHealthResponseSchema, systemIntegrationStatusRequestSchema, systemIntegrationStatusResponseSchema, systemInfoRequestSchema, systemInfoResponseSchema } from './system';
@@ -116,7 +116,6 @@ export declare const businessProfileProjectManifestSchema: z.ZodObject<{
116
116
  }, z.core.$strip>>;
117
117
  paths: z.ZodObject<{
118
118
  business: z.ZodString;
119
- team: z.ZodString;
120
119
  catalog_products: z.ZodString;
121
120
  catalog_relations: z.ZodString;
122
121
  telegram_bots: z.ZodString;
@@ -125,11 +124,9 @@ export declare const businessProfileProjectManifestSchema: z.ZodObject<{
125
124
  strategies_root: z.ZodString;
126
125
  policies_root: z.ZodString;
127
126
  prompt_overrides: z.ZodString;
128
- expectation_blocks_root: z.ZodString;
129
- expectation_profiles_root: z.ZodString;
130
- judge_rules_root: z.ZodOptional<z.ZodString>;
131
- judge_scorecards_root: z.ZodOptional<z.ZodString>;
132
- judge_transcripts_root: z.ZodOptional<z.ZodString>;
127
+ judge_rules_root: z.ZodString;
128
+ judge_scorecards_root: z.ZodString;
129
+ judge_transcripts_root: z.ZodString;
133
130
  seeds_root: z.ZodString;
134
131
  }, z.core.$strip>;
135
132
  secret_refs: z.ZodDefault<z.ZodObject<{
@@ -308,7 +305,6 @@ export declare const businessProfileProjectBundleSchema: z.ZodObject<{
308
305
  }, z.core.$strip>>;
309
306
  paths: z.ZodObject<{
310
307
  business: z.ZodString;
311
- team: z.ZodString;
312
308
  catalog_products: z.ZodString;
313
309
  catalog_relations: z.ZodString;
314
310
  telegram_bots: z.ZodString;
@@ -317,11 +313,9 @@ export declare const businessProfileProjectBundleSchema: z.ZodObject<{
317
313
  strategies_root: z.ZodString;
318
314
  policies_root: z.ZodString;
319
315
  prompt_overrides: z.ZodString;
320
- expectation_blocks_root: z.ZodString;
321
- expectation_profiles_root: z.ZodString;
322
- judge_rules_root: z.ZodOptional<z.ZodString>;
323
- judge_scorecards_root: z.ZodOptional<z.ZodString>;
324
- judge_transcripts_root: z.ZodOptional<z.ZodString>;
316
+ judge_rules_root: z.ZodString;
317
+ judge_scorecards_root: z.ZodString;
318
+ judge_transcripts_root: z.ZodString;
325
319
  seeds_root: z.ZodString;
326
320
  }, z.core.$strip>;
327
321
  secret_refs: z.ZodDefault<z.ZodObject<{
@@ -1502,6 +1496,31 @@ export declare const authInviteStatusSchema: z.ZodEnum<{
1502
1496
  pending: "pending";
1503
1497
  expired: "expired";
1504
1498
  }>;
1499
+ export declare const authInviteTelegramBindingStatusSchema: z.ZodEnum<{
1500
+ pending: "pending";
1501
+ matched: "matched";
1502
+ fulfilled: "fulfilled";
1503
+ ambiguous: "ambiguous";
1504
+ conflict: "conflict";
1505
+ }>;
1506
+ export declare const authInviteTelegramBindingSchema: z.ZodObject<{
1507
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1508
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1509
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1510
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1511
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1512
+ status: z.ZodEnum<{
1513
+ pending: "pending";
1514
+ matched: "matched";
1515
+ fulfilled: "fulfilled";
1516
+ ambiguous: "ambiguous";
1517
+ conflict: "conflict";
1518
+ }>;
1519
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1520
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1521
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1522
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1523
+ }, z.core.$strip>;
1505
1524
  export declare const authInviteRecordSchema: z.ZodObject<{
1506
1525
  inviteId: z.ZodString;
1507
1526
  scope: z.ZodEnum<{
@@ -1530,6 +1549,24 @@ export declare const authInviteRecordSchema: z.ZodObject<{
1530
1549
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1531
1550
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1532
1551
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1552
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1553
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1554
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1555
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1556
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1557
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1558
+ status: z.ZodEnum<{
1559
+ pending: "pending";
1560
+ matched: "matched";
1561
+ fulfilled: "fulfilled";
1562
+ ambiguous: "ambiguous";
1563
+ conflict: "conflict";
1564
+ }>;
1565
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1566
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1567
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1568
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1569
+ }, z.core.$strip>>>;
1533
1570
  expiresAt: z.ZodString;
1534
1571
  createdAt: z.ZodString;
1535
1572
  updatedAt: z.ZodString;
@@ -1618,6 +1655,24 @@ export declare const authListWorkspaceInvitesResponseSchema: z.ZodObject<{
1618
1655
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1619
1656
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1620
1657
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1658
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1659
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1660
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1661
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1662
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1663
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1664
+ status: z.ZodEnum<{
1665
+ pending: "pending";
1666
+ matched: "matched";
1667
+ fulfilled: "fulfilled";
1668
+ ambiguous: "ambiguous";
1669
+ conflict: "conflict";
1670
+ }>;
1671
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1672
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1673
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1674
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1675
+ }, z.core.$strip>>>;
1621
1676
  expiresAt: z.ZodString;
1622
1677
  createdAt: z.ZodString;
1623
1678
  updatedAt: z.ZodString;
@@ -1631,8 +1686,10 @@ export declare const authIssueWorkspaceInviteRequestSchema: z.ZodObject<{
1631
1686
  operator: "operator";
1632
1687
  observer: "observer";
1633
1688
  }>;
1634
- expiresInDays: z.ZodDefault<z.ZodNumber>;
1689
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
1635
1690
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1691
+ telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1692
+ telegramUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1636
1693
  }, z.core.$strip>;
1637
1694
  export declare const authIssueWorkspaceInviteResponseSchema: z.ZodObject<{
1638
1695
  invite: z.ZodObject<{
@@ -1663,6 +1720,24 @@ export declare const authIssueWorkspaceInviteResponseSchema: z.ZodObject<{
1663
1720
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1664
1721
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1665
1722
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1723
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1724
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1725
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1726
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1727
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1728
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1729
+ status: z.ZodEnum<{
1730
+ pending: "pending";
1731
+ matched: "matched";
1732
+ fulfilled: "fulfilled";
1733
+ ambiguous: "ambiguous";
1734
+ conflict: "conflict";
1735
+ }>;
1736
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1737
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1738
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1739
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1740
+ }, z.core.$strip>>>;
1666
1741
  expiresAt: z.ZodString;
1667
1742
  createdAt: z.ZodString;
1668
1743
  updatedAt: z.ZodString;
@@ -1701,6 +1776,24 @@ export declare const authRevokeWorkspaceInviteResponseSchema: z.ZodObject<{
1701
1776
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1702
1777
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1703
1778
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1779
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1780
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1781
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1782
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1783
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1784
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1785
+ status: z.ZodEnum<{
1786
+ pending: "pending";
1787
+ matched: "matched";
1788
+ fulfilled: "fulfilled";
1789
+ ambiguous: "ambiguous";
1790
+ conflict: "conflict";
1791
+ }>;
1792
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1793
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1794
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1795
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1796
+ }, z.core.$strip>>>;
1704
1797
  expiresAt: z.ZodString;
1705
1798
  createdAt: z.ZodString;
1706
1799
  updatedAt: z.ZodString;
@@ -1747,6 +1840,24 @@ export declare const authListSystemAdminInvitesResponseSchema: z.ZodObject<{
1747
1840
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1748
1841
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1749
1842
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1843
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1844
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1845
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1846
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1847
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1848
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1849
+ status: z.ZodEnum<{
1850
+ pending: "pending";
1851
+ matched: "matched";
1852
+ fulfilled: "fulfilled";
1853
+ ambiguous: "ambiguous";
1854
+ conflict: "conflict";
1855
+ }>;
1856
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1857
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1858
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1859
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1860
+ }, z.core.$strip>>>;
1750
1861
  expiresAt: z.ZodString;
1751
1862
  createdAt: z.ZodString;
1752
1863
  updatedAt: z.ZodString;
@@ -1754,7 +1865,7 @@ export declare const authListSystemAdminInvitesResponseSchema: z.ZodObject<{
1754
1865
  }, z.core.$strip>;
1755
1866
  export declare const authIssueSystemAdminInviteRequestSchema: z.ZodObject<{
1756
1867
  email: z.ZodString;
1757
- expiresInDays: z.ZodDefault<z.ZodNumber>;
1868
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
1758
1869
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1759
1870
  }, z.core.$strip>;
1760
1871
  export declare const authIssueSystemAdminInviteResponseSchema: z.ZodObject<{
@@ -1786,6 +1897,24 @@ export declare const authIssueSystemAdminInviteResponseSchema: z.ZodObject<{
1786
1897
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1787
1898
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1788
1899
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1900
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1901
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1902
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1903
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1904
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1905
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1906
+ status: z.ZodEnum<{
1907
+ pending: "pending";
1908
+ matched: "matched";
1909
+ fulfilled: "fulfilled";
1910
+ ambiguous: "ambiguous";
1911
+ conflict: "conflict";
1912
+ }>;
1913
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1914
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1915
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1916
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1917
+ }, z.core.$strip>>>;
1789
1918
  expiresAt: z.ZodString;
1790
1919
  createdAt: z.ZodString;
1791
1920
  updatedAt: z.ZodString;
@@ -1824,6 +1953,24 @@ export declare const authRevokeSystemAdminInviteResponseSchema: z.ZodObject<{
1824
1953
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1825
1954
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1826
1955
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1956
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1957
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1958
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1959
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1960
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1961
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1962
+ status: z.ZodEnum<{
1963
+ pending: "pending";
1964
+ matched: "matched";
1965
+ fulfilled: "fulfilled";
1966
+ ambiguous: "ambiguous";
1967
+ conflict: "conflict";
1968
+ }>;
1969
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1970
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1971
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1972
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1973
+ }, z.core.$strip>>>;
1827
1974
  expiresAt: z.ZodString;
1828
1975
  createdAt: z.ZodString;
1829
1976
  updatedAt: z.ZodString;
@@ -2471,7 +2618,6 @@ export declare const businessProfilesUploadBundleRequestSchema: z.ZodObject<{
2471
2618
  }, z.core.$strip>>;
2472
2619
  paths: z.ZodObject<{
2473
2620
  business: z.ZodString;
2474
- team: z.ZodString;
2475
2621
  catalog_products: z.ZodString;
2476
2622
  catalog_relations: z.ZodString;
2477
2623
  telegram_bots: z.ZodString;
@@ -2480,11 +2626,9 @@ export declare const businessProfilesUploadBundleRequestSchema: z.ZodObject<{
2480
2626
  strategies_root: z.ZodString;
2481
2627
  policies_root: z.ZodString;
2482
2628
  prompt_overrides: z.ZodString;
2483
- expectation_blocks_root: z.ZodString;
2484
- expectation_profiles_root: z.ZodString;
2485
- judge_rules_root: z.ZodOptional<z.ZodString>;
2486
- judge_scorecards_root: z.ZodOptional<z.ZodString>;
2487
- judge_transcripts_root: z.ZodOptional<z.ZodString>;
2629
+ judge_rules_root: z.ZodString;
2630
+ judge_scorecards_root: z.ZodString;
2631
+ judge_transcripts_root: z.ZodString;
2488
2632
  seeds_root: z.ZodString;
2489
2633
  }, z.core.$strip>;
2490
2634
  secret_refs: z.ZodDefault<z.ZodObject<{
@@ -2784,7 +2928,6 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2784
2928
  }, z.core.$strip>>;
2785
2929
  paths: z.ZodObject<{
2786
2930
  business: z.ZodString;
2787
- team: z.ZodString;
2788
2931
  catalog_products: z.ZodString;
2789
2932
  catalog_relations: z.ZodString;
2790
2933
  telegram_bots: z.ZodString;
@@ -2793,11 +2936,9 @@ export declare const businessProfilesDownloadBundleResponseSchema: z.ZodObject<{
2793
2936
  strategies_root: z.ZodString;
2794
2937
  policies_root: z.ZodString;
2795
2938
  prompt_overrides: z.ZodString;
2796
- expectation_blocks_root: z.ZodString;
2797
- expectation_profiles_root: z.ZodString;
2798
- judge_rules_root: z.ZodOptional<z.ZodString>;
2799
- judge_scorecards_root: z.ZodOptional<z.ZodString>;
2800
- judge_transcripts_root: z.ZodOptional<z.ZodString>;
2939
+ judge_rules_root: z.ZodString;
2940
+ judge_scorecards_root: z.ZodString;
2941
+ judge_transcripts_root: z.ZodString;
2801
2942
  seeds_root: z.ZodString;
2802
2943
  }, z.core.$strip>;
2803
2944
  secret_refs: z.ZodDefault<z.ZodObject<{
@@ -5778,6 +5919,24 @@ export declare const authListWorkspaceInvitesOperation: OperationDefinition<"aut
5778
5919
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5779
5920
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5780
5921
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5922
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
5923
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5924
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5925
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5926
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5927
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5928
+ status: z.ZodEnum<{
5929
+ pending: "pending";
5930
+ matched: "matched";
5931
+ fulfilled: "fulfilled";
5932
+ ambiguous: "ambiguous";
5933
+ conflict: "conflict";
5934
+ }>;
5935
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5936
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5937
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5938
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5939
+ }, z.core.$strip>>>;
5781
5940
  expiresAt: z.ZodString;
5782
5941
  createdAt: z.ZodString;
5783
5942
  updatedAt: z.ZodString;
@@ -5791,8 +5950,10 @@ export declare const authIssueWorkspaceInviteOperation: OperationDefinition<"aut
5791
5950
  operator: "operator";
5792
5951
  observer: "observer";
5793
5952
  }>;
5794
- expiresInDays: z.ZodDefault<z.ZodNumber>;
5953
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
5795
5954
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5955
+ telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5956
+ telegramUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5796
5957
  }, z.core.$strip>, z.ZodObject<{
5797
5958
  invite: z.ZodObject<{
5798
5959
  inviteId: z.ZodString;
@@ -5822,6 +5983,24 @@ export declare const authIssueWorkspaceInviteOperation: OperationDefinition<"aut
5822
5983
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5823
5984
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5824
5985
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5986
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
5987
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5988
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5989
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5990
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5991
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5992
+ status: z.ZodEnum<{
5993
+ pending: "pending";
5994
+ matched: "matched";
5995
+ fulfilled: "fulfilled";
5996
+ ambiguous: "ambiguous";
5997
+ conflict: "conflict";
5998
+ }>;
5999
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6000
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6001
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6002
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6003
+ }, z.core.$strip>>>;
5825
6004
  expiresAt: z.ZodString;
5826
6005
  createdAt: z.ZodString;
5827
6006
  updatedAt: z.ZodString;
@@ -5859,6 +6038,24 @@ export declare const authRevokeWorkspaceInviteOperation: OperationDefinition<"au
5859
6038
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5860
6039
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5861
6040
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6041
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
6042
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6043
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6044
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6045
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6046
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6047
+ status: z.ZodEnum<{
6048
+ pending: "pending";
6049
+ matched: "matched";
6050
+ fulfilled: "fulfilled";
6051
+ ambiguous: "ambiguous";
6052
+ conflict: "conflict";
6053
+ }>;
6054
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6055
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6056
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6057
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6058
+ }, z.core.$strip>>>;
5862
6059
  expiresAt: z.ZodString;
5863
6060
  createdAt: z.ZodString;
5864
6061
  updatedAt: z.ZodString;
@@ -5903,6 +6100,24 @@ export declare const authListSystemAdminInvitesOperation: OperationDefinition<"a
5903
6100
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5904
6101
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5905
6102
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6103
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
6104
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6105
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6106
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6107
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6108
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6109
+ status: z.ZodEnum<{
6110
+ pending: "pending";
6111
+ matched: "matched";
6112
+ fulfilled: "fulfilled";
6113
+ ambiguous: "ambiguous";
6114
+ conflict: "conflict";
6115
+ }>;
6116
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6117
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6118
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6119
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6120
+ }, z.core.$strip>>>;
5906
6121
  expiresAt: z.ZodString;
5907
6122
  createdAt: z.ZodString;
5908
6123
  updatedAt: z.ZodString;
@@ -5910,7 +6125,7 @@ export declare const authListSystemAdminInvitesOperation: OperationDefinition<"a
5910
6125
  }, z.core.$strip>>;
5911
6126
  export declare const authIssueSystemAdminInviteOperation: OperationDefinition<"auth.issueSystemAdminInvite", z.ZodObject<{
5912
6127
  email: z.ZodString;
5913
- expiresInDays: z.ZodDefault<z.ZodNumber>;
6128
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
5914
6129
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5915
6130
  }, z.core.$strip>, z.ZodObject<{
5916
6131
  invite: z.ZodObject<{
@@ -5941,6 +6156,24 @@ export declare const authIssueSystemAdminInviteOperation: OperationDefinition<"a
5941
6156
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5942
6157
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5943
6158
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6159
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
6160
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6161
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6162
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6163
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6164
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6165
+ status: z.ZodEnum<{
6166
+ pending: "pending";
6167
+ matched: "matched";
6168
+ fulfilled: "fulfilled";
6169
+ ambiguous: "ambiguous";
6170
+ conflict: "conflict";
6171
+ }>;
6172
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6173
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6174
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6175
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6176
+ }, z.core.$strip>>>;
5944
6177
  expiresAt: z.ZodString;
5945
6178
  createdAt: z.ZodString;
5946
6179
  updatedAt: z.ZodString;
@@ -5978,6 +6211,24 @@ export declare const authRevokeSystemAdminInviteOperation: OperationDefinition<"
5978
6211
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5979
6212
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5980
6213
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6214
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
6215
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6216
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6217
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6218
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6219
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6220
+ status: z.ZodEnum<{
6221
+ pending: "pending";
6222
+ matched: "matched";
6223
+ fulfilled: "fulfilled";
6224
+ ambiguous: "ambiguous";
6225
+ conflict: "conflict";
6226
+ }>;
6227
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6228
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6229
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6230
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6231
+ }, z.core.$strip>>>;
5981
6232
  expiresAt: z.ZodString;
5982
6233
  createdAt: z.ZodString;
5983
6234
  updatedAt: z.ZodString;
@@ -6115,7 +6366,6 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
6115
6366
  }, z.core.$strip>>;
6116
6367
  paths: z.ZodObject<{
6117
6368
  business: z.ZodString;
6118
- team: z.ZodString;
6119
6369
  catalog_products: z.ZodString;
6120
6370
  catalog_relations: z.ZodString;
6121
6371
  telegram_bots: z.ZodString;
@@ -6124,11 +6374,9 @@ export declare const businessProfilesUploadBundleOperation: OperationDefinition<
6124
6374
  strategies_root: z.ZodString;
6125
6375
  policies_root: z.ZodString;
6126
6376
  prompt_overrides: z.ZodString;
6127
- expectation_blocks_root: z.ZodString;
6128
- expectation_profiles_root: z.ZodString;
6129
- judge_rules_root: z.ZodOptional<z.ZodString>;
6130
- judge_scorecards_root: z.ZodOptional<z.ZodString>;
6131
- judge_transcripts_root: z.ZodOptional<z.ZodString>;
6377
+ judge_rules_root: z.ZodString;
6378
+ judge_scorecards_root: z.ZodString;
6379
+ judge_transcripts_root: z.ZodString;
6132
6380
  seeds_root: z.ZodString;
6133
6381
  }, z.core.$strip>;
6134
6382
  secret_refs: z.ZodDefault<z.ZodObject<{
@@ -6425,7 +6673,6 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
6425
6673
  }, z.core.$strip>>;
6426
6674
  paths: z.ZodObject<{
6427
6675
  business: z.ZodString;
6428
- team: z.ZodString;
6429
6676
  catalog_products: z.ZodString;
6430
6677
  catalog_relations: z.ZodString;
6431
6678
  telegram_bots: z.ZodString;
@@ -6434,11 +6681,9 @@ export declare const businessProfilesDownloadBundleOperation: OperationDefinitio
6434
6681
  strategies_root: z.ZodString;
6435
6682
  policies_root: z.ZodString;
6436
6683
  prompt_overrides: z.ZodString;
6437
- expectation_blocks_root: z.ZodString;
6438
- expectation_profiles_root: z.ZodString;
6439
- judge_rules_root: z.ZodOptional<z.ZodString>;
6440
- judge_scorecards_root: z.ZodOptional<z.ZodString>;
6441
- judge_transcripts_root: z.ZodOptional<z.ZodString>;
6684
+ judge_rules_root: z.ZodString;
6685
+ judge_scorecards_root: z.ZodString;
6686
+ judge_transcripts_root: z.ZodString;
6442
6687
  seeds_root: z.ZodString;
6443
6688
  }, z.core.$strip>;
6444
6689
  secret_refs: z.ZodDefault<z.ZodObject<{
@@ -7504,9 +7749,9 @@ export declare const customersEnsureIdentityOperation: OperationDefinition<"cust
7504
7749
  orderId: z.ZodString;
7505
7750
  title: z.ZodString;
7506
7751
  status: z.ZodEnum<{
7752
+ fulfilled: "fulfilled";
7507
7753
  draft: "draft";
7508
7754
  paid: "paid";
7509
- fulfilled: "fulfilled";
7510
7755
  cancelled: "cancelled";
7511
7756
  }>;
7512
7757
  occurredAt: z.ZodString;
@@ -7677,9 +7922,9 @@ export declare const customersGetContextOperation: OperationDefinition<"customer
7677
7922
  orderId: z.ZodString;
7678
7923
  title: z.ZodString;
7679
7924
  status: z.ZodEnum<{
7925
+ fulfilled: "fulfilled";
7680
7926
  draft: "draft";
7681
7927
  paid: "paid";
7682
- fulfilled: "fulfilled";
7683
7928
  cancelled: "cancelled";
7684
7929
  }>;
7685
7930
  occurredAt: z.ZodString;
@@ -7807,9 +8052,9 @@ export declare const customersPatchMemoryOperation: OperationDefinition<"custome
7807
8052
  orderId: z.ZodString;
7808
8053
  title: z.ZodString;
7809
8054
  status: z.ZodEnum<{
8055
+ fulfilled: "fulfilled";
7810
8056
  draft: "draft";
7811
8057
  paid: "paid";
7812
- fulfilled: "fulfilled";
7813
8058
  cancelled: "cancelled";
7814
8059
  }>;
7815
8060
  occurredAt: z.ZodString;
@@ -7917,9 +8162,9 @@ export declare const customersPatchMemoryOperation: OperationDefinition<"custome
7917
8162
  orderId: z.ZodString;
7918
8163
  title: z.ZodString;
7919
8164
  status: z.ZodEnum<{
8165
+ fulfilled: "fulfilled";
7920
8166
  draft: "draft";
7921
8167
  paid: "paid";
7922
- fulfilled: "fulfilled";
7923
8168
  cancelled: "cancelled";
7924
8169
  }>;
7925
8170
  occurredAt: z.ZodString;
@@ -8070,9 +8315,9 @@ export declare const customersPatchMemoryOperation: OperationDefinition<"custome
8070
8315
  orderId: z.ZodString;
8071
8316
  title: z.ZodString;
8072
8317
  status: z.ZodEnum<{
8318
+ fulfilled: "fulfilled";
8073
8319
  draft: "draft";
8074
8320
  paid: "paid";
8075
- fulfilled: "fulfilled";
8076
8321
  cancelled: "cancelled";
8077
8322
  }>;
8078
8323
  occurredAt: z.ZodString;
@@ -8562,8 +8807,8 @@ export declare const commerceCreateOrderSnapshotOperation: OperationDefinition<"
8562
8807
  cartId: z.ZodString;
8563
8808
  title: z.ZodString;
8564
8809
  status: z.ZodEnum<{
8565
- paid: "paid";
8566
8810
  fulfilled: "fulfilled";
8811
+ paid: "paid";
8567
8812
  cancelled: "cancelled";
8568
8813
  confirmed: "confirmed";
8569
8814
  }>;
@@ -8851,8 +9096,8 @@ export declare const commerceGetContextOperation: OperationDefinition<"commerce.
8851
9096
  cartId: z.ZodString;
8852
9097
  title: z.ZodString;
8853
9098
  status: z.ZodEnum<{
8854
- paid: "paid";
8855
9099
  fulfilled: "fulfilled";
9100
+ paid: "paid";
8856
9101
  cancelled: "cancelled";
8857
9102
  confirmed: "confirmed";
8858
9103
  }>;
@@ -10140,6 +10385,259 @@ export declare const conversationsGetContextOperation: OperationDefinition<"conv
10140
10385
  }, z.core.$strip>>>;
10141
10386
  }, z.core.$strip>>;
10142
10387
  }, z.core.$strip>>;
10388
+ export declare const conversationsReplayTranscriptOperation: OperationDefinition<"conversations.replayTranscript", z.ZodObject<{
10389
+ transcript: z.ZodObject<{
10390
+ schema_version: z.ZodLiteral<1>;
10391
+ kind: z.ZodLiteral<"sa_conversation">;
10392
+ business_slug: z.ZodString;
10393
+ profile_version: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10394
+ conversation: z.ZodObject<{
10395
+ conversationId: z.ZodString;
10396
+ channel: z.ZodString;
10397
+ threadRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10398
+ source: z.ZodObject<{
10399
+ type: z.ZodEnum<{
10400
+ exported_live_conversation: "exported_live_conversation";
10401
+ scenario_fixture: "scenario_fixture";
10402
+ manual_file: "manual_file";
10403
+ telegram_export_html: "telegram_export_html";
10404
+ }>;
10405
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10406
+ exportedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10407
+ }, z.core.$strip>;
10408
+ }, z.core.$strip>;
10409
+ participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
10410
+ id: z.ZodString;
10411
+ role: z.ZodEnum<{
10412
+ system: "system";
10413
+ customer: "customer";
10414
+ company: "company";
10415
+ }>;
10416
+ actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
10417
+ operator: "operator";
10418
+ hybrid: "hybrid";
10419
+ bot: "bot";
10420
+ }>>>;
10421
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10422
+ }, z.core.$strip>>>;
10423
+ turns: z.ZodDefault<z.ZodArray<z.ZodObject<{
10424
+ turnId: z.ZodString;
10425
+ actorId: z.ZodString;
10426
+ actorRole: z.ZodEnum<{
10427
+ system: "system";
10428
+ customer: "customer";
10429
+ company: "company";
10430
+ }>;
10431
+ actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
10432
+ operator: "operator";
10433
+ hybrid: "hybrid";
10434
+ bot: "bot";
10435
+ }>>>;
10436
+ external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10437
+ reply_to_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10438
+ reply_to_external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10439
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10440
+ text: z.ZodString;
10441
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
10442
+ kind: z.ZodEnum<{
10443
+ document: "document";
10444
+ photo: "photo";
10445
+ audio: "audio";
10446
+ video: "video";
10447
+ other: "other";
10448
+ sticker: "sticker";
10449
+ }>;
10450
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10451
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10452
+ status: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10453
+ source_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10454
+ storage_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10455
+ mime_type: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10456
+ size_bytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10457
+ included: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
10458
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10459
+ }, z.core.$strip>>>;
10460
+ }, z.core.$strip>>>;
10461
+ context: z.ZodObject<{
10462
+ domainNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10463
+ stateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10464
+ packedContextSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10465
+ historicalSummaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
10466
+ summaryRef: z.ZodString;
10467
+ summaryText: z.ZodString;
10468
+ knownFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
10469
+ productsMentioned: z.ZodDefault<z.ZodArray<z.ZodString>>;
10470
+ customerGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
10471
+ }, z.core.$strip>>>;
10472
+ traceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10473
+ ref: z.ZodString;
10474
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10475
+ }, z.core.$strip>>>;
10476
+ }, z.core.$strip>;
10477
+ coverage: z.ZodOptional<z.ZodObject<{
10478
+ mode: z.ZodEnum<{
10479
+ full: "full";
10480
+ packed: "packed";
10481
+ excerpt: "excerpt";
10482
+ raw_full: "raw_full";
10483
+ }>;
10484
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10485
+ }, z.core.$strip>>;
10486
+ focus: z.ZodOptional<z.ZodObject<{
10487
+ customer_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10488
+ company_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10489
+ }, z.core.$strip>>;
10490
+ profile_provenance: z.ZodOptional<z.ZodObject<{
10491
+ version_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10492
+ version_number: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
10493
+ repository_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10494
+ commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10495
+ }, z.core.$strip>>;
10496
+ lineage: z.ZodOptional<z.ZodObject<{
10497
+ transcript_id: z.ZodString;
10498
+ family_id: z.ZodString;
10499
+ run_kind: z.ZodDefault<z.ZodEnum<{
10500
+ reference: "reference";
10501
+ replay: "replay";
10502
+ live_export: "live_export";
10503
+ }>>;
10504
+ actor_mode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
10505
+ operator: "operator";
10506
+ hybrid: "hybrid";
10507
+ bot: "bot";
10508
+ }>>>;
10509
+ based_on_transcript_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10510
+ based_on_conversation_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10511
+ }, z.core.$strip>>;
10512
+ runtime_provenance: z.ZodOptional<z.ZodObject<{
10513
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10514
+ api_base_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10515
+ profile_repository_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10516
+ profile_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10517
+ profile_branch_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10518
+ profile_has_tracked_changes: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
10519
+ platform_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10520
+ catalog_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10521
+ rules_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10522
+ prompt_catalog_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10523
+ }, z.core.$strip>>;
10524
+ import_provenance: z.ZodOptional<z.ZodObject<{
10525
+ provider: z.ZodEnum<{
10526
+ telegram: "telegram";
10527
+ }>;
10528
+ format: z.ZodEnum<{
10529
+ html_export: "html_export";
10530
+ }>;
10531
+ dataset_id: z.ZodString;
10532
+ dataset_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10533
+ chat_folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10534
+ source_relative_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10535
+ chat_title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10536
+ imported_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10537
+ }, z.core.$strip>>;
10538
+ }, z.core.$strip>;
10539
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10540
+ channelKind: z.ZodDefault<z.ZodEnum<{
10541
+ telegram: "telegram";
10542
+ telegram_business: "telegram_business";
10543
+ local_playground: "local_playground";
10544
+ web_chat: "web_chat";
10545
+ manual: "manual";
10546
+ }>>;
10547
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10548
+ conversationThreadRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10549
+ externalUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10550
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10551
+ }, z.core.$strip>, z.ZodObject<{
10552
+ job: z.ZodObject<{
10553
+ replayJobId: z.ZodString;
10554
+ status: z.ZodEnum<{
10555
+ completed: "completed";
10556
+ failed: "failed";
10557
+ cancelled: "cancelled";
10558
+ queued: "queued";
10559
+ running: "running";
10560
+ }>;
10561
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10562
+ referenceTranscriptId: z.ZodString;
10563
+ familyId: z.ZodString;
10564
+ referenceConversationId: z.ZodString;
10565
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10566
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10567
+ channelKind: z.ZodEnum<{
10568
+ telegram: "telegram";
10569
+ telegram_business: "telegram_business";
10570
+ local_playground: "local_playground";
10571
+ web_chat: "web_chat";
10572
+ manual: "manual";
10573
+ }>;
10574
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10575
+ conversationThreadRef: z.ZodString;
10576
+ externalUserId: z.ZodString;
10577
+ displayName: z.ZodString;
10578
+ totalBursts: z.ZodNumber;
10579
+ completedBursts: z.ZodNumber;
10580
+ replayedCustomerTurnCount: z.ZodNumber;
10581
+ generatedCompanyTurnCount: z.ZodNumber;
10582
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
10583
+ code: z.ZodString;
10584
+ message: z.ZodString;
10585
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10586
+ }, z.core.$strip>>>;
10587
+ createdAt: z.ZodString;
10588
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10589
+ updatedAt: z.ZodString;
10590
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10591
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10592
+ }, z.core.$strip>;
10593
+ }, z.core.$strip>>;
10594
+ export declare const conversationsGetReplayJobOperation: OperationDefinition<"conversations.getReplayJob", z.ZodObject<{
10595
+ replayJobId: z.ZodString;
10596
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10597
+ }, z.core.$strip>, z.ZodObject<{
10598
+ found: z.ZodBoolean;
10599
+ job: z.ZodNullable<z.ZodObject<{
10600
+ replayJobId: z.ZodString;
10601
+ status: z.ZodEnum<{
10602
+ completed: "completed";
10603
+ failed: "failed";
10604
+ cancelled: "cancelled";
10605
+ queued: "queued";
10606
+ running: "running";
10607
+ }>;
10608
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10609
+ referenceTranscriptId: z.ZodString;
10610
+ familyId: z.ZodString;
10611
+ referenceConversationId: z.ZodString;
10612
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10613
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10614
+ channelKind: z.ZodEnum<{
10615
+ telegram: "telegram";
10616
+ telegram_business: "telegram_business";
10617
+ local_playground: "local_playground";
10618
+ web_chat: "web_chat";
10619
+ manual: "manual";
10620
+ }>;
10621
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10622
+ conversationThreadRef: z.ZodString;
10623
+ externalUserId: z.ZodString;
10624
+ displayName: z.ZodString;
10625
+ totalBursts: z.ZodNumber;
10626
+ completedBursts: z.ZodNumber;
10627
+ replayedCustomerTurnCount: z.ZodNumber;
10628
+ generatedCompanyTurnCount: z.ZodNumber;
10629
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
10630
+ code: z.ZodString;
10631
+ message: z.ZodString;
10632
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10633
+ }, z.core.$strip>>>;
10634
+ createdAt: z.ZodString;
10635
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10636
+ updatedAt: z.ZodString;
10637
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10638
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
10639
+ }, z.core.$strip>>;
10640
+ }, z.core.$strip>>;
10143
10641
  export declare const conversationsListTimelineOperation: OperationDefinition<"conversations.listTimeline", z.ZodObject<{
10144
10642
  conversationId: z.ZodString;
10145
10643
  }, z.core.$strip>, z.ZodObject<{
@@ -12101,9 +12599,9 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
12101
12599
  orderId: z.ZodString;
12102
12600
  title: z.ZodString;
12103
12601
  status: z.ZodEnum<{
12602
+ fulfilled: "fulfilled";
12104
12603
  draft: "draft";
12105
12604
  paid: "paid";
12106
- fulfilled: "fulfilled";
12107
12605
  cancelled: "cancelled";
12108
12606
  }>;
12109
12607
  occurredAt: z.ZodString;
@@ -12291,8 +12789,8 @@ export declare const opsGetConversationWorkspaceOperation: OperationDefinition<"
12291
12789
  cartId: z.ZodString;
12292
12790
  title: z.ZodString;
12293
12791
  status: z.ZodEnum<{
12294
- paid: "paid";
12295
12792
  fulfilled: "fulfilled";
12793
+ paid: "paid";
12296
12794
  cancelled: "cancelled";
12297
12795
  confirmed: "confirmed";
12298
12796
  }>;
@@ -16373,6 +16871,24 @@ export declare const operationDefinitions: {
16373
16871
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16374
16872
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16375
16873
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16874
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
16875
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16876
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16877
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16878
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16879
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16880
+ status: z.ZodEnum<{
16881
+ pending: "pending";
16882
+ matched: "matched";
16883
+ fulfilled: "fulfilled";
16884
+ ambiguous: "ambiguous";
16885
+ conflict: "conflict";
16886
+ }>;
16887
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16888
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16889
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16890
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16891
+ }, z.core.$strip>>>;
16376
16892
  expiresAt: z.ZodString;
16377
16893
  createdAt: z.ZodString;
16378
16894
  updatedAt: z.ZodString;
@@ -16386,8 +16902,10 @@ export declare const operationDefinitions: {
16386
16902
  operator: "operator";
16387
16903
  observer: "observer";
16388
16904
  }>;
16389
- expiresInDays: z.ZodDefault<z.ZodNumber>;
16905
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
16390
16906
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16907
+ telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16908
+ telegramUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16391
16909
  }, z.core.$strip>, z.ZodObject<{
16392
16910
  invite: z.ZodObject<{
16393
16911
  inviteId: z.ZodString;
@@ -16417,6 +16935,24 @@ export declare const operationDefinitions: {
16417
16935
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16418
16936
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16419
16937
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16938
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
16939
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16940
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16941
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16942
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16943
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16944
+ status: z.ZodEnum<{
16945
+ pending: "pending";
16946
+ matched: "matched";
16947
+ fulfilled: "fulfilled";
16948
+ ambiguous: "ambiguous";
16949
+ conflict: "conflict";
16950
+ }>;
16951
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16952
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16953
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16954
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16955
+ }, z.core.$strip>>>;
16420
16956
  expiresAt: z.ZodString;
16421
16957
  createdAt: z.ZodString;
16422
16958
  updatedAt: z.ZodString;
@@ -16454,6 +16990,24 @@ export declare const operationDefinitions: {
16454
16990
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16455
16991
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16456
16992
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16993
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
16994
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16995
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16996
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16997
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16998
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16999
+ status: z.ZodEnum<{
17000
+ pending: "pending";
17001
+ matched: "matched";
17002
+ fulfilled: "fulfilled";
17003
+ ambiguous: "ambiguous";
17004
+ conflict: "conflict";
17005
+ }>;
17006
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17007
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17008
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17009
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17010
+ }, z.core.$strip>>>;
16457
17011
  expiresAt: z.ZodString;
16458
17012
  createdAt: z.ZodString;
16459
17013
  updatedAt: z.ZodString;
@@ -16498,6 +17052,24 @@ export declare const operationDefinitions: {
16498
17052
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16499
17053
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16500
17054
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17055
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
17056
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17057
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17058
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17059
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17060
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17061
+ status: z.ZodEnum<{
17062
+ pending: "pending";
17063
+ matched: "matched";
17064
+ fulfilled: "fulfilled";
17065
+ ambiguous: "ambiguous";
17066
+ conflict: "conflict";
17067
+ }>;
17068
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17069
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17070
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17071
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17072
+ }, z.core.$strip>>>;
16501
17073
  expiresAt: z.ZodString;
16502
17074
  createdAt: z.ZodString;
16503
17075
  updatedAt: z.ZodString;
@@ -16505,7 +17077,7 @@ export declare const operationDefinitions: {
16505
17077
  }, z.core.$strip>>;
16506
17078
  readonly "auth.issueSystemAdminInvite": OperationDefinition<"auth.issueSystemAdminInvite", z.ZodObject<{
16507
17079
  email: z.ZodString;
16508
- expiresInDays: z.ZodDefault<z.ZodNumber>;
17080
+ expiresInDays: z.ZodOptional<z.ZodNumber>;
16509
17081
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16510
17082
  }, z.core.$strip>, z.ZodObject<{
16511
17083
  invite: z.ZodObject<{
@@ -16536,6 +17108,24 @@ export declare const operationDefinitions: {
16536
17108
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16537
17109
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16538
17110
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17111
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
17112
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17113
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17114
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17115
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17116
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17117
+ status: z.ZodEnum<{
17118
+ pending: "pending";
17119
+ matched: "matched";
17120
+ fulfilled: "fulfilled";
17121
+ ambiguous: "ambiguous";
17122
+ conflict: "conflict";
17123
+ }>;
17124
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17125
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17126
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17127
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17128
+ }, z.core.$strip>>>;
16539
17129
  expiresAt: z.ZodString;
16540
17130
  createdAt: z.ZodString;
16541
17131
  updatedAt: z.ZodString;
@@ -16573,6 +17163,24 @@ export declare const operationDefinitions: {
16573
17163
  acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16574
17164
  revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
16575
17165
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17166
+ telegramBinding: z.ZodDefault<z.ZodNullable<z.ZodObject<{
17167
+ telegramUsername: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17168
+ requestedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17169
+ matchedIntegrationKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17170
+ matchedTelegramUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17171
+ matchedTelegramChatId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17172
+ status: z.ZodEnum<{
17173
+ pending: "pending";
17174
+ matched: "matched";
17175
+ fulfilled: "fulfilled";
17176
+ ambiguous: "ambiguous";
17177
+ conflict: "conflict";
17178
+ }>;
17179
+ bindingId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17180
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17181
+ lastMatchedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17182
+ fulfilledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
17183
+ }, z.core.$strip>>>;
16576
17184
  expiresAt: z.ZodString;
16577
17185
  createdAt: z.ZodString;
16578
17186
  updatedAt: z.ZodString;
@@ -16710,7 +17318,6 @@ export declare const operationDefinitions: {
16710
17318
  }, z.core.$strip>>;
16711
17319
  paths: z.ZodObject<{
16712
17320
  business: z.ZodString;
16713
- team: z.ZodString;
16714
17321
  catalog_products: z.ZodString;
16715
17322
  catalog_relations: z.ZodString;
16716
17323
  telegram_bots: z.ZodString;
@@ -16719,11 +17326,9 @@ export declare const operationDefinitions: {
16719
17326
  strategies_root: z.ZodString;
16720
17327
  policies_root: z.ZodString;
16721
17328
  prompt_overrides: z.ZodString;
16722
- expectation_blocks_root: z.ZodString;
16723
- expectation_profiles_root: z.ZodString;
16724
- judge_rules_root: z.ZodOptional<z.ZodString>;
16725
- judge_scorecards_root: z.ZodOptional<z.ZodString>;
16726
- judge_transcripts_root: z.ZodOptional<z.ZodString>;
17329
+ judge_rules_root: z.ZodString;
17330
+ judge_scorecards_root: z.ZodString;
17331
+ judge_transcripts_root: z.ZodString;
16727
17332
  seeds_root: z.ZodString;
16728
17333
  }, z.core.$strip>;
16729
17334
  secret_refs: z.ZodDefault<z.ZodObject<{
@@ -17020,7 +17625,6 @@ export declare const operationDefinitions: {
17020
17625
  }, z.core.$strip>>;
17021
17626
  paths: z.ZodObject<{
17022
17627
  business: z.ZodString;
17023
- team: z.ZodString;
17024
17628
  catalog_products: z.ZodString;
17025
17629
  catalog_relations: z.ZodString;
17026
17630
  telegram_bots: z.ZodString;
@@ -17029,11 +17633,9 @@ export declare const operationDefinitions: {
17029
17633
  strategies_root: z.ZodString;
17030
17634
  policies_root: z.ZodString;
17031
17635
  prompt_overrides: z.ZodString;
17032
- expectation_blocks_root: z.ZodString;
17033
- expectation_profiles_root: z.ZodString;
17034
- judge_rules_root: z.ZodOptional<z.ZodString>;
17035
- judge_scorecards_root: z.ZodOptional<z.ZodString>;
17036
- judge_transcripts_root: z.ZodOptional<z.ZodString>;
17636
+ judge_rules_root: z.ZodString;
17637
+ judge_scorecards_root: z.ZodString;
17638
+ judge_transcripts_root: z.ZodString;
17037
17639
  seeds_root: z.ZodString;
17038
17640
  }, z.core.$strip>;
17039
17641
  secret_refs: z.ZodDefault<z.ZodObject<{
@@ -18099,9 +18701,9 @@ export declare const operationDefinitions: {
18099
18701
  orderId: z.ZodString;
18100
18702
  title: z.ZodString;
18101
18703
  status: z.ZodEnum<{
18704
+ fulfilled: "fulfilled";
18102
18705
  draft: "draft";
18103
18706
  paid: "paid";
18104
- fulfilled: "fulfilled";
18105
18707
  cancelled: "cancelled";
18106
18708
  }>;
18107
18709
  occurredAt: z.ZodString;
@@ -18272,9 +18874,9 @@ export declare const operationDefinitions: {
18272
18874
  orderId: z.ZodString;
18273
18875
  title: z.ZodString;
18274
18876
  status: z.ZodEnum<{
18877
+ fulfilled: "fulfilled";
18275
18878
  draft: "draft";
18276
18879
  paid: "paid";
18277
- fulfilled: "fulfilled";
18278
18880
  cancelled: "cancelled";
18279
18881
  }>;
18280
18882
  occurredAt: z.ZodString;
@@ -18402,9 +19004,9 @@ export declare const operationDefinitions: {
18402
19004
  orderId: z.ZodString;
18403
19005
  title: z.ZodString;
18404
19006
  status: z.ZodEnum<{
19007
+ fulfilled: "fulfilled";
18405
19008
  draft: "draft";
18406
19009
  paid: "paid";
18407
- fulfilled: "fulfilled";
18408
19010
  cancelled: "cancelled";
18409
19011
  }>;
18410
19012
  occurredAt: z.ZodString;
@@ -18512,9 +19114,9 @@ export declare const operationDefinitions: {
18512
19114
  orderId: z.ZodString;
18513
19115
  title: z.ZodString;
18514
19116
  status: z.ZodEnum<{
19117
+ fulfilled: "fulfilled";
18515
19118
  draft: "draft";
18516
19119
  paid: "paid";
18517
- fulfilled: "fulfilled";
18518
19120
  cancelled: "cancelled";
18519
19121
  }>;
18520
19122
  occurredAt: z.ZodString;
@@ -18665,9 +19267,9 @@ export declare const operationDefinitions: {
18665
19267
  orderId: z.ZodString;
18666
19268
  title: z.ZodString;
18667
19269
  status: z.ZodEnum<{
19270
+ fulfilled: "fulfilled";
18668
19271
  draft: "draft";
18669
19272
  paid: "paid";
18670
- fulfilled: "fulfilled";
18671
19273
  cancelled: "cancelled";
18672
19274
  }>;
18673
19275
  occurredAt: z.ZodString;
@@ -19157,8 +19759,8 @@ export declare const operationDefinitions: {
19157
19759
  cartId: z.ZodString;
19158
19760
  title: z.ZodString;
19159
19761
  status: z.ZodEnum<{
19160
- paid: "paid";
19161
19762
  fulfilled: "fulfilled";
19763
+ paid: "paid";
19162
19764
  cancelled: "cancelled";
19163
19765
  confirmed: "confirmed";
19164
19766
  }>;
@@ -19446,8 +20048,8 @@ export declare const operationDefinitions: {
19446
20048
  cartId: z.ZodString;
19447
20049
  title: z.ZodString;
19448
20050
  status: z.ZodEnum<{
19449
- paid: "paid";
19450
20051
  fulfilled: "fulfilled";
20052
+ paid: "paid";
19451
20053
  cancelled: "cancelled";
19452
20054
  confirmed: "confirmed";
19453
20055
  }>;
@@ -20236,6 +20838,259 @@ export declare const operationDefinitions: {
20236
20838
  reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20237
20839
  }, z.core.$strip>>;
20238
20840
  }, z.core.$strip>>;
20841
+ readonly "conversations.replayTranscript": OperationDefinition<"conversations.replayTranscript", z.ZodObject<{
20842
+ transcript: z.ZodObject<{
20843
+ schema_version: z.ZodLiteral<1>;
20844
+ kind: z.ZodLiteral<"sa_conversation">;
20845
+ business_slug: z.ZodString;
20846
+ profile_version: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20847
+ conversation: z.ZodObject<{
20848
+ conversationId: z.ZodString;
20849
+ channel: z.ZodString;
20850
+ threadRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20851
+ source: z.ZodObject<{
20852
+ type: z.ZodEnum<{
20853
+ exported_live_conversation: "exported_live_conversation";
20854
+ scenario_fixture: "scenario_fixture";
20855
+ manual_file: "manual_file";
20856
+ telegram_export_html: "telegram_export_html";
20857
+ }>;
20858
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20859
+ exportedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20860
+ }, z.core.$strip>;
20861
+ }, z.core.$strip>;
20862
+ participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
20863
+ id: z.ZodString;
20864
+ role: z.ZodEnum<{
20865
+ system: "system";
20866
+ customer: "customer";
20867
+ company: "company";
20868
+ }>;
20869
+ actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
20870
+ operator: "operator";
20871
+ hybrid: "hybrid";
20872
+ bot: "bot";
20873
+ }>>>;
20874
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20875
+ }, z.core.$strip>>>;
20876
+ turns: z.ZodDefault<z.ZodArray<z.ZodObject<{
20877
+ turnId: z.ZodString;
20878
+ actorId: z.ZodString;
20879
+ actorRole: z.ZodEnum<{
20880
+ system: "system";
20881
+ customer: "customer";
20882
+ company: "company";
20883
+ }>;
20884
+ actorMode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
20885
+ operator: "operator";
20886
+ hybrid: "hybrid";
20887
+ bot: "bot";
20888
+ }>>>;
20889
+ external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20890
+ reply_to_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20891
+ reply_to_external_message_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20892
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20893
+ text: z.ZodString;
20894
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
20895
+ kind: z.ZodEnum<{
20896
+ document: "document";
20897
+ photo: "photo";
20898
+ audio: "audio";
20899
+ video: "video";
20900
+ other: "other";
20901
+ sticker: "sticker";
20902
+ }>;
20903
+ title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20904
+ description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20905
+ status: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20906
+ source_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20907
+ storage_ref: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20908
+ mime_type: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20909
+ size_bytes: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20910
+ included: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
20911
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
20912
+ }, z.core.$strip>>>;
20913
+ }, z.core.$strip>>>;
20914
+ context: z.ZodObject<{
20915
+ domainNote: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20916
+ stateSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20917
+ packedContextSummary: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20918
+ historicalSummaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
20919
+ summaryRef: z.ZodString;
20920
+ summaryText: z.ZodString;
20921
+ knownFacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
20922
+ productsMentioned: z.ZodDefault<z.ZodArray<z.ZodString>>;
20923
+ customerGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
20924
+ }, z.core.$strip>>>;
20925
+ traceRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
20926
+ ref: z.ZodString;
20927
+ label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20928
+ }, z.core.$strip>>>;
20929
+ }, z.core.$strip>;
20930
+ coverage: z.ZodOptional<z.ZodObject<{
20931
+ mode: z.ZodEnum<{
20932
+ full: "full";
20933
+ packed: "packed";
20934
+ excerpt: "excerpt";
20935
+ raw_full: "raw_full";
20936
+ }>;
20937
+ note: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20938
+ }, z.core.$strip>>;
20939
+ focus: z.ZodOptional<z.ZodObject<{
20940
+ customer_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20941
+ company_turn_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20942
+ }, z.core.$strip>>;
20943
+ profile_provenance: z.ZodOptional<z.ZodObject<{
20944
+ version_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20945
+ version_number: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
20946
+ repository_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20947
+ commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20948
+ }, z.core.$strip>>;
20949
+ lineage: z.ZodOptional<z.ZodObject<{
20950
+ transcript_id: z.ZodString;
20951
+ family_id: z.ZodString;
20952
+ run_kind: z.ZodDefault<z.ZodEnum<{
20953
+ reference: "reference";
20954
+ replay: "replay";
20955
+ live_export: "live_export";
20956
+ }>>;
20957
+ actor_mode: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
20958
+ operator: "operator";
20959
+ hybrid: "hybrid";
20960
+ bot: "bot";
20961
+ }>>>;
20962
+ based_on_transcript_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20963
+ based_on_conversation_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20964
+ }, z.core.$strip>>;
20965
+ runtime_provenance: z.ZodOptional<z.ZodObject<{
20966
+ environment: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20967
+ api_base_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20968
+ profile_repository_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20969
+ profile_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20970
+ profile_branch_name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20971
+ profile_has_tracked_changes: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
20972
+ platform_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20973
+ catalog_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20974
+ rules_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20975
+ prompt_catalog_commit_sha: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20976
+ }, z.core.$strip>>;
20977
+ import_provenance: z.ZodOptional<z.ZodObject<{
20978
+ provider: z.ZodEnum<{
20979
+ telegram: "telegram";
20980
+ }>;
20981
+ format: z.ZodEnum<{
20982
+ html_export: "html_export";
20983
+ }>;
20984
+ dataset_id: z.ZodString;
20985
+ dataset_label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20986
+ chat_folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20987
+ source_relative_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20988
+ chat_title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20989
+ imported_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20990
+ }, z.core.$strip>>;
20991
+ }, z.core.$strip>;
20992
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20993
+ channelKind: z.ZodDefault<z.ZodEnum<{
20994
+ telegram: "telegram";
20995
+ telegram_business: "telegram_business";
20996
+ local_playground: "local_playground";
20997
+ web_chat: "web_chat";
20998
+ manual: "manual";
20999
+ }>>;
21000
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21001
+ conversationThreadRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21002
+ externalUserId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21003
+ displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21004
+ }, z.core.$strip>, z.ZodObject<{
21005
+ job: z.ZodObject<{
21006
+ replayJobId: z.ZodString;
21007
+ status: z.ZodEnum<{
21008
+ completed: "completed";
21009
+ failed: "failed";
21010
+ cancelled: "cancelled";
21011
+ queued: "queued";
21012
+ running: "running";
21013
+ }>;
21014
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21015
+ referenceTranscriptId: z.ZodString;
21016
+ familyId: z.ZodString;
21017
+ referenceConversationId: z.ZodString;
21018
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21019
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21020
+ channelKind: z.ZodEnum<{
21021
+ telegram: "telegram";
21022
+ telegram_business: "telegram_business";
21023
+ local_playground: "local_playground";
21024
+ web_chat: "web_chat";
21025
+ manual: "manual";
21026
+ }>;
21027
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21028
+ conversationThreadRef: z.ZodString;
21029
+ externalUserId: z.ZodString;
21030
+ displayName: z.ZodString;
21031
+ totalBursts: z.ZodNumber;
21032
+ completedBursts: z.ZodNumber;
21033
+ replayedCustomerTurnCount: z.ZodNumber;
21034
+ generatedCompanyTurnCount: z.ZodNumber;
21035
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
21036
+ code: z.ZodString;
21037
+ message: z.ZodString;
21038
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
21039
+ }, z.core.$strip>>>;
21040
+ createdAt: z.ZodString;
21041
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21042
+ updatedAt: z.ZodString;
21043
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21044
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21045
+ }, z.core.$strip>;
21046
+ }, z.core.$strip>>;
21047
+ readonly "conversations.getReplayJob": OperationDefinition<"conversations.getReplayJob", z.ZodObject<{
21048
+ replayJobId: z.ZodString;
21049
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21050
+ }, z.core.$strip>, z.ZodObject<{
21051
+ found: z.ZodBoolean;
21052
+ job: z.ZodNullable<z.ZodObject<{
21053
+ replayJobId: z.ZodString;
21054
+ status: z.ZodEnum<{
21055
+ completed: "completed";
21056
+ failed: "failed";
21057
+ cancelled: "cancelled";
21058
+ queued: "queued";
21059
+ running: "running";
21060
+ }>;
21061
+ businessProfileSlug: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21062
+ referenceTranscriptId: z.ZodString;
21063
+ familyId: z.ZodString;
21064
+ referenceConversationId: z.ZodString;
21065
+ workflowRunId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21066
+ conversationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21067
+ channelKind: z.ZodEnum<{
21068
+ telegram: "telegram";
21069
+ telegram_business: "telegram_business";
21070
+ local_playground: "local_playground";
21071
+ web_chat: "web_chat";
21072
+ manual: "manual";
21073
+ }>;
21074
+ channelAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21075
+ conversationThreadRef: z.ZodString;
21076
+ externalUserId: z.ZodString;
21077
+ displayName: z.ZodString;
21078
+ totalBursts: z.ZodNumber;
21079
+ completedBursts: z.ZodNumber;
21080
+ replayedCustomerTurnCount: z.ZodNumber;
21081
+ generatedCompanyTurnCount: z.ZodNumber;
21082
+ lastError: z.ZodDefault<z.ZodNullable<z.ZodObject<{
21083
+ code: z.ZodString;
21084
+ message: z.ZodString;
21085
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
21086
+ }, z.core.$strip>>>;
21087
+ createdAt: z.ZodString;
21088
+ startedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21089
+ updatedAt: z.ZodString;
21090
+ completedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21091
+ cancelledAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
21092
+ }, z.core.$strip>>;
21093
+ }, z.core.$strip>>;
20239
21094
  readonly "conversations.getContext": OperationDefinition<"conversations.getContext", z.ZodObject<{
20240
21095
  conversationId: z.ZodOptional<z.ZodString>;
20241
21096
  channelKind: z.ZodOptional<z.ZodEnum<{
@@ -22696,9 +23551,9 @@ export declare const operationDefinitions: {
22696
23551
  orderId: z.ZodString;
22697
23552
  title: z.ZodString;
22698
23553
  status: z.ZodEnum<{
23554
+ fulfilled: "fulfilled";
22699
23555
  draft: "draft";
22700
23556
  paid: "paid";
22701
- fulfilled: "fulfilled";
22702
23557
  cancelled: "cancelled";
22703
23558
  }>;
22704
23559
  occurredAt: z.ZodString;
@@ -22886,8 +23741,8 @@ export declare const operationDefinitions: {
22886
23741
  cartId: z.ZodString;
22887
23742
  title: z.ZodString;
22888
23743
  status: z.ZodEnum<{
22889
- paid: "paid";
22890
23744
  fulfilled: "fulfilled";
23745
+ paid: "paid";
22891
23746
  cancelled: "cancelled";
22892
23747
  confirmed: "confirmed";
22893
23748
  }>;
@@ -26070,6 +26925,8 @@ export type OperationInputMap = {
26070
26925
  'commerce.getContext': z.infer<typeof commerceGetContextRequestSchema>;
26071
26926
  'conversations.processInboundEvent': z.infer<typeof conversationsProcessInboundEventRequestSchema>;
26072
26927
  'conversations.getContext': z.infer<typeof conversationsGetContextRequestSchema>;
26928
+ 'conversations.replayTranscript': z.infer<typeof conversationsReplayTranscriptRequestSchema>;
26929
+ 'conversations.getReplayJob': z.infer<typeof conversationsGetReplayJobRequestSchema>;
26073
26930
  'conversations.listTimeline': z.infer<typeof conversationsListTimelineRequestSchema>;
26074
26931
  'runtime.listDecisionTraces': z.infer<typeof runtimeListDecisionTracesRequestSchema>;
26075
26932
  'runtime.getPackedContext': z.infer<typeof runtimeGetPackedContextRequestSchema>;
@@ -26178,6 +27035,8 @@ export type OperationOutputMap = {
26178
27035
  'commerce.getContext': z.infer<typeof commerceGetContextResponseSchema>;
26179
27036
  'conversations.processInboundEvent': z.infer<typeof conversationsProcessInboundEventResponseSchema>;
26180
27037
  'conversations.getContext': z.infer<typeof conversationsGetContextResponseSchema>;
27038
+ 'conversations.replayTranscript': z.infer<typeof conversationsReplayTranscriptResponseSchema>;
27039
+ 'conversations.getReplayJob': z.infer<typeof conversationsGetReplayJobResponseSchema>;
26181
27040
  'conversations.listTimeline': z.infer<typeof conversationsListTimelineResponseSchema>;
26182
27041
  'runtime.listDecisionTraces': z.infer<typeof runtimeListDecisionTracesResponseSchema>;
26183
27042
  'runtime.getPackedContext': z.infer<typeof runtimeGetPackedContextResponseSchema>;