@neynar/nodejs-sdk
Version:
SDK to interact with Neynar APIs (https://docs.neynar.com/reference/quickstart)
106 lines (105 loc) • 4.82 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.175.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 { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import { type RequestArgs, BaseAPI } from '../base';
import type { Billing200Response } from '../models';
/**
* OrganizationApi - axios parameter creator
* @export
*/
export declare const OrganizationApiAxiosParamCreator: (configuration?: Configuration) => {
/**
* Retrieves billing and subscription details for the current organization, including plan status, product category, billing email, and effective plan.
* @summary Get billing information for the current organization
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @returns {Promise<Billing200Response>} A promise that resolves to a `Billing200Response` object
*
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/billing)
*
*/
billing: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
};
/**
* OrganizationApi - functional programming interface
* @export
*/
export declare const OrganizationApiFp: (configuration?: Configuration) => {
/**
* Retrieves billing and subscription details for the current organization, including plan status, product category, billing email, and effective plan.
* @summary Get billing information for the current organization
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @returns {Promise<Billing200Response>} A promise that resolves to a `Billing200Response` object
*
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/billing)
*
*/
billing(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Billing200Response>>;
};
/**
* OrganizationApi - factory interface
* @export
*/
export declare const OrganizationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
* Retrieves billing and subscription details for the current organization, including plan status, product category, billing email, and effective plan.
* @summary Get billing information for the current organization
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @returns {Promise<Billing200Response>} A promise that resolves to a `Billing200Response` object
*
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/billing)
*
*/
billing(options?: RawAxiosRequestConfig): AxiosPromise<Billing200Response>;
};
/**
* OrganizationApi - interface
* @export
* @interface OrganizationApi
*/
export interface OrganizationApiInterface {
/**
* Retrieves billing and subscription details for the current organization, including plan status, product category, billing email, and effective plan.
* @summary Get billing information for the current organization
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof OrganizationApiInterface
* @returns {Promise<Billing200Response>} A promise that resolves to a `Billing200Response` object
*
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/billing)
*
*/
billing(options?: RawAxiosRequestConfig): AxiosPromise<Billing200Response>;
}
/**
* OrganizationApi - object-oriented interface
* @export
* @class OrganizationApi
* @extends {BaseAPI}
*/
export declare class OrganizationApi extends BaseAPI implements OrganizationApiInterface {
/**
* Retrieves billing and subscription details for the current organization, including plan status, product category, billing email, and effective plan.
* @summary Get billing information for the current organization
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof OrganizationApi
* @returns {Promise<Billing200Response>} A promise that resolves to a `Billing200Response` object
*
* For more information, refer to the [API documentation](https://docs.neynar.com/reference/billing)
*
*/
billing(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Billing200Response, any, {}>>;
}