@neynar/nodejs-sdk
Version:
SDK to interact with Neynar APIs (https://docs.neynar.com/reference/quickstart)
39 lines (38 loc) • 1.38 kB
TypeScript
/**
* Farcaster Hub API
* Perform basic queries of Farcaster state via the REST API of a Farcaster hub. See the [Neynar docs](https://docs.neynar.com/reference) for more details.
*
* The version of the OpenAPI document: 2.35.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 { CastId } from './cast-id';
import type { ReactionType } from './reaction-type';
/**
* Specifies the details of a reaction to content on Farcaster. A reaction must specify its type (like/recast) and either a target cast ID or URL to react to. Only one target (either castId or URL) should be specified per reaction.
* @export
* @interface ReactionBody
*/
export interface ReactionBody {
/**
*
* @type {ReactionType}
* @memberof ReactionBody
*/
'type': ReactionType;
/**
* The unique identifier of the cast being reacted to. Must be a valid CastId containing the creator\'s FID and the cast\'s hash.
* @type {CastId}
* @memberof ReactionBody
*/
'targetCastId'?: CastId;
/**
* The URL being reacted to. Used when reacting to external content or when the cast ID is not available.
* @type {string}
* @memberof ReactionBody
*/
'targetUrl'?: string;
}