/** * Fireblocks API * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) * * The version of the OpenAPI document: 1.6.2 * Contact: developers@fireblocks.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 { RequestArgs, BaseAPI } from '../base'; import { CallAccepted } from '../models'; import { CantonCall } from '../models'; import { OfferResponse } from '../models'; import { OfferResponseAccepted } from '../models'; /** * CantonBetaApi - axios parameter creator * @export */ export declare const CantonBetaApiAxiosParamCreator: (configuration?: Configuration) => { /** * Submits a Canton call from a vault account\'s Canton wallet. `type` selects the call and the shape of `payload`. * @summary Make a Canton call * @param {CantonCall} cantonCall * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCantonCall: (cantonCall: CantonCall, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise; /** * Responds to an incoming Canton offer. Set `responseType` to one of the values in the offer transaction\'s `cantonDetails.offerResponse.availableResponses`. * @summary Answer an offer * @param {OfferResponse} offerResponse * @param {string} offerId The Fireblocks transaction id of the incoming offer being answered. * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ respondToCantonOffer: (offerResponse: OfferResponse, offerId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig) => Promise; }; /** * CantonBetaApi - functional programming interface * @export */ export declare const CantonBetaApiFp: (configuration?: Configuration) => { /** * Submits a Canton call from a vault account\'s Canton wallet. `type` selects the call and the shape of `payload`. * @summary Make a Canton call * @param {CantonCall} cantonCall * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCantonCall(cantonCall: CantonCall, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Responds to an incoming Canton offer. Set `responseType` to one of the values in the offer transaction\'s `cantonDetails.offerResponse.availableResponses`. * @summary Answer an offer * @param {OfferResponse} offerResponse * @param {string} offerId The Fireblocks transaction id of the incoming offer being answered. * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ respondToCantonOffer(offerResponse: OfferResponse, offerId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * CantonBetaApi - factory interface * @export */ export declare const CantonBetaApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Submits a Canton call from a vault account\'s Canton wallet. `type` selects the call and the shape of `payload`. * @summary Make a Canton call * @param {CantonBetaApiCreateCantonCallRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCantonCall(requestParameters: CantonBetaApiCreateCantonCallRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Responds to an incoming Canton offer. Set `responseType` to one of the values in the offer transaction\'s `cantonDetails.offerResponse.availableResponses`. * @summary Answer an offer * @param {CantonBetaApiRespondToCantonOfferRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ respondToCantonOffer(requestParameters: CantonBetaApiRespondToCantonOfferRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * Request parameters for createCantonCall operation in CantonBetaApi. * @export * @interface CantonBetaApiCreateCantonCallRequest */ export interface CantonBetaApiCreateCantonCallRequest { /** * * @type {CantonCall} * @memberof CantonBetaApiCreateCantonCall */ readonly cantonCall: CantonCall; /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof CantonBetaApiCreateCantonCall */ readonly idempotencyKey?: string; } /** * Request parameters for respondToCantonOffer operation in CantonBetaApi. * @export * @interface CantonBetaApiRespondToCantonOfferRequest */ export interface CantonBetaApiRespondToCantonOfferRequest { /** * * @type {OfferResponse} * @memberof CantonBetaApiRespondToCantonOffer */ readonly offerResponse: OfferResponse; /** * The Fireblocks transaction id of the incoming offer being answered. * @type {string} * @memberof CantonBetaApiRespondToCantonOffer */ readonly offerId: string; /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof CantonBetaApiRespondToCantonOffer */ readonly idempotencyKey?: string; } /** * CantonBetaApi - object-oriented interface * @export * @class CantonBetaApi * @extends {BaseAPI} */ export declare class CantonBetaApi extends BaseAPI { /** * Submits a Canton call from a vault account\'s Canton wallet. `type` selects the call and the shape of `payload`. * @summary Make a Canton call * @param {CantonBetaApiCreateCantonCallRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CantonBetaApi */ createCantonCall(requestParameters: CantonBetaApiCreateCantonCallRequest): Promise>; /** * Responds to an incoming Canton offer. Set `responseType` to one of the values in the offer transaction\'s `cantonDetails.offerResponse.availableResponses`. * @summary Answer an offer * @param {CantonBetaApiRespondToCantonOfferRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CantonBetaApi */ respondToCantonOffer(requestParameters: CantonBetaApiRespondToCantonOfferRequest): Promise>; }