UNPKG

@neynar/nodejs-sdk

Version:

SDK to interact with Neynar APIs (https://docs.neynar.com/reference/quickstart)

66 lines (65 loc) 1.6 kB
import type { Cast, User, CastDehydrated, UserDehydrated } from "../api"; export interface WebhookFollowCreated { data: { event_timestamp: string; user: UserDehydrated; object: "follow"; timestamp: string; target_user: UserDehydrated; }; type: "follow.created"; created_at: number; } export interface WebhookFollowDeleted { data: { event_timestamp: string; user: UserDehydrated; object: "unfollow"; timestamp: string; target_user: UserDehydrated; }; type: "follow.deleted"; created_at: number; } export interface WebhookReactionCreated { data: { cast: CastDehydrated; event_timestamp: string; user: UserDehydrated; object: "reaction"; timestamp: string; reaction_type: 1 | 2; }; type: "reaction.created"; created_at: number; } export interface WebhookReactionDeleted { data: { cast: CastDehydrated; event_timestamp: string; user: UserDehydrated; object: "reaction"; timestamp: string; reaction_type: 1 | 2; }; type: "reaction.deleted"; created_at: number; } export interface WebhookCastCreated { data: Cast; type: "cast.created"; created_at: number; event_timestamp: string; } export interface WebhookUserCreated { data: User; type: "user.created"; created_at: number; event_timestamp: string; } export interface WebhookUserUpdated { data: User; type: "user.updated"; created_at: number; event_timestamp: string; }