@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.
- package/CHANGELOG.md +16 -0
- package/dist/actor-store/blob/reader.d.ts +4 -0
- package/dist/actor-store/blob/reader.d.ts.map +1 -1
- package/dist/actor-store/blob/reader.js +9 -3
- package/dist/actor-store/blob/reader.js.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.js +19 -1
- package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lexicon/index.d.ts +59 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +164 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +912 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +938 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +7 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +11 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.js +17 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +21 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.js +16 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts +33 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js +3 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +32 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js +3 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +109 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.js +106 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +39 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +36 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +36 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +40 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +42 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +38 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +39 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +49 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +16 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +42 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts +47 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +16 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +43 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js +3 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts +31 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js +3 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
- package/package.json +9 -9
- package/src/actor-store/blob/reader.ts +13 -4
- package/src/api/com/atproto/repo/putRecord.ts +34 -1
- package/src/index.ts +1 -1
- package/src/lexicon/index.ts +254 -0
- package/src/lexicon/lexicons.ts +940 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
- package/src/lexicon/types/chat/bsky/actor/declaration.ts +25 -0
- package/src/lexicon/types/chat/bsky/actor/defs.ts +34 -0
- package/src/lexicon/types/chat/bsky/actor/deleteAccount.ts +42 -0
- package/src/lexicon/types/chat/bsky/actor/exportAccountData.ts +38 -0
- package/src/lexicon/types/chat/bsky/convo/defs.ts +215 -0
- package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/getConvo.ts +46 -0
- package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +46 -0
- package/src/lexicon/types/chat/bsky/convo/getLog.ts +53 -0
- package/src/lexicon/types/chat/bsky/convo/getMessages.ts +53 -0
- package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/listConvos.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +68 -0
- package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/updateRead.ts +51 -0
- package/src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts +67 -0
- package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +54 -0
- package/src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts +40 -0
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -0
- package/tests/crud.test.ts +30 -0
- package/tests/server.test.ts +1 -1
package/src/lexicon/index.ts
CHANGED
@@ -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
|