@atproto/pds 0.4.21 → 0.4.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/actor-store/blob/reader.d.ts +4 -0
  3. package/dist/actor-store/blob/reader.d.ts.map +1 -1
  4. package/dist/actor-store/blob/reader.js +9 -3
  5. package/dist/actor-store/blob/reader.js.map +1 -1
  6. package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
  7. package/dist/api/com/atproto/repo/putRecord.js +19 -1
  8. package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/lexicon/index.d.ts +59 -0
  11. package/dist/lexicon/index.d.ts.map +1 -1
  12. package/dist/lexicon/index.js +164 -1
  13. package/dist/lexicon/index.js.map +1 -1
  14. package/dist/lexicon/lexicons.d.ts +912 -0
  15. package/dist/lexicon/lexicons.d.ts.map +1 -1
  16. package/dist/lexicon/lexicons.js +938 -0
  17. package/dist/lexicon/lexicons.js.map +1 -1
  18. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +7 -0
  19. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  20. package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
  21. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  22. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +11 -0
  23. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -0
  24. package/dist/lexicon/types/chat/bsky/actor/declaration.js +17 -0
  25. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -0
  26. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +21 -0
  27. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -0
  28. package/dist/lexicon/types/chat/bsky/actor/defs.js +16 -0
  29. package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -0
  30. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts +33 -0
  31. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts.map +1 -0
  32. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js +3 -0
  33. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js.map +1 -0
  34. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +32 -0
  35. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -0
  36. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js +3 -0
  37. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js.map +1 -0
  38. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +109 -0
  39. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -0
  40. package/dist/lexicon/types/chat/bsky/convo/defs.js +106 -0
  41. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -0
  42. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +39 -0
  43. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -0
  44. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js +3 -0
  45. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -0
  46. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +36 -0
  47. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -0
  48. package/dist/lexicon/types/chat/bsky/convo/getConvo.js +3 -0
  49. package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -0
  50. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +36 -0
  51. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -0
  52. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js +3 -0
  53. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -0
  54. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +40 -0
  55. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -0
  56. package/dist/lexicon/types/chat/bsky/convo/getLog.js +3 -0
  57. package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -0
  58. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +42 -0
  59. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -0
  60. package/dist/lexicon/types/chat/bsky/convo/getMessages.js +3 -0
  61. package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -0
  62. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +41 -0
  63. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -0
  64. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js +3 -0
  65. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -0
  66. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +38 -0
  67. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -0
  68. package/dist/lexicon/types/chat/bsky/convo/listConvos.js +3 -0
  69. package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -0
  70. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +41 -0
  71. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -0
  72. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js +3 -0
  73. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -0
  74. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +39 -0
  75. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -0
  76. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js +3 -0
  77. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -0
  78. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +49 -0
  79. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -0
  80. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +16 -0
  81. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -0
  82. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +41 -0
  83. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -0
  84. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js +3 -0
  85. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -0
  86. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +42 -0
  87. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -0
  88. package/dist/lexicon/types/chat/bsky/convo/updateRead.js +3 -0
  89. package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -0
  90. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts +47 -0
  91. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts.map +1 -0
  92. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +16 -0
  93. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -0
  94. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +43 -0
  95. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -0
  96. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js +3 -0
  97. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -0
  98. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts +31 -0
  99. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts.map +1 -0
  100. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js +3 -0
  101. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js.map +1 -0
  102. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -1
  103. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  104. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  105. package/package.json +9 -9
  106. package/src/actor-store/blob/reader.ts +13 -4
  107. package/src/api/com/atproto/repo/putRecord.ts +34 -1
  108. package/src/index.ts +1 -1
  109. package/src/lexicon/index.ts +254 -0
  110. package/src/lexicon/lexicons.ts +940 -0
  111. package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
  112. package/src/lexicon/types/chat/bsky/actor/declaration.ts +25 -0
  113. package/src/lexicon/types/chat/bsky/actor/defs.ts +34 -0
  114. package/src/lexicon/types/chat/bsky/actor/deleteAccount.ts +42 -0
  115. package/src/lexicon/types/chat/bsky/actor/exportAccountData.ts +38 -0
  116. package/src/lexicon/types/chat/bsky/convo/defs.ts +215 -0
  117. package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +48 -0
  118. package/src/lexicon/types/chat/bsky/convo/getConvo.ts +46 -0
  119. package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +46 -0
  120. package/src/lexicon/types/chat/bsky/convo/getLog.ts +53 -0
  121. package/src/lexicon/types/chat/bsky/convo/getMessages.ts +53 -0
  122. package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +50 -0
  123. package/src/lexicon/types/chat/bsky/convo/listConvos.ts +48 -0
  124. package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +50 -0
  125. package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +48 -0
  126. package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +68 -0
  127. package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +50 -0
  128. package/src/lexicon/types/chat/bsky/convo/updateRead.ts +51 -0
  129. package/src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts +67 -0
  130. package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +54 -0
  131. package/src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts +40 -0
  132. package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -0
  133. package/tests/crud.test.ts +30 -0
  134. package/tests/server.test.ts +1 -1
@@ -129,6 +129,23 @@ import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspec
129
129
  import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
130
130
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
131
131
  import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
132
+ import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount'
133
+ import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData'
134
+ import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf'
135
+ import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo'
136
+ import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers'
137
+ import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog'
138
+ import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages'
139
+ import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo'
140
+ import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos'
141
+ import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo'
142
+ import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage'
143
+ import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch'
144
+ import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo'
145
+ import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead'
146
+ import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata'
147
+ import * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext'
148
+ import * as ChatBskyModerationUpdateActorAccess from './types/chat/bsky/moderation/updateActorAccess'
132
149
  import * as ToolsOzoneCommunicationCreateTemplate from './types/tools/ozone/communication/createTemplate'
133
150
  import * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate'
134
151
  import * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates'
@@ -183,12 +200,14 @@ export class Server {
183
200
  xrpc: XrpcServer
184
201
  com: ComNS
185
202
  app: AppNS
203
+ chat: ChatNS
186
204
  tools: ToolsNS
187
205
 
188
206
  constructor(options?: XrpcOptions) {
189
207
  this.xrpc = createXrpcServer(schemas, options)
190
208
  this.com = new ComNS(this)
191
209
  this.app = new AppNS(this)
210
+ this.chat = new ChatNS(this)
192
211
  this.tools = new ToolsNS(this)
193
212
  }
194
213
  }
@@ -1713,6 +1732,241 @@ export class AppBskyUnspeccedNS {
1713
1732
  }
1714
1733
  }
1715
1734
 
1735
+ export class ChatNS {
1736
+ _server: Server
1737
+ bsky: ChatBskyNS
1738
+
1739
+ constructor(server: Server) {
1740
+ this._server = server
1741
+ this.bsky = new ChatBskyNS(server)
1742
+ }
1743
+ }
1744
+
1745
+ export class ChatBskyNS {
1746
+ _server: Server
1747
+ actor: ChatBskyActorNS
1748
+ convo: ChatBskyConvoNS
1749
+ moderation: ChatBskyModerationNS
1750
+
1751
+ constructor(server: Server) {
1752
+ this._server = server
1753
+ this.actor = new ChatBskyActorNS(server)
1754
+ this.convo = new ChatBskyConvoNS(server)
1755
+ this.moderation = new ChatBskyModerationNS(server)
1756
+ }
1757
+ }
1758
+
1759
+ export class ChatBskyActorNS {
1760
+ _server: Server
1761
+
1762
+ constructor(server: Server) {
1763
+ this._server = server
1764
+ }
1765
+
1766
+ deleteAccount<AV extends AuthVerifier>(
1767
+ cfg: ConfigOf<
1768
+ AV,
1769
+ ChatBskyActorDeleteAccount.Handler<ExtractAuth<AV>>,
1770
+ ChatBskyActorDeleteAccount.HandlerReqCtx<ExtractAuth<AV>>
1771
+ >,
1772
+ ) {
1773
+ const nsid = 'chat.bsky.actor.deleteAccount' // @ts-ignore
1774
+ return this._server.xrpc.method(nsid, cfg)
1775
+ }
1776
+
1777
+ exportAccountData<AV extends AuthVerifier>(
1778
+ cfg: ConfigOf<
1779
+ AV,
1780
+ ChatBskyActorExportAccountData.Handler<ExtractAuth<AV>>,
1781
+ ChatBskyActorExportAccountData.HandlerReqCtx<ExtractAuth<AV>>
1782
+ >,
1783
+ ) {
1784
+ const nsid = 'chat.bsky.actor.exportAccountData' // @ts-ignore
1785
+ return this._server.xrpc.method(nsid, cfg)
1786
+ }
1787
+ }
1788
+
1789
+ export class ChatBskyConvoNS {
1790
+ _server: Server
1791
+
1792
+ constructor(server: Server) {
1793
+ this._server = server
1794
+ }
1795
+
1796
+ deleteMessageForSelf<AV extends AuthVerifier>(
1797
+ cfg: ConfigOf<
1798
+ AV,
1799
+ ChatBskyConvoDeleteMessageForSelf.Handler<ExtractAuth<AV>>,
1800
+ ChatBskyConvoDeleteMessageForSelf.HandlerReqCtx<ExtractAuth<AV>>
1801
+ >,
1802
+ ) {
1803
+ const nsid = 'chat.bsky.convo.deleteMessageForSelf' // @ts-ignore
1804
+ return this._server.xrpc.method(nsid, cfg)
1805
+ }
1806
+
1807
+ getConvo<AV extends AuthVerifier>(
1808
+ cfg: ConfigOf<
1809
+ AV,
1810
+ ChatBskyConvoGetConvo.Handler<ExtractAuth<AV>>,
1811
+ ChatBskyConvoGetConvo.HandlerReqCtx<ExtractAuth<AV>>
1812
+ >,
1813
+ ) {
1814
+ const nsid = 'chat.bsky.convo.getConvo' // @ts-ignore
1815
+ return this._server.xrpc.method(nsid, cfg)
1816
+ }
1817
+
1818
+ getConvoForMembers<AV extends AuthVerifier>(
1819
+ cfg: ConfigOf<
1820
+ AV,
1821
+ ChatBskyConvoGetConvoForMembers.Handler<ExtractAuth<AV>>,
1822
+ ChatBskyConvoGetConvoForMembers.HandlerReqCtx<ExtractAuth<AV>>
1823
+ >,
1824
+ ) {
1825
+ const nsid = 'chat.bsky.convo.getConvoForMembers' // @ts-ignore
1826
+ return this._server.xrpc.method(nsid, cfg)
1827
+ }
1828
+
1829
+ getLog<AV extends AuthVerifier>(
1830
+ cfg: ConfigOf<
1831
+ AV,
1832
+ ChatBskyConvoGetLog.Handler<ExtractAuth<AV>>,
1833
+ ChatBskyConvoGetLog.HandlerReqCtx<ExtractAuth<AV>>
1834
+ >,
1835
+ ) {
1836
+ const nsid = 'chat.bsky.convo.getLog' // @ts-ignore
1837
+ return this._server.xrpc.method(nsid, cfg)
1838
+ }
1839
+
1840
+ getMessages<AV extends AuthVerifier>(
1841
+ cfg: ConfigOf<
1842
+ AV,
1843
+ ChatBskyConvoGetMessages.Handler<ExtractAuth<AV>>,
1844
+ ChatBskyConvoGetMessages.HandlerReqCtx<ExtractAuth<AV>>
1845
+ >,
1846
+ ) {
1847
+ const nsid = 'chat.bsky.convo.getMessages' // @ts-ignore
1848
+ return this._server.xrpc.method(nsid, cfg)
1849
+ }
1850
+
1851
+ leaveConvo<AV extends AuthVerifier>(
1852
+ cfg: ConfigOf<
1853
+ AV,
1854
+ ChatBskyConvoLeaveConvo.Handler<ExtractAuth<AV>>,
1855
+ ChatBskyConvoLeaveConvo.HandlerReqCtx<ExtractAuth<AV>>
1856
+ >,
1857
+ ) {
1858
+ const nsid = 'chat.bsky.convo.leaveConvo' // @ts-ignore
1859
+ return this._server.xrpc.method(nsid, cfg)
1860
+ }
1861
+
1862
+ listConvos<AV extends AuthVerifier>(
1863
+ cfg: ConfigOf<
1864
+ AV,
1865
+ ChatBskyConvoListConvos.Handler<ExtractAuth<AV>>,
1866
+ ChatBskyConvoListConvos.HandlerReqCtx<ExtractAuth<AV>>
1867
+ >,
1868
+ ) {
1869
+ const nsid = 'chat.bsky.convo.listConvos' // @ts-ignore
1870
+ return this._server.xrpc.method(nsid, cfg)
1871
+ }
1872
+
1873
+ muteConvo<AV extends AuthVerifier>(
1874
+ cfg: ConfigOf<
1875
+ AV,
1876
+ ChatBskyConvoMuteConvo.Handler<ExtractAuth<AV>>,
1877
+ ChatBskyConvoMuteConvo.HandlerReqCtx<ExtractAuth<AV>>
1878
+ >,
1879
+ ) {
1880
+ const nsid = 'chat.bsky.convo.muteConvo' // @ts-ignore
1881
+ return this._server.xrpc.method(nsid, cfg)
1882
+ }
1883
+
1884
+ sendMessage<AV extends AuthVerifier>(
1885
+ cfg: ConfigOf<
1886
+ AV,
1887
+ ChatBskyConvoSendMessage.Handler<ExtractAuth<AV>>,
1888
+ ChatBskyConvoSendMessage.HandlerReqCtx<ExtractAuth<AV>>
1889
+ >,
1890
+ ) {
1891
+ const nsid = 'chat.bsky.convo.sendMessage' // @ts-ignore
1892
+ return this._server.xrpc.method(nsid, cfg)
1893
+ }
1894
+
1895
+ sendMessageBatch<AV extends AuthVerifier>(
1896
+ cfg: ConfigOf<
1897
+ AV,
1898
+ ChatBskyConvoSendMessageBatch.Handler<ExtractAuth<AV>>,
1899
+ ChatBskyConvoSendMessageBatch.HandlerReqCtx<ExtractAuth<AV>>
1900
+ >,
1901
+ ) {
1902
+ const nsid = 'chat.bsky.convo.sendMessageBatch' // @ts-ignore
1903
+ return this._server.xrpc.method(nsid, cfg)
1904
+ }
1905
+
1906
+ unmuteConvo<AV extends AuthVerifier>(
1907
+ cfg: ConfigOf<
1908
+ AV,
1909
+ ChatBskyConvoUnmuteConvo.Handler<ExtractAuth<AV>>,
1910
+ ChatBskyConvoUnmuteConvo.HandlerReqCtx<ExtractAuth<AV>>
1911
+ >,
1912
+ ) {
1913
+ const nsid = 'chat.bsky.convo.unmuteConvo' // @ts-ignore
1914
+ return this._server.xrpc.method(nsid, cfg)
1915
+ }
1916
+
1917
+ updateRead<AV extends AuthVerifier>(
1918
+ cfg: ConfigOf<
1919
+ AV,
1920
+ ChatBskyConvoUpdateRead.Handler<ExtractAuth<AV>>,
1921
+ ChatBskyConvoUpdateRead.HandlerReqCtx<ExtractAuth<AV>>
1922
+ >,
1923
+ ) {
1924
+ const nsid = 'chat.bsky.convo.updateRead' // @ts-ignore
1925
+ return this._server.xrpc.method(nsid, cfg)
1926
+ }
1927
+ }
1928
+
1929
+ export class ChatBskyModerationNS {
1930
+ _server: Server
1931
+
1932
+ constructor(server: Server) {
1933
+ this._server = server
1934
+ }
1935
+
1936
+ getActorMetadata<AV extends AuthVerifier>(
1937
+ cfg: ConfigOf<
1938
+ AV,
1939
+ ChatBskyModerationGetActorMetadata.Handler<ExtractAuth<AV>>,
1940
+ ChatBskyModerationGetActorMetadata.HandlerReqCtx<ExtractAuth<AV>>
1941
+ >,
1942
+ ) {
1943
+ const nsid = 'chat.bsky.moderation.getActorMetadata' // @ts-ignore
1944
+ return this._server.xrpc.method(nsid, cfg)
1945
+ }
1946
+
1947
+ getMessageContext<AV extends AuthVerifier>(
1948
+ cfg: ConfigOf<
1949
+ AV,
1950
+ ChatBskyModerationGetMessageContext.Handler<ExtractAuth<AV>>,
1951
+ ChatBskyModerationGetMessageContext.HandlerReqCtx<ExtractAuth<AV>>
1952
+ >,
1953
+ ) {
1954
+ const nsid = 'chat.bsky.moderation.getMessageContext' // @ts-ignore
1955
+ return this._server.xrpc.method(nsid, cfg)
1956
+ }
1957
+
1958
+ updateActorAccess<AV extends AuthVerifier>(
1959
+ cfg: ConfigOf<
1960
+ AV,
1961
+ ChatBskyModerationUpdateActorAccess.Handler<ExtractAuth<AV>>,
1962
+ ChatBskyModerationUpdateActorAccess.HandlerReqCtx<ExtractAuth<AV>>
1963
+ >,
1964
+ ) {
1965
+ const nsid = 'chat.bsky.moderation.updateActorAccess' // @ts-ignore
1966
+ return this._server.xrpc.method(nsid, cfg)
1967
+ }
1968
+ }
1969
+
1716
1970
  export class ToolsNS {
1717
1971
  _server: Server
1718
1972
  ozone: ToolsOzoneNS