forked from
leaflet.pub/leaflet
a tool for shared writing and social publishing
1import { Inngest } from "inngest";
2
3import { EventSchemas } from "inngest";
4
5export type Events = {
6 "feeds/index-follows": {
7 data: {
8 did: string;
9 };
10 };
11 "appview/profile-update": {
12 data: {
13 record: any;
14 did: string;
15 };
16 };
17 "appview/index-bsky-post-mention": {
18 data: {
19 post_uri: string;
20 document_link: string;
21 };
22 };
23 "appview/come-online": { data: {} };
24};
25
26// Create a client to send and receive events
27export const inngest = new Inngest({
28 id: "leaflet",
29 schemas: new EventSchemas().fromRecord<Events>(),
30});