UNPKG

@hawksightco/swagger-client

Version:

OpenAPI client for Hawksight v2 Public API

132 lines (131 loc) 6.16 kB
/** * Hawksight API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 0.0.1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { AuthGenerateNonceBody } from '../models'; import { AuthGenerateSessionMessageBody } from '../models'; import { AuthRefreshSessionBody } from '../models'; import { TransactionMetadata } from '../models'; /** * AuthEndpointsApi - axios parameter creator * @export */ export declare const AuthEndpointsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Generates signed message containing nonce, user wallet, and user pda address. * @param {AuthGenerateNonceBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ authGenerateNoncePost: (body: AuthGenerateNonceBody, options?: AxiosRequestConfig) => Promise<RequestArgs>; /** * If wallet ownership is proven, this endpoint generates a session message. * @param {AuthGenerateSessionMessageBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ authGenerateSessionMessagePost: (body: AuthGenerateSessionMessageBody, options?: AxiosRequestConfig) => Promise<RequestArgs>; /** * Refresh an expiring session by generating new refresh session token and an updated token validity. * @param {AuthRefreshSessionBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ authRefreshSessionPost: (body: AuthRefreshSessionBody, options?: AxiosRequestConfig) => Promise<RequestArgs>; }; /** * AuthEndpointsApi - functional programming interface * @export */ export declare const AuthEndpointsApiFp: (configuration?: Configuration) => { /** * Generates signed message containing nonce, user wallet, and user pda address. * @param {AuthGenerateNonceBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ authGenerateNoncePost(body: AuthGenerateNonceBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>; /** * If wallet ownership is proven, this endpoint generates a session message. * @param {AuthGenerateSessionMessageBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ authGenerateSessionMessagePost(body: AuthGenerateSessionMessageBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>; /** * Refresh an expiring session by generating new refresh session token and an updated token validity. * @param {AuthRefreshSessionBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ authRefreshSessionPost(body: AuthRefreshSessionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>; }; /** * AuthEndpointsApi - factory interface * @export */ export declare const AuthEndpointsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Generates signed message containing nonce, user wallet, and user pda address. * @param {AuthGenerateNonceBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ authGenerateNoncePost(body: AuthGenerateNonceBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; /** * If wallet ownership is proven, this endpoint generates a session message. * @param {AuthGenerateSessionMessageBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ authGenerateSessionMessagePost(body: AuthGenerateSessionMessageBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; /** * Refresh an expiring session by generating new refresh session token and an updated token validity. * @param {AuthRefreshSessionBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ authRefreshSessionPost(body: AuthRefreshSessionBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; }; /** * AuthEndpointsApi - object-oriented interface * @export * @class AuthEndpointsApi * @extends {BaseAPI} */ export declare class AuthEndpointsApi extends BaseAPI { /** * Generates signed message containing nonce, user wallet, and user pda address. * @param {AuthGenerateNonceBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthEndpointsApi */ authGenerateNoncePost(body: AuthGenerateNonceBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; /** * If wallet ownership is proven, this endpoint generates a session message. * @param {AuthGenerateSessionMessageBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthEndpointsApi */ authGenerateSessionMessagePost(body: AuthGenerateSessionMessageBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; /** * Refresh an expiring session by generating new refresh session token and an updated token validity. * @param {AuthRefreshSessionBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthEndpointsApi */ authRefreshSessionPost(body: AuthRefreshSessionBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>; }