@pairlobby/protocol 0.17.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/events.d.ts CHANGED
@@ -72,16 +72,50 @@ export declare const EventSubmission: z.ZodDiscriminatedUnion<"type", [z.ZodObje
72
72
  responseStage: z.ZodOptional<z.ZodEnum<["progress", "final"]>>;
73
73
  /** A new attempt at a request that failed: the failed request's delivery ID. Its answer resolves that request too. */
74
74
  recovers: z.ZodOptional<z.ZodString>;
75
+ /** Files sent with this message. Only a relay with a file store accepts them; see `filesSupported`. */
76
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ fileId: z.ZodString;
78
+ name: z.ZodString;
79
+ size: z.ZodNumber;
80
+ mediaType: z.ZodString;
81
+ sha256: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ name: string;
84
+ fileId: string;
85
+ size: number;
86
+ mediaType: string;
87
+ sha256: string;
88
+ }, {
89
+ name: string;
90
+ fileId: string;
91
+ size: number;
92
+ mediaType: string;
93
+ sha256: string;
94
+ }>, "many">>;
75
95
  }, "strip", z.ZodTypeAny, {
76
96
  text: string;
77
97
  priority: "normal" | "priority";
78
98
  responseStage?: "progress" | "final" | undefined;
79
99
  recovers?: string | undefined;
100
+ attachments?: {
101
+ name: string;
102
+ fileId: string;
103
+ size: number;
104
+ mediaType: string;
105
+ sha256: string;
106
+ }[] | undefined;
80
107
  }, {
81
108
  text: string;
82
109
  priority?: "normal" | "priority" | undefined;
83
110
  responseStage?: "progress" | "final" | undefined;
84
111
  recovers?: string | undefined;
112
+ attachments?: {
113
+ name: string;
114
+ fileId: string;
115
+ size: number;
116
+ mediaType: string;
117
+ sha256: string;
118
+ }[] | undefined;
85
119
  }>;
86
120
  }, "strip", z.ZodTypeAny, {
87
121
  type: "message";
@@ -90,6 +124,13 @@ export declare const EventSubmission: z.ZodDiscriminatedUnion<"type", [z.ZodObje
90
124
  priority: "normal" | "priority";
91
125
  responseStage?: "progress" | "final" | undefined;
92
126
  recovers?: string | undefined;
127
+ attachments?: {
128
+ name: string;
129
+ fileId: string;
130
+ size: number;
131
+ mediaType: string;
132
+ sha256: string;
133
+ }[] | undefined;
93
134
  };
94
135
  }, {
95
136
  type: "message";
@@ -98,6 +139,13 @@ export declare const EventSubmission: z.ZodDiscriminatedUnion<"type", [z.ZodObje
98
139
  priority?: "normal" | "priority" | undefined;
99
140
  responseStage?: "progress" | "final" | undefined;
100
141
  recovers?: string | undefined;
142
+ attachments?: {
143
+ name: string;
144
+ fileId: string;
145
+ size: number;
146
+ mediaType: string;
147
+ sha256: string;
148
+ }[] | undefined;
101
149
  };
102
150
  }>, z.ZodObject<{
103
151
  type: z.ZodLiteral<"message.received">;
@@ -521,16 +569,50 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
521
569
  responseStage: z.ZodOptional<z.ZodEnum<["progress", "final"]>>;
522
570
  /** A new attempt at a request that failed: the failed request's delivery ID. Its answer resolves that request too. */
523
571
  recovers: z.ZodOptional<z.ZodString>;
572
+ /** Files sent with this message. Only a relay with a file store accepts them; see `filesSupported`. */
573
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
574
+ fileId: z.ZodString;
575
+ name: z.ZodString;
576
+ size: z.ZodNumber;
577
+ mediaType: z.ZodString;
578
+ sha256: z.ZodString;
579
+ }, "strip", z.ZodTypeAny, {
580
+ name: string;
581
+ fileId: string;
582
+ size: number;
583
+ mediaType: string;
584
+ sha256: string;
585
+ }, {
586
+ name: string;
587
+ fileId: string;
588
+ size: number;
589
+ mediaType: string;
590
+ sha256: string;
591
+ }>, "many">>;
524
592
  }, "strip", z.ZodTypeAny, {
525
593
  text: string;
526
594
  priority: "normal" | "priority";
527
595
  responseStage?: "progress" | "final" | undefined;
528
596
  recovers?: string | undefined;
597
+ attachments?: {
598
+ name: string;
599
+ fileId: string;
600
+ size: number;
601
+ mediaType: string;
602
+ sha256: string;
603
+ }[] | undefined;
529
604
  }, {
530
605
  text: string;
531
606
  priority?: "normal" | "priority" | undefined;
532
607
  responseStage?: "progress" | "final" | undefined;
533
608
  recovers?: string | undefined;
609
+ attachments?: {
610
+ name: string;
611
+ fileId: string;
612
+ size: number;
613
+ mediaType: string;
614
+ sha256: string;
615
+ }[] | undefined;
534
616
  }>;
535
617
  }, "strip", z.ZodTypeAny, {
536
618
  type: "message";
@@ -539,6 +621,13 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
539
621
  priority: "normal" | "priority";
540
622
  responseStage?: "progress" | "final" | undefined;
541
623
  recovers?: string | undefined;
624
+ attachments?: {
625
+ name: string;
626
+ fileId: string;
627
+ size: number;
628
+ mediaType: string;
629
+ sha256: string;
630
+ }[] | undefined;
542
631
  };
543
632
  }, {
544
633
  type: "message";
@@ -547,6 +636,13 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
547
636
  priority?: "normal" | "priority" | undefined;
548
637
  responseStage?: "progress" | "final" | undefined;
549
638
  recovers?: string | undefined;
639
+ attachments?: {
640
+ name: string;
641
+ fileId: string;
642
+ size: number;
643
+ mediaType: string;
644
+ sha256: string;
645
+ }[] | undefined;
550
646
  };
551
647
  }>, z.ZodObject<{
552
648
  type: z.ZodLiteral<"message.received">;
@@ -1593,6 +1689,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1593
1689
  payload: z.ZodObject<{
1594
1690
  permissions: z.ZodObject<{
1595
1691
  invite: z.ZodOptional<z.ZodBoolean>;
1692
+ attach: z.ZodOptional<z.ZodBoolean>;
1596
1693
  rename: z.ZodOptional<z.ZodBoolean>;
1597
1694
  lock: z.ZodOptional<z.ZodBoolean>;
1598
1695
  mute: z.ZodOptional<z.ZodBoolean>;
@@ -1601,6 +1698,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1601
1698
  turns: z.ZodOptional<z.ZodBoolean>;
1602
1699
  }, "strip", z.ZodTypeAny, {
1603
1700
  invite?: boolean | undefined;
1701
+ attach?: boolean | undefined;
1604
1702
  rename?: boolean | undefined;
1605
1703
  lock?: boolean | undefined;
1606
1704
  mute?: boolean | undefined;
@@ -1609,6 +1707,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1609
1707
  turns?: boolean | undefined;
1610
1708
  }, {
1611
1709
  invite?: boolean | undefined;
1710
+ attach?: boolean | undefined;
1612
1711
  rename?: boolean | undefined;
1613
1712
  lock?: boolean | undefined;
1614
1713
  mute?: boolean | undefined;
@@ -1618,6 +1717,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1618
1717
  }>;
1619
1718
  previous: z.ZodObject<{
1620
1719
  invite: z.ZodOptional<z.ZodBoolean>;
1720
+ attach: z.ZodOptional<z.ZodBoolean>;
1621
1721
  rename: z.ZodOptional<z.ZodBoolean>;
1622
1722
  lock: z.ZodOptional<z.ZodBoolean>;
1623
1723
  mute: z.ZodOptional<z.ZodBoolean>;
@@ -1626,6 +1726,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1626
1726
  turns: z.ZodOptional<z.ZodBoolean>;
1627
1727
  }, "strip", z.ZodTypeAny, {
1628
1728
  invite?: boolean | undefined;
1729
+ attach?: boolean | undefined;
1629
1730
  rename?: boolean | undefined;
1630
1731
  lock?: boolean | undefined;
1631
1732
  mute?: boolean | undefined;
@@ -1634,6 +1735,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1634
1735
  turns?: boolean | undefined;
1635
1736
  }, {
1636
1737
  invite?: boolean | undefined;
1738
+ attach?: boolean | undefined;
1637
1739
  rename?: boolean | undefined;
1638
1740
  lock?: boolean | undefined;
1639
1741
  mute?: boolean | undefined;
@@ -1644,6 +1746,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1644
1746
  }, "strip", z.ZodTypeAny, {
1645
1747
  previous: {
1646
1748
  invite?: boolean | undefined;
1749
+ attach?: boolean | undefined;
1647
1750
  rename?: boolean | undefined;
1648
1751
  lock?: boolean | undefined;
1649
1752
  mute?: boolean | undefined;
@@ -1653,6 +1756,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1653
1756
  };
1654
1757
  permissions: {
1655
1758
  invite?: boolean | undefined;
1759
+ attach?: boolean | undefined;
1656
1760
  rename?: boolean | undefined;
1657
1761
  lock?: boolean | undefined;
1658
1762
  mute?: boolean | undefined;
@@ -1663,6 +1767,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1663
1767
  }, {
1664
1768
  previous: {
1665
1769
  invite?: boolean | undefined;
1770
+ attach?: boolean | undefined;
1666
1771
  rename?: boolean | undefined;
1667
1772
  lock?: boolean | undefined;
1668
1773
  mute?: boolean | undefined;
@@ -1672,6 +1777,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1672
1777
  };
1673
1778
  permissions: {
1674
1779
  invite?: boolean | undefined;
1780
+ attach?: boolean | undefined;
1675
1781
  rename?: boolean | undefined;
1676
1782
  lock?: boolean | undefined;
1677
1783
  mute?: boolean | undefined;
@@ -1685,6 +1791,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1685
1791
  payload: {
1686
1792
  previous: {
1687
1793
  invite?: boolean | undefined;
1794
+ attach?: boolean | undefined;
1688
1795
  rename?: boolean | undefined;
1689
1796
  lock?: boolean | undefined;
1690
1797
  mute?: boolean | undefined;
@@ -1694,6 +1801,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1694
1801
  };
1695
1802
  permissions: {
1696
1803
  invite?: boolean | undefined;
1804
+ attach?: boolean | undefined;
1697
1805
  rename?: boolean | undefined;
1698
1806
  lock?: boolean | undefined;
1699
1807
  mute?: boolean | undefined;
@@ -1707,6 +1815,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1707
1815
  payload: {
1708
1816
  previous: {
1709
1817
  invite?: boolean | undefined;
1818
+ attach?: boolean | undefined;
1710
1819
  rename?: boolean | undefined;
1711
1820
  lock?: boolean | undefined;
1712
1821
  mute?: boolean | undefined;
@@ -1716,6 +1825,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1716
1825
  };
1717
1826
  permissions: {
1718
1827
  invite?: boolean | undefined;
1828
+ attach?: boolean | undefined;
1719
1829
  rename?: boolean | undefined;
1720
1830
  lock?: boolean | undefined;
1721
1831
  mute?: boolean | undefined;
@@ -1730,6 +1840,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1730
1840
  participantId: z.ZodString;
1731
1841
  permissions: z.ZodObject<{
1732
1842
  invite: z.ZodOptional<z.ZodBoolean>;
1843
+ attach: z.ZodOptional<z.ZodBoolean>;
1733
1844
  rename: z.ZodOptional<z.ZodBoolean>;
1734
1845
  lock: z.ZodOptional<z.ZodBoolean>;
1735
1846
  mute: z.ZodOptional<z.ZodBoolean>;
@@ -1738,6 +1849,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1738
1849
  turns: z.ZodOptional<z.ZodBoolean>;
1739
1850
  }, "strip", z.ZodTypeAny, {
1740
1851
  invite?: boolean | undefined;
1852
+ attach?: boolean | undefined;
1741
1853
  rename?: boolean | undefined;
1742
1854
  lock?: boolean | undefined;
1743
1855
  mute?: boolean | undefined;
@@ -1746,6 +1858,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1746
1858
  turns?: boolean | undefined;
1747
1859
  }, {
1748
1860
  invite?: boolean | undefined;
1861
+ attach?: boolean | undefined;
1749
1862
  rename?: boolean | undefined;
1750
1863
  lock?: boolean | undefined;
1751
1864
  mute?: boolean | undefined;
@@ -1755,6 +1868,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1755
1868
  }>;
1756
1869
  previous: z.ZodObject<{
1757
1870
  invite: z.ZodOptional<z.ZodBoolean>;
1871
+ attach: z.ZodOptional<z.ZodBoolean>;
1758
1872
  rename: z.ZodOptional<z.ZodBoolean>;
1759
1873
  lock: z.ZodOptional<z.ZodBoolean>;
1760
1874
  mute: z.ZodOptional<z.ZodBoolean>;
@@ -1763,6 +1877,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1763
1877
  turns: z.ZodOptional<z.ZodBoolean>;
1764
1878
  }, "strip", z.ZodTypeAny, {
1765
1879
  invite?: boolean | undefined;
1880
+ attach?: boolean | undefined;
1766
1881
  rename?: boolean | undefined;
1767
1882
  lock?: boolean | undefined;
1768
1883
  mute?: boolean | undefined;
@@ -1771,6 +1886,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1771
1886
  turns?: boolean | undefined;
1772
1887
  }, {
1773
1888
  invite?: boolean | undefined;
1889
+ attach?: boolean | undefined;
1774
1890
  rename?: boolean | undefined;
1775
1891
  lock?: boolean | undefined;
1776
1892
  mute?: boolean | undefined;
@@ -1782,6 +1898,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1782
1898
  participantId: string;
1783
1899
  previous: {
1784
1900
  invite?: boolean | undefined;
1901
+ attach?: boolean | undefined;
1785
1902
  rename?: boolean | undefined;
1786
1903
  lock?: boolean | undefined;
1787
1904
  mute?: boolean | undefined;
@@ -1791,6 +1908,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1791
1908
  };
1792
1909
  permissions: {
1793
1910
  invite?: boolean | undefined;
1911
+ attach?: boolean | undefined;
1794
1912
  rename?: boolean | undefined;
1795
1913
  lock?: boolean | undefined;
1796
1914
  mute?: boolean | undefined;
@@ -1802,6 +1920,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1802
1920
  participantId: string;
1803
1921
  previous: {
1804
1922
  invite?: boolean | undefined;
1923
+ attach?: boolean | undefined;
1805
1924
  rename?: boolean | undefined;
1806
1925
  lock?: boolean | undefined;
1807
1926
  mute?: boolean | undefined;
@@ -1811,6 +1930,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1811
1930
  };
1812
1931
  permissions: {
1813
1932
  invite?: boolean | undefined;
1933
+ attach?: boolean | undefined;
1814
1934
  rename?: boolean | undefined;
1815
1935
  lock?: boolean | undefined;
1816
1936
  mute?: boolean | undefined;
@@ -1825,6 +1945,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1825
1945
  participantId: string;
1826
1946
  previous: {
1827
1947
  invite?: boolean | undefined;
1948
+ attach?: boolean | undefined;
1828
1949
  rename?: boolean | undefined;
1829
1950
  lock?: boolean | undefined;
1830
1951
  mute?: boolean | undefined;
@@ -1834,6 +1955,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1834
1955
  };
1835
1956
  permissions: {
1836
1957
  invite?: boolean | undefined;
1958
+ attach?: boolean | undefined;
1837
1959
  rename?: boolean | undefined;
1838
1960
  lock?: boolean | undefined;
1839
1961
  mute?: boolean | undefined;
@@ -1848,6 +1970,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1848
1970
  participantId: string;
1849
1971
  previous: {
1850
1972
  invite?: boolean | undefined;
1973
+ attach?: boolean | undefined;
1851
1974
  rename?: boolean | undefined;
1852
1975
  lock?: boolean | undefined;
1853
1976
  mute?: boolean | undefined;
@@ -1857,6 +1980,7 @@ export declare const EventBody: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1857
1980
  };
1858
1981
  permissions: {
1859
1982
  invite?: boolean | undefined;
1983
+ attach?: boolean | undefined;
1860
1984
  rename?: boolean | undefined;
1861
1985
  lock?: boolean | undefined;
1862
1986
  mute?: boolean | undefined;
@@ -1926,9 +2050,9 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
1926
2050
  at: z.ZodNumber;
1927
2051
  }, "strip", z.ZodTypeAny, {
1928
2052
  at: number;
2053
+ roomId: string;
1929
2054
  eventId: string;
1930
2055
  protocolVersion: 1;
1931
- roomId: string;
1932
2056
  seq: number;
1933
2057
  senderId: string | null;
1934
2058
  idempotencyKey: string | null;
@@ -1939,9 +2063,9 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
1939
2063
  quoteOf?: string | undefined;
1940
2064
  }, {
1941
2065
  at: number;
2066
+ roomId: string;
1942
2067
  eventId: string;
1943
2068
  protocolVersion: 1;
1944
- roomId: string;
1945
2069
  seq: number;
1946
2070
  senderId: string | null;
1947
2071
  idempotencyKey: string | null;
@@ -1958,16 +2082,50 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
1958
2082
  responseStage: z.ZodOptional<z.ZodEnum<["progress", "final"]>>;
1959
2083
  /** A new attempt at a request that failed: the failed request's delivery ID. Its answer resolves that request too. */
1960
2084
  recovers: z.ZodOptional<z.ZodString>;
2085
+ /** Files sent with this message. Only a relay with a file store accepts them; see `filesSupported`. */
2086
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2087
+ fileId: z.ZodString;
2088
+ name: z.ZodString;
2089
+ size: z.ZodNumber;
2090
+ mediaType: z.ZodString;
2091
+ sha256: z.ZodString;
2092
+ }, "strip", z.ZodTypeAny, {
2093
+ name: string;
2094
+ fileId: string;
2095
+ size: number;
2096
+ mediaType: string;
2097
+ sha256: string;
2098
+ }, {
2099
+ name: string;
2100
+ fileId: string;
2101
+ size: number;
2102
+ mediaType: string;
2103
+ sha256: string;
2104
+ }>, "many">>;
1961
2105
  }, "strip", z.ZodTypeAny, {
1962
2106
  text: string;
1963
2107
  priority: "normal" | "priority";
1964
2108
  responseStage?: "progress" | "final" | undefined;
1965
2109
  recovers?: string | undefined;
2110
+ attachments?: {
2111
+ name: string;
2112
+ fileId: string;
2113
+ size: number;
2114
+ mediaType: string;
2115
+ sha256: string;
2116
+ }[] | undefined;
1966
2117
  }, {
1967
2118
  text: string;
1968
2119
  priority?: "normal" | "priority" | undefined;
1969
2120
  responseStage?: "progress" | "final" | undefined;
1970
2121
  recovers?: string | undefined;
2122
+ attachments?: {
2123
+ name: string;
2124
+ fileId: string;
2125
+ size: number;
2126
+ mediaType: string;
2127
+ sha256: string;
2128
+ }[] | undefined;
1971
2129
  }>;
1972
2130
  }, "strip", z.ZodTypeAny, {
1973
2131
  type: "message";
@@ -1976,6 +2134,13 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
1976
2134
  priority: "normal" | "priority";
1977
2135
  responseStage?: "progress" | "final" | undefined;
1978
2136
  recovers?: string | undefined;
2137
+ attachments?: {
2138
+ name: string;
2139
+ fileId: string;
2140
+ size: number;
2141
+ mediaType: string;
2142
+ sha256: string;
2143
+ }[] | undefined;
1979
2144
  };
1980
2145
  }, {
1981
2146
  type: "message";
@@ -1984,6 +2149,13 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
1984
2149
  priority?: "normal" | "priority" | undefined;
1985
2150
  responseStage?: "progress" | "final" | undefined;
1986
2151
  recovers?: string | undefined;
2152
+ attachments?: {
2153
+ name: string;
2154
+ fileId: string;
2155
+ size: number;
2156
+ mediaType: string;
2157
+ sha256: string;
2158
+ }[] | undefined;
1987
2159
  };
1988
2160
  }>, z.ZodObject<{
1989
2161
  type: z.ZodLiteral<"message.received">;
@@ -3030,6 +3202,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3030
3202
  payload: z.ZodObject<{
3031
3203
  permissions: z.ZodObject<{
3032
3204
  invite: z.ZodOptional<z.ZodBoolean>;
3205
+ attach: z.ZodOptional<z.ZodBoolean>;
3033
3206
  rename: z.ZodOptional<z.ZodBoolean>;
3034
3207
  lock: z.ZodOptional<z.ZodBoolean>;
3035
3208
  mute: z.ZodOptional<z.ZodBoolean>;
@@ -3038,6 +3211,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3038
3211
  turns: z.ZodOptional<z.ZodBoolean>;
3039
3212
  }, "strip", z.ZodTypeAny, {
3040
3213
  invite?: boolean | undefined;
3214
+ attach?: boolean | undefined;
3041
3215
  rename?: boolean | undefined;
3042
3216
  lock?: boolean | undefined;
3043
3217
  mute?: boolean | undefined;
@@ -3046,6 +3220,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3046
3220
  turns?: boolean | undefined;
3047
3221
  }, {
3048
3222
  invite?: boolean | undefined;
3223
+ attach?: boolean | undefined;
3049
3224
  rename?: boolean | undefined;
3050
3225
  lock?: boolean | undefined;
3051
3226
  mute?: boolean | undefined;
@@ -3055,6 +3230,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3055
3230
  }>;
3056
3231
  previous: z.ZodObject<{
3057
3232
  invite: z.ZodOptional<z.ZodBoolean>;
3233
+ attach: z.ZodOptional<z.ZodBoolean>;
3058
3234
  rename: z.ZodOptional<z.ZodBoolean>;
3059
3235
  lock: z.ZodOptional<z.ZodBoolean>;
3060
3236
  mute: z.ZodOptional<z.ZodBoolean>;
@@ -3063,6 +3239,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3063
3239
  turns: z.ZodOptional<z.ZodBoolean>;
3064
3240
  }, "strip", z.ZodTypeAny, {
3065
3241
  invite?: boolean | undefined;
3242
+ attach?: boolean | undefined;
3066
3243
  rename?: boolean | undefined;
3067
3244
  lock?: boolean | undefined;
3068
3245
  mute?: boolean | undefined;
@@ -3071,6 +3248,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3071
3248
  turns?: boolean | undefined;
3072
3249
  }, {
3073
3250
  invite?: boolean | undefined;
3251
+ attach?: boolean | undefined;
3074
3252
  rename?: boolean | undefined;
3075
3253
  lock?: boolean | undefined;
3076
3254
  mute?: boolean | undefined;
@@ -3081,6 +3259,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3081
3259
  }, "strip", z.ZodTypeAny, {
3082
3260
  previous: {
3083
3261
  invite?: boolean | undefined;
3262
+ attach?: boolean | undefined;
3084
3263
  rename?: boolean | undefined;
3085
3264
  lock?: boolean | undefined;
3086
3265
  mute?: boolean | undefined;
@@ -3090,6 +3269,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3090
3269
  };
3091
3270
  permissions: {
3092
3271
  invite?: boolean | undefined;
3272
+ attach?: boolean | undefined;
3093
3273
  rename?: boolean | undefined;
3094
3274
  lock?: boolean | undefined;
3095
3275
  mute?: boolean | undefined;
@@ -3100,6 +3280,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3100
3280
  }, {
3101
3281
  previous: {
3102
3282
  invite?: boolean | undefined;
3283
+ attach?: boolean | undefined;
3103
3284
  rename?: boolean | undefined;
3104
3285
  lock?: boolean | undefined;
3105
3286
  mute?: boolean | undefined;
@@ -3109,6 +3290,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3109
3290
  };
3110
3291
  permissions: {
3111
3292
  invite?: boolean | undefined;
3293
+ attach?: boolean | undefined;
3112
3294
  rename?: boolean | undefined;
3113
3295
  lock?: boolean | undefined;
3114
3296
  mute?: boolean | undefined;
@@ -3122,6 +3304,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3122
3304
  payload: {
3123
3305
  previous: {
3124
3306
  invite?: boolean | undefined;
3307
+ attach?: boolean | undefined;
3125
3308
  rename?: boolean | undefined;
3126
3309
  lock?: boolean | undefined;
3127
3310
  mute?: boolean | undefined;
@@ -3131,6 +3314,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3131
3314
  };
3132
3315
  permissions: {
3133
3316
  invite?: boolean | undefined;
3317
+ attach?: boolean | undefined;
3134
3318
  rename?: boolean | undefined;
3135
3319
  lock?: boolean | undefined;
3136
3320
  mute?: boolean | undefined;
@@ -3144,6 +3328,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3144
3328
  payload: {
3145
3329
  previous: {
3146
3330
  invite?: boolean | undefined;
3331
+ attach?: boolean | undefined;
3147
3332
  rename?: boolean | undefined;
3148
3333
  lock?: boolean | undefined;
3149
3334
  mute?: boolean | undefined;
@@ -3153,6 +3338,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3153
3338
  };
3154
3339
  permissions: {
3155
3340
  invite?: boolean | undefined;
3341
+ attach?: boolean | undefined;
3156
3342
  rename?: boolean | undefined;
3157
3343
  lock?: boolean | undefined;
3158
3344
  mute?: boolean | undefined;
@@ -3167,6 +3353,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3167
3353
  participantId: z.ZodString;
3168
3354
  permissions: z.ZodObject<{
3169
3355
  invite: z.ZodOptional<z.ZodBoolean>;
3356
+ attach: z.ZodOptional<z.ZodBoolean>;
3170
3357
  rename: z.ZodOptional<z.ZodBoolean>;
3171
3358
  lock: z.ZodOptional<z.ZodBoolean>;
3172
3359
  mute: z.ZodOptional<z.ZodBoolean>;
@@ -3175,6 +3362,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3175
3362
  turns: z.ZodOptional<z.ZodBoolean>;
3176
3363
  }, "strip", z.ZodTypeAny, {
3177
3364
  invite?: boolean | undefined;
3365
+ attach?: boolean | undefined;
3178
3366
  rename?: boolean | undefined;
3179
3367
  lock?: boolean | undefined;
3180
3368
  mute?: boolean | undefined;
@@ -3183,6 +3371,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3183
3371
  turns?: boolean | undefined;
3184
3372
  }, {
3185
3373
  invite?: boolean | undefined;
3374
+ attach?: boolean | undefined;
3186
3375
  rename?: boolean | undefined;
3187
3376
  lock?: boolean | undefined;
3188
3377
  mute?: boolean | undefined;
@@ -3192,6 +3381,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3192
3381
  }>;
3193
3382
  previous: z.ZodObject<{
3194
3383
  invite: z.ZodOptional<z.ZodBoolean>;
3384
+ attach: z.ZodOptional<z.ZodBoolean>;
3195
3385
  rename: z.ZodOptional<z.ZodBoolean>;
3196
3386
  lock: z.ZodOptional<z.ZodBoolean>;
3197
3387
  mute: z.ZodOptional<z.ZodBoolean>;
@@ -3200,6 +3390,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3200
3390
  turns: z.ZodOptional<z.ZodBoolean>;
3201
3391
  }, "strip", z.ZodTypeAny, {
3202
3392
  invite?: boolean | undefined;
3393
+ attach?: boolean | undefined;
3203
3394
  rename?: boolean | undefined;
3204
3395
  lock?: boolean | undefined;
3205
3396
  mute?: boolean | undefined;
@@ -3208,6 +3399,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3208
3399
  turns?: boolean | undefined;
3209
3400
  }, {
3210
3401
  invite?: boolean | undefined;
3402
+ attach?: boolean | undefined;
3211
3403
  rename?: boolean | undefined;
3212
3404
  lock?: boolean | undefined;
3213
3405
  mute?: boolean | undefined;
@@ -3219,6 +3411,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3219
3411
  participantId: string;
3220
3412
  previous: {
3221
3413
  invite?: boolean | undefined;
3414
+ attach?: boolean | undefined;
3222
3415
  rename?: boolean | undefined;
3223
3416
  lock?: boolean | undefined;
3224
3417
  mute?: boolean | undefined;
@@ -3228,6 +3421,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3228
3421
  };
3229
3422
  permissions: {
3230
3423
  invite?: boolean | undefined;
3424
+ attach?: boolean | undefined;
3231
3425
  rename?: boolean | undefined;
3232
3426
  lock?: boolean | undefined;
3233
3427
  mute?: boolean | undefined;
@@ -3239,6 +3433,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3239
3433
  participantId: string;
3240
3434
  previous: {
3241
3435
  invite?: boolean | undefined;
3436
+ attach?: boolean | undefined;
3242
3437
  rename?: boolean | undefined;
3243
3438
  lock?: boolean | undefined;
3244
3439
  mute?: boolean | undefined;
@@ -3248,6 +3443,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3248
3443
  };
3249
3444
  permissions: {
3250
3445
  invite?: boolean | undefined;
3446
+ attach?: boolean | undefined;
3251
3447
  rename?: boolean | undefined;
3252
3448
  lock?: boolean | undefined;
3253
3449
  mute?: boolean | undefined;
@@ -3262,6 +3458,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3262
3458
  participantId: string;
3263
3459
  previous: {
3264
3460
  invite?: boolean | undefined;
3461
+ attach?: boolean | undefined;
3265
3462
  rename?: boolean | undefined;
3266
3463
  lock?: boolean | undefined;
3267
3464
  mute?: boolean | undefined;
@@ -3271,6 +3468,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3271
3468
  };
3272
3469
  permissions: {
3273
3470
  invite?: boolean | undefined;
3471
+ attach?: boolean | undefined;
3274
3472
  rename?: boolean | undefined;
3275
3473
  lock?: boolean | undefined;
3276
3474
  mute?: boolean | undefined;
@@ -3285,6 +3483,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3285
3483
  participantId: string;
3286
3484
  previous: {
3287
3485
  invite?: boolean | undefined;
3486
+ attach?: boolean | undefined;
3288
3487
  rename?: boolean | undefined;
3289
3488
  lock?: boolean | undefined;
3290
3489
  mute?: boolean | undefined;
@@ -3294,6 +3493,7 @@ export declare const RoomEvent: z.ZodIntersection<z.ZodObject<{
3294
3493
  };
3295
3494
  permissions: {
3296
3495
  invite?: boolean | undefined;
3496
+ attach?: boolean | undefined;
3297
3497
  rename?: boolean | undefined;
3298
3498
  lock?: boolean | undefined;
3299
3499
  mute?: boolean | undefined;
@@ -3375,16 +3575,50 @@ export declare const SendEventRequest: z.ZodIntersection<z.ZodObject<{
3375
3575
  responseStage: z.ZodOptional<z.ZodEnum<["progress", "final"]>>;
3376
3576
  /** A new attempt at a request that failed: the failed request's delivery ID. Its answer resolves that request too. */
3377
3577
  recovers: z.ZodOptional<z.ZodString>;
3578
+ /** Files sent with this message. Only a relay with a file store accepts them; see `filesSupported`. */
3579
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3580
+ fileId: z.ZodString;
3581
+ name: z.ZodString;
3582
+ size: z.ZodNumber;
3583
+ mediaType: z.ZodString;
3584
+ sha256: z.ZodString;
3585
+ }, "strip", z.ZodTypeAny, {
3586
+ name: string;
3587
+ fileId: string;
3588
+ size: number;
3589
+ mediaType: string;
3590
+ sha256: string;
3591
+ }, {
3592
+ name: string;
3593
+ fileId: string;
3594
+ size: number;
3595
+ mediaType: string;
3596
+ sha256: string;
3597
+ }>, "many">>;
3378
3598
  }, "strip", z.ZodTypeAny, {
3379
3599
  text: string;
3380
3600
  priority: "normal" | "priority";
3381
3601
  responseStage?: "progress" | "final" | undefined;
3382
3602
  recovers?: string | undefined;
3603
+ attachments?: {
3604
+ name: string;
3605
+ fileId: string;
3606
+ size: number;
3607
+ mediaType: string;
3608
+ sha256: string;
3609
+ }[] | undefined;
3383
3610
  }, {
3384
3611
  text: string;
3385
3612
  priority?: "normal" | "priority" | undefined;
3386
3613
  responseStage?: "progress" | "final" | undefined;
3387
3614
  recovers?: string | undefined;
3615
+ attachments?: {
3616
+ name: string;
3617
+ fileId: string;
3618
+ size: number;
3619
+ mediaType: string;
3620
+ sha256: string;
3621
+ }[] | undefined;
3388
3622
  }>;
3389
3623
  }, "strip", z.ZodTypeAny, {
3390
3624
  type: "message";
@@ -3393,6 +3627,13 @@ export declare const SendEventRequest: z.ZodIntersection<z.ZodObject<{
3393
3627
  priority: "normal" | "priority";
3394
3628
  responseStage?: "progress" | "final" | undefined;
3395
3629
  recovers?: string | undefined;
3630
+ attachments?: {
3631
+ name: string;
3632
+ fileId: string;
3633
+ size: number;
3634
+ mediaType: string;
3635
+ sha256: string;
3636
+ }[] | undefined;
3396
3637
  };
3397
3638
  }, {
3398
3639
  type: "message";
@@ -3401,6 +3642,13 @@ export declare const SendEventRequest: z.ZodIntersection<z.ZodObject<{
3401
3642
  priority?: "normal" | "priority" | undefined;
3402
3643
  responseStage?: "progress" | "final" | undefined;
3403
3644
  recovers?: string | undefined;
3645
+ attachments?: {
3646
+ name: string;
3647
+ fileId: string;
3648
+ size: number;
3649
+ mediaType: string;
3650
+ sha256: string;
3651
+ }[] | undefined;
3404
3652
  };
3405
3653
  }>, z.ZodObject<{
3406
3654
  type: z.ZodLiteral<"message.received">;