@yefengr/pi-reach 0.0.3 → 0.0.5

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.
Files changed (53) hide show
  1. package/README.md +2 -2
  2. package/dist/attachments/reservation.fixture.d.ts +1 -0
  3. package/dist/attachments/reservation.fixture.js +25 -0
  4. package/dist/attachments/reservation.fixture.js.map +1 -0
  5. package/dist/attachments/reservations.d.ts +21 -0
  6. package/dist/attachments/reservations.js +189 -0
  7. package/dist/attachments/reservations.js.map +1 -0
  8. package/dist/attachments/safe-files.d.ts +7 -0
  9. package/dist/attachments/safe-files.js +66 -0
  10. package/dist/attachments/safe-files.js.map +1 -0
  11. package/dist/attachments/store.d.ts +55 -0
  12. package/dist/attachments/store.js +518 -0
  13. package/dist/attachments/store.js.map +1 -0
  14. package/dist/attachments/types.d.ts +48 -0
  15. package/dist/attachments/types.js +20 -0
  16. package/dist/attachments/types.js.map +1 -0
  17. package/dist/index.js +42 -35
  18. package/dist/index.js.map +1 -1
  19. package/dist/runtime/attachment_binding.d.ts +17 -0
  20. package/dist/runtime/attachment_binding.js +70 -0
  21. package/dist/runtime/attachment_binding.js.map +1 -0
  22. package/dist/runtime/create_owner_binding.d.ts +27 -0
  23. package/dist/runtime/create_owner_binding.js +22 -0
  24. package/dist/runtime/create_owner_binding.js.map +1 -0
  25. package/dist/timeline/attachment_content.d.ts +21 -0
  26. package/dist/timeline/attachment_content.js +83 -0
  27. package/dist/timeline/attachment_content.js.map +1 -0
  28. package/dist/timeline/attachment_delivery.d.ts +65 -0
  29. package/dist/timeline/attachment_delivery.js +150 -0
  30. package/dist/timeline/attachment_delivery.js.map +1 -0
  31. package/dist/timeline/runtime.d.ts +4 -2
  32. package/dist/timeline/runtime.js +33 -34
  33. package/dist/timeline/runtime.js.map +1 -1
  34. package/dist/timeline/user_delivery.d.ts +7 -0
  35. package/dist/timeline/user_delivery.js +21 -12
  36. package/dist/timeline/user_delivery.js.map +1 -1
  37. package/dist/timeline/user_delivery_binding.d.ts +6 -1
  38. package/dist/timeline/user_delivery_binding.js +17 -1
  39. package/dist/timeline/user_delivery_binding.js.map +1 -1
  40. package/dist/timeline/v2_service.d.ts +9 -1
  41. package/dist/timeline/v2_service.js +26 -8
  42. package/dist/timeline/v2_service.js.map +1 -1
  43. package/dist/vendor/protocol/outer/codec.js +3 -0
  44. package/dist/vendor/protocol/outer/types.d.ts +5 -1
  45. package/dist/vendor/protocol/session/attachments.d.ts +78 -0
  46. package/dist/vendor/protocol/session/attachments.js +150 -0
  47. package/dist/vendor/protocol/session/frames.d.ts +541 -0
  48. package/dist/vendor/protocol/session/frames.js +39 -4
  49. package/dist/vendor/protocol/session/index.d.ts +1 -0
  50. package/dist/vendor/protocol/session/index.js +1 -0
  51. package/dist/vendor/protocol/session/schema.d.ts +2 -2
  52. package/dist/vendor/protocol/session/schema.js +4 -1
  53. package/package.json +1 -1
@@ -13,6 +13,14 @@ export declare const sessionHelloFrameSchema: z.ZodObject<{
13
13
  channel_id: z.ZodString;
14
14
  protocol_version: z.ZodLiteral<2>;
15
15
  }, z.core.$strict>;
16
+ export declare const extensionInfoRequestFrameSchema: z.ZodObject<{
17
+ channel_id: z.ZodString;
18
+ session_id: z.ZodString;
19
+ leaf_id: z.ZodNullable<z.ZodString>;
20
+ protocol_version: z.ZodLiteral<2>;
21
+ type: z.ZodLiteral<"extension_info_request">;
22
+ id: z.ZodString;
23
+ }, z.core.$strict>;
16
24
  export declare const userMessageFrameSchema: z.ZodObject<{
17
25
  client_request_id: z.ZodString;
18
26
  text: z.ZodString;
@@ -20,6 +28,7 @@ export declare const userMessageFrameSchema: z.ZodObject<{
20
28
  data: z.ZodString;
21
29
  mime: z.ZodString;
22
30
  }, z.core.$strict>>>;
31
+ attachment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
32
  streaming_behavior: z.ZodOptional<z.ZodLiteral<"steer">>;
24
33
  channel_id: z.ZodString;
25
34
  session_id: z.ZodString;
@@ -159,6 +168,81 @@ export declare const approveToolFrameSchema: z.ZodObject<{
159
168
  type: z.ZodLiteral<"approve_tool">;
160
169
  id: z.ZodString;
161
170
  }, z.core.$strict>;
171
+ export declare const attachmentCapabilitiesRequestFrameSchema: z.ZodObject<{
172
+ channel_id: z.ZodString;
173
+ session_id: z.ZodString;
174
+ leaf_id: z.ZodNullable<z.ZodString>;
175
+ protocol_version: z.ZodLiteral<2>;
176
+ type: z.ZodLiteral<"attachment_capabilities_request">;
177
+ id: z.ZodString;
178
+ }, z.core.$strict>;
179
+ export declare const attachmentBeginFrameSchema: z.ZodObject<{
180
+ upload_id: z.ZodString;
181
+ file_name: z.ZodString;
182
+ mime_type: z.ZodString;
183
+ byte_length: z.ZodNumber;
184
+ sha256: z.ZodString;
185
+ preview: z.ZodOptional<z.ZodObject<{
186
+ mime_type: z.ZodLiteral<"image/jpeg">;
187
+ data: z.ZodString;
188
+ byte_length: z.ZodNumber;
189
+ width: z.ZodNumber;
190
+ height: z.ZodNumber;
191
+ }, z.core.$strict>>;
192
+ channel_id: z.ZodString;
193
+ session_id: z.ZodString;
194
+ upload_scope: z.ZodString;
195
+ protocol_version: z.ZodLiteral<2>;
196
+ type: z.ZodLiteral<"attachment_begin">;
197
+ id: z.ZodString;
198
+ }, z.core.$strict>;
199
+ export declare const attachmentChunkFrameSchema: z.ZodObject<{
200
+ upload_id: z.ZodString;
201
+ offset: z.ZodNumber;
202
+ data_base64: z.ZodString;
203
+ channel_id: z.ZodString;
204
+ session_id: z.ZodString;
205
+ upload_scope: z.ZodString;
206
+ protocol_version: z.ZodLiteral<2>;
207
+ type: z.ZodLiteral<"attachment_chunk">;
208
+ id: z.ZodString;
209
+ }, z.core.$strict>;
210
+ export declare const attachmentFinishFrameSchema: z.ZodObject<{
211
+ upload_id: z.ZodString;
212
+ channel_id: z.ZodString;
213
+ session_id: z.ZodString;
214
+ upload_scope: z.ZodString;
215
+ protocol_version: z.ZodLiteral<2>;
216
+ type: z.ZodLiteral<"attachment_finish">;
217
+ id: z.ZodString;
218
+ }, z.core.$strict>;
219
+ export declare const attachmentStatusRequestFrameSchema: z.ZodObject<{
220
+ upload_id: z.ZodString;
221
+ channel_id: z.ZodString;
222
+ session_id: z.ZodString;
223
+ upload_scope: z.ZodString;
224
+ protocol_version: z.ZodLiteral<2>;
225
+ type: z.ZodLiteral<"attachment_status_request">;
226
+ id: z.ZodString;
227
+ }, z.core.$strict>;
228
+ export declare const attachmentCancelFrameSchema: z.ZodObject<{
229
+ upload_id: z.ZodString;
230
+ channel_id: z.ZodString;
231
+ session_id: z.ZodString;
232
+ upload_scope: z.ZodString;
233
+ protocol_version: z.ZodLiteral<2>;
234
+ type: z.ZodLiteral<"attachment_cancel">;
235
+ id: z.ZodString;
236
+ }, z.core.$strict>;
237
+ export declare const attachmentDiscardFrameSchema: z.ZodObject<{
238
+ attachment_id: z.ZodString;
239
+ channel_id: z.ZodString;
240
+ session_id: z.ZodString;
241
+ upload_scope: z.ZodString;
242
+ protocol_version: z.ZodLiteral<2>;
243
+ type: z.ZodLiteral<"attachment_discard">;
244
+ id: z.ZodString;
245
+ }, z.core.$strict>;
162
246
  export declare const pairOkFrameSchema: z.ZodObject<{
163
247
  type: z.ZodLiteral<"pair_ok">;
164
248
  in_reply_to: z.ZodString;
@@ -194,6 +278,13 @@ export declare const sessionReadyFrameSchema: z.ZodObject<{
194
278
  target_channel_id: z.ZodString;
195
279
  protocol_version: z.ZodLiteral<2>;
196
280
  }, z.core.$strict>;
281
+ export declare const extensionInfoFrameSchema: z.ZodObject<{
282
+ type: z.ZodLiteral<"extension_info">;
283
+ in_reply_to: z.ZodString;
284
+ version: z.ZodString;
285
+ target_channel_id: z.ZodString;
286
+ protocol_version: z.ZodLiteral<2>;
287
+ }, z.core.$strict>;
197
288
  export declare const userMessageStartedFrameSchema: z.ZodObject<{
198
289
  type: z.ZodLiteral<"user_message_started">;
199
290
  in_reply_to: z.ZodString;
@@ -1500,6 +1591,112 @@ export declare const byeFrameSchema: z.ZodObject<{
1500
1591
  leaf_id: z.ZodNullable<z.ZodString>;
1501
1592
  protocol_version: z.ZodLiteral<2>;
1502
1593
  }, z.core.$strict>;
1594
+ export declare const attachmentCapabilitiesFrameSchema: z.ZodObject<{
1595
+ type: z.ZodLiteral<"attachment_capabilities">;
1596
+ max_file_bytes: z.ZodLiteral<number>;
1597
+ max_message_bytes: z.ZodLiteral<number>;
1598
+ max_attachments: z.ZodLiteral<10>;
1599
+ chunk_bytes: z.ZodLiteral<number>;
1600
+ max_in_flight: z.ZodLiteral<2>;
1601
+ in_reply_to: z.ZodString;
1602
+ session_id: z.ZodString;
1603
+ upload_scope: z.ZodString;
1604
+ target_channel_id: z.ZodString;
1605
+ protocol_version: z.ZodLiteral<2>;
1606
+ }, z.core.$strict>;
1607
+ export declare const attachmentStateFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
1608
+ status: z.ZodLiteral<"receiving">;
1609
+ type: z.ZodLiteral<"attachment_state">;
1610
+ upload_id: z.ZodString;
1611
+ received_bytes: z.ZodNumber;
1612
+ in_reply_to: z.ZodString;
1613
+ session_id: z.ZodString;
1614
+ upload_scope: z.ZodString;
1615
+ target_channel_id: z.ZodString;
1616
+ protocol_version: z.ZodLiteral<2>;
1617
+ }, z.core.$strict>, z.ZodObject<{
1618
+ status: z.ZodLiteral<"cancelled">;
1619
+ type: z.ZodLiteral<"attachment_state">;
1620
+ upload_id: z.ZodString;
1621
+ received_bytes: z.ZodNumber;
1622
+ in_reply_to: z.ZodString;
1623
+ session_id: z.ZodString;
1624
+ upload_scope: z.ZodString;
1625
+ target_channel_id: z.ZodString;
1626
+ protocol_version: z.ZodLiteral<2>;
1627
+ }, z.core.$strict>, z.ZodObject<{
1628
+ status: z.ZodLiteral<"complete">;
1629
+ attachment: z.ZodObject<{
1630
+ attachment_id: z.ZodString;
1631
+ file_name: z.ZodString;
1632
+ mime_type: z.ZodString;
1633
+ byte_length: z.ZodNumber;
1634
+ sha256: z.ZodString;
1635
+ preview: z.ZodOptional<z.ZodObject<{
1636
+ mime_type: z.ZodLiteral<"image/jpeg">;
1637
+ data: z.ZodString;
1638
+ byte_length: z.ZodNumber;
1639
+ width: z.ZodNumber;
1640
+ height: z.ZodNumber;
1641
+ }, z.core.$strict>>;
1642
+ }, z.core.$strict>;
1643
+ type: z.ZodLiteral<"attachment_state">;
1644
+ upload_id: z.ZodString;
1645
+ received_bytes: z.ZodNumber;
1646
+ in_reply_to: z.ZodString;
1647
+ session_id: z.ZodString;
1648
+ upload_scope: z.ZodString;
1649
+ target_channel_id: z.ZodString;
1650
+ protocol_version: z.ZodLiteral<2>;
1651
+ }, z.core.$strict>]>;
1652
+ export declare const attachmentErrorCodeSchema: z.ZodEnum<{
1653
+ cancelled: "cancelled";
1654
+ too_large: "too_large";
1655
+ invalid_scope: "invalid_scope";
1656
+ not_found: "not_found";
1657
+ invalid_upload: "invalid_upload";
1658
+ busy: "busy";
1659
+ no_space: "no_space";
1660
+ io_error: "io_error";
1661
+ integrity_mismatch: "integrity_mismatch";
1662
+ offset_mismatch: "offset_mismatch";
1663
+ }>;
1664
+ export declare const attachmentDiscardedFrameSchema: z.ZodObject<{
1665
+ type: z.ZodLiteral<"attachment_discarded">;
1666
+ attachment_id: z.ZodString;
1667
+ status: z.ZodEnum<{
1668
+ cancelled: "cancelled";
1669
+ retained: "retained";
1670
+ }>;
1671
+ in_reply_to: z.ZodString;
1672
+ session_id: z.ZodString;
1673
+ upload_scope: z.ZodString;
1674
+ target_channel_id: z.ZodString;
1675
+ protocol_version: z.ZodLiteral<2>;
1676
+ }, z.core.$strict>;
1677
+ export declare const attachmentErrorFrameSchema: z.ZodObject<{
1678
+ type: z.ZodLiteral<"attachment_error">;
1679
+ upload_id: z.ZodOptional<z.ZodString>;
1680
+ attachment_id: z.ZodOptional<z.ZodString>;
1681
+ code: z.ZodEnum<{
1682
+ cancelled: "cancelled";
1683
+ too_large: "too_large";
1684
+ invalid_scope: "invalid_scope";
1685
+ not_found: "not_found";
1686
+ invalid_upload: "invalid_upload";
1687
+ busy: "busy";
1688
+ no_space: "no_space";
1689
+ io_error: "io_error";
1690
+ integrity_mismatch: "integrity_mismatch";
1691
+ offset_mismatch: "offset_mismatch";
1692
+ }>;
1693
+ retryable: z.ZodBoolean;
1694
+ in_reply_to: z.ZodString;
1695
+ session_id: z.ZodString;
1696
+ upload_scope: z.ZodString;
1697
+ target_channel_id: z.ZodString;
1698
+ protocol_version: z.ZodLiteral<2>;
1699
+ }, z.core.$strict>;
1503
1700
  export declare const clientFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
1504
1701
  type: z.ZodLiteral<"pair_request">;
1505
1702
  id: z.ZodString;
@@ -1511,6 +1708,13 @@ export declare const clientFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
1511
1708
  id: z.ZodString;
1512
1709
  channel_id: z.ZodString;
1513
1710
  protocol_version: z.ZodLiteral<2>;
1711
+ }, z.core.$strict>, z.ZodObject<{
1712
+ channel_id: z.ZodString;
1713
+ session_id: z.ZodString;
1714
+ leaf_id: z.ZodNullable<z.ZodString>;
1715
+ protocol_version: z.ZodLiteral<2>;
1716
+ type: z.ZodLiteral<"extension_info_request">;
1717
+ id: z.ZodString;
1514
1718
  }, z.core.$strict>, z.ZodObject<{
1515
1719
  client_request_id: z.ZodString;
1516
1720
  text: z.ZodString;
@@ -1518,6 +1722,7 @@ export declare const clientFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
1518
1722
  data: z.ZodString;
1519
1723
  mime: z.ZodString;
1520
1724
  }, z.core.$strict>>>;
1725
+ attachment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1521
1726
  streaming_behavior: z.ZodOptional<z.ZodLiteral<"steer">>;
1522
1727
  channel_id: z.ZodString;
1523
1728
  session_id: z.ZodString;
@@ -1643,6 +1848,74 @@ export declare const clientFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
1643
1848
  protocol_version: z.ZodLiteral<2>;
1644
1849
  type: z.ZodLiteral<"approve_tool">;
1645
1850
  id: z.ZodString;
1851
+ }, z.core.$strict>, z.ZodObject<{
1852
+ channel_id: z.ZodString;
1853
+ session_id: z.ZodString;
1854
+ leaf_id: z.ZodNullable<z.ZodString>;
1855
+ protocol_version: z.ZodLiteral<2>;
1856
+ type: z.ZodLiteral<"attachment_capabilities_request">;
1857
+ id: z.ZodString;
1858
+ }, z.core.$strict>, z.ZodObject<{
1859
+ upload_id: z.ZodString;
1860
+ file_name: z.ZodString;
1861
+ mime_type: z.ZodString;
1862
+ byte_length: z.ZodNumber;
1863
+ sha256: z.ZodString;
1864
+ preview: z.ZodOptional<z.ZodObject<{
1865
+ mime_type: z.ZodLiteral<"image/jpeg">;
1866
+ data: z.ZodString;
1867
+ byte_length: z.ZodNumber;
1868
+ width: z.ZodNumber;
1869
+ height: z.ZodNumber;
1870
+ }, z.core.$strict>>;
1871
+ channel_id: z.ZodString;
1872
+ session_id: z.ZodString;
1873
+ upload_scope: z.ZodString;
1874
+ protocol_version: z.ZodLiteral<2>;
1875
+ type: z.ZodLiteral<"attachment_begin">;
1876
+ id: z.ZodString;
1877
+ }, z.core.$strict>, z.ZodObject<{
1878
+ upload_id: z.ZodString;
1879
+ offset: z.ZodNumber;
1880
+ data_base64: z.ZodString;
1881
+ channel_id: z.ZodString;
1882
+ session_id: z.ZodString;
1883
+ upload_scope: z.ZodString;
1884
+ protocol_version: z.ZodLiteral<2>;
1885
+ type: z.ZodLiteral<"attachment_chunk">;
1886
+ id: z.ZodString;
1887
+ }, z.core.$strict>, z.ZodObject<{
1888
+ upload_id: z.ZodString;
1889
+ channel_id: z.ZodString;
1890
+ session_id: z.ZodString;
1891
+ upload_scope: z.ZodString;
1892
+ protocol_version: z.ZodLiteral<2>;
1893
+ type: z.ZodLiteral<"attachment_finish">;
1894
+ id: z.ZodString;
1895
+ }, z.core.$strict>, z.ZodObject<{
1896
+ upload_id: z.ZodString;
1897
+ channel_id: z.ZodString;
1898
+ session_id: z.ZodString;
1899
+ upload_scope: z.ZodString;
1900
+ protocol_version: z.ZodLiteral<2>;
1901
+ type: z.ZodLiteral<"attachment_status_request">;
1902
+ id: z.ZodString;
1903
+ }, z.core.$strict>, z.ZodObject<{
1904
+ upload_id: z.ZodString;
1905
+ channel_id: z.ZodString;
1906
+ session_id: z.ZodString;
1907
+ upload_scope: z.ZodString;
1908
+ protocol_version: z.ZodLiteral<2>;
1909
+ type: z.ZodLiteral<"attachment_cancel">;
1910
+ id: z.ZodString;
1911
+ }, z.core.$strict>, z.ZodObject<{
1912
+ attachment_id: z.ZodString;
1913
+ channel_id: z.ZodString;
1914
+ session_id: z.ZodString;
1915
+ upload_scope: z.ZodString;
1916
+ protocol_version: z.ZodLiteral<2>;
1917
+ type: z.ZodLiteral<"attachment_discard">;
1918
+ id: z.ZodString;
1646
1919
  }, z.core.$strict>]>;
1647
1920
  export declare const serverFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
1648
1921
  type: z.ZodLiteral<"pair_ok">;
@@ -1676,6 +1949,12 @@ export declare const serverFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
1676
1949
  self_sender_ref: z.ZodString;
1677
1950
  target_channel_id: z.ZodString;
1678
1951
  protocol_version: z.ZodLiteral<2>;
1952
+ }, z.core.$strict>, z.ZodObject<{
1953
+ type: z.ZodLiteral<"extension_info">;
1954
+ in_reply_to: z.ZodString;
1955
+ version: z.ZodString;
1956
+ target_channel_id: z.ZodString;
1957
+ protocol_version: z.ZodLiteral<2>;
1679
1958
  }, z.core.$strict>, z.ZodObject<{
1680
1959
  type: z.ZodLiteral<"user_message_started">;
1681
1960
  in_reply_to: z.ZodString;
@@ -2967,6 +3246,96 @@ export declare const serverFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
2967
3246
  session_id: z.ZodString;
2968
3247
  leaf_id: z.ZodNullable<z.ZodString>;
2969
3248
  protocol_version: z.ZodLiteral<2>;
3249
+ }, z.core.$strict>, z.ZodObject<{
3250
+ type: z.ZodLiteral<"attachment_capabilities">;
3251
+ max_file_bytes: z.ZodLiteral<number>;
3252
+ max_message_bytes: z.ZodLiteral<number>;
3253
+ max_attachments: z.ZodLiteral<10>;
3254
+ chunk_bytes: z.ZodLiteral<number>;
3255
+ max_in_flight: z.ZodLiteral<2>;
3256
+ in_reply_to: z.ZodString;
3257
+ session_id: z.ZodString;
3258
+ upload_scope: z.ZodString;
3259
+ target_channel_id: z.ZodString;
3260
+ protocol_version: z.ZodLiteral<2>;
3261
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
3262
+ status: z.ZodLiteral<"receiving">;
3263
+ type: z.ZodLiteral<"attachment_state">;
3264
+ upload_id: z.ZodString;
3265
+ received_bytes: z.ZodNumber;
3266
+ in_reply_to: z.ZodString;
3267
+ session_id: z.ZodString;
3268
+ upload_scope: z.ZodString;
3269
+ target_channel_id: z.ZodString;
3270
+ protocol_version: z.ZodLiteral<2>;
3271
+ }, z.core.$strict>, z.ZodObject<{
3272
+ status: z.ZodLiteral<"cancelled">;
3273
+ type: z.ZodLiteral<"attachment_state">;
3274
+ upload_id: z.ZodString;
3275
+ received_bytes: z.ZodNumber;
3276
+ in_reply_to: z.ZodString;
3277
+ session_id: z.ZodString;
3278
+ upload_scope: z.ZodString;
3279
+ target_channel_id: z.ZodString;
3280
+ protocol_version: z.ZodLiteral<2>;
3281
+ }, z.core.$strict>, z.ZodObject<{
3282
+ status: z.ZodLiteral<"complete">;
3283
+ attachment: z.ZodObject<{
3284
+ attachment_id: z.ZodString;
3285
+ file_name: z.ZodString;
3286
+ mime_type: z.ZodString;
3287
+ byte_length: z.ZodNumber;
3288
+ sha256: z.ZodString;
3289
+ preview: z.ZodOptional<z.ZodObject<{
3290
+ mime_type: z.ZodLiteral<"image/jpeg">;
3291
+ data: z.ZodString;
3292
+ byte_length: z.ZodNumber;
3293
+ width: z.ZodNumber;
3294
+ height: z.ZodNumber;
3295
+ }, z.core.$strict>>;
3296
+ }, z.core.$strict>;
3297
+ type: z.ZodLiteral<"attachment_state">;
3298
+ upload_id: z.ZodString;
3299
+ received_bytes: z.ZodNumber;
3300
+ in_reply_to: z.ZodString;
3301
+ session_id: z.ZodString;
3302
+ upload_scope: z.ZodString;
3303
+ target_channel_id: z.ZodString;
3304
+ protocol_version: z.ZodLiteral<2>;
3305
+ }, z.core.$strict>]>, z.ZodObject<{
3306
+ type: z.ZodLiteral<"attachment_error">;
3307
+ upload_id: z.ZodOptional<z.ZodString>;
3308
+ attachment_id: z.ZodOptional<z.ZodString>;
3309
+ code: z.ZodEnum<{
3310
+ cancelled: "cancelled";
3311
+ too_large: "too_large";
3312
+ invalid_scope: "invalid_scope";
3313
+ not_found: "not_found";
3314
+ invalid_upload: "invalid_upload";
3315
+ busy: "busy";
3316
+ no_space: "no_space";
3317
+ io_error: "io_error";
3318
+ integrity_mismatch: "integrity_mismatch";
3319
+ offset_mismatch: "offset_mismatch";
3320
+ }>;
3321
+ retryable: z.ZodBoolean;
3322
+ in_reply_to: z.ZodString;
3323
+ session_id: z.ZodString;
3324
+ upload_scope: z.ZodString;
3325
+ target_channel_id: z.ZodString;
3326
+ protocol_version: z.ZodLiteral<2>;
3327
+ }, z.core.$strict>, z.ZodObject<{
3328
+ type: z.ZodLiteral<"attachment_discarded">;
3329
+ attachment_id: z.ZodString;
3330
+ status: z.ZodEnum<{
3331
+ cancelled: "cancelled";
3332
+ retained: "retained";
3333
+ }>;
3334
+ in_reply_to: z.ZodString;
3335
+ session_id: z.ZodString;
3336
+ upload_scope: z.ZodString;
3337
+ target_channel_id: z.ZodString;
3338
+ protocol_version: z.ZodLiteral<2>;
2970
3339
  }, z.core.$strict>]>;
2971
3340
  export declare const ClientFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
2972
3341
  type: z.ZodLiteral<"pair_request">;
@@ -2979,6 +3348,13 @@ export declare const ClientFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
2979
3348
  id: z.ZodString;
2980
3349
  channel_id: z.ZodString;
2981
3350
  protocol_version: z.ZodLiteral<2>;
3351
+ }, z.core.$strict>, z.ZodObject<{
3352
+ channel_id: z.ZodString;
3353
+ session_id: z.ZodString;
3354
+ leaf_id: z.ZodNullable<z.ZodString>;
3355
+ protocol_version: z.ZodLiteral<2>;
3356
+ type: z.ZodLiteral<"extension_info_request">;
3357
+ id: z.ZodString;
2982
3358
  }, z.core.$strict>, z.ZodObject<{
2983
3359
  client_request_id: z.ZodString;
2984
3360
  text: z.ZodString;
@@ -2986,6 +3362,7 @@ export declare const ClientFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
2986
3362
  data: z.ZodString;
2987
3363
  mime: z.ZodString;
2988
3364
  }, z.core.$strict>>>;
3365
+ attachment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
2989
3366
  streaming_behavior: z.ZodOptional<z.ZodLiteral<"steer">>;
2990
3367
  channel_id: z.ZodString;
2991
3368
  session_id: z.ZodString;
@@ -3111,6 +3488,74 @@ export declare const ClientFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
3111
3488
  protocol_version: z.ZodLiteral<2>;
3112
3489
  type: z.ZodLiteral<"approve_tool">;
3113
3490
  id: z.ZodString;
3491
+ }, z.core.$strict>, z.ZodObject<{
3492
+ channel_id: z.ZodString;
3493
+ session_id: z.ZodString;
3494
+ leaf_id: z.ZodNullable<z.ZodString>;
3495
+ protocol_version: z.ZodLiteral<2>;
3496
+ type: z.ZodLiteral<"attachment_capabilities_request">;
3497
+ id: z.ZodString;
3498
+ }, z.core.$strict>, z.ZodObject<{
3499
+ upload_id: z.ZodString;
3500
+ file_name: z.ZodString;
3501
+ mime_type: z.ZodString;
3502
+ byte_length: z.ZodNumber;
3503
+ sha256: z.ZodString;
3504
+ preview: z.ZodOptional<z.ZodObject<{
3505
+ mime_type: z.ZodLiteral<"image/jpeg">;
3506
+ data: z.ZodString;
3507
+ byte_length: z.ZodNumber;
3508
+ width: z.ZodNumber;
3509
+ height: z.ZodNumber;
3510
+ }, z.core.$strict>>;
3511
+ channel_id: z.ZodString;
3512
+ session_id: z.ZodString;
3513
+ upload_scope: z.ZodString;
3514
+ protocol_version: z.ZodLiteral<2>;
3515
+ type: z.ZodLiteral<"attachment_begin">;
3516
+ id: z.ZodString;
3517
+ }, z.core.$strict>, z.ZodObject<{
3518
+ upload_id: z.ZodString;
3519
+ offset: z.ZodNumber;
3520
+ data_base64: z.ZodString;
3521
+ channel_id: z.ZodString;
3522
+ session_id: z.ZodString;
3523
+ upload_scope: z.ZodString;
3524
+ protocol_version: z.ZodLiteral<2>;
3525
+ type: z.ZodLiteral<"attachment_chunk">;
3526
+ id: z.ZodString;
3527
+ }, z.core.$strict>, z.ZodObject<{
3528
+ upload_id: z.ZodString;
3529
+ channel_id: z.ZodString;
3530
+ session_id: z.ZodString;
3531
+ upload_scope: z.ZodString;
3532
+ protocol_version: z.ZodLiteral<2>;
3533
+ type: z.ZodLiteral<"attachment_finish">;
3534
+ id: z.ZodString;
3535
+ }, z.core.$strict>, z.ZodObject<{
3536
+ upload_id: z.ZodString;
3537
+ channel_id: z.ZodString;
3538
+ session_id: z.ZodString;
3539
+ upload_scope: z.ZodString;
3540
+ protocol_version: z.ZodLiteral<2>;
3541
+ type: z.ZodLiteral<"attachment_status_request">;
3542
+ id: z.ZodString;
3543
+ }, z.core.$strict>, z.ZodObject<{
3544
+ upload_id: z.ZodString;
3545
+ channel_id: z.ZodString;
3546
+ session_id: z.ZodString;
3547
+ upload_scope: z.ZodString;
3548
+ protocol_version: z.ZodLiteral<2>;
3549
+ type: z.ZodLiteral<"attachment_cancel">;
3550
+ id: z.ZodString;
3551
+ }, z.core.$strict>, z.ZodObject<{
3552
+ attachment_id: z.ZodString;
3553
+ channel_id: z.ZodString;
3554
+ session_id: z.ZodString;
3555
+ upload_scope: z.ZodString;
3556
+ protocol_version: z.ZodLiteral<2>;
3557
+ type: z.ZodLiteral<"attachment_discard">;
3558
+ id: z.ZodString;
3114
3559
  }, z.core.$strict>]>;
3115
3560
  export declare const ServerFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
3116
3561
  type: z.ZodLiteral<"pair_ok">;
@@ -3144,6 +3589,12 @@ export declare const ServerFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
3144
3589
  self_sender_ref: z.ZodString;
3145
3590
  target_channel_id: z.ZodString;
3146
3591
  protocol_version: z.ZodLiteral<2>;
3592
+ }, z.core.$strict>, z.ZodObject<{
3593
+ type: z.ZodLiteral<"extension_info">;
3594
+ in_reply_to: z.ZodString;
3595
+ version: z.ZodString;
3596
+ target_channel_id: z.ZodString;
3597
+ protocol_version: z.ZodLiteral<2>;
3147
3598
  }, z.core.$strict>, z.ZodObject<{
3148
3599
  type: z.ZodLiteral<"user_message_started">;
3149
3600
  in_reply_to: z.ZodString;
@@ -4435,6 +4886,96 @@ export declare const ServerFrameSchema: z.ZodUnion<readonly [z.ZodObject<{
4435
4886
  session_id: z.ZodString;
4436
4887
  leaf_id: z.ZodNullable<z.ZodString>;
4437
4888
  protocol_version: z.ZodLiteral<2>;
4889
+ }, z.core.$strict>, z.ZodObject<{
4890
+ type: z.ZodLiteral<"attachment_capabilities">;
4891
+ max_file_bytes: z.ZodLiteral<number>;
4892
+ max_message_bytes: z.ZodLiteral<number>;
4893
+ max_attachments: z.ZodLiteral<10>;
4894
+ chunk_bytes: z.ZodLiteral<number>;
4895
+ max_in_flight: z.ZodLiteral<2>;
4896
+ in_reply_to: z.ZodString;
4897
+ session_id: z.ZodString;
4898
+ upload_scope: z.ZodString;
4899
+ target_channel_id: z.ZodString;
4900
+ protocol_version: z.ZodLiteral<2>;
4901
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
4902
+ status: z.ZodLiteral<"receiving">;
4903
+ type: z.ZodLiteral<"attachment_state">;
4904
+ upload_id: z.ZodString;
4905
+ received_bytes: z.ZodNumber;
4906
+ in_reply_to: z.ZodString;
4907
+ session_id: z.ZodString;
4908
+ upload_scope: z.ZodString;
4909
+ target_channel_id: z.ZodString;
4910
+ protocol_version: z.ZodLiteral<2>;
4911
+ }, z.core.$strict>, z.ZodObject<{
4912
+ status: z.ZodLiteral<"cancelled">;
4913
+ type: z.ZodLiteral<"attachment_state">;
4914
+ upload_id: z.ZodString;
4915
+ received_bytes: z.ZodNumber;
4916
+ in_reply_to: z.ZodString;
4917
+ session_id: z.ZodString;
4918
+ upload_scope: z.ZodString;
4919
+ target_channel_id: z.ZodString;
4920
+ protocol_version: z.ZodLiteral<2>;
4921
+ }, z.core.$strict>, z.ZodObject<{
4922
+ status: z.ZodLiteral<"complete">;
4923
+ attachment: z.ZodObject<{
4924
+ attachment_id: z.ZodString;
4925
+ file_name: z.ZodString;
4926
+ mime_type: z.ZodString;
4927
+ byte_length: z.ZodNumber;
4928
+ sha256: z.ZodString;
4929
+ preview: z.ZodOptional<z.ZodObject<{
4930
+ mime_type: z.ZodLiteral<"image/jpeg">;
4931
+ data: z.ZodString;
4932
+ byte_length: z.ZodNumber;
4933
+ width: z.ZodNumber;
4934
+ height: z.ZodNumber;
4935
+ }, z.core.$strict>>;
4936
+ }, z.core.$strict>;
4937
+ type: z.ZodLiteral<"attachment_state">;
4938
+ upload_id: z.ZodString;
4939
+ received_bytes: z.ZodNumber;
4940
+ in_reply_to: z.ZodString;
4941
+ session_id: z.ZodString;
4942
+ upload_scope: z.ZodString;
4943
+ target_channel_id: z.ZodString;
4944
+ protocol_version: z.ZodLiteral<2>;
4945
+ }, z.core.$strict>]>, z.ZodObject<{
4946
+ type: z.ZodLiteral<"attachment_error">;
4947
+ upload_id: z.ZodOptional<z.ZodString>;
4948
+ attachment_id: z.ZodOptional<z.ZodString>;
4949
+ code: z.ZodEnum<{
4950
+ cancelled: "cancelled";
4951
+ too_large: "too_large";
4952
+ invalid_scope: "invalid_scope";
4953
+ not_found: "not_found";
4954
+ invalid_upload: "invalid_upload";
4955
+ busy: "busy";
4956
+ no_space: "no_space";
4957
+ io_error: "io_error";
4958
+ integrity_mismatch: "integrity_mismatch";
4959
+ offset_mismatch: "offset_mismatch";
4960
+ }>;
4961
+ retryable: z.ZodBoolean;
4962
+ in_reply_to: z.ZodString;
4963
+ session_id: z.ZodString;
4964
+ upload_scope: z.ZodString;
4965
+ target_channel_id: z.ZodString;
4966
+ protocol_version: z.ZodLiteral<2>;
4967
+ }, z.core.$strict>, z.ZodObject<{
4968
+ type: z.ZodLiteral<"attachment_discarded">;
4969
+ attachment_id: z.ZodString;
4970
+ status: z.ZodEnum<{
4971
+ cancelled: "cancelled";
4972
+ retained: "retained";
4973
+ }>;
4974
+ in_reply_to: z.ZodString;
4975
+ session_id: z.ZodString;
4976
+ upload_scope: z.ZodString;
4977
+ target_channel_id: z.ZodString;
4978
+ protocol_version: z.ZodLiteral<2>;
4438
4979
  }, z.core.$strict>]>;
4439
4980
  export declare const SessionHistoryChunkSchema: z.ZodUnion<readonly [z.ZodObject<{
4440
4981
  final_chunk: z.ZodLiteral<false>;