···9 type StreamAuthVerifier,
10} from "npm:@atproto/xrpc-server"
11import { schemas } from './lexicons.ts'
012import * as SocialGrainGalleryGetGalleryThread from './types/social/grain/gallery/getGalleryThread.ts'
13import * as SocialGrainGalleryGetActorGalleries from './types/social/grain/gallery/getActorGalleries.ts'
14import * as SocialGrainGalleryGetGallery from './types/social/grain/gallery/getGallery.ts'
···184185export class SocialGrainNS {
186 _server: Server
0187 gallery: SocialGrainGalleryNS
188 graph: SocialGrainGraphNS
189 labeler: SocialGrainLabelerNS
···193194 constructor(server: Server) {
195 this._server = server
0196 this.gallery = new SocialGrainGalleryNS(server)
197 this.graph = new SocialGrainGraphNS(server)
198 this.labeler = new SocialGrainLabelerNS(server)
199 this.feed = new SocialGrainFeedNS(server)
200 this.actor = new SocialGrainActorNS(server)
201 this.photo = new SocialGrainPhotoNS(server)
0000000000000000000202 }
203}
204
···9 type StreamAuthVerifier,
10} from "npm:@atproto/xrpc-server"
11import { schemas } from './lexicons.ts'
12+import * as SocialGrainNotificationGetNotifications from './types/social/grain/notification/getNotifications.ts'
13import * as SocialGrainGalleryGetGalleryThread from './types/social/grain/gallery/getGalleryThread.ts'
14import * as SocialGrainGalleryGetActorGalleries from './types/social/grain/gallery/getActorGalleries.ts'
15import * as SocialGrainGalleryGetGallery from './types/social/grain/gallery/getGallery.ts'
···185186export class SocialGrainNS {
187 _server: Server
188+ notification: SocialGrainNotificationNS
189 gallery: SocialGrainGalleryNS
190 graph: SocialGrainGraphNS
191 labeler: SocialGrainLabelerNS
···195196 constructor(server: Server) {
197 this._server = server
198+ this.notification = new SocialGrainNotificationNS(server)
199 this.gallery = new SocialGrainGalleryNS(server)
200 this.graph = new SocialGrainGraphNS(server)
201 this.labeler = new SocialGrainLabelerNS(server)
202 this.feed = new SocialGrainFeedNS(server)
203 this.actor = new SocialGrainActorNS(server)
204 this.photo = new SocialGrainPhotoNS(server)
205+ }
206+}
207+208+export class SocialGrainNotificationNS {
209+ _server: Server
210+211+ constructor(server: Server) {
212+ this._server = server
213+ }
214+215+ getNotifications<AV extends AuthVerifier>(
216+ cfg: ConfigOf<
217+ AV,
218+ SocialGrainNotificationGetNotifications.Handler<ExtractAuth<AV>>,
219+ SocialGrainNotificationGetNotifications.HandlerReqCtx<ExtractAuth<AV>>
220+ >,
221+ ) {
222+ const nsid = 'social.grain.notification.getNotifications' // @ts-ignore
223+ return this._server.xrpc.method(nsid, cfg)
224 }
225}
226