diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e0c932d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.idea/ +.directory +tester/node_modules +tests/axios/node_modules +tests/node/node_modules diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3921518 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: node_js + +node_js: + - "10.15.1" + +before_script: +- make install + +script: +- make test diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6695dcb --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +.DEFAULT_GOAL := help +.PHONY: install test test-axios-client test-node-client build-axios-client build-node-client +.PHONY: build-node-tester build-axios-tester docker_build docker_run + +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +install: build-axios-client build-node-client build-axios-tester build-node-tester ; ## Build all libraries and tester + +test: test-axios-client test-node-client ; ## Test all clients + +test-axios-client: ## Test axios client + (cd ./tests/axios/ && npm run test ) + +test-node-client: ## Test node client + (cd ./tests/node/ && npm run test ) + +build-axios-client: ## Build axios client + (cd ./lib/skyapi/axios/ && npm install && npm run build) + +build-axios-tester: ## Build axios client tester + (cd ./tests/axios/ && npm install) + +build-node-client: ## Build node client + (cd './lib/skyapi/node/' && npm install && npm run build) + +build-node-tester: ## Build node client tester + (cd './tests/node/' && npm install) + +docker_build: ## Build docker image skyapi/typescript + docker build -t skyapi/typescript -f ./docker/Dockerfile . + +docker_run: ## Run docker image skyapi/typescript with name skyapi-typescript + docker run -v ${PWD}/tests:/skyapi-typescript/tests -it --name=skyapi-typescript skyapi/typescript diff --git a/README.md b/README.md new file mode 100644 index 0000000..914169f --- /dev/null +++ b/README.md @@ -0,0 +1,75 @@ +# Skyapi, a Wrapper for Skycoin Api + +This wrapper is Auto generated by openapi-generator directly from `Skycoin Api` code for version v0.25.1. + +## Skyapi-Axios + +Generated using the typescript-axios generator. + +### Installation + +Navigate to the folder of your consuming project and run the following command. + +``` +npm install libsky-axios@0.25.1 --save +``` + +### Specific Node Address + +For use a specific node of Skycoin, you just need to create a instance of `DefaultApi` passing a `Configuration` instance and the node address: + +```js +// Load the skyapi-axios module +const skyapi_axios = require("libsky-axios"); + +// Define path to skycoin node +const basePath = 'https://node.skycoin.net'; + +// Create a default configuration class +let api_axios_config = new skyapi_axios.Configuration(); + +// Create API instance +let api_axios = new skyapi_axios.DefaultApi(api_axios_config, basePath); + +// Make a request for the version to the skycoin node +api_axios.version().then(result => { + //Log the response data field + console.log(`Response from skycoin node in ${basePath} using axios client: ${JSON.stringify(result.data)}`); +}); + +``` + +## Skyapi-Node + +Generated using the typescript-node generator. + +### Installation + +Navigate to the folder of your consuming project and run the following command. + +``` +npm install libsky-node@0.25.1 --save +``` + + +### Specific Node Address + +For use a specific node of Skycoin, you just need to create a instance of `DefaultApi` passing the node address: + +```js +// Load the skyapi-node module +const skyapi_node = require("libsky-node"); + +// Define path to skycoin node +const basePath = 'https://node.skycoin.net'; + +// Create API instance +let api_node = new skyapi_node.DefaultApi(basePath); + +// Make a request for the version to the skycoin node +api_node.version().then(result => { + //Log the response body field + console.log(`Response from skycoin node in ${basePath} using axios client: ${JSON.stringify(result.body)}`); +}); + +``` \ No newline at end of file diff --git a/docker/.dockerignore b/docker/.dockerignore new file mode 100644 index 0000000..05a4a44 --- /dev/null +++ b/docker/.dockerignore @@ -0,0 +1 @@ +*/node_modules \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..c8f8d59 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,15 @@ +FROM node + +WORKDIR /skyapi-typescript + +COPY lib/skyapi/axios/ ./lib/skyapi/axios/ + +COPY lib/skyapi/node/ ./lib/skyapi/node/ + +RUN (cd ./lib/skyapi/axios/ && npm install && npm run build ) + +RUN (cd ./lib/skyapi/node/ && npm install && npm run build ) + +RUN apt-get update -y && apt-get install vim -y && apt-get install nano -y + +CMD ["bash"] diff --git a/lib/skyapi/axios/.gitignore b/lib/skyapi/axios/.gitignore new file mode 100644 index 0000000..35e2fb2 --- /dev/null +++ b/lib/skyapi/axios/.gitignore @@ -0,0 +1,3 @@ +wwwroot/*.js +node_modules +typings diff --git a/lib/skyapi/axios/.openapi-generator-ignore b/lib/skyapi/axios/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/lib/skyapi/axios/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/lib/skyapi/axios/.openapi-generator/VERSION b/lib/skyapi/axios/.openapi-generator/VERSION new file mode 100644 index 0000000..f9dfe82 --- /dev/null +++ b/lib/skyapi/axios/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.0.0-beta2 \ No newline at end of file diff --git a/lib/skyapi/axios/README.md b/lib/skyapi/axios/README.md new file mode 100644 index 0000000..1cef48d --- /dev/null +++ b/lib/skyapi/axios/README.md @@ -0,0 +1,45 @@ +## libsky-axios@0.25.1 + +This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments: + +Environment +* Node.js +* Webpack +* Browserify + +Language level +* ES5 - you must have a Promises/A+ library installed +* ES6 + +Module system +* CommonJS +* ES6 module system + +It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)) + +### Building + +To build and compile the typescript sources to javascript use: +``` +npm install +npm run build +``` + +### Publishing + +First build the package then run ```npm publish``` + +### Consuming + +navigate to the folder of your consuming project and run one of the following commands. + +_published:_ + +``` +npm install libsky-axios@0.25.1 --save +``` + +_unPublished (not recommended):_ + +``` +npm install PATH_TO_GENERATED_PACKAGE --save diff --git a/lib/skyapi/axios/api.ts b/lib/skyapi/axios/api.ts new file mode 100644 index 0000000..aeb03bb --- /dev/null +++ b/lib/skyapi/axios/api.ts @@ -0,0 +1,4658 @@ +// tslint:disable +/// +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as url from "url"; +import { Configuration } from "./configuration"; +import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; + +const BASE_PATH = "http://127.0.0.1:6420".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: any; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath || this.basePath; + } + } +}; + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} + +/** + * + * @export + * @interface ApiV1ExplorerAddressInputs + */ +export interface ApiV1ExplorerAddressInputs { + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressInputs + */ + owner?: string; + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressInputs + */ + hours?: number; + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressInputs + */ + calculatedHours?: number; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressInputs + */ + coins?: string; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressInputs + */ + uxid?: string; +} + +/** + * + * @export + * @interface ApiV1ExplorerAddressOutputs + */ +export interface ApiV1ExplorerAddressOutputs { + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressOutputs + */ + hours?: number; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressOutputs + */ + dst?: string; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressOutputs + */ + coins?: string; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressOutputs + */ + uxid?: string; +} + +/** + * + * @export + * @interface ApiV1ExplorerAddressStatus + */ +export interface ApiV1ExplorerAddressStatus { + /** + * + * @type {boolean} + * @memberof ApiV1ExplorerAddressStatus + */ + unconfirmed?: boolean; + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressStatus + */ + blockSeq?: number; + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressStatus + */ + label?: number; + /** + * + * @type {boolean} + * @memberof ApiV1ExplorerAddressStatus + */ + confirmed?: boolean; +} + +/** + * BlockTransactionVerbose has readable transaction data for transactions inside a block. It differs from Transaction in that it includes metadata for transaction inputs and the calculated coinhour fee spent by the block + * @export + * @interface ApiV1PendingTxsTransaction + */ +export interface ApiV1PendingTxsTransaction { + /** + * + * @type {Array} + * @memberof ApiV1PendingTxsTransaction + */ + outputs?: Array; + /** + * + * @type {string} + * @memberof ApiV1PendingTxsTransaction + */ + innerHash?: string; + /** + * + * @type {Array} + * @memberof ApiV1PendingTxsTransaction + */ + inputs?: Array; + /** + * + * @type {Array} + * @memberof ApiV1PendingTxsTransaction + */ + sigs?: Array; + /** + * + * @type {number} + * @memberof ApiV1PendingTxsTransaction + */ + length?: number; + /** + * + * @type {string} + * @memberof ApiV1PendingTxsTransaction + */ + txid?: string; + /** + * + * @type {number} + * @memberof ApiV1PendingTxsTransaction + */ + type?: number; + /** + * + * @type {number} + * @memberof ApiV1PendingTxsTransaction + */ + timestamp?: number; +} + +/** + * + * @export + * @interface ApiV1WalletTransactionHoursSelection + */ +export interface ApiV1WalletTransactionHoursSelection { + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionHoursSelection + */ + mode?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionHoursSelection + */ + shareFactor?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionHoursSelection + */ + type?: string; +} + +/** + * + * @export + * @interface ApiV1WalletTransactionTo + */ +export interface ApiV1WalletTransactionTo { + /** + * + * @type {number} + * @memberof ApiV1WalletTransactionTo + */ + hours?: number; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionTo + */ + address?: string; + /** + * + * @type {number} + * @memberof ApiV1WalletTransactionTo + */ + coins?: number; +} + +/** + * + * @export + * @interface ApiV1WalletTransactionWallet + */ +export interface ApiV1WalletTransactionWallet { + /** + * + * @type {Array} + * @memberof ApiV1WalletTransactionWallet + */ + unspents?: Array; + /** + * + * @type {Array} + * @memberof ApiV1WalletTransactionWallet + */ + addresses?: Array; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionWallet + */ + password?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionWallet + */ + id?: string; +} + +/** + * + * @export + * @interface ApiV1WalletsEntries + */ +export interface ApiV1WalletsEntries { + /** + * + * @type {string} + * @memberof ApiV1WalletsEntries + */ + publicKey?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsEntries + */ + address?: string; +} + +/** + * + * @export + * @interface ApiV1WalletsMeta + */ +export interface ApiV1WalletsMeta { + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + filename?: string; + /** + * + * @type {boolean} + * @memberof ApiV1WalletsMeta + */ + encrypted?: boolean; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + cryptoType?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + label?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + type?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + version?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + coin?: string; + /** + * + * @type {number} + * @memberof ApiV1WalletsMeta + */ + timestamp?: number; +} + +/** + * + * @export + * @interface InlineObject + */ +export interface InlineObject { + /** + * + * @type {string} + * @memberof InlineObject + */ + changeAddress?: string; + /** + * + * @type {ApiV1WalletTransactionHoursSelection} + * @memberof InlineObject + */ + hoursSelection?: ApiV1WalletTransactionHoursSelection; + /** + * + * @type {boolean} + * @memberof InlineObject + */ + ignoreUnconfirmed?: boolean; + /** + * + * @type {Array} + * @memberof InlineObject + */ + to?: Array; + /** + * + * @type {ApiV1WalletTransactionWallet} + * @memberof InlineObject + */ + wallet?: ApiV1WalletTransactionWallet; +} + +/** + * + * @export + * @interface InlineResponse200 + */ +export interface InlineResponse200 { + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + hours?: number; + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + coins?: number; + /** + * + * @type {string} + * @memberof InlineResponse200 + */ + uxid?: string; + /** + * + * @type {string} + * @memberof InlineResponse200 + */ + ownerAddress?: string; + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + spentBlockSeq?: number; + /** + * + * @type {string} + * @memberof InlineResponse200 + */ + spentTx?: string; + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + time?: number; + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + srcBlockSeq?: number; + /** + * + * @type {string} + * @memberof InlineResponse200 + */ + srcTx?: string; +} + +/** + * + * @export + * @interface InlineResponse2001 + */ +export interface InlineResponse2001 { + /** + * + * @type {string} + * @memberof InlineResponse2001 + */ + csrfToken?: string; +} + +/** + * + * @export + * @interface InlineResponse2002 + */ +export interface InlineResponse2002 { + /** + * + * @type {Array} + * @memberof InlineResponse2002 + */ + outputs?: Array; + /** + * + * @type {string} + * @memberof InlineResponse2002 + */ + innerHash?: string; + /** + * + * @type {Array} + * @memberof InlineResponse2002 + */ + inputs?: Array; + /** + * + * @type {number} + * @memberof InlineResponse2002 + */ + fee?: number; + /** + * + * @type {Array} + * @memberof InlineResponse2002 + */ + sigs?: Array; + /** + * + * @type {number} + * @memberof InlineResponse2002 + */ + length?: number; + /** + * + * @type {string} + * @memberof InlineResponse2002 + */ + txid?: string; + /** + * + * @type {number} + * @memberof InlineResponse2002 + */ + type?: number; + /** + * + * @type {ApiV1ExplorerAddressStatus} + * @memberof InlineResponse2002 + */ + status?: ApiV1ExplorerAddressStatus; + /** + * + * @type {number} + * @memberof InlineResponse2002 + */ + timestamp?: number; +} + +/** + * + * @export + * @interface InlineResponse2003 + */ +export interface InlineResponse2003 { + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + lastReceived?: number; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + lastSent?: number; + /** + * + * @type {boolean} + * @memberof InlineResponse2003 + */ + outgoing?: boolean; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + mirror?: number; + /** + * + * @type {string} + * @memberof InlineResponse2003 + */ + address?: string; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + listenPort?: number; + /** + * + * @type {boolean} + * @memberof InlineResponse2003 + */ + isTrustedPeer?: boolean; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + connectedAt?: number; + /** + * + * @type {InlineResponse2003UnconfirmedVerifyTransaction} + * @memberof InlineResponse2003 + */ + unconfirmedVerifyTransaction?: InlineResponse2003UnconfirmedVerifyTransaction; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + id?: number; + /** + * + * @type {string} + * @memberof InlineResponse2003 + */ + state?: InlineResponse2003.StateEnum; + /** + * + * @type {string} + * @memberof InlineResponse2003 + */ + userAgent?: string; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + height?: number; +} + +/** + * @export + * @namespace InlineResponse2003 + */ +export namespace InlineResponse2003 { + /** + * @export + * @enum {string} + */ + export enum StateEnum { + Pending = 'pending', + Connected = 'connected', + Introduced = 'introduced' + } +} + +/** + * Represent unconfirmed transactions + * @export + * @interface InlineResponse2003UnconfirmedVerifyTransaction + */ +export interface InlineResponse2003UnconfirmedVerifyTransaction { + /** + * + * @type {number} + * @memberof InlineResponse2003UnconfirmedVerifyTransaction + */ + burnFactor?: number; + /** + * + * @type {number} + * @memberof InlineResponse2003UnconfirmedVerifyTransaction + */ + maxTransactionSize?: number; + /** + * + * @type {number} + * @memberof InlineResponse2003UnconfirmedVerifyTransaction + */ + maxDecimals?: number; +} + +/** + * + * @export + * @interface InlineResponse2004 + */ +export interface InlineResponse2004 { + /** + * + * @type {string} + * @memberof InlineResponse2004 + */ + announced?: string; + /** + * + * @type {boolean} + * @memberof InlineResponse2004 + */ + isValid?: boolean; + /** + * + * @type {string} + * @memberof InlineResponse2004 + */ + checked?: string; + /** + * + * @type {string} + * @memberof InlineResponse2004 + */ + received?: string; + /** + * + * @type {ApiV1PendingTxsTransaction} + * @memberof InlineResponse2004 + */ + transaction?: ApiV1PendingTxsTransaction; +} + +/** + * + * @export + * @interface InlineResponse2005 + */ +export interface InlineResponse2005 { + /** + * + * @type {Array} + * @memberof InlineResponse2005 + */ + entries?: Array; + /** + * + * @type {ApiV1WalletsMeta} + * @memberof InlineResponse2005 + */ + meta?: ApiV1WalletsMeta; +} + +/** + * + * @export + * @interface InlineResponse2006 + */ +export interface InlineResponse2006 { + /** + * + * @type {string} + * @memberof InlineResponse2006 + */ + address?: string; +} + +/** + * + * @export + * @interface InlineResponse2007 + */ +export interface InlineResponse2007 { + /** + * + * @type {InlineResponse2007Data} + * @memberof InlineResponse2007 + */ + data?: InlineResponse2007Data; + /** + * + * @type {any} + * @memberof InlineResponse2007 + */ + error?: any; +} + +/** + * + * @export + * @interface InlineResponse2007Data + */ +export interface InlineResponse2007Data { + /** + * + * @type {number} + * @memberof InlineResponse2007Data + */ + version?: number; +} + +/** + * + * @export + * @interface InlineResponseDefault + */ +export interface InlineResponseDefault { + /** + * + * @type {number} + * @memberof InlineResponseDefault + */ + code?: number; + /** + * + * @type {string} + * @memberof InlineResponseDefault + */ + message?: string; +} + + +/** + * DefaultApi - axios parameter creator + * @export + */ +export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressCount(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/addresscount`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressUxouts(address: string, options: any = {}): RequestArgs { + // verify required parameter 'address' is not null or undefined + if (address === null || address === undefined) { + throw new RequiredError('address','Required parameter address was null or undefined when calling addressUxouts.'); + } + const localVarPath = `/api/v1/address_uxouts`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balanceGet(addrs: string, options: any = {}): RequestArgs { + // verify required parameter 'addrs' is not null or undefined + if (addrs === null || addrs === undefined) { + throw new RequiredError('addrs','Required parameter addrs was null or undefined when calling balanceGet.'); + } + const localVarPath = `/api/v1/balance`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addrs !== undefined) { + localVarQueryParameter['addrs'] = addrs; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balancePost(addrs: string, options: any = {}): RequestArgs { + // verify required parameter 'addrs' is not null or undefined + if (addrs === null || addrs === undefined) { + throw new RequiredError('addrs','Required parameter addrs was null or undefined when calling balancePost.'); + } + const localVarPath = `/api/v1/balance`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (addrs !== undefined) { + localVarQueryParameter['addrs'] = addrs; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + block(hash?: string, seq?: number, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/block`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (hash !== undefined) { + localVarQueryParameter['hash'] = hash; + } + + if (seq !== undefined) { + localVarQueryParameter['seq'] = seq; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainMetadata(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/blockchain/metadata`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainProgress(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/blockchain/progress`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksGet(start?: number, end?: number, seqs?: Array, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/blocks`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (end !== undefined) { + localVarQueryParameter['end'] = end; + } + + if (seqs) { + localVarQueryParameter['seqs'] = seqs.join(COLLECTION_FORMATS["csv"]); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksPost(start?: number, end?: number, seqs?: Array, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/blocks`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (end !== undefined) { + localVarQueryParameter['end'] = end; + } + + if (seqs) { + localVarQueryParameter['seqs'] = seqs.join(COLLECTION_FORMATS["csv"]); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + coinSupply(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/coinSupply`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + csrf(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/csrf`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + defaultConnections(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/network/defaultConnections`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + explorerAddress(address?: string, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/explorer/address`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + health(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/health`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + lastBlocks(num: number, options: any = {}): RequestArgs { + // verify required parameter 'num' is not null or undefined + if (num === null || num === undefined) { + throw new RequiredError('num','Required parameter num was null or undefined when calling lastBlocks.'); + } + const localVarPath = `/api/v1/last_blocks`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (num !== undefined) { + localVarQueryParameter['num'] = num; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnection(addr: string, options: any = {}): RequestArgs { + // verify required parameter 'addr' is not null or undefined + if (addr === null || addr === undefined) { + throw new RequiredError('addr','Required parameter addr was null or undefined when calling networkConnection.'); + } + const localVarPath = `/api/v1/network/connection`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addr !== undefined) { + localVarQueryParameter['addr'] = addr; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnections(states?: 'pending' | 'connected' | 'introduced', direction?: 'connected' | 'introduced', options: any = {}): RequestArgs { + const localVarPath = `/api/v1/network/connections`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (states !== undefined) { + localVarQueryParameter['states'] = states; + } + + if (direction !== undefined) { + localVarQueryParameter['direction'] = direction; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsDisconnect(id: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling networkConnectionsDisconnect.'); + } + const localVarPath = `/api/v1/network/connection/disconnect`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsExchange(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/network/connections/exchange`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsTrust(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/network/connections/trust`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsGet(address?: Array, hash?: Array, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/outputs`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (address) { + localVarQueryParameter['address'] = address.join(COLLECTION_FORMATS["csv"]); + } + + if (hash) { + localVarQueryParameter['hash'] = hash.join(COLLECTION_FORMATS["csv"]); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsPost(address?: string, hash?: string, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/outputs`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + + if (hash !== undefined) { + localVarQueryParameter['hash'] = hash; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pendingTxs(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/pendingTxs`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resendUnconfirmedTxns(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/resendUnconfirmedTxns`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + richlist(includeDistribution?: boolean, n?: string, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/richlist`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (includeDistribution !== undefined) { + localVarQueryParameter['include-distribution'] = includeDistribution; + } + + if (n !== undefined) { + localVarQueryParameter['n'] = n; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transaction(txid: string, encoded?: boolean, options: any = {}): RequestArgs { + // verify required parameter 'txid' is not null or undefined + if (txid === null || txid === undefined) { + throw new RequiredError('txid','Required parameter txid was null or undefined when calling transaction.'); + } + const localVarPath = `/api/v1/transaction`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (txid !== undefined) { + localVarQueryParameter['txid'] = txid; + } + + if (encoded !== undefined) { + localVarQueryParameter['encoded'] = encoded; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionInject(rawtx: string, options: any = {}): RequestArgs { + // verify required parameter 'rawtx' is not null or undefined + if (rawtx === null || rawtx === undefined) { + throw new RequiredError('rawtx','Required parameter rawtx was null or undefined when calling transactionInject.'); + } + const localVarPath = `/api/v2/transaction/inject`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (rawtx !== undefined && rawtx !== null) { + localVarHeaderParameter['rawtx'] = String(rawtx); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionRaw(txid?: string, options: any = {}): RequestArgs { + const localVarPath = `/api/v2/transaction/raw`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (txid !== undefined) { + localVarQueryParameter['txid'] = txid; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionVerify(options: any = {}): RequestArgs { + const localVarPath = `/api/v2/transaction/verify`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsGet(addrs?: string, confirmed?: string, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/transactions`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addrs !== undefined) { + localVarQueryParameter['addrs'] = addrs; + } + + if (confirmed !== undefined) { + localVarQueryParameter['confirmed'] = confirmed; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsPost(addrs?: string, confirmed?: string, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/transactions`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (addrs !== undefined) { + localVarQueryParameter['addrs'] = addrs; + } + + if (confirmed !== undefined) { + localVarQueryParameter['confirmed'] = confirmed; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uxout(uxid?: string, options: any = {}): RequestArgs { + const localVarPath = `/api/v1/uxout`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (uxid !== undefined) { + localVarQueryParameter['uxid'] = uxid; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAddress(address: string, options: any = {}): RequestArgs { + // verify required parameter 'address' is not null or undefined + if (address === null || address === undefined) { + throw new RequiredError('address','Required parameter address was null or undefined when calling verifyAddress.'); + } + const localVarPath = `/api/v2/address/verify`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + version(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/version`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallet(id: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling wallet.'); + } + const localVarPath = `/api/v1/wallet`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletBalance(id: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletBalance.'); + } + const localVarPath = `/api/v1/wallet/balance`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletCreate(seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options: any = {}): RequestArgs { + // verify required parameter 'seed' is not null or undefined + if (seed === null || seed === undefined) { + throw new RequiredError('seed','Required parameter seed was null or undefined when calling walletCreate.'); + } + // verify required parameter 'label' is not null or undefined + if (label === null || label === undefined) { + throw new RequiredError('label','Required parameter label was null or undefined when calling walletCreate.'); + } + const localVarPath = `/api/v1/wallet/create`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (seed !== undefined && seed !== null) { + localVarHeaderParameter['seed'] = String(seed); + } + + if (label !== undefined && label !== null) { + localVarHeaderParameter['label'] = String(label); + } + + if (scan !== undefined && scan !== null) { + localVarHeaderParameter['scan'] = String(scan); + } + + if (encrypt !== undefined && encrypt !== null) { + localVarHeaderParameter['encrypt'] = String(encrypt); + } + + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletDecrypt(id: string, password: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletDecrypt.'); + } + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new RequiredError('password','Required parameter password was null or undefined when calling walletDecrypt.'); + } + const localVarPath = `/api/v1/wallet/decrypt`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletEncrypt(id: string, password: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletEncrypt.'); + } + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new RequiredError('password','Required parameter password was null or undefined when calling walletEncrypt.'); + } + const localVarPath = `/api/v1/wallet/encrypt`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletFolder(addr: string, options: any = {}): RequestArgs { + // verify required parameter 'addr' is not null or undefined + if (addr === null || addr === undefined) { + throw new RequiredError('addr','Required parameter addr was null or undefined when calling walletFolder.'); + } + const localVarPath = `/api/v1/wallets/folderName`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addr !== undefined) { + localVarQueryParameter['addr'] = addr; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewAddress(id: string, num?: string, password?: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletNewAddress.'); + } + const localVarPath = `/api/v1/wallet/newAddress`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + if (num !== undefined) { + localVarQueryParameter['num'] = num; + } + + if (password !== undefined) { + localVarQueryParameter['password'] = password; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewSeed(entropy?: '128' | '256', options: any = {}): RequestArgs { + const localVarPath = `/api/v1/wallet/newSeed`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (entropy !== undefined) { + localVarQueryParameter['entropy'] = entropy; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletRecover(id: string, seed: string, password?: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletRecover.'); + } + // verify required parameter 'seed' is not null or undefined + if (seed === null || seed === undefined) { + throw new RequiredError('seed','Required parameter seed was null or undefined when calling walletRecover.'); + } + const localVarPath = `/api/v2/wallet/recover`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + + if (seed !== undefined && seed !== null) { + localVarHeaderParameter['seed'] = String(seed); + } + + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeed(id: string, password: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletSeed.'); + } + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new RequiredError('password','Required parameter password was null or undefined when calling walletSeed.'); + } + const localVarPath = `/api/v1/wallet/seed`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + if (password !== undefined) { + localVarQueryParameter['password'] = password; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeedVerify(seed?: string, options: any = {}): RequestArgs { + const localVarPath = `/api/v2/wallet/seed/verify`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (seed !== undefined && seed !== null) { + localVarHeaderParameter['seed'] = String(seed); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSpent(id: string, dst: string, coins: string, password: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletSpent.'); + } + // verify required parameter 'dst' is not null or undefined + if (dst === null || dst === undefined) { + throw new RequiredError('dst','Required parameter dst was null or undefined when calling walletSpent.'); + } + // verify required parameter 'coins' is not null or undefined + if (coins === null || coins === undefined) { + throw new RequiredError('coins','Required parameter coins was null or undefined when calling walletSpent.'); + } + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new RequiredError('password','Required parameter password was null or undefined when calling walletSpent.'); + } + const localVarPath = `/api/v1/wallet/spend`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + + if (dst !== undefined && dst !== null) { + localVarHeaderParameter['dst'] = String(dst); + } + + if (coins !== undefined && coins !== null) { + localVarHeaderParameter['coins'] = String(coins); + } + + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransaction(body: InlineObject, options: any = {}): RequestArgs { + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling walletTransaction.'); + } + const localVarPath = `/api/v1/wallet/transaction`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + const needsSerialization = ("InlineObject" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; + localVarRequestOptions.data = needsSerialization ? JSON.stringify(body || {}) : (body || ""); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransactions(id: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletTransactions.'); + } + const localVarPath = `/api/v1/wallet/transactions`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUnload(id: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletUnload.'); + } + const localVarPath = `/api/v1/wallet/unload`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUpdate(id: string, label: string, options: any = {}): RequestArgs { + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling walletUpdate.'); + } + // verify required parameter 'label' is not null or undefined + if (label === null || label === undefined) { + throw new RequiredError('label','Required parameter label was null or undefined when calling walletUpdate.'); + } + const localVarPath = `/api/v1/wallet/update`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + + if (label !== undefined && label !== null) { + localVarHeaderParameter['label'] = String(label); + } + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallets(options: any = {}): RequestArgs { + const localVarPath = `/api/v1/wallets`; + const localVarUrlObj = url.parse(localVarPath, true); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * DefaultApi - functional programming interface + * @export + */ +export const DefaultApiFp = function(configuration?: Configuration) { + return { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressCount(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).addressCount(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressUxouts(address: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).addressUxouts(address, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balanceGet(addrs: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).balanceGet(addrs, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balancePost(addrs: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).balancePost(addrs, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + block(hash?: string, seq?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).block(hash, seq, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainMetadata(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).blockchainMetadata(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainProgress(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).blockchainProgress(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksGet(start?: number, end?: number, seqs?: Array, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).blocksGet(start, end, seqs, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksPost(start?: number, end?: number, seqs?: Array, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).blocksPost(start, end, seqs, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + coinSupply(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).coinSupply(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + csrf(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).csrf(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + defaultConnections(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).defaultConnections(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + explorerAddress(address?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).explorerAddress(address, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + health(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).health(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + lastBlocks(num: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).lastBlocks(num, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnection(addr: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).networkConnection(addr, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnections(states?: 'pending' | 'connected' | 'introduced', direction?: 'connected' | 'introduced', options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).networkConnections(states, direction, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsDisconnect(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).networkConnectionsDisconnect(id, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsExchange(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).networkConnectionsExchange(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsTrust(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).networkConnectionsTrust(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsGet(address?: Array, hash?: Array, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).outputsGet(address, hash, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsPost(address?: string, hash?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).outputsPost(address, hash, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pendingTxs(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).pendingTxs(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resendUnconfirmedTxns(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).resendUnconfirmedTxns(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + richlist(includeDistribution?: boolean, n?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).richlist(includeDistribution, n, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transaction(txid: string, encoded?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).transaction(txid, encoded, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionInject(rawtx: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).transactionInject(rawtx, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionRaw(txid?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).transactionRaw(txid, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionVerify(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).transactionVerify(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsGet(addrs?: string, confirmed?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).transactionsGet(addrs, confirmed, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsPost(addrs?: string, confirmed?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).transactionsPost(addrs, confirmed, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uxout(uxid?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).uxout(uxid, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAddress(address: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).verifyAddress(address, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + version(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).version(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallet(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).wallet(id, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletBalance(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletBalance(id, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletCreate(seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletCreate(seed, label, scan, encrypt, password, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletDecrypt(id: string, password: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletDecrypt(id, password, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletEncrypt(id: string, password: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletEncrypt(id, password, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletFolder(addr: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletFolder(addr, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewAddress(id: string, num?: string, password?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletNewAddress(id, num, password, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewSeed(entropy?: '128' | '256', options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletNewSeed(entropy, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletRecover(id: string, seed: string, password?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletRecover(id, seed, password, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeed(id: string, password: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletSeed(id, password, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeedVerify(seed?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletSeedVerify(seed, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSpent(id: string, dst: string, coins: string, password: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletSpent(id, dst, coins, password, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransaction(body: InlineObject, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletTransaction(body, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransactions(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletTransactions(id, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUnload(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletUnload(id, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUpdate(id: string, label: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).walletUpdate(id, label, options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallets(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = DefaultApiAxiosParamCreator(configuration).wallets(options); + return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url}) + return axios.request(axiosRequestArgs); + }; + }, + } +}; + +/** + * DefaultApi - factory interface + * @export + */ +export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + return { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressCount(options?: any) { + return DefaultApiFp(configuration).addressCount(options)(axios, basePath); + }, + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressUxouts(address: string, options?: any) { + return DefaultApiFp(configuration).addressUxouts(address, options)(axios, basePath); + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balanceGet(addrs: string, options?: any) { + return DefaultApiFp(configuration).balanceGet(addrs, options)(axios, basePath); + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balancePost(addrs: string, options?: any) { + return DefaultApiFp(configuration).balancePost(addrs, options)(axios, basePath); + }, + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + block(hash?: string, seq?: number, options?: any) { + return DefaultApiFp(configuration).block(hash, seq, options)(axios, basePath); + }, + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainMetadata(options?: any) { + return DefaultApiFp(configuration).blockchainMetadata(options)(axios, basePath); + }, + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainProgress(options?: any) { + return DefaultApiFp(configuration).blockchainProgress(options)(axios, basePath); + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksGet(start?: number, end?: number, seqs?: Array, options?: any) { + return DefaultApiFp(configuration).blocksGet(start, end, seqs, options)(axios, basePath); + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksPost(start?: number, end?: number, seqs?: Array, options?: any) { + return DefaultApiFp(configuration).blocksPost(start, end, seqs, options)(axios, basePath); + }, + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + coinSupply(options?: any) { + return DefaultApiFp(configuration).coinSupply(options)(axios, basePath); + }, + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + csrf(options?: any) { + return DefaultApiFp(configuration).csrf(options)(axios, basePath); + }, + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + defaultConnections(options?: any) { + return DefaultApiFp(configuration).defaultConnections(options)(axios, basePath); + }, + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + explorerAddress(address?: string, options?: any) { + return DefaultApiFp(configuration).explorerAddress(address, options)(axios, basePath); + }, + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + health(options?: any) { + return DefaultApiFp(configuration).health(options)(axios, basePath); + }, + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + lastBlocks(num: number, options?: any) { + return DefaultApiFp(configuration).lastBlocks(num, options)(axios, basePath); + }, + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnection(addr: string, options?: any) { + return DefaultApiFp(configuration).networkConnection(addr, options)(axios, basePath); + }, + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnections(states?: 'pending' | 'connected' | 'introduced', direction?: 'connected' | 'introduced', options?: any) { + return DefaultApiFp(configuration).networkConnections(states, direction, options)(axios, basePath); + }, + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsDisconnect(id: string, options?: any) { + return DefaultApiFp(configuration).networkConnectionsDisconnect(id, options)(axios, basePath); + }, + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsExchange(options?: any) { + return DefaultApiFp(configuration).networkConnectionsExchange(options)(axios, basePath); + }, + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsTrust(options?: any) { + return DefaultApiFp(configuration).networkConnectionsTrust(options)(axios, basePath); + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsGet(address?: Array, hash?: Array, options?: any) { + return DefaultApiFp(configuration).outputsGet(address, hash, options)(axios, basePath); + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsPost(address?: string, hash?: string, options?: any) { + return DefaultApiFp(configuration).outputsPost(address, hash, options)(axios, basePath); + }, + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pendingTxs(options?: any) { + return DefaultApiFp(configuration).pendingTxs(options)(axios, basePath); + }, + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resendUnconfirmedTxns(options?: any) { + return DefaultApiFp(configuration).resendUnconfirmedTxns(options)(axios, basePath); + }, + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + richlist(includeDistribution?: boolean, n?: string, options?: any) { + return DefaultApiFp(configuration).richlist(includeDistribution, n, options)(axios, basePath); + }, + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transaction(txid: string, encoded?: boolean, options?: any) { + return DefaultApiFp(configuration).transaction(txid, encoded, options)(axios, basePath); + }, + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionInject(rawtx: string, options?: any) { + return DefaultApiFp(configuration).transactionInject(rawtx, options)(axios, basePath); + }, + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionRaw(txid?: string, options?: any) { + return DefaultApiFp(configuration).transactionRaw(txid, options)(axios, basePath); + }, + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionVerify(options?: any) { + return DefaultApiFp(configuration).transactionVerify(options)(axios, basePath); + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsGet(addrs?: string, confirmed?: string, options?: any) { + return DefaultApiFp(configuration).transactionsGet(addrs, confirmed, options)(axios, basePath); + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsPost(addrs?: string, confirmed?: string, options?: any) { + return DefaultApiFp(configuration).transactionsPost(addrs, confirmed, options)(axios, basePath); + }, + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uxout(uxid?: string, options?: any) { + return DefaultApiFp(configuration).uxout(uxid, options)(axios, basePath); + }, + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAddress(address: string, options?: any) { + return DefaultApiFp(configuration).verifyAddress(address, options)(axios, basePath); + }, + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + version(options?: any) { + return DefaultApiFp(configuration).version(options)(axios, basePath); + }, + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallet(id: string, options?: any) { + return DefaultApiFp(configuration).wallet(id, options)(axios, basePath); + }, + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletBalance(id: string, options?: any) { + return DefaultApiFp(configuration).walletBalance(id, options)(axios, basePath); + }, + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletCreate(seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options?: any) { + return DefaultApiFp(configuration).walletCreate(seed, label, scan, encrypt, password, options)(axios, basePath); + }, + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletDecrypt(id: string, password: string, options?: any) { + return DefaultApiFp(configuration).walletDecrypt(id, password, options)(axios, basePath); + }, + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletEncrypt(id: string, password: string, options?: any) { + return DefaultApiFp(configuration).walletEncrypt(id, password, options)(axios, basePath); + }, + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletFolder(addr: string, options?: any) { + return DefaultApiFp(configuration).walletFolder(addr, options)(axios, basePath); + }, + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewAddress(id: string, num?: string, password?: string, options?: any) { + return DefaultApiFp(configuration).walletNewAddress(id, num, password, options)(axios, basePath); + }, + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewSeed(entropy?: '128' | '256', options?: any) { + return DefaultApiFp(configuration).walletNewSeed(entropy, options)(axios, basePath); + }, + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletRecover(id: string, seed: string, password?: string, options?: any) { + return DefaultApiFp(configuration).walletRecover(id, seed, password, options)(axios, basePath); + }, + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeed(id: string, password: string, options?: any) { + return DefaultApiFp(configuration).walletSeed(id, password, options)(axios, basePath); + }, + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeedVerify(seed?: string, options?: any) { + return DefaultApiFp(configuration).walletSeedVerify(seed, options)(axios, basePath); + }, + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSpent(id: string, dst: string, coins: string, password: string, options?: any) { + return DefaultApiFp(configuration).walletSpent(id, dst, coins, password, options)(axios, basePath); + }, + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransaction(body: InlineObject, options?: any) { + return DefaultApiFp(configuration).walletTransaction(body, options)(axios, basePath); + }, + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransactions(id: string, options?: any) { + return DefaultApiFp(configuration).walletTransactions(id, options)(axios, basePath); + }, + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUnload(id: string, options?: any) { + return DefaultApiFp(configuration).walletUnload(id, options)(axios, basePath); + }, + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUpdate(id: string, label: string, options?: any) { + return DefaultApiFp(configuration).walletUpdate(id, label, options)(axios, basePath); + }, + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallets(options?: any) { + return DefaultApiFp(configuration).wallets(options)(axios, basePath); + }, + }; +}; + +/** + * DefaultApi - object-oriented interface + * @export + * @class DefaultApi + * @extends {BaseAPI} + */ +export class DefaultApi extends BaseAPI { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public addressCount(options?: any) { + return DefaultApiFp(this.configuration).addressCount(options)(this.axios, this.basePath); + } + + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public addressUxouts(address: string, options?: any) { + return DefaultApiFp(this.configuration).addressUxouts(address, options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public balanceGet(addrs: string, options?: any) { + return DefaultApiFp(this.configuration).balanceGet(addrs, options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public balancePost(addrs: string, options?: any) { + return DefaultApiFp(this.configuration).balancePost(addrs, options)(this.axios, this.basePath); + } + + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public block(hash?: string, seq?: number, options?: any) { + return DefaultApiFp(this.configuration).block(hash, seq, options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public blockchainMetadata(options?: any) { + return DefaultApiFp(this.configuration).blockchainMetadata(options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public blockchainProgress(options?: any) { + return DefaultApiFp(this.configuration).blockchainProgress(options)(this.axios, this.basePath); + } + + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public blocksGet(start?: number, end?: number, seqs?: Array, options?: any) { + return DefaultApiFp(this.configuration).blocksGet(start, end, seqs, options)(this.axios, this.basePath); + } + + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public blocksPost(start?: number, end?: number, seqs?: Array, options?: any) { + return DefaultApiFp(this.configuration).blocksPost(start, end, seqs, options)(this.axios, this.basePath); + } + + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public coinSupply(options?: any) { + return DefaultApiFp(this.configuration).coinSupply(options)(this.axios, this.basePath); + } + + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public csrf(options?: any) { + return DefaultApiFp(this.configuration).csrf(options)(this.axios, this.basePath); + } + + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public defaultConnections(options?: any) { + return DefaultApiFp(this.configuration).defaultConnections(options)(this.axios, this.basePath); + } + + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public explorerAddress(address?: string, options?: any) { + return DefaultApiFp(this.configuration).explorerAddress(address, options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public health(options?: any) { + return DefaultApiFp(this.configuration).health(options)(this.axios, this.basePath); + } + + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public lastBlocks(num: number, options?: any) { + return DefaultApiFp(this.configuration).lastBlocks(num, options)(this.axios, this.basePath); + } + + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public networkConnection(addr: string, options?: any) { + return DefaultApiFp(this.configuration).networkConnection(addr, options)(this.axios, this.basePath); + } + + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public networkConnections(states?: 'pending' | 'connected' | 'introduced', direction?: 'connected' | 'introduced', options?: any) { + return DefaultApiFp(this.configuration).networkConnections(states, direction, options)(this.axios, this.basePath); + } + + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public networkConnectionsDisconnect(id: string, options?: any) { + return DefaultApiFp(this.configuration).networkConnectionsDisconnect(id, options)(this.axios, this.basePath); + } + + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public networkConnectionsExchange(options?: any) { + return DefaultApiFp(this.configuration).networkConnectionsExchange(options)(this.axios, this.basePath); + } + + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public networkConnectionsTrust(options?: any) { + return DefaultApiFp(this.configuration).networkConnectionsTrust(options)(this.axios, this.basePath); + } + + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public outputsGet(address?: Array, hash?: Array, options?: any) { + return DefaultApiFp(this.configuration).outputsGet(address, hash, options)(this.axios, this.basePath); + } + + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public outputsPost(address?: string, hash?: string, options?: any) { + return DefaultApiFp(this.configuration).outputsPost(address, hash, options)(this.axios, this.basePath); + } + + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public pendingTxs(options?: any) { + return DefaultApiFp(this.configuration).pendingTxs(options)(this.axios, this.basePath); + } + + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public resendUnconfirmedTxns(options?: any) { + return DefaultApiFp(this.configuration).resendUnconfirmedTxns(options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public richlist(includeDistribution?: boolean, n?: string, options?: any) { + return DefaultApiFp(this.configuration).richlist(includeDistribution, n, options)(this.axios, this.basePath); + } + + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public transaction(txid: string, encoded?: boolean, options?: any) { + return DefaultApiFp(this.configuration).transaction(txid, encoded, options)(this.axios, this.basePath); + } + + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public transactionInject(rawtx: string, options?: any) { + return DefaultApiFp(this.configuration).transactionInject(rawtx, options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public transactionRaw(txid?: string, options?: any) { + return DefaultApiFp(this.configuration).transactionRaw(txid, options)(this.axios, this.basePath); + } + + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public transactionVerify(options?: any) { + return DefaultApiFp(this.configuration).transactionVerify(options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public transactionsGet(addrs?: string, confirmed?: string, options?: any) { + return DefaultApiFp(this.configuration).transactionsGet(addrs, confirmed, options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public transactionsPost(addrs?: string, confirmed?: string, options?: any) { + return DefaultApiFp(this.configuration).transactionsPost(addrs, confirmed, options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public uxout(uxid?: string, options?: any) { + return DefaultApiFp(this.configuration).uxout(uxid, options)(this.axios, this.basePath); + } + + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public verifyAddress(address: string, options?: any) { + return DefaultApiFp(this.configuration).verifyAddress(address, options)(this.axios, this.basePath); + } + + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public version(options?: any) { + return DefaultApiFp(this.configuration).version(options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public wallet(id: string, options?: any) { + return DefaultApiFp(this.configuration).wallet(id, options)(this.axios, this.basePath); + } + + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletBalance(id: string, options?: any) { + return DefaultApiFp(this.configuration).walletBalance(id, options)(this.axios, this.basePath); + } + + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletCreate(seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options?: any) { + return DefaultApiFp(this.configuration).walletCreate(seed, label, scan, encrypt, password, options)(this.axios, this.basePath); + } + + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletDecrypt(id: string, password: string, options?: any) { + return DefaultApiFp(this.configuration).walletDecrypt(id, password, options)(this.axios, this.basePath); + } + + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletEncrypt(id: string, password: string, options?: any) { + return DefaultApiFp(this.configuration).walletEncrypt(id, password, options)(this.axios, this.basePath); + } + + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletFolder(addr: string, options?: any) { + return DefaultApiFp(this.configuration).walletFolder(addr, options)(this.axios, this.basePath); + } + + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletNewAddress(id: string, num?: string, password?: string, options?: any) { + return DefaultApiFp(this.configuration).walletNewAddress(id, num, password, options)(this.axios, this.basePath); + } + + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletNewSeed(entropy?: '128' | '256', options?: any) { + return DefaultApiFp(this.configuration).walletNewSeed(entropy, options)(this.axios, this.basePath); + } + + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletRecover(id: string, seed: string, password?: string, options?: any) { + return DefaultApiFp(this.configuration).walletRecover(id, seed, password, options)(this.axios, this.basePath); + } + + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletSeed(id: string, password: string, options?: any) { + return DefaultApiFp(this.configuration).walletSeed(id, password, options)(this.axios, this.basePath); + } + + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletSeedVerify(seed?: string, options?: any) { + return DefaultApiFp(this.configuration).walletSeedVerify(seed, options)(this.axios, this.basePath); + } + + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletSpent(id: string, dst: string, coins: string, password: string, options?: any) { + return DefaultApiFp(this.configuration).walletSpent(id, dst, coins, password, options)(this.axios, this.basePath); + } + + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletTransaction(body: InlineObject, options?: any) { + return DefaultApiFp(this.configuration).walletTransaction(body, options)(this.axios, this.basePath); + } + + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletTransactions(id: string, options?: any) { + return DefaultApiFp(this.configuration).walletTransactions(id, options)(this.axios, this.basePath); + } + + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletUnload(id: string, options?: any) { + return DefaultApiFp(this.configuration).walletUnload(id, options)(this.axios, this.basePath); + } + + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public walletUpdate(id: string, label: string, options?: any) { + return DefaultApiFp(this.configuration).walletUpdate(id, label, options)(this.axios, this.basePath); + } + + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public wallets(options?: any) { + return DefaultApiFp(this.configuration).wallets(options)(this.axios, this.basePath); + } + +} + diff --git a/lib/skyapi/axios/configuration.ts b/lib/skyapi/axios/configuration.ts new file mode 100644 index 0000000..d9654b8 --- /dev/null +++ b/lib/skyapi/axios/configuration.ts @@ -0,0 +1,74 @@ +// tslint:disable +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ConfigurationParameters { + apiKey?: string | ((name: string) => string); + username?: string; + password?: string; + accessToken?: string | ((name: string, scopes?: string[]) => string); + basePath?: string; + baseOptions?: any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | ((name: string) => string); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | ((name: string, scopes?: string[]) => string); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + } +} diff --git a/lib/skyapi/axios/custom.d.ts b/lib/skyapi/axios/custom.d.ts new file mode 100644 index 0000000..32534cb --- /dev/null +++ b/lib/skyapi/axios/custom.d.ts @@ -0,0 +1 @@ +declare module 'url'; \ No newline at end of file diff --git a/lib/skyapi/axios/dist/api.d.ts b/lib/skyapi/axios/dist/api.d.ts new file mode 100644 index 0000000..da857a5 --- /dev/null +++ b/lib/skyapi/axios/dist/api.d.ts @@ -0,0 +1,2468 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/// +import { Configuration } from "./configuration"; +import { AxiosPromise, AxiosInstance } from 'axios'; +/** + * + * @export + */ +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: any; +} +/** + * + * @export + * @class BaseAPI + */ +export declare class BaseAPI { + protected basePath: string; + protected axios: AxiosInstance; + protected configuration: Configuration | undefined; + constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); +} +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export declare class RequiredError extends Error { + field: string; + name: "RequiredError"; + constructor(field: string, msg?: string); +} +/** + * + * @export + * @interface ApiV1ExplorerAddressInputs + */ +export interface ApiV1ExplorerAddressInputs { + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressInputs + */ + owner?: string; + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressInputs + */ + hours?: number; + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressInputs + */ + calculatedHours?: number; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressInputs + */ + coins?: string; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressInputs + */ + uxid?: string; +} +/** + * + * @export + * @interface ApiV1ExplorerAddressOutputs + */ +export interface ApiV1ExplorerAddressOutputs { + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressOutputs + */ + hours?: number; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressOutputs + */ + dst?: string; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressOutputs + */ + coins?: string; + /** + * + * @type {string} + * @memberof ApiV1ExplorerAddressOutputs + */ + uxid?: string; +} +/** + * + * @export + * @interface ApiV1ExplorerAddressStatus + */ +export interface ApiV1ExplorerAddressStatus { + /** + * + * @type {boolean} + * @memberof ApiV1ExplorerAddressStatus + */ + unconfirmed?: boolean; + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressStatus + */ + blockSeq?: number; + /** + * + * @type {number} + * @memberof ApiV1ExplorerAddressStatus + */ + label?: number; + /** + * + * @type {boolean} + * @memberof ApiV1ExplorerAddressStatus + */ + confirmed?: boolean; +} +/** + * BlockTransactionVerbose has readable transaction data for transactions inside a block. It differs from Transaction in that it includes metadata for transaction inputs and the calculated coinhour fee spent by the block + * @export + * @interface ApiV1PendingTxsTransaction + */ +export interface ApiV1PendingTxsTransaction { + /** + * + * @type {Array} + * @memberof ApiV1PendingTxsTransaction + */ + outputs?: Array; + /** + * + * @type {string} + * @memberof ApiV1PendingTxsTransaction + */ + innerHash?: string; + /** + * + * @type {Array} + * @memberof ApiV1PendingTxsTransaction + */ + inputs?: Array; + /** + * + * @type {Array} + * @memberof ApiV1PendingTxsTransaction + */ + sigs?: Array; + /** + * + * @type {number} + * @memberof ApiV1PendingTxsTransaction + */ + length?: number; + /** + * + * @type {string} + * @memberof ApiV1PendingTxsTransaction + */ + txid?: string; + /** + * + * @type {number} + * @memberof ApiV1PendingTxsTransaction + */ + type?: number; + /** + * + * @type {number} + * @memberof ApiV1PendingTxsTransaction + */ + timestamp?: number; +} +/** + * + * @export + * @interface ApiV1WalletTransactionHoursSelection + */ +export interface ApiV1WalletTransactionHoursSelection { + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionHoursSelection + */ + mode?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionHoursSelection + */ + shareFactor?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionHoursSelection + */ + type?: string; +} +/** + * + * @export + * @interface ApiV1WalletTransactionTo + */ +export interface ApiV1WalletTransactionTo { + /** + * + * @type {number} + * @memberof ApiV1WalletTransactionTo + */ + hours?: number; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionTo + */ + address?: string; + /** + * + * @type {number} + * @memberof ApiV1WalletTransactionTo + */ + coins?: number; +} +/** + * + * @export + * @interface ApiV1WalletTransactionWallet + */ +export interface ApiV1WalletTransactionWallet { + /** + * + * @type {Array} + * @memberof ApiV1WalletTransactionWallet + */ + unspents?: Array; + /** + * + * @type {Array} + * @memberof ApiV1WalletTransactionWallet + */ + addresses?: Array; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionWallet + */ + password?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletTransactionWallet + */ + id?: string; +} +/** + * + * @export + * @interface ApiV1WalletsEntries + */ +export interface ApiV1WalletsEntries { + /** + * + * @type {string} + * @memberof ApiV1WalletsEntries + */ + publicKey?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsEntries + */ + address?: string; +} +/** + * + * @export + * @interface ApiV1WalletsMeta + */ +export interface ApiV1WalletsMeta { + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + filename?: string; + /** + * + * @type {boolean} + * @memberof ApiV1WalletsMeta + */ + encrypted?: boolean; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + cryptoType?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + label?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + type?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + version?: string; + /** + * + * @type {string} + * @memberof ApiV1WalletsMeta + */ + coin?: string; + /** + * + * @type {number} + * @memberof ApiV1WalletsMeta + */ + timestamp?: number; +} +/** + * + * @export + * @interface InlineObject + */ +export interface InlineObject { + /** + * + * @type {string} + * @memberof InlineObject + */ + changeAddress?: string; + /** + * + * @type {ApiV1WalletTransactionHoursSelection} + * @memberof InlineObject + */ + hoursSelection?: ApiV1WalletTransactionHoursSelection; + /** + * + * @type {boolean} + * @memberof InlineObject + */ + ignoreUnconfirmed?: boolean; + /** + * + * @type {Array} + * @memberof InlineObject + */ + to?: Array; + /** + * + * @type {ApiV1WalletTransactionWallet} + * @memberof InlineObject + */ + wallet?: ApiV1WalletTransactionWallet; +} +/** + * + * @export + * @interface InlineResponse200 + */ +export interface InlineResponse200 { + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + hours?: number; + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + coins?: number; + /** + * + * @type {string} + * @memberof InlineResponse200 + */ + uxid?: string; + /** + * + * @type {string} + * @memberof InlineResponse200 + */ + ownerAddress?: string; + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + spentBlockSeq?: number; + /** + * + * @type {string} + * @memberof InlineResponse200 + */ + spentTx?: string; + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + time?: number; + /** + * + * @type {number} + * @memberof InlineResponse200 + */ + srcBlockSeq?: number; + /** + * + * @type {string} + * @memberof InlineResponse200 + */ + srcTx?: string; +} +/** + * + * @export + * @interface InlineResponse2001 + */ +export interface InlineResponse2001 { + /** + * + * @type {string} + * @memberof InlineResponse2001 + */ + csrfToken?: string; +} +/** + * + * @export + * @interface InlineResponse2002 + */ +export interface InlineResponse2002 { + /** + * + * @type {Array} + * @memberof InlineResponse2002 + */ + outputs?: Array; + /** + * + * @type {string} + * @memberof InlineResponse2002 + */ + innerHash?: string; + /** + * + * @type {Array} + * @memberof InlineResponse2002 + */ + inputs?: Array; + /** + * + * @type {number} + * @memberof InlineResponse2002 + */ + fee?: number; + /** + * + * @type {Array} + * @memberof InlineResponse2002 + */ + sigs?: Array; + /** + * + * @type {number} + * @memberof InlineResponse2002 + */ + length?: number; + /** + * + * @type {string} + * @memberof InlineResponse2002 + */ + txid?: string; + /** + * + * @type {number} + * @memberof InlineResponse2002 + */ + type?: number; + /** + * + * @type {ApiV1ExplorerAddressStatus} + * @memberof InlineResponse2002 + */ + status?: ApiV1ExplorerAddressStatus; + /** + * + * @type {number} + * @memberof InlineResponse2002 + */ + timestamp?: number; +} +/** + * + * @export + * @interface InlineResponse2003 + */ +export interface InlineResponse2003 { + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + lastReceived?: number; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + lastSent?: number; + /** + * + * @type {boolean} + * @memberof InlineResponse2003 + */ + outgoing?: boolean; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + mirror?: number; + /** + * + * @type {string} + * @memberof InlineResponse2003 + */ + address?: string; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + listenPort?: number; + /** + * + * @type {boolean} + * @memberof InlineResponse2003 + */ + isTrustedPeer?: boolean; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + connectedAt?: number; + /** + * + * @type {InlineResponse2003UnconfirmedVerifyTransaction} + * @memberof InlineResponse2003 + */ + unconfirmedVerifyTransaction?: InlineResponse2003UnconfirmedVerifyTransaction; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + id?: number; + /** + * + * @type {string} + * @memberof InlineResponse2003 + */ + state?: InlineResponse2003.StateEnum; + /** + * + * @type {string} + * @memberof InlineResponse2003 + */ + userAgent?: string; + /** + * + * @type {number} + * @memberof InlineResponse2003 + */ + height?: number; +} +/** + * @export + * @namespace InlineResponse2003 + */ +export declare namespace InlineResponse2003 { + /** + * @export + * @enum {string} + */ + enum StateEnum { + Pending = "pending", + Connected = "connected", + Introduced = "introduced" + } +} +/** + * Represent unconfirmed transactions + * @export + * @interface InlineResponse2003UnconfirmedVerifyTransaction + */ +export interface InlineResponse2003UnconfirmedVerifyTransaction { + /** + * + * @type {number} + * @memberof InlineResponse2003UnconfirmedVerifyTransaction + */ + burnFactor?: number; + /** + * + * @type {number} + * @memberof InlineResponse2003UnconfirmedVerifyTransaction + */ + maxTransactionSize?: number; + /** + * + * @type {number} + * @memberof InlineResponse2003UnconfirmedVerifyTransaction + */ + maxDecimals?: number; +} +/** + * + * @export + * @interface InlineResponse2004 + */ +export interface InlineResponse2004 { + /** + * + * @type {string} + * @memberof InlineResponse2004 + */ + announced?: string; + /** + * + * @type {boolean} + * @memberof InlineResponse2004 + */ + isValid?: boolean; + /** + * + * @type {string} + * @memberof InlineResponse2004 + */ + checked?: string; + /** + * + * @type {string} + * @memberof InlineResponse2004 + */ + received?: string; + /** + * + * @type {ApiV1PendingTxsTransaction} + * @memberof InlineResponse2004 + */ + transaction?: ApiV1PendingTxsTransaction; +} +/** + * + * @export + * @interface InlineResponse2005 + */ +export interface InlineResponse2005 { + /** + * + * @type {Array} + * @memberof InlineResponse2005 + */ + entries?: Array; + /** + * + * @type {ApiV1WalletsMeta} + * @memberof InlineResponse2005 + */ + meta?: ApiV1WalletsMeta; +} +/** + * + * @export + * @interface InlineResponse2006 + */ +export interface InlineResponse2006 { + /** + * + * @type {string} + * @memberof InlineResponse2006 + */ + address?: string; +} +/** + * + * @export + * @interface InlineResponse2007 + */ +export interface InlineResponse2007 { + /** + * + * @type {InlineResponse2007Data} + * @memberof InlineResponse2007 + */ + data?: InlineResponse2007Data; + /** + * + * @type {any} + * @memberof InlineResponse2007 + */ + error?: any; +} +/** + * + * @export + * @interface InlineResponse2007Data + */ +export interface InlineResponse2007Data { + /** + * + * @type {number} + * @memberof InlineResponse2007Data + */ + version?: number; +} +/** + * + * @export + * @interface InlineResponseDefault + */ +export interface InlineResponseDefault { + /** + * + * @type {number} + * @memberof InlineResponseDefault + */ + code?: number; + /** + * + * @type {string} + * @memberof InlineResponseDefault + */ + message?: string; +} +/** + * DefaultApi - axios parameter creator + * @export + */ +export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressCount(options?: any): RequestArgs; + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressUxouts(address: string, options?: any): RequestArgs; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balanceGet(addrs: string, options?: any): RequestArgs; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balancePost(addrs: string, options?: any): RequestArgs; + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + block(hash?: string, seq?: number, options?: any): RequestArgs; + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainMetadata(options?: any): RequestArgs; + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainProgress(options?: any): RequestArgs; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksGet(start?: number, end?: number, seqs?: number[], options?: any): RequestArgs; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksPost(start?: number, end?: number, seqs?: number[], options?: any): RequestArgs; + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + coinSupply(options?: any): RequestArgs; + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + csrf(options?: any): RequestArgs; + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + defaultConnections(options?: any): RequestArgs; + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + explorerAddress(address?: string, options?: any): RequestArgs; + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + health(options?: any): RequestArgs; + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + lastBlocks(num: number, options?: any): RequestArgs; + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnection(addr: string, options?: any): RequestArgs; + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnections(states?: "pending" | "connected" | "introduced", direction?: "connected" | "introduced", options?: any): RequestArgs; + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsDisconnect(id: string, options?: any): RequestArgs; + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsExchange(options?: any): RequestArgs; + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsTrust(options?: any): RequestArgs; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsGet(address?: string[], hash?: string[], options?: any): RequestArgs; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsPost(address?: string, hash?: string, options?: any): RequestArgs; + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pendingTxs(options?: any): RequestArgs; + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resendUnconfirmedTxns(options?: any): RequestArgs; + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + richlist(includeDistribution?: boolean, n?: string, options?: any): RequestArgs; + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transaction(txid: string, encoded?: boolean, options?: any): RequestArgs; + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionInject(rawtx: string, options?: any): RequestArgs; + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionRaw(txid?: string, options?: any): RequestArgs; + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionVerify(options?: any): RequestArgs; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsGet(addrs?: string, confirmed?: string, options?: any): RequestArgs; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsPost(addrs?: string, confirmed?: string, options?: any): RequestArgs; + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uxout(uxid?: string, options?: any): RequestArgs; + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAddress(address: string, options?: any): RequestArgs; + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + version(options?: any): RequestArgs; + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallet(id: string, options?: any): RequestArgs; + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletBalance(id: string, options?: any): RequestArgs; + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletCreate(seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options?: any): RequestArgs; + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletDecrypt(id: string, password: string, options?: any): RequestArgs; + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletEncrypt(id: string, password: string, options?: any): RequestArgs; + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletFolder(addr: string, options?: any): RequestArgs; + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewAddress(id: string, num?: string, password?: string, options?: any): RequestArgs; + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewSeed(entropy?: "128" | "256", options?: any): RequestArgs; + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletRecover(id: string, seed: string, password?: string, options?: any): RequestArgs; + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeed(id: string, password: string, options?: any): RequestArgs; + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeedVerify(seed?: string, options?: any): RequestArgs; + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSpent(id: string, dst: string, coins: string, password: string, options?: any): RequestArgs; + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransaction(body: InlineObject, options?: any): RequestArgs; + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransactions(id: string, options?: any): RequestArgs; + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUnload(id: string, options?: any): RequestArgs; + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUpdate(id: string, label: string, options?: any): RequestArgs; + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallets(options?: any): RequestArgs; +}; +/** + * DefaultApi - functional programming interface + * @export + */ +export declare const DefaultApiFp: (configuration?: Configuration) => { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressCount(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressUxouts(address: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balanceGet(addrs: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balancePost(addrs: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + block(hash?: string, seq?: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainMetadata(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainProgress(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksGet(start?: number, end?: number, seqs?: number[], options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksPost(start?: number, end?: number, seqs?: number[], options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + coinSupply(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + csrf(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + defaultConnections(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + explorerAddress(address?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + health(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + lastBlocks(num: number, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnection(addr: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnections(states?: "pending" | "connected" | "introduced", direction?: "connected" | "introduced", options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsDisconnect(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsExchange(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsTrust(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsGet(address?: string[], hash?: string[], options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsPost(address?: string, hash?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pendingTxs(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resendUnconfirmedTxns(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + richlist(includeDistribution?: boolean, n?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transaction(txid: string, encoded?: boolean, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionInject(rawtx: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionRaw(txid?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionVerify(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsGet(addrs?: string, confirmed?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsPost(addrs?: string, confirmed?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uxout(uxid?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAddress(address: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + version(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallet(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletBalance(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletCreate(seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletDecrypt(id: string, password: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletEncrypt(id: string, password: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletFolder(addr: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewAddress(id: string, num?: string, password?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewSeed(entropy?: "128" | "256", options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletRecover(id: string, seed: string, password?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeed(id: string, password: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeedVerify(seed?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSpent(id: string, dst: string, coins: string, password: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransaction(body: InlineObject, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransactions(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUnload(id: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUpdate(id: string, label: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallets(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise; +}; +/** + * DefaultApi - factory interface + * @export + */ +export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressCount(options?: any): AxiosPromise; + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressUxouts(address: string, options?: any): AxiosPromise; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balanceGet(addrs: string, options?: any): AxiosPromise; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balancePost(addrs: string, options?: any): AxiosPromise; + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + block(hash?: string, seq?: number, options?: any): AxiosPromise; + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainMetadata(options?: any): AxiosPromise; + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainProgress(options?: any): AxiosPromise; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksGet(start?: number, end?: number, seqs?: number[], options?: any): AxiosPromise; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksPost(start?: number, end?: number, seqs?: number[], options?: any): AxiosPromise; + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + coinSupply(options?: any): AxiosPromise; + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + csrf(options?: any): AxiosPromise; + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + defaultConnections(options?: any): AxiosPromise; + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + explorerAddress(address?: string, options?: any): AxiosPromise; + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + health(options?: any): AxiosPromise; + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + lastBlocks(num: number, options?: any): AxiosPromise; + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnection(addr: string, options?: any): AxiosPromise; + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnections(states?: "pending" | "connected" | "introduced", direction?: "connected" | "introduced", options?: any): AxiosPromise; + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsDisconnect(id: string, options?: any): AxiosPromise; + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsExchange(options?: any): AxiosPromise; + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsTrust(options?: any): AxiosPromise; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsGet(address?: string[], hash?: string[], options?: any): AxiosPromise; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsPost(address?: string, hash?: string, options?: any): AxiosPromise; + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pendingTxs(options?: any): AxiosPromise; + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resendUnconfirmedTxns(options?: any): AxiosPromise; + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + richlist(includeDistribution?: boolean, n?: string, options?: any): AxiosPromise; + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transaction(txid: string, encoded?: boolean, options?: any): AxiosPromise; + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionInject(rawtx: string, options?: any): AxiosPromise; + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionRaw(txid?: string, options?: any): AxiosPromise; + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionVerify(options?: any): AxiosPromise; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsGet(addrs?: string, confirmed?: string, options?: any): AxiosPromise; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsPost(addrs?: string, confirmed?: string, options?: any): AxiosPromise; + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uxout(uxid?: string, options?: any): AxiosPromise; + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAddress(address: string, options?: any): AxiosPromise; + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + version(options?: any): AxiosPromise; + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallet(id: string, options?: any): AxiosPromise; + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletBalance(id: string, options?: any): AxiosPromise; + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletCreate(seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options?: any): AxiosPromise; + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletDecrypt(id: string, password: string, options?: any): AxiosPromise; + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletEncrypt(id: string, password: string, options?: any): AxiosPromise; + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletFolder(addr: string, options?: any): AxiosPromise; + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewAddress(id: string, num?: string, password?: string, options?: any): AxiosPromise; + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewSeed(entropy?: "128" | "256", options?: any): AxiosPromise; + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletRecover(id: string, seed: string, password?: string, options?: any): AxiosPromise; + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeed(id: string, password: string, options?: any): AxiosPromise; + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeedVerify(seed?: string, options?: any): AxiosPromise; + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSpent(id: string, dst: string, coins: string, password: string, options?: any): AxiosPromise; + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransaction(body: InlineObject, options?: any): AxiosPromise; + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransactions(id: string, options?: any): AxiosPromise; + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUnload(id: string, options?: any): AxiosPromise; + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUpdate(id: string, label: string, options?: any): AxiosPromise; + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallets(options?: any): AxiosPromise; +}; +/** + * DefaultApi - object-oriented interface + * @export + * @class DefaultApi + * @extends {BaseAPI} + */ +export declare class DefaultApi extends BaseAPI { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + addressCount(options?: any): AxiosPromise; + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + addressUxouts(address: string, options?: any): AxiosPromise; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + balanceGet(addrs: string, options?: any): AxiosPromise; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + balancePost(addrs: string, options?: any): AxiosPromise; + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + block(hash?: string, seq?: number, options?: any): AxiosPromise; + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + blockchainMetadata(options?: any): AxiosPromise; + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + blockchainProgress(options?: any): AxiosPromise; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + blocksGet(start?: number, end?: number, seqs?: Array, options?: any): AxiosPromise; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + blocksPost(start?: number, end?: number, seqs?: Array, options?: any): AxiosPromise; + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + coinSupply(options?: any): AxiosPromise; + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + csrf(options?: any): AxiosPromise; + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + defaultConnections(options?: any): AxiosPromise; + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + explorerAddress(address?: string, options?: any): AxiosPromise; + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + health(options?: any): AxiosPromise; + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + lastBlocks(num: number, options?: any): AxiosPromise; + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + networkConnection(addr: string, options?: any): AxiosPromise; + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + networkConnections(states?: 'pending' | 'connected' | 'introduced', direction?: 'connected' | 'introduced', options?: any): AxiosPromise; + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + networkConnectionsDisconnect(id: string, options?: any): AxiosPromise; + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + networkConnectionsExchange(options?: any): AxiosPromise; + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + networkConnectionsTrust(options?: any): AxiosPromise; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + outputsGet(address?: Array, hash?: Array, options?: any): AxiosPromise; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + outputsPost(address?: string, hash?: string, options?: any): AxiosPromise; + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + pendingTxs(options?: any): AxiosPromise; + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + resendUnconfirmedTxns(options?: any): AxiosPromise; + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + richlist(includeDistribution?: boolean, n?: string, options?: any): AxiosPromise; + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + transaction(txid: string, encoded?: boolean, options?: any): AxiosPromise; + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + transactionInject(rawtx: string, options?: any): AxiosPromise; + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + transactionRaw(txid?: string, options?: any): AxiosPromise; + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + transactionVerify(options?: any): AxiosPromise; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + transactionsGet(addrs?: string, confirmed?: string, options?: any): AxiosPromise; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + transactionsPost(addrs?: string, confirmed?: string, options?: any): AxiosPromise; + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + uxout(uxid?: string, options?: any): AxiosPromise; + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + verifyAddress(address: string, options?: any): AxiosPromise; + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + version(options?: any): AxiosPromise; + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + wallet(id: string, options?: any): AxiosPromise; + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletBalance(id: string, options?: any): AxiosPromise; + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletCreate(seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options?: any): AxiosPromise; + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletDecrypt(id: string, password: string, options?: any): AxiosPromise; + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletEncrypt(id: string, password: string, options?: any): AxiosPromise; + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletFolder(addr: string, options?: any): AxiosPromise; + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletNewAddress(id: string, num?: string, password?: string, options?: any): AxiosPromise; + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletNewSeed(entropy?: '128' | '256', options?: any): AxiosPromise; + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletRecover(id: string, seed: string, password?: string, options?: any): AxiosPromise; + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletSeed(id: string, password: string, options?: any): AxiosPromise; + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletSeedVerify(seed?: string, options?: any): AxiosPromise; + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletSpent(id: string, dst: string, coins: string, password: string, options?: any): AxiosPromise; + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletTransaction(body: InlineObject, options?: any): AxiosPromise; + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletTransactions(id: string, options?: any): AxiosPromise; + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletUnload(id: string, options?: any): AxiosPromise; + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + walletUpdate(id: string, label: string, options?: any): AxiosPromise; + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + wallets(options?: any): AxiosPromise; +} diff --git a/lib/skyapi/axios/dist/api.js b/lib/skyapi/axios/dist/api.js new file mode 100644 index 0000000..2cc8c2a --- /dev/null +++ b/lib/skyapi/axios/dist/api.js @@ -0,0 +1,3840 @@ +"use strict"; +// tslint:disable +/// +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +var __extends = (this && this.__extends) || (function () { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var url = require("url"); +var axios_1 = require("axios"); +var BASE_PATH = "http://127.0.0.1:6420".replace(/\/+$/, ""); +/** + * + * @export + */ +exports.COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +/** + * + * @export + * @class BaseAPI + */ +var BaseAPI = /** @class */ (function () { + function BaseAPI(configuration, basePath, axios) { + if (basePath === void 0) { basePath = BASE_PATH; } + if (axios === void 0) { axios = axios_1.default; } + this.basePath = basePath; + this.axios = axios; + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath || this.basePath; + } + } + return BaseAPI; +}()); +exports.BaseAPI = BaseAPI; +; +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +var RequiredError = /** @class */ (function (_super) { + __extends(RequiredError, _super); + function RequiredError(field, msg) { + var _this = _super.call(this, msg) || this; + _this.field = field; + _this.name = "RequiredError"; + return _this; + } + return RequiredError; +}(Error)); +exports.RequiredError = RequiredError; +/** + * @export + * @namespace InlineResponse2003 + */ +var InlineResponse2003; +(function (InlineResponse2003) { + /** + * @export + * @enum {string} + */ + var StateEnum; + (function (StateEnum) { + StateEnum["Pending"] = "pending"; + StateEnum["Connected"] = "connected"; + StateEnum["Introduced"] = "introduced"; + })(StateEnum = InlineResponse2003.StateEnum || (InlineResponse2003.StateEnum = {})); +})(InlineResponse2003 = exports.InlineResponse2003 || (exports.InlineResponse2003 = {})); +/** + * DefaultApi - axios parameter creator + * @export + */ +exports.DefaultApiAxiosParamCreator = function (configuration) { + return { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressCount: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/addresscount"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressUxouts: function (address, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'address' is not null or undefined + if (address === null || address === undefined) { + throw new RequiredError('address', 'Required parameter address was null or undefined when calling addressUxouts.'); + } + var localVarPath = "/api/v1/address_uxouts"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balanceGet: function (addrs, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'addrs' is not null or undefined + if (addrs === null || addrs === undefined) { + throw new RequiredError('addrs', 'Required parameter addrs was null or undefined when calling balanceGet.'); + } + var localVarPath = "/api/v1/balance"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (addrs !== undefined) { + localVarQueryParameter['addrs'] = addrs; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balancePost: function (addrs, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'addrs' is not null or undefined + if (addrs === null || addrs === undefined) { + throw new RequiredError('addrs', 'Required parameter addrs was null or undefined when calling balancePost.'); + } + var localVarPath = "/api/v1/balance"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (addrs !== undefined) { + localVarQueryParameter['addrs'] = addrs; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + block: function (hash, seq, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/block"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (hash !== undefined) { + localVarQueryParameter['hash'] = hash; + } + if (seq !== undefined) { + localVarQueryParameter['seq'] = seq; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainMetadata: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/blockchain/metadata"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainProgress: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/blockchain/progress"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksGet: function (start, end, seqs, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/blocks"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + if (end !== undefined) { + localVarQueryParameter['end'] = end; + } + if (seqs) { + localVarQueryParameter['seqs'] = seqs.join(exports.COLLECTION_FORMATS["csv"]); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksPost: function (start, end, seqs, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/blocks"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + if (end !== undefined) { + localVarQueryParameter['end'] = end; + } + if (seqs) { + localVarQueryParameter['seqs'] = seqs.join(exports.COLLECTION_FORMATS["csv"]); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + coinSupply: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/coinSupply"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + csrf: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/csrf"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + defaultConnections: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/network/defaultConnections"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + explorerAddress: function (address, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/explorer/address"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + health: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/health"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + lastBlocks: function (num, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'num' is not null or undefined + if (num === null || num === undefined) { + throw new RequiredError('num', 'Required parameter num was null or undefined when calling lastBlocks.'); + } + var localVarPath = "/api/v1/last_blocks"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (num !== undefined) { + localVarQueryParameter['num'] = num; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnection: function (addr, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'addr' is not null or undefined + if (addr === null || addr === undefined) { + throw new RequiredError('addr', 'Required parameter addr was null or undefined when calling networkConnection.'); + } + var localVarPath = "/api/v1/network/connection"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (addr !== undefined) { + localVarQueryParameter['addr'] = addr; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnections: function (states, direction, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/network/connections"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (states !== undefined) { + localVarQueryParameter['states'] = states; + } + if (direction !== undefined) { + localVarQueryParameter['direction'] = direction; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsDisconnect: function (id, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling networkConnectionsDisconnect.'); + } + var localVarPath = "/api/v1/network/connection/disconnect"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsExchange: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/network/connections/exchange"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsTrust: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/network/connections/trust"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsGet: function (address, hash, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/outputs"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (address) { + localVarQueryParameter['address'] = address.join(exports.COLLECTION_FORMATS["csv"]); + } + if (hash) { + localVarQueryParameter['hash'] = hash.join(exports.COLLECTION_FORMATS["csv"]); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsPost: function (address, hash, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/outputs"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + if (hash !== undefined) { + localVarQueryParameter['hash'] = hash; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pendingTxs: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/pendingTxs"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resendUnconfirmedTxns: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/resendUnconfirmedTxns"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + richlist: function (includeDistribution, n, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/richlist"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (includeDistribution !== undefined) { + localVarQueryParameter['include-distribution'] = includeDistribution; + } + if (n !== undefined) { + localVarQueryParameter['n'] = n; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transaction: function (txid, encoded, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'txid' is not null or undefined + if (txid === null || txid === undefined) { + throw new RequiredError('txid', 'Required parameter txid was null or undefined when calling transaction.'); + } + var localVarPath = "/api/v1/transaction"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (txid !== undefined) { + localVarQueryParameter['txid'] = txid; + } + if (encoded !== undefined) { + localVarQueryParameter['encoded'] = encoded; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionInject: function (rawtx, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'rawtx' is not null or undefined + if (rawtx === null || rawtx === undefined) { + throw new RequiredError('rawtx', 'Required parameter rawtx was null or undefined when calling transactionInject.'); + } + var localVarPath = "/api/v2/transaction/inject"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (rawtx !== undefined && rawtx !== null) { + localVarHeaderParameter['rawtx'] = String(rawtx); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionRaw: function (txid, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v2/transaction/raw"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (txid !== undefined) { + localVarQueryParameter['txid'] = txid; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionVerify: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v2/transaction/verify"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsGet: function (addrs, confirmed, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/transactions"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (addrs !== undefined) { + localVarQueryParameter['addrs'] = addrs; + } + if (confirmed !== undefined) { + localVarQueryParameter['confirmed'] = confirmed; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsPost: function (addrs, confirmed, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/transactions"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (addrs !== undefined) { + localVarQueryParameter['addrs'] = addrs; + } + if (confirmed !== undefined) { + localVarQueryParameter['confirmed'] = confirmed; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uxout: function (uxid, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/uxout"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (uxid !== undefined) { + localVarQueryParameter['uxid'] = uxid; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAddress: function (address, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'address' is not null or undefined + if (address === null || address === undefined) { + throw new RequiredError('address', 'Required parameter address was null or undefined when calling verifyAddress.'); + } + var localVarPath = "/api/v2/address/verify"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (address !== undefined) { + localVarQueryParameter['address'] = address; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + version: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/version"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallet: function (id, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling wallet.'); + } + var localVarPath = "/api/v1/wallet"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletBalance: function (id, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletBalance.'); + } + var localVarPath = "/api/v1/wallet/balance"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletCreate: function (seed, label, scan, encrypt, password, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'seed' is not null or undefined + if (seed === null || seed === undefined) { + throw new RequiredError('seed', 'Required parameter seed was null or undefined when calling walletCreate.'); + } + // verify required parameter 'label' is not null or undefined + if (label === null || label === undefined) { + throw new RequiredError('label', 'Required parameter label was null or undefined when calling walletCreate.'); + } + var localVarPath = "/api/v1/wallet/create"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (seed !== undefined && seed !== null) { + localVarHeaderParameter['seed'] = String(seed); + } + if (label !== undefined && label !== null) { + localVarHeaderParameter['label'] = String(label); + } + if (scan !== undefined && scan !== null) { + localVarHeaderParameter['scan'] = String(scan); + } + if (encrypt !== undefined && encrypt !== null) { + localVarHeaderParameter['encrypt'] = String(encrypt); + } + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletDecrypt: function (id, password, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletDecrypt.'); + } + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new RequiredError('password', 'Required parameter password was null or undefined when calling walletDecrypt.'); + } + var localVarPath = "/api/v1/wallet/decrypt"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletEncrypt: function (id, password, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletEncrypt.'); + } + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new RequiredError('password', 'Required parameter password was null or undefined when calling walletEncrypt.'); + } + var localVarPath = "/api/v1/wallet/encrypt"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletFolder: function (addr, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'addr' is not null or undefined + if (addr === null || addr === undefined) { + throw new RequiredError('addr', 'Required parameter addr was null or undefined when calling walletFolder.'); + } + var localVarPath = "/api/v1/wallets/folderName"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (addr !== undefined) { + localVarQueryParameter['addr'] = addr; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewAddress: function (id, num, password, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletNewAddress.'); + } + var localVarPath = "/api/v1/wallet/newAddress"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (num !== undefined) { + localVarQueryParameter['num'] = num; + } + if (password !== undefined) { + localVarQueryParameter['password'] = password; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewSeed: function (entropy, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/wallet/newSeed"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (entropy !== undefined) { + localVarQueryParameter['entropy'] = entropy; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletRecover: function (id, seed, password, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletRecover.'); + } + // verify required parameter 'seed' is not null or undefined + if (seed === null || seed === undefined) { + throw new RequiredError('seed', 'Required parameter seed was null or undefined when calling walletRecover.'); + } + var localVarPath = "/api/v2/wallet/recover"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + if (seed !== undefined && seed !== null) { + localVarHeaderParameter['seed'] = String(seed); + } + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeed: function (id, password, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletSeed.'); + } + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new RequiredError('password', 'Required parameter password was null or undefined when calling walletSeed.'); + } + var localVarPath = "/api/v1/wallet/seed"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (password !== undefined) { + localVarQueryParameter['password'] = password; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeedVerify: function (seed, options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v2/wallet/seed/verify"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (seed !== undefined && seed !== null) { + localVarHeaderParameter['seed'] = String(seed); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSpent: function (id, dst, coins, password, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletSpent.'); + } + // verify required parameter 'dst' is not null or undefined + if (dst === null || dst === undefined) { + throw new RequiredError('dst', 'Required parameter dst was null or undefined when calling walletSpent.'); + } + // verify required parameter 'coins' is not null or undefined + if (coins === null || coins === undefined) { + throw new RequiredError('coins', 'Required parameter coins was null or undefined when calling walletSpent.'); + } + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new RequiredError('password', 'Required parameter password was null or undefined when calling walletSpent.'); + } + var localVarPath = "/api/v1/wallet/spend"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + if (dst !== undefined && dst !== null) { + localVarHeaderParameter['dst'] = String(dst); + } + if (coins !== undefined && coins !== null) { + localVarHeaderParameter['coins'] = String(coins); + } + if (password !== undefined && password !== null) { + localVarHeaderParameter['password'] = String(password); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransaction: function (body, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError('body', 'Required parameter body was null or undefined when calling walletTransaction.'); + } + var localVarPath = "/api/v1/wallet/transaction"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + var needsSerialization = ("InlineObject" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; + localVarRequestOptions.data = needsSerialization ? JSON.stringify(body || {}) : (body || ""); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransactions: function (id, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletTransactions.'); + } + var localVarPath = "/api/v1/wallet/transactions"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUnload: function (id, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletUnload.'); + } + var localVarPath = "/api/v1/wallet/unload"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUpdate: function (id, label, options) { + if (options === void 0) { options = {}; } + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new RequiredError('id', 'Required parameter id was null or undefined when calling walletUpdate.'); + } + // verify required parameter 'label' is not null or undefined + if (label === null || label === undefined) { + throw new RequiredError('label', 'Required parameter label was null or undefined when calling walletUpdate.'); + } + var localVarPath = "/api/v1/wallet/update"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'POST' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + // authentication csrfAuth required + if (configuration && configuration.apiKey) { + var localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? configuration.apiKey("X-CSRF-TOKEN") + : configuration.apiKey; + localVarHeaderParameter["X-CSRF-TOKEN"] = localVarApiKeyValue; + } + if (id !== undefined && id !== null) { + localVarHeaderParameter['id'] = String(id); + } + if (label !== undefined && label !== null) { + localVarHeaderParameter['label'] = String(label); + } + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallets: function (options) { + if (options === void 0) { options = {}; } + var localVarPath = "/api/v1/wallets"; + var localVarUrlObj = url.parse(localVarPath, true); + var baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + var localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options); + var localVarHeaderParameter = {}; + var localVarQueryParameter = {}; + localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query); + // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 + delete localVarUrlObj.search; + localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers); + return { + url: url.format(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; +/** + * DefaultApi - functional programming interface + * @export + */ +exports.DefaultApiFp = function (configuration) { + return { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressCount: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).addressCount(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressUxouts: function (address, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).addressUxouts(address, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balanceGet: function (addrs, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).balanceGet(addrs, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balancePost: function (addrs, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).balancePost(addrs, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + block: function (hash, seq, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).block(hash, seq, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainMetadata: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).blockchainMetadata(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainProgress: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).blockchainProgress(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksGet: function (start, end, seqs, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).blocksGet(start, end, seqs, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksPost: function (start, end, seqs, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).blocksPost(start, end, seqs, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + coinSupply: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).coinSupply(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + csrf: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).csrf(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + defaultConnections: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).defaultConnections(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + explorerAddress: function (address, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).explorerAddress(address, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + health: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).health(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + lastBlocks: function (num, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).lastBlocks(num, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnection: function (addr, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).networkConnection(addr, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnections: function (states, direction, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).networkConnections(states, direction, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsDisconnect: function (id, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).networkConnectionsDisconnect(id, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsExchange: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).networkConnectionsExchange(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsTrust: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).networkConnectionsTrust(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsGet: function (address, hash, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).outputsGet(address, hash, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsPost: function (address, hash, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).outputsPost(address, hash, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pendingTxs: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).pendingTxs(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resendUnconfirmedTxns: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).resendUnconfirmedTxns(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + richlist: function (includeDistribution, n, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).richlist(includeDistribution, n, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transaction: function (txid, encoded, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).transaction(txid, encoded, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionInject: function (rawtx, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).transactionInject(rawtx, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionRaw: function (txid, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).transactionRaw(txid, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionVerify: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).transactionVerify(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsGet: function (addrs, confirmed, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).transactionsGet(addrs, confirmed, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsPost: function (addrs, confirmed, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).transactionsPost(addrs, confirmed, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uxout: function (uxid, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).uxout(uxid, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAddress: function (address, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).verifyAddress(address, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + version: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).version(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallet: function (id, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).wallet(id, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletBalance: function (id, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletBalance(id, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletCreate: function (seed, label, scan, encrypt, password, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletCreate(seed, label, scan, encrypt, password, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletDecrypt: function (id, password, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletDecrypt(id, password, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletEncrypt: function (id, password, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletEncrypt(id, password, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletFolder: function (addr, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletFolder(addr, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewAddress: function (id, num, password, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletNewAddress(id, num, password, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewSeed: function (entropy, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletNewSeed(entropy, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletRecover: function (id, seed, password, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletRecover(id, seed, password, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeed: function (id, password, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletSeed(id, password, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeedVerify: function (seed, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletSeedVerify(seed, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSpent: function (id, dst, coins, password, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletSpent(id, dst, coins, password, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransaction: function (body, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletTransaction(body, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransactions: function (id, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletTransactions(id, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUnload: function (id, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletUnload(id, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUpdate: function (id, label, options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).walletUpdate(id, label, options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallets: function (options) { + var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).wallets(options); + return function (axios, basePath) { + if (axios === void 0) { axios = axios_1.default; } + if (basePath === void 0) { basePath = BASE_PATH; } + var axiosRequestArgs = Object.assign(localVarAxiosArgs.options, { url: basePath + localVarAxiosArgs.url }); + return axios.request(axiosRequestArgs); + }; + }, + }; +}; +/** + * DefaultApi - factory interface + * @export + */ +exports.DefaultApiFactory = function (configuration, basePath, axios) { + return { + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressCount: function (options) { + return exports.DefaultApiFp(configuration).addressCount(options)(axios, basePath); + }, + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + addressUxouts: function (address, options) { + return exports.DefaultApiFp(configuration).addressUxouts(address, options)(axios, basePath); + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balanceGet: function (addrs, options) { + return exports.DefaultApiFp(configuration).balanceGet(addrs, options)(axios, basePath); + }, + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + balancePost: function (addrs, options) { + return exports.DefaultApiFp(configuration).balancePost(addrs, options)(axios, basePath); + }, + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + block: function (hash, seq, options) { + return exports.DefaultApiFp(configuration).block(hash, seq, options)(axios, basePath); + }, + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainMetadata: function (options) { + return exports.DefaultApiFp(configuration).blockchainMetadata(options)(axios, basePath); + }, + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blockchainProgress: function (options) { + return exports.DefaultApiFp(configuration).blockchainProgress(options)(axios, basePath); + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksGet: function (start, end, seqs, options) { + return exports.DefaultApiFp(configuration).blocksGet(start, end, seqs, options)(axios, basePath); + }, + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + blocksPost: function (start, end, seqs, options) { + return exports.DefaultApiFp(configuration).blocksPost(start, end, seqs, options)(axios, basePath); + }, + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + coinSupply: function (options) { + return exports.DefaultApiFp(configuration).coinSupply(options)(axios, basePath); + }, + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + csrf: function (options) { + return exports.DefaultApiFp(configuration).csrf(options)(axios, basePath); + }, + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + defaultConnections: function (options) { + return exports.DefaultApiFp(configuration).defaultConnections(options)(axios, basePath); + }, + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + explorerAddress: function (address, options) { + return exports.DefaultApiFp(configuration).explorerAddress(address, options)(axios, basePath); + }, + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + health: function (options) { + return exports.DefaultApiFp(configuration).health(options)(axios, basePath); + }, + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + lastBlocks: function (num, options) { + return exports.DefaultApiFp(configuration).lastBlocks(num, options)(axios, basePath); + }, + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnection: function (addr, options) { + return exports.DefaultApiFp(configuration).networkConnection(addr, options)(axios, basePath); + }, + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnections: function (states, direction, options) { + return exports.DefaultApiFp(configuration).networkConnections(states, direction, options)(axios, basePath); + }, + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsDisconnect: function (id, options) { + return exports.DefaultApiFp(configuration).networkConnectionsDisconnect(id, options)(axios, basePath); + }, + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsExchange: function (options) { + return exports.DefaultApiFp(configuration).networkConnectionsExchange(options)(axios, basePath); + }, + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + networkConnectionsTrust: function (options) { + return exports.DefaultApiFp(configuration).networkConnectionsTrust(options)(axios, basePath); + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsGet: function (address, hash, options) { + return exports.DefaultApiFp(configuration).outputsGet(address, hash, options)(axios, basePath); + }, + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + outputsPost: function (address, hash, options) { + return exports.DefaultApiFp(configuration).outputsPost(address, hash, options)(axios, basePath); + }, + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pendingTxs: function (options) { + return exports.DefaultApiFp(configuration).pendingTxs(options)(axios, basePath); + }, + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + resendUnconfirmedTxns: function (options) { + return exports.DefaultApiFp(configuration).resendUnconfirmedTxns(options)(axios, basePath); + }, + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + richlist: function (includeDistribution, n, options) { + return exports.DefaultApiFp(configuration).richlist(includeDistribution, n, options)(axios, basePath); + }, + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transaction: function (txid, encoded, options) { + return exports.DefaultApiFp(configuration).transaction(txid, encoded, options)(axios, basePath); + }, + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionInject: function (rawtx, options) { + return exports.DefaultApiFp(configuration).transactionInject(rawtx, options)(axios, basePath); + }, + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionRaw: function (txid, options) { + return exports.DefaultApiFp(configuration).transactionRaw(txid, options)(axios, basePath); + }, + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionVerify: function (options) { + return exports.DefaultApiFp(configuration).transactionVerify(options)(axios, basePath); + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsGet: function (addrs, confirmed, options) { + return exports.DefaultApiFp(configuration).transactionsGet(addrs, confirmed, options)(axios, basePath); + }, + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + transactionsPost: function (addrs, confirmed, options) { + return exports.DefaultApiFp(configuration).transactionsPost(addrs, confirmed, options)(axios, basePath); + }, + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uxout: function (uxid, options) { + return exports.DefaultApiFp(configuration).uxout(uxid, options)(axios, basePath); + }, + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAddress: function (address, options) { + return exports.DefaultApiFp(configuration).verifyAddress(address, options)(axios, basePath); + }, + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + version: function (options) { + return exports.DefaultApiFp(configuration).version(options)(axios, basePath); + }, + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallet: function (id, options) { + return exports.DefaultApiFp(configuration).wallet(id, options)(axios, basePath); + }, + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletBalance: function (id, options) { + return exports.DefaultApiFp(configuration).walletBalance(id, options)(axios, basePath); + }, + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletCreate: function (seed, label, scan, encrypt, password, options) { + return exports.DefaultApiFp(configuration).walletCreate(seed, label, scan, encrypt, password, options)(axios, basePath); + }, + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletDecrypt: function (id, password, options) { + return exports.DefaultApiFp(configuration).walletDecrypt(id, password, options)(axios, basePath); + }, + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletEncrypt: function (id, password, options) { + return exports.DefaultApiFp(configuration).walletEncrypt(id, password, options)(axios, basePath); + }, + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletFolder: function (addr, options) { + return exports.DefaultApiFp(configuration).walletFolder(addr, options)(axios, basePath); + }, + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewAddress: function (id, num, password, options) { + return exports.DefaultApiFp(configuration).walletNewAddress(id, num, password, options)(axios, basePath); + }, + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletNewSeed: function (entropy, options) { + return exports.DefaultApiFp(configuration).walletNewSeed(entropy, options)(axios, basePath); + }, + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletRecover: function (id, seed, password, options) { + return exports.DefaultApiFp(configuration).walletRecover(id, seed, password, options)(axios, basePath); + }, + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeed: function (id, password, options) { + return exports.DefaultApiFp(configuration).walletSeed(id, password, options)(axios, basePath); + }, + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSeedVerify: function (seed, options) { + return exports.DefaultApiFp(configuration).walletSeedVerify(seed, options)(axios, basePath); + }, + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletSpent: function (id, dst, coins, password, options) { + return exports.DefaultApiFp(configuration).walletSpent(id, dst, coins, password, options)(axios, basePath); + }, + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransaction: function (body, options) { + return exports.DefaultApiFp(configuration).walletTransaction(body, options)(axios, basePath); + }, + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletTransactions: function (id, options) { + return exports.DefaultApiFp(configuration).walletTransactions(id, options)(axios, basePath); + }, + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUnload: function (id, options) { + return exports.DefaultApiFp(configuration).walletUnload(id, options)(axios, basePath); + }, + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + walletUpdate: function (id, label, options) { + return exports.DefaultApiFp(configuration).walletUpdate(id, label, options)(axios, basePath); + }, + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wallets: function (options) { + return exports.DefaultApiFp(configuration).wallets(options)(axios, basePath); + }, + }; +}; +/** + * DefaultApi - object-oriented interface + * @export + * @class DefaultApi + * @extends {BaseAPI} + */ +var DefaultApi = /** @class */ (function (_super) { + __extends(DefaultApi, _super); + function DefaultApi() { + return _super !== null && _super.apply(this, arguments) || this; + } + /** + * + * @summary Returns the total number of unique address that have coins. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.addressCount = function (options) { + return exports.DefaultApiFp(this.configuration).addressCount(options)(this.axios, this.basePath); + }; + /** + * Returns the historical, spent outputs associated with an address + * @param {string} address address to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.addressUxouts = function (address, options) { + return exports.DefaultApiFp(this.configuration).addressUxouts(address, options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.balanceGet = function (addrs, options) { + return exports.DefaultApiFp(this.configuration).balanceGet(addrs, options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} addrs command separated list of addresses + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.balancePost = function (addrs, options) { + return exports.DefaultApiFp(this.configuration).balancePost(addrs, options)(this.axios, this.basePath); + }; + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param {string} [hash] + * @param {number} [seq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.block = function (hash, seq, options) { + return exports.DefaultApiFp(this.configuration).block(hash, seq, options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns the blockchain metadata. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.blockchainMetadata = function (options) { + return exports.DefaultApiFp(this.configuration).blockchainMetadata(options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns the blockchain sync progress. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.blockchainProgress = function (options) { + return exports.DefaultApiFp(this.configuration).blockchainProgress(options)(this.axios, this.basePath); + }; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.blocksGet = function (start, end, seqs, options) { + return exports.DefaultApiFp(this.configuration).blocksGet(start, end, seqs, options)(this.axios, this.basePath); + }; + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param {number} [start] + * @param {number} [end] + * @param {Array} [seqs] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.blocksPost = function (start, end, seqs, options) { + return exports.DefaultApiFp(this.configuration).blocksPost(start, end, seqs, options)(this.axios, this.basePath); + }; + /** + * coinSupplyHandler returns coin distribution supply stats + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.coinSupply = function (options) { + return exports.DefaultApiFp(this.configuration).coinSupply(options)(this.axios, this.basePath); + }; + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.csrf = function (options) { + return exports.DefaultApiFp(this.configuration).csrf(options)(this.axios, this.basePath); + }; + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.defaultConnections = function (options) { + return exports.DefaultApiFp(this.configuration).defaultConnections(options)(this.axios, this.basePath); + }; + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param {string} [address] tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.explorerAddress = function (address, options) { + return exports.DefaultApiFp(this.configuration).explorerAddress(address, options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns node health data. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.health = function (options) { + return exports.DefaultApiFp(this.configuration).health(options)(this.axios, this.basePath); + }; + /** + * Returns the most recent N blocks on the blockchain + * @param {number} num + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.lastBlocks = function (num, options) { + return exports.DefaultApiFp(this.configuration).lastBlocks(num, options)(this.axios, this.basePath); + }; + /** + * + * @summary This endpoint returns a specific connection. + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.networkConnection = function (addr, options) { + return exports.DefaultApiFp(this.configuration).networkConnection(addr, options)(this.axios, this.basePath); + }; + /** + * + * @summary This endpoint returns all outgoings connections. + * @param {'pending' | 'connected' | 'introduced'} [states] Connection status. + * @param {'connected' | 'introduced'} [direction] Direction of the connection. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.networkConnections = function (states, direction, options) { + return exports.DefaultApiFp(this.configuration).networkConnections(states, direction, options)(this.axios, this.basePath); + }; + /** + * This endpoint disconnects a connection by ID or address + * @param {string} id Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.networkConnectionsDisconnect = function (id, options) { + return exports.DefaultApiFp(this.configuration).networkConnectionsDisconnect(id, options)(this.axios, this.basePath); + }; + /** + * This endpoint returns all connections found through peer exchange + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.networkConnectionsExchange = function (options) { + return exports.DefaultApiFp(this.configuration).networkConnectionsExchange(options)(this.axios, this.basePath); + }; + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.networkConnectionsTrust = function (options) { + return exports.DefaultApiFp(this.configuration).networkConnectionsTrust(options)(this.axios, this.basePath); + }; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {Array} [address] + * @param {Array} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.outputsGet = function (address, hash, options) { + return exports.DefaultApiFp(this.configuration).outputsGet(address, hash, options)(this.axios, this.basePath); + }; + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param {string} [address] + * @param {string} [hash] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.outputsPost = function (address, hash, options) { + return exports.DefaultApiFp(this.configuration).outputsPost(address, hash, options)(this.axios, this.basePath); + }; + /** + * Returns pending (unconfirmed) transactions without verbose + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.pendingTxs = function (options) { + return exports.DefaultApiFp(this.configuration).pendingTxs(options)(this.axios, this.basePath); + }; + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.resendUnconfirmedTxns = function (options) { + return exports.DefaultApiFp(this.configuration).resendUnconfirmedTxns(options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns the top skycoin holders. + * @param {boolean} [includeDistribution] include distribution addresses or not, default value false + * @param {string} [n] include distribution addresses or not, default value false + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.richlist = function (includeDistribution, n, options) { + return exports.DefaultApiFp(this.configuration).richlist(includeDistribution, n, options)(this.axios, this.basePath); + }; + /** + * Returns a transaction identified by its txid hash with just id + * @param {string} txid transaction hash + * @param {boolean} [encoded] return as a raw encoded transaction. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.transaction = function (txid, encoded, options) { + return exports.DefaultApiFp(this.configuration).transaction(txid, encoded, options)(this.axios, this.basePath); + }; + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param {string} rawtx hex-encoded serialized transaction string. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.transactionInject = function (rawtx, options) { + return exports.DefaultApiFp(this.configuration).transactionInject(rawtx, options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param {string} [txid] Transaction id hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.transactionRaw = function (txid, options) { + return exports.DefaultApiFp(this.configuration).transactionRaw(txid, options)(this.axios, this.basePath); + }; + /** + * Decode and verify an encoded transaction + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.transactionVerify = function (options) { + return exports.DefaultApiFp(this.configuration).transactionVerify(options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.transactionsGet = function (addrs, confirmed, options) { + return exports.DefaultApiFp(this.configuration).transactionsGet(addrs, confirmed, options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns transactions that match the filters. + * @param {string} [addrs] command separated list of addresses + * @param {string} [confirmed] Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.transactionsPost = function (addrs, confirmed, options) { + return exports.DefaultApiFp(this.configuration).transactionsPost(addrs, confirmed, options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns an unspent output by ID. + * @param {string} [uxid] uxid to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.uxout = function (uxid, options) { + return exports.DefaultApiFp(this.configuration).uxout(uxid, options)(this.axios, this.basePath); + }; + /** + * + * @summary Verifies a Skycoin address. + * @param {string} address Address id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.verifyAddress = function (address, options) { + return exports.DefaultApiFp(this.configuration).verifyAddress(address, options)(this.axios, this.basePath); + }; + /** + * versionHandler returns the application version info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.version = function (options) { + return exports.DefaultApiFp(this.configuration).version(options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns a wallet by id. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.wallet = function (id, options) { + return exports.DefaultApiFp(this.configuration).wallet(id, options)(this.axios, this.basePath); + }; + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param {string} id tags to filter by + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletBalance = function (id, options) { + return exports.DefaultApiFp(this.configuration).walletBalance(id, options)(this.axios, this.basePath); + }; + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param {string} seed Wallet seed. + * @param {string} label Wallet label. + * @param {number} [scan] The number of addresses to scan ahead for balances. + * @param {boolean} [encrypt] Encrypt wallet. + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletCreate = function (seed, label, scan, encrypt, password, options) { + return exports.DefaultApiFp(this.configuration).walletCreate(seed, label, scan, encrypt, password, options)(this.axios, this.basePath); + }; + /** + * + * @summary Decrypts wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletDecrypt = function (id, password, options) { + return exports.DefaultApiFp(this.configuration).walletDecrypt(id, password, options)(this.axios, this.basePath); + }; + /** + * + * @summary Encrypt wallet. + * @param {string} id Wallet id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletEncrypt = function (id, password, options) { + return exports.DefaultApiFp(this.configuration).walletEncrypt(id, password, options)(this.axios, this.basePath); + }; + /** + * Returns the wallet directory path + * @param {string} addr Address port + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletFolder = function (addr, options) { + return exports.DefaultApiFp(this.configuration).walletFolder(addr, options)(this.axios, this.basePath); + }; + /** + * Generates new addresses + * @param {string} id Wallet Id + * @param {string} [num] The number you want to generate + * @param {string} [password] Wallet Password + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletNewAddress = function (id, num, password, options) { + return exports.DefaultApiFp(this.configuration).walletNewAddress(id, num, password, options)(this.axios, this.basePath); + }; + /** + * Returns the wallet directory path + * @param {'128' | '256'} [entropy] Entropy bitSize. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletNewSeed = function (entropy, options) { + return exports.DefaultApiFp(this.configuration).walletNewSeed(entropy, options)(this.axios, this.basePath); + }; + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param {string} id Wallet id. + * @param {string} seed Wallet seed. + * @param {string} [password] Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletRecover = function (id, seed, password, options) { + return exports.DefaultApiFp(this.configuration).walletRecover(id, seed, password, options)(this.axios, this.basePath); + }; + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param {string} id Wallet Id. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletSeed = function (id, password, options) { + return exports.DefaultApiFp(this.configuration).walletSeed(id, password, options)(this.axios, this.basePath); + }; + /** + * + * @summary Verifies a wallet seed. + * @param {string} [seed] Seed to be verified. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletSeedVerify = function (seed, options) { + return exports.DefaultApiFp(this.configuration).walletSeedVerify(seed, options)(this.axios, this.basePath); + }; + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param {string} id Wallet id + * @param {string} dst Recipient address + * @param {string} coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param {string} password Wallet password. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletSpent = function (id, dst, coins, password, options) { + return exports.DefaultApiFp(this.configuration).walletSpent(id, dst, coins, password, options)(this.axios, this.basePath); + }; + /** + * Creates a signed transaction + * @param {InlineObject} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletTransaction = function (body, options) { + return exports.DefaultApiFp(this.configuration).walletTransaction(body, options)(this.axios, this.basePath); + }; + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param {string} id Wallet id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletTransactions = function (id, options) { + return exports.DefaultApiFp(this.configuration).walletTransactions(id, options)(this.axios, this.basePath); + }; + /** + * + * @summary Unloads wallet from the wallet service. + * @param {string} id Wallet Id. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletUnload = function (id, options) { + return exports.DefaultApiFp(this.configuration).walletUnload(id, options)(this.axios, this.basePath); + }; + /** + * + * @summary Update the wallet. + * @param {string} id Wallet Id. + * @param {string} label The label the wallet will be updated to. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.walletUpdate = function (id, label, options) { + return exports.DefaultApiFp(this.configuration).walletUpdate(id, label, options)(this.axios, this.basePath); + }; + /** + * Returns all loaded wallets + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + DefaultApi.prototype.wallets = function (options) { + return exports.DefaultApiFp(this.configuration).wallets(options)(this.axios, this.basePath); + }; + return DefaultApi; +}(BaseAPI)); +exports.DefaultApi = DefaultApi; diff --git a/lib/skyapi/axios/dist/configuration.d.ts b/lib/skyapi/axios/dist/configuration.d.ts new file mode 100644 index 0000000..310d288 --- /dev/null +++ b/lib/skyapi/axios/dist/configuration.d.ts @@ -0,0 +1,63 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export interface ConfigurationParameters { + apiKey?: string | ((name: string) => string); + username?: string; + password?: string; + accessToken?: string | ((name: string, scopes?: string[]) => string); + basePath?: string; + baseOptions?: any; +} +export declare class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | ((name: string) => string); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | ((name: string, scopes?: string[]) => string); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + constructor(param?: ConfigurationParameters); +} diff --git a/lib/skyapi/axios/dist/configuration.js b/lib/skyapi/axios/dist/configuration.js new file mode 100644 index 0000000..12fc290 --- /dev/null +++ b/lib/skyapi/axios/dist/configuration.js @@ -0,0 +1,26 @@ +"use strict"; +// tslint:disable +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +var Configuration = /** @class */ (function () { + function Configuration(param) { + if (param === void 0) { param = {}; } + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + } + return Configuration; +}()); +exports.Configuration = Configuration; diff --git a/lib/skyapi/axios/dist/index.d.ts b/lib/skyapi/axios/dist/index.d.ts new file mode 100644 index 0000000..8ec4603 --- /dev/null +++ b/lib/skyapi/axios/dist/index.d.ts @@ -0,0 +1,13 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export * from "./api"; +export * from "./configuration"; diff --git a/lib/skyapi/axios/dist/index.js b/lib/skyapi/axios/dist/index.js new file mode 100644 index 0000000..31288b3 --- /dev/null +++ b/lib/skyapi/axios/dist/index.js @@ -0,0 +1,19 @@ +"use strict"; +// tslint:disable +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(require("./api")); +__export(require("./configuration")); diff --git a/lib/skyapi/axios/git_push.sh b/lib/skyapi/axios/git_push.sh new file mode 100644 index 0000000..188eeae --- /dev/null +++ b/lib/skyapi/axios/git_push.sh @@ -0,0 +1,51 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/lib/skyapi/axios/index.ts b/lib/skyapi/axios/index.ts new file mode 100644 index 0000000..514721a --- /dev/null +++ b/lib/skyapi/axios/index.ts @@ -0,0 +1,16 @@ +// tslint:disable +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export * from "./api"; +export * from "./configuration"; diff --git a/lib/skyapi/axios/package-lock.json b/lib/skyapi/axios/package-lock.json new file mode 100644 index 0000000..3159da1 --- /dev/null +++ b/lib/skyapi/axios/package-lock.json @@ -0,0 +1,55 @@ +{ + "name": "libsky-axios", + "version": "0.25.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@types/node": { + "version": "8.10.45", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.45.tgz", + "integrity": "sha512-tGVTbA+i3qfXsLbq9rEq/hezaHY55QxQLeXQL2ejNgFAxxrgu8eMmYIOsRcl7hN1uTLVsKOOYacV/rcJM3sfgQ==", + "dev": true + }, + "axios": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", + "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", + "requires": { + "follow-redirects": "^1.3.0", + "is-buffer": "^1.1.5" + } + }, + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "requires": { + "ms": "^2.1.1" + } + }, + "follow-redirects": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.7.0.tgz", + "integrity": "sha512-m/pZQy4Gj287eNy94nivy5wchN3Kp+Q5WgUPNy5lJSZ3sgkVKSYV/ZChMAQVIgx1SqfZ2zBZtPA2YlXIWxxJOQ==", + "requires": { + "debug": "^3.2.6" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + }, + "typescript": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz", + "integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==", + "dev": true + } + } +} diff --git a/lib/skyapi/axios/package.json b/lib/skyapi/axios/package.json new file mode 100644 index 0000000..5ec9f99 --- /dev/null +++ b/lib/skyapi/axios/package.json @@ -0,0 +1,28 @@ +{ + "name": "libsky-axios", + "version": "0.25.1", + "description": "OpenAPI client for libsky-axios", + "author": "OpenAPI-Generator Contributors", + "keywords": [ + "axios", + "typescript", + "openapi-client", + "openapi-generator", + "libsky-axios" + ], + "license": "Unlicense", + "main": "./dist/index.js", + "typings": "./dist/index.d.ts", + "scripts": { + "build": "tsc --outDir dist/", + "prepublishOnly": "npm run build" + }, + "dependencies": { + "axios": "^0.18.0" + }, + "peerDependencies": {}, + "devDependencies": { + "@types/node": "^8.0.9", + "typescript": "^2.4" + } +} diff --git a/lib/skyapi/axios/tsconfig.json b/lib/skyapi/axios/tsconfig.json new file mode 100644 index 0000000..50ab7fa --- /dev/null +++ b/lib/skyapi/axios/tsconfig.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "declaration": true, + "target": "es5", + "module": "commonjs", + "noImplicitAny": true, + "outDir": "dist", + "rootDir": ".", + "lib": [ + "es6", + "dom" + ] + }, + "exclude": [ + "dist", + "node_modules" + ] +} diff --git a/lib/skyapi/node/.gitignore b/lib/skyapi/node/.gitignore new file mode 100644 index 0000000..35e2fb2 --- /dev/null +++ b/lib/skyapi/node/.gitignore @@ -0,0 +1,3 @@ +wwwroot/*.js +node_modules +typings diff --git a/lib/skyapi/node/.openapi-generator-ignore b/lib/skyapi/node/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/lib/skyapi/node/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/lib/skyapi/node/.openapi-generator/VERSION b/lib/skyapi/node/.openapi-generator/VERSION new file mode 100644 index 0000000..f9dfe82 --- /dev/null +++ b/lib/skyapi/node/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.0.0-beta2 \ No newline at end of file diff --git a/lib/skyapi/node/api.ts b/lib/skyapi/node/api.ts new file mode 100644 index 0000000..4b76122 --- /dev/null +++ b/lib/skyapi/node/api.ts @@ -0,0 +1,3 @@ +// This is the entrypoint for the package +export * from './api/apis'; +export * from './model/models'; \ No newline at end of file diff --git a/lib/skyapi/node/api/apis.ts b/lib/skyapi/node/api/apis.ts new file mode 100644 index 0000000..8a6789d --- /dev/null +++ b/lib/skyapi/node/api/apis.ts @@ -0,0 +1,3 @@ +export * from './defaultApi'; +import { DefaultApi } from './defaultApi'; +export const APIS = [DefaultApi]; diff --git a/lib/skyapi/node/api/defaultApi.ts b/lib/skyapi/node/api/defaultApi.ts new file mode 100644 index 0000000..ecfb7d4 --- /dev/null +++ b/lib/skyapi/node/api/defaultApi.ts @@ -0,0 +1,2916 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import localVarRequest = require('request'); +import http = require('http'); +import Promise = require('bluebird'); + +/* tslint:disable:no-unused-locals */ +import { InlineObject } from '../model/inlineObject'; +import { InlineResponse200 } from '../model/inlineResponse200'; +import { InlineResponse2001 } from '../model/inlineResponse2001'; +import { InlineResponse2002 } from '../model/inlineResponse2002'; +import { InlineResponse2003 } from '../model/inlineResponse2003'; +import { InlineResponse2004 } from '../model/inlineResponse2004'; +import { InlineResponse2005 } from '../model/inlineResponse2005'; +import { InlineResponse2006 } from '../model/inlineResponse2006'; +import { InlineResponse2007 } from '../model/inlineResponse2007'; +import { InlineResponseDefault } from '../model/inlineResponseDefault'; + +import { ObjectSerializer, Authentication, HttpBasicAuth, ApiKeyAuth, OAuth, VoidAuth } from '../model/models'; + +let defaultBasePath = 'http://127.0.0.1:6420'; + +// =============================================== +// This file is autogenerated - Please do not edit +// =============================================== + +export enum DefaultApiApiKeys { + csrfAuth, +} + +export class DefaultApi { + protected _basePath = defaultBasePath; + protected defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'csrfAuth': new ApiKeyAuth('header', 'X-CSRF-TOKEN'), + } + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: DefaultApiApiKeys, value: string) { + (this.authentications as any)[DefaultApiApiKeys[key]].apiKey = value; + } + + /** + * + * @summary Returns the total number of unique address that have coins. + */ + public addressCount (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/addresscount'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns the historical, spent outputs associated with an address + * @param address address to filter by + */ + public addressUxouts (address: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { + const localVarPath = this.basePath + '/api/v1/address_uxouts'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'address' is not null or undefined + if (address === null || address === undefined) { + throw new Error('Required parameter address was null or undefined when calling addressUxouts.'); + } + + if (address !== undefined) { + localVarQueryParameters['address'] = ObjectSerializer.serialize(address, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param addrs command separated list of addresses + */ + public balanceGet (addrs: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/balance'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'addrs' is not null or undefined + if (addrs === null || addrs === undefined) { + throw new Error('Required parameter addrs was null or undefined when calling balanceGet.'); + } + + if (addrs !== undefined) { + localVarQueryParameters['addrs'] = ObjectSerializer.serialize(addrs, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param addrs command separated list of addresses + */ + public balancePost (addrs: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/balance'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'addrs' is not null or undefined + if (addrs === null || addrs === undefined) { + throw new Error('Required parameter addrs was null or undefined when calling balancePost.'); + } + + if (addrs !== undefined) { + localVarQueryParameters['addrs'] = ObjectSerializer.serialize(addrs, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns a block by hash or seq. Note: only one of hash or seq is allowed + * @param hash + * @param seq + */ + public block (hash?: string, seq?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/block'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (hash !== undefined) { + localVarQueryParameters['hash'] = ObjectSerializer.serialize(hash, "string"); + } + + if (seq !== undefined) { + localVarQueryParameters['seq'] = ObjectSerializer.serialize(seq, "number"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns the blockchain metadata. + */ + public blockchainMetadata (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/blockchain/metadata'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns the blockchain sync progress. + */ + public blockchainProgress (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/blockchain/progress'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose. + * @summary blocksHandler returns blocks between a start and end point, + * @param start + * @param end + * @param seqs + */ + public blocksGet (start?: number, end?: number, seqs?: Array, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/blocks'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (start !== undefined) { + localVarQueryParameters['start'] = ObjectSerializer.serialize(start, "number"); + } + + if (end !== undefined) { + localVarQueryParameters['end'] = ObjectSerializer.serialize(end, "number"); + } + + if (seqs !== undefined) { + localVarQueryParameters['seqs'] = ObjectSerializer.serialize(seqs, "Array"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * or an explicit list of sequences. If using start and end, the block sequences include both the start and end point. Explicit sequences cannot be combined with start and end. Without verbose + * @summary blocksHandler returns blocks between a start and end point, + * @param start + * @param end + * @param seqs + */ + public blocksPost (start?: number, end?: number, seqs?: Array, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/blocks'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (start !== undefined) { + localVarQueryParameters['start'] = ObjectSerializer.serialize(start, "number"); + } + + if (end !== undefined) { + localVarQueryParameters['end'] = ObjectSerializer.serialize(end, "number"); + } + + if (seqs !== undefined) { + localVarQueryParameters['seqs'] = ObjectSerializer.serialize(seqs, "Array"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * coinSupplyHandler returns coin distribution supply stats + */ + public coinSupply (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body?: any; }> { + const localVarPath = this.basePath + '/api/v1/coinSupply'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + */ + public csrf (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: InlineResponse2001; }> { + const localVarPath = this.basePath + '/api/v1/csrf'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: InlineResponse2001; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "InlineResponse2001"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + */ + public defaultConnections (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { + const localVarPath = this.basePath + '/api/v1/network/defaultConnections'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns all transactions (confirmed and unconfirmed) for an address + * @param address tags to filter by + */ + public explorerAddress (address?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { + const localVarPath = this.basePath + '/api/v1/explorer/address'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (address !== undefined) { + localVarQueryParameters['address'] = ObjectSerializer.serialize(address, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns node health data. + */ + public health (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/health'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns the most recent N blocks on the blockchain + * @param num + */ + public lastBlocks (num: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/last_blocks'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'num' is not null or undefined + if (num === null || num === undefined) { + throw new Error('Required parameter num was null or undefined when calling lastBlocks.'); + } + + if (num !== undefined) { + localVarQueryParameters['num'] = ObjectSerializer.serialize(num, "number"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary This endpoint returns a specific connection. + * @param addr Address port + */ + public networkConnection (addr: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: InlineResponse2003; }> { + const localVarPath = this.basePath + '/api/v1/network/connection'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'addr' is not null or undefined + if (addr === null || addr === undefined) { + throw new Error('Required parameter addr was null or undefined when calling networkConnection.'); + } + + if (addr !== undefined) { + localVarQueryParameters['addr'] = ObjectSerializer.serialize(addr, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: InlineResponse2003; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "InlineResponse2003"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary This endpoint returns all outgoings connections. + * @param states Connection status. + * @param direction Direction of the connection. + */ + public networkConnections (states?: 'pending' | 'connected' | 'introduced', direction?: 'connected' | 'introduced', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { + const localVarPath = this.basePath + '/api/v1/network/connections'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (states !== undefined) { + localVarQueryParameters['states'] = ObjectSerializer.serialize(states, "'pending' | 'connected' | 'introduced'"); + } + + if (direction !== undefined) { + localVarQueryParameters['direction'] = ObjectSerializer.serialize(direction, "'connected' | 'introduced'"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * This endpoint disconnects a connection by ID or address + * @param id Address id. + */ + public networkConnectionsDisconnect (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body?: any; }> { + const localVarPath = this.basePath + '/api/v1/network/connection/disconnect'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling networkConnectionsDisconnect.'); + } + + if (id !== undefined) { + localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * This endpoint returns all connections found through peer exchange + */ + public networkConnectionsExchange (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { + const localVarPath = this.basePath + '/api/v1/network/connections/exchange'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + */ + public networkConnectionsTrust (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { + const localVarPath = this.basePath + '/api/v1/network/connections/trust'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param address + * @param hash + */ + public outputsGet (address?: Array, hash?: Array, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/outputs'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (address !== undefined) { + localVarQueryParameters['address'] = ObjectSerializer.serialize(address, "Array"); + } + + if (hash !== undefined) { + localVarQueryParameters['hash'] = ObjectSerializer.serialize(hash, "Array"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + * @param address + * @param hash + */ + public outputsPost (address?: string, hash?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/outputs'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (address !== undefined) { + localVarQueryParameters['address'] = ObjectSerializer.serialize(address, "string"); + } + + if (hash !== undefined) { + localVarQueryParameters['hash'] = ObjectSerializer.serialize(hash, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns pending (unconfirmed) transactions without verbose + */ + public pendingTxs (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { + const localVarPath = this.basePath + '/api/v1/pendingTxs'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + */ + public resendUnconfirmedTxns (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body?: any; }> { + const localVarPath = this.basePath + '/api/v1/resendUnconfirmedTxns'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns the top skycoin holders. + * @param includeDistribution include distribution addresses or not, default value false + * @param n include distribution addresses or not, default value false + */ + public richlist (includeDistribution?: boolean, n?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/richlist'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (includeDistribution !== undefined) { + localVarQueryParameters['include-distribution'] = ObjectSerializer.serialize(includeDistribution, "boolean"); + } + + if (n !== undefined) { + localVarQueryParameters['n'] = ObjectSerializer.serialize(n, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns a transaction identified by its txid hash with just id + * @param txid transaction hash + * @param encoded return as a raw encoded transaction. + */ + public transaction (txid: string, encoded?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/transaction'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'txid' is not null or undefined + if (txid === null || txid === undefined) { + throw new Error('Required parameter txid was null or undefined when calling transaction.'); + } + + if (txid !== undefined) { + localVarQueryParameters['txid'] = ObjectSerializer.serialize(txid, "string"); + } + + if (encoded !== undefined) { + localVarQueryParameters['encoded'] = ObjectSerializer.serialize(encoded, "boolean"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Broadcast a hex-encoded, serialized transaction to the network. + * @param rawtx hex-encoded serialized transaction string. + */ + public transactionInject (rawtx: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v2/transaction/inject'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'rawtx' is not null or undefined + if (rawtx === null || rawtx === undefined) { + throw new Error('Required parameter rawtx was null or undefined when calling transactionInject.'); + } + + localVarHeaderParams['rawtx'] = ObjectSerializer.serialize(rawtx, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + * @param txid Transaction id hash + */ + public transactionRaw (txid?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v2/transaction/raw'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (txid !== undefined) { + localVarQueryParameters['txid'] = ObjectSerializer.serialize(txid, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Decode and verify an encoded transaction + */ + public transactionVerify (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v2/transaction/verify'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns transactions that match the filters. + * @param addrs command separated list of addresses + * @param confirmed Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + */ + public transactionsGet (addrs?: string, confirmed?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/transactions'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (addrs !== undefined) { + localVarQueryParameters['addrs'] = ObjectSerializer.serialize(addrs, "string"); + } + + if (confirmed !== undefined) { + localVarQueryParameters['confirmed'] = ObjectSerializer.serialize(confirmed, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns transactions that match the filters. + * @param addrs command separated list of addresses + * @param confirmed Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + */ + public transactionsPost (addrs?: string, confirmed?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/transactions'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (addrs !== undefined) { + localVarQueryParameters['addrs'] = ObjectSerializer.serialize(addrs, "string"); + } + + if (confirmed !== undefined) { + localVarQueryParameters['confirmed'] = ObjectSerializer.serialize(confirmed, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns an unspent output by ID. + * @param uxid uxid to filter by + */ + public uxout (uxid?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/uxout'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (uxid !== undefined) { + localVarQueryParameters['uxid'] = ObjectSerializer.serialize(uxid, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Verifies a Skycoin address. + * @param address Address id. + */ + public verifyAddress (address: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: InlineResponse2007; }> { + const localVarPath = this.basePath + '/api/v2/address/verify'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'address' is not null or undefined + if (address === null || address === undefined) { + throw new Error('Required parameter address was null or undefined when calling verifyAddress.'); + } + + if (address !== undefined) { + localVarQueryParameters['address'] = ObjectSerializer.serialize(address, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: InlineResponse2007; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "InlineResponse2007"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * versionHandler returns the application version info + */ + public version (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body?: any; }> { + const localVarPath = this.basePath + '/api/v1/version'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns a wallet by id. + * @param id tags to filter by + */ + public wallet (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling wallet.'); + } + + if (id !== undefined) { + localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + * @param id tags to filter by + */ + public walletBalance (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/balance'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletBalance.'); + } + + if (id !== undefined) { + localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Loads wallet from seed, will scan ahead N address and load addresses till the last one that have coins. + * @param seed Wallet seed. + * @param label Wallet label. + * @param scan The number of addresses to scan ahead for balances. + * @param encrypt Encrypt wallet. + * @param password Wallet Password + */ + public walletCreate (seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/create'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'seed' is not null or undefined + if (seed === null || seed === undefined) { + throw new Error('Required parameter seed was null or undefined when calling walletCreate.'); + } + + // verify required parameter 'label' is not null or undefined + if (label === null || label === undefined) { + throw new Error('Required parameter label was null or undefined when calling walletCreate.'); + } + + localVarHeaderParams['seed'] = ObjectSerializer.serialize(seed, "string"); + localVarHeaderParams['label'] = ObjectSerializer.serialize(label, "string"); + localVarHeaderParams['scan'] = ObjectSerializer.serialize(scan, "number"); + localVarHeaderParams['encrypt'] = ObjectSerializer.serialize(encrypt, "boolean"); + localVarHeaderParams['password'] = ObjectSerializer.serialize(password, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Decrypts wallet. + * @param id Wallet id. + * @param password Wallet password. + */ + public walletDecrypt (id: string, password: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/decrypt'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletDecrypt.'); + } + + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling walletDecrypt.'); + } + + localVarHeaderParams['id'] = ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['password'] = ObjectSerializer.serialize(password, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Encrypt wallet. + * @param id Wallet id. + * @param password Wallet password. + */ + public walletEncrypt (id: string, password: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/encrypt'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletEncrypt.'); + } + + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling walletEncrypt.'); + } + + localVarHeaderParams['id'] = ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['password'] = ObjectSerializer.serialize(password, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns the wallet directory path + * @param addr Address port + */ + public walletFolder (addr: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: InlineResponse2006; }> { + const localVarPath = this.basePath + '/api/v1/wallets/folderName'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'addr' is not null or undefined + if (addr === null || addr === undefined) { + throw new Error('Required parameter addr was null or undefined when calling walletFolder.'); + } + + if (addr !== undefined) { + localVarQueryParameters['addr'] = ObjectSerializer.serialize(addr, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: InlineResponse2006; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "InlineResponse2006"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Generates new addresses + * @param id Wallet Id + * @param num The number you want to generate + * @param password Wallet Password + */ + public walletNewAddress (id: string, num?: string, password?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/newAddress'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletNewAddress.'); + } + + if (id !== undefined) { + localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); + } + + if (num !== undefined) { + localVarQueryParameters['num'] = ObjectSerializer.serialize(num, "string"); + } + + if (password !== undefined) { + localVarQueryParameters['password'] = ObjectSerializer.serialize(password, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns the wallet directory path + * @param entropy Entropy bitSize. + */ + public walletNewSeed (entropy?: '128' | '256', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/newSeed'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + if (entropy !== undefined) { + localVarQueryParameters['entropy'] = ObjectSerializer.serialize(entropy, "'128' | '256'"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + * @param id Wallet id. + * @param seed Wallet seed. + * @param password Wallet password. + */ + public walletRecover (id: string, seed: string, password?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v2/wallet/recover'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletRecover.'); + } + + // verify required parameter 'seed' is not null or undefined + if (seed === null || seed === undefined) { + throw new Error('Required parameter seed was null or undefined when calling walletRecover.'); + } + + localVarHeaderParams['id'] = ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['seed'] = ObjectSerializer.serialize(seed, "string"); + localVarHeaderParams['password'] = ObjectSerializer.serialize(password, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + * @param id Wallet Id. + * @param password Wallet password. + */ + public walletSeed (id: string, password: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/seed'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletSeed.'); + } + + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling walletSeed.'); + } + + if (id !== undefined) { + localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); + } + + if (password !== undefined) { + localVarQueryParameters['password'] = ObjectSerializer.serialize(password, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Verifies a wallet seed. + * @param seed Seed to be verified. + */ + public walletSeedVerify (seed?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v2/wallet/seed/verify'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + localVarHeaderParams['seed'] = ObjectSerializer.serialize(seed, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Creates and broadcasts a transaction sending money from one of our wallets to destination address. + * @param id Wallet id + * @param dst Recipient address + * @param coins Number of coins to spend, in droplets. 1 coin equals 1e6 droplets. + * @param password Wallet password. + */ + public walletSpent (id: string, dst: string, coins: string, password: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/spend'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletSpent.'); + } + + // verify required parameter 'dst' is not null or undefined + if (dst === null || dst === undefined) { + throw new Error('Required parameter dst was null or undefined when calling walletSpent.'); + } + + // verify required parameter 'coins' is not null or undefined + if (coins === null || coins === undefined) { + throw new Error('Required parameter coins was null or undefined when calling walletSpent.'); + } + + // verify required parameter 'password' is not null or undefined + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling walletSpent.'); + } + + localVarHeaderParams['id'] = ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['dst'] = ObjectSerializer.serialize(dst, "string"); + localVarHeaderParams['coins'] = ObjectSerializer.serialize(coins, "string"); + localVarHeaderParams['password'] = ObjectSerializer.serialize(password, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Creates a signed transaction + * @param body + */ + public walletTransaction (body: InlineObject, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/transaction'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling walletTransaction.'); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: ObjectSerializer.serialize(body, "InlineObject") + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns returns all unconfirmed transactions for all addresses in a given wallet verbose + * @param id Wallet id. + */ + public walletTransactions (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/transactions'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletTransactions.'); + } + + if (id !== undefined) { + localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Unloads wallet from the wallet service. + * @param id Wallet Id. + */ + public walletUnload (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body?: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/unload'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletUnload.'); + } + + if (id !== undefined) { + localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * + * @summary Update the wallet. + * @param id Wallet Id. + * @param label The label the wallet will be updated to. + */ + public walletUpdate (id: string, label: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body?: any; }> { + const localVarPath = this.basePath + '/api/v1/wallet/update'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + // verify required parameter 'id' is not null or undefined + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletUpdate.'); + } + + // verify required parameter 'label' is not null or undefined + if (label === null || label === undefined) { + throw new Error('Required parameter label was null or undefined when calling walletUpdate.'); + } + + localVarHeaderParams['id'] = ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['label'] = ObjectSerializer.serialize(label, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body?: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } + /** + * Returns all loaded wallets + */ + public wallets (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { + const localVarPath = this.basePath + '/api/v1/wallets'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + this.authentications.default.applyToRequest(localVarRequestOptions); + + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + body = ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject({ response: response, body: body }); + } + } + }); + }); + } +} diff --git a/lib/skyapi/node/dist/api.d.ts b/lib/skyapi/node/dist/api.d.ts new file mode 100644 index 0000000..9766b33 --- /dev/null +++ b/lib/skyapi/node/dist/api.d.ts @@ -0,0 +1,2 @@ +export * from './api/apis'; +export * from './model/models'; diff --git a/lib/skyapi/node/dist/api.js b/lib/skyapi/node/dist/api.js new file mode 100644 index 0000000..6f6f3b7 --- /dev/null +++ b/lib/skyapi/node/dist/api.js @@ -0,0 +1,8 @@ +"use strict"; +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(require("./api/apis")); +__export(require("./model/models")); +//# sourceMappingURL=api.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/api.js.map b/lib/skyapi/node/dist/api.js.map new file mode 100644 index 0000000..f38740d --- /dev/null +++ b/lib/skyapi/node/dist/api.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api.js","sourceRoot":"","sources":["../api.ts"],"names":[],"mappings":";;;;;AACA,gCAA2B;AAC3B,oCAA+B"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/api/apis.d.ts b/lib/skyapi/node/dist/api/apis.d.ts new file mode 100644 index 0000000..41bd3ee --- /dev/null +++ b/lib/skyapi/node/dist/api/apis.d.ts @@ -0,0 +1,3 @@ +export * from './defaultApi'; +import { DefaultApi } from './defaultApi'; +export declare const APIS: (typeof DefaultApi)[]; diff --git a/lib/skyapi/node/dist/api/apis.js b/lib/skyapi/node/dist/api/apis.js new file mode 100644 index 0000000..fe82769 --- /dev/null +++ b/lib/skyapi/node/dist/api/apis.js @@ -0,0 +1,9 @@ +"use strict"; +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(require("./defaultApi")); +var defaultApi_1 = require("./defaultApi"); +exports.APIS = [defaultApi_1.DefaultApi]; +//# sourceMappingURL=apis.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/api/apis.js.map b/lib/skyapi/node/dist/api/apis.js.map new file mode 100644 index 0000000..44d859d --- /dev/null +++ b/lib/skyapi/node/dist/api/apis.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../api/apis.ts"],"names":[],"mappings":";;;;;AAAA,kCAA6B;AAC7B,2CAA0C;AAC7B,QAAA,IAAI,GAAG,CAAC,uBAAU,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/api/defaultApi.d.ts b/lib/skyapi/node/dist/api/defaultApi.d.ts new file mode 100644 index 0000000..e370a54 --- /dev/null +++ b/lib/skyapi/node/dist/api/defaultApi.d.ts @@ -0,0 +1,438 @@ +/// +import http = require('http'); +import Promise = require('bluebird'); +import { InlineObject } from '../model/inlineObject'; +import { InlineResponse200 } from '../model/inlineResponse200'; +import { InlineResponse2001 } from '../model/inlineResponse2001'; +import { InlineResponse2002 } from '../model/inlineResponse2002'; +import { InlineResponse2003 } from '../model/inlineResponse2003'; +import { InlineResponse2004 } from '../model/inlineResponse2004'; +import { InlineResponse2005 } from '../model/inlineResponse2005'; +import { InlineResponse2006 } from '../model/inlineResponse2006'; +import { InlineResponse2007 } from '../model/inlineResponse2007'; +import { Authentication, ApiKeyAuth } from '../model/models'; +export declare enum DefaultApiApiKeys { + csrfAuth = 0 +} +export declare class DefaultApi { + protected _basePath: string; + protected defaultHeaders: any; + protected _useQuerystring: boolean; + protected authentications: { + 'default': Authentication; + 'csrfAuth': ApiKeyAuth; + }; + constructor(basePath?: string); + useQuerystring: boolean; + basePath: string; + setDefaultAuthentication(auth: Authentication): void; + setApiKey(key: DefaultApiApiKeys, value: string): void; + addressCount(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + addressUxouts(address: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: Array; + }>; + balanceGet(addrs: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + balancePost(addrs: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + block(hash?: string, seq?: number, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + blockchainMetadata(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + blockchainProgress(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + blocksGet(start?: number, end?: number, seqs?: Array, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + blocksPost(start?: number, end?: number, seqs?: Array, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + coinSupply(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body?: any; + }>; + csrf(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: InlineResponse2001; + }>; + defaultConnections(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: Array; + }>; + explorerAddress(address?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: Array; + }>; + health(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + lastBlocks(num: number, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + networkConnection(addr: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: InlineResponse2003; + }>; + networkConnections(states?: 'pending' | 'connected' | 'introduced', direction?: 'connected' | 'introduced', options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: Array; + }>; + networkConnectionsDisconnect(id: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body?: any; + }>; + networkConnectionsExchange(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: Array; + }>; + networkConnectionsTrust(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: Array; + }>; + outputsGet(address?: Array, hash?: Array, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + outputsPost(address?: string, hash?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + pendingTxs(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: Array; + }>; + resendUnconfirmedTxns(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body?: any; + }>; + richlist(includeDistribution?: boolean, n?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + transaction(txid: string, encoded?: boolean, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + transactionInject(rawtx: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + transactionRaw(txid?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + transactionVerify(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + transactionsGet(addrs?: string, confirmed?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + transactionsPost(addrs?: string, confirmed?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + uxout(uxid?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + verifyAddress(address: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: InlineResponse2007; + }>; + version(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body?: any; + }>; + wallet(id: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletBalance(id: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletCreate(seed: string, label: string, scan?: number, encrypt?: boolean, password?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletDecrypt(id: string, password: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletEncrypt(id: string, password: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletFolder(addr: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: InlineResponse2006; + }>; + walletNewAddress(id: string, num?: string, password?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletNewSeed(entropy?: '128' | '256', options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletRecover(id: string, seed: string, password?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletSeed(id: string, password: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletSeedVerify(seed?: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletSpent(id: string, dst: string, coins: string, password: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletTransaction(body: InlineObject, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletTransactions(id: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: any; + }>; + walletUnload(id: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body?: any; + }>; + walletUpdate(id: string, label: string, options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body?: any; + }>; + wallets(options?: { + headers: { + [name: string]: string; + }; + }): Promise<{ + response: http.ClientResponse; + body: Array; + }>; +} diff --git a/lib/skyapi/node/dist/api/defaultApi.js b/lib/skyapi/node/dist/api/defaultApi.js new file mode 100644 index 0000000..8980ebf --- /dev/null +++ b/lib/skyapi/node/dist/api/defaultApi.js @@ -0,0 +1,2461 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var localVarRequest = require("request"); +var Promise = require("bluebird"); +var models_1 = require("../model/models"); +var defaultBasePath = 'http://127.0.0.1:6420'; +var DefaultApiApiKeys; +(function (DefaultApiApiKeys) { + DefaultApiApiKeys[DefaultApiApiKeys["csrfAuth"] = 0] = "csrfAuth"; +})(DefaultApiApiKeys = exports.DefaultApiApiKeys || (exports.DefaultApiApiKeys = {})); +var DefaultApi = (function () { + function DefaultApi(basePathOrUsername, password, basePath) { + this._basePath = defaultBasePath; + this.defaultHeaders = {}; + this._useQuerystring = false; + this.authentications = { + 'default': new models_1.VoidAuth(), + 'csrfAuth': new models_1.ApiKeyAuth('header', 'X-CSRF-TOKEN'), + }; + if (password) { + if (basePath) { + this.basePath = basePath; + } + } + else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername; + } + } + } + Object.defineProperty(DefaultApi.prototype, "useQuerystring", { + set: function (value) { + this._useQuerystring = value; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(DefaultApi.prototype, "basePath", { + get: function () { + return this._basePath; + }, + set: function (basePath) { + this._basePath = basePath; + }, + enumerable: true, + configurable: true + }); + DefaultApi.prototype.setDefaultAuthentication = function (auth) { + this.authentications.default = auth; + }; + DefaultApi.prototype.setApiKey = function (key, value) { + this.authentications[DefaultApiApiKeys[key]].apiKey = value; + }; + DefaultApi.prototype.addressCount = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/addresscount'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.addressUxouts = function (address, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/address_uxouts'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (address === null || address === undefined) { + throw new Error('Required parameter address was null or undefined when calling addressUxouts.'); + } + if (address !== undefined) { + localVarQueryParameters['address'] = models_1.ObjectSerializer.serialize(address, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.balanceGet = function (addrs, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/balance'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (addrs === null || addrs === undefined) { + throw new Error('Required parameter addrs was null or undefined when calling balanceGet.'); + } + if (addrs !== undefined) { + localVarQueryParameters['addrs'] = models_1.ObjectSerializer.serialize(addrs, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.balancePost = function (addrs, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/balance'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (addrs === null || addrs === undefined) { + throw new Error('Required parameter addrs was null or undefined when calling balancePost.'); + } + if (addrs !== undefined) { + localVarQueryParameters['addrs'] = models_1.ObjectSerializer.serialize(addrs, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.block = function (hash, seq, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/block'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (hash !== undefined) { + localVarQueryParameters['hash'] = models_1.ObjectSerializer.serialize(hash, "string"); + } + if (seq !== undefined) { + localVarQueryParameters['seq'] = models_1.ObjectSerializer.serialize(seq, "number"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.blockchainMetadata = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/blockchain/metadata'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.blockchainProgress = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/blockchain/progress'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.blocksGet = function (start, end, seqs, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/blocks'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (start !== undefined) { + localVarQueryParameters['start'] = models_1.ObjectSerializer.serialize(start, "number"); + } + if (end !== undefined) { + localVarQueryParameters['end'] = models_1.ObjectSerializer.serialize(end, "number"); + } + if (seqs !== undefined) { + localVarQueryParameters['seqs'] = models_1.ObjectSerializer.serialize(seqs, "Array"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.blocksPost = function (start, end, seqs, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/blocks'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (start !== undefined) { + localVarQueryParameters['start'] = models_1.ObjectSerializer.serialize(start, "number"); + } + if (end !== undefined) { + localVarQueryParameters['end'] = models_1.ObjectSerializer.serialize(end, "number"); + } + if (seqs !== undefined) { + localVarQueryParameters['seqs'] = models_1.ObjectSerializer.serialize(seqs, "Array"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.coinSupply = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/coinSupply'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.csrf = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/csrf'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2001"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.defaultConnections = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/network/defaultConnections'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.explorerAddress = function (address, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/explorer/address'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (address !== undefined) { + localVarQueryParameters['address'] = models_1.ObjectSerializer.serialize(address, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.health = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/health'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.lastBlocks = function (num, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/last_blocks'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (num === null || num === undefined) { + throw new Error('Required parameter num was null or undefined when calling lastBlocks.'); + } + if (num !== undefined) { + localVarQueryParameters['num'] = models_1.ObjectSerializer.serialize(num, "number"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.networkConnection = function (addr, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/network/connection'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (addr === null || addr === undefined) { + throw new Error('Required parameter addr was null or undefined when calling networkConnection.'); + } + if (addr !== undefined) { + localVarQueryParameters['addr'] = models_1.ObjectSerializer.serialize(addr, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2003"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.networkConnections = function (states, direction, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/network/connections'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (states !== undefined) { + localVarQueryParameters['states'] = models_1.ObjectSerializer.serialize(states, "'pending' | 'connected' | 'introduced'"); + } + if (direction !== undefined) { + localVarQueryParameters['direction'] = models_1.ObjectSerializer.serialize(direction, "'connected' | 'introduced'"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.networkConnectionsDisconnect = function (id, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/network/connection/disconnect'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling networkConnectionsDisconnect.'); + } + if (id !== undefined) { + localVarQueryParameters['id'] = models_1.ObjectSerializer.serialize(id, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.networkConnectionsExchange = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/network/connections/exchange'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.networkConnectionsTrust = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/network/connections/trust'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.outputsGet = function (address, hash, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/outputs'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (address !== undefined) { + localVarQueryParameters['address'] = models_1.ObjectSerializer.serialize(address, "Array"); + } + if (hash !== undefined) { + localVarQueryParameters['hash'] = models_1.ObjectSerializer.serialize(hash, "Array"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.outputsPost = function (address, hash, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/outputs'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (address !== undefined) { + localVarQueryParameters['address'] = models_1.ObjectSerializer.serialize(address, "string"); + } + if (hash !== undefined) { + localVarQueryParameters['hash'] = models_1.ObjectSerializer.serialize(hash, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.pendingTxs = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/pendingTxs'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.resendUnconfirmedTxns = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/resendUnconfirmedTxns'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.richlist = function (includeDistribution, n, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/richlist'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (includeDistribution !== undefined) { + localVarQueryParameters['include-distribution'] = models_1.ObjectSerializer.serialize(includeDistribution, "boolean"); + } + if (n !== undefined) { + localVarQueryParameters['n'] = models_1.ObjectSerializer.serialize(n, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.transaction = function (txid, encoded, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/transaction'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (txid === null || txid === undefined) { + throw new Error('Required parameter txid was null or undefined when calling transaction.'); + } + if (txid !== undefined) { + localVarQueryParameters['txid'] = models_1.ObjectSerializer.serialize(txid, "string"); + } + if (encoded !== undefined) { + localVarQueryParameters['encoded'] = models_1.ObjectSerializer.serialize(encoded, "boolean"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.transactionInject = function (rawtx, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v2/transaction/inject'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (rawtx === null || rawtx === undefined) { + throw new Error('Required parameter rawtx was null or undefined when calling transactionInject.'); + } + localVarHeaderParams['rawtx'] = models_1.ObjectSerializer.serialize(rawtx, "string"); + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.transactionRaw = function (txid, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v2/transaction/raw'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (txid !== undefined) { + localVarQueryParameters['txid'] = models_1.ObjectSerializer.serialize(txid, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.transactionVerify = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v2/transaction/verify'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.transactionsGet = function (addrs, confirmed, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/transactions'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (addrs !== undefined) { + localVarQueryParameters['addrs'] = models_1.ObjectSerializer.serialize(addrs, "string"); + } + if (confirmed !== undefined) { + localVarQueryParameters['confirmed'] = models_1.ObjectSerializer.serialize(confirmed, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.transactionsPost = function (addrs, confirmed, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/transactions'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (addrs !== undefined) { + localVarQueryParameters['addrs'] = models_1.ObjectSerializer.serialize(addrs, "string"); + } + if (confirmed !== undefined) { + localVarQueryParameters['confirmed'] = models_1.ObjectSerializer.serialize(confirmed, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.uxout = function (uxid, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/uxout'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (uxid !== undefined) { + localVarQueryParameters['uxid'] = models_1.ObjectSerializer.serialize(uxid, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.verifyAddress = function (address, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v2/address/verify'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (address === null || address === undefined) { + throw new Error('Required parameter address was null or undefined when calling verifyAddress.'); + } + if (address !== undefined) { + localVarQueryParameters['address'] = models_1.ObjectSerializer.serialize(address, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2007"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.version = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/version'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.wallet = function (id, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling wallet.'); + } + if (id !== undefined) { + localVarQueryParameters['id'] = models_1.ObjectSerializer.serialize(id, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletBalance = function (id, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/balance'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletBalance.'); + } + if (id !== undefined) { + localVarQueryParameters['id'] = models_1.ObjectSerializer.serialize(id, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletCreate = function (seed, label, scan, encrypt, password, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/create'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (seed === null || seed === undefined) { + throw new Error('Required parameter seed was null or undefined when calling walletCreate.'); + } + if (label === null || label === undefined) { + throw new Error('Required parameter label was null or undefined when calling walletCreate.'); + } + localVarHeaderParams['seed'] = models_1.ObjectSerializer.serialize(seed, "string"); + localVarHeaderParams['label'] = models_1.ObjectSerializer.serialize(label, "string"); + localVarHeaderParams['scan'] = models_1.ObjectSerializer.serialize(scan, "number"); + localVarHeaderParams['encrypt'] = models_1.ObjectSerializer.serialize(encrypt, "boolean"); + localVarHeaderParams['password'] = models_1.ObjectSerializer.serialize(password, "string"); + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletDecrypt = function (id, password, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/decrypt'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletDecrypt.'); + } + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling walletDecrypt.'); + } + localVarHeaderParams['id'] = models_1.ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['password'] = models_1.ObjectSerializer.serialize(password, "string"); + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletEncrypt = function (id, password, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/encrypt'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletEncrypt.'); + } + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling walletEncrypt.'); + } + localVarHeaderParams['id'] = models_1.ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['password'] = models_1.ObjectSerializer.serialize(password, "string"); + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletFolder = function (addr, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallets/folderName'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (addr === null || addr === undefined) { + throw new Error('Required parameter addr was null or undefined when calling walletFolder.'); + } + if (addr !== undefined) { + localVarQueryParameters['addr'] = models_1.ObjectSerializer.serialize(addr, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "InlineResponse2006"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletNewAddress = function (id, num, password, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/newAddress'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletNewAddress.'); + } + if (id !== undefined) { + localVarQueryParameters['id'] = models_1.ObjectSerializer.serialize(id, "string"); + } + if (num !== undefined) { + localVarQueryParameters['num'] = models_1.ObjectSerializer.serialize(num, "string"); + } + if (password !== undefined) { + localVarQueryParameters['password'] = models_1.ObjectSerializer.serialize(password, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletNewSeed = function (entropy, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/newSeed'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (entropy !== undefined) { + localVarQueryParameters['entropy'] = models_1.ObjectSerializer.serialize(entropy, "'128' | '256'"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletRecover = function (id, seed, password, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v2/wallet/recover'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletRecover.'); + } + if (seed === null || seed === undefined) { + throw new Error('Required parameter seed was null or undefined when calling walletRecover.'); + } + localVarHeaderParams['id'] = models_1.ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['seed'] = models_1.ObjectSerializer.serialize(seed, "string"); + localVarHeaderParams['password'] = models_1.ObjectSerializer.serialize(password, "string"); + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletSeed = function (id, password, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/seed'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletSeed.'); + } + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling walletSeed.'); + } + if (id !== undefined) { + localVarQueryParameters['id'] = models_1.ObjectSerializer.serialize(id, "string"); + } + if (password !== undefined) { + localVarQueryParameters['password'] = models_1.ObjectSerializer.serialize(password, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletSeedVerify = function (seed, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v2/wallet/seed/verify'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + localVarHeaderParams['seed'] = models_1.ObjectSerializer.serialize(seed, "string"); + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletSpent = function (id, dst, coins, password, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/spend'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletSpent.'); + } + if (dst === null || dst === undefined) { + throw new Error('Required parameter dst was null or undefined when calling walletSpent.'); + } + if (coins === null || coins === undefined) { + throw new Error('Required parameter coins was null or undefined when calling walletSpent.'); + } + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling walletSpent.'); + } + localVarHeaderParams['id'] = models_1.ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['dst'] = models_1.ObjectSerializer.serialize(dst, "string"); + localVarHeaderParams['coins'] = models_1.ObjectSerializer.serialize(coins, "string"); + localVarHeaderParams['password'] = models_1.ObjectSerializer.serialize(password, "string"); + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletTransaction = function (body, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/transaction'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (body === null || body === undefined) { + throw new Error('Required parameter body was null or undefined when calling walletTransaction.'); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: models_1.ObjectSerializer.serialize(body, "InlineObject") + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletTransactions = function (id, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/transactions'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletTransactions.'); + } + if (id !== undefined) { + localVarQueryParameters['id'] = models_1.ObjectSerializer.serialize(id, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "any"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletUnload = function (id, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/unload'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletUnload.'); + } + if (id !== undefined) { + localVarQueryParameters['id'] = models_1.ObjectSerializer.serialize(id, "string"); + } + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.walletUpdate = function (id, label, options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallet/update'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling walletUpdate.'); + } + if (label === null || label === undefined) { + throw new Error('Required parameter label was null or undefined when calling walletUpdate.'); + } + localVarHeaderParams['id'] = models_1.ObjectSerializer.serialize(id, "string"); + localVarHeaderParams['label'] = models_1.ObjectSerializer.serialize(label, "string"); + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.csrfAuth.applyToRequest(localVarRequestOptions); + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + DefaultApi.prototype.wallets = function (options) { + if (options === void 0) { options = { headers: {} }; } + var localVarPath = this.basePath + '/api/v1/wallets'; + var localVarQueryParameters = {}; + var localVarHeaderParams = Object.assign({}, this.defaultHeaders); + var localVarFormParams = {}; + Object.assign(localVarHeaderParams, options.headers); + var localVarUseFormData = false; + var localVarRequestOptions = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + this.authentications.default.applyToRequest(localVarRequestOptions); + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + localVarRequestOptions.formData = localVarFormParams; + } + else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise(function (resolve, reject) { + localVarRequest(localVarRequestOptions, function (error, response, body) { + if (error) { + reject(error); + } + else { + body = models_1.ObjectSerializer.deserialize(body, "Array"); + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } + else { + reject({ response: response, body: body }); + } + } + }); + }); + }; + return DefaultApi; +}()); +exports.DefaultApi = DefaultApi; +//# sourceMappingURL=defaultApi.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/api/defaultApi.js.map b/lib/skyapi/node/dist/api/defaultApi.js.map new file mode 100644 index 0000000..29a23cb --- /dev/null +++ b/lib/skyapi/node/dist/api/defaultApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"defaultApi.js","sourceRoot":"","sources":["../../api/defaultApi.ts"],"names":[],"mappings":";;AAYA,yCAA4C;AAE5C,kCAAqC;AAcrC,0CAA+G;AAE/G,IAAI,eAAe,GAAG,uBAAuB,CAAC;AAM9C,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IACzB,iEAAQ,CAAA;AACZ,CAAC,EAFW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAE5B;AAED;IAWI,oBAAY,kBAA0B,EAAE,QAAiB,EAAE,QAAiB;QAVlE,cAAS,GAAG,eAAe,CAAC;QAC5B,mBAAc,GAAS,EAAE,CAAC;QAC1B,oBAAe,GAAa,KAAK,CAAC;QAElC,oBAAe,GAAG;YACxB,SAAS,EAAkB,IAAI,iBAAQ,EAAE;YACzC,UAAU,EAAE,IAAI,mBAAU,CAAC,QAAQ,EAAE,cAAc,CAAC;SACvD,CAAA;QAIG,IAAI,QAAQ,EAAE;YACV,IAAI,QAAQ,EAAE;gBACV,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;aAC5B;SACJ;aAAM;YACH,IAAI,kBAAkB,EAAE;gBACpB,IAAI,CAAC,QAAQ,GAAG,kBAAkB,CAAA;aACrC;SACJ;IACL,CAAC;IAED,sBAAI,sCAAc;aAAlB,UAAmB,KAAc;YAC7B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QACjC,CAAC;;;OAAA;IAED,sBAAI,gCAAQ;aAIZ;YACI,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;aAND,UAAa,QAAgB;YACzB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC9B,CAAC;;;OAAA;IAMM,6CAAwB,GAA/B,UAAgC,IAAoB;QA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AC;IACL,iBAAC;AAAD,CAAC,AA3zFD,IA2zFC;AA3zFY,gCAAU"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1ExplorerAddressInputs.d.ts b/lib/skyapi/node/dist/model/apiV1ExplorerAddressInputs.d.ts new file mode 100644 index 0000000..4019034 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1ExplorerAddressInputs.d.ts @@ -0,0 +1,18 @@ +export declare class ApiV1ExplorerAddressInputs { + 'owner'?: string; + 'hours'?: number; + 'calculatedHours'?: number; + 'coins'?: string; + 'uxid'?: string; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/apiV1ExplorerAddressInputs.js b/lib/skyapi/node/dist/model/apiV1ExplorerAddressInputs.js new file mode 100644 index 0000000..e1b5b16 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1ExplorerAddressInputs.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ApiV1ExplorerAddressInputs = (function () { + function ApiV1ExplorerAddressInputs() { + } + ApiV1ExplorerAddressInputs.getAttributeTypeMap = function () { + return ApiV1ExplorerAddressInputs.attributeTypeMap; + }; + ApiV1ExplorerAddressInputs.discriminator = undefined; + ApiV1ExplorerAddressInputs.attributeTypeMap = [ + { + "name": "owner", + "baseName": "owner", + "type": "string" + }, + { + "name": "hours", + "baseName": "hours", + "type": "number" + }, + { + "name": "calculatedHours", + "baseName": "calculated_hours", + "type": "number" + }, + { + "name": "coins", + "baseName": "coins", + "type": "string" + }, + { + "name": "uxid", + "baseName": "uxid", + "type": "string" + } + ]; + return ApiV1ExplorerAddressInputs; +}()); +exports.ApiV1ExplorerAddressInputs = ApiV1ExplorerAddressInputs; +//# sourceMappingURL=apiV1ExplorerAddressInputs.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1ExplorerAddressInputs.js.map b/lib/skyapi/node/dist/model/apiV1ExplorerAddressInputs.js.map new file mode 100644 index 0000000..8d37821 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1ExplorerAddressInputs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apiV1ExplorerAddressInputs.js","sourceRoot":"","sources":["../../model/apiV1ExplorerAddressInputs.ts"],"names":[],"mappings":";;AAaA;IAAA;IAuCA,CAAC;IAHU,8CAAmB,GAA1B;QACI,OAAO,0BAA0B,CAAC,gBAAgB,CAAC;IACvD,CAAC;IA/BM,wCAAa,GAAuB,SAAS,CAAC;IAE9C,2CAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,iBAAiB;YACzB,UAAU,EAAE,kBAAkB;YAC9B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,iCAAC;CAAA,AAvCD,IAuCC;AAvCY,gEAA0B"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1ExplorerAddressOutputs.d.ts b/lib/skyapi/node/dist/model/apiV1ExplorerAddressOutputs.d.ts new file mode 100644 index 0000000..b16daad --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1ExplorerAddressOutputs.d.ts @@ -0,0 +1,17 @@ +export declare class ApiV1ExplorerAddressOutputs { + 'hours'?: number; + 'dst'?: string; + 'coins'?: string; + 'uxid'?: string; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/apiV1ExplorerAddressOutputs.js b/lib/skyapi/node/dist/model/apiV1ExplorerAddressOutputs.js new file mode 100644 index 0000000..d46ec14 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1ExplorerAddressOutputs.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ApiV1ExplorerAddressOutputs = (function () { + function ApiV1ExplorerAddressOutputs() { + } + ApiV1ExplorerAddressOutputs.getAttributeTypeMap = function () { + return ApiV1ExplorerAddressOutputs.attributeTypeMap; + }; + ApiV1ExplorerAddressOutputs.discriminator = undefined; + ApiV1ExplorerAddressOutputs.attributeTypeMap = [ + { + "name": "hours", + "baseName": "hours", + "type": "number" + }, + { + "name": "dst", + "baseName": "dst", + "type": "string" + }, + { + "name": "coins", + "baseName": "coins", + "type": "string" + }, + { + "name": "uxid", + "baseName": "uxid", + "type": "string" + } + ]; + return ApiV1ExplorerAddressOutputs; +}()); +exports.ApiV1ExplorerAddressOutputs = ApiV1ExplorerAddressOutputs; +//# sourceMappingURL=apiV1ExplorerAddressOutputs.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1ExplorerAddressOutputs.js.map b/lib/skyapi/node/dist/model/apiV1ExplorerAddressOutputs.js.map new file mode 100644 index 0000000..c0dfee5 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1ExplorerAddressOutputs.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apiV1ExplorerAddressOutputs.js","sourceRoot":"","sources":["../../model/apiV1ExplorerAddressOutputs.ts"],"names":[],"mappings":";;AAaA;IAAA;IAiCA,CAAC;IAHU,+CAAmB,GAA1B;QACI,OAAO,2BAA2B,CAAC,gBAAgB,CAAC;IACxD,CAAC;IA1BM,yCAAa,GAAuB,SAAS,CAAC;IAE9C,4CAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,KAAK;YACb,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,kCAAC;CAAA,AAjCD,IAiCC;AAjCY,kEAA2B"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1ExplorerAddressStatus.d.ts b/lib/skyapi/node/dist/model/apiV1ExplorerAddressStatus.d.ts new file mode 100644 index 0000000..6ed0831 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1ExplorerAddressStatus.d.ts @@ -0,0 +1,17 @@ +export declare class ApiV1ExplorerAddressStatus { + 'unconfirmed'?: boolean; + 'blockSeq'?: number; + 'label'?: number; + 'confirmed'?: boolean; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/apiV1ExplorerAddressStatus.js b/lib/skyapi/node/dist/model/apiV1ExplorerAddressStatus.js new file mode 100644 index 0000000..1adc9b3 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1ExplorerAddressStatus.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ApiV1ExplorerAddressStatus = (function () { + function ApiV1ExplorerAddressStatus() { + } + ApiV1ExplorerAddressStatus.getAttributeTypeMap = function () { + return ApiV1ExplorerAddressStatus.attributeTypeMap; + }; + ApiV1ExplorerAddressStatus.discriminator = undefined; + ApiV1ExplorerAddressStatus.attributeTypeMap = [ + { + "name": "unconfirmed", + "baseName": "unconfirmed", + "type": "boolean" + }, + { + "name": "blockSeq", + "baseName": "block_seq", + "type": "number" + }, + { + "name": "label", + "baseName": "label", + "type": "number" + }, + { + "name": "confirmed", + "baseName": "confirmed", + "type": "boolean" + } + ]; + return ApiV1ExplorerAddressStatus; +}()); +exports.ApiV1ExplorerAddressStatus = ApiV1ExplorerAddressStatus; +//# sourceMappingURL=apiV1ExplorerAddressStatus.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1ExplorerAddressStatus.js.map b/lib/skyapi/node/dist/model/apiV1ExplorerAddressStatus.js.map new file mode 100644 index 0000000..b49813e --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1ExplorerAddressStatus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apiV1ExplorerAddressStatus.js","sourceRoot":"","sources":["../../model/apiV1ExplorerAddressStatus.ts"],"names":[],"mappings":";;AAaA;IAAA;IAiCA,CAAC;IAHU,8CAAmB,GAA1B;QACI,OAAO,0BAA0B,CAAC,gBAAgB,CAAC;IACvD,CAAC;IA1BM,wCAAa,GAAuB,SAAS,CAAC;IAE9C,2CAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,aAAa;YACrB,UAAU,EAAE,aAAa;YACzB,MAAM,EAAE,SAAS;SACpB;QACD;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,SAAS;SACpB;KAAK,CAAC;IAKf,iCAAC;CAAA,AAjCD,IAiCC;AAjCY,gEAA0B"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1PendingTxsTransaction.d.ts b/lib/skyapi/node/dist/model/apiV1PendingTxsTransaction.d.ts new file mode 100644 index 0000000..730552d --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1PendingTxsTransaction.d.ts @@ -0,0 +1,22 @@ +import { ApiV1ExplorerAddressOutputs } from './apiV1ExplorerAddressOutputs'; +export declare class ApiV1PendingTxsTransaction { + 'outputs'?: Array; + 'innerHash'?: string; + 'inputs'?: Array; + 'sigs'?: Array; + 'length'?: number; + 'txid'?: string; + 'type'?: number; + 'timestamp'?: number; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/apiV1PendingTxsTransaction.js b/lib/skyapi/node/dist/model/apiV1PendingTxsTransaction.js new file mode 100644 index 0000000..6fb3870 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1PendingTxsTransaction.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ApiV1PendingTxsTransaction = (function () { + function ApiV1PendingTxsTransaction() { + } + ApiV1PendingTxsTransaction.getAttributeTypeMap = function () { + return ApiV1PendingTxsTransaction.attributeTypeMap; + }; + ApiV1PendingTxsTransaction.discriminator = undefined; + ApiV1PendingTxsTransaction.attributeTypeMap = [ + { + "name": "outputs", + "baseName": "outputs", + "type": "Array" + }, + { + "name": "innerHash", + "baseName": "inner_hash", + "type": "string" + }, + { + "name": "inputs", + "baseName": "inputs", + "type": "Array" + }, + { + "name": "sigs", + "baseName": "sigs", + "type": "Array" + }, + { + "name": "length", + "baseName": "length", + "type": "number" + }, + { + "name": "txid", + "baseName": "txid", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "number" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "number" + } + ]; + return ApiV1PendingTxsTransaction; +}()); +exports.ApiV1PendingTxsTransaction = ApiV1PendingTxsTransaction; +//# sourceMappingURL=apiV1PendingTxsTransaction.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1PendingTxsTransaction.js.map b/lib/skyapi/node/dist/model/apiV1PendingTxsTransaction.js.map new file mode 100644 index 0000000..3332d9b --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1PendingTxsTransaction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apiV1PendingTxsTransaction.js","sourceRoot":"","sources":["../../model/apiV1PendingTxsTransaction.ts"],"names":[],"mappings":";;AAiBA;IAAA;IAyDA,CAAC;IAHU,8CAAmB,GAA1B;QACI,OAAO,0BAA0B,CAAC,gBAAgB,CAAC;IACvD,CAAC;IA9CM,wCAAa,GAAuB,SAAS,CAAC;IAE9C,2CAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,oCAAoC;SAC/C;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,eAAe;SAC1B;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,eAAe;SAC1B;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,iCAAC;CAAA,AAzDD,IAyDC;AAzDY,gEAA0B"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletTransactionHoursSelection.d.ts b/lib/skyapi/node/dist/model/apiV1WalletTransactionHoursSelection.d.ts new file mode 100644 index 0000000..dafc424 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletTransactionHoursSelection.d.ts @@ -0,0 +1,16 @@ +export declare class ApiV1WalletTransactionHoursSelection { + 'mode'?: string; + 'shareFactor'?: string; + 'type'?: string; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/apiV1WalletTransactionHoursSelection.js b/lib/skyapi/node/dist/model/apiV1WalletTransactionHoursSelection.js new file mode 100644 index 0000000..82f4110 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletTransactionHoursSelection.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ApiV1WalletTransactionHoursSelection = (function () { + function ApiV1WalletTransactionHoursSelection() { + } + ApiV1WalletTransactionHoursSelection.getAttributeTypeMap = function () { + return ApiV1WalletTransactionHoursSelection.attributeTypeMap; + }; + ApiV1WalletTransactionHoursSelection.discriminator = undefined; + ApiV1WalletTransactionHoursSelection.attributeTypeMap = [ + { + "name": "mode", + "baseName": "mode", + "type": "string" + }, + { + "name": "shareFactor", + "baseName": "share_factor", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } + ]; + return ApiV1WalletTransactionHoursSelection; +}()); +exports.ApiV1WalletTransactionHoursSelection = ApiV1WalletTransactionHoursSelection; +//# sourceMappingURL=apiV1WalletTransactionHoursSelection.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletTransactionHoursSelection.js.map b/lib/skyapi/node/dist/model/apiV1WalletTransactionHoursSelection.js.map new file mode 100644 index 0000000..fdba5f5 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletTransactionHoursSelection.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apiV1WalletTransactionHoursSelection.js","sourceRoot":"","sources":["../../model/apiV1WalletTransactionHoursSelection.ts"],"names":[],"mappings":";;AAaA;IAAA;IA2BA,CAAC;IAHU,wDAAmB,GAA1B;QACI,OAAO,oCAAoC,CAAC,gBAAgB,CAAC;IACjE,CAAC;IArBM,kDAAa,GAAuB,SAAS,CAAC;IAE9C,qDAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,aAAa;YACrB,UAAU,EAAE,cAAc;YAC1B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,2CAAC;CAAA,AA3BD,IA2BC;AA3BY,oFAAoC"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletTransactionTo.d.ts b/lib/skyapi/node/dist/model/apiV1WalletTransactionTo.d.ts new file mode 100644 index 0000000..1ca5e58 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletTransactionTo.d.ts @@ -0,0 +1,16 @@ +export declare class ApiV1WalletTransactionTo { + 'hours'?: number; + 'address'?: string; + 'coins'?: number; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/apiV1WalletTransactionTo.js b/lib/skyapi/node/dist/model/apiV1WalletTransactionTo.js new file mode 100644 index 0000000..26f3b3a --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletTransactionTo.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ApiV1WalletTransactionTo = (function () { + function ApiV1WalletTransactionTo() { + } + ApiV1WalletTransactionTo.getAttributeTypeMap = function () { + return ApiV1WalletTransactionTo.attributeTypeMap; + }; + ApiV1WalletTransactionTo.discriminator = undefined; + ApiV1WalletTransactionTo.attributeTypeMap = [ + { + "name": "hours", + "baseName": "hours", + "type": "number" + }, + { + "name": "address", + "baseName": "address", + "type": "string" + }, + { + "name": "coins", + "baseName": "coins", + "type": "number" + } + ]; + return ApiV1WalletTransactionTo; +}()); +exports.ApiV1WalletTransactionTo = ApiV1WalletTransactionTo; +//# sourceMappingURL=apiV1WalletTransactionTo.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletTransactionTo.js.map b/lib/skyapi/node/dist/model/apiV1WalletTransactionTo.js.map new file mode 100644 index 0000000..16a029a --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletTransactionTo.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apiV1WalletTransactionTo.js","sourceRoot":"","sources":["../../model/apiV1WalletTransactionTo.ts"],"names":[],"mappings":";;AAaA;IAAA;IA2BA,CAAC;IAHU,4CAAmB,GAA1B;QACI,OAAO,wBAAwB,CAAC,gBAAgB,CAAC;IACrD,CAAC;IArBM,sCAAa,GAAuB,SAAS,CAAC;IAE9C,yCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,+BAAC;CAAA,AA3BD,IA2BC;AA3BY,4DAAwB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletTransactionWallet.d.ts b/lib/skyapi/node/dist/model/apiV1WalletTransactionWallet.d.ts new file mode 100644 index 0000000..a10d23d --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletTransactionWallet.d.ts @@ -0,0 +1,17 @@ +export declare class ApiV1WalletTransactionWallet { + 'unspents'?: Array; + 'addresses'?: Array; + 'password'?: string; + 'id'?: string; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/apiV1WalletTransactionWallet.js b/lib/skyapi/node/dist/model/apiV1WalletTransactionWallet.js new file mode 100644 index 0000000..0d740f4 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletTransactionWallet.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ApiV1WalletTransactionWallet = (function () { + function ApiV1WalletTransactionWallet() { + } + ApiV1WalletTransactionWallet.getAttributeTypeMap = function () { + return ApiV1WalletTransactionWallet.attributeTypeMap; + }; + ApiV1WalletTransactionWallet.discriminator = undefined; + ApiV1WalletTransactionWallet.attributeTypeMap = [ + { + "name": "unspents", + "baseName": "unspents", + "type": "Array" + }, + { + "name": "addresses", + "baseName": "addresses", + "type": "Array" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + } + ]; + return ApiV1WalletTransactionWallet; +}()); +exports.ApiV1WalletTransactionWallet = ApiV1WalletTransactionWallet; +//# sourceMappingURL=apiV1WalletTransactionWallet.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletTransactionWallet.js.map b/lib/skyapi/node/dist/model/apiV1WalletTransactionWallet.js.map new file mode 100644 index 0000000..9ee772b --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletTransactionWallet.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apiV1WalletTransactionWallet.js","sourceRoot":"","sources":["../../model/apiV1WalletTransactionWallet.ts"],"names":[],"mappings":";;AAaA;IAAA;IAiCA,CAAC;IAHU,gDAAmB,GAA1B;QACI,OAAO,4BAA4B,CAAC,gBAAgB,CAAC;IACzD,CAAC;IA1BM,0CAAa,GAAuB,SAAS,CAAC;IAE9C,6CAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,eAAe;SAC1B;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,eAAe;SAC1B;QACD;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,mCAAC;CAAA,AAjCD,IAiCC;AAjCY,oEAA4B"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletsEntries.d.ts b/lib/skyapi/node/dist/model/apiV1WalletsEntries.d.ts new file mode 100644 index 0000000..25a56d6 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletsEntries.d.ts @@ -0,0 +1,15 @@ +export declare class ApiV1WalletsEntries { + 'publicKey'?: string; + 'address'?: string; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/apiV1WalletsEntries.js b/lib/skyapi/node/dist/model/apiV1WalletsEntries.js new file mode 100644 index 0000000..2012ed0 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletsEntries.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ApiV1WalletsEntries = (function () { + function ApiV1WalletsEntries() { + } + ApiV1WalletsEntries.getAttributeTypeMap = function () { + return ApiV1WalletsEntries.attributeTypeMap; + }; + ApiV1WalletsEntries.discriminator = undefined; + ApiV1WalletsEntries.attributeTypeMap = [ + { + "name": "publicKey", + "baseName": "public_key", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "string" + } + ]; + return ApiV1WalletsEntries; +}()); +exports.ApiV1WalletsEntries = ApiV1WalletsEntries; +//# sourceMappingURL=apiV1WalletsEntries.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletsEntries.js.map b/lib/skyapi/node/dist/model/apiV1WalletsEntries.js.map new file mode 100644 index 0000000..1c2520c --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletsEntries.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apiV1WalletsEntries.js","sourceRoot":"","sources":["../../model/apiV1WalletsEntries.ts"],"names":[],"mappings":";;AAaA;IAAA;IAqBA,CAAC;IAHU,uCAAmB,GAA1B;QACI,OAAO,mBAAmB,CAAC,gBAAgB,CAAC;IAChD,CAAC;IAhBM,iCAAa,GAAuB,SAAS,CAAC;IAE9C,oCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,0BAAC;CAAA,AArBD,IAqBC;AArBY,kDAAmB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletsMeta.d.ts b/lib/skyapi/node/dist/model/apiV1WalletsMeta.d.ts new file mode 100644 index 0000000..f393bbe --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletsMeta.d.ts @@ -0,0 +1,21 @@ +export declare class ApiV1WalletsMeta { + 'filename'?: string; + 'encrypted'?: boolean; + 'cryptoType'?: string; + 'label'?: string; + 'type'?: string; + 'version'?: string; + 'coin'?: string; + 'timestamp'?: number; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/apiV1WalletsMeta.js b/lib/skyapi/node/dist/model/apiV1WalletsMeta.js new file mode 100644 index 0000000..8255918 --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletsMeta.js @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ApiV1WalletsMeta = (function () { + function ApiV1WalletsMeta() { + } + ApiV1WalletsMeta.getAttributeTypeMap = function () { + return ApiV1WalletsMeta.attributeTypeMap; + }; + ApiV1WalletsMeta.discriminator = undefined; + ApiV1WalletsMeta.attributeTypeMap = [ + { + "name": "filename", + "baseName": "filename", + "type": "string" + }, + { + "name": "encrypted", + "baseName": "encrypted", + "type": "boolean" + }, + { + "name": "cryptoType", + "baseName": "crypto_type", + "type": "string" + }, + { + "name": "label", + "baseName": "label", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + }, + { + "name": "coin", + "baseName": "coin", + "type": "string" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "number" + } + ]; + return ApiV1WalletsMeta; +}()); +exports.ApiV1WalletsMeta = ApiV1WalletsMeta; +//# sourceMappingURL=apiV1WalletsMeta.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/apiV1WalletsMeta.js.map b/lib/skyapi/node/dist/model/apiV1WalletsMeta.js.map new file mode 100644 index 0000000..0b0e1da --- /dev/null +++ b/lib/skyapi/node/dist/model/apiV1WalletsMeta.js.map @@ -0,0 +1 @@ +{"version":3,"file":"apiV1WalletsMeta.js","sourceRoot":"","sources":["../../model/apiV1WalletsMeta.ts"],"names":[],"mappings":";;AAaA;IAAA;IAyDA,CAAC;IAHU,oCAAmB,GAA1B;QACI,OAAO,gBAAgB,CAAC,gBAAgB,CAAC;IAC7C,CAAC;IA9CM,8BAAa,GAAuB,SAAS,CAAC;IAE9C,iCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,SAAS;SACpB;QACD;YACI,MAAM,EAAE,YAAY;YACpB,UAAU,EAAE,aAAa;YACzB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,uBAAC;CAAA,AAzDD,IAyDC;AAzDY,4CAAgB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineObject.d.ts b/lib/skyapi/node/dist/model/inlineObject.d.ts new file mode 100644 index 0000000..097b95b --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineObject.d.ts @@ -0,0 +1,21 @@ +import { ApiV1WalletTransactionHoursSelection } from './apiV1WalletTransactionHoursSelection'; +import { ApiV1WalletTransactionTo } from './apiV1WalletTransactionTo'; +import { ApiV1WalletTransactionWallet } from './apiV1WalletTransactionWallet'; +export declare class InlineObject { + 'changeAddress'?: string; + 'hoursSelection'?: ApiV1WalletTransactionHoursSelection; + 'ignoreUnconfirmed'?: boolean; + 'to'?: Array; + 'wallet'?: ApiV1WalletTransactionWallet; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineObject.js b/lib/skyapi/node/dist/model/inlineObject.js new file mode 100644 index 0000000..c451028 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineObject.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineObject = (function () { + function InlineObject() { + } + InlineObject.getAttributeTypeMap = function () { + return InlineObject.attributeTypeMap; + }; + InlineObject.discriminator = undefined; + InlineObject.attributeTypeMap = [ + { + "name": "changeAddress", + "baseName": "change_address", + "type": "string" + }, + { + "name": "hoursSelection", + "baseName": "hours_selection", + "type": "ApiV1WalletTransactionHoursSelection" + }, + { + "name": "ignoreUnconfirmed", + "baseName": "ignore_unconfirmed", + "type": "boolean" + }, + { + "name": "to", + "baseName": "to", + "type": "Array" + }, + { + "name": "wallet", + "baseName": "wallet", + "type": "ApiV1WalletTransactionWallet" + } + ]; + return InlineObject; +}()); +exports.InlineObject = InlineObject; +//# sourceMappingURL=inlineObject.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineObject.js.map b/lib/skyapi/node/dist/model/inlineObject.js.map new file mode 100644 index 0000000..666f7f3 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineObject.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineObject.js","sourceRoot":"","sources":["../../model/inlineObject.ts"],"names":[],"mappings":";;AAgBA;IAAA;IAuCA,CAAC;IAHU,gCAAmB,GAA1B;QACI,OAAO,YAAY,CAAC,gBAAgB,CAAC;IACzC,CAAC;IA/BM,0BAAa,GAAuB,SAAS,CAAC;IAE9C,6BAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,gBAAgB;YAC5B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,gBAAgB;YACxB,UAAU,EAAE,iBAAiB;YAC7B,MAAM,EAAE,sCAAsC;SACjD;QACD;YACI,MAAM,EAAE,mBAAmB;YAC3B,UAAU,EAAE,oBAAoB;YAChC,MAAM,EAAE,SAAS;SACpB;QACD;YACI,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,iCAAiC;SAC5C;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,8BAA8B;SACzC;KAAK,CAAC;IAKf,mBAAC;CAAA,AAvCD,IAuCC;AAvCY,oCAAY"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse200.d.ts b/lib/skyapi/node/dist/model/inlineResponse200.d.ts new file mode 100644 index 0000000..3bcb89a --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse200.d.ts @@ -0,0 +1,22 @@ +export declare class InlineResponse200 { + 'hours'?: number; + 'coins'?: number; + 'uxid'?: string; + 'ownerAddress'?: string; + 'spentBlockSeq'?: number; + 'spentTx'?: string; + 'time'?: number; + 'srcBlockSeq'?: number; + 'srcTx'?: string; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponse200.js b/lib/skyapi/node/dist/model/inlineResponse200.js new file mode 100644 index 0000000..0998a4c --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse200.js @@ -0,0 +1,60 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse200 = (function () { + function InlineResponse200() { + } + InlineResponse200.getAttributeTypeMap = function () { + return InlineResponse200.attributeTypeMap; + }; + InlineResponse200.discriminator = undefined; + InlineResponse200.attributeTypeMap = [ + { + "name": "hours", + "baseName": "hours", + "type": "number" + }, + { + "name": "coins", + "baseName": "coins", + "type": "number" + }, + { + "name": "uxid", + "baseName": "uxid", + "type": "string" + }, + { + "name": "ownerAddress", + "baseName": "owner_address", + "type": "string" + }, + { + "name": "spentBlockSeq", + "baseName": "spent_block_seq", + "type": "number" + }, + { + "name": "spentTx", + "baseName": "spent_tx", + "type": "string" + }, + { + "name": "time", + "baseName": "time", + "type": "number" + }, + { + "name": "srcBlockSeq", + "baseName": "src_block_seq", + "type": "number" + }, + { + "name": "srcTx", + "baseName": "src_tx", + "type": "string" + } + ]; + return InlineResponse200; +}()); +exports.InlineResponse200 = InlineResponse200; +//# sourceMappingURL=inlineResponse200.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse200.js.map b/lib/skyapi/node/dist/model/inlineResponse200.js.map new file mode 100644 index 0000000..9488d00 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse200.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse200.js","sourceRoot":"","sources":["../../model/inlineResponse200.ts"],"names":[],"mappings":";;AAaA;IAAA;IA+DA,CAAC;IAHU,qCAAmB,GAA1B;QACI,OAAO,iBAAiB,CAAC,gBAAgB,CAAC;IAC9C,CAAC;IAnDM,+BAAa,GAAuB,SAAS,CAAC;IAE9C,kCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE,eAAe;YAC3B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,iBAAiB;YAC7B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,aAAa;YACrB,UAAU,EAAE,eAAe;YAC3B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,wBAAC;CAAA,AA/DD,IA+DC;AA/DY,8CAAiB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2001.d.ts b/lib/skyapi/node/dist/model/inlineResponse2001.d.ts new file mode 100644 index 0000000..33ee947 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2001.d.ts @@ -0,0 +1,14 @@ +export declare class InlineResponse2001 { + 'csrfToken'?: string; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponse2001.js b/lib/skyapi/node/dist/model/inlineResponse2001.js new file mode 100644 index 0000000..1f761c1 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2001.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse2001 = (function () { + function InlineResponse2001() { + } + InlineResponse2001.getAttributeTypeMap = function () { + return InlineResponse2001.attributeTypeMap; + }; + InlineResponse2001.discriminator = undefined; + InlineResponse2001.attributeTypeMap = [ + { + "name": "csrfToken", + "baseName": "csrf_token", + "type": "string" + } + ]; + return InlineResponse2001; +}()); +exports.InlineResponse2001 = InlineResponse2001; +//# sourceMappingURL=inlineResponse2001.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2001.js.map b/lib/skyapi/node/dist/model/inlineResponse2001.js.map new file mode 100644 index 0000000..a3e065e --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2001.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse2001.js","sourceRoot":"","sources":["../../model/inlineResponse2001.ts"],"names":[],"mappings":";;AAaA;IAAA;IAeA,CAAC;IAHU,sCAAmB,GAA1B;QACI,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAXM,gCAAa,GAAuB,SAAS,CAAC;IAE9C,mCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,yBAAC;CAAA,AAfD,IAeC;AAfY,gDAAkB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2002.d.ts b/lib/skyapi/node/dist/model/inlineResponse2002.d.ts new file mode 100644 index 0000000..3a2465f --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2002.d.ts @@ -0,0 +1,26 @@ +import { ApiV1ExplorerAddressInputs } from './apiV1ExplorerAddressInputs'; +import { ApiV1ExplorerAddressOutputs } from './apiV1ExplorerAddressOutputs'; +import { ApiV1ExplorerAddressStatus } from './apiV1ExplorerAddressStatus'; +export declare class InlineResponse2002 { + 'outputs'?: Array; + 'innerHash'?: string; + 'inputs'?: Array; + 'fee'?: number; + 'sigs'?: Array; + 'length'?: number; + 'txid'?: string; + 'type'?: number; + 'status'?: ApiV1ExplorerAddressStatus; + 'timestamp'?: number; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponse2002.js b/lib/skyapi/node/dist/model/inlineResponse2002.js new file mode 100644 index 0000000..51d7743 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2002.js @@ -0,0 +1,65 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse2002 = (function () { + function InlineResponse2002() { + } + InlineResponse2002.getAttributeTypeMap = function () { + return InlineResponse2002.attributeTypeMap; + }; + InlineResponse2002.discriminator = undefined; + InlineResponse2002.attributeTypeMap = [ + { + "name": "outputs", + "baseName": "outputs", + "type": "Array" + }, + { + "name": "innerHash", + "baseName": "inner_hash", + "type": "string" + }, + { + "name": "inputs", + "baseName": "inputs", + "type": "Array" + }, + { + "name": "fee", + "baseName": "fee", + "type": "number" + }, + { + "name": "sigs", + "baseName": "sigs", + "type": "Array" + }, + { + "name": "length", + "baseName": "length", + "type": "number" + }, + { + "name": "txid", + "baseName": "txid", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "number" + }, + { + "name": "status", + "baseName": "status", + "type": "ApiV1ExplorerAddressStatus" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "number" + } + ]; + return InlineResponse2002; +}()); +exports.InlineResponse2002 = InlineResponse2002; +//# sourceMappingURL=inlineResponse2002.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2002.js.map b/lib/skyapi/node/dist/model/inlineResponse2002.js.map new file mode 100644 index 0000000..eb5138d --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2002.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse2002.js","sourceRoot":"","sources":["../../model/inlineResponse2002.ts"],"names":[],"mappings":";;AAgBA;IAAA;IAqEA,CAAC;IAHU,sCAAmB,GAA1B;QACI,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAxDM,gCAAa,GAAuB,SAAS,CAAC;IAE9C,mCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,oCAAoC;SAC/C;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,mCAAmC;SAC9C;QACD;YACI,MAAM,EAAE,KAAK;YACb,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,eAAe;SAC1B;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,4BAA4B;SACvC;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,yBAAC;CAAA,AArED,IAqEC;AArEY,gDAAkB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2003.d.ts b/lib/skyapi/node/dist/model/inlineResponse2003.d.ts new file mode 100644 index 0000000..5f94816 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2003.d.ts @@ -0,0 +1,34 @@ +import { InlineResponse2003UnconfirmedVerifyTransaction } from './inlineResponse2003UnconfirmedVerifyTransaction'; +export declare class InlineResponse2003 { + 'lastReceived'?: number; + 'lastSent'?: number; + 'outgoing'?: boolean; + 'mirror'?: number; + 'address'?: string; + 'listenPort'?: number; + 'isTrustedPeer'?: boolean; + 'connectedAt'?: number; + 'unconfirmedVerifyTransaction'?: InlineResponse2003UnconfirmedVerifyTransaction; + 'id'?: number; + 'state'?: InlineResponse2003.StateEnum; + 'userAgent'?: string; + 'height'?: number; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} +export declare namespace InlineResponse2003 { + enum StateEnum { + Pending, + Connected, + Introduced + } +} diff --git a/lib/skyapi/node/dist/model/inlineResponse2003.js b/lib/skyapi/node/dist/model/inlineResponse2003.js new file mode 100644 index 0000000..376e2d3 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2003.js @@ -0,0 +1,89 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse2003 = (function () { + function InlineResponse2003() { + } + InlineResponse2003.getAttributeTypeMap = function () { + return InlineResponse2003.attributeTypeMap; + }; + InlineResponse2003.discriminator = undefined; + InlineResponse2003.attributeTypeMap = [ + { + "name": "lastReceived", + "baseName": "last_received", + "type": "number" + }, + { + "name": "lastSent", + "baseName": "last_sent", + "type": "number" + }, + { + "name": "outgoing", + "baseName": "outgoing", + "type": "boolean" + }, + { + "name": "mirror", + "baseName": "mirror", + "type": "number" + }, + { + "name": "address", + "baseName": "address", + "type": "string" + }, + { + "name": "listenPort", + "baseName": "listen_port", + "type": "number" + }, + { + "name": "isTrustedPeer", + "baseName": "is_trusted_peer", + "type": "boolean" + }, + { + "name": "connectedAt", + "baseName": "connected_at", + "type": "number" + }, + { + "name": "unconfirmedVerifyTransaction", + "baseName": "unconfirmed_verify_transaction", + "type": "InlineResponse2003UnconfirmedVerifyTransaction" + }, + { + "name": "id", + "baseName": "id", + "type": "number" + }, + { + "name": "state", + "baseName": "state", + "type": "InlineResponse2003.StateEnum" + }, + { + "name": "userAgent", + "baseName": "user_agent", + "type": "string" + }, + { + "name": "height", + "baseName": "height", + "type": "number" + } + ]; + return InlineResponse2003; +}()); +exports.InlineResponse2003 = InlineResponse2003; +(function (InlineResponse2003) { + var StateEnum; + (function (StateEnum) { + StateEnum[StateEnum["Pending"] = 'pending'] = "Pending"; + StateEnum[StateEnum["Connected"] = 'connected'] = "Connected"; + StateEnum[StateEnum["Introduced"] = 'introduced'] = "Introduced"; + })(StateEnum = InlineResponse2003.StateEnum || (InlineResponse2003.StateEnum = {})); +})(InlineResponse2003 = exports.InlineResponse2003 || (exports.InlineResponse2003 = {})); +exports.InlineResponse2003 = InlineResponse2003; +//# sourceMappingURL=inlineResponse2003.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2003.js.map b/lib/skyapi/node/dist/model/inlineResponse2003.js.map new file mode 100644 index 0000000..85fc973 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2003.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse2003.js","sourceRoot":"","sources":["../../model/inlineResponse2003.ts"],"names":[],"mappings":";;AAcA;IAAA;IAuFA,CAAC;IAHU,sCAAmB,GAA1B;QACI,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAvEM,gCAAa,GAAuB,SAAS,CAAC;IAE9C,mCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE,eAAe;YAC3B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,SAAS;SACpB;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,YAAY;YACpB,UAAU,EAAE,aAAa;YACzB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,iBAAiB;YAC7B,MAAM,EAAE,SAAS;SACpB;QACD;YACI,MAAM,EAAE,aAAa;YACrB,UAAU,EAAE,cAAc;YAC1B,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,8BAA8B;YACtC,UAAU,EAAE,gCAAgC;YAC5C,MAAM,EAAE,gDAAgD;SAC3D;QACD;YACI,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,8BAA8B;SACzC;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,yBAAC;CAAA,AAvFD,IAuFC;AAvFY,gDAAkB;AAyF/B,WAAiB,kBAAkB;IAC/B,IAAY,SAIX;IAJD,WAAY,SAAS;QACjB,iCAAgB,SAAS,aAAA,CAAA;QACzB,mCAAkB,WAAW,eAAA,CAAA;QAC7B,oCAAmB,YAAY,gBAAA,CAAA;IACnC,CAAC,EAJW,SAAS,GAAT,4BAAS,KAAT,4BAAS,QAIpB;AACL,CAAC,EANgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAMlC;AA/FY,gDAAkB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2003UnconfirmedVerifyTransaction.d.ts b/lib/skyapi/node/dist/model/inlineResponse2003UnconfirmedVerifyTransaction.d.ts new file mode 100644 index 0000000..d63f0ab --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2003UnconfirmedVerifyTransaction.d.ts @@ -0,0 +1,16 @@ +export declare class InlineResponse2003UnconfirmedVerifyTransaction { + 'burnFactor'?: number; + 'maxTransactionSize'?: number; + 'maxDecimals'?: number; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponse2003UnconfirmedVerifyTransaction.js b/lib/skyapi/node/dist/model/inlineResponse2003UnconfirmedVerifyTransaction.js new file mode 100644 index 0000000..fcd3d96 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2003UnconfirmedVerifyTransaction.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse2003UnconfirmedVerifyTransaction = (function () { + function InlineResponse2003UnconfirmedVerifyTransaction() { + } + InlineResponse2003UnconfirmedVerifyTransaction.getAttributeTypeMap = function () { + return InlineResponse2003UnconfirmedVerifyTransaction.attributeTypeMap; + }; + InlineResponse2003UnconfirmedVerifyTransaction.discriminator = undefined; + InlineResponse2003UnconfirmedVerifyTransaction.attributeTypeMap = [ + { + "name": "burnFactor", + "baseName": "burn_factor", + "type": "number" + }, + { + "name": "maxTransactionSize", + "baseName": "max_transaction_size", + "type": "number" + }, + { + "name": "maxDecimals", + "baseName": "max_decimals", + "type": "number" + } + ]; + return InlineResponse2003UnconfirmedVerifyTransaction; +}()); +exports.InlineResponse2003UnconfirmedVerifyTransaction = InlineResponse2003UnconfirmedVerifyTransaction; +//# sourceMappingURL=inlineResponse2003UnconfirmedVerifyTransaction.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2003UnconfirmedVerifyTransaction.js.map b/lib/skyapi/node/dist/model/inlineResponse2003UnconfirmedVerifyTransaction.js.map new file mode 100644 index 0000000..4cf67e5 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2003UnconfirmedVerifyTransaction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse2003UnconfirmedVerifyTransaction.js","sourceRoot":"","sources":["../../model/inlineResponse2003UnconfirmedVerifyTransaction.ts"],"names":[],"mappings":";;AAgBA;IAAA;IA2BA,CAAC;IAHU,kEAAmB,GAA1B;QACI,OAAO,8CAA8C,CAAC,gBAAgB,CAAC;IAC3E,CAAC;IArBM,4DAAa,GAAuB,SAAS,CAAC;IAE9C,+DAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,YAAY;YACpB,UAAU,EAAE,aAAa;YACzB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,oBAAoB;YAC5B,UAAU,EAAE,sBAAsB;YAClC,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,aAAa;YACrB,UAAU,EAAE,cAAc;YAC1B,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,qDAAC;CAAA,AA3BD,IA2BC;AA3BY,wGAA8C"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2004.d.ts b/lib/skyapi/node/dist/model/inlineResponse2004.d.ts new file mode 100644 index 0000000..2490dc7 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2004.d.ts @@ -0,0 +1,19 @@ +import { ApiV1PendingTxsTransaction } from './apiV1PendingTxsTransaction'; +export declare class InlineResponse2004 { + 'announced'?: string; + 'isValid'?: boolean; + 'checked'?: string; + 'received'?: string; + 'transaction'?: ApiV1PendingTxsTransaction; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponse2004.js b/lib/skyapi/node/dist/model/inlineResponse2004.js new file mode 100644 index 0000000..afc438c --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2004.js @@ -0,0 +1,40 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse2004 = (function () { + function InlineResponse2004() { + } + InlineResponse2004.getAttributeTypeMap = function () { + return InlineResponse2004.attributeTypeMap; + }; + InlineResponse2004.discriminator = undefined; + InlineResponse2004.attributeTypeMap = [ + { + "name": "announced", + "baseName": "announced", + "type": "string" + }, + { + "name": "isValid", + "baseName": "is_valid", + "type": "boolean" + }, + { + "name": "checked", + "baseName": "checked", + "type": "string" + }, + { + "name": "received", + "baseName": "received", + "type": "string" + }, + { + "name": "transaction", + "baseName": "transaction", + "type": "ApiV1PendingTxsTransaction" + } + ]; + return InlineResponse2004; +}()); +exports.InlineResponse2004 = InlineResponse2004; +//# sourceMappingURL=inlineResponse2004.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2004.js.map b/lib/skyapi/node/dist/model/inlineResponse2004.js.map new file mode 100644 index 0000000..8915655 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2004.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse2004.js","sourceRoot":"","sources":["../../model/inlineResponse2004.ts"],"names":[],"mappings":";;AAcA;IAAA;IAuCA,CAAC;IAHU,sCAAmB,GAA1B;QACI,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IA/BM,gCAAa,GAAuB,SAAS,CAAC;IAE9C,mCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,SAAS;SACpB;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,aAAa;YACrB,UAAU,EAAE,aAAa;YACzB,MAAM,EAAE,4BAA4B;SACvC;KAAK,CAAC;IAKf,yBAAC;CAAA,AAvCD,IAuCC;AAvCY,gDAAkB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2005.d.ts b/lib/skyapi/node/dist/model/inlineResponse2005.d.ts new file mode 100644 index 0000000..113a8e4 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2005.d.ts @@ -0,0 +1,17 @@ +import { ApiV1WalletsEntries } from './apiV1WalletsEntries'; +import { ApiV1WalletsMeta } from './apiV1WalletsMeta'; +export declare class InlineResponse2005 { + 'entries'?: Array; + 'meta'?: ApiV1WalletsMeta; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponse2005.js b/lib/skyapi/node/dist/model/inlineResponse2005.js new file mode 100644 index 0000000..7874a8a --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2005.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse2005 = (function () { + function InlineResponse2005() { + } + InlineResponse2005.getAttributeTypeMap = function () { + return InlineResponse2005.attributeTypeMap; + }; + InlineResponse2005.discriminator = undefined; + InlineResponse2005.attributeTypeMap = [ + { + "name": "entries", + "baseName": "entries", + "type": "Array" + }, + { + "name": "meta", + "baseName": "meta", + "type": "ApiV1WalletsMeta" + } + ]; + return InlineResponse2005; +}()); +exports.InlineResponse2005 = InlineResponse2005; +//# sourceMappingURL=inlineResponse2005.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2005.js.map b/lib/skyapi/node/dist/model/inlineResponse2005.js.map new file mode 100644 index 0000000..d40e618 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2005.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse2005.js","sourceRoot":"","sources":["../../model/inlineResponse2005.ts"],"names":[],"mappings":";;AAeA;IAAA;IAqBA,CAAC;IAHU,sCAAmB,GAA1B;QACI,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAhBM,gCAAa,GAAuB,SAAS,CAAC;IAE9C,mCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,4BAA4B;SACvC;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,kBAAkB;SAC7B;KAAK,CAAC;IAKf,yBAAC;CAAA,AArBD,IAqBC;AArBY,gDAAkB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2006.d.ts b/lib/skyapi/node/dist/model/inlineResponse2006.d.ts new file mode 100644 index 0000000..fbbe986 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2006.d.ts @@ -0,0 +1,14 @@ +export declare class InlineResponse2006 { + 'address'?: string; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponse2006.js b/lib/skyapi/node/dist/model/inlineResponse2006.js new file mode 100644 index 0000000..5b61354 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2006.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse2006 = (function () { + function InlineResponse2006() { + } + InlineResponse2006.getAttributeTypeMap = function () { + return InlineResponse2006.attributeTypeMap; + }; + InlineResponse2006.discriminator = undefined; + InlineResponse2006.attributeTypeMap = [ + { + "name": "address", + "baseName": "address", + "type": "string" + } + ]; + return InlineResponse2006; +}()); +exports.InlineResponse2006 = InlineResponse2006; +//# sourceMappingURL=inlineResponse2006.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2006.js.map b/lib/skyapi/node/dist/model/inlineResponse2006.js.map new file mode 100644 index 0000000..ef376e8 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2006.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse2006.js","sourceRoot":"","sources":["../../model/inlineResponse2006.ts"],"names":[],"mappings":";;AAaA;IAAA;IAeA,CAAC;IAHU,sCAAmB,GAA1B;QACI,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAXM,gCAAa,GAAuB,SAAS,CAAC;IAE9C,mCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,yBAAC;CAAA,AAfD,IAeC;AAfY,gDAAkB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2007.d.ts b/lib/skyapi/node/dist/model/inlineResponse2007.d.ts new file mode 100644 index 0000000..b6f8011 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2007.d.ts @@ -0,0 +1,16 @@ +import { InlineResponse2007Data } from './inlineResponse2007Data'; +export declare class InlineResponse2007 { + 'data'?: InlineResponse2007Data; + 'error'?: any; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponse2007.js b/lib/skyapi/node/dist/model/inlineResponse2007.js new file mode 100644 index 0000000..d4f16a5 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2007.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse2007 = (function () { + function InlineResponse2007() { + } + InlineResponse2007.getAttributeTypeMap = function () { + return InlineResponse2007.attributeTypeMap; + }; + InlineResponse2007.discriminator = undefined; + InlineResponse2007.attributeTypeMap = [ + { + "name": "data", + "baseName": "data", + "type": "InlineResponse2007Data" + }, + { + "name": "error", + "baseName": "error", + "type": "any" + } + ]; + return InlineResponse2007; +}()); +exports.InlineResponse2007 = InlineResponse2007; +//# sourceMappingURL=inlineResponse2007.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2007.js.map b/lib/skyapi/node/dist/model/inlineResponse2007.js.map new file mode 100644 index 0000000..1e8aaa5 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2007.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse2007.js","sourceRoot":"","sources":["../../model/inlineResponse2007.ts"],"names":[],"mappings":";;AAcA;IAAA;IAqBA,CAAC;IAHU,sCAAmB,GAA1B;QACI,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAhBM,gCAAa,GAAuB,SAAS,CAAC;IAE9C,mCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,wBAAwB;SACnC;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,KAAK;SAChB;KAAK,CAAC;IAKf,yBAAC;CAAA,AArBD,IAqBC;AArBY,gDAAkB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2007Data.d.ts b/lib/skyapi/node/dist/model/inlineResponse2007Data.d.ts new file mode 100644 index 0000000..ac36535 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2007Data.d.ts @@ -0,0 +1,14 @@ +export declare class InlineResponse2007Data { + 'version'?: number; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponse2007Data.js b/lib/skyapi/node/dist/model/inlineResponse2007Data.js new file mode 100644 index 0000000..57ddac5 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2007Data.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponse2007Data = (function () { + function InlineResponse2007Data() { + } + InlineResponse2007Data.getAttributeTypeMap = function () { + return InlineResponse2007Data.attributeTypeMap; + }; + InlineResponse2007Data.discriminator = undefined; + InlineResponse2007Data.attributeTypeMap = [ + { + "name": "version", + "baseName": "version", + "type": "number" + } + ]; + return InlineResponse2007Data; +}()); +exports.InlineResponse2007Data = InlineResponse2007Data; +//# sourceMappingURL=inlineResponse2007Data.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponse2007Data.js.map b/lib/skyapi/node/dist/model/inlineResponse2007Data.js.map new file mode 100644 index 0000000..b2fbaa9 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponse2007Data.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponse2007Data.js","sourceRoot":"","sources":["../../model/inlineResponse2007Data.ts"],"names":[],"mappings":";;AAaA;IAAA;IAeA,CAAC;IAHU,0CAAmB,GAA1B;QACI,OAAO,sBAAsB,CAAC,gBAAgB,CAAC;IACnD,CAAC;IAXM,oCAAa,GAAuB,SAAS,CAAC;IAE9C,uCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,6BAAC;CAAA,AAfD,IAeC;AAfY,wDAAsB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponseDefault.d.ts b/lib/skyapi/node/dist/model/inlineResponseDefault.d.ts new file mode 100644 index 0000000..97e6cf5 --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponseDefault.d.ts @@ -0,0 +1,15 @@ +export declare class InlineResponseDefault { + 'code'?: number; + 'message'?: string; + static discriminator: string | undefined; + static attributeTypeMap: Array<{ + name: string; + baseName: string; + type: string; + }>; + static getAttributeTypeMap(): { + name: string; + baseName: string; + type: string; + }[]; +} diff --git a/lib/skyapi/node/dist/model/inlineResponseDefault.js b/lib/skyapi/node/dist/model/inlineResponseDefault.js new file mode 100644 index 0000000..a5641ed --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponseDefault.js @@ -0,0 +1,25 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var InlineResponseDefault = (function () { + function InlineResponseDefault() { + } + InlineResponseDefault.getAttributeTypeMap = function () { + return InlineResponseDefault.attributeTypeMap; + }; + InlineResponseDefault.discriminator = undefined; + InlineResponseDefault.attributeTypeMap = [ + { + "name": "code", + "baseName": "code", + "type": "number" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + } + ]; + return InlineResponseDefault; +}()); +exports.InlineResponseDefault = InlineResponseDefault; +//# sourceMappingURL=inlineResponseDefault.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/inlineResponseDefault.js.map b/lib/skyapi/node/dist/model/inlineResponseDefault.js.map new file mode 100644 index 0000000..953a6ca --- /dev/null +++ b/lib/skyapi/node/dist/model/inlineResponseDefault.js.map @@ -0,0 +1 @@ +{"version":3,"file":"inlineResponseDefault.js","sourceRoot":"","sources":["../../model/inlineResponseDefault.ts"],"names":[],"mappings":";;AAaA;IAAA;IAqBA,CAAC;IAHU,yCAAmB,GAA1B;QACI,OAAO,qBAAqB,CAAC,gBAAgB,CAAC;IAClD,CAAC;IAhBM,mCAAa,GAAuB,SAAS,CAAC;IAE9C,sCAAgB,GAA0D;QAC7E;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;SACnB;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;SACnB;KAAK,CAAC;IAKf,4BAAC;CAAA,AArBD,IAqBC;AArBY,sDAAqB"} \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/models.d.ts b/lib/skyapi/node/dist/model/models.d.ts new file mode 100644 index 0000000..9bb6997 --- /dev/null +++ b/lib/skyapi/node/dist/model/models.d.ts @@ -0,0 +1,51 @@ +export * from './apiV1ExplorerAddressInputs'; +export * from './apiV1ExplorerAddressOutputs'; +export * from './apiV1ExplorerAddressStatus'; +export * from './apiV1PendingTxsTransaction'; +export * from './apiV1WalletTransactionHoursSelection'; +export * from './apiV1WalletTransactionTo'; +export * from './apiV1WalletTransactionWallet'; +export * from './apiV1WalletsEntries'; +export * from './apiV1WalletsMeta'; +export * from './inlineObject'; +export * from './inlineResponse200'; +export * from './inlineResponse2001'; +export * from './inlineResponse2002'; +export * from './inlineResponse2003'; +export * from './inlineResponse2003UnconfirmedVerifyTransaction'; +export * from './inlineResponse2004'; +export * from './inlineResponse2005'; +export * from './inlineResponse2006'; +export * from './inlineResponse2007'; +export * from './inlineResponse2007Data'; +export * from './inlineResponseDefault'; +import localVarRequest = require('request'); +export declare class ObjectSerializer { + static findCorrectType(data: any, expectedType: string): any; + static serialize(data: any, type: string): any; + static deserialize(data: any, type: string): any; +} +export interface Authentication { + applyToRequest(requestOptions: localVarRequest.Options): void; +} +export declare class HttpBasicAuth implements Authentication { + username: string; + password: string; + applyToRequest(requestOptions: localVarRequest.Options): void; +} +export declare class ApiKeyAuth implements Authentication { + private location; + private paramName; + apiKey: string; + constructor(location: string, paramName: string); + applyToRequest(requestOptions: localVarRequest.Options): void; +} +export declare class OAuth implements Authentication { + accessToken: string; + applyToRequest(requestOptions: localVarRequest.Options): void; +} +export declare class VoidAuth implements Authentication { + username: string; + password: string; + applyToRequest(_: localVarRequest.Options): void; +} diff --git a/lib/skyapi/node/dist/model/models.js b/lib/skyapi/node/dist/model/models.js new file mode 100644 index 0000000..fab085d --- /dev/null +++ b/lib/skyapi/node/dist/model/models.js @@ -0,0 +1,253 @@ +"use strict"; +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(require("./apiV1ExplorerAddressInputs")); +__export(require("./apiV1ExplorerAddressOutputs")); +__export(require("./apiV1ExplorerAddressStatus")); +__export(require("./apiV1PendingTxsTransaction")); +__export(require("./apiV1WalletTransactionHoursSelection")); +__export(require("./apiV1WalletTransactionTo")); +__export(require("./apiV1WalletTransactionWallet")); +__export(require("./apiV1WalletsEntries")); +__export(require("./apiV1WalletsMeta")); +__export(require("./inlineObject")); +__export(require("./inlineResponse200")); +__export(require("./inlineResponse2001")); +__export(require("./inlineResponse2002")); +__export(require("./inlineResponse2003")); +__export(require("./inlineResponse2003UnconfirmedVerifyTransaction")); +__export(require("./inlineResponse2004")); +__export(require("./inlineResponse2005")); +__export(require("./inlineResponse2006")); +__export(require("./inlineResponse2007")); +__export(require("./inlineResponse2007Data")); +__export(require("./inlineResponseDefault")); +var apiV1ExplorerAddressInputs_1 = require("./apiV1ExplorerAddressInputs"); +var apiV1ExplorerAddressOutputs_1 = require("./apiV1ExplorerAddressOutputs"); +var apiV1ExplorerAddressStatus_1 = require("./apiV1ExplorerAddressStatus"); +var apiV1PendingTxsTransaction_1 = require("./apiV1PendingTxsTransaction"); +var apiV1WalletTransactionHoursSelection_1 = require("./apiV1WalletTransactionHoursSelection"); +var apiV1WalletTransactionTo_1 = require("./apiV1WalletTransactionTo"); +var apiV1WalletTransactionWallet_1 = require("./apiV1WalletTransactionWallet"); +var apiV1WalletsEntries_1 = require("./apiV1WalletsEntries"); +var apiV1WalletsMeta_1 = require("./apiV1WalletsMeta"); +var inlineObject_1 = require("./inlineObject"); +var inlineResponse200_1 = require("./inlineResponse200"); +var inlineResponse2001_1 = require("./inlineResponse2001"); +var inlineResponse2002_1 = require("./inlineResponse2002"); +var inlineResponse2003_1 = require("./inlineResponse2003"); +var inlineResponse2003UnconfirmedVerifyTransaction_1 = require("./inlineResponse2003UnconfirmedVerifyTransaction"); +var inlineResponse2004_1 = require("./inlineResponse2004"); +var inlineResponse2005_1 = require("./inlineResponse2005"); +var inlineResponse2006_1 = require("./inlineResponse2006"); +var inlineResponse2007_1 = require("./inlineResponse2007"); +var inlineResponse2007Data_1 = require("./inlineResponse2007Data"); +var inlineResponseDefault_1 = require("./inlineResponseDefault"); +var primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" +]; +var enumsMap = { + "InlineResponse2003.StateEnum": inlineResponse2003_1.InlineResponse2003.StateEnum, +}; +var typeMap = { + "ApiV1ExplorerAddressInputs": apiV1ExplorerAddressInputs_1.ApiV1ExplorerAddressInputs, + "ApiV1ExplorerAddressOutputs": apiV1ExplorerAddressOutputs_1.ApiV1ExplorerAddressOutputs, + "ApiV1ExplorerAddressStatus": apiV1ExplorerAddressStatus_1.ApiV1ExplorerAddressStatus, + "ApiV1PendingTxsTransaction": apiV1PendingTxsTransaction_1.ApiV1PendingTxsTransaction, + "ApiV1WalletTransactionHoursSelection": apiV1WalletTransactionHoursSelection_1.ApiV1WalletTransactionHoursSelection, + "ApiV1WalletTransactionTo": apiV1WalletTransactionTo_1.ApiV1WalletTransactionTo, + "ApiV1WalletTransactionWallet": apiV1WalletTransactionWallet_1.ApiV1WalletTransactionWallet, + "ApiV1WalletsEntries": apiV1WalletsEntries_1.ApiV1WalletsEntries, + "ApiV1WalletsMeta": apiV1WalletsMeta_1.ApiV1WalletsMeta, + "InlineObject": inlineObject_1.InlineObject, + "InlineResponse200": inlineResponse200_1.InlineResponse200, + "InlineResponse2001": inlineResponse2001_1.InlineResponse2001, + "InlineResponse2002": inlineResponse2002_1.InlineResponse2002, + "InlineResponse2003": inlineResponse2003_1.InlineResponse2003, + "InlineResponse2003UnconfirmedVerifyTransaction": inlineResponse2003UnconfirmedVerifyTransaction_1.InlineResponse2003UnconfirmedVerifyTransaction, + "InlineResponse2004": inlineResponse2004_1.InlineResponse2004, + "InlineResponse2005": inlineResponse2005_1.InlineResponse2005, + "InlineResponse2006": inlineResponse2006_1.InlineResponse2006, + "InlineResponse2007": inlineResponse2007_1.InlineResponse2007, + "InlineResponse2007Data": inlineResponse2007Data_1.InlineResponse2007Data, + "InlineResponseDefault": inlineResponseDefault_1.InlineResponseDefault, +}; +var ObjectSerializer = (function () { + function ObjectSerializer() { + } + ObjectSerializer.findCorrectType = function (data, expectedType) { + if (data == undefined) { + return expectedType; + } + else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } + else if (expectedType === "Date") { + return expectedType; + } + else { + if (enumsMap[expectedType]) { + return expectedType; + } + if (!typeMap[expectedType]) { + return expectedType; + } + var discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; + } + else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if (typeMap[discriminatorType]) { + return discriminatorType; + } + else { + return expectedType; + } + } + else { + return expectedType; + } + } + } + }; + ObjectSerializer.serialize = function (data, type) { + if (data == undefined) { + return data; + } + else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } + else if (type.lastIndexOf("Array<", 0) === 0) { + var subType = type.replace("Array<", ""); + subType = subType.substring(0, subType.length - 1); + var transformedData = []; + for (var index in data) { + var date = data[index]; + transformedData.push(ObjectSerializer.serialize(date, subType)); + } + return transformedData; + } + else if (type === "Date") { + return data.toISOString(); + } + else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { + return data; + } + type = this.findCorrectType(data, type); + var attributeTypes = typeMap[type].getAttributeTypeMap(); + var instance = {}; + for (var index in attributeTypes) { + var attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + }; + ObjectSerializer.deserialize = function (data, type) { + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } + else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } + else if (type.lastIndexOf("Array<", 0) === 0) { + var subType = type.replace("Array<", ""); + subType = subType.substring(0, subType.length - 1); + var transformedData = []; + for (var index in data) { + var date = data[index]; + transformedData.push(ObjectSerializer.deserialize(date, subType)); + } + return transformedData; + } + else if (type === "Date") { + return new Date(data); + } + else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { + return data; + } + var instance = new typeMap[type](); + var attributeTypes = typeMap[type].getAttributeTypeMap(); + for (var index in attributeTypes) { + var attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + }; + return ObjectSerializer; +}()); +exports.ObjectSerializer = ObjectSerializer; +var HttpBasicAuth = (function () { + function HttpBasicAuth() { + this.username = ''; + this.password = ''; + } + HttpBasicAuth.prototype.applyToRequest = function (requestOptions) { + requestOptions.auth = { + username: this.username, password: this.password + }; + }; + return HttpBasicAuth; +}()); +exports.HttpBasicAuth = HttpBasicAuth; +var ApiKeyAuth = (function () { + function ApiKeyAuth(location, paramName) { + this.location = location; + this.paramName = paramName; + this.apiKey = ''; + } + ApiKeyAuth.prototype.applyToRequest = function (requestOptions) { + if (this.location == "query") { + requestOptions.qs[this.paramName] = this.apiKey; + } + else if (this.location == "header" && requestOptions && requestOptions.headers) { + requestOptions.headers[this.paramName] = this.apiKey; + } + }; + return ApiKeyAuth; +}()); +exports.ApiKeyAuth = ApiKeyAuth; +var OAuth = (function () { + function OAuth() { + this.accessToken = ''; + } + OAuth.prototype.applyToRequest = function (requestOptions) { + if (requestOptions && requestOptions.headers) { + requestOptions.headers["Authorization"] = "Bearer " + this.accessToken; + } + }; + return OAuth; +}()); +exports.OAuth = OAuth; +var VoidAuth = (function () { + function VoidAuth() { + this.username = ''; + this.password = ''; + } + VoidAuth.prototype.applyToRequest = function (_) { + }; + return VoidAuth; +}()); +exports.VoidAuth = VoidAuth; +//# sourceMappingURL=models.js.map \ No newline at end of file diff --git a/lib/skyapi/node/dist/model/models.js.map b/lib/skyapi/node/dist/model/models.js.map new file mode 100644 index 0000000..29b4d3d --- /dev/null +++ b/lib/skyapi/node/dist/model/models.js.map @@ -0,0 +1 @@ +{"version":3,"file":"models.js","sourceRoot":"","sources":["../../model/models.ts"],"names":[],"mappings":";;;;;AAAA,kDAA6C;AAC7C,mDAA8C;AAC9C,kDAA6C;AAC7C,kDAA6C;AAC7C,4DAAuD;AACvD,gDAA2C;AAC3C,oDAA+C;AAC/C,2CAAsC;AACtC,wCAAmC;AACnC,oCAA+B;AAC/B,yCAAoC;AACpC,0CAAqC;AACrC,0CAAqC;AACrC,0CAAqC;AACrC,sEAAiE;AACjE,0CAAqC;AACrC,0CAAqC;AACrC,0CAAqC;AACrC,0CAAqC;AACrC,8CAAyC;AACzC,6CAAwC;AAIxC,2EAA0E;AAC1E,6EAA4E;AAC5E,2EAA0E;AAC1E,2EAA0E;AAC1E,+FAA8F;AAC9F,uEAAsE;AACtE,+EAA8E;AAC9E,6DAA4D;AAC5D,uDAAsD;AACtD,+CAA8C;AAC9C,yDAAwD;AACxD,2DAA0D;AAC1D,2DAA0D;AAC1D,2DAA0D;AAC1D,mHAAkH;AAClH,2DAA0D;AAC1D,2DAA0D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IACL,eAAC;AAAD,CAAC,AAPD,IAOC;AAPY,4BAAQ"} \ No newline at end of file diff --git a/lib/skyapi/node/git_push.sh b/lib/skyapi/node/git_push.sh new file mode 100644 index 0000000..8442b80 --- /dev/null +++ b/lib/skyapi/node/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/lib/skyapi/node/model/apiV1ExplorerAddressInputs.ts b/lib/skyapi/node/model/apiV1ExplorerAddressInputs.ts new file mode 100644 index 0000000..f7ed420 --- /dev/null +++ b/lib/skyapi/node/model/apiV1ExplorerAddressInputs.ts @@ -0,0 +1,54 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ApiV1ExplorerAddressInputs { + 'owner'?: string; + 'hours'?: number; + 'calculatedHours'?: number; + 'coins'?: string; + 'uxid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "owner", + "baseName": "owner", + "type": "string" + }, + { + "name": "hours", + "baseName": "hours", + "type": "number" + }, + { + "name": "calculatedHours", + "baseName": "calculated_hours", + "type": "number" + }, + { + "name": "coins", + "baseName": "coins", + "type": "string" + }, + { + "name": "uxid", + "baseName": "uxid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ApiV1ExplorerAddressInputs.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/apiV1ExplorerAddressOutputs.ts b/lib/skyapi/node/model/apiV1ExplorerAddressOutputs.ts new file mode 100644 index 0000000..48f124a --- /dev/null +++ b/lib/skyapi/node/model/apiV1ExplorerAddressOutputs.ts @@ -0,0 +1,48 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ApiV1ExplorerAddressOutputs { + 'hours'?: number; + 'dst'?: string; + 'coins'?: string; + 'uxid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "hours", + "baseName": "hours", + "type": "number" + }, + { + "name": "dst", + "baseName": "dst", + "type": "string" + }, + { + "name": "coins", + "baseName": "coins", + "type": "string" + }, + { + "name": "uxid", + "baseName": "uxid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ApiV1ExplorerAddressOutputs.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/apiV1ExplorerAddressStatus.ts b/lib/skyapi/node/model/apiV1ExplorerAddressStatus.ts new file mode 100644 index 0000000..b8b547a --- /dev/null +++ b/lib/skyapi/node/model/apiV1ExplorerAddressStatus.ts @@ -0,0 +1,48 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ApiV1ExplorerAddressStatus { + 'unconfirmed'?: boolean; + 'blockSeq'?: number; + 'label'?: number; + 'confirmed'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "unconfirmed", + "baseName": "unconfirmed", + "type": "boolean" + }, + { + "name": "blockSeq", + "baseName": "block_seq", + "type": "number" + }, + { + "name": "label", + "baseName": "label", + "type": "number" + }, + { + "name": "confirmed", + "baseName": "confirmed", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ApiV1ExplorerAddressStatus.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/apiV1PendingTxsTransaction.ts b/lib/skyapi/node/model/apiV1PendingTxsTransaction.ts new file mode 100644 index 0000000..a87b922 --- /dev/null +++ b/lib/skyapi/node/model/apiV1PendingTxsTransaction.ts @@ -0,0 +1,76 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ApiV1ExplorerAddressOutputs } from './apiV1ExplorerAddressOutputs'; + +/** +* BlockTransactionVerbose has readable transaction data for transactions inside a block. It differs from Transaction in that it includes metadata for transaction inputs and the calculated coinhour fee spent by the block +*/ +export class ApiV1PendingTxsTransaction { + 'outputs'?: Array; + 'innerHash'?: string; + 'inputs'?: Array; + 'sigs'?: Array; + 'length'?: number; + 'txid'?: string; + 'type'?: number; + 'timestamp'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "outputs", + "baseName": "outputs", + "type": "Array" + }, + { + "name": "innerHash", + "baseName": "inner_hash", + "type": "string" + }, + { + "name": "inputs", + "baseName": "inputs", + "type": "Array" + }, + { + "name": "sigs", + "baseName": "sigs", + "type": "Array" + }, + { + "name": "length", + "baseName": "length", + "type": "number" + }, + { + "name": "txid", + "baseName": "txid", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "number" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ApiV1PendingTxsTransaction.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/apiV1WalletTransactionHoursSelection.ts b/lib/skyapi/node/model/apiV1WalletTransactionHoursSelection.ts new file mode 100644 index 0000000..a4f682b --- /dev/null +++ b/lib/skyapi/node/model/apiV1WalletTransactionHoursSelection.ts @@ -0,0 +1,42 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ApiV1WalletTransactionHoursSelection { + 'mode'?: string; + 'shareFactor'?: string; + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "mode", + "baseName": "mode", + "type": "string" + }, + { + "name": "shareFactor", + "baseName": "share_factor", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ApiV1WalletTransactionHoursSelection.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/apiV1WalletTransactionTo.ts b/lib/skyapi/node/model/apiV1WalletTransactionTo.ts new file mode 100644 index 0000000..4502b8a --- /dev/null +++ b/lib/skyapi/node/model/apiV1WalletTransactionTo.ts @@ -0,0 +1,42 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ApiV1WalletTransactionTo { + 'hours'?: number; + 'address'?: string; + 'coins'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "hours", + "baseName": "hours", + "type": "number" + }, + { + "name": "address", + "baseName": "address", + "type": "string" + }, + { + "name": "coins", + "baseName": "coins", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ApiV1WalletTransactionTo.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/apiV1WalletTransactionWallet.ts b/lib/skyapi/node/model/apiV1WalletTransactionWallet.ts new file mode 100644 index 0000000..4f22b93 --- /dev/null +++ b/lib/skyapi/node/model/apiV1WalletTransactionWallet.ts @@ -0,0 +1,48 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ApiV1WalletTransactionWallet { + 'unspents'?: Array; + 'addresses'?: Array; + 'password'?: string; + 'id'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "unspents", + "baseName": "unspents", + "type": "Array" + }, + { + "name": "addresses", + "baseName": "addresses", + "type": "Array" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ApiV1WalletTransactionWallet.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/apiV1WalletsEntries.ts b/lib/skyapi/node/model/apiV1WalletsEntries.ts new file mode 100644 index 0000000..1c02e23 --- /dev/null +++ b/lib/skyapi/node/model/apiV1WalletsEntries.ts @@ -0,0 +1,36 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ApiV1WalletsEntries { + 'publicKey'?: string; + 'address'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "publicKey", + "baseName": "public_key", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ApiV1WalletsEntries.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/apiV1WalletsMeta.ts b/lib/skyapi/node/model/apiV1WalletsMeta.ts new file mode 100644 index 0000000..e3d9394 --- /dev/null +++ b/lib/skyapi/node/model/apiV1WalletsMeta.ts @@ -0,0 +1,72 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ApiV1WalletsMeta { + 'filename'?: string; + 'encrypted'?: boolean; + 'cryptoType'?: string; + 'label'?: string; + 'type'?: string; + 'version'?: string; + 'coin'?: string; + 'timestamp'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "filename", + "baseName": "filename", + "type": "string" + }, + { + "name": "encrypted", + "baseName": "encrypted", + "type": "boolean" + }, + { + "name": "cryptoType", + "baseName": "crypto_type", + "type": "string" + }, + { + "name": "label", + "baseName": "label", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + }, + { + "name": "coin", + "baseName": "coin", + "type": "string" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ApiV1WalletsMeta.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineObject.ts b/lib/skyapi/node/model/inlineObject.ts new file mode 100644 index 0000000..84d057c --- /dev/null +++ b/lib/skyapi/node/model/inlineObject.ts @@ -0,0 +1,57 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ApiV1WalletTransactionHoursSelection } from './apiV1WalletTransactionHoursSelection'; +import { ApiV1WalletTransactionTo } from './apiV1WalletTransactionTo'; +import { ApiV1WalletTransactionWallet } from './apiV1WalletTransactionWallet'; + +export class InlineObject { + 'changeAddress'?: string; + 'hoursSelection'?: ApiV1WalletTransactionHoursSelection; + 'ignoreUnconfirmed'?: boolean; + 'to'?: Array; + 'wallet'?: ApiV1WalletTransactionWallet; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "changeAddress", + "baseName": "change_address", + "type": "string" + }, + { + "name": "hoursSelection", + "baseName": "hours_selection", + "type": "ApiV1WalletTransactionHoursSelection" + }, + { + "name": "ignoreUnconfirmed", + "baseName": "ignore_unconfirmed", + "type": "boolean" + }, + { + "name": "to", + "baseName": "to", + "type": "Array" + }, + { + "name": "wallet", + "baseName": "wallet", + "type": "ApiV1WalletTransactionWallet" + } ]; + + static getAttributeTypeMap() { + return InlineObject.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponse200.ts b/lib/skyapi/node/model/inlineResponse200.ts new file mode 100644 index 0000000..d2ba7b4 --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse200.ts @@ -0,0 +1,78 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class InlineResponse200 { + 'hours'?: number; + 'coins'?: number; + 'uxid'?: string; + 'ownerAddress'?: string; + 'spentBlockSeq'?: number; + 'spentTx'?: string; + 'time'?: number; + 'srcBlockSeq'?: number; + 'srcTx'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "hours", + "baseName": "hours", + "type": "number" + }, + { + "name": "coins", + "baseName": "coins", + "type": "number" + }, + { + "name": "uxid", + "baseName": "uxid", + "type": "string" + }, + { + "name": "ownerAddress", + "baseName": "owner_address", + "type": "string" + }, + { + "name": "spentBlockSeq", + "baseName": "spent_block_seq", + "type": "number" + }, + { + "name": "spentTx", + "baseName": "spent_tx", + "type": "string" + }, + { + "name": "time", + "baseName": "time", + "type": "number" + }, + { + "name": "srcBlockSeq", + "baseName": "src_block_seq", + "type": "number" + }, + { + "name": "srcTx", + "baseName": "src_tx", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InlineResponse200.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponse2001.ts b/lib/skyapi/node/model/inlineResponse2001.ts new file mode 100644 index 0000000..d558746 --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse2001.ts @@ -0,0 +1,30 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class InlineResponse2001 { + 'csrfToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "csrfToken", + "baseName": "csrf_token", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InlineResponse2001.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponse2002.ts b/lib/skyapi/node/model/inlineResponse2002.ts new file mode 100644 index 0000000..e646118 --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse2002.ts @@ -0,0 +1,87 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ApiV1ExplorerAddressInputs } from './apiV1ExplorerAddressInputs'; +import { ApiV1ExplorerAddressOutputs } from './apiV1ExplorerAddressOutputs'; +import { ApiV1ExplorerAddressStatus } from './apiV1ExplorerAddressStatus'; + +export class InlineResponse2002 { + 'outputs'?: Array; + 'innerHash'?: string; + 'inputs'?: Array; + 'fee'?: number; + 'sigs'?: Array; + 'length'?: number; + 'txid'?: string; + 'type'?: number; + 'status'?: ApiV1ExplorerAddressStatus; + 'timestamp'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "outputs", + "baseName": "outputs", + "type": "Array" + }, + { + "name": "innerHash", + "baseName": "inner_hash", + "type": "string" + }, + { + "name": "inputs", + "baseName": "inputs", + "type": "Array" + }, + { + "name": "fee", + "baseName": "fee", + "type": "number" + }, + { + "name": "sigs", + "baseName": "sigs", + "type": "Array" + }, + { + "name": "length", + "baseName": "length", + "type": "number" + }, + { + "name": "txid", + "baseName": "txid", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "number" + }, + { + "name": "status", + "baseName": "status", + "type": "ApiV1ExplorerAddressStatus" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return InlineResponse2002.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponse2003.ts b/lib/skyapi/node/model/inlineResponse2003.ts new file mode 100644 index 0000000..83a1e9f --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse2003.ts @@ -0,0 +1,110 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { InlineResponse2003UnconfirmedVerifyTransaction } from './inlineResponse2003UnconfirmedVerifyTransaction'; + +export class InlineResponse2003 { + 'lastReceived'?: number; + 'lastSent'?: number; + 'outgoing'?: boolean; + 'mirror'?: number; + 'address'?: string; + 'listenPort'?: number; + 'isTrustedPeer'?: boolean; + 'connectedAt'?: number; + 'unconfirmedVerifyTransaction'?: InlineResponse2003UnconfirmedVerifyTransaction; + 'id'?: number; + 'state'?: InlineResponse2003.StateEnum; + 'userAgent'?: string; + 'height'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "lastReceived", + "baseName": "last_received", + "type": "number" + }, + { + "name": "lastSent", + "baseName": "last_sent", + "type": "number" + }, + { + "name": "outgoing", + "baseName": "outgoing", + "type": "boolean" + }, + { + "name": "mirror", + "baseName": "mirror", + "type": "number" + }, + { + "name": "address", + "baseName": "address", + "type": "string" + }, + { + "name": "listenPort", + "baseName": "listen_port", + "type": "number" + }, + { + "name": "isTrustedPeer", + "baseName": "is_trusted_peer", + "type": "boolean" + }, + { + "name": "connectedAt", + "baseName": "connected_at", + "type": "number" + }, + { + "name": "unconfirmedVerifyTransaction", + "baseName": "unconfirmed_verify_transaction", + "type": "InlineResponse2003UnconfirmedVerifyTransaction" + }, + { + "name": "id", + "baseName": "id", + "type": "number" + }, + { + "name": "state", + "baseName": "state", + "type": "InlineResponse2003.StateEnum" + }, + { + "name": "userAgent", + "baseName": "user_agent", + "type": "string" + }, + { + "name": "height", + "baseName": "height", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return InlineResponse2003.attributeTypeMap; + } +} + +export namespace InlineResponse2003 { + export enum StateEnum { + Pending = 'pending', + Connected = 'connected', + Introduced = 'introduced' + } +} diff --git a/lib/skyapi/node/model/inlineResponse2003UnconfirmedVerifyTransaction.ts b/lib/skyapi/node/model/inlineResponse2003UnconfirmedVerifyTransaction.ts new file mode 100644 index 0000000..b5c50ad --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse2003UnconfirmedVerifyTransaction.ts @@ -0,0 +1,45 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** +* Represent unconfirmed transactions +*/ +export class InlineResponse2003UnconfirmedVerifyTransaction { + 'burnFactor'?: number; + 'maxTransactionSize'?: number; + 'maxDecimals'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "burnFactor", + "baseName": "burn_factor", + "type": "number" + }, + { + "name": "maxTransactionSize", + "baseName": "max_transaction_size", + "type": "number" + }, + { + "name": "maxDecimals", + "baseName": "max_decimals", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return InlineResponse2003UnconfirmedVerifyTransaction.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponse2004.ts b/lib/skyapi/node/model/inlineResponse2004.ts new file mode 100644 index 0000000..950ac2b --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse2004.ts @@ -0,0 +1,55 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ApiV1PendingTxsTransaction } from './apiV1PendingTxsTransaction'; + +export class InlineResponse2004 { + 'announced'?: string; + 'isValid'?: boolean; + 'checked'?: string; + 'received'?: string; + 'transaction'?: ApiV1PendingTxsTransaction; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "announced", + "baseName": "announced", + "type": "string" + }, + { + "name": "isValid", + "baseName": "is_valid", + "type": "boolean" + }, + { + "name": "checked", + "baseName": "checked", + "type": "string" + }, + { + "name": "received", + "baseName": "received", + "type": "string" + }, + { + "name": "transaction", + "baseName": "transaction", + "type": "ApiV1PendingTxsTransaction" + } ]; + + static getAttributeTypeMap() { + return InlineResponse2004.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponse2005.ts b/lib/skyapi/node/model/inlineResponse2005.ts new file mode 100644 index 0000000..bf195c5 --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse2005.ts @@ -0,0 +1,38 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ApiV1WalletsEntries } from './apiV1WalletsEntries'; +import { ApiV1WalletsMeta } from './apiV1WalletsMeta'; + +export class InlineResponse2005 { + 'entries'?: Array; + 'meta'?: ApiV1WalletsMeta; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "entries", + "baseName": "entries", + "type": "Array" + }, + { + "name": "meta", + "baseName": "meta", + "type": "ApiV1WalletsMeta" + } ]; + + static getAttributeTypeMap() { + return InlineResponse2005.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponse2006.ts b/lib/skyapi/node/model/inlineResponse2006.ts new file mode 100644 index 0000000..421a1b5 --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse2006.ts @@ -0,0 +1,30 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class InlineResponse2006 { + 'address'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InlineResponse2006.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponse2007.ts b/lib/skyapi/node/model/inlineResponse2007.ts new file mode 100644 index 0000000..bf6c2ed --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse2007.ts @@ -0,0 +1,37 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { InlineResponse2007Data } from './inlineResponse2007Data'; + +export class InlineResponse2007 { + 'data'?: InlineResponse2007Data; + 'error'?: any; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "InlineResponse2007Data" + }, + { + "name": "error", + "baseName": "error", + "type": "any" + } ]; + + static getAttributeTypeMap() { + return InlineResponse2007.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponse2007Data.ts b/lib/skyapi/node/model/inlineResponse2007Data.ts new file mode 100644 index 0000000..16d8320 --- /dev/null +++ b/lib/skyapi/node/model/inlineResponse2007Data.ts @@ -0,0 +1,30 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class InlineResponse2007Data { + 'version'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "version", + "baseName": "version", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return InlineResponse2007Data.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/inlineResponseDefault.ts b/lib/skyapi/node/model/inlineResponseDefault.ts new file mode 100644 index 0000000..6ec1212 --- /dev/null +++ b/lib/skyapi/node/model/inlineResponseDefault.ts @@ -0,0 +1,36 @@ +/** + * Skycoin REST API. + * Skycoin is a next-generation cryptocurrency. + * + * OpenAPI spec version: 0.25.1 + * Contact: contact@skycoin.net + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class InlineResponseDefault { + 'code'?: number; + 'message'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "code", + "baseName": "code", + "type": "number" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InlineResponseDefault.attributeTypeMap; + } +} + diff --git a/lib/skyapi/node/model/models.ts b/lib/skyapi/node/model/models.ts new file mode 100644 index 0000000..ffa35fb --- /dev/null +++ b/lib/skyapi/node/model/models.ts @@ -0,0 +1,248 @@ +export * from './apiV1ExplorerAddressInputs'; +export * from './apiV1ExplorerAddressOutputs'; +export * from './apiV1ExplorerAddressStatus'; +export * from './apiV1PendingTxsTransaction'; +export * from './apiV1WalletTransactionHoursSelection'; +export * from './apiV1WalletTransactionTo'; +export * from './apiV1WalletTransactionWallet'; +export * from './apiV1WalletsEntries'; +export * from './apiV1WalletsMeta'; +export * from './inlineObject'; +export * from './inlineResponse200'; +export * from './inlineResponse2001'; +export * from './inlineResponse2002'; +export * from './inlineResponse2003'; +export * from './inlineResponse2003UnconfirmedVerifyTransaction'; +export * from './inlineResponse2004'; +export * from './inlineResponse2005'; +export * from './inlineResponse2006'; +export * from './inlineResponse2007'; +export * from './inlineResponse2007Data'; +export * from './inlineResponseDefault'; + +import localVarRequest = require('request'); + +import { ApiV1ExplorerAddressInputs } from './apiV1ExplorerAddressInputs'; +import { ApiV1ExplorerAddressOutputs } from './apiV1ExplorerAddressOutputs'; +import { ApiV1ExplorerAddressStatus } from './apiV1ExplorerAddressStatus'; +import { ApiV1PendingTxsTransaction } from './apiV1PendingTxsTransaction'; +import { ApiV1WalletTransactionHoursSelection } from './apiV1WalletTransactionHoursSelection'; +import { ApiV1WalletTransactionTo } from './apiV1WalletTransactionTo'; +import { ApiV1WalletTransactionWallet } from './apiV1WalletTransactionWallet'; +import { ApiV1WalletsEntries } from './apiV1WalletsEntries'; +import { ApiV1WalletsMeta } from './apiV1WalletsMeta'; +import { InlineObject } from './inlineObject'; +import { InlineResponse200 } from './inlineResponse200'; +import { InlineResponse2001 } from './inlineResponse2001'; +import { InlineResponse2002 } from './inlineResponse2002'; +import { InlineResponse2003 } from './inlineResponse2003'; +import { InlineResponse2003UnconfirmedVerifyTransaction } from './inlineResponse2003UnconfirmedVerifyTransaction'; +import { InlineResponse2004 } from './inlineResponse2004'; +import { InlineResponse2005 } from './inlineResponse2005'; +import { InlineResponse2006 } from './inlineResponse2006'; +import { InlineResponse2007 } from './inlineResponse2007'; +import { InlineResponse2007Data } from './inlineResponse2007Data'; +import { InlineResponseDefault } from './inlineResponseDefault'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "InlineResponse2003.StateEnum": InlineResponse2003.StateEnum, +} + +let typeMap: {[index: string]: any} = { + "ApiV1ExplorerAddressInputs": ApiV1ExplorerAddressInputs, + "ApiV1ExplorerAddressOutputs": ApiV1ExplorerAddressOutputs, + "ApiV1ExplorerAddressStatus": ApiV1ExplorerAddressStatus, + "ApiV1PendingTxsTransaction": ApiV1PendingTxsTransaction, + "ApiV1WalletTransactionHoursSelection": ApiV1WalletTransactionHoursSelection, + "ApiV1WalletTransactionTo": ApiV1WalletTransactionTo, + "ApiV1WalletTransactionWallet": ApiV1WalletTransactionWallet, + "ApiV1WalletsEntries": ApiV1WalletsEntries, + "ApiV1WalletsMeta": ApiV1WalletsMeta, + "InlineObject": InlineObject, + "InlineResponse200": InlineResponse200, + "InlineResponse2001": InlineResponse2001, + "InlineResponse2002": InlineResponse2002, + "InlineResponse2003": InlineResponse2003, + "InlineResponse2003UnconfirmedVerifyTransaction": InlineResponse2003UnconfirmedVerifyTransaction, + "InlineResponse2004": InlineResponse2004, + "InlineResponse2005": InlineResponse2005, + "InlineResponse2006": InlineResponse2006, + "InlineResponse2007": InlineResponse2007, + "InlineResponse2007Data": InlineResponse2007Data, + "InlineResponseDefault": InlineResponseDefault, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index in data) { + let date = data[index]; + transformedData.push(ObjectSerializer.serialize(date, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index in attributeTypes) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index in data) { + let date = data[index]; + transformedData.push(ObjectSerializer.deserialize(date, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index in attributeTypes) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} + +export interface Authentication { + /** + * Apply authentication settings to header and query params. + */ + applyToRequest(requestOptions: localVarRequest.Options): void; +} + +export class HttpBasicAuth implements Authentication { + public username: string = ''; + public password: string = ''; + + applyToRequest(requestOptions: localVarRequest.Options): void { + requestOptions.auth = { + username: this.username, password: this.password + } + } +} + +export class ApiKeyAuth implements Authentication { + public apiKey: string = ''; + + constructor(private location: string, private paramName: string) { + } + + applyToRequest(requestOptions: localVarRequest.Options): void { + if (this.location == "query") { + (requestOptions.qs)[this.paramName] = this.apiKey; + } else if (this.location == "header" && requestOptions && requestOptions.headers) { + requestOptions.headers[this.paramName] = this.apiKey; + } + } +} + +export class OAuth implements Authentication { + public accessToken: string = ''; + + applyToRequest(requestOptions: localVarRequest.Options): void { + if (requestOptions && requestOptions.headers) { + requestOptions.headers["Authorization"] = "Bearer " + this.accessToken; + } + } +} + +export class VoidAuth implements Authentication { + public username: string = ''; + public password: string = ''; + + applyToRequest(_: localVarRequest.Options): void { + // Do nothing + } +} \ No newline at end of file diff --git a/lib/skyapi/node/package-lock.json b/lib/skyapi/node/package-lock.json new file mode 100644 index 0000000..a6c8f4b --- /dev/null +++ b/lib/skyapi/node/package-lock.json @@ -0,0 +1,818 @@ +{ + "name": "libsky-node", + "version": "0.25.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@types/bluebird": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.26.tgz", + "integrity": "sha512-aj2mrBLn5ky0GmAg6IPXrQjnN0iB/ulozuJ+oZdrHRAzRbXjGmu4UXsNCjFvPbSaaPZmniocdOzsM392qLOlmQ==" + }, + "@types/caseless": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.2.tgz", + "integrity": "sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w==" + }, + "@types/form-data": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.1.tgz", + "integrity": "sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ==", + "requires": { + "@types/node": "*" + }, + "dependencies": { + "@types/node": { + "version": "11.12.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-11.12.1.tgz", + "integrity": "sha512-sKDlqv6COJrR7ar0+GqqhrXQDzQlMcqMnF2iEU6m9hLo8kxozoAGUazwPyELHlRVmjsbvlnGXjnzyptSXVmceA==" + } + } + }, + "@types/node": { + "version": "8.10.34", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.34.tgz", + "integrity": "sha512-alypNiaAEd0RBGXoWehJ2gchPYCITmw4CYBoB5nDlji8l8on7FsklfdfIs4DDmgpKLSX3OF3ha6SV+0W7cTzUA==", + "dev": true + }, + "@types/request": { + "version": "2.48.1", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.1.tgz", + "integrity": "sha512-ZgEZ1TiD+KGA9LiAAPPJL68Id2UWfeSO62ijSXZjFJArVV+2pKcsVHmrcu+1oiE3q6eDGiFiSolRc4JHoerBBg==", + "requires": { + "@types/caseless": "*", + "@types/form-data": "*", + "@types/node": "*", + "@types/tough-cookie": "*" + }, + "dependencies": { + "@types/node": { + "version": "11.12.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-11.12.1.tgz", + "integrity": "sha512-sKDlqv6COJrR7ar0+GqqhrXQDzQlMcqMnF2iEU6m9hLo8kxozoAGUazwPyELHlRVmjsbvlnGXjnzyptSXVmceA==" + } + } + }, + "@types/tough-cookie": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.5.tgz", + "integrity": "sha512-SCcK7mvGi3+ZNz833RRjFIxrn4gI1PPR3NtuIS+6vMkvmsGjosqTJwRt5bAEFLRz+wtJMWv8+uOnZf2hi2QXTg==" + }, + "ajv": { + "version": "6.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", + "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + }, + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "requires": { + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" + } + }, + "babel-core": { + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "requires": { + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" + } + }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "requires": { + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.7", + "trim-right": "^1.0.1" + } + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "requires": { + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-block-scoping": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", + "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", + "requires": { + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "requires": { + "babel-core": "^6.26.0", + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "home-or-tmp": "^2.0.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.15" + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "requires": { + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "requires": { + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "requires": { + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==" + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "bluebird": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.3.tgz", + "integrity": "sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==" + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "combined-stream": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "convert-source-map": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", + "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "core-js": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.5.tgz", + "integrity": "sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A==" + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "requires": { + "repeating": "^2.0.0" + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=" + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==" + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + }, + "har-validator": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "requires": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.1" + } + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "requires": { + "loose-envify": "^1.0.0" + } + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" + }, + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=" + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=" + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "lodash": { + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "mime-db": { + "version": "1.38.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", + "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==" + }, + "mime-types": { + "version": "2.1.22", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", + "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==", + "requires": { + "mime-db": "~1.38.0" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==" + }, + "psl": { + "version": "1.1.31", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.31.tgz", + "integrity": "sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw==" + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "requires": { + "is-finite": "^1.0.0" + } + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "rewire": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rewire/-/rewire-3.0.2.tgz", + "integrity": "sha512-ejkkt3qYnsQ38ifc9llAAzuHiGM7kR8N5/mL3aHWgmWwet0OMFcmJB8aTsMV2PBHCWxNVTLCeRfBpEa8X2+1fw==", + "requires": { + "babel-core": "^6.26.0", + "babel-plugin-transform-es2015-block-scoping": "^6.26.0" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=" + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "requires": { + "source-map": "^0.5.6" + } + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" + }, + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=" + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + } + } + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=" + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" + }, + "typescript": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz", + "integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==", + "dev": true + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "requires": { + "punycode": "^2.1.0" + } + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + } + } +} diff --git a/lib/skyapi/node/package.json b/lib/skyapi/node/package.json new file mode 100644 index 0000000..ebbc3e2 --- /dev/null +++ b/lib/skyapi/node/package.json @@ -0,0 +1,26 @@ +{ + "name": "libsky-node", + "version": "0.25.1", + "description": "NodeJS client for libsky-node", + "repository": "GIT_USER_ID/GIT_REPO_ID", + "main": "dist/api.js", + "types": "dist/api.d.ts", + "scripts": { + "clean": "rm -Rf node_modules/ *.js", + "build": "tsc", + "test": "npm run build && node dist/client.js" + }, + "author": "OpenAPI-Generator Contributors", + "license": "Unlicense", + "dependencies": { + "bluebird": "^3.5.0", + "request": "^2.81.0", + "@types/bluebird": "*", + "@types/request": "*", + "rewire": "^3.0.2" + }, + "devDependencies": { + "typescript": "^2.4.2", + "@types/node": "8.10.34" + } +} diff --git a/lib/skyapi/node/tsconfig.json b/lib/skyapi/node/tsconfig.json new file mode 100644 index 0000000..ba2570a --- /dev/null +++ b/lib/skyapi/node/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "noImplicitAny": false, + "suppressImplicitAnyIndexErrors": true, + "target": "ES5", + "strict": true, + "moduleResolution": "node", + "removeComments": true, + "sourceMap": true, + "noLib": false, + "declaration": true, + "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"], + "outDir": "dist" + }, + "exclude": [ + "dist", + "node_modules" + ] +} diff --git a/tests/axios/package-lock.json b/tests/axios/package-lock.json new file mode 100644 index 0000000..b58e97f --- /dev/null +++ b/tests/axios/package-lock.json @@ -0,0 +1,1073 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "ansi-colors": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", + "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", + "dev": true + }, + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "chai": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", + "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", + "dev": true, + "requires": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.2", + "deep-eql": "^3.0.1", + "get-func-name": "^2.0.0", + "pathval": "^1.1.0", + "type-detect": "^4.0.5" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", + "dev": true + }, + "cliui": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", + "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", + "dev": true, + "requires": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + } + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "deep-eql": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", + "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "dev": true, + "requires": { + "type-detect": "^4.0.0" + } + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "end-of-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", + "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "es-abstract": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz", + "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.0", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "is-callable": "^1.1.4", + "is-regex": "^1.0.4", + "object-keys": "^1.0.12" + } + }, + "es-to-primitive": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", + "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "flat": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz", + "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", + "dev": true, + "requires": { + "is-buffer": "~2.0.3" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "dev": true + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "growl": { + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", + "dev": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", + "dev": true + }, + "he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "invert-kv": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", + "dev": true + }, + "is-buffer": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", + "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==", + "dev": true + }, + "is-callable": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", + "dev": true + }, + "is-date-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "is-regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "dev": true, + "requires": { + "has": "^1.0.1" + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-symbol": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", + "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.0" + } + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "js-yaml": { + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.0.tgz", + "integrity": "sha512-pZZoSxcCYco+DIKBTimr67J6Hy+EYGZDY/HCWC+iAEA9h1ByhMXAIVUXMcMFpOCxQ/xjXmPI2MkDL5HRm5eFrQ==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "lcid": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", + "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", + "dev": true, + "requires": { + "invert-kv": "^2.0.0" + } + }, + "libsky-axios": { + "version": "file:../../lib/skyapi/axios", + "dev": true, + "requires": { + "axios": "^0.18.0" + }, + "dependencies": { + "@types/node": { + "version": "8.10.45", + "bundled": true + }, + "axios": { + "version": "0.18.0", + "bundled": true, + "dev": true, + "requires": { + "follow-redirects": "^1.3.0", + "is-buffer": "^1.1.5" + } + }, + "debug": { + "version": "3.2.6", + "bundled": true, + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "follow-redirects": { + "version": "1.7.0", + "bundled": true, + "dev": true, + "requires": { + "debug": "^3.2.6" + } + }, + "is-buffer": { + "version": "1.1.6", + "bundled": true, + "dev": true + }, + "ms": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "typescript": { + "version": "2.9.2", + "bundled": true + } + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", + "dev": true + }, + "log-symbols": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", + "dev": true, + "requires": { + "chalk": "^2.0.1" + } + }, + "map-age-cleaner": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dev": true, + "requires": { + "p-defer": "^1.0.0" + } + }, + "mem": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", + "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", + "dev": true, + "requires": { + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "mocha": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.1.3.tgz", + "integrity": "sha512-QdE/w//EPHrqgT5PNRUjRVHy6IJAzAf1R8n2O8W8K2RZ+NbPfOD5cBDp+PGa2Gptep37C/TdBiaNwakppEzEbg==", + "dev": true, + "requires": { + "ansi-colors": "3.2.3", + "browser-stdout": "1.3.1", + "debug": "3.2.6", + "diff": "3.5.0", + "escape-string-regexp": "1.0.5", + "find-up": "3.0.0", + "glob": "7.1.3", + "growl": "1.10.5", + "he": "1.2.0", + "js-yaml": "3.13.0", + "log-symbols": "2.2.0", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "ms": "2.1.1", + "node-environment-flags": "1.0.5", + "object.assign": "4.1.0", + "strip-json-comments": "2.0.1", + "supports-color": "6.0.0", + "which": "1.3.1", + "wide-align": "1.1.3", + "yargs": "13.2.2", + "yargs-parser": "13.0.0", + "yargs-unparser": "1.5.0" + } + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node-environment-flags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", + "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", + "dev": true, + "requires": { + "object.getownpropertydescriptors": "^2.0.3", + "semver": "^5.7.0" + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "object.getownpropertydescriptors": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", + "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.5.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "os-locale": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", + "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "dev": true, + "requires": { + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" + } + }, + "p-defer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", + "dev": true + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", + "dev": true + }, + "p-limit": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz", + "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "pathval": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", + "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "semver": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", + "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", + "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "wide-align": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "dev": true, + "requires": { + "string-width": "^1.0.2 || 2" + } + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "y18n": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "dev": true + }, + "yargs": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz", + "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "os-locale": "^3.1.0", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } + } + }, + "yargs-parser": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz", + "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, + "yargs-unparser": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.5.0.tgz", + "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==", + "dev": true, + "requires": { + "flat": "^4.1.0", + "lodash": "^4.17.11", + "yargs": "^12.0.5" + }, + "dependencies": { + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "yargs": { + "version": "12.0.5", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", + "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^11.1.1" + } + }, + "yargs-parser": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", + "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + } + } +} diff --git a/tests/axios/package.json b/tests/axios/package.json new file mode 100644 index 0000000..b4cce2a --- /dev/null +++ b/tests/axios/package.json @@ -0,0 +1,10 @@ +{ + "scripts": { + "test": "mocha" + }, + "devDependencies": { + "chai": "^4.2.0", + "libsky-axios": "file:../../lib/skyapi/axios", + "mocha": "^6.1.3" + } +} diff --git a/tests/axios/test/axios.js b/tests/axios/test/axios.js new file mode 100644 index 0000000..0f8228d --- /dev/null +++ b/tests/axios/test/axios.js @@ -0,0 +1,44 @@ +"use strict"; + +const localBasePath = 'http://localhost:6420/'; +const developBasePath = 'https://staging.node.skycoin.net'; +const prodBasePath = 'https://node.skycoin.net'; + +let axiosClient = require('libsky-axios'); +var expect = require('chai').expect; + +describe('#axiosClient', function() { + + this.timeout(10000); + + context(`Getting version from ${developBasePath}.`, function() { + it('Should return version object', function() { + let apiConfig = new axiosClient.Configuration(); + let api = new axiosClient.DefaultApi(apiConfig, developBasePath); + return api.version().then(result => { + expect(result).to.be.a('object'); + expect(result).to.have.property('data'); + expect(result.data).to.be.a('object'); + expect(result.data).to.have.property('version'); + expect(result.data).to.have.property('commit'); + expect(result.data).to.have.property('branch'); + }); + }); + }); + + context(`Getting version from ${prodBasePath}.`, function() { + it('Should return version object', function() { + let apiConfig = new axiosClient.Configuration(); + let api = new axiosClient.DefaultApi(apiConfig, prodBasePath); + return api.version().then(result => { + expect(result).to.be.a('object'); + expect(result).to.have.property('data'); + expect(result.data).to.be.a('object'); + expect(result.data).to.have.property('version'); + expect(result.data).to.have.property('commit'); + expect(result.data).to.have.property('branch'); + }); + }); + }); + +}); diff --git a/tests/node/node_modules/libsky-node b/tests/node/node_modules/libsky-node new file mode 120000 index 0000000..bad5e17 --- /dev/null +++ b/tests/node/node_modules/libsky-node @@ -0,0 +1 @@ +../../../lib/skyapi/node \ No newline at end of file diff --git a/tests/node/package-lock.json b/tests/node/package-lock.json new file mode 100644 index 0000000..1b0e3a3 --- /dev/null +++ b/tests/node/package-lock.json @@ -0,0 +1,1840 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "ansi-colors": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", + "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", + "dev": true + }, + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "chai": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", + "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", + "dev": true, + "requires": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.2", + "deep-eql": "^3.0.1", + "get-func-name": "^2.0.0", + "pathval": "^1.1.0", + "type-detect": "^4.0.5" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", + "dev": true + }, + "cliui": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", + "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", + "dev": true, + "requires": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + } + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "deep-eql": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", + "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "dev": true, + "requires": { + "type-detect": "^4.0.0" + } + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "end-of-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", + "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "es-abstract": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz", + "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.0", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "is-callable": "^1.1.4", + "is-regex": "^1.0.4", + "object-keys": "^1.0.12" + } + }, + "es-to-primitive": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", + "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "flat": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz", + "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", + "dev": true, + "requires": { + "is-buffer": "~2.0.3" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "dev": true + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "growl": { + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", + "dev": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", + "dev": true + }, + "he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "invert-kv": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", + "dev": true + }, + "is-buffer": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", + "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==", + "dev": true + }, + "is-callable": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", + "dev": true + }, + "is-date-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "is-regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "dev": true, + "requires": { + "has": "^1.0.1" + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-symbol": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", + "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "dev": true, + "requires": { + "has-symbols": "^1.0.0" + } + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "js-yaml": { + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.0.tgz", + "integrity": "sha512-pZZoSxcCYco+DIKBTimr67J6Hy+EYGZDY/HCWC+iAEA9h1ByhMXAIVUXMcMFpOCxQ/xjXmPI2MkDL5HRm5eFrQ==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "lcid": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", + "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", + "dev": true, + "requires": { + "invert-kv": "^2.0.0" + } + }, + "libsky-node": { + "version": "file:../../lib/skyapi/node", + "dev": true, + "requires": { + "@types/bluebird": "*", + "@types/request": "*", + "bluebird": "^3.5.0", + "request": "^2.81.0", + "rewire": "^3.0.2" + }, + "dependencies": { + "@types/bluebird": { + "version": "3.5.26", + "bundled": true, + "dev": true + }, + "@types/caseless": { + "version": "0.12.2", + "bundled": true, + "dev": true + }, + "@types/form-data": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "@types/node": "*" + }, + "dependencies": { + "@types/node": { + "version": "11.12.1", + "bundled": true, + "dev": true + } + } + }, + "@types/node": { + "version": "8.10.34", + "bundled": true + }, + "@types/request": { + "version": "2.48.1", + "bundled": true, + "dev": true, + "requires": { + "@types/caseless": "*", + "@types/form-data": "*", + "@types/node": "*", + "@types/tough-cookie": "*" + }, + "dependencies": { + "@types/node": { + "version": "11.12.1", + "bundled": true, + "dev": true + } + } + }, + "@types/tough-cookie": { + "version": "2.3.5", + "bundled": true, + "dev": true + }, + "ajv": { + "version": "6.10.0", + "bundled": true, + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "bundled": true, + "dev": true + }, + "asn1": { + "version": "0.2.4", + "bundled": true, + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "bundled": true, + "dev": true + }, + "aws-sign2": { + "version": "0.7.0", + "bundled": true, + "dev": true + }, + "aws4": { + "version": "1.8.0", + "bundled": true, + "dev": true + }, + "babel-code-frame": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" + } + }, + "babel-core": { + "version": "6.26.3", + "bundled": true, + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" + } + }, + "babel-generator": { + "version": "6.26.1", + "bundled": true, + "dev": true, + "requires": { + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.7", + "trim-right": "^1.0.1" + } + }, + "babel-helpers": { + "version": "6.24.1", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-messages": { + "version": "6.23.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-block-scoping": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" + } + }, + "babel-register": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-core": "^6.26.0", + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "home-or-tmp": "^2.0.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.15" + } + }, + "babel-runtime": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" + } + }, + "babel-template": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" + } + }, + "babel-traverse": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" + } + }, + "babel-types": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" + } + }, + "babylon": { + "version": "6.18.0", + "bundled": true, + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "bluebird": { + "version": "3.5.3", + "bundled": true, + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "caseless": { + "version": "0.12.0", + "bundled": true, + "dev": true + }, + "chalk": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "combined-stream": { + "version": "1.0.7", + "bundled": true, + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "convert-source-map": { + "version": "1.6.0", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "core-js": { + "version": "2.6.5", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "dashdash": { + "version": "1.14.1", + "bundled": true, + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "delayed-stream": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "detect-indent": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "repeating": "^2.0.0" + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "bundled": true, + "dev": true + }, + "esutils": { + "version": "2.0.2", + "bundled": true, + "dev": true + }, + "extend": { + "version": "3.0.2", + "bundled": true, + "dev": true + }, + "extsprintf": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "fast-deep-equal": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true, + "dev": true + }, + "form-data": { + "version": "2.3.3", + "bundled": true, + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "getpass": { + "version": "0.1.7", + "bundled": true, + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "globals": { + "version": "9.18.0", + "bundled": true, + "dev": true + }, + "har-schema": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "har-validator": { + "version": "5.1.3", + "bundled": true, + "dev": true, + "requires": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "home-or-tmp": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.1" + } + }, + "http-signature": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "invariant": { + "version": "2.2.4", + "bundled": true, + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } + }, + "is-finite": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true, + "dev": true + }, + "js-tokens": { + "version": "3.0.2", + "bundled": true, + "dev": true + }, + "jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "jsesc": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "bundled": true, + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "bundled": true, + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true, + "dev": true + }, + "json5": { + "version": "0.5.1", + "bundled": true, + "dev": true + }, + "jsprim": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "lodash": { + "version": "4.17.11", + "bundled": true, + "dev": true + }, + "loose-envify": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "mime-db": { + "version": "1.38.0", + "bundled": true, + "dev": true + }, + "mime-types": { + "version": "2.1.22", + "bundled": true, + "dev": true, + "requires": { + "mime-db": "~1.38.0" + } + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "bundled": true, + "dev": true + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "performance-now": { + "version": "2.1.0", + "bundled": true, + "dev": true + }, + "private": { + "version": "0.1.8", + "bundled": true, + "dev": true + }, + "psl": { + "version": "1.1.31", + "bundled": true, + "dev": true + }, + "punycode": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "qs": { + "version": "6.5.2", + "bundled": true, + "dev": true + }, + "regenerator-runtime": { + "version": "0.11.1", + "bundled": true, + "dev": true + }, + "repeating": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-finite": "^1.0.0" + } + }, + "request": { + "version": "2.88.0", + "bundled": true, + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "rewire": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "requires": { + "babel-core": "^6.26.0", + "babel-plugin-transform-es2015-block-scoping": "^6.26.0" + } + }, + "safe-buffer": { + "version": "5.1.2", + "bundled": true, + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "dev": true + }, + "slash": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "source-map": { + "version": "0.5.7", + "bundled": true, + "dev": true + }, + "source-map-support": { + "version": "0.4.18", + "bundled": true, + "dev": true, + "requires": { + "source-map": "^0.5.6" + } + }, + "sshpk": { + "version": "1.16.1", + "bundled": true, + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "to-fast-properties": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "tough-cookie": { + "version": "2.4.3", + "bundled": true, + "dev": true, + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "bundled": true, + "dev": true + } + } + }, + "trim-right": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "bundled": true, + "dev": true + }, + "typescript": { + "version": "2.9.2", + "bundled": true + }, + "uri-js": { + "version": "4.2.2", + "bundled": true, + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "uuid": { + "version": "3.3.2", + "bundled": true, + "dev": true + }, + "verror": { + "version": "1.10.0", + "bundled": true, + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + } + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", + "dev": true + }, + "log-symbols": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", + "dev": true, + "requires": { + "chalk": "^2.0.1" + } + }, + "map-age-cleaner": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dev": true, + "requires": { + "p-defer": "^1.0.0" + } + }, + "mem": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", + "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", + "dev": true, + "requires": { + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "mocha": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.1.3.tgz", + "integrity": "sha512-QdE/w//EPHrqgT5PNRUjRVHy6IJAzAf1R8n2O8W8K2RZ+NbPfOD5cBDp+PGa2Gptep37C/TdBiaNwakppEzEbg==", + "dev": true, + "requires": { + "ansi-colors": "3.2.3", + "browser-stdout": "1.3.1", + "debug": "3.2.6", + "diff": "3.5.0", + "escape-string-regexp": "1.0.5", + "find-up": "3.0.0", + "glob": "7.1.3", + "growl": "1.10.5", + "he": "1.2.0", + "js-yaml": "3.13.0", + "log-symbols": "2.2.0", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "ms": "2.1.1", + "node-environment-flags": "1.0.5", + "object.assign": "4.1.0", + "strip-json-comments": "2.0.1", + "supports-color": "6.0.0", + "which": "1.3.1", + "wide-align": "1.1.3", + "yargs": "13.2.2", + "yargs-parser": "13.0.0", + "yargs-unparser": "1.5.0" + } + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "node-environment-flags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", + "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", + "dev": true, + "requires": { + "object.getownpropertydescriptors": "^2.0.3", + "semver": "^5.7.0" + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "object.getownpropertydescriptors": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", + "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.5.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "os-locale": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", + "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "dev": true, + "requires": { + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" + } + }, + "p-defer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", + "dev": true + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", + "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", + "dev": true + }, + "p-limit": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz", + "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "pathval": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", + "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "semver": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", + "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", + "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "wide-align": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "dev": true, + "requires": { + "string-width": "^1.0.2 || 2" + } + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "y18n": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "dev": true + }, + "yargs": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz", + "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "os-locale": "^3.1.0", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } + } + }, + "yargs-parser": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz", + "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, + "yargs-unparser": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.5.0.tgz", + "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==", + "dev": true, + "requires": { + "flat": "^4.1.0", + "lodash": "^4.17.11", + "yargs": "^12.0.5" + }, + "dependencies": { + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "yargs": { + "version": "12.0.5", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", + "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^11.1.1" + } + }, + "yargs-parser": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", + "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + } + } +} diff --git a/tests/node/package.json b/tests/node/package.json new file mode 100644 index 0000000..07484f8 --- /dev/null +++ b/tests/node/package.json @@ -0,0 +1,10 @@ +{ + "scripts": { + "test": "mocha" + }, + "devDependencies": { + "chai": "^4.2.0", + "libsky-node": "file:../../lib/skyapi/node", + "mocha": "^6.1.3" + } +} diff --git a/tests/node/test/node.js b/tests/node/test/node.js new file mode 100644 index 0000000..469cc7d --- /dev/null +++ b/tests/node/test/node.js @@ -0,0 +1,42 @@ +"use strict"; + +const localBasePath = 'http://localhost:6420/'; +const developBasePath = 'https://staging.node.skycoin.net'; +const prodBasePath = 'https://node.skycoin.net'; + +let nodeClient = require('libsky-node'); +var expect = require('chai').expect; + +describe('#nodeClient', function() { + + this.timeout(10000); + + context(`Getting version from ${developBasePath}.`, function() { + it('Should return version object', function() { + let api = new nodeClient.DefaultApi(developBasePath); + return api.version().then(result => { + expect(result).to.be.a('object'); + expect(result).to.have.property('body'); + expect(result.body).to.be.a('object'); + expect(result.body).to.have.property('version'); + expect(result.body).to.have.property('commit'); + expect(result.body).to.have.property('branch'); + }); + }); + }); + + context(`Getting version from ${prodBasePath}.`, function() { + it('Should return version object', function() { + let api = new nodeClient.DefaultApi(prodBasePath); + return api.version().then(result => { + expect(result).to.be.a('object'); + expect(result).to.have.property('body'); + expect(result.body).to.be.a('object'); + expect(result.body).to.have.property('version'); + expect(result.body).to.have.property('commit'); + expect(result.body).to.have.property('branch'); + }); + }); + }); + +});