UNPKG

@standard-crypto/farcaster-js-hub-rest

Version:

A tool for interacting with the REST API of any Farcaster hub.

59 lines 1.5 kB
/* tslint:disable */ /* eslint-disable */ /** * Farcaster Hub REST API * Perform basic queries of Farcaster state via the REST API of a Farcaster hub. See the [Farcaster docs](https://www.thehubble.xyz/docs/httpapi/httpapi.html) for more details. Some client libraries: - [TypeScript](https://www.npmjs.com/package/@standard-crypto/farcaster-js-hub-rest) * * The version of the OpenAPI document: 1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import globalAxios from 'axios'; export const BASE_PATH = "https://nemes.farcaster.xyz:2281".replace(/\/+$/, ""); /** * * @export */ export const COLLECTION_FORMATS = { csv: ",", ssv: " ", tsv: "\t", pipes: "|", }; /** * * @export * @class BaseAPI */ export class BaseAPI { basePath; axios; configuration; constructor(configuration, basePath = BASE_PATH, axios = globalAxios) { this.basePath = basePath; this.axios = axios; if (configuration) { this.configuration = configuration; this.basePath = configuration.basePath || this.basePath; } } } ; /** * * @export * @class RequiredError * @extends {Error} */ export class RequiredError extends Error { field; constructor(field, msg) { super(msg); this.field = field; this.name = "RequiredError"; } } //# sourceMappingURL=base.js.map