Something went wrong. Try again.
a tool for shared writing and social publishing
Something went wrong. Try again.
TypeScript
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677import { Inngest } from "inngest";
import { EventSchemas } from "inngest";
export type Events = { "feeds/index-follows": { data: { did: string; }; }; "appview/profile-update": { data: { record: any; did: string; }; }; "appview/index-bsky-post-mention": { data: { post_uri: string; document_link: string; }; }; "appview/come-online": { data: {} }; "user/migrate-to-standard": { data: { did: string; }; }; "user/cleanup-expired-oauth-sessions": { data: {}; }; "user/check-oauth-session": { data: { identityId: string; did: string; tokenCount: number; }; }; "documents/fix-publication-references": { data: { documentUris: string[]; }; }; "documents/fix-incorrect-site-values": { data: { did: string; }; }; "documents/fix-postref": { data: { documentUris?: string[]; }; }; "appview/sync-document-metadata": { data: { document_uri: string; bsky_post_uri?: string; }; }; "user/write-records-to-pds": { data: { did: string; records: Array<{ collection: string; rkey: string; record: unknown; }>; }; };};
// Create a client to send and receive eventsexport const inngest = new Inngest({ id: "leaflet", schemas: new EventSchemas().fromRecord<Events>(),});