@neynar/nodejs-sdk
Version:
SDK to interact with Neynar APIs (https://docs.neynar.com/reference/quickstart)
112 lines (111 loc) • 2.54 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.34.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 { SubscriptionMetadata } from './subscription-metadata';
import type { SubscriptionPrice } from './subscription-price';
import type { SubscriptionTier } from './subscription-tier';
import type { SubscriptionToken } from './subscription-token';
import type { User } from './user';
/**
*
* @export
* @interface SubscribedTo
*/
export interface SubscribedTo {
/**
*
* @type {string}
* @memberof SubscribedTo
*/
'object': SubscribedToObjectEnum;
/**
*
* @type {string}
* @memberof SubscribedTo
*/
'provider_name'?: string;
/**
*
* @type {string}
* @memberof SubscribedTo
*/
'contract_address': string;
/**
*
* @type {number}
* @memberof SubscribedTo
*/
'chain': number;
/**
*
* @type {SubscriptionMetadata}
* @memberof SubscribedTo
*/
'metadata': SubscriptionMetadata;
/**
*
* @type {string}
* @memberof SubscribedTo
*/
'owner_address': string;
/**
*
* @type {SubscriptionPrice}
* @memberof SubscribedTo
*/
'price': SubscriptionPrice;
/**
*
* @type {Array<SubscriptionTier>}
* @memberof SubscribedTo
*/
'tiers'?: Array<SubscriptionTier>;
/**
*
* @type {number}
* @memberof SubscribedTo
*/
'protocol_version': number;
/**
*
* @type {SubscriptionToken}
* @memberof SubscribedTo
*/
'token': SubscriptionToken;
/**
*
* @type {string}
* @memberof SubscribedTo
*/
'expires_at': string;
/**
*
* @type {string}
* @memberof SubscribedTo
*/
'subscribed_at': string;
/**
*
* @type {SubscriptionTier}
* @memberof SubscribedTo
*/
'tier': SubscriptionTier;
/**
*
* @type {User}
* @memberof SubscribedTo
*/
'creator': User;
}
export declare const SubscribedToObjectEnum: {
readonly Subscription: "subscription";
};
export type SubscribedToObjectEnum = typeof SubscribedToObjectEnum[keyof typeof SubscribedToObjectEnum];