@neynar/nodejs-sdk
Version:
SDK to interact with Neynar APIs (https://docs.neynar.com/reference/quickstart)
83 lines (82 loc) • 2.17 kB
TypeScript
/**
* Neynar API
* The Neynar API allows you to interact with the Farcaster protocol among other things. See the [Neynar docs](https://docs.neynar.com/reference) for more details.
*
* The version of the OpenAPI document: 3.115.0
* Contact: team@neynar.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { Cast } from './cast';
import type { Follower } from './follower';
import type { ReactionWithUserInfo } from './reaction-with-user-info';
/**
*
* @export
* @interface Notification
*/
export interface Notification {
/**
*
* @type {string}
* @memberof Notification
*/
'object': NotificationObjectEnum;
/**
*
* @type {string}
* @memberof Notification
*/
'most_recent_timestamp': string;
/**
*
* @type {string}
* @memberof Notification
*/
'type': NotificationTypeEnum;
/**
*
* @type {boolean}
* @memberof Notification
*/
'seen': boolean;
/**
*
* @type {Array<Follower>}
* @memberof Notification
*/
'follows'?: Array<Follower>;
/**
*
* @type {Cast}
* @memberof Notification
*/
'cast'?: Cast;
/**
*
* @type {Array<ReactionWithUserInfo>}
* @memberof Notification
*/
'reactions'?: Array<ReactionWithUserInfo>;
/**
* The number of notifications of this(follows, likes, recast) type bundled in a single notification.
* @type {number}
* @memberof Notification
*/
'count'?: number;
}
export declare const NotificationObjectEnum: {
readonly Notification: "notification";
};
export type NotificationObjectEnum = typeof NotificationObjectEnum[keyof typeof NotificationObjectEnum];
export declare const NotificationTypeEnum: {
readonly Follows: "follows";
readonly Recasts: "recasts";
readonly Likes: "likes";
readonly Mention: "mention";
readonly Reply: "reply";
readonly Quote: "quote";
};
export type NotificationTypeEnum = typeof NotificationTypeEnum[keyof typeof NotificationTypeEnum];