From b9f3482ab0f02a91693c5e149e060af3042f6d32 Mon Sep 17 00:00:00 2001 From: Amitoj Singh Date: Tue, 22 Nov 2022 03:45:32 +0300 Subject: [PATCH 1/2] wipe/load working --- .../ts-keepkey-sdk/__tests__/load-seed.js | 2 +- .../ts-keepkey-sdk/__tests__/wipe-device.js | 25 + .../ts-keepkey-sdk/src/generated/.gitignore | 4 + .../ts-keepkey-sdk/src/generated/.npmignore | 1 + .../src/generated/.openapi-generator/FILES | 1 + packages/ts-keepkey-sdk/src/generated/api.ts | 5506 +++++++++++++++++ .../src/generated/apis/ClientEndpointsApi.ts | 190 - .../generated/apis/DeveloperEndpointsApi.ts | 454 -- .../generated/apis/DeviceInfoEndpointsApi.ts | 394 -- .../apis/KeepKeySignTxEndpointsApi.ts | 405 -- .../apis/KeepKeyWalletEndpointsApi.ts | 408 -- .../apis/RawKeepKeyDeviceI0EndpointsApi.ts | 95 - .../generated/apis/RecoveryEndpointsApi.ts | 267 - .../src/generated/apis/index.ts | 9 - packages/ts-keepkey-sdk/src/generated/base.ts | 71 + .../ts-keepkey-sdk/src/generated/common.ts | 148 + .../src/generated/configuration.ts | 101 + .../ts-keepkey-sdk/src/generated/git_push.sh | 57 + .../ts-keepkey-sdk/src/generated/index.ts | 2 +- .../src/generated/models/BTCGetAddress.ts | 98 - .../generated/models/BTCInputScriptType.ts | 43 - .../src/generated/models/BTCSignedTx.ts | 75 - .../src/generated/models/BinanceGetAddress.ts | 74 - .../src/generated/models/CosmosGetAddress.ts | 74 - .../src/generated/models/CosmosSignTx.ts | 117 - .../src/generated/models/CosmosSignedTx.ts | 93 - .../src/generated/models/CosmosStdTx.ts | 111 - .../src/generated/models/CryptoPubKey.ts | 75 - .../src/generated/models/ETHGetAddress.ts | 74 - .../src/generated/models/ETHSignedTx.ts | 93 - .../src/generated/models/EosGetPublicKey.ts | 95 - .../src/generated/models/GenericResponse.ts | 66 - .../src/generated/models/GetPublicKey.ts | 114 - .../models/GetPublicKeys200ResponseInner.ts | 66 - .../src/generated/models/LoadDevice.ts | 98 - .../src/generated/models/ModelError.ts | 75 - .../src/generated/models/Msg.ts | 75 - .../src/generated/models/OsmosisGetAddress.ts | 74 - .../src/generated/models/PairBody.ts | 75 - .../src/generated/models/PairResponse.ts | 75 - .../src/generated/models/PublicKey.ts | 66 - .../src/generated/models/Read.ts | 66 - .../generated/models/ReadDevice200Response.ts | 97 - .../src/generated/models/RecoverDevice.ts | 129 - .../src/generated/models/ResetDevice.ts | 118 - .../src/generated/models/RippleGetAddress.ts | 74 - .../src/generated/models/RipplePayment.ts | 83 - .../src/generated/models/RippleSignTx.ts | 123 - .../src/generated/models/RippleStdTx.ts | 112 - .../src/generated/models/RippleTx.ts | 82 - .../src/generated/models/SdkMsg.ts | 75 - .../models/SignTransaction200Response.ts | 106 - .../src/generated/models/SignedTx.ts | 84 - .../src/generated/models/Status.ts | 84 - .../src/generated/models/StdFee.ts | 75 - .../src/generated/models/StdSignature.ts | 82 - .../generated/models/ThorchainGetAddress.ts | 82 - .../src/generated/models/ThorchainMsg.ts | 75 - .../src/generated/models/ThorchainSignTx.ts | 125 - .../src/generated/models/ThorchainStdFee.ts | 75 - .../generated/models/ThorchainStdSignature.ts | 82 - .../src/generated/models/ThorchainStdTx.ts | 111 - .../src/generated/models/ThorchainTx.ts | 111 - .../src/generated/models/UserType.ts | 91 - .../generated/models/UserTypeAccountsInner.ts | 75 - .../src/generated/models/Write.ts | 66 - .../src/generated/models/WriteBody.ts | 66 - .../models/WriteDevice200Response.ts | 97 - .../src/generated/models/index.ts | 51 - .../ts-keepkey-sdk/src/generated/runtime.ts | 407 -- packages/ts-keepkey-sdk/yarn.lock | 1494 ++--- 71 files changed, 6663 insertions(+), 7681 deletions(-) create mode 100644 packages/ts-keepkey-sdk/src/generated/.gitignore create mode 100644 packages/ts-keepkey-sdk/src/generated/.npmignore create mode 100644 packages/ts-keepkey-sdk/src/generated/api.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/apis/ClientEndpointsApi.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/apis/DeveloperEndpointsApi.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/apis/DeviceInfoEndpointsApi.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/apis/KeepKeySignTxEndpointsApi.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/apis/KeepKeyWalletEndpointsApi.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/apis/RawKeepKeyDeviceI0EndpointsApi.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/apis/RecoveryEndpointsApi.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/apis/index.ts create mode 100644 packages/ts-keepkey-sdk/src/generated/base.ts create mode 100644 packages/ts-keepkey-sdk/src/generated/common.ts create mode 100644 packages/ts-keepkey-sdk/src/generated/configuration.ts create mode 100644 packages/ts-keepkey-sdk/src/generated/git_push.sh delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/BTCGetAddress.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/BTCInputScriptType.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/BTCSignedTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/BinanceGetAddress.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/CosmosGetAddress.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/CosmosSignTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/CosmosSignedTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/CosmosStdTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/CryptoPubKey.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ETHGetAddress.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ETHSignedTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/EosGetPublicKey.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/GenericResponse.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/GetPublicKey.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/GetPublicKeys200ResponseInner.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/LoadDevice.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ModelError.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/Msg.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/OsmosisGetAddress.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/PairBody.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/PairResponse.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/PublicKey.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/Read.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ReadDevice200Response.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/RecoverDevice.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ResetDevice.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/RippleGetAddress.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/RipplePayment.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/RippleSignTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/RippleStdTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/RippleTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/SdkMsg.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/SignTransaction200Response.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/SignedTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/Status.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/StdFee.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/StdSignature.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ThorchainGetAddress.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ThorchainMsg.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ThorchainSignTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ThorchainStdFee.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ThorchainStdSignature.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ThorchainStdTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/ThorchainTx.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/UserType.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/UserTypeAccountsInner.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/Write.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/WriteBody.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/WriteDevice200Response.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/models/index.ts delete mode 100644 packages/ts-keepkey-sdk/src/generated/runtime.ts diff --git a/packages/ts-keepkey-sdk/__tests__/load-seed.js b/packages/ts-keepkey-sdk/__tests__/load-seed.js index 92e5b45..0a590df 100644 --- a/packages/ts-keepkey-sdk/__tests__/load-seed.js +++ b/packages/ts-keepkey-sdk/__tests__/load-seed.js @@ -21,7 +21,7 @@ let run_test = async function () { if (!seed) throw Error("Must set seed in ENV file!") let loadPayload = { mnemonic: seed, - label: "testSeed", + label: "Test Seed", passphrase: false, pin: "1", skipChecksum: true diff --git a/packages/ts-keepkey-sdk/__tests__/wipe-device.js b/packages/ts-keepkey-sdk/__tests__/wipe-device.js index e69de29..17fb73f 100644 --- a/packages/ts-keepkey-sdk/__tests__/wipe-device.js +++ b/packages/ts-keepkey-sdk/__tests__/wipe-device.js @@ -0,0 +1,25 @@ +const { getKeepKeySDK } = require("../lib") + +let spec = 'http://localhost:1646/spec/swagger.json' + +let run_test = async function () { + try { + let config = { + serviceKey: process.env['SERVICE_KEY'] || 'abc-123', + serviceName: process.env['SERVICE_NAME'] || 'KeepKey SDK Demo App', + serviceImageUrl: process.env['SERVICE_IMAGE_URL'] || 'https://github.com/BitHighlander/keepkey-desktop/raw/master/electron/icon.png', + spec + } + //init + const sdk = await getKeepKeySDK(config) + //push tx to api + // console.log(kk.instance.SignTransaction()) + let responseSign = await sdk.developer.wipe() + console.log("responseSign: ", responseSign.data) + + } catch (e) { + console.error(e) + } +} + +run_test() \ No newline at end of file diff --git a/packages/ts-keepkey-sdk/src/generated/.gitignore b/packages/ts-keepkey-sdk/src/generated/.gitignore new file mode 100644 index 0000000..149b576 --- /dev/null +++ b/packages/ts-keepkey-sdk/src/generated/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/packages/ts-keepkey-sdk/src/generated/.npmignore b/packages/ts-keepkey-sdk/src/generated/.npmignore new file mode 100644 index 0000000..999d88d --- /dev/null +++ b/packages/ts-keepkey-sdk/src/generated/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/packages/ts-keepkey-sdk/src/generated/.openapi-generator/FILES b/packages/ts-keepkey-sdk/src/generated/.openapi-generator/FILES index a80cd4f..16b445e 100644 --- a/packages/ts-keepkey-sdk/src/generated/.openapi-generator/FILES +++ b/packages/ts-keepkey-sdk/src/generated/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts base.ts common.ts diff --git a/packages/ts-keepkey-sdk/src/generated/api.ts b/packages/ts-keepkey-sdk/src/generated/api.ts new file mode 100644 index 0000000..9a4ba48 --- /dev/null +++ b/packages/ts-keepkey-sdk/src/generated/api.ts @@ -0,0 +1,5506 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * keepkey-desktop + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.1.14 + * Contact: bithighlander@gmail.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { Configuration } from './configuration'; +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; + +/** + * + * @export + * @interface BTCGetAddress + */ +export interface BTCGetAddress { + /** + * + * @type {boolean} + * @memberof BTCGetAddress + */ + 'showDisplay'?: boolean; + /** + * + * @type {BTCInputScriptType} + * @memberof BTCGetAddress + */ + 'scriptType'?: BTCInputScriptType; + /** + * + * @type {Array} + * @memberof BTCGetAddress + */ + 'addressNList': Array; + /** + * + * @type {string} + * @memberof BTCGetAddress + */ + 'coin': string; +} +/** + * + * @export + * @enum {string} + */ + +export const BTCInputScriptType = { + Cashaddr: 'cashaddr', + Bech32: 'bech32', + P2pkh: 'p2pkh', + P2sh: 'p2sh', + External: 'external', + P2wpkh: 'p2wpkh', + P2shP2wpkh: 'p2sh-p2wpkh' +} as const; + +export type BTCInputScriptType = typeof BTCInputScriptType[keyof typeof BTCInputScriptType]; + + +/** + * + * @export + * @interface BTCSignedTx + */ +export interface BTCSignedTx { + /** + * + * @type {Array} + * @memberof BTCSignedTx + */ + 'signatures': Array; + /** + * hex string representation of the raw, signed transaction + * @type {string} + * @memberof BTCSignedTx + */ + 'serializedTx': string; +} +/** + * + * @export + * @interface BinanceGetAddress + */ +export interface BinanceGetAddress { + /** + * + * @type {Array} + * @memberof BinanceGetAddress + */ + 'addressNList': Array; + /** + * + * @type {boolean} + * @memberof BinanceGetAddress + */ + 'showDisplay'?: boolean; +} +/** + * + * @export + * @interface CosmosGetAddress + */ +export interface CosmosGetAddress { + /** + * + * @type {Array} + * @memberof CosmosGetAddress + */ + 'addressNList': Array; + /** + * + * @type {boolean} + * @memberof CosmosGetAddress + */ + 'showDisplay'?: boolean; +} +/** + * + * @export + * @interface CosmosSignTx + */ +export interface CosmosSignTx { + /** + * + * @type {Array} + * @memberof CosmosSignTx + */ + 'addressNList': Array; + /** + * + * @type {CosmosStdTx} + * @memberof CosmosSignTx + */ + 'tx': CosmosStdTx; + /** + * + * @type {string} + * @memberof CosmosSignTx + */ + 'chain_id': string; + /** + * + * @type {string} + * @memberof CosmosSignTx + */ + 'account_number': string; + /** + * + * @type {string} + * @memberof CosmosSignTx + */ + 'sequence': string; + /** + * + * @type {number} + * @memberof CosmosSignTx + */ + 'fee'?: number; +} +/** + * + * @export + * @interface CosmosSignedTx + */ +export interface CosmosSignedTx { + /** + * + * @type {string} + * @memberof CosmosSignedTx + */ + 'serialized': string; + /** + * + * @type {string} + * @memberof CosmosSignedTx + */ + 'body': string; + /** + * + * @type {string} + * @memberof CosmosSignedTx + */ + 'authInfoBytes': string; + /** + * + * @type {Array} + * @memberof CosmosSignedTx + */ + 'signatures': Array; +} +/** + * + * @export + * @interface CosmosStdTx + */ +export interface CosmosStdTx { + /** + * + * @type {Array} + * @memberof CosmosStdTx + */ + 'msg': Array; + /** + * + * @type {StdFee} + * @memberof CosmosStdTx + */ + 'fee': StdFee; + /** + * + * @type {Array} + * @memberof CosmosStdTx + */ + 'signatures': Array; + /** + * + * @type {string} + * @memberof CosmosStdTx + */ + 'memo'?: string; +} +/** + * + * @export + * @interface CryptoPubKey + */ +export interface CryptoPubKey { + /** + * + * @type {string} + * @memberof CryptoPubKey + */ + 'type': string; + /** + * + * @type {string} + * @memberof CryptoPubKey + */ + 'value': string; +} +/** + * + * @export + * @interface ETHGetAddress + */ +export interface ETHGetAddress { + /** + * + * @type {Array} + * @memberof ETHGetAddress + */ + 'addressNList': Array; + /** + * + * @type {boolean} + * @memberof ETHGetAddress + */ + 'showDisplay'?: boolean; +} +/** + * + * @export + * @interface ETHSignedTx + */ +export interface ETHSignedTx { + /** + * uint32 + * @type {number} + * @memberof ETHSignedTx + */ + 'v': number; + /** + * big-endian hex, prefixed with \'0x\' + * @type {string} + * @memberof ETHSignedTx + */ + 'r': string; + /** + * big-endian hex, prefixed with \'0x\' + * @type {string} + * @memberof ETHSignedTx + */ + 's': string; + /** + * big-endian hex, prefixed with \'0x\' + * @type {string} + * @memberof ETHSignedTx + */ + 'serialized': string; +} +/** + * + * @export + * @interface EosGetPublicKey + */ +export interface EosGetPublicKey { + /** + * + * @type {Array} + * @memberof EosGetPublicKey + */ + 'addressNList': Array; + /** + * + * @type {boolean} + * @memberof EosGetPublicKey + */ + 'showDisplay'?: boolean; + /** + * + * @type {number} + * @memberof EosGetPublicKey + */ + 'kind': EosGetPublicKeyKindEnum; +} + +export const EosGetPublicKeyKindEnum = { + NUMBER_0: 0, + NUMBER_1: 1, + NUMBER_2: 2 +} as const; + +export type EosGetPublicKeyKindEnum = typeof EosGetPublicKeyKindEnum[keyof typeof EosGetPublicKeyKindEnum]; + +/** + * + * @export + * @interface GenericResponse + */ +export interface GenericResponse { + /** + * + * @type {boolean} + * @memberof GenericResponse + */ + 'success': boolean; +} +/** + * + * @export + * @interface GetPublicKey + */ +export interface GetPublicKey { + /** + * + * @type {Array} + * @memberof GetPublicKey + */ + 'addressNList': Array; + /** + * + * @type {boolean} + * @memberof GetPublicKey + */ + 'showDisplay'?: boolean; + /** + * + * @type {BTCInputScriptType} + * @memberof GetPublicKey + */ + 'scriptType'?: BTCInputScriptType; + /** + * + * @type {string} + * @memberof GetPublicKey + */ + 'curve'?: string; + /** + * + * @type {string} + * @memberof GetPublicKey + */ + 'coin': string; + /** + * + * @type {string} + * @memberof GetPublicKey + */ + 'symbol'?: string; +} +/** + * + * @export + * @interface GetPublicKeys200ResponseInner + */ +export interface GetPublicKeys200ResponseInner { + /** + * + * @type {string} + * @memberof GetPublicKeys200ResponseInner + */ + 'xpub': string; +} +/** + * + * @export + * @interface LoadDevice + */ +export interface LoadDevice { + /** + * 12, 18, or 24 word BIP39 mnemonic + * @type {string} + * @memberof LoadDevice + */ + 'mnemonic': string; + /** + * User-identifiable device label + * @type {string} + * @memberof LoadDevice + */ + 'label'?: string; + /** + * Whether passphrase protection should be enabled + * @type {boolean} + * @memberof LoadDevice + */ + 'passphrase'?: boolean; + /** + * pin, in plaintext + * @type {string} + * @memberof LoadDevice + */ + 'pin'?: string; + /** + * Whether to enforce checksum + * @type {boolean} + * @memberof LoadDevice + */ + 'skipChecksum'?: boolean; +} +/** + * + * @export + * @interface ModelError + */ +export interface ModelError { + /** + * + * @type {boolean} + * @memberof ModelError + */ + 'success': boolean; + /** + * + * @type {string} + * @memberof ModelError + */ + 'reason': string; +} +/** + * + * @export + * @interface Msg + */ +export interface Msg { + /** + * + * @type {string} + * @memberof Msg + */ + 'type': string; + /** + * + * @type {any} + * @memberof Msg + */ + 'value': any; +} +/** + * + * @export + * @interface OsmosisGetAddress + */ +export interface OsmosisGetAddress { + /** + * + * @type {Array} + * @memberof OsmosisGetAddress + */ + 'addressNList': Array; + /** + * + * @type {boolean} + * @memberof OsmosisGetAddress + */ + 'showDisplay'?: boolean; +} +/** + * + * @export + * @interface PairBody + */ +export interface PairBody { + /** + * + * @type {string} + * @memberof PairBody + */ + 'serviceName': string; + /** + * + * @type {string} + * @memberof PairBody + */ + 'serviceImageUrl': string; +} +/** + * + * @export + * @interface PairResponse + */ +export interface PairResponse { + /** + * + * @type {boolean} + * @memberof PairResponse + */ + 'success': boolean; + /** + * + * @type {string} + * @memberof PairResponse + */ + 'reason': string; +} +/** + * + * @export + * @interface PublicKey + */ +export interface PublicKey { + /** + * + * @type {string} + * @memberof PublicKey + */ + 'xpub': string; +} +/** + * + * @export + * @interface ReadDevice200Response + */ +export interface ReadDevice200Response { + /** + * + * @type {string} + * @memberof ReadDevice200Response + */ + 'data': string; +} +/** + * + * @export + * @interface RecoverDevice + */ +export interface RecoverDevice { + /** + * Bits. Either 128 (12 words), 192 (18 words), or 256 (24 words) + * @type {number} + * @memberof RecoverDevice + */ + 'entropy': RecoverDeviceEntropyEnum; + /** + * + * @type {string} + * @memberof RecoverDevice + */ + 'label': string; + /** + * + * @type {boolean} + * @memberof RecoverDevice + */ + 'passphrase': boolean; + /** + * + * @type {boolean} + * @memberof RecoverDevice + */ + 'pin': boolean; + /** + * + * @type {string} + * @memberof RecoverDevice + */ + 'language'?: string; + /** + * + * @type {number} + * @memberof RecoverDevice + */ + 'autoLockDelayMs'?: number; + /** + * + * @type {number} + * @memberof RecoverDevice + */ + 'u2fCounter'?: number; +} + +export const RecoverDeviceEntropyEnum = { + NUMBER_128: 128, + NUMBER_192: 192, + NUMBER_256: 256 +} as const; + +export type RecoverDeviceEntropyEnum = typeof RecoverDeviceEntropyEnum[keyof typeof RecoverDeviceEntropyEnum]; + +/** + * + * @export + * @interface ResetDevice + */ +export interface ResetDevice { + /** + * Bits. Either 128 (12 words), 192 (18 words), or 256 (24 words) + * @type {number} + * @memberof ResetDevice + */ + 'entropy'?: ResetDeviceEntropyEnum; + /** + * + * @type {string} + * @memberof ResetDevice + */ + 'label': string; + /** + * + * @type {boolean} + * @memberof ResetDevice + */ + 'passphrase'?: boolean; + /** + * + * @type {boolean} + * @memberof ResetDevice + */ + 'pin'?: boolean; + /** + * + * @type {number} + * @memberof ResetDevice + */ + 'autoLockDelayMs'?: number; + /** + * + * @type {number} + * @memberof ResetDevice + */ + 'u2fCounter'?: number; +} + +export const ResetDeviceEntropyEnum = { + NUMBER_128: 128, + NUMBER_192: 192, + NUMBER_256: 256 +} as const; + +export type ResetDeviceEntropyEnum = typeof ResetDeviceEntropyEnum[keyof typeof ResetDeviceEntropyEnum]; + +/** + * + * @export + * @interface RippleGetAddress + */ +export interface RippleGetAddress { + /** + * + * @type {Array} + * @memberof RippleGetAddress + */ + 'addressNList': Array; + /** + * + * @type {boolean} + * @memberof RippleGetAddress + */ + 'showDisplay'?: boolean; +} +/** + * + * @export + * @interface RipplePayment + */ +export interface RipplePayment { + /** + * + * @type {string} + * @memberof RipplePayment + */ + 'amount': string; + /** + * + * @type {string} + * @memberof RipplePayment + */ + 'destination': string; + /** + * + * @type {string} + * @memberof RipplePayment + */ + 'destinationTag'?: string; +} +/** + * + * @export + * @interface RippleSignTx + */ +export interface RippleSignTx { + /** + * + * @type {Array} + * @memberof RippleSignTx + */ + 'addressNList': Array; + /** + * + * @type {RippleTx} + * @memberof RippleSignTx + */ + 'tx': RippleTx; + /** + * + * @type {string} + * @memberof RippleSignTx + */ + 'flags'?: string; + /** + * + * @type {string} + * @memberof RippleSignTx + */ + 'sequence': string; + /** + * + * @type {string} + * @memberof RippleSignTx + */ + 'lastLedgerSequence': string; + /** + * + * @type {RipplePayment} + * @memberof RippleSignTx + */ + 'payment': RipplePayment; +} +/** + * + * @export + * @interface RippleStdTx + */ +export interface RippleStdTx { + /** + * + * @type {Array} + * @memberof RippleStdTx + */ + 'msg': Array; + /** + * + * @type {StdFee} + * @memberof RippleStdTx + */ + 'fee': StdFee; + /** + * + * @type {Array} + * @memberof RippleStdTx + */ + 'signatures': Array | null; + /** + * + * @type {string} + * @memberof RippleStdTx + */ + 'memo': string; +} +/** + * + * @export + * @interface RippleTx + */ +export interface RippleTx { + /** + * + * @type {string} + * @memberof RippleTx + */ + 'type': string; + /** + * + * @type {RippleStdTx} + * @memberof RippleTx + */ + 'value': RippleStdTx; +} +/** + * + * @export + * @interface SdkMsg + */ +export interface SdkMsg { + /** + * + * @type {string} + * @memberof SdkMsg + */ + 'type': string; + /** + * + * @type {any} + * @memberof SdkMsg + */ + 'value': any; +} +/** + * + * @export + * @interface SignTransaction200Response + */ +export interface SignTransaction200Response { + /** + * + * @type {boolean} + * @memberof SignTransaction200Response + */ + 'success': boolean; + /** + * + * @type {string} + * @memberof SignTransaction200Response + */ + 'status': string; + /** + * + * @type {any} + * @memberof SignTransaction200Response + */ + 'signedTx': any; + /** + * + * @type {string} + * @memberof SignTransaction200Response + */ + 'reason': string; +} +/** + * + * @export + * @interface SignedTx + */ +export interface SignedTx { + /** + * + * @type {boolean} + * @memberof SignedTx + */ + 'success': boolean; + /** + * + * @type {string} + * @memberof SignedTx + */ + 'status': string; + /** + * + * @type {any} + * @memberof SignedTx + */ + 'signedTx': any; +} +/** + * + * @export + * @interface StdFee + */ +export interface StdFee { + /** + * + * @type {Array} + * @memberof StdFee + */ + 'amount': Array; + /** + * + * @type {string} + * @memberof StdFee + */ + 'gas': string; +} +/** + * + * @export + * @interface StdSignature + */ +export interface StdSignature { + /** + * + * @type {CryptoPubKey} + * @memberof StdSignature + */ + 'pub_key': CryptoPubKey; + /** + * + * @type {string} + * @memberof StdSignature + */ + 'signature': string; +} +/** + * + * @export + * @interface ThorchainGetAddress + */ +export interface ThorchainGetAddress { + /** + * + * @type {Array} + * @memberof ThorchainGetAddress + */ + 'addressNList': Array; + /** + * + * @type {boolean} + * @memberof ThorchainGetAddress + */ + 'showDisplay'?: boolean; + /** + * + * @type {boolean} + * @memberof ThorchainGetAddress + */ + 'testnet'?: boolean; +} +/** + * + * @export + * @interface ThorchainMsg + */ +export interface ThorchainMsg { + /** + * + * @type {string} + * @memberof ThorchainMsg + */ + 'type': string; + /** + * + * @type {any} + * @memberof ThorchainMsg + */ + 'value': any; +} +/** + * + * @export + * @interface ThorchainSignTx + */ +export interface ThorchainSignTx { + /** + * + * @type {Array} + * @memberof ThorchainSignTx + */ + 'addressNList': Array; + /** + * + * @type {ThorchainStdTx} + * @memberof ThorchainSignTx + */ + 'tx': ThorchainStdTx; + /** + * + * @type {string} + * @memberof ThorchainSignTx + */ + 'sequence': string; + /** + * + * @type {string} + * @memberof ThorchainSignTx + */ + 'account_number': string; + /** + * + * @type {string} + * @memberof ThorchainSignTx + */ + 'chain_id': string; + /** + * + * @type {number} + * @memberof ThorchainSignTx + */ + 'fee'?: number; + /** + * + * @type {boolean} + * @memberof ThorchainSignTx + */ + 'testnet'?: boolean; +} +/** + * + * @export + * @interface ThorchainStdFee + */ +export interface ThorchainStdFee { + /** + * + * @type {Array} + * @memberof ThorchainStdFee + */ + 'amount': Array; + /** + * + * @type {string} + * @memberof ThorchainStdFee + */ + 'gas': string; +} +/** + * + * @export + * @interface ThorchainStdSignature + */ +export interface ThorchainStdSignature { + /** + * + * @type {CryptoPubKey} + * @memberof ThorchainStdSignature + */ + 'pub_key': CryptoPubKey; + /** + * + * @type {string} + * @memberof ThorchainStdSignature + */ + 'signature': string; +} +/** + * + * @export + * @interface ThorchainStdTx + */ +export interface ThorchainStdTx { + /** + * + * @type {StdFee} + * @memberof ThorchainStdTx + */ + 'fee': StdFee; + /** + * + * @type {string} + * @memberof ThorchainStdTx + */ + 'memo'?: string; + /** + * + * @type {Array} + * @memberof ThorchainStdTx + */ + 'msg': Array; + /** + * + * @type {Array} + * @memberof ThorchainStdTx + */ + 'signatures': Array; +} +/** + * + * @export + * @interface ThorchainTx + */ +export interface ThorchainTx { + /** + * + * @type {Array} + * @memberof ThorchainTx + */ + 'msg': Array; + /** + * + * @type {ThorchainStdFee} + * @memberof ThorchainTx + */ + 'fee': ThorchainStdFee; + /** + * + * @type {Array} + * @memberof ThorchainTx + */ + 'signatures': Array; + /** + * + * @type {string} + * @memberof ThorchainTx + */ + 'memo'?: string; +} +/** + * + * @export + * @interface UserType + */ +export interface UserType { + /** + * + * @type {Array} + * @memberof UserType + */ + 'balances': Array; + /** + * + * @type {Array} + * @memberof UserType + */ + 'accounts': Array; + /** + * + * @type {boolean} + * @memberof UserType + */ + 'online': boolean; +} +/** + * + * @export + * @interface UserTypeAccountsInner + */ +export interface UserTypeAccountsInner { + /** + * + * @type {string} + * @memberof UserTypeAccountsInner + */ + 'caip': string; + /** + * + * @type {any} + * @memberof UserTypeAccountsInner + */ + 'pubkey': any; +} +/** + * + * @export + * @interface WriteBody + */ +export interface WriteBody { + /** + * + * @type {any} + * @memberof WriteBody + */ + 'data': any; +} +/** + * + * @export + * @interface WriteDevice200Response + */ +export interface WriteDevice200Response { + /** + * + * @type {string} + * @memberof WriteDevice200Response + */ + 'output': string; +} + +/** + * ClientEndpointsApi - axios parameter creator + * @export + */ +export const ClientEndpointsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + device: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/device`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} authorization + * @param {PairBody} pairBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pair: async (authorization: string, pairBody: PairBody, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'authorization' is not null or undefined + assertParamExists('pair', 'authorization', authorization) + // verify required parameter 'pairBody' is not null or undefined + assertParamExists('pair', 'pairBody', pairBody) + const localVarPath = `/pair`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (authorization != null) { + localVarHeaderParameter['authorization'] = String(authorization); + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(pairBody, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + status: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/status`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + user: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/user`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAuth: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/auth/verify`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * ClientEndpointsApi - functional programming interface + * @export + */ +export const ClientEndpointsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ClientEndpointsApiAxiosParamCreator(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async device(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.device(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {string} authorization + * @param {PairBody} pairBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async pair(authorization: string, pairBody: PairBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.pair(authorization, pairBody, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async status(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.status(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async user(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.user(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async verifyAuth(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.verifyAuth(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ClientEndpointsApi - factory interface + * @export + */ +export const ClientEndpointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ClientEndpointsApiFp(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + device(options?: any): AxiosPromise { + return localVarFp.device(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} authorization + * @param {PairBody} pairBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + pair(authorization: string, pairBody: PairBody, options?: any): AxiosPromise { + return localVarFp.pair(authorization, pairBody, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + status(options?: any): AxiosPromise { + return localVarFp.status(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + user(options?: any): AxiosPromise { + return localVarFp.user(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + verifyAuth(options?: any): AxiosPromise { + return localVarFp.verifyAuth(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for pair operation in ClientEndpointsApi. + * @export + * @interface ClientEndpointsApiPairRequest + */ +export interface ClientEndpointsApiPairRequest { + /** + * + * @type {string} + * @memberof ClientEndpointsApiPair + */ + readonly authorization: string + + /** + * + * @type {PairBody} + * @memberof ClientEndpointsApiPair + */ + readonly pairBody: PairBody +} + +/** + * ClientEndpointsApi - object-oriented interface + * @export + * @class ClientEndpointsApi + * @extends {BaseAPI} + */ +export class ClientEndpointsApi extends BaseAPI { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientEndpointsApi + */ + public device(options?: AxiosRequestConfig) { + return ClientEndpointsApiFp(this.configuration).device(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {ClientEndpointsApiPairRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientEndpointsApi + */ + public pair(requestParameters: ClientEndpointsApiPairRequest, options?: AxiosRequestConfig) { + return ClientEndpointsApiFp(this.configuration).pair(requestParameters.authorization, requestParameters.pairBody, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientEndpointsApi + */ + public status(options?: AxiosRequestConfig) { + return ClientEndpointsApiFp(this.configuration).status(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientEndpointsApi + */ + public user(options?: AxiosRequestConfig) { + return ClientEndpointsApiFp(this.configuration).user(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ClientEndpointsApi + */ + public verifyAuth(options?: AxiosRequestConfig) { + return ClientEndpointsApiFp(this.configuration).verifyAuth(options).then((request) => request(this.axios, this.basePath)); + } +} + + +/** + * DeveloperEndpointsApi - axios parameter creator + * @export + */ +export const DeveloperEndpointsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + applyPolicy: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('applyPolicy', 'body', body) + const localVarPath = `/applyPolicy`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + applySettings: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('applySettings', 'body', body) + const localVarPath = `/applySettings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clearSession: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('clearSession', 'body', body) + const localVarPath = `/clearSession`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + disconnect: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('disconnect', 'body', body) + const localVarPath = `/disconnect`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + firmwareErase: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('firmwareErase', 'body', body) + const localVarPath = `/firmwareErase`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + firmwareUpload: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('firmwareUpload', 'body', body) + const localVarPath = `/firmwareUpload`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {LoadDevice} loadDevice + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loadDevice: async (loadDevice: LoadDevice, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'loadDevice' is not null or undefined + assertParamExists('loadDevice', 'loadDevice', loadDevice) + const localVarPath = `/loadDevice`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(loadDevice, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + removePin: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/removePin`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {ResetDevice} resetDevice + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + reset: async (resetDevice: ResetDevice, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'resetDevice' is not null or undefined + assertParamExists('reset', 'resetDevice', resetDevice) + const localVarPath = `/reset`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(resetDevice, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + softReset: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('softReset', 'body', body) + const localVarPath = `/softReset`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wipe: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/wipe`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * DeveloperEndpointsApi - functional programming interface + * @export + */ +export const DeveloperEndpointsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DeveloperEndpointsApiAxiosParamCreator(configuration) + return { + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async applyPolicy(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.applyPolicy(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async applySettings(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.applySettings(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async clearSession(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.clearSession(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async disconnect(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.disconnect(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async firmwareErase(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.firmwareErase(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async firmwareUpload(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.firmwareUpload(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {LoadDevice} loadDevice + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async loadDevice(loadDevice: LoadDevice, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.loadDevice(loadDevice, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async removePin(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.removePin(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {ResetDevice} resetDevice + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async reset(resetDevice: ResetDevice, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.reset(resetDevice, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async softReset(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.softReset(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async wipe(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.wipe(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * DeveloperEndpointsApi - factory interface + * @export + */ +export const DeveloperEndpointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DeveloperEndpointsApiFp(configuration) + return { + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + applyPolicy(body: any, options?: any): AxiosPromise { + return localVarFp.applyPolicy(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + applySettings(body: any, options?: any): AxiosPromise { + return localVarFp.applySettings(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clearSession(body: any, options?: any): AxiosPromise { + return localVarFp.clearSession(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + disconnect(body: any, options?: any): AxiosPromise { + return localVarFp.disconnect(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + firmwareErase(body: any, options?: any): AxiosPromise { + return localVarFp.firmwareErase(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + firmwareUpload(body: any, options?: any): AxiosPromise { + return localVarFp.firmwareUpload(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {LoadDevice} loadDevice + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loadDevice(loadDevice: LoadDevice, options?: any): AxiosPromise { + return localVarFp.loadDevice(loadDevice, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + removePin(options?: any): AxiosPromise { + return localVarFp.removePin(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {ResetDevice} resetDevice + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + reset(resetDevice: ResetDevice, options?: any): AxiosPromise { + return localVarFp.reset(resetDevice, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + softReset(body: any, options?: any): AxiosPromise { + return localVarFp.softReset(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + wipe(options?: any): AxiosPromise { + return localVarFp.wipe(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for applyPolicy operation in DeveloperEndpointsApi. + * @export + * @interface DeveloperEndpointsApiApplyPolicyRequest + */ +export interface DeveloperEndpointsApiApplyPolicyRequest { + /** + * + * @type {any} + * @memberof DeveloperEndpointsApiApplyPolicy + */ + readonly body: any +} + +/** + * Request parameters for applySettings operation in DeveloperEndpointsApi. + * @export + * @interface DeveloperEndpointsApiApplySettingsRequest + */ +export interface DeveloperEndpointsApiApplySettingsRequest { + /** + * + * @type {any} + * @memberof DeveloperEndpointsApiApplySettings + */ + readonly body: any +} + +/** + * Request parameters for clearSession operation in DeveloperEndpointsApi. + * @export + * @interface DeveloperEndpointsApiClearSessionRequest + */ +export interface DeveloperEndpointsApiClearSessionRequest { + /** + * + * @type {any} + * @memberof DeveloperEndpointsApiClearSession + */ + readonly body: any +} + +/** + * Request parameters for disconnect operation in DeveloperEndpointsApi. + * @export + * @interface DeveloperEndpointsApiDisconnectRequest + */ +export interface DeveloperEndpointsApiDisconnectRequest { + /** + * + * @type {any} + * @memberof DeveloperEndpointsApiDisconnect + */ + readonly body: any +} + +/** + * Request parameters for firmwareErase operation in DeveloperEndpointsApi. + * @export + * @interface DeveloperEndpointsApiFirmwareEraseRequest + */ +export interface DeveloperEndpointsApiFirmwareEraseRequest { + /** + * + * @type {any} + * @memberof DeveloperEndpointsApiFirmwareErase + */ + readonly body: any +} + +/** + * Request parameters for firmwareUpload operation in DeveloperEndpointsApi. + * @export + * @interface DeveloperEndpointsApiFirmwareUploadRequest + */ +export interface DeveloperEndpointsApiFirmwareUploadRequest { + /** + * + * @type {any} + * @memberof DeveloperEndpointsApiFirmwareUpload + */ + readonly body: any +} + +/** + * Request parameters for loadDevice operation in DeveloperEndpointsApi. + * @export + * @interface DeveloperEndpointsApiLoadDeviceRequest + */ +export interface DeveloperEndpointsApiLoadDeviceRequest { + /** + * + * @type {LoadDevice} + * @memberof DeveloperEndpointsApiLoadDevice + */ + readonly loadDevice: LoadDevice +} + +/** + * Request parameters for reset operation in DeveloperEndpointsApi. + * @export + * @interface DeveloperEndpointsApiResetRequest + */ +export interface DeveloperEndpointsApiResetRequest { + /** + * + * @type {ResetDevice} + * @memberof DeveloperEndpointsApiReset + */ + readonly resetDevice: ResetDevice +} + +/** + * Request parameters for softReset operation in DeveloperEndpointsApi. + * @export + * @interface DeveloperEndpointsApiSoftResetRequest + */ +export interface DeveloperEndpointsApiSoftResetRequest { + /** + * + * @type {any} + * @memberof DeveloperEndpointsApiSoftReset + */ + readonly body: any +} + +/** + * DeveloperEndpointsApi - object-oriented interface + * @export + * @class DeveloperEndpointsApi + * @extends {BaseAPI} + */ +export class DeveloperEndpointsApi extends BaseAPI { + /** + * + * @param {DeveloperEndpointsApiApplyPolicyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public applyPolicy(requestParameters: DeveloperEndpointsApiApplyPolicyRequest, options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).applyPolicy(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {DeveloperEndpointsApiApplySettingsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public applySettings(requestParameters: DeveloperEndpointsApiApplySettingsRequest, options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).applySettings(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {DeveloperEndpointsApiClearSessionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public clearSession(requestParameters: DeveloperEndpointsApiClearSessionRequest, options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).clearSession(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {DeveloperEndpointsApiDisconnectRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public disconnect(requestParameters: DeveloperEndpointsApiDisconnectRequest, options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).disconnect(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {DeveloperEndpointsApiFirmwareEraseRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public firmwareErase(requestParameters: DeveloperEndpointsApiFirmwareEraseRequest, options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).firmwareErase(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {DeveloperEndpointsApiFirmwareUploadRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public firmwareUpload(requestParameters: DeveloperEndpointsApiFirmwareUploadRequest, options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).firmwareUpload(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {DeveloperEndpointsApiLoadDeviceRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public loadDevice(requestParameters: DeveloperEndpointsApiLoadDeviceRequest, options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).loadDevice(requestParameters.loadDevice, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public removePin(options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).removePin(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {DeveloperEndpointsApiResetRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public reset(requestParameters: DeveloperEndpointsApiResetRequest, options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).reset(requestParameters.resetDevice, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {DeveloperEndpointsApiSoftResetRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public softReset(requestParameters: DeveloperEndpointsApiSoftResetRequest, options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).softReset(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeveloperEndpointsApi + */ + public wipe(options?: AxiosRequestConfig) { + return DeveloperEndpointsApiFp(this.configuration).wipe(options).then((request) => request(this.axios, this.basePath)); + } +} + + +/** + * DeviceInfoEndpointsApi - axios parameter creator + * @export + */ +export const DeviceInfoEndpointsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinTable: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/getCoinTable`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDeviceID: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/getDeviceID`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFirmwareVersion: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/getFirmwareVersion`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLabel: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/getLabel`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getModel: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/getModel`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getNumCoins: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/getNumCoins`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVendor: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/getVendor`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hasOnDeviceDisplay: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/hasOnDeviceDisplay`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hasOnDevicePassphrase: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/hasOnDevicePassphrase`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hasOnDevicePinEntry: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/hasOnDevicePinEntry`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hasOnDeviceRecovery: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/hasOnDeviceRecovery`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isInitialized: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/isInitialized`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isLocked: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/isLocked`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * DeviceInfoEndpointsApi - functional programming interface + * @export + */ +export const DeviceInfoEndpointsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DeviceInfoEndpointsApiAxiosParamCreator(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getCoinTable(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinTable(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getDeviceID(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceID(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getFirmwareVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getFirmwareVersion(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getLabel(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLabel(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getModel(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getModel(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getNumCoins(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getNumCoins(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getVendor(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getVendor(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hasOnDeviceDisplay(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hasOnDeviceDisplay(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hasOnDevicePassphrase(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hasOnDevicePassphrase(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hasOnDevicePinEntry(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hasOnDevicePinEntry(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hasOnDeviceRecovery(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hasOnDeviceRecovery(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async isInitialized(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.isInitialized(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async isLocked(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.isLocked(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * DeviceInfoEndpointsApi - factory interface + * @export + */ +export const DeviceInfoEndpointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DeviceInfoEndpointsApiFp(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getCoinTable(options?: any): AxiosPromise { + return localVarFp.getCoinTable(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getDeviceID(options?: any): AxiosPromise { + return localVarFp.getDeviceID(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getFirmwareVersion(options?: any): AxiosPromise { + return localVarFp.getFirmwareVersion(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getLabel(options?: any): AxiosPromise { + return localVarFp.getLabel(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getModel(options?: any): AxiosPromise { + return localVarFp.getModel(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getNumCoins(options?: any): AxiosPromise { + return localVarFp.getNumCoins(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getVendor(options?: any): AxiosPromise { + return localVarFp.getVendor(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hasOnDeviceDisplay(options?: any): AxiosPromise { + return localVarFp.hasOnDeviceDisplay(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hasOnDevicePassphrase(options?: any): AxiosPromise { + return localVarFp.hasOnDevicePassphrase(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hasOnDevicePinEntry(options?: any): AxiosPromise { + return localVarFp.hasOnDevicePinEntry(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hasOnDeviceRecovery(options?: any): AxiosPromise { + return localVarFp.hasOnDeviceRecovery(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isInitialized(options?: any): AxiosPromise { + return localVarFp.isInitialized(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + isLocked(options?: any): AxiosPromise { + return localVarFp.isLocked(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * DeviceInfoEndpointsApi - object-oriented interface + * @export + * @class DeviceInfoEndpointsApi + * @extends {BaseAPI} + */ +export class DeviceInfoEndpointsApi extends BaseAPI { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public getCoinTable(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).getCoinTable(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public getDeviceID(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).getDeviceID(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public getFirmwareVersion(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).getFirmwareVersion(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public getLabel(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).getLabel(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public getModel(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).getModel(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public getNumCoins(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).getNumCoins(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public getVendor(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).getVendor(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public hasOnDeviceDisplay(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).hasOnDeviceDisplay(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public hasOnDevicePassphrase(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).hasOnDevicePassphrase(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public hasOnDevicePinEntry(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).hasOnDevicePinEntry(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public hasOnDeviceRecovery(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).hasOnDeviceRecovery(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public isInitialized(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).isInitialized(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DeviceInfoEndpointsApi + */ + public isLocked(options?: AxiosRequestConfig) { + return DeviceInfoEndpointsApiFp(this.configuration).isLocked(options).then((request) => request(this.axios, this.basePath)); + } +} + + +/** + * KeepKeySignTxEndpointsApi - axios parameter creator + * @export + */ +export const KeepKeySignTxEndpointsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + binanceSignTx: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('binanceSignTx', 'body', body) + const localVarPath = `/binanceSignTx`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + btcSignTx: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('btcSignTx', 'body', body) + const localVarPath = `/btcSignTx`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {CosmosSignTx} cosmosSignTx + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cosmosSignTx: async (cosmosSignTx: CosmosSignTx, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'cosmosSignTx' is not null or undefined + assertParamExists('cosmosSignTx', 'cosmosSignTx', cosmosSignTx) + const localVarPath = `/cosmosSignTx`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(cosmosSignTx, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + eosSignTx: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('eosSignTx', 'body', body) + const localVarPath = `/eosSignTx`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ethSignTx: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('ethSignTx', 'body', body) + const localVarPath = `/ethSignTx`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + osmosisSignTx: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('osmosisSignTx', 'body', body) + const localVarPath = `/osmosisSignTx`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {RippleSignTx} rippleSignTx + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + rippleSignTx: async (rippleSignTx: RippleSignTx, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'rippleSignTx' is not null or undefined + assertParamExists('rippleSignTx', 'rippleSignTx', rippleSignTx) + const localVarPath = `/rippleSignTx`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(rippleSignTx, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signTransaction: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('signTransaction', 'body', body) + const localVarPath = `/sign`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {ThorchainSignTx} thorchainSignTx + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + thorchainSignTx: async (thorchainSignTx: ThorchainSignTx, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'thorchainSignTx' is not null or undefined + assertParamExists('thorchainSignTx', 'thorchainSignTx', thorchainSignTx) + const localVarPath = `/thorchainSignTx`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(thorchainSignTx, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * KeepKeySignTxEndpointsApi - functional programming interface + * @export + */ +export const KeepKeySignTxEndpointsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = KeepKeySignTxEndpointsApiAxiosParamCreator(configuration) + return { + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async binanceSignTx(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.binanceSignTx(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async btcSignTx(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.btcSignTx(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {CosmosSignTx} cosmosSignTx + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async cosmosSignTx(cosmosSignTx: CosmosSignTx, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cosmosSignTx(cosmosSignTx, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async eosSignTx(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.eosSignTx(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async ethSignTx(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.ethSignTx(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async osmosisSignTx(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.osmosisSignTx(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {RippleSignTx} rippleSignTx + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async rippleSignTx(rippleSignTx: RippleSignTx, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.rippleSignTx(rippleSignTx, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async signTransaction(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.signTransaction(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {ThorchainSignTx} thorchainSignTx + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async thorchainSignTx(thorchainSignTx: ThorchainSignTx, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.thorchainSignTx(thorchainSignTx, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * KeepKeySignTxEndpointsApi - factory interface + * @export + */ +export const KeepKeySignTxEndpointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = KeepKeySignTxEndpointsApiFp(configuration) + return { + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + binanceSignTx(body: any, options?: any): AxiosPromise { + return localVarFp.binanceSignTx(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + btcSignTx(body: any, options?: any): AxiosPromise { + return localVarFp.btcSignTx(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {CosmosSignTx} cosmosSignTx + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cosmosSignTx(cosmosSignTx: CosmosSignTx, options?: any): AxiosPromise { + return localVarFp.cosmosSignTx(cosmosSignTx, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + eosSignTx(body: any, options?: any): AxiosPromise { + return localVarFp.eosSignTx(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ethSignTx(body: any, options?: any): AxiosPromise { + return localVarFp.ethSignTx(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + osmosisSignTx(body: any, options?: any): AxiosPromise { + return localVarFp.osmosisSignTx(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {RippleSignTx} rippleSignTx + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + rippleSignTx(rippleSignTx: RippleSignTx, options?: any): AxiosPromise { + return localVarFp.rippleSignTx(rippleSignTx, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + signTransaction(body: any, options?: any): AxiosPromise { + return localVarFp.signTransaction(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {ThorchainSignTx} thorchainSignTx + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + thorchainSignTx(thorchainSignTx: ThorchainSignTx, options?: any): AxiosPromise { + return localVarFp.thorchainSignTx(thorchainSignTx, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for binanceSignTx operation in KeepKeySignTxEndpointsApi. + * @export + * @interface KeepKeySignTxEndpointsApiBinanceSignTxRequest + */ +export interface KeepKeySignTxEndpointsApiBinanceSignTxRequest { + /** + * + * @type {any} + * @memberof KeepKeySignTxEndpointsApiBinanceSignTx + */ + readonly body: any +} + +/** + * Request parameters for btcSignTx operation in KeepKeySignTxEndpointsApi. + * @export + * @interface KeepKeySignTxEndpointsApiBtcSignTxRequest + */ +export interface KeepKeySignTxEndpointsApiBtcSignTxRequest { + /** + * + * @type {any} + * @memberof KeepKeySignTxEndpointsApiBtcSignTx + */ + readonly body: any +} + +/** + * Request parameters for cosmosSignTx operation in KeepKeySignTxEndpointsApi. + * @export + * @interface KeepKeySignTxEndpointsApiCosmosSignTxRequest + */ +export interface KeepKeySignTxEndpointsApiCosmosSignTxRequest { + /** + * + * @type {CosmosSignTx} + * @memberof KeepKeySignTxEndpointsApiCosmosSignTx + */ + readonly cosmosSignTx: CosmosSignTx +} + +/** + * Request parameters for eosSignTx operation in KeepKeySignTxEndpointsApi. + * @export + * @interface KeepKeySignTxEndpointsApiEosSignTxRequest + */ +export interface KeepKeySignTxEndpointsApiEosSignTxRequest { + /** + * + * @type {any} + * @memberof KeepKeySignTxEndpointsApiEosSignTx + */ + readonly body: any +} + +/** + * Request parameters for ethSignTx operation in KeepKeySignTxEndpointsApi. + * @export + * @interface KeepKeySignTxEndpointsApiEthSignTxRequest + */ +export interface KeepKeySignTxEndpointsApiEthSignTxRequest { + /** + * + * @type {any} + * @memberof KeepKeySignTxEndpointsApiEthSignTx + */ + readonly body: any +} + +/** + * Request parameters for osmosisSignTx operation in KeepKeySignTxEndpointsApi. + * @export + * @interface KeepKeySignTxEndpointsApiOsmosisSignTxRequest + */ +export interface KeepKeySignTxEndpointsApiOsmosisSignTxRequest { + /** + * + * @type {any} + * @memberof KeepKeySignTxEndpointsApiOsmosisSignTx + */ + readonly body: any +} + +/** + * Request parameters for rippleSignTx operation in KeepKeySignTxEndpointsApi. + * @export + * @interface KeepKeySignTxEndpointsApiRippleSignTxRequest + */ +export interface KeepKeySignTxEndpointsApiRippleSignTxRequest { + /** + * + * @type {RippleSignTx} + * @memberof KeepKeySignTxEndpointsApiRippleSignTx + */ + readonly rippleSignTx: RippleSignTx +} + +/** + * Request parameters for signTransaction operation in KeepKeySignTxEndpointsApi. + * @export + * @interface KeepKeySignTxEndpointsApiSignTransactionRequest + */ +export interface KeepKeySignTxEndpointsApiSignTransactionRequest { + /** + * + * @type {any} + * @memberof KeepKeySignTxEndpointsApiSignTransaction + */ + readonly body: any +} + +/** + * Request parameters for thorchainSignTx operation in KeepKeySignTxEndpointsApi. + * @export + * @interface KeepKeySignTxEndpointsApiThorchainSignTxRequest + */ +export interface KeepKeySignTxEndpointsApiThorchainSignTxRequest { + /** + * + * @type {ThorchainSignTx} + * @memberof KeepKeySignTxEndpointsApiThorchainSignTx + */ + readonly thorchainSignTx: ThorchainSignTx +} + +/** + * KeepKeySignTxEndpointsApi - object-oriented interface + * @export + * @class KeepKeySignTxEndpointsApi + * @extends {BaseAPI} + */ +export class KeepKeySignTxEndpointsApi extends BaseAPI { + /** + * + * @param {KeepKeySignTxEndpointsApiBinanceSignTxRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeySignTxEndpointsApi + */ + public binanceSignTx(requestParameters: KeepKeySignTxEndpointsApiBinanceSignTxRequest, options?: AxiosRequestConfig) { + return KeepKeySignTxEndpointsApiFp(this.configuration).binanceSignTx(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeySignTxEndpointsApiBtcSignTxRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeySignTxEndpointsApi + */ + public btcSignTx(requestParameters: KeepKeySignTxEndpointsApiBtcSignTxRequest, options?: AxiosRequestConfig) { + return KeepKeySignTxEndpointsApiFp(this.configuration).btcSignTx(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeySignTxEndpointsApiCosmosSignTxRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeySignTxEndpointsApi + */ + public cosmosSignTx(requestParameters: KeepKeySignTxEndpointsApiCosmosSignTxRequest, options?: AxiosRequestConfig) { + return KeepKeySignTxEndpointsApiFp(this.configuration).cosmosSignTx(requestParameters.cosmosSignTx, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeySignTxEndpointsApiEosSignTxRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeySignTxEndpointsApi + */ + public eosSignTx(requestParameters: KeepKeySignTxEndpointsApiEosSignTxRequest, options?: AxiosRequestConfig) { + return KeepKeySignTxEndpointsApiFp(this.configuration).eosSignTx(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeySignTxEndpointsApiEthSignTxRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeySignTxEndpointsApi + */ + public ethSignTx(requestParameters: KeepKeySignTxEndpointsApiEthSignTxRequest, options?: AxiosRequestConfig) { + return KeepKeySignTxEndpointsApiFp(this.configuration).ethSignTx(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeySignTxEndpointsApiOsmosisSignTxRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeySignTxEndpointsApi + */ + public osmosisSignTx(requestParameters: KeepKeySignTxEndpointsApiOsmosisSignTxRequest, options?: AxiosRequestConfig) { + return KeepKeySignTxEndpointsApiFp(this.configuration).osmosisSignTx(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeySignTxEndpointsApiRippleSignTxRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeySignTxEndpointsApi + */ + public rippleSignTx(requestParameters: KeepKeySignTxEndpointsApiRippleSignTxRequest, options?: AxiosRequestConfig) { + return KeepKeySignTxEndpointsApiFp(this.configuration).rippleSignTx(requestParameters.rippleSignTx, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeySignTxEndpointsApiSignTransactionRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeySignTxEndpointsApi + */ + public signTransaction(requestParameters: KeepKeySignTxEndpointsApiSignTransactionRequest, options?: AxiosRequestConfig) { + return KeepKeySignTxEndpointsApiFp(this.configuration).signTransaction(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeySignTxEndpointsApiThorchainSignTxRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeySignTxEndpointsApi + */ + public thorchainSignTx(requestParameters: KeepKeySignTxEndpointsApiThorchainSignTxRequest, options?: AxiosRequestConfig) { + return KeepKeySignTxEndpointsApiFp(this.configuration).thorchainSignTx(requestParameters.thorchainSignTx, options).then((request) => request(this.axios, this.basePath)); + } +} + + +/** + * KeepKeyWalletEndpointsApi - axios parameter creator + * @export + */ +export const KeepKeyWalletEndpointsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @param {BinanceGetAddress} binanceGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + binanceGetAddress: async (binanceGetAddress: BinanceGetAddress, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'binanceGetAddress' is not null or undefined + assertParamExists('binanceGetAddress', 'binanceGetAddress', binanceGetAddress) + const localVarPath = `/binanceGetAddress`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(binanceGetAddress, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {BTCGetAddress} bTCGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + btcGetAddress: async (bTCGetAddress: BTCGetAddress, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'bTCGetAddress' is not null or undefined + assertParamExists('btcGetAddress', 'bTCGetAddress', bTCGetAddress) + const localVarPath = `/btcGetAddress`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(bTCGetAddress, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {CosmosGetAddress} cosmosGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cosmosGetAddress: async (cosmosGetAddress: CosmosGetAddress, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'cosmosGetAddress' is not null or undefined + assertParamExists('cosmosGetAddress', 'cosmosGetAddress', cosmosGetAddress) + const localVarPath = `/cosmosGetAddress`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(cosmosGetAddress, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {EosGetPublicKey} eosGetPublicKey + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + eosGetPublicKey: async (eosGetPublicKey: EosGetPublicKey, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'eosGetPublicKey' is not null or undefined + assertParamExists('eosGetPublicKey', 'eosGetPublicKey', eosGetPublicKey) + const localVarPath = `/eosGetPublicKey`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(eosGetPublicKey, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {ETHGetAddress} eTHGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ethGetAddress: async (eTHGetAddress: ETHGetAddress, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'eTHGetAddress' is not null or undefined + assertParamExists('ethGetAddress', 'eTHGetAddress', eTHGetAddress) + const localVarPath = `/ethGetAddress`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(eTHGetAddress, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {Array} getPublicKey + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPublicKeys: async (getPublicKey: Array, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'getPublicKey' is not null or undefined + assertParamExists('getPublicKeys', 'getPublicKey', getPublicKey) + const localVarPath = `/getPublicKeys`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(getPublicKey, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {OsmosisGetAddress} osmosisGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + osmosisGetAddress: async (osmosisGetAddress: OsmosisGetAddress, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'osmosisGetAddress' is not null or undefined + assertParamExists('osmosisGetAddress', 'osmosisGetAddress', osmosisGetAddress) + const localVarPath = `/osmosisGetAddress`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(osmosisGetAddress, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {RippleGetAddress} rippleGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + rippleGetAddress: async (rippleGetAddress: RippleGetAddress, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'rippleGetAddress' is not null or undefined + assertParamExists('rippleGetAddress', 'rippleGetAddress', rippleGetAddress) + const localVarPath = `/rippleGetAddress`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(rippleGetAddress, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {ThorchainGetAddress} thorchainGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + thorchainGetAddress: async (thorchainGetAddress: ThorchainGetAddress, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'thorchainGetAddress' is not null or undefined + assertParamExists('thorchainGetAddress', 'thorchainGetAddress', thorchainGetAddress) + const localVarPath = `/thorchainGetAddress`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(thorchainGetAddress, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * KeepKeyWalletEndpointsApi - functional programming interface + * @export + */ +export const KeepKeyWalletEndpointsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = KeepKeyWalletEndpointsApiAxiosParamCreator(configuration) + return { + /** + * + * @param {BinanceGetAddress} binanceGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async binanceGetAddress(binanceGetAddress: BinanceGetAddress, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.binanceGetAddress(binanceGetAddress, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {BTCGetAddress} bTCGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async btcGetAddress(bTCGetAddress: BTCGetAddress, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.btcGetAddress(bTCGetAddress, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {CosmosGetAddress} cosmosGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async cosmosGetAddress(cosmosGetAddress: CosmosGetAddress, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cosmosGetAddress(cosmosGetAddress, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {EosGetPublicKey} eosGetPublicKey + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async eosGetPublicKey(eosGetPublicKey: EosGetPublicKey, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.eosGetPublicKey(eosGetPublicKey, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {ETHGetAddress} eTHGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async ethGetAddress(eTHGetAddress: ETHGetAddress, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.ethGetAddress(eTHGetAddress, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {Array} getPublicKey + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPublicKeys(getPublicKey: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKeys(getPublicKey, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {OsmosisGetAddress} osmosisGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async osmosisGetAddress(osmosisGetAddress: OsmosisGetAddress, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.osmosisGetAddress(osmosisGetAddress, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {RippleGetAddress} rippleGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async rippleGetAddress(rippleGetAddress: RippleGetAddress, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.rippleGetAddress(rippleGetAddress, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {ThorchainGetAddress} thorchainGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async thorchainGetAddress(thorchainGetAddress: ThorchainGetAddress, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.thorchainGetAddress(thorchainGetAddress, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * KeepKeyWalletEndpointsApi - factory interface + * @export + */ +export const KeepKeyWalletEndpointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = KeepKeyWalletEndpointsApiFp(configuration) + return { + /** + * + * @param {BinanceGetAddress} binanceGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + binanceGetAddress(binanceGetAddress: BinanceGetAddress, options?: any): AxiosPromise { + return localVarFp.binanceGetAddress(binanceGetAddress, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {BTCGetAddress} bTCGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + btcGetAddress(bTCGetAddress: BTCGetAddress, options?: any): AxiosPromise { + return localVarFp.btcGetAddress(bTCGetAddress, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {CosmosGetAddress} cosmosGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cosmosGetAddress(cosmosGetAddress: CosmosGetAddress, options?: any): AxiosPromise { + return localVarFp.cosmosGetAddress(cosmosGetAddress, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {EosGetPublicKey} eosGetPublicKey + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + eosGetPublicKey(eosGetPublicKey: EosGetPublicKey, options?: any): AxiosPromise { + return localVarFp.eosGetPublicKey(eosGetPublicKey, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {ETHGetAddress} eTHGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + ethGetAddress(eTHGetAddress: ETHGetAddress, options?: any): AxiosPromise { + return localVarFp.ethGetAddress(eTHGetAddress, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {Array} getPublicKey + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPublicKeys(getPublicKey: Array, options?: any): AxiosPromise> { + return localVarFp.getPublicKeys(getPublicKey, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {OsmosisGetAddress} osmosisGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + osmosisGetAddress(osmosisGetAddress: OsmosisGetAddress, options?: any): AxiosPromise { + return localVarFp.osmosisGetAddress(osmosisGetAddress, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {RippleGetAddress} rippleGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + rippleGetAddress(rippleGetAddress: RippleGetAddress, options?: any): AxiosPromise { + return localVarFp.rippleGetAddress(rippleGetAddress, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {ThorchainGetAddress} thorchainGetAddress + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + thorchainGetAddress(thorchainGetAddress: ThorchainGetAddress, options?: any): AxiosPromise { + return localVarFp.thorchainGetAddress(thorchainGetAddress, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for binanceGetAddress operation in KeepKeyWalletEndpointsApi. + * @export + * @interface KeepKeyWalletEndpointsApiBinanceGetAddressRequest + */ +export interface KeepKeyWalletEndpointsApiBinanceGetAddressRequest { + /** + * + * @type {BinanceGetAddress} + * @memberof KeepKeyWalletEndpointsApiBinanceGetAddress + */ + readonly binanceGetAddress: BinanceGetAddress +} + +/** + * Request parameters for btcGetAddress operation in KeepKeyWalletEndpointsApi. + * @export + * @interface KeepKeyWalletEndpointsApiBtcGetAddressRequest + */ +export interface KeepKeyWalletEndpointsApiBtcGetAddressRequest { + /** + * + * @type {BTCGetAddress} + * @memberof KeepKeyWalletEndpointsApiBtcGetAddress + */ + readonly bTCGetAddress: BTCGetAddress +} + +/** + * Request parameters for cosmosGetAddress operation in KeepKeyWalletEndpointsApi. + * @export + * @interface KeepKeyWalletEndpointsApiCosmosGetAddressRequest + */ +export interface KeepKeyWalletEndpointsApiCosmosGetAddressRequest { + /** + * + * @type {CosmosGetAddress} + * @memberof KeepKeyWalletEndpointsApiCosmosGetAddress + */ + readonly cosmosGetAddress: CosmosGetAddress +} + +/** + * Request parameters for eosGetPublicKey operation in KeepKeyWalletEndpointsApi. + * @export + * @interface KeepKeyWalletEndpointsApiEosGetPublicKeyRequest + */ +export interface KeepKeyWalletEndpointsApiEosGetPublicKeyRequest { + /** + * + * @type {EosGetPublicKey} + * @memberof KeepKeyWalletEndpointsApiEosGetPublicKey + */ + readonly eosGetPublicKey: EosGetPublicKey +} + +/** + * Request parameters for ethGetAddress operation in KeepKeyWalletEndpointsApi. + * @export + * @interface KeepKeyWalletEndpointsApiEthGetAddressRequest + */ +export interface KeepKeyWalletEndpointsApiEthGetAddressRequest { + /** + * + * @type {ETHGetAddress} + * @memberof KeepKeyWalletEndpointsApiEthGetAddress + */ + readonly eTHGetAddress: ETHGetAddress +} + +/** + * Request parameters for getPublicKeys operation in KeepKeyWalletEndpointsApi. + * @export + * @interface KeepKeyWalletEndpointsApiGetPublicKeysRequest + */ +export interface KeepKeyWalletEndpointsApiGetPublicKeysRequest { + /** + * + * @type {Array} + * @memberof KeepKeyWalletEndpointsApiGetPublicKeys + */ + readonly getPublicKey: Array +} + +/** + * Request parameters for osmosisGetAddress operation in KeepKeyWalletEndpointsApi. + * @export + * @interface KeepKeyWalletEndpointsApiOsmosisGetAddressRequest + */ +export interface KeepKeyWalletEndpointsApiOsmosisGetAddressRequest { + /** + * + * @type {OsmosisGetAddress} + * @memberof KeepKeyWalletEndpointsApiOsmosisGetAddress + */ + readonly osmosisGetAddress: OsmosisGetAddress +} + +/** + * Request parameters for rippleGetAddress operation in KeepKeyWalletEndpointsApi. + * @export + * @interface KeepKeyWalletEndpointsApiRippleGetAddressRequest + */ +export interface KeepKeyWalletEndpointsApiRippleGetAddressRequest { + /** + * + * @type {RippleGetAddress} + * @memberof KeepKeyWalletEndpointsApiRippleGetAddress + */ + readonly rippleGetAddress: RippleGetAddress +} + +/** + * Request parameters for thorchainGetAddress operation in KeepKeyWalletEndpointsApi. + * @export + * @interface KeepKeyWalletEndpointsApiThorchainGetAddressRequest + */ +export interface KeepKeyWalletEndpointsApiThorchainGetAddressRequest { + /** + * + * @type {ThorchainGetAddress} + * @memberof KeepKeyWalletEndpointsApiThorchainGetAddress + */ + readonly thorchainGetAddress: ThorchainGetAddress +} + +/** + * KeepKeyWalletEndpointsApi - object-oriented interface + * @export + * @class KeepKeyWalletEndpointsApi + * @extends {BaseAPI} + */ +export class KeepKeyWalletEndpointsApi extends BaseAPI { + /** + * + * @param {KeepKeyWalletEndpointsApiBinanceGetAddressRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeyWalletEndpointsApi + */ + public binanceGetAddress(requestParameters: KeepKeyWalletEndpointsApiBinanceGetAddressRequest, options?: AxiosRequestConfig) { + return KeepKeyWalletEndpointsApiFp(this.configuration).binanceGetAddress(requestParameters.binanceGetAddress, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeyWalletEndpointsApiBtcGetAddressRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeyWalletEndpointsApi + */ + public btcGetAddress(requestParameters: KeepKeyWalletEndpointsApiBtcGetAddressRequest, options?: AxiosRequestConfig) { + return KeepKeyWalletEndpointsApiFp(this.configuration).btcGetAddress(requestParameters.bTCGetAddress, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeyWalletEndpointsApiCosmosGetAddressRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeyWalletEndpointsApi + */ + public cosmosGetAddress(requestParameters: KeepKeyWalletEndpointsApiCosmosGetAddressRequest, options?: AxiosRequestConfig) { + return KeepKeyWalletEndpointsApiFp(this.configuration).cosmosGetAddress(requestParameters.cosmosGetAddress, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeyWalletEndpointsApiEosGetPublicKeyRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeyWalletEndpointsApi + */ + public eosGetPublicKey(requestParameters: KeepKeyWalletEndpointsApiEosGetPublicKeyRequest, options?: AxiosRequestConfig) { + return KeepKeyWalletEndpointsApiFp(this.configuration).eosGetPublicKey(requestParameters.eosGetPublicKey, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeyWalletEndpointsApiEthGetAddressRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeyWalletEndpointsApi + */ + public ethGetAddress(requestParameters: KeepKeyWalletEndpointsApiEthGetAddressRequest, options?: AxiosRequestConfig) { + return KeepKeyWalletEndpointsApiFp(this.configuration).ethGetAddress(requestParameters.eTHGetAddress, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeyWalletEndpointsApiGetPublicKeysRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeyWalletEndpointsApi + */ + public getPublicKeys(requestParameters: KeepKeyWalletEndpointsApiGetPublicKeysRequest, options?: AxiosRequestConfig) { + return KeepKeyWalletEndpointsApiFp(this.configuration).getPublicKeys(requestParameters.getPublicKey, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeyWalletEndpointsApiOsmosisGetAddressRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeyWalletEndpointsApi + */ + public osmosisGetAddress(requestParameters: KeepKeyWalletEndpointsApiOsmosisGetAddressRequest, options?: AxiosRequestConfig) { + return KeepKeyWalletEndpointsApiFp(this.configuration).osmosisGetAddress(requestParameters.osmosisGetAddress, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeyWalletEndpointsApiRippleGetAddressRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeyWalletEndpointsApi + */ + public rippleGetAddress(requestParameters: KeepKeyWalletEndpointsApiRippleGetAddressRequest, options?: AxiosRequestConfig) { + return KeepKeyWalletEndpointsApiFp(this.configuration).rippleGetAddress(requestParameters.rippleGetAddress, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {KeepKeyWalletEndpointsApiThorchainGetAddressRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof KeepKeyWalletEndpointsApi + */ + public thorchainGetAddress(requestParameters: KeepKeyWalletEndpointsApiThorchainGetAddressRequest, options?: AxiosRequestConfig) { + return KeepKeyWalletEndpointsApiFp(this.configuration).thorchainGetAddress(requestParameters.thorchainGetAddress, options).then((request) => request(this.axios, this.basePath)); + } +} + + +/** + * RawKeepKeyDeviceI0EndpointsApi - axios parameter creator + * @export + */ +export const RawKeepKeyDeviceI0EndpointsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + readDevice: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/exchange/device`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {WriteBody} writeBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + writeDevice: async (writeBody: WriteBody, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'writeBody' is not null or undefined + assertParamExists('writeDevice', 'writeBody', writeBody) + const localVarPath = `/exchange/device`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(writeBody, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * RawKeepKeyDeviceI0EndpointsApi - functional programming interface + * @export + */ +export const RawKeepKeyDeviceI0EndpointsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = RawKeepKeyDeviceI0EndpointsApiAxiosParamCreator(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async readDevice(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.readDevice(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {WriteBody} writeBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async writeDevice(writeBody: WriteBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.writeDevice(writeBody, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * RawKeepKeyDeviceI0EndpointsApi - factory interface + * @export + */ +export const RawKeepKeyDeviceI0EndpointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = RawKeepKeyDeviceI0EndpointsApiFp(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + readDevice(options?: any): AxiosPromise { + return localVarFp.readDevice(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {WriteBody} writeBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + writeDevice(writeBody: WriteBody, options?: any): AxiosPromise { + return localVarFp.writeDevice(writeBody, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for writeDevice operation in RawKeepKeyDeviceI0EndpointsApi. + * @export + * @interface RawKeepKeyDeviceI0EndpointsApiWriteDeviceRequest + */ +export interface RawKeepKeyDeviceI0EndpointsApiWriteDeviceRequest { + /** + * + * @type {WriteBody} + * @memberof RawKeepKeyDeviceI0EndpointsApiWriteDevice + */ + readonly writeBody: WriteBody +} + +/** + * RawKeepKeyDeviceI0EndpointsApi - object-oriented interface + * @export + * @class RawKeepKeyDeviceI0EndpointsApi + * @extends {BaseAPI} + */ +export class RawKeepKeyDeviceI0EndpointsApi extends BaseAPI { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RawKeepKeyDeviceI0EndpointsApi + */ + public readDevice(options?: AxiosRequestConfig) { + return RawKeepKeyDeviceI0EndpointsApiFp(this.configuration).readDevice(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {RawKeepKeyDeviceI0EndpointsApiWriteDeviceRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RawKeepKeyDeviceI0EndpointsApi + */ + public writeDevice(requestParameters: RawKeepKeyDeviceI0EndpointsApiWriteDeviceRequest, options?: AxiosRequestConfig) { + return RawKeepKeyDeviceI0EndpointsApiFp(this.configuration).writeDevice(requestParameters.writeBody, options).then((request) => request(this.axios, this.basePath)); + } +} + + +/** + * RecoveryEndpointsApi - axios parameter creator + * @export + */ +export const RecoveryEndpointsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changePin: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('changePin', 'body', body) + const localVarPath = `/changePin`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {RecoverDevice} recoverDevice + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + recover: async (recoverDevice: RecoverDevice, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'recoverDevice' is not null or undefined + assertParamExists('recover', 'recoverDevice', recoverDevice) + const localVarPath = `/recover`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(recoverDevice, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendCharacter: async (body: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('sendCharacter', 'body', body) + const localVarPath = `/sendCharacter`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendCharacterDelete: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('sendCharacterDelete', 'body', body) + const localVarPath = `/sendCharacterDelete`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendCharacterDone: async (body: any, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('sendCharacterDone', 'body', body) + const localVarPath = `/sendCharacterDone`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendWord: async (body: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('sendWord', 'body', body) + const localVarPath = `/sendWord`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * RecoveryEndpointsApi - functional programming interface + * @export + */ +export const RecoveryEndpointsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = RecoveryEndpointsApiAxiosParamCreator(configuration) + return { + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async changePin(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.changePin(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {RecoverDevice} recoverDevice + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async recover(recoverDevice: RecoverDevice, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.recover(recoverDevice, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sendCharacter(body: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.sendCharacter(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sendCharacterDelete(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.sendCharacterDelete(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sendCharacterDone(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.sendCharacterDone(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async sendWord(body: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.sendWord(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * RecoveryEndpointsApi - factory interface + * @export + */ +export const RecoveryEndpointsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = RecoveryEndpointsApiFp(configuration) + return { + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + changePin(body: any, options?: any): AxiosPromise { + return localVarFp.changePin(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {RecoverDevice} recoverDevice + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + recover(recoverDevice: RecoverDevice, options?: any): AxiosPromise { + return localVarFp.recover(recoverDevice, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendCharacter(body: string, options?: any): AxiosPromise { + return localVarFp.sendCharacter(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendCharacterDelete(body: any, options?: any): AxiosPromise { + return localVarFp.sendCharacterDelete(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {any} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendCharacterDone(body: any, options?: any): AxiosPromise { + return localVarFp.sendCharacterDone(body, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + sendWord(body: string, options?: any): AxiosPromise { + return localVarFp.sendWord(body, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for changePin operation in RecoveryEndpointsApi. + * @export + * @interface RecoveryEndpointsApiChangePinRequest + */ +export interface RecoveryEndpointsApiChangePinRequest { + /** + * + * @type {any} + * @memberof RecoveryEndpointsApiChangePin + */ + readonly body: any +} + +/** + * Request parameters for recover operation in RecoveryEndpointsApi. + * @export + * @interface RecoveryEndpointsApiRecoverRequest + */ +export interface RecoveryEndpointsApiRecoverRequest { + /** + * + * @type {RecoverDevice} + * @memberof RecoveryEndpointsApiRecover + */ + readonly recoverDevice: RecoverDevice +} + +/** + * Request parameters for sendCharacter operation in RecoveryEndpointsApi. + * @export + * @interface RecoveryEndpointsApiSendCharacterRequest + */ +export interface RecoveryEndpointsApiSendCharacterRequest { + /** + * + * @type {string} + * @memberof RecoveryEndpointsApiSendCharacter + */ + readonly body: string +} + +/** + * Request parameters for sendCharacterDelete operation in RecoveryEndpointsApi. + * @export + * @interface RecoveryEndpointsApiSendCharacterDeleteRequest + */ +export interface RecoveryEndpointsApiSendCharacterDeleteRequest { + /** + * + * @type {any} + * @memberof RecoveryEndpointsApiSendCharacterDelete + */ + readonly body: any +} + +/** + * Request parameters for sendCharacterDone operation in RecoveryEndpointsApi. + * @export + * @interface RecoveryEndpointsApiSendCharacterDoneRequest + */ +export interface RecoveryEndpointsApiSendCharacterDoneRequest { + /** + * + * @type {any} + * @memberof RecoveryEndpointsApiSendCharacterDone + */ + readonly body: any +} + +/** + * Request parameters for sendWord operation in RecoveryEndpointsApi. + * @export + * @interface RecoveryEndpointsApiSendWordRequest + */ +export interface RecoveryEndpointsApiSendWordRequest { + /** + * + * @type {string} + * @memberof RecoveryEndpointsApiSendWord + */ + readonly body: string +} + +/** + * RecoveryEndpointsApi - object-oriented interface + * @export + * @class RecoveryEndpointsApi + * @extends {BaseAPI} + */ +export class RecoveryEndpointsApi extends BaseAPI { + /** + * + * @param {RecoveryEndpointsApiChangePinRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecoveryEndpointsApi + */ + public changePin(requestParameters: RecoveryEndpointsApiChangePinRequest, options?: AxiosRequestConfig) { + return RecoveryEndpointsApiFp(this.configuration).changePin(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {RecoveryEndpointsApiRecoverRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecoveryEndpointsApi + */ + public recover(requestParameters: RecoveryEndpointsApiRecoverRequest, options?: AxiosRequestConfig) { + return RecoveryEndpointsApiFp(this.configuration).recover(requestParameters.recoverDevice, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {RecoveryEndpointsApiSendCharacterRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecoveryEndpointsApi + */ + public sendCharacter(requestParameters: RecoveryEndpointsApiSendCharacterRequest, options?: AxiosRequestConfig) { + return RecoveryEndpointsApiFp(this.configuration).sendCharacter(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {RecoveryEndpointsApiSendCharacterDeleteRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecoveryEndpointsApi + */ + public sendCharacterDelete(requestParameters: RecoveryEndpointsApiSendCharacterDeleteRequest, options?: AxiosRequestConfig) { + return RecoveryEndpointsApiFp(this.configuration).sendCharacterDelete(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {RecoveryEndpointsApiSendCharacterDoneRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecoveryEndpointsApi + */ + public sendCharacterDone(requestParameters: RecoveryEndpointsApiSendCharacterDoneRequest, options?: AxiosRequestConfig) { + return RecoveryEndpointsApiFp(this.configuration).sendCharacterDone(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {RecoveryEndpointsApiSendWordRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RecoveryEndpointsApi + */ + public sendWord(requestParameters: RecoveryEndpointsApiSendWordRequest, options?: AxiosRequestConfig) { + return RecoveryEndpointsApiFp(this.configuration).sendWord(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } +} + + diff --git a/packages/ts-keepkey-sdk/src/generated/apis/ClientEndpointsApi.ts b/packages/ts-keepkey-sdk/src/generated/apis/ClientEndpointsApi.ts deleted file mode 100644 index 56c0039..0000000 --- a/packages/ts-keepkey-sdk/src/generated/apis/ClientEndpointsApi.ts +++ /dev/null @@ -1,190 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - GenericResponse, - PairBody, - PairResponse, - Status, - UserType, -} from '../models'; -import { - GenericResponseFromJSON, - GenericResponseToJSON, - PairBodyFromJSON, - PairBodyToJSON, - PairResponseFromJSON, - PairResponseToJSON, - StatusFromJSON, - StatusToJSON, - UserTypeFromJSON, - UserTypeToJSON, -} from '../models'; - -export interface PairRequest { - authorization: string; - pairBody: PairBody; -} - -/** - * - */ -export class ClientEndpointsApi extends runtime.BaseAPI { - - /** - */ - async deviceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/device`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response); - } - - /** - */ - async device(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deviceRaw(initOverrides); - return await response.value(); - } - - /** - */ - async pairRaw(requestParameters: PairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.authorization === null || requestParameters.authorization === undefined) { - throw new runtime.RequiredError('authorization','Required parameter requestParameters.authorization was null or undefined when calling pair.'); - } - - if (requestParameters.pairBody === null || requestParameters.pairBody === undefined) { - throw new runtime.RequiredError('pairBody','Required parameter requestParameters.pairBody was null or undefined when calling pair.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (requestParameters.authorization !== undefined && requestParameters.authorization !== null) { - headerParameters['authorization'] = String(requestParameters.authorization); - } - - const response = await this.request({ - path: `/pair`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: PairBodyToJSON(requestParameters.pairBody), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PairResponseFromJSON(jsonValue)); - } - - /** - */ - async pair(requestParameters: PairRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.pairRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async statusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/status`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => StatusFromJSON(jsonValue)); - } - - /** - */ - async status(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.statusRaw(initOverrides); - return await response.value(); - } - - /** - */ - async userRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/user`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UserTypeFromJSON(jsonValue)); - } - - /** - */ - async user(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.userRaw(initOverrides); - return await response.value(); - } - - /** - */ - async verifyAuthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/auth/verify`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue)); - } - - /** - */ - async verifyAuth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.verifyAuthRaw(initOverrides); - return await response.value(); - } - -} diff --git a/packages/ts-keepkey-sdk/src/generated/apis/DeveloperEndpointsApi.ts b/packages/ts-keepkey-sdk/src/generated/apis/DeveloperEndpointsApi.ts deleted file mode 100644 index b5bd850..0000000 --- a/packages/ts-keepkey-sdk/src/generated/apis/DeveloperEndpointsApi.ts +++ /dev/null @@ -1,454 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - ETHSignedTx, - LoadDevice, - ResetDevice, -} from '../models'; -import { - ETHSignedTxFromJSON, - ETHSignedTxToJSON, - LoadDeviceFromJSON, - LoadDeviceToJSON, - ResetDeviceFromJSON, - ResetDeviceToJSON, -} from '../models'; - -export interface ApplyPolicyRequest { - body: any | null; -} - -export interface ApplySettingsRequest { - body: any | null; -} - -export interface ClearSessionRequest { - body: any | null; -} - -export interface DisconnectRequest { - body: any | null; -} - -export interface FirmwareEraseRequest { - body: any | null; -} - -export interface FirmwareUploadRequest { - body: any | null; -} - -export interface LoadDeviceRequest { - loadDevice: LoadDevice; -} - -export interface ResetRequest { - resetDevice: ResetDevice; -} - -export interface SoftResetRequest { - body: any | null; -} - -export interface WipeRequest { - body: any | null; -} - -/** - * - */ -export class DeveloperEndpointsApi extends runtime.BaseAPI { - - /** - */ - async applyPolicyRaw(requestParameters: ApplyPolicyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling applyPolicy.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/applyPolicy`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async applyPolicy(requestParameters: ApplyPolicyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.applyPolicyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async applySettingsRaw(requestParameters: ApplySettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling applySettings.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/applySettings`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async applySettings(requestParameters: ApplySettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.applySettingsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async clearSessionRaw(requestParameters: ClearSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling clearSession.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/clearSession`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async clearSession(requestParameters: ClearSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.clearSessionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async disconnectRaw(requestParameters: DisconnectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling disconnect.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/disconnect`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async disconnect(requestParameters: DisconnectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.disconnectRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async firmwareEraseRaw(requestParameters: FirmwareEraseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling firmwareErase.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/firmwareErase`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async firmwareErase(requestParameters: FirmwareEraseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.firmwareEraseRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async firmwareUploadRaw(requestParameters: FirmwareUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling firmwareUpload.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/firmwareUpload`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async firmwareUpload(requestParameters: FirmwareUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.firmwareUploadRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async loadDeviceRaw(requestParameters: LoadDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.loadDevice === null || requestParameters.loadDevice === undefined) { - throw new runtime.RequiredError('loadDevice','Required parameter requestParameters.loadDevice was null or undefined when calling loadDevice.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/loadDevice`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: LoadDeviceToJSON(requestParameters.loadDevice), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async loadDevice(requestParameters: LoadDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.loadDeviceRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async removePinRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/removePin`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async removePin(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.removePinRaw(initOverrides); - return await response.value(); - } - - /** - */ - async resetRaw(requestParameters: ResetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.resetDevice === null || requestParameters.resetDevice === undefined) { - throw new runtime.RequiredError('resetDevice','Required parameter requestParameters.resetDevice was null or undefined when calling reset.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/reset`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: ResetDeviceToJSON(requestParameters.resetDevice), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async reset(requestParameters: ResetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.resetRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async softResetRaw(requestParameters: SoftResetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling softReset.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/softReset`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async softReset(requestParameters: SoftResetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.softResetRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async wipeRaw(requestParameters: WipeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling wipe.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/wipe`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async wipe(requestParameters: WipeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.wipeRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/packages/ts-keepkey-sdk/src/generated/apis/DeviceInfoEndpointsApi.ts b/packages/ts-keepkey-sdk/src/generated/apis/DeviceInfoEndpointsApi.ts deleted file mode 100644 index b7dbf8d..0000000 --- a/packages/ts-keepkey-sdk/src/generated/apis/DeviceInfoEndpointsApi.ts +++ /dev/null @@ -1,394 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - ETHSignedTx, -} from '../models'; -import { - ETHSignedTxFromJSON, - ETHSignedTxToJSON, -} from '../models'; - -/** - * - */ -export class DeviceInfoEndpointsApi extends runtime.BaseAPI { - - /** - */ - async getCoinTableRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/getCoinTable`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async getCoinTable(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCoinTableRaw(initOverrides); - return await response.value(); - } - - /** - */ - async getDeviceIDRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/getDeviceID`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async getDeviceID(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getDeviceIDRaw(initOverrides); - return await response.value(); - } - - /** - */ - async getFirmwareVersionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/getFirmwareVersion`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async getFirmwareVersion(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getFirmwareVersionRaw(initOverrides); - return await response.value(); - } - - /** - */ - async getLabelRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/getLabel`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async getLabel(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getLabelRaw(initOverrides); - return await response.value(); - } - - /** - */ - async getModelRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/getModel`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async getModel(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getModelRaw(initOverrides); - return await response.value(); - } - - /** - */ - async getNumCoinsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/getNumCoins`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async getNumCoins(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getNumCoinsRaw(initOverrides); - return await response.value(); - } - - /** - */ - async getVendorRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/getVendor`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async getVendor(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getVendorRaw(initOverrides); - return await response.value(); - } - - /** - */ - async hasOnDeviceDisplayRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/hasOnDeviceDisplay`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async hasOnDeviceDisplay(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hasOnDeviceDisplayRaw(initOverrides); - return await response.value(); - } - - /** - */ - async hasOnDevicePassphraseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/hasOnDevicePassphrase`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async hasOnDevicePassphrase(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hasOnDevicePassphraseRaw(initOverrides); - return await response.value(); - } - - /** - */ - async hasOnDevicePinEntryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/hasOnDevicePinEntry`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async hasOnDevicePinEntry(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hasOnDevicePinEntryRaw(initOverrides); - return await response.value(); - } - - /** - */ - async hasOnDeviceRecoveryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/hasOnDeviceRecovery`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async hasOnDeviceRecovery(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.hasOnDeviceRecoveryRaw(initOverrides); - return await response.value(); - } - - /** - */ - async isInitializedRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/isInitialized`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async isInitialized(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.isInitializedRaw(initOverrides); - return await response.value(); - } - - /** - */ - async isLockedRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/isLocked`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async isLocked(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.isLockedRaw(initOverrides); - return await response.value(); - } - -} diff --git a/packages/ts-keepkey-sdk/src/generated/apis/KeepKeySignTxEndpointsApi.ts b/packages/ts-keepkey-sdk/src/generated/apis/KeepKeySignTxEndpointsApi.ts deleted file mode 100644 index 7d2cc23..0000000 --- a/packages/ts-keepkey-sdk/src/generated/apis/KeepKeySignTxEndpointsApi.ts +++ /dev/null @@ -1,405 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - BTCSignedTx, - CosmosSignTx, - CosmosSignedTx, - ETHSignedTx, - RippleSignTx, - RippleTx, - SignTransaction200Response, - ThorchainSignTx, - ThorchainTx, -} from '../models'; -import { - BTCSignedTxFromJSON, - BTCSignedTxToJSON, - CosmosSignTxFromJSON, - CosmosSignTxToJSON, - CosmosSignedTxFromJSON, - CosmosSignedTxToJSON, - ETHSignedTxFromJSON, - ETHSignedTxToJSON, - RippleSignTxFromJSON, - RippleSignTxToJSON, - RippleTxFromJSON, - RippleTxToJSON, - SignTransaction200ResponseFromJSON, - SignTransaction200ResponseToJSON, - ThorchainSignTxFromJSON, - ThorchainSignTxToJSON, - ThorchainTxFromJSON, - ThorchainTxToJSON, -} from '../models'; - -export interface BinanceSignTxRequest { - body: any | null; -} - -export interface BtcSignTxRequest { - body: any | null; -} - -export interface CosmosSignTxRequest { - cosmosSignTx: CosmosSignTx; -} - -export interface EosSignTxRequest { - body: any | null; -} - -export interface EthSignTxRequest { - body: any | null; -} - -export interface OsmosisSignTxRequest { - body: any | null; -} - -export interface RippleSignTxRequest { - rippleSignTx: RippleSignTx; -} - -export interface SignTransactionRequest { - body: any | null; -} - -export interface ThorchainSignTxRequest { - thorchainSignTx: ThorchainSignTx; -} - -/** - * - */ -export class KeepKeySignTxEndpointsApi extends runtime.BaseAPI { - - /** - */ - async binanceSignTxRaw(requestParameters: BinanceSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling binanceSignTx.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/binanceSignTx`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async binanceSignTx(requestParameters: BinanceSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.binanceSignTxRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async btcSignTxRaw(requestParameters: BtcSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling btcSignTx.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/btcSignTx`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => BTCSignedTxFromJSON(jsonValue)); - } - - /** - */ - async btcSignTx(requestParameters: BtcSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.btcSignTxRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async cosmosSignTxRaw(requestParameters: CosmosSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.cosmosSignTx === null || requestParameters.cosmosSignTx === undefined) { - throw new runtime.RequiredError('cosmosSignTx','Required parameter requestParameters.cosmosSignTx was null or undefined when calling cosmosSignTx.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/cosmosSignTx`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CosmosSignTxToJSON(requestParameters.cosmosSignTx), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => CosmosSignedTxFromJSON(jsonValue)); - } - - /** - */ - async cosmosSignTx(requestParameters: CosmosSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.cosmosSignTxRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async eosSignTxRaw(requestParameters: EosSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling eosSignTx.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/eosSignTx`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async eosSignTx(requestParameters: EosSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.eosSignTxRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async ethSignTxRaw(requestParameters: EthSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling ethSignTx.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/ethSignTx`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async ethSignTx(requestParameters: EthSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.ethSignTxRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async osmosisSignTxRaw(requestParameters: OsmosisSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling osmosisSignTx.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/osmosisSignTx`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async osmosisSignTx(requestParameters: OsmosisSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.osmosisSignTxRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async rippleSignTxRaw(requestParameters: RippleSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.rippleSignTx === null || requestParameters.rippleSignTx === undefined) { - throw new runtime.RequiredError('rippleSignTx','Required parameter requestParameters.rippleSignTx was null or undefined when calling rippleSignTx.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/rippleSignTx`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: RippleSignTxToJSON(requestParameters.rippleSignTx), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => RippleTxFromJSON(jsonValue)); - } - - /** - */ - async rippleSignTx(requestParameters: RippleSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.rippleSignTxRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async signTransactionRaw(requestParameters: SignTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling signTransaction.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/sign`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SignTransaction200ResponseFromJSON(jsonValue)); - } - - /** - */ - async signTransaction(requestParameters: SignTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.signTransactionRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async thorchainSignTxRaw(requestParameters: ThorchainSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.thorchainSignTx === null || requestParameters.thorchainSignTx === undefined) { - throw new runtime.RequiredError('thorchainSignTx','Required parameter requestParameters.thorchainSignTx was null or undefined when calling thorchainSignTx.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/thorchainSignTx`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: ThorchainSignTxToJSON(requestParameters.thorchainSignTx), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ThorchainTxFromJSON(jsonValue)); - } - - /** - */ - async thorchainSignTx(requestParameters: ThorchainSignTxRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.thorchainSignTxRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/packages/ts-keepkey-sdk/src/generated/apis/KeepKeyWalletEndpointsApi.ts b/packages/ts-keepkey-sdk/src/generated/apis/KeepKeyWalletEndpointsApi.ts deleted file mode 100644 index 5c52dc3..0000000 --- a/packages/ts-keepkey-sdk/src/generated/apis/KeepKeyWalletEndpointsApi.ts +++ /dev/null @@ -1,408 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - BTCGetAddress, - BinanceGetAddress, - CosmosGetAddress, - ETHGetAddress, - EosGetPublicKey, - GetPublicKey, - GetPublicKeys200ResponseInner, - OsmosisGetAddress, - RippleGetAddress, - ThorchainGetAddress, -} from '../models'; -import { - BTCGetAddressFromJSON, - BTCGetAddressToJSON, - BinanceGetAddressFromJSON, - BinanceGetAddressToJSON, - CosmosGetAddressFromJSON, - CosmosGetAddressToJSON, - ETHGetAddressFromJSON, - ETHGetAddressToJSON, - EosGetPublicKeyFromJSON, - EosGetPublicKeyToJSON, - GetPublicKeyFromJSON, - GetPublicKeyToJSON, - GetPublicKeys200ResponseInnerFromJSON, - GetPublicKeys200ResponseInnerToJSON, - OsmosisGetAddressFromJSON, - OsmosisGetAddressToJSON, - RippleGetAddressFromJSON, - RippleGetAddressToJSON, - ThorchainGetAddressFromJSON, - ThorchainGetAddressToJSON, -} from '../models'; - -export interface BinanceGetAddressRequest { - binanceGetAddress: BinanceGetAddress; -} - -export interface BtcGetAddressRequest { - bTCGetAddress: BTCGetAddress; -} - -export interface CosmosGetAddressRequest { - cosmosGetAddress: CosmosGetAddress; -} - -export interface EosGetPublicKeyRequest { - eosGetPublicKey: EosGetPublicKey; -} - -export interface EthGetAddressRequest { - eTHGetAddress: ETHGetAddress; -} - -export interface GetPublicKeysRequest { - getPublicKey: Array; -} - -export interface OsmosisGetAddressRequest { - osmosisGetAddress: OsmosisGetAddress; -} - -export interface RippleGetAddressRequest { - rippleGetAddress: RippleGetAddress; -} - -export interface ThorchainGetAddressRequest { - thorchainGetAddress: ThorchainGetAddress; -} - -/** - * - */ -export class KeepKeyWalletEndpointsApi extends runtime.BaseAPI { - - /** - */ - async binanceGetAddressRaw(requestParameters: BinanceGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.binanceGetAddress === null || requestParameters.binanceGetAddress === undefined) { - throw new runtime.RequiredError('binanceGetAddress','Required parameter requestParameters.binanceGetAddress was null or undefined when calling binanceGetAddress.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/binanceGetAddress`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: BinanceGetAddressToJSON(requestParameters.binanceGetAddress), - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async binanceGetAddress(requestParameters: BinanceGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.binanceGetAddressRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async btcGetAddressRaw(requestParameters: BtcGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.bTCGetAddress === null || requestParameters.bTCGetAddress === undefined) { - throw new runtime.RequiredError('bTCGetAddress','Required parameter requestParameters.bTCGetAddress was null or undefined when calling btcGetAddress.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/btcGetAddress`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: BTCGetAddressToJSON(requestParameters.bTCGetAddress), - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async btcGetAddress(requestParameters: BtcGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.btcGetAddressRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async cosmosGetAddressRaw(requestParameters: CosmosGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.cosmosGetAddress === null || requestParameters.cosmosGetAddress === undefined) { - throw new runtime.RequiredError('cosmosGetAddress','Required parameter requestParameters.cosmosGetAddress was null or undefined when calling cosmosGetAddress.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/cosmosGetAddress`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: CosmosGetAddressToJSON(requestParameters.cosmosGetAddress), - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async cosmosGetAddress(requestParameters: CosmosGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.cosmosGetAddressRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async eosGetPublicKeyRaw(requestParameters: EosGetPublicKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.eosGetPublicKey === null || requestParameters.eosGetPublicKey === undefined) { - throw new runtime.RequiredError('eosGetPublicKey','Required parameter requestParameters.eosGetPublicKey was null or undefined when calling eosGetPublicKey.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/eosGetPublicKey`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: EosGetPublicKeyToJSON(requestParameters.eosGetPublicKey), - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async eosGetPublicKey(requestParameters: EosGetPublicKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.eosGetPublicKeyRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async ethGetAddressRaw(requestParameters: EthGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.eTHGetAddress === null || requestParameters.eTHGetAddress === undefined) { - throw new runtime.RequiredError('eTHGetAddress','Required parameter requestParameters.eTHGetAddress was null or undefined when calling ethGetAddress.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/ethGetAddress`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: ETHGetAddressToJSON(requestParameters.eTHGetAddress), - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async ethGetAddress(requestParameters: EthGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.ethGetAddressRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async getPublicKeysRaw(requestParameters: GetPublicKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - if (requestParameters.getPublicKey === null || requestParameters.getPublicKey === undefined) { - throw new runtime.RequiredError('getPublicKey','Required parameter requestParameters.getPublicKey was null or undefined when calling getPublicKeys.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/getPublicKeys`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.getPublicKey.map(GetPublicKeyToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetPublicKeys200ResponseInnerFromJSON)); - } - - /** - */ - async getPublicKeys(requestParameters: GetPublicKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getPublicKeysRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async osmosisGetAddressRaw(requestParameters: OsmosisGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.osmosisGetAddress === null || requestParameters.osmosisGetAddress === undefined) { - throw new runtime.RequiredError('osmosisGetAddress','Required parameter requestParameters.osmosisGetAddress was null or undefined when calling osmosisGetAddress.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/osmosisGetAddress`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: OsmosisGetAddressToJSON(requestParameters.osmosisGetAddress), - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async osmosisGetAddress(requestParameters: OsmosisGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.osmosisGetAddressRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async rippleGetAddressRaw(requestParameters: RippleGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.rippleGetAddress === null || requestParameters.rippleGetAddress === undefined) { - throw new runtime.RequiredError('rippleGetAddress','Required parameter requestParameters.rippleGetAddress was null or undefined when calling rippleGetAddress.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/rippleGetAddress`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: RippleGetAddressToJSON(requestParameters.rippleGetAddress), - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async rippleGetAddress(requestParameters: RippleGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.rippleGetAddressRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async thorchainGetAddressRaw(requestParameters: ThorchainGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.thorchainGetAddress === null || requestParameters.thorchainGetAddress === undefined) { - throw new runtime.RequiredError('thorchainGetAddress','Required parameter requestParameters.thorchainGetAddress was null or undefined when calling thorchainGetAddress.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/thorchainGetAddress`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: ThorchainGetAddressToJSON(requestParameters.thorchainGetAddress), - }, initOverrides); - - return new runtime.TextApiResponse(response) as any; - } - - /** - */ - async thorchainGetAddress(requestParameters: ThorchainGetAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.thorchainGetAddressRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/packages/ts-keepkey-sdk/src/generated/apis/RawKeepKeyDeviceI0EndpointsApi.ts b/packages/ts-keepkey-sdk/src/generated/apis/RawKeepKeyDeviceI0EndpointsApi.ts deleted file mode 100644 index a3b366f..0000000 --- a/packages/ts-keepkey-sdk/src/generated/apis/RawKeepKeyDeviceI0EndpointsApi.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - ReadDevice200Response, - WriteBody, - WriteDevice200Response, -} from '../models'; -import { - ReadDevice200ResponseFromJSON, - ReadDevice200ResponseToJSON, - WriteBodyFromJSON, - WriteBodyToJSON, - WriteDevice200ResponseFromJSON, - WriteDevice200ResponseToJSON, -} from '../models'; - -export interface WriteDeviceRequest { - writeBody: WriteBody; -} - -/** - * - */ -export class RawKeepKeyDeviceI0EndpointsApi extends runtime.BaseAPI { - - /** - */ - async readDeviceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/exchange/device`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ReadDevice200ResponseFromJSON(jsonValue)); - } - - /** - */ - async readDevice(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.readDeviceRaw(initOverrides); - return await response.value(); - } - - /** - */ - async writeDeviceRaw(requestParameters: WriteDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.writeBody === null || requestParameters.writeBody === undefined) { - throw new runtime.RequiredError('writeBody','Required parameter requestParameters.writeBody was null or undefined when calling writeDevice.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - const response = await this.request({ - path: `/exchange/device`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: WriteBodyToJSON(requestParameters.writeBody), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => WriteDevice200ResponseFromJSON(jsonValue)); - } - - /** - */ - async writeDevice(requestParameters: WriteDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.writeDeviceRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/packages/ts-keepkey-sdk/src/generated/apis/RecoveryEndpointsApi.ts b/packages/ts-keepkey-sdk/src/generated/apis/RecoveryEndpointsApi.ts deleted file mode 100644 index 2cda4a9..0000000 --- a/packages/ts-keepkey-sdk/src/generated/apis/RecoveryEndpointsApi.ts +++ /dev/null @@ -1,267 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import * as runtime from '../runtime'; -import type { - ETHSignedTx, - RecoverDevice, -} from '../models'; -import { - ETHSignedTxFromJSON, - ETHSignedTxToJSON, - RecoverDeviceFromJSON, - RecoverDeviceToJSON, -} from '../models'; - -export interface ChangePinRequest { - body: any | null; -} - -export interface RecoverRequest { - recoverDevice: RecoverDevice; -} - -export interface SendCharacterRequest { - body: string; -} - -export interface SendCharacterDeleteRequest { - body: any | null; -} - -export interface SendCharacterDoneRequest { - body: any | null; -} - -export interface SendWordRequest { - body: string; -} - -/** - * - */ -export class RecoveryEndpointsApi extends runtime.BaseAPI { - - /** - */ - async changePinRaw(requestParameters: ChangePinRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling changePin.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/changePin`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async changePin(requestParameters: ChangePinRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.changePinRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async recoverRaw(requestParameters: RecoverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.recoverDevice === null || requestParameters.recoverDevice === undefined) { - throw new runtime.RequiredError('recoverDevice','Required parameter requestParameters.recoverDevice was null or undefined when calling recover.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/recover`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: RecoverDeviceToJSON(requestParameters.recoverDevice), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async recover(requestParameters: RecoverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.recoverRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async sendCharacterRaw(requestParameters: SendCharacterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling sendCharacter.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/sendCharacter`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async sendCharacter(requestParameters: SendCharacterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.sendCharacterRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async sendCharacterDeleteRaw(requestParameters: SendCharacterDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling sendCharacterDelete.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/sendCharacterDelete`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async sendCharacterDelete(requestParameters: SendCharacterDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.sendCharacterDeleteRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async sendCharacterDoneRaw(requestParameters: SendCharacterDoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling sendCharacterDone.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/sendCharacterDone`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async sendCharacterDone(requestParameters: SendCharacterDoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.sendCharacterDoneRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async sendWordRaw(requestParameters: SendWordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters.body === null || requestParameters.body === undefined) { - throw new runtime.RequiredError('body','Required parameter requestParameters.body was null or undefined when calling sendWord.'); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["authorization"] = this.configuration.apiKey("authorization"); // api_key authentication - } - - const response = await this.request({ - path: `/sendWord`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters.body as any, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => ETHSignedTxFromJSON(jsonValue)); - } - - /** - */ - async sendWord(requestParameters: SendWordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.sendWordRaw(requestParameters, initOverrides); - return await response.value(); - } - -} diff --git a/packages/ts-keepkey-sdk/src/generated/apis/index.ts b/packages/ts-keepkey-sdk/src/generated/apis/index.ts deleted file mode 100644 index f7e7bd1..0000000 --- a/packages/ts-keepkey-sdk/src/generated/apis/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './ClientEndpointsApi'; -export * from './DeveloperEndpointsApi'; -export * from './DeviceInfoEndpointsApi'; -export * from './KeepKeySignTxEndpointsApi'; -export * from './KeepKeyWalletEndpointsApi'; -export * from './RawKeepKeyDeviceI0EndpointsApi'; -export * from './RecoveryEndpointsApi'; diff --git a/packages/ts-keepkey-sdk/src/generated/base.ts b/packages/ts-keepkey-sdk/src/generated/base.ts new file mode 100644 index 0000000..1aa3c77 --- /dev/null +++ b/packages/ts-keepkey-sdk/src/generated/base.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * keepkey-desktop + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.1.14 + * Contact: bithighlander@gmail.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { Configuration } from "./configuration"; +// Some imports not used depending on template conditions +// @ts-ignore +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; + +export const BASE_PATH = "http://localhost:1646".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: AxiosRequestConfig; +} + +/** + * + * @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); + } +} diff --git a/packages/ts-keepkey-sdk/src/generated/common.ts b/packages/ts-keepkey-sdk/src/generated/common.ts new file mode 100644 index 0000000..4248ab4 --- /dev/null +++ b/packages/ts-keepkey-sdk/src/generated/common.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * keepkey-desktop + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.1.14 + * Contact: bithighlander@gmail.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { Configuration } from "./configuration"; +import { RequiredError, RequestArgs } from "./base"; +import { AxiosInstance, AxiosResponse } from 'axios'; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com' + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +} + +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash +} + +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); + }; +} diff --git a/packages/ts-keepkey-sdk/src/generated/configuration.ts b/packages/ts-keepkey-sdk/src/generated/configuration.ts new file mode 100644 index 0000000..2bfa52b --- /dev/null +++ b/packages/ts-keepkey-sdk/src/generated/configuration.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * keepkey-desktop + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.1.14 + * Contact: bithighlander@gmail.com + * + * 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 | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * 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 | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} diff --git a/packages/ts-keepkey-sdk/src/generated/git_push.sh b/packages/ts-keepkey-sdk/src/generated/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/packages/ts-keepkey-sdk/src/generated/git_push.sh @@ -0,0 +1,57 @@ +#!/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-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +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://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${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://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/packages/ts-keepkey-sdk/src/generated/index.ts b/packages/ts-keepkey-sdk/src/generated/index.ts index 8b4b55b..884155a 100644 --- a/packages/ts-keepkey-sdk/src/generated/index.ts +++ b/packages/ts-keepkey-sdk/src/generated/index.ts @@ -4,7 +4,7 @@ * keepkey-desktop * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.1.85 + * The version of the OpenAPI document: 1.1.14 * Contact: bithighlander@gmail.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/ts-keepkey-sdk/src/generated/models/BTCGetAddress.ts b/packages/ts-keepkey-sdk/src/generated/models/BTCGetAddress.ts deleted file mode 100644 index e9b282f..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/BTCGetAddress.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { BTCInputScriptType } from './BTCInputScriptType'; -import { - BTCInputScriptTypeFromJSON, - BTCInputScriptTypeFromJSONTyped, - BTCInputScriptTypeToJSON, -} from './BTCInputScriptType'; - -/** - * - * @export - * @interface BTCGetAddress - */ -export interface BTCGetAddress { - /** - * - * @type {boolean} - * @memberof BTCGetAddress - */ - showDisplay?: boolean; - /** - * - * @type {BTCInputScriptType} - * @memberof BTCGetAddress - */ - scriptType?: BTCInputScriptType; - /** - * - * @type {Array} - * @memberof BTCGetAddress - */ - addressNList: Array; - /** - * - * @type {string} - * @memberof BTCGetAddress - */ - coin: string; -} - -/** - * Check if a given object implements the BTCGetAddress interface. - */ -export function instanceOfBTCGetAddress(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - isInstance = isInstance && "coin" in value; - - return isInstance; -} - -export function BTCGetAddressFromJSON(json: any): BTCGetAddress { - return BTCGetAddressFromJSONTyped(json, false); -} - -export function BTCGetAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): BTCGetAddress { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'showDisplay': !exists(json, 'showDisplay') ? undefined : json['showDisplay'], - 'scriptType': !exists(json, 'scriptType') ? undefined : BTCInputScriptTypeFromJSON(json['scriptType']), - 'addressNList': json['addressNList'], - 'coin': json['coin'], - }; -} - -export function BTCGetAddressToJSON(value?: BTCGetAddress | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'showDisplay': value.showDisplay, - 'scriptType': BTCInputScriptTypeToJSON(value.scriptType), - 'addressNList': value.addressNList, - 'coin': value.coin, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/BTCInputScriptType.ts b/packages/ts-keepkey-sdk/src/generated/models/BTCInputScriptType.ts deleted file mode 100644 index 5b227f9..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/BTCInputScriptType.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const BTCInputScriptType = { - Cashaddr: 'cashaddr', - Bech32: 'bech32', - P2pkh: 'p2pkh', - P2sh: 'p2sh', - External: 'external', - P2wpkh: 'p2wpkh', - P2shP2wpkh: 'p2sh-p2wpkh' -} as const; -export type BTCInputScriptType = typeof BTCInputScriptType[keyof typeof BTCInputScriptType]; - - -export function BTCInputScriptTypeFromJSON(json: any): BTCInputScriptType { - return BTCInputScriptTypeFromJSONTyped(json, false); -} - -export function BTCInputScriptTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): BTCInputScriptType { - return json as BTCInputScriptType; -} - -export function BTCInputScriptTypeToJSON(value?: BTCInputScriptType | null): any { - return value as any; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/BTCSignedTx.ts b/packages/ts-keepkey-sdk/src/generated/models/BTCSignedTx.ts deleted file mode 100644 index 9e6f5ac..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/BTCSignedTx.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface BTCSignedTx - */ -export interface BTCSignedTx { - /** - * - * @type {Array} - * @memberof BTCSignedTx - */ - signatures: Array; - /** - * hex string representation of the raw, signed transaction - * @type {string} - * @memberof BTCSignedTx - */ - serializedTx: string; -} - -/** - * Check if a given object implements the BTCSignedTx interface. - */ -export function instanceOfBTCSignedTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "signatures" in value; - isInstance = isInstance && "serializedTx" in value; - - return isInstance; -} - -export function BTCSignedTxFromJSON(json: any): BTCSignedTx { - return BTCSignedTxFromJSONTyped(json, false); -} - -export function BTCSignedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): BTCSignedTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'signatures': json['signatures'], - 'serializedTx': json['serializedTx'], - }; -} - -export function BTCSignedTxToJSON(value?: BTCSignedTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'signatures': value.signatures, - 'serializedTx': value.serializedTx, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/BinanceGetAddress.ts b/packages/ts-keepkey-sdk/src/generated/models/BinanceGetAddress.ts deleted file mode 100644 index c29aba7..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/BinanceGetAddress.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface BinanceGetAddress - */ -export interface BinanceGetAddress { - /** - * - * @type {Array} - * @memberof BinanceGetAddress - */ - addressNList: Array; - /** - * - * @type {boolean} - * @memberof BinanceGetAddress - */ - showDisplay?: boolean; -} - -/** - * Check if a given object implements the BinanceGetAddress interface. - */ -export function instanceOfBinanceGetAddress(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - - return isInstance; -} - -export function BinanceGetAddressFromJSON(json: any): BinanceGetAddress { - return BinanceGetAddressFromJSONTyped(json, false); -} - -export function BinanceGetAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): BinanceGetAddress { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'showDisplay': !exists(json, 'showDisplay') ? undefined : json['showDisplay'], - }; -} - -export function BinanceGetAddressToJSON(value?: BinanceGetAddress | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'showDisplay': value.showDisplay, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/CosmosGetAddress.ts b/packages/ts-keepkey-sdk/src/generated/models/CosmosGetAddress.ts deleted file mode 100644 index b480ba8..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/CosmosGetAddress.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface CosmosGetAddress - */ -export interface CosmosGetAddress { - /** - * - * @type {Array} - * @memberof CosmosGetAddress - */ - addressNList: Array; - /** - * - * @type {boolean} - * @memberof CosmosGetAddress - */ - showDisplay?: boolean; -} - -/** - * Check if a given object implements the CosmosGetAddress interface. - */ -export function instanceOfCosmosGetAddress(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - - return isInstance; -} - -export function CosmosGetAddressFromJSON(json: any): CosmosGetAddress { - return CosmosGetAddressFromJSONTyped(json, false); -} - -export function CosmosGetAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): CosmosGetAddress { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'showDisplay': !exists(json, 'showDisplay') ? undefined : json['showDisplay'], - }; -} - -export function CosmosGetAddressToJSON(value?: CosmosGetAddress | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'showDisplay': value.showDisplay, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/CosmosSignTx.ts b/packages/ts-keepkey-sdk/src/generated/models/CosmosSignTx.ts deleted file mode 100644 index 4c824e2..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/CosmosSignTx.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { CosmosStdTx } from './CosmosStdTx'; -import { - CosmosStdTxFromJSON, - CosmosStdTxFromJSONTyped, - CosmosStdTxToJSON, -} from './CosmosStdTx'; - -/** - * - * @export - * @interface CosmosSignTx - */ -export interface CosmosSignTx { - /** - * - * @type {Array} - * @memberof CosmosSignTx - */ - addressNList: Array; - /** - * - * @type {CosmosStdTx} - * @memberof CosmosSignTx - */ - tx: CosmosStdTx; - /** - * - * @type {string} - * @memberof CosmosSignTx - */ - chainId: string; - /** - * - * @type {string} - * @memberof CosmosSignTx - */ - accountNumber: string; - /** - * - * @type {string} - * @memberof CosmosSignTx - */ - sequence: string; - /** - * - * @type {number} - * @memberof CosmosSignTx - */ - fee?: number; -} - -/** - * Check if a given object implements the CosmosSignTx interface. - */ -export function instanceOfCosmosSignTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - isInstance = isInstance && "tx" in value; - isInstance = isInstance && "chainId" in value; - isInstance = isInstance && "accountNumber" in value; - isInstance = isInstance && "sequence" in value; - - return isInstance; -} - -export function CosmosSignTxFromJSON(json: any): CosmosSignTx { - return CosmosSignTxFromJSONTyped(json, false); -} - -export function CosmosSignTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): CosmosSignTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'tx': CosmosStdTxFromJSON(json['tx']), - 'chainId': json['chain_id'], - 'accountNumber': json['account_number'], - 'sequence': json['sequence'], - 'fee': !exists(json, 'fee') ? undefined : json['fee'], - }; -} - -export function CosmosSignTxToJSON(value?: CosmosSignTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'tx': CosmosStdTxToJSON(value.tx), - 'chain_id': value.chainId, - 'account_number': value.accountNumber, - 'sequence': value.sequence, - 'fee': value.fee, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/CosmosSignedTx.ts b/packages/ts-keepkey-sdk/src/generated/models/CosmosSignedTx.ts deleted file mode 100644 index fc7047e..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/CosmosSignedTx.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface CosmosSignedTx - */ -export interface CosmosSignedTx { - /** - * - * @type {string} - * @memberof CosmosSignedTx - */ - serialized: string; - /** - * - * @type {string} - * @memberof CosmosSignedTx - */ - body: string; - /** - * - * @type {string} - * @memberof CosmosSignedTx - */ - authInfoBytes: string; - /** - * - * @type {Array} - * @memberof CosmosSignedTx - */ - signatures: Array; -} - -/** - * Check if a given object implements the CosmosSignedTx interface. - */ -export function instanceOfCosmosSignedTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "serialized" in value; - isInstance = isInstance && "body" in value; - isInstance = isInstance && "authInfoBytes" in value; - isInstance = isInstance && "signatures" in value; - - return isInstance; -} - -export function CosmosSignedTxFromJSON(json: any): CosmosSignedTx { - return CosmosSignedTxFromJSONTyped(json, false); -} - -export function CosmosSignedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): CosmosSignedTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'serialized': json['serialized'], - 'body': json['body'], - 'authInfoBytes': json['authInfoBytes'], - 'signatures': json['signatures'], - }; -} - -export function CosmosSignedTxToJSON(value?: CosmosSignedTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'serialized': value.serialized, - 'body': value.body, - 'authInfoBytes': value.authInfoBytes, - 'signatures': value.signatures, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/CosmosStdTx.ts b/packages/ts-keepkey-sdk/src/generated/models/CosmosStdTx.ts deleted file mode 100644 index 41c5191..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/CosmosStdTx.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Msg } from './Msg'; -import { - MsgFromJSON, - MsgFromJSONTyped, - MsgToJSON, -} from './Msg'; -import type { StdFee } from './StdFee'; -import { - StdFeeFromJSON, - StdFeeFromJSONTyped, - StdFeeToJSON, -} from './StdFee'; -import type { StdSignature } from './StdSignature'; -import { - StdSignatureFromJSON, - StdSignatureFromJSONTyped, - StdSignatureToJSON, -} from './StdSignature'; - -/** - * - * @export - * @interface CosmosStdTx - */ -export interface CosmosStdTx { - /** - * - * @type {Array} - * @memberof CosmosStdTx - */ - msg: Array; - /** - * - * @type {StdFee} - * @memberof CosmosStdTx - */ - fee: StdFee; - /** - * - * @type {Array} - * @memberof CosmosStdTx - */ - signatures: Array; - /** - * - * @type {string} - * @memberof CosmosStdTx - */ - memo?: string; -} - -/** - * Check if a given object implements the CosmosStdTx interface. - */ -export function instanceOfCosmosStdTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "msg" in value; - isInstance = isInstance && "fee" in value; - isInstance = isInstance && "signatures" in value; - - return isInstance; -} - -export function CosmosStdTxFromJSON(json: any): CosmosStdTx { - return CosmosStdTxFromJSONTyped(json, false); -} - -export function CosmosStdTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): CosmosStdTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'msg': ((json['msg'] as Array).map(MsgFromJSON)), - 'fee': StdFeeFromJSON(json['fee']), - 'signatures': ((json['signatures'] as Array).map(StdSignatureFromJSON)), - 'memo': !exists(json, 'memo') ? undefined : json['memo'], - }; -} - -export function CosmosStdTxToJSON(value?: CosmosStdTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'msg': ((value.msg as Array).map(MsgToJSON)), - 'fee': StdFeeToJSON(value.fee), - 'signatures': ((value.signatures as Array).map(StdSignatureToJSON)), - 'memo': value.memo, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/CryptoPubKey.ts b/packages/ts-keepkey-sdk/src/generated/models/CryptoPubKey.ts deleted file mode 100644 index dc86680..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/CryptoPubKey.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface CryptoPubKey - */ -export interface CryptoPubKey { - /** - * - * @type {string} - * @memberof CryptoPubKey - */ - type: string; - /** - * - * @type {string} - * @memberof CryptoPubKey - */ - value: string; -} - -/** - * Check if a given object implements the CryptoPubKey interface. - */ -export function instanceOfCryptoPubKey(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "type" in value; - isInstance = isInstance && "value" in value; - - return isInstance; -} - -export function CryptoPubKeyFromJSON(json: any): CryptoPubKey { - return CryptoPubKeyFromJSONTyped(json, false); -} - -export function CryptoPubKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CryptoPubKey { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': json['type'], - 'value': json['value'], - }; -} - -export function CryptoPubKeyToJSON(value?: CryptoPubKey | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'value': value.value, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ETHGetAddress.ts b/packages/ts-keepkey-sdk/src/generated/models/ETHGetAddress.ts deleted file mode 100644 index b4f8b3c..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ETHGetAddress.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ETHGetAddress - */ -export interface ETHGetAddress { - /** - * - * @type {Array} - * @memberof ETHGetAddress - */ - addressNList: Array; - /** - * - * @type {boolean} - * @memberof ETHGetAddress - */ - showDisplay?: boolean; -} - -/** - * Check if a given object implements the ETHGetAddress interface. - */ -export function instanceOfETHGetAddress(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - - return isInstance; -} - -export function ETHGetAddressFromJSON(json: any): ETHGetAddress { - return ETHGetAddressFromJSONTyped(json, false); -} - -export function ETHGetAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): ETHGetAddress { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'showDisplay': !exists(json, 'showDisplay') ? undefined : json['showDisplay'], - }; -} - -export function ETHGetAddressToJSON(value?: ETHGetAddress | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'showDisplay': value.showDisplay, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ETHSignedTx.ts b/packages/ts-keepkey-sdk/src/generated/models/ETHSignedTx.ts deleted file mode 100644 index 4a6cdcc..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ETHSignedTx.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ETHSignedTx - */ -export interface ETHSignedTx { - /** - * uint32 - * @type {number} - * @memberof ETHSignedTx - */ - v: number; - /** - * big-endian hex, prefixed with '0x' - * @type {string} - * @memberof ETHSignedTx - */ - r: string; - /** - * big-endian hex, prefixed with '0x' - * @type {string} - * @memberof ETHSignedTx - */ - s: string; - /** - * big-endian hex, prefixed with '0x' - * @type {string} - * @memberof ETHSignedTx - */ - serialized: string; -} - -/** - * Check if a given object implements the ETHSignedTx interface. - */ -export function instanceOfETHSignedTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "v" in value; - isInstance = isInstance && "r" in value; - isInstance = isInstance && "s" in value; - isInstance = isInstance && "serialized" in value; - - return isInstance; -} - -export function ETHSignedTxFromJSON(json: any): ETHSignedTx { - return ETHSignedTxFromJSONTyped(json, false); -} - -export function ETHSignedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): ETHSignedTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'v': json['v'], - 'r': json['r'], - 's': json['s'], - 'serialized': json['serialized'], - }; -} - -export function ETHSignedTxToJSON(value?: ETHSignedTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'v': value.v, - 'r': value.r, - 's': value.s, - 'serialized': value.serialized, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/EosGetPublicKey.ts b/packages/ts-keepkey-sdk/src/generated/models/EosGetPublicKey.ts deleted file mode 100644 index 9be3df1..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/EosGetPublicKey.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface EosGetPublicKey - */ -export interface EosGetPublicKey { - /** - * - * @type {Array} - * @memberof EosGetPublicKey - */ - addressNList: Array; - /** - * - * @type {boolean} - * @memberof EosGetPublicKey - */ - showDisplay?: boolean; - /** - * - * @type {number} - * @memberof EosGetPublicKey - */ - kind: EosGetPublicKeyKindEnum; -} - - -/** - * @export - */ -export const EosGetPublicKeyKindEnum = { - NUMBER_0: 0, - NUMBER_1: 1, - NUMBER_2: 2 -} as const; -export type EosGetPublicKeyKindEnum = typeof EosGetPublicKeyKindEnum[keyof typeof EosGetPublicKeyKindEnum]; - - -/** - * Check if a given object implements the EosGetPublicKey interface. - */ -export function instanceOfEosGetPublicKey(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - isInstance = isInstance && "kind" in value; - - return isInstance; -} - -export function EosGetPublicKeyFromJSON(json: any): EosGetPublicKey { - return EosGetPublicKeyFromJSONTyped(json, false); -} - -export function EosGetPublicKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): EosGetPublicKey { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'showDisplay': !exists(json, 'showDisplay') ? undefined : json['showDisplay'], - 'kind': json['kind'], - }; -} - -export function EosGetPublicKeyToJSON(value?: EosGetPublicKey | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'showDisplay': value.showDisplay, - 'kind': value.kind, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/GenericResponse.ts b/packages/ts-keepkey-sdk/src/generated/models/GenericResponse.ts deleted file mode 100644 index 9772491..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/GenericResponse.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface GenericResponse - */ -export interface GenericResponse { - /** - * - * @type {boolean} - * @memberof GenericResponse - */ - success: boolean; -} - -/** - * Check if a given object implements the GenericResponse interface. - */ -export function instanceOfGenericResponse(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "success" in value; - - return isInstance; -} - -export function GenericResponseFromJSON(json: any): GenericResponse { - return GenericResponseFromJSONTyped(json, false); -} - -export function GenericResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenericResponse { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'success': json['success'], - }; -} - -export function GenericResponseToJSON(value?: GenericResponse | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'success': value.success, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/GetPublicKey.ts b/packages/ts-keepkey-sdk/src/generated/models/GetPublicKey.ts deleted file mode 100644 index 9232676..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/GetPublicKey.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { BTCInputScriptType } from './BTCInputScriptType'; -import { - BTCInputScriptTypeFromJSON, - BTCInputScriptTypeFromJSONTyped, - BTCInputScriptTypeToJSON, -} from './BTCInputScriptType'; - -/** - * - * @export - * @interface GetPublicKey - */ -export interface GetPublicKey { - /** - * - * @type {Array} - * @memberof GetPublicKey - */ - addressNList: Array; - /** - * - * @type {boolean} - * @memberof GetPublicKey - */ - showDisplay?: boolean; - /** - * - * @type {BTCInputScriptType} - * @memberof GetPublicKey - */ - scriptType?: BTCInputScriptType; - /** - * - * @type {string} - * @memberof GetPublicKey - */ - curve?: string; - /** - * - * @type {string} - * @memberof GetPublicKey - */ - coin: string; - /** - * - * @type {string} - * @memberof GetPublicKey - */ - symbol?: string; -} - -/** - * Check if a given object implements the GetPublicKey interface. - */ -export function instanceOfGetPublicKey(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - isInstance = isInstance && "coin" in value; - - return isInstance; -} - -export function GetPublicKeyFromJSON(json: any): GetPublicKey { - return GetPublicKeyFromJSONTyped(json, false); -} - -export function GetPublicKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPublicKey { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'showDisplay': !exists(json, 'showDisplay') ? undefined : json['showDisplay'], - 'scriptType': !exists(json, 'scriptType') ? undefined : BTCInputScriptTypeFromJSON(json['scriptType']), - 'curve': !exists(json, 'curve') ? undefined : json['curve'], - 'coin': json['coin'], - 'symbol': !exists(json, 'symbol') ? undefined : json['symbol'], - }; -} - -export function GetPublicKeyToJSON(value?: GetPublicKey | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'showDisplay': value.showDisplay, - 'scriptType': BTCInputScriptTypeToJSON(value.scriptType), - 'curve': value.curve, - 'coin': value.coin, - 'symbol': value.symbol, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/GetPublicKeys200ResponseInner.ts b/packages/ts-keepkey-sdk/src/generated/models/GetPublicKeys200ResponseInner.ts deleted file mode 100644 index 7a1b016..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/GetPublicKeys200ResponseInner.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface GetPublicKeys200ResponseInner - */ -export interface GetPublicKeys200ResponseInner { - /** - * - * @type {string} - * @memberof GetPublicKeys200ResponseInner - */ - xpub: string; -} - -/** - * Check if a given object implements the GetPublicKeys200ResponseInner interface. - */ -export function instanceOfGetPublicKeys200ResponseInner(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "xpub" in value; - - return isInstance; -} - -export function GetPublicKeys200ResponseInnerFromJSON(json: any): GetPublicKeys200ResponseInner { - return GetPublicKeys200ResponseInnerFromJSONTyped(json, false); -} - -export function GetPublicKeys200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPublicKeys200ResponseInner { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'xpub': json['xpub'], - }; -} - -export function GetPublicKeys200ResponseInnerToJSON(value?: GetPublicKeys200ResponseInner | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'xpub': value.xpub, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/LoadDevice.ts b/packages/ts-keepkey-sdk/src/generated/models/LoadDevice.ts deleted file mode 100644 index 2e53ce5..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/LoadDevice.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface LoadDevice - */ -export interface LoadDevice { - /** - * 12, 18, or 24 word BIP39 mnemonic - * @type {string} - * @memberof LoadDevice - */ - mnemonic: string; - /** - * User-identifiable device label - * @type {string} - * @memberof LoadDevice - */ - label?: string; - /** - * Whether passphrase protection should be enabled - * @type {boolean} - * @memberof LoadDevice - */ - passphrase?: boolean; - /** - * pin, in plaintext - * @type {string} - * @memberof LoadDevice - */ - pin?: string; - /** - * Whether to enforce checksum - * @type {boolean} - * @memberof LoadDevice - */ - skipChecksum?: boolean; -} - -/** - * Check if a given object implements the LoadDevice interface. - */ -export function instanceOfLoadDevice(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "mnemonic" in value; - - return isInstance; -} - -export function LoadDeviceFromJSON(json: any): LoadDevice { - return LoadDeviceFromJSONTyped(json, false); -} - -export function LoadDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoadDevice { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'mnemonic': json['mnemonic'], - 'label': !exists(json, 'label') ? undefined : json['label'], - 'passphrase': !exists(json, 'passphrase') ? undefined : json['passphrase'], - 'pin': !exists(json, 'pin') ? undefined : json['pin'], - 'skipChecksum': !exists(json, 'skipChecksum') ? undefined : json['skipChecksum'], - }; -} - -export function LoadDeviceToJSON(value?: LoadDevice | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'mnemonic': value.mnemonic, - 'label': value.label, - 'passphrase': value.passphrase, - 'pin': value.pin, - 'skipChecksum': value.skipChecksum, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ModelError.ts b/packages/ts-keepkey-sdk/src/generated/models/ModelError.ts deleted file mode 100644 index 7958e69..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ModelError.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ModelError - */ -export interface ModelError { - /** - * - * @type {boolean} - * @memberof ModelError - */ - success: boolean; - /** - * - * @type {string} - * @memberof ModelError - */ - reason: string; -} - -/** - * Check if a given object implements the ModelError interface. - */ -export function instanceOfModelError(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "success" in value; - isInstance = isInstance && "reason" in value; - - return isInstance; -} - -export function ModelErrorFromJSON(json: any): ModelError { - return ModelErrorFromJSONTyped(json, false); -} - -export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'success': json['success'], - 'reason': json['reason'], - }; -} - -export function ModelErrorToJSON(value?: ModelError | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'success': value.success, - 'reason': value.reason, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/Msg.ts b/packages/ts-keepkey-sdk/src/generated/models/Msg.ts deleted file mode 100644 index 82e02c6..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/Msg.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface Msg - */ -export interface Msg { - /** - * - * @type {string} - * @memberof Msg - */ - type: string; - /** - * - * @type {any} - * @memberof Msg - */ - value: any | null; -} - -/** - * Check if a given object implements the Msg interface. - */ -export function instanceOfMsg(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "type" in value; - isInstance = isInstance && "value" in value; - - return isInstance; -} - -export function MsgFromJSON(json: any): Msg { - return MsgFromJSONTyped(json, false); -} - -export function MsgFromJSONTyped(json: any, ignoreDiscriminator: boolean): Msg { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': json['type'], - 'value': json['value'], - }; -} - -export function MsgToJSON(value?: Msg | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'value': value.value, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/OsmosisGetAddress.ts b/packages/ts-keepkey-sdk/src/generated/models/OsmosisGetAddress.ts deleted file mode 100644 index 66731c1..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/OsmosisGetAddress.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface OsmosisGetAddress - */ -export interface OsmosisGetAddress { - /** - * - * @type {Array} - * @memberof OsmosisGetAddress - */ - addressNList: Array; - /** - * - * @type {boolean} - * @memberof OsmosisGetAddress - */ - showDisplay?: boolean; -} - -/** - * Check if a given object implements the OsmosisGetAddress interface. - */ -export function instanceOfOsmosisGetAddress(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - - return isInstance; -} - -export function OsmosisGetAddressFromJSON(json: any): OsmosisGetAddress { - return OsmosisGetAddressFromJSONTyped(json, false); -} - -export function OsmosisGetAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsmosisGetAddress { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'showDisplay': !exists(json, 'showDisplay') ? undefined : json['showDisplay'], - }; -} - -export function OsmosisGetAddressToJSON(value?: OsmosisGetAddress | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'showDisplay': value.showDisplay, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/PairBody.ts b/packages/ts-keepkey-sdk/src/generated/models/PairBody.ts deleted file mode 100644 index 55ad26b..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/PairBody.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface PairBody - */ -export interface PairBody { - /** - * - * @type {string} - * @memberof PairBody - */ - serviceName: string; - /** - * - * @type {string} - * @memberof PairBody - */ - serviceImageUrl: string; -} - -/** - * Check if a given object implements the PairBody interface. - */ -export function instanceOfPairBody(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "serviceName" in value; - isInstance = isInstance && "serviceImageUrl" in value; - - return isInstance; -} - -export function PairBodyFromJSON(json: any): PairBody { - return PairBodyFromJSONTyped(json, false); -} - -export function PairBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairBody { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'serviceName': json['serviceName'], - 'serviceImageUrl': json['serviceImageUrl'], - }; -} - -export function PairBodyToJSON(value?: PairBody | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'serviceName': value.serviceName, - 'serviceImageUrl': value.serviceImageUrl, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/PairResponse.ts b/packages/ts-keepkey-sdk/src/generated/models/PairResponse.ts deleted file mode 100644 index 7300315..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/PairResponse.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface PairResponse - */ -export interface PairResponse { - /** - * - * @type {boolean} - * @memberof PairResponse - */ - success: boolean; - /** - * - * @type {string} - * @memberof PairResponse - */ - reason: string; -} - -/** - * Check if a given object implements the PairResponse interface. - */ -export function instanceOfPairResponse(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "success" in value; - isInstance = isInstance && "reason" in value; - - return isInstance; -} - -export function PairResponseFromJSON(json: any): PairResponse { - return PairResponseFromJSONTyped(json, false); -} - -export function PairResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairResponse { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'success': json['success'], - 'reason': json['reason'], - }; -} - -export function PairResponseToJSON(value?: PairResponse | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'success': value.success, - 'reason': value.reason, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/PublicKey.ts b/packages/ts-keepkey-sdk/src/generated/models/PublicKey.ts deleted file mode 100644 index 33785c4..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/PublicKey.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface PublicKey - */ -export interface PublicKey { - /** - * - * @type {string} - * @memberof PublicKey - */ - xpub: string; -} - -/** - * Check if a given object implements the PublicKey interface. - */ -export function instanceOfPublicKey(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "xpub" in value; - - return isInstance; -} - -export function PublicKeyFromJSON(json: any): PublicKey { - return PublicKeyFromJSONTyped(json, false); -} - -export function PublicKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicKey { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'xpub': json['xpub'], - }; -} - -export function PublicKeyToJSON(value?: PublicKey | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'xpub': value.xpub, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/Read.ts b/packages/ts-keepkey-sdk/src/generated/models/Read.ts deleted file mode 100644 index 8030ad5..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/Read.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface Read - */ -export interface Read { - /** - * - * @type {string} - * @memberof Read - */ - data: string; -} - -/** - * Check if a given object implements the Read interface. - */ -export function instanceOfRead(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "data" in value; - - return isInstance; -} - -export function ReadFromJSON(json: any): Read { - return ReadFromJSONTyped(json, false); -} - -export function ReadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Read { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': json['data'], - }; -} - -export function ReadToJSON(value?: Read | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': value.data, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ReadDevice200Response.ts b/packages/ts-keepkey-sdk/src/generated/models/ReadDevice200Response.ts deleted file mode 100644 index eda946b..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ReadDevice200Response.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { ModelError } from './ModelError'; -import { - ModelErrorFromJSON, - ModelErrorFromJSONTyped, - ModelErrorToJSON, -} from './ModelError'; -import type { Read } from './Read'; -import { - ReadFromJSON, - ReadFromJSONTyped, - ReadToJSON, -} from './Read'; - -/** - * - * @export - * @interface ReadDevice200Response - */ -export interface ReadDevice200Response { - /** - * - * @type {string} - * @memberof ReadDevice200Response - */ - data: string; - /** - * - * @type {boolean} - * @memberof ReadDevice200Response - */ - success: boolean; - /** - * - * @type {string} - * @memberof ReadDevice200Response - */ - reason: string; -} - -/** - * Check if a given object implements the ReadDevice200Response interface. - */ -export function instanceOfReadDevice200Response(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "data" in value; - isInstance = isInstance && "success" in value; - isInstance = isInstance && "reason" in value; - - return isInstance; -} - -export function ReadDevice200ResponseFromJSON(json: any): ReadDevice200Response { - return ReadDevice200ResponseFromJSONTyped(json, false); -} - -export function ReadDevice200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReadDevice200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': json['data'], - 'success': json['success'], - 'reason': json['reason'], - }; -} - -export function ReadDevice200ResponseToJSON(value?: ReadDevice200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': value.data, - 'success': value.success, - 'reason': value.reason, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/RecoverDevice.ts b/packages/ts-keepkey-sdk/src/generated/models/RecoverDevice.ts deleted file mode 100644 index 470d6a4..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/RecoverDevice.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface RecoverDevice - */ -export interface RecoverDevice { - /** - * Bits. Either 128 (12 words), 192 (18 words), or 256 (24 words) - * @type {number} - * @memberof RecoverDevice - */ - entropy: RecoverDeviceEntropyEnum; - /** - * - * @type {string} - * @memberof RecoverDevice - */ - label: string; - /** - * - * @type {boolean} - * @memberof RecoverDevice - */ - passphrase: boolean; - /** - * - * @type {boolean} - * @memberof RecoverDevice - */ - pin: boolean; - /** - * - * @type {string} - * @memberof RecoverDevice - */ - language?: string; - /** - * - * @type {number} - * @memberof RecoverDevice - */ - autoLockDelayMs?: number; - /** - * - * @type {number} - * @memberof RecoverDevice - */ - u2fCounter?: number; -} - - -/** - * @export - */ -export const RecoverDeviceEntropyEnum = { - NUMBER_128: 128, - NUMBER_192: 192, - NUMBER_256: 256 -} as const; -export type RecoverDeviceEntropyEnum = typeof RecoverDeviceEntropyEnum[keyof typeof RecoverDeviceEntropyEnum]; - - -/** - * Check if a given object implements the RecoverDevice interface. - */ -export function instanceOfRecoverDevice(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "entropy" in value; - isInstance = isInstance && "label" in value; - isInstance = isInstance && "passphrase" in value; - isInstance = isInstance && "pin" in value; - - return isInstance; -} - -export function RecoverDeviceFromJSON(json: any): RecoverDevice { - return RecoverDeviceFromJSONTyped(json, false); -} - -export function RecoverDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecoverDevice { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'entropy': json['entropy'], - 'label': json['label'], - 'passphrase': json['passphrase'], - 'pin': json['pin'], - 'language': !exists(json, 'language') ? undefined : json['language'], - 'autoLockDelayMs': !exists(json, 'autoLockDelayMs') ? undefined : json['autoLockDelayMs'], - 'u2fCounter': !exists(json, 'u2fCounter') ? undefined : json['u2fCounter'], - }; -} - -export function RecoverDeviceToJSON(value?: RecoverDevice | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'entropy': value.entropy, - 'label': value.label, - 'passphrase': value.passphrase, - 'pin': value.pin, - 'language': value.language, - 'autoLockDelayMs': value.autoLockDelayMs, - 'u2fCounter': value.u2fCounter, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ResetDevice.ts b/packages/ts-keepkey-sdk/src/generated/models/ResetDevice.ts deleted file mode 100644 index 70cd2de..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ResetDevice.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ResetDevice - */ -export interface ResetDevice { - /** - * Bits. Either 128 (12 words), 192 (18 words), or 256 (24 words) - * @type {number} - * @memberof ResetDevice - */ - entropy?: ResetDeviceEntropyEnum; - /** - * - * @type {string} - * @memberof ResetDevice - */ - label: string; - /** - * - * @type {boolean} - * @memberof ResetDevice - */ - passphrase?: boolean; - /** - * - * @type {boolean} - * @memberof ResetDevice - */ - pin?: boolean; - /** - * - * @type {number} - * @memberof ResetDevice - */ - autoLockDelayMs?: number; - /** - * - * @type {number} - * @memberof ResetDevice - */ - u2fCounter?: number; -} - - -/** - * @export - */ -export const ResetDeviceEntropyEnum = { - NUMBER_128: 128, - NUMBER_192: 192, - NUMBER_256: 256 -} as const; -export type ResetDeviceEntropyEnum = typeof ResetDeviceEntropyEnum[keyof typeof ResetDeviceEntropyEnum]; - - -/** - * Check if a given object implements the ResetDevice interface. - */ -export function instanceOfResetDevice(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "label" in value; - - return isInstance; -} - -export function ResetDeviceFromJSON(json: any): ResetDevice { - return ResetDeviceFromJSONTyped(json, false); -} - -export function ResetDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetDevice { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'entropy': !exists(json, 'entropy') ? undefined : json['entropy'], - 'label': json['label'], - 'passphrase': !exists(json, 'passphrase') ? undefined : json['passphrase'], - 'pin': !exists(json, 'pin') ? undefined : json['pin'], - 'autoLockDelayMs': !exists(json, 'autoLockDelayMs') ? undefined : json['autoLockDelayMs'], - 'u2fCounter': !exists(json, 'u2fCounter') ? undefined : json['u2fCounter'], - }; -} - -export function ResetDeviceToJSON(value?: ResetDevice | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'entropy': value.entropy, - 'label': value.label, - 'passphrase': value.passphrase, - 'pin': value.pin, - 'autoLockDelayMs': value.autoLockDelayMs, - 'u2fCounter': value.u2fCounter, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/RippleGetAddress.ts b/packages/ts-keepkey-sdk/src/generated/models/RippleGetAddress.ts deleted file mode 100644 index 21b80f3..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/RippleGetAddress.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface RippleGetAddress - */ -export interface RippleGetAddress { - /** - * - * @type {Array} - * @memberof RippleGetAddress - */ - addressNList: Array; - /** - * - * @type {boolean} - * @memberof RippleGetAddress - */ - showDisplay?: boolean; -} - -/** - * Check if a given object implements the RippleGetAddress interface. - */ -export function instanceOfRippleGetAddress(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - - return isInstance; -} - -export function RippleGetAddressFromJSON(json: any): RippleGetAddress { - return RippleGetAddressFromJSONTyped(json, false); -} - -export function RippleGetAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): RippleGetAddress { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'showDisplay': !exists(json, 'showDisplay') ? undefined : json['showDisplay'], - }; -} - -export function RippleGetAddressToJSON(value?: RippleGetAddress | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'showDisplay': value.showDisplay, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/RipplePayment.ts b/packages/ts-keepkey-sdk/src/generated/models/RipplePayment.ts deleted file mode 100644 index 52c244a..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/RipplePayment.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface RipplePayment - */ -export interface RipplePayment { - /** - * - * @type {string} - * @memberof RipplePayment - */ - amount: string; - /** - * - * @type {string} - * @memberof RipplePayment - */ - destination: string; - /** - * - * @type {string} - * @memberof RipplePayment - */ - destinationTag?: string; -} - -/** - * Check if a given object implements the RipplePayment interface. - */ -export function instanceOfRipplePayment(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "destination" in value; - - return isInstance; -} - -export function RipplePaymentFromJSON(json: any): RipplePayment { - return RipplePaymentFromJSONTyped(json, false); -} - -export function RipplePaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RipplePayment { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'amount': json['amount'], - 'destination': json['destination'], - 'destinationTag': !exists(json, 'destinationTag') ? undefined : json['destinationTag'], - }; -} - -export function RipplePaymentToJSON(value?: RipplePayment | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'amount': value.amount, - 'destination': value.destination, - 'destinationTag': value.destinationTag, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/RippleSignTx.ts b/packages/ts-keepkey-sdk/src/generated/models/RippleSignTx.ts deleted file mode 100644 index 8bd19ce..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/RippleSignTx.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { RipplePayment } from './RipplePayment'; -import { - RipplePaymentFromJSON, - RipplePaymentFromJSONTyped, - RipplePaymentToJSON, -} from './RipplePayment'; -import type { RippleTx } from './RippleTx'; -import { - RippleTxFromJSON, - RippleTxFromJSONTyped, - RippleTxToJSON, -} from './RippleTx'; - -/** - * - * @export - * @interface RippleSignTx - */ -export interface RippleSignTx { - /** - * - * @type {Array} - * @memberof RippleSignTx - */ - addressNList: Array; - /** - * - * @type {RippleTx} - * @memberof RippleSignTx - */ - tx: RippleTx; - /** - * - * @type {string} - * @memberof RippleSignTx - */ - flags?: string; - /** - * - * @type {string} - * @memberof RippleSignTx - */ - sequence: string; - /** - * - * @type {string} - * @memberof RippleSignTx - */ - lastLedgerSequence: string; - /** - * - * @type {RipplePayment} - * @memberof RippleSignTx - */ - payment: RipplePayment; -} - -/** - * Check if a given object implements the RippleSignTx interface. - */ -export function instanceOfRippleSignTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - isInstance = isInstance && "tx" in value; - isInstance = isInstance && "sequence" in value; - isInstance = isInstance && "lastLedgerSequence" in value; - isInstance = isInstance && "payment" in value; - - return isInstance; -} - -export function RippleSignTxFromJSON(json: any): RippleSignTx { - return RippleSignTxFromJSONTyped(json, false); -} - -export function RippleSignTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): RippleSignTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'tx': RippleTxFromJSON(json['tx']), - 'flags': !exists(json, 'flags') ? undefined : json['flags'], - 'sequence': json['sequence'], - 'lastLedgerSequence': json['lastLedgerSequence'], - 'payment': RipplePaymentFromJSON(json['payment']), - }; -} - -export function RippleSignTxToJSON(value?: RippleSignTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'tx': RippleTxToJSON(value.tx), - 'flags': value.flags, - 'sequence': value.sequence, - 'lastLedgerSequence': value.lastLedgerSequence, - 'payment': RipplePaymentToJSON(value.payment), - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/RippleStdTx.ts b/packages/ts-keepkey-sdk/src/generated/models/RippleStdTx.ts deleted file mode 100644 index f2b94f4..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/RippleStdTx.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { SdkMsg } from './SdkMsg'; -import { - SdkMsgFromJSON, - SdkMsgFromJSONTyped, - SdkMsgToJSON, -} from './SdkMsg'; -import type { StdFee } from './StdFee'; -import { - StdFeeFromJSON, - StdFeeFromJSONTyped, - StdFeeToJSON, -} from './StdFee'; -import type { StdSignature } from './StdSignature'; -import { - StdSignatureFromJSON, - StdSignatureFromJSONTyped, - StdSignatureToJSON, -} from './StdSignature'; - -/** - * - * @export - * @interface RippleStdTx - */ -export interface RippleStdTx { - /** - * - * @type {Array} - * @memberof RippleStdTx - */ - msg: Array; - /** - * - * @type {StdFee} - * @memberof RippleStdTx - */ - fee: StdFee; - /** - * - * @type {Array} - * @memberof RippleStdTx - */ - signatures: Array | null; - /** - * - * @type {string} - * @memberof RippleStdTx - */ - memo: string; -} - -/** - * Check if a given object implements the RippleStdTx interface. - */ -export function instanceOfRippleStdTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "msg" in value; - isInstance = isInstance && "fee" in value; - isInstance = isInstance && "signatures" in value; - isInstance = isInstance && "memo" in value; - - return isInstance; -} - -export function RippleStdTxFromJSON(json: any): RippleStdTx { - return RippleStdTxFromJSONTyped(json, false); -} - -export function RippleStdTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): RippleStdTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'msg': ((json['msg'] as Array).map(SdkMsgFromJSON)), - 'fee': StdFeeFromJSON(json['fee']), - 'signatures': (json['signatures'] === null ? null : (json['signatures'] as Array).map(StdSignatureFromJSON)), - 'memo': json['memo'], - }; -} - -export function RippleStdTxToJSON(value?: RippleStdTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'msg': ((value.msg as Array).map(SdkMsgToJSON)), - 'fee': StdFeeToJSON(value.fee), - 'signatures': (value.signatures === null ? null : (value.signatures as Array).map(StdSignatureToJSON)), - 'memo': value.memo, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/RippleTx.ts b/packages/ts-keepkey-sdk/src/generated/models/RippleTx.ts deleted file mode 100644 index 2905299..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/RippleTx.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { RippleStdTx } from './RippleStdTx'; -import { - RippleStdTxFromJSON, - RippleStdTxFromJSONTyped, - RippleStdTxToJSON, -} from './RippleStdTx'; - -/** - * - * @export - * @interface RippleTx - */ -export interface RippleTx { - /** - * - * @type {string} - * @memberof RippleTx - */ - type: string; - /** - * - * @type {RippleStdTx} - * @memberof RippleTx - */ - value: RippleStdTx; -} - -/** - * Check if a given object implements the RippleTx interface. - */ -export function instanceOfRippleTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "type" in value; - isInstance = isInstance && "value" in value; - - return isInstance; -} - -export function RippleTxFromJSON(json: any): RippleTx { - return RippleTxFromJSONTyped(json, false); -} - -export function RippleTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): RippleTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': json['type'], - 'value': RippleStdTxFromJSON(json['value']), - }; -} - -export function RippleTxToJSON(value?: RippleTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'value': RippleStdTxToJSON(value.value), - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/SdkMsg.ts b/packages/ts-keepkey-sdk/src/generated/models/SdkMsg.ts deleted file mode 100644 index daadfb1..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/SdkMsg.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface SdkMsg - */ -export interface SdkMsg { - /** - * - * @type {string} - * @memberof SdkMsg - */ - type: string; - /** - * - * @type {any} - * @memberof SdkMsg - */ - value: any | null; -} - -/** - * Check if a given object implements the SdkMsg interface. - */ -export function instanceOfSdkMsg(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "type" in value; - isInstance = isInstance && "value" in value; - - return isInstance; -} - -export function SdkMsgFromJSON(json: any): SdkMsg { - return SdkMsgFromJSONTyped(json, false); -} - -export function SdkMsgFromJSONTyped(json: any, ignoreDiscriminator: boolean): SdkMsg { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': json['type'], - 'value': json['value'], - }; -} - -export function SdkMsgToJSON(value?: SdkMsg | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'value': value.value, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/SignTransaction200Response.ts b/packages/ts-keepkey-sdk/src/generated/models/SignTransaction200Response.ts deleted file mode 100644 index 29b17b1..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/SignTransaction200Response.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { ModelError } from './ModelError'; -import { - ModelErrorFromJSON, - ModelErrorFromJSONTyped, - ModelErrorToJSON, -} from './ModelError'; -import type { SignedTx } from './SignedTx'; -import { - SignedTxFromJSON, - SignedTxFromJSONTyped, - SignedTxToJSON, -} from './SignedTx'; - -/** - * - * @export - * @interface SignTransaction200Response - */ -export interface SignTransaction200Response { - /** - * - * @type {boolean} - * @memberof SignTransaction200Response - */ - success: boolean; - /** - * - * @type {string} - * @memberof SignTransaction200Response - */ - status: string; - /** - * - * @type {any} - * @memberof SignTransaction200Response - */ - signedTx: any | null; - /** - * - * @type {string} - * @memberof SignTransaction200Response - */ - reason: string; -} - -/** - * Check if a given object implements the SignTransaction200Response interface. - */ -export function instanceOfSignTransaction200Response(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "success" in value; - isInstance = isInstance && "status" in value; - isInstance = isInstance && "signedTx" in value; - isInstance = isInstance && "reason" in value; - - return isInstance; -} - -export function SignTransaction200ResponseFromJSON(json: any): SignTransaction200Response { - return SignTransaction200ResponseFromJSONTyped(json, false); -} - -export function SignTransaction200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignTransaction200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'success': json['success'], - 'status': json['status'], - 'signedTx': json['signedTx'], - 'reason': json['reason'], - }; -} - -export function SignTransaction200ResponseToJSON(value?: SignTransaction200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'success': value.success, - 'status': value.status, - 'signedTx': value.signedTx, - 'reason': value.reason, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/SignedTx.ts b/packages/ts-keepkey-sdk/src/generated/models/SignedTx.ts deleted file mode 100644 index 78f867f..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/SignedTx.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface SignedTx - */ -export interface SignedTx { - /** - * - * @type {boolean} - * @memberof SignedTx - */ - success: boolean; - /** - * - * @type {string} - * @memberof SignedTx - */ - status: string; - /** - * - * @type {any} - * @memberof SignedTx - */ - signedTx: any | null; -} - -/** - * Check if a given object implements the SignedTx interface. - */ -export function instanceOfSignedTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "success" in value; - isInstance = isInstance && "status" in value; - isInstance = isInstance && "signedTx" in value; - - return isInstance; -} - -export function SignedTxFromJSON(json: any): SignedTx { - return SignedTxFromJSONTyped(json, false); -} - -export function SignedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignedTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'success': json['success'], - 'status': json['status'], - 'signedTx': json['signedTx'], - }; -} - -export function SignedTxToJSON(value?: SignedTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'success': value.success, - 'status': value.status, - 'signedTx': value.signedTx, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/Status.ts b/packages/ts-keepkey-sdk/src/generated/models/Status.ts deleted file mode 100644 index 4de9df5..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/Status.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface Status - */ -export interface Status { - /** - * - * @type {boolean} - * @memberof Status - */ - success: boolean; - /** - * - * @type {string} - * @memberof Status - */ - status: string; - /** - * - * @type {number} - * @memberof Status - */ - state: number; -} - -/** - * Check if a given object implements the Status interface. - */ -export function instanceOfStatus(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "success" in value; - isInstance = isInstance && "status" in value; - isInstance = isInstance && "state" in value; - - return isInstance; -} - -export function StatusFromJSON(json: any): Status { - return StatusFromJSONTyped(json, false); -} - -export function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'success': json['success'], - 'status': json['status'], - 'state': json['state'], - }; -} - -export function StatusToJSON(value?: Status | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'success': value.success, - 'status': value.status, - 'state': value.state, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/StdFee.ts b/packages/ts-keepkey-sdk/src/generated/models/StdFee.ts deleted file mode 100644 index 9be5b7e..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/StdFee.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface StdFee - */ -export interface StdFee { - /** - * - * @type {Array} - * @memberof StdFee - */ - amount: Array; - /** - * - * @type {string} - * @memberof StdFee - */ - gas: string; -} - -/** - * Check if a given object implements the StdFee interface. - */ -export function instanceOfStdFee(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "gas" in value; - - return isInstance; -} - -export function StdFeeFromJSON(json: any): StdFee { - return StdFeeFromJSONTyped(json, false); -} - -export function StdFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StdFee { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'amount': json['amount'], - 'gas': json['gas'], - }; -} - -export function StdFeeToJSON(value?: StdFee | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'amount': value.amount, - 'gas': value.gas, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/StdSignature.ts b/packages/ts-keepkey-sdk/src/generated/models/StdSignature.ts deleted file mode 100644 index 4415dc1..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/StdSignature.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { CryptoPubKey } from './CryptoPubKey'; -import { - CryptoPubKeyFromJSON, - CryptoPubKeyFromJSONTyped, - CryptoPubKeyToJSON, -} from './CryptoPubKey'; - -/** - * - * @export - * @interface StdSignature - */ -export interface StdSignature { - /** - * - * @type {CryptoPubKey} - * @memberof StdSignature - */ - pubKey: CryptoPubKey; - /** - * - * @type {string} - * @memberof StdSignature - */ - signature: string; -} - -/** - * Check if a given object implements the StdSignature interface. - */ -export function instanceOfStdSignature(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "pubKey" in value; - isInstance = isInstance && "signature" in value; - - return isInstance; -} - -export function StdSignatureFromJSON(json: any): StdSignature { - return StdSignatureFromJSONTyped(json, false); -} - -export function StdSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): StdSignature { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'pubKey': CryptoPubKeyFromJSON(json['pub_key']), - 'signature': json['signature'], - }; -} - -export function StdSignatureToJSON(value?: StdSignature | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'pub_key': CryptoPubKeyToJSON(value.pubKey), - 'signature': value.signature, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ThorchainGetAddress.ts b/packages/ts-keepkey-sdk/src/generated/models/ThorchainGetAddress.ts deleted file mode 100644 index b49211b..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ThorchainGetAddress.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ThorchainGetAddress - */ -export interface ThorchainGetAddress { - /** - * - * @type {Array} - * @memberof ThorchainGetAddress - */ - addressNList: Array; - /** - * - * @type {boolean} - * @memberof ThorchainGetAddress - */ - showDisplay?: boolean; - /** - * - * @type {boolean} - * @memberof ThorchainGetAddress - */ - testnet?: boolean; -} - -/** - * Check if a given object implements the ThorchainGetAddress interface. - */ -export function instanceOfThorchainGetAddress(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - - return isInstance; -} - -export function ThorchainGetAddressFromJSON(json: any): ThorchainGetAddress { - return ThorchainGetAddressFromJSONTyped(json, false); -} - -export function ThorchainGetAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThorchainGetAddress { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'showDisplay': !exists(json, 'showDisplay') ? undefined : json['showDisplay'], - 'testnet': !exists(json, 'testnet') ? undefined : json['testnet'], - }; -} - -export function ThorchainGetAddressToJSON(value?: ThorchainGetAddress | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'showDisplay': value.showDisplay, - 'testnet': value.testnet, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ThorchainMsg.ts b/packages/ts-keepkey-sdk/src/generated/models/ThorchainMsg.ts deleted file mode 100644 index 2c52110..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ThorchainMsg.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ThorchainMsg - */ -export interface ThorchainMsg { - /** - * - * @type {string} - * @memberof ThorchainMsg - */ - type: string; - /** - * - * @type {any} - * @memberof ThorchainMsg - */ - value: any | null; -} - -/** - * Check if a given object implements the ThorchainMsg interface. - */ -export function instanceOfThorchainMsg(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "type" in value; - isInstance = isInstance && "value" in value; - - return isInstance; -} - -export function ThorchainMsgFromJSON(json: any): ThorchainMsg { - return ThorchainMsgFromJSONTyped(json, false); -} - -export function ThorchainMsgFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThorchainMsg { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'type': json['type'], - 'value': json['value'], - }; -} - -export function ThorchainMsgToJSON(value?: ThorchainMsg | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'type': value.type, - 'value': value.value, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ThorchainSignTx.ts b/packages/ts-keepkey-sdk/src/generated/models/ThorchainSignTx.ts deleted file mode 100644 index 6b6fc49..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ThorchainSignTx.ts +++ /dev/null @@ -1,125 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { ThorchainStdTx } from './ThorchainStdTx'; -import { - ThorchainStdTxFromJSON, - ThorchainStdTxFromJSONTyped, - ThorchainStdTxToJSON, -} from './ThorchainStdTx'; - -/** - * - * @export - * @interface ThorchainSignTx - */ -export interface ThorchainSignTx { - /** - * - * @type {Array} - * @memberof ThorchainSignTx - */ - addressNList: Array; - /** - * - * @type {ThorchainStdTx} - * @memberof ThorchainSignTx - */ - tx: ThorchainStdTx; - /** - * - * @type {string} - * @memberof ThorchainSignTx - */ - sequence: string; - /** - * - * @type {string} - * @memberof ThorchainSignTx - */ - accountNumber: string; - /** - * - * @type {string} - * @memberof ThorchainSignTx - */ - chainId: string; - /** - * - * @type {number} - * @memberof ThorchainSignTx - */ - fee?: number; - /** - * - * @type {boolean} - * @memberof ThorchainSignTx - */ - testnet?: boolean; -} - -/** - * Check if a given object implements the ThorchainSignTx interface. - */ -export function instanceOfThorchainSignTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "addressNList" in value; - isInstance = isInstance && "tx" in value; - isInstance = isInstance && "sequence" in value; - isInstance = isInstance && "accountNumber" in value; - isInstance = isInstance && "chainId" in value; - - return isInstance; -} - -export function ThorchainSignTxFromJSON(json: any): ThorchainSignTx { - return ThorchainSignTxFromJSONTyped(json, false); -} - -export function ThorchainSignTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThorchainSignTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'addressNList': json['addressNList'], - 'tx': ThorchainStdTxFromJSON(json['tx']), - 'sequence': json['sequence'], - 'accountNumber': json['account_number'], - 'chainId': json['chain_id'], - 'fee': !exists(json, 'fee') ? undefined : json['fee'], - 'testnet': !exists(json, 'testnet') ? undefined : json['testnet'], - }; -} - -export function ThorchainSignTxToJSON(value?: ThorchainSignTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'addressNList': value.addressNList, - 'tx': ThorchainStdTxToJSON(value.tx), - 'sequence': value.sequence, - 'account_number': value.accountNumber, - 'chain_id': value.chainId, - 'fee': value.fee, - 'testnet': value.testnet, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ThorchainStdFee.ts b/packages/ts-keepkey-sdk/src/generated/models/ThorchainStdFee.ts deleted file mode 100644 index 037f02e..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ThorchainStdFee.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface ThorchainStdFee - */ -export interface ThorchainStdFee { - /** - * - * @type {Array} - * @memberof ThorchainStdFee - */ - amount: Array; - /** - * - * @type {string} - * @memberof ThorchainStdFee - */ - gas: string; -} - -/** - * Check if a given object implements the ThorchainStdFee interface. - */ -export function instanceOfThorchainStdFee(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "amount" in value; - isInstance = isInstance && "gas" in value; - - return isInstance; -} - -export function ThorchainStdFeeFromJSON(json: any): ThorchainStdFee { - return ThorchainStdFeeFromJSONTyped(json, false); -} - -export function ThorchainStdFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThorchainStdFee { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'amount': json['amount'], - 'gas': json['gas'], - }; -} - -export function ThorchainStdFeeToJSON(value?: ThorchainStdFee | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'amount': value.amount, - 'gas': value.gas, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ThorchainStdSignature.ts b/packages/ts-keepkey-sdk/src/generated/models/ThorchainStdSignature.ts deleted file mode 100644 index 0ff1b37..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ThorchainStdSignature.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { CryptoPubKey } from './CryptoPubKey'; -import { - CryptoPubKeyFromJSON, - CryptoPubKeyFromJSONTyped, - CryptoPubKeyToJSON, -} from './CryptoPubKey'; - -/** - * - * @export - * @interface ThorchainStdSignature - */ -export interface ThorchainStdSignature { - /** - * - * @type {CryptoPubKey} - * @memberof ThorchainStdSignature - */ - pubKey: CryptoPubKey; - /** - * - * @type {string} - * @memberof ThorchainStdSignature - */ - signature: string; -} - -/** - * Check if a given object implements the ThorchainStdSignature interface. - */ -export function instanceOfThorchainStdSignature(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "pubKey" in value; - isInstance = isInstance && "signature" in value; - - return isInstance; -} - -export function ThorchainStdSignatureFromJSON(json: any): ThorchainStdSignature { - return ThorchainStdSignatureFromJSONTyped(json, false); -} - -export function ThorchainStdSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThorchainStdSignature { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'pubKey': CryptoPubKeyFromJSON(json['pub_key']), - 'signature': json['signature'], - }; -} - -export function ThorchainStdSignatureToJSON(value?: ThorchainStdSignature | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'pub_key': CryptoPubKeyToJSON(value.pubKey), - 'signature': value.signature, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ThorchainStdTx.ts b/packages/ts-keepkey-sdk/src/generated/models/ThorchainStdTx.ts deleted file mode 100644 index 6cb176f..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ThorchainStdTx.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { Msg } from './Msg'; -import { - MsgFromJSON, - MsgFromJSONTyped, - MsgToJSON, -} from './Msg'; -import type { StdFee } from './StdFee'; -import { - StdFeeFromJSON, - StdFeeFromJSONTyped, - StdFeeToJSON, -} from './StdFee'; -import type { StdSignature } from './StdSignature'; -import { - StdSignatureFromJSON, - StdSignatureFromJSONTyped, - StdSignatureToJSON, -} from './StdSignature'; - -/** - * - * @export - * @interface ThorchainStdTx - */ -export interface ThorchainStdTx { - /** - * - * @type {StdFee} - * @memberof ThorchainStdTx - */ - fee: StdFee; - /** - * - * @type {string} - * @memberof ThorchainStdTx - */ - memo?: string; - /** - * - * @type {Array} - * @memberof ThorchainStdTx - */ - msg: Array; - /** - * - * @type {Array} - * @memberof ThorchainStdTx - */ - signatures: Array; -} - -/** - * Check if a given object implements the ThorchainStdTx interface. - */ -export function instanceOfThorchainStdTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "fee" in value; - isInstance = isInstance && "msg" in value; - isInstance = isInstance && "signatures" in value; - - return isInstance; -} - -export function ThorchainStdTxFromJSON(json: any): ThorchainStdTx { - return ThorchainStdTxFromJSONTyped(json, false); -} - -export function ThorchainStdTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThorchainStdTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'fee': StdFeeFromJSON(json['fee']), - 'memo': !exists(json, 'memo') ? undefined : json['memo'], - 'msg': ((json['msg'] as Array).map(MsgFromJSON)), - 'signatures': ((json['signatures'] as Array).map(StdSignatureFromJSON)), - }; -} - -export function ThorchainStdTxToJSON(value?: ThorchainStdTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'fee': StdFeeToJSON(value.fee), - 'memo': value.memo, - 'msg': ((value.msg as Array).map(MsgToJSON)), - 'signatures': ((value.signatures as Array).map(StdSignatureToJSON)), - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/ThorchainTx.ts b/packages/ts-keepkey-sdk/src/generated/models/ThorchainTx.ts deleted file mode 100644 index 15ba81e..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/ThorchainTx.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { ThorchainMsg } from './ThorchainMsg'; -import { - ThorchainMsgFromJSON, - ThorchainMsgFromJSONTyped, - ThorchainMsgToJSON, -} from './ThorchainMsg'; -import type { ThorchainStdFee } from './ThorchainStdFee'; -import { - ThorchainStdFeeFromJSON, - ThorchainStdFeeFromJSONTyped, - ThorchainStdFeeToJSON, -} from './ThorchainStdFee'; -import type { ThorchainStdSignature } from './ThorchainStdSignature'; -import { - ThorchainStdSignatureFromJSON, - ThorchainStdSignatureFromJSONTyped, - ThorchainStdSignatureToJSON, -} from './ThorchainStdSignature'; - -/** - * - * @export - * @interface ThorchainTx - */ -export interface ThorchainTx { - /** - * - * @type {Array} - * @memberof ThorchainTx - */ - msg: Array; - /** - * - * @type {ThorchainStdFee} - * @memberof ThorchainTx - */ - fee: ThorchainStdFee; - /** - * - * @type {Array} - * @memberof ThorchainTx - */ - signatures: Array; - /** - * - * @type {string} - * @memberof ThorchainTx - */ - memo?: string; -} - -/** - * Check if a given object implements the ThorchainTx interface. - */ -export function instanceOfThorchainTx(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "msg" in value; - isInstance = isInstance && "fee" in value; - isInstance = isInstance && "signatures" in value; - - return isInstance; -} - -export function ThorchainTxFromJSON(json: any): ThorchainTx { - return ThorchainTxFromJSONTyped(json, false); -} - -export function ThorchainTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThorchainTx { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'msg': ((json['msg'] as Array).map(ThorchainMsgFromJSON)), - 'fee': ThorchainStdFeeFromJSON(json['fee']), - 'signatures': ((json['signatures'] as Array).map(ThorchainStdSignatureFromJSON)), - 'memo': !exists(json, 'memo') ? undefined : json['memo'], - }; -} - -export function ThorchainTxToJSON(value?: ThorchainTx | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'msg': ((value.msg as Array).map(ThorchainMsgToJSON)), - 'fee': ThorchainStdFeeToJSON(value.fee), - 'signatures': ((value.signatures as Array).map(ThorchainStdSignatureToJSON)), - 'memo': value.memo, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/UserType.ts b/packages/ts-keepkey-sdk/src/generated/models/UserType.ts deleted file mode 100644 index d2d4805..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/UserType.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { UserTypeAccountsInner } from './UserTypeAccountsInner'; -import { - UserTypeAccountsInnerFromJSON, - UserTypeAccountsInnerFromJSONTyped, - UserTypeAccountsInnerToJSON, -} from './UserTypeAccountsInner'; - -/** - * - * @export - * @interface UserType - */ -export interface UserType { - /** - * - * @type {Array} - * @memberof UserType - */ - balances: Array; - /** - * - * @type {Array} - * @memberof UserType - */ - accounts: Array; - /** - * - * @type {boolean} - * @memberof UserType - */ - online: boolean; -} - -/** - * Check if a given object implements the UserType interface. - */ -export function instanceOfUserType(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "balances" in value; - isInstance = isInstance && "accounts" in value; - isInstance = isInstance && "online" in value; - - return isInstance; -} - -export function UserTypeFromJSON(json: any): UserType { - return UserTypeFromJSONTyped(json, false); -} - -export function UserTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserType { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'balances': json['balances'], - 'accounts': ((json['accounts'] as Array).map(UserTypeAccountsInnerFromJSON)), - 'online': json['online'], - }; -} - -export function UserTypeToJSON(value?: UserType | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'balances': value.balances, - 'accounts': ((value.accounts as Array).map(UserTypeAccountsInnerToJSON)), - 'online': value.online, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/UserTypeAccountsInner.ts b/packages/ts-keepkey-sdk/src/generated/models/UserTypeAccountsInner.ts deleted file mode 100644 index b7ae379..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/UserTypeAccountsInner.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface UserTypeAccountsInner - */ -export interface UserTypeAccountsInner { - /** - * - * @type {string} - * @memberof UserTypeAccountsInner - */ - caip: string; - /** - * - * @type {any} - * @memberof UserTypeAccountsInner - */ - pubkey: any | null; -} - -/** - * Check if a given object implements the UserTypeAccountsInner interface. - */ -export function instanceOfUserTypeAccountsInner(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "caip" in value; - isInstance = isInstance && "pubkey" in value; - - return isInstance; -} - -export function UserTypeAccountsInnerFromJSON(json: any): UserTypeAccountsInner { - return UserTypeAccountsInnerFromJSONTyped(json, false); -} - -export function UserTypeAccountsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserTypeAccountsInner { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'caip': json['caip'], - 'pubkey': json['pubkey'], - }; -} - -export function UserTypeAccountsInnerToJSON(value?: UserTypeAccountsInner | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'caip': value.caip, - 'pubkey': value.pubkey, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/Write.ts b/packages/ts-keepkey-sdk/src/generated/models/Write.ts deleted file mode 100644 index 070c65d..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/Write.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface Write - */ -export interface Write { - /** - * - * @type {string} - * @memberof Write - */ - output: string; -} - -/** - * Check if a given object implements the Write interface. - */ -export function instanceOfWrite(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "output" in value; - - return isInstance; -} - -export function WriteFromJSON(json: any): Write { - return WriteFromJSONTyped(json, false); -} - -export function WriteFromJSONTyped(json: any, ignoreDiscriminator: boolean): Write { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'output': json['output'], - }; -} - -export function WriteToJSON(value?: Write | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'output': value.output, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/WriteBody.ts b/packages/ts-keepkey-sdk/src/generated/models/WriteBody.ts deleted file mode 100644 index 539dbc3..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/WriteBody.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -/** - * - * @export - * @interface WriteBody - */ -export interface WriteBody { - /** - * - * @type {any} - * @memberof WriteBody - */ - data: any | null; -} - -/** - * Check if a given object implements the WriteBody interface. - */ -export function instanceOfWriteBody(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "data" in value; - - return isInstance; -} - -export function WriteBodyFromJSON(json: any): WriteBody { - return WriteBodyFromJSONTyped(json, false); -} - -export function WriteBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WriteBody { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'data': json['data'], - }; -} - -export function WriteBodyToJSON(value?: WriteBody | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'data': value.data, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/WriteDevice200Response.ts b/packages/ts-keepkey-sdk/src/generated/models/WriteDevice200Response.ts deleted file mode 100644 index 6cd822a..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/WriteDevice200Response.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime'; -import type { ModelError } from './ModelError'; -import { - ModelErrorFromJSON, - ModelErrorFromJSONTyped, - ModelErrorToJSON, -} from './ModelError'; -import type { Write } from './Write'; -import { - WriteFromJSON, - WriteFromJSONTyped, - WriteToJSON, -} from './Write'; - -/** - * - * @export - * @interface WriteDevice200Response - */ -export interface WriteDevice200Response { - /** - * - * @type {string} - * @memberof WriteDevice200Response - */ - output: string; - /** - * - * @type {boolean} - * @memberof WriteDevice200Response - */ - success: boolean; - /** - * - * @type {string} - * @memberof WriteDevice200Response - */ - reason: string; -} - -/** - * Check if a given object implements the WriteDevice200Response interface. - */ -export function instanceOfWriteDevice200Response(value: object): boolean { - let isInstance = true; - isInstance = isInstance && "output" in value; - isInstance = isInstance && "success" in value; - isInstance = isInstance && "reason" in value; - - return isInstance; -} - -export function WriteDevice200ResponseFromJSON(json: any): WriteDevice200Response { - return WriteDevice200ResponseFromJSONTyped(json, false); -} - -export function WriteDevice200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WriteDevice200Response { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'output': json['output'], - 'success': json['success'], - 'reason': json['reason'], - }; -} - -export function WriteDevice200ResponseToJSON(value?: WriteDevice200Response | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'output': value.output, - 'success': value.success, - 'reason': value.reason, - }; -} - diff --git a/packages/ts-keepkey-sdk/src/generated/models/index.ts b/packages/ts-keepkey-sdk/src/generated/models/index.ts deleted file mode 100644 index 3cd88af..0000000 --- a/packages/ts-keepkey-sdk/src/generated/models/index.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export * from './BTCGetAddress'; -export * from './BTCInputScriptType'; -export * from './BTCSignedTx'; -export * from './BinanceGetAddress'; -export * from './CosmosGetAddress'; -export * from './CosmosSignTx'; -export * from './CosmosSignedTx'; -export * from './CosmosStdTx'; -export * from './CryptoPubKey'; -export * from './ETHGetAddress'; -export * from './ETHSignedTx'; -export * from './EosGetPublicKey'; -export * from './GenericResponse'; -export * from './GetPublicKey'; -export * from './GetPublicKeys200ResponseInner'; -export * from './LoadDevice'; -export * from './ModelError'; -export * from './Msg'; -export * from './OsmosisGetAddress'; -export * from './PairBody'; -export * from './PairResponse'; -export * from './PublicKey'; -export * from './Read'; -export * from './ReadDevice200Response'; -export * from './RecoverDevice'; -export * from './ResetDevice'; -export * from './RippleGetAddress'; -export * from './RipplePayment'; -export * from './RippleSignTx'; -export * from './RippleStdTx'; -export * from './RippleTx'; -export * from './SdkMsg'; -export * from './SignTransaction200Response'; -export * from './SignedTx'; -export * from './Status'; -export * from './StdFee'; -export * from './StdSignature'; -export * from './ThorchainGetAddress'; -export * from './ThorchainMsg'; -export * from './ThorchainSignTx'; -export * from './ThorchainStdFee'; -export * from './ThorchainStdSignature'; -export * from './ThorchainStdTx'; -export * from './ThorchainTx'; -export * from './UserType'; -export * from './UserTypeAccountsInner'; -export * from './Write'; -export * from './WriteBody'; -export * from './WriteDevice200Response'; diff --git a/packages/ts-keepkey-sdk/src/generated/runtime.ts b/packages/ts-keepkey-sdk/src/generated/runtime.ts deleted file mode 100644 index ca14653..0000000 --- a/packages/ts-keepkey-sdk/src/generated/runtime.ts +++ /dev/null @@ -1,407 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * keepkey-desktop - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.1.85 - * Contact: bithighlander@gmail.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export const BASE_PATH = "http://localhost:1646".replace(/\/+$/, ""); - -export interface ConfigurationParameters { - basePath?: string; // override base path - fetchApi?: FetchAPI; // override for fetch implementation - middleware?: Middleware[]; // middleware to apply before/after fetch requests - queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings - username?: string; // parameter for basic security - password?: string; // parameter for basic security - apiKey?: string | ((name: string) => string); // parameter for apiKey security - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security - headers?: HTTPHeaders; //header params we want to use on every request - credentials?: RequestCredentials; //value for the credentials param we want to use on each request -} - -export class Configuration { - constructor(private configuration: ConfigurationParameters = {}) {} - - set config(configuration: Configuration) { - this.configuration = configuration; - } - - get basePath(): string { - return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; - } - - get fetchApi(): FetchAPI | undefined { - return this.configuration.fetchApi; - } - - get middleware(): Middleware[] { - return this.configuration.middleware || []; - } - - get queryParamsStringify(): (params: HTTPQuery) => string { - return this.configuration.queryParamsStringify || querystring; - } - - get username(): string | undefined { - return this.configuration.username; - } - - get password(): string | undefined { - return this.configuration.password; - } - - get apiKey(): ((name: string) => string) | undefined { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === 'function' ? apiKey : () => apiKey; - } - return undefined; - } - - get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === 'function' ? accessToken : async () => accessToken; - } - return undefined; - } - - get headers(): HTTPHeaders | undefined { - return this.configuration.headers; - } - - get credentials(): RequestCredentials | undefined { - return this.configuration.credentials; - } -} - -export const DefaultConfig = new Configuration(); - -/** - * This is the base class for all generated API classes. - */ -export class BaseAPI { - - private middleware: Middleware[]; - - constructor(protected configuration = DefaultConfig) { - this.middleware = configuration.middleware; - } - - withMiddleware(this: T, ...middlewares: Middleware[]) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - - withPreMiddleware(this: T, ...preMiddlewares: Array) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - - withPostMiddleware(this: T, ...postMiddlewares: Array) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - - protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && (response.status >= 200 && response.status < 300)) { - return response; - } - throw new ResponseError(response, 'Response returned an error code'); - } - - private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { - let url = this.configuration.basePath + context.path; - if (context.query !== undefined && Object.keys(context.query).length !== 0) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += '?' + this.configuration.queryParamsStringify(context.query); - } - - const headers = Object.assign({}, this.configuration.headers, context.headers); - Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); - - const initOverrideFn = - typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - - const overridedInit: RequestInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })) - } - - const init: RequestInit = { - ...overridedInit, - body: - isFormData(overridedInit.body) || - overridedInit.body instanceof URLSearchParams || - isBlob(overridedInit.body) - ? overridedInit.body - : JSON.stringify(overridedInit.body), - }; - - return { url, init }; - } - - private fetchApi = async (url: string, init: RequestInit) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - }) || fetchParams; - } - } - let response = undefined; - try { - response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); - } catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - }) || response; - } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); - } else { - throw e; - } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - }) || response; - } - } - return response; - } - - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone(this: T): T { - const constructor = this.constructor as any; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -}; - -function isBlob(value: any): value is Blob { - return typeof Blob !== 'undefined' && value instanceof Blob -} - -function isFormData(value: any): value is FormData { - return typeof FormData !== "undefined" && value instanceof FormData -} - -export class ResponseError extends Error { - override name: "ResponseError" = "ResponseError"; - constructor(public response: Response, msg?: string) { - super(msg); - } -} - -export class FetchError extends Error { - override name: "FetchError" = "FetchError"; - constructor(public cause: Error, msg?: string) { - super(msg); - } -} - -export class RequiredError extends Error { - override name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} - -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; - -export type Json = any; -export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; -export type HTTPHeaders = { [key: string]: string }; -export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; -export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody } -export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; - -export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise - -export interface FetchParams { - url: string; - init: RequestInit; -} - -export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; -} - -export function exists(json: any, key: string) { - const value = json[key]; - return value !== null && value !== undefined; -} - -export function querystring(params: HTTPQuery, prefix: string = ''): string { - return Object.keys(params) - .map(key => querystringSingleKey(key, params[key], prefix)) - .filter(part => part.length > 0) - .join('&'); -} - -function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value as HTTPQuery, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; -} - -export function mapValues(data: any, fn: (item: any) => any) { - return Object.keys(data).reduce( - (acc, key) => ({ ...acc, [key]: fn(data[key]) }), - {} - ); -} - -export function canConsumeForm(consumes: Consume[]): boolean { - for (const consume of consumes) { - if ('multipart/form-data' === consume.contentType) { - return true; - } - } - return false; -} - -export interface Consume { - contentType: string -} - -export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; -} - -export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; -} - -export interface ErrorContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - error: unknown; - response?: Response; -} - -export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; - onError?(context: ErrorContext): Promise; -} - -export interface ApiResponse { - raw: Response; - value(): Promise; -} - -export interface ResponseTransformer { - (json: any): T; -} - -export class JSONApiResponse { - constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} - - async value(): Promise { - return this.transformer(await this.raw.json()); - } -} - -export class VoidApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return undefined; - } -} - -export class BlobApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.blob(); - }; -} - -export class TextApiResponse { - constructor(public raw: Response) {} - - async value(): Promise { - return await this.raw.text(); - }; -} diff --git a/packages/ts-keepkey-sdk/yarn.lock b/packages/ts-keepkey-sdk/yarn.lock index 5aa148f..ad8f79b 100644 --- a/packages/ts-keepkey-sdk/yarn.lock +++ b/packages/ts-keepkey-sdk/yarn.lock @@ -2,770 +2,770 @@ # yarn lockfile v1 -"@nestjs/common@^8.0.0", "@nestjs/common@8.4.4": - "integrity" "sha512-QHi7QcgH/5Jinz+SCfIZJkFHc6Cch1YsAEGFEhi6wSp6MILb0sJMQ1CX06e9tCOAjSlBwaJj4PH0eFCVau5v9Q==" - "resolved" "https://registry.npmjs.org/@nestjs/common/-/common-8.4.4.tgz" - "version" "8.4.4" +"@nestjs/common@8.4.4": + version "8.4.4" + resolved "https://registry.npmjs.org/@nestjs/common/-/common-8.4.4.tgz" + integrity sha512-QHi7QcgH/5Jinz+SCfIZJkFHc6Cch1YsAEGFEhi6wSp6MILb0sJMQ1CX06e9tCOAjSlBwaJj4PH0eFCVau5v9Q== dependencies: - "axios" "0.26.1" - "iterare" "1.2.1" - "tslib" "2.3.1" - "uuid" "8.3.2" + axios "0.26.1" + iterare "1.2.1" + tslib "2.3.1" + uuid "8.3.2" "@nestjs/core@8.4.4": - "integrity" "sha512-Ef3yJPuzAttpNfehnGqIV5kHIL9SHptB5F4ERxoU7pT61H3xiYpZw6hSjx68cJO7cc6rm7/N+b4zeuJvFHtvBg==" - "resolved" "https://registry.npmjs.org/@nestjs/core/-/core-8.4.4.tgz" - "version" "8.4.4" + version "8.4.4" + resolved "https://registry.npmjs.org/@nestjs/core/-/core-8.4.4.tgz" + integrity sha512-Ef3yJPuzAttpNfehnGqIV5kHIL9SHptB5F4ERxoU7pT61H3xiYpZw6hSjx68cJO7cc6rm7/N+b4zeuJvFHtvBg== dependencies: "@nuxtjs/opencollective" "0.3.2" - "fast-safe-stringify" "2.1.1" - "iterare" "1.2.1" - "object-hash" "3.0.0" - "path-to-regexp" "3.2.0" - "tslib" "2.3.1" - "uuid" "8.3.2" + fast-safe-stringify "2.1.1" + iterare "1.2.1" + object-hash "3.0.0" + path-to-regexp "3.2.0" + tslib "2.3.1" + uuid "8.3.2" "@nuxtjs/opencollective@0.3.2": - "integrity" "sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA==" - "resolved" "https://registry.npmjs.org/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz" - "version" "0.3.2" + version "0.3.2" + resolved "https://registry.npmjs.org/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz" + integrity sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA== dependencies: - "chalk" "^4.1.0" - "consola" "^2.15.0" - "node-fetch" "^2.6.1" + chalk "^4.1.0" + consola "^2.15.0" + node-fetch "^2.6.1" "@openapitools/openapi-generator-cli@^2.5.2": - "integrity" "sha512-FLgkjzpDiHVsH821db0VDSElDoA6TcspGyq3RD4zLBJaJhbSsRwr4u87sNoyuHKBg4OMJbZMT4iJxAhkosKrzw==" - "resolved" "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.5.2.tgz" - "version" "2.5.2" + version "2.5.2" + resolved "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.5.2.tgz" + integrity sha512-FLgkjzpDiHVsH821db0VDSElDoA6TcspGyq3RD4zLBJaJhbSsRwr4u87sNoyuHKBg4OMJbZMT4iJxAhkosKrzw== dependencies: "@nestjs/common" "8.4.4" "@nestjs/core" "8.4.4" "@nuxtjs/opencollective" "0.3.2" - "chalk" "4.1.2" - "commander" "8.3.0" - "compare-versions" "4.1.3" - "concurrently" "6.5.1" - "console.table" "0.10.0" - "fs-extra" "10.0.1" - "glob" "7.1.6" - "inquirer" "8.2.2" - "lodash" "4.17.21" - "reflect-metadata" "0.1.13" - "rxjs" "7.5.5" - "tslib" "2.0.3" + chalk "4.1.2" + commander "8.3.0" + compare-versions "4.1.3" + concurrently "6.5.1" + console.table "0.10.0" + fs-extra "10.0.1" + glob "7.1.6" + inquirer "8.2.2" + lodash "4.17.21" + reflect-metadata "0.1.13" + rxjs "7.5.5" + tslib "2.0.3" "@types/node@^13.13.14": - "integrity" "sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ==" - "resolved" "https://registry.npmjs.org/@types/node/-/node-13.13.52.tgz" - "version" "13.13.52" - -"ansi-escapes@^4.2.1": - "integrity" "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==" - "resolved" "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz" - "version" "4.3.2" - dependencies: - "type-fest" "^0.21.3" - -"ansi-regex@^5.0.1": - "integrity" "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" - "version" "5.0.1" - -"ansi-styles@^4.0.0", "ansi-styles@^4.1.0": - "integrity" "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==" - "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - "version" "4.3.0" - dependencies: - "color-convert" "^2.0.1" - -"asynckit@^0.4.0": - "integrity" "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - "resolved" "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" - "version" "0.4.0" - -"axios@^1.1.3": - "integrity" "sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==" - "resolved" "https://registry.npmjs.org/axios/-/axios-1.1.3.tgz" - "version" "1.1.3" - dependencies: - "follow-redirects" "^1.15.0" - "form-data" "^4.0.0" - "proxy-from-env" "^1.1.0" - -"axios@0.26.1": - "integrity" "sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==" - "resolved" "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz" - "version" "0.26.1" - dependencies: - "follow-redirects" "^1.14.8" - -"balanced-match@^1.0.0": - "integrity" "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - "resolved" "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" - "version" "1.0.2" - -"base64-js@^1.3.1": - "integrity" "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - "resolved" "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" - "version" "1.5.1" - -"bl@^4.1.0": - "integrity" "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==" - "resolved" "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "buffer" "^5.5.0" - "inherits" "^2.0.4" - "readable-stream" "^3.4.0" - -"brace-expansion@^1.1.7": - "integrity" "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==" - "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" - "version" "1.1.11" - dependencies: - "balanced-match" "^1.0.0" - "concat-map" "0.0.1" - -"buffer@^5.5.0": - "integrity" "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==" - "resolved" "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" - "version" "5.7.1" - dependencies: - "base64-js" "^1.3.1" - "ieee754" "^1.1.13" - -"chalk@^4.1.0", "chalk@^4.1.1", "chalk@4.1.2": - "integrity" "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==" - "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - "version" "4.1.2" - dependencies: - "ansi-styles" "^4.1.0" - "supports-color" "^7.1.0" - -"chardet@^0.7.0": - "integrity" "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==" - "resolved" "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" - "version" "0.7.0" - -"cli-cursor@^3.1.0": - "integrity" "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==" - "resolved" "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "restore-cursor" "^3.1.0" - -"cli-spinners@^2.5.0": - "integrity" "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==" - "resolved" "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz" - "version" "2.7.0" - -"cli-width@^3.0.0": - "integrity" "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==" - "resolved" "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz" - "version" "3.0.0" - -"cliui@^7.0.2": - "integrity" "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==" - "resolved" "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" - "version" "7.0.4" - dependencies: - "string-width" "^4.2.0" - "strip-ansi" "^6.0.0" - "wrap-ansi" "^7.0.0" - -"clone@^1.0.2": - "integrity" "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==" - "resolved" "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" - "version" "1.0.4" - -"color-convert@^2.0.1": - "integrity" "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" - "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" - "version" "2.0.1" - dependencies: - "color-name" "~1.1.4" - -"color-name@~1.1.4": - "integrity" "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" - "version" "1.1.4" - -"combined-stream@^1.0.8": - "integrity" "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==" - "resolved" "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" - "version" "1.0.8" - dependencies: - "delayed-stream" "~1.0.0" - -"commander@8.3.0": - "integrity" "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" - "resolved" "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz" - "version" "8.3.0" - -"compare-versions@4.1.3": - "integrity" "sha512-WQfnbDcrYnGr55UwbxKiQKASnTtNnaAWVi8jZyy8NTpVAXWACSne8lMD1iaIo9AiU6mnuLvSVshCzewVuWxHUg==" - "resolved" "https://registry.npmjs.org/compare-versions/-/compare-versions-4.1.3.tgz" - "version" "4.1.3" - -"concat-map@0.0.1": - "integrity" "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - "resolved" "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" - "version" "0.0.1" - -"concurrently@6.5.1": - "integrity" "sha512-FlSwNpGjWQfRwPLXvJ/OgysbBxPkWpiVjy1042b0U7on7S7qwwMIILRj7WTN1mTgqa582bG6NFuScOoh6Zgdag==" - "resolved" "https://registry.npmjs.org/concurrently/-/concurrently-6.5.1.tgz" - "version" "6.5.1" - dependencies: - "chalk" "^4.1.0" - "date-fns" "^2.16.1" - "lodash" "^4.17.21" - "rxjs" "^6.6.3" - "spawn-command" "^0.0.2-1" - "supports-color" "^8.1.0" - "tree-kill" "^1.2.2" - "yargs" "^16.2.0" - -"consola@^2.15.0": - "integrity" "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==" - "resolved" "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz" - "version" "2.15.3" - -"console.table@0.10.0": - "integrity" "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==" - "resolved" "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz" - "version" "0.10.0" - dependencies: - "easy-table" "1.1.0" - -"date-fns@^2.16.1": - "integrity" "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==" - "resolved" "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz" - "version" "2.29.3" - -"defaults@^1.0.3": - "integrity" "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==" - "resolved" "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz" - "version" "1.0.4" - dependencies: - "clone" "^1.0.2" - -"delayed-stream@~1.0.0": - "integrity" "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - "resolved" "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" - "version" "1.0.0" - -"dotenv@^8.6.0": - "integrity" "sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==" - "resolved" "https://registry.npmjs.org/dotenv/-/dotenv-8.6.0.tgz" - "version" "8.6.0" - -"easy-table@1.1.0": - "integrity" "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==" - "resolved" "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz" - "version" "1.1.0" + version "13.13.52" + resolved "https://registry.npmjs.org/@types/node/-/node-13.13.52.tgz" + integrity sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ== + +ansi-escapes@^4.2.1: + version "4.3.2" + resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== + dependencies: + type-fest "^0.21.3" + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + +axios@0.26.1: + version "0.26.1" + resolved "https://registry.npmjs.org/axios/-/axios-0.26.1.tgz" + integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA== + dependencies: + follow-redirects "^1.14.8" + +axios@^1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/axios/-/axios-1.1.3.tgz" + integrity sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA== + dependencies: + follow-redirects "^1.15.0" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +bl@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz" + integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== + dependencies: + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +buffer@^5.5.0: + version "5.7.1" + resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + +chalk@4.1.2, chalk@^4.1.0, chalk@^4.1.1: + version "4.1.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + +cli-spinners@^2.5.0: + version "2.7.0" + resolved "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz" + integrity sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw== + +cli-width@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz" + integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +clone@^1.0.2: + version "1.0.4" + resolved "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" + integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +commander@8.3.0: + version "8.3.0" + resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz" + integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== + +compare-versions@4.1.3: + version "4.1.3" + resolved "https://registry.npmjs.org/compare-versions/-/compare-versions-4.1.3.tgz" + integrity sha512-WQfnbDcrYnGr55UwbxKiQKASnTtNnaAWVi8jZyy8NTpVAXWACSne8lMD1iaIo9AiU6mnuLvSVshCzewVuWxHUg== + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +concurrently@6.5.1: + version "6.5.1" + resolved "https://registry.npmjs.org/concurrently/-/concurrently-6.5.1.tgz" + integrity sha512-FlSwNpGjWQfRwPLXvJ/OgysbBxPkWpiVjy1042b0U7on7S7qwwMIILRj7WTN1mTgqa582bG6NFuScOoh6Zgdag== + dependencies: + chalk "^4.1.0" + date-fns "^2.16.1" + lodash "^4.17.21" + rxjs "^6.6.3" + spawn-command "^0.0.2-1" + supports-color "^8.1.0" + tree-kill "^1.2.2" + yargs "^16.2.0" + +consola@^2.15.0: + version "2.15.3" + resolved "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz" + integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw== + +console.table@0.10.0: + version "0.10.0" + resolved "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz" + integrity sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g== + dependencies: + easy-table "1.1.0" + +date-fns@^2.16.1: + version "2.29.3" + resolved "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz" + integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA== + +defaults@^1.0.3: + version "1.0.4" + resolved "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz" + integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== + dependencies: + clone "^1.0.2" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + +dotenv@^8.6.0: + version "8.6.0" + resolved "https://registry.npmjs.org/dotenv/-/dotenv-8.6.0.tgz" + integrity sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g== + +easy-table@1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz" + integrity sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA== optionalDependencies: - "wcwidth" ">=1.0.1" - -"emoji-regex@^8.0.0": - "integrity" "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - "resolved" "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" - "version" "8.0.0" - -"escalade@^3.1.1": - "integrity" "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - "resolved" "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" - "version" "3.1.1" - -"escape-string-regexp@^1.0.5": - "integrity" "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" - "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" - "version" "1.0.5" - -"external-editor@^3.0.3": - "integrity" "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==" - "resolved" "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "chardet" "^0.7.0" - "iconv-lite" "^0.4.24" - "tmp" "^0.0.33" - -"fast-safe-stringify@2.1.1": - "integrity" "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" - "resolved" "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz" - "version" "2.1.1" - -"figures@^3.0.0": - "integrity" "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==" - "resolved" "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz" - "version" "3.2.0" - dependencies: - "escape-string-regexp" "^1.0.5" - -"follow-redirects@^1.14.8", "follow-redirects@^1.15.0": - "integrity" "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" - "resolved" "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" - "version" "1.15.2" - -"form-data@^4.0.0": - "integrity" "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==" - "resolved" "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" - "version" "4.0.0" - dependencies: - "asynckit" "^0.4.0" - "combined-stream" "^1.0.8" - "mime-types" "^2.1.12" - -"fs-extra@10.0.1": - "integrity" "sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==" - "resolved" "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.1.tgz" - "version" "10.0.1" - dependencies: - "graceful-fs" "^4.2.0" - "jsonfile" "^6.0.1" - "universalify" "^2.0.0" - -"fs.realpath@^1.0.0": - "integrity" "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" - "version" "1.0.0" - -"get-caller-file@^2.0.5": - "integrity" "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" - "resolved" "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" - "version" "2.0.5" - -"glob@7.1.6": - "integrity" "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==" - "resolved" "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz" - "version" "7.1.6" - dependencies: - "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" - -"graceful-fs@^4.1.6", "graceful-fs@^4.2.0": - "integrity" "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" - "resolved" "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz" - "version" "4.2.10" - -"has-flag@^4.0.0": - "integrity" "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" - "version" "4.0.0" - -"iconv-lite@^0.4.24": - "integrity" "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==" - "resolved" "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" - "version" "0.4.24" - dependencies: - "safer-buffer" ">= 2.1.2 < 3" - -"ieee754@^1.1.13": - "integrity" "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" - "resolved" "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" - "version" "1.2.1" - -"inflight@^1.0.4": - "integrity" "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==" - "resolved" "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" - "version" "1.0.6" - dependencies: - "once" "^1.3.0" - "wrappy" "1" - -"inherits@^2.0.3", "inherits@^2.0.4", "inherits@2": - "integrity" "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" - "version" "2.0.4" - -"inquirer@8.2.2": - "integrity" "sha512-pG7I/si6K/0X7p1qU+rfWnpTE1UIkTONN1wxtzh0d+dHXtT/JG6qBgLxoyHVsQa8cFABxAPh0pD6uUUHiAoaow==" - "resolved" "https://registry.npmjs.org/inquirer/-/inquirer-8.2.2.tgz" - "version" "8.2.2" - dependencies: - "ansi-escapes" "^4.2.1" - "chalk" "^4.1.1" - "cli-cursor" "^3.1.0" - "cli-width" "^3.0.0" - "external-editor" "^3.0.3" - "figures" "^3.0.0" - "lodash" "^4.17.21" - "mute-stream" "0.0.8" - "ora" "^5.4.1" - "run-async" "^2.4.0" - "rxjs" "^7.5.5" - "string-width" "^4.1.0" - "strip-ansi" "^6.0.0" - "through" "^2.3.6" - -"is-fullwidth-code-point@^3.0.0": - "integrity" "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" - "version" "3.0.0" - -"is-interactive@^1.0.0": - "integrity" "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==" - "resolved" "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" - "version" "1.0.0" - -"is-unicode-supported@^0.1.0": - "integrity" "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==" - "resolved" "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" - "version" "0.1.0" - -"iterare@1.2.1": - "integrity" "sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==" - "resolved" "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz" - "version" "1.2.1" - -"jsonfile@^6.0.1": - "integrity" "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==" - "resolved" "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" - "version" "6.1.0" - dependencies: - "universalify" "^2.0.0" + wcwidth ">=1.0.1" + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== + +external-editor@^3.0.3: + version "3.1.0" + resolved "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + +fast-safe-stringify@2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz" + integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== + +figures@^3.0.0: + version "3.2.0" + resolved "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz" + integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + dependencies: + escape-string-regexp "^1.0.5" + +follow-redirects@^1.14.8, follow-redirects@^1.15.0: + version "1.15.2" + resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" + integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== + +form-data@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +fs-extra@10.0.1: + version "10.0.1" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.1.tgz" + integrity sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +glob@7.1.6: + version "7.1.6" + resolved "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + dependencies: + 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" + +graceful-fs@^4.1.6, graceful-fs@^4.2.0: + version "4.2.10" + resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz" + integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +iconv-lite@^0.4.24: + version "0.4.24" + resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.13: + version "1.2.1" + resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@^2.0.3, inherits@^2.0.4: + version "2.0.4" + resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +inquirer@8.2.2: + version "8.2.2" + resolved "https://registry.npmjs.org/inquirer/-/inquirer-8.2.2.tgz" + integrity sha512-pG7I/si6K/0X7p1qU+rfWnpTE1UIkTONN1wxtzh0d+dHXtT/JG6qBgLxoyHVsQa8cFABxAPh0pD6uUUHiAoaow== + dependencies: + ansi-escapes "^4.2.1" + chalk "^4.1.1" + cli-cursor "^3.1.0" + cli-width "^3.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.21" + mute-stream "0.0.8" + ora "^5.4.1" + run-async "^2.4.0" + rxjs "^7.5.5" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +iterare@1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz" + integrity sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q== + +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + dependencies: + universalify "^2.0.0" optionalDependencies: - "graceful-fs" "^4.1.6" - -"lodash@^4.17.21", "lodash@4.17.21": - "integrity" "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - "resolved" "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" - "version" "4.17.21" - -"log-symbols@^4.1.0": - "integrity" "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==" - "resolved" "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz" - "version" "4.1.0" - dependencies: - "chalk" "^4.1.0" - "is-unicode-supported" "^0.1.0" - -"mime-db@1.52.0": - "integrity" "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - "resolved" "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" - "version" "1.52.0" - -"mime-types@^2.1.12": - "integrity" "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==" - "resolved" "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" - "version" "2.1.35" - dependencies: - "mime-db" "1.52.0" - -"mimic-fn@^2.1.0": - "integrity" "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" - "resolved" "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" - "version" "2.1.0" - -"minimatch@^3.0.4": - "integrity" "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==" - "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - "version" "3.1.2" - dependencies: - "brace-expansion" "^1.1.7" - -"mute-stream@0.0.8": - "integrity" "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" - "resolved" "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" - "version" "0.0.8" - -"node-fetch@^2.6.1": - "integrity" "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==" - "resolved" "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz" - "version" "2.6.7" - dependencies: - "whatwg-url" "^5.0.0" - -"object-hash@3.0.0": - "integrity" "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==" - "resolved" "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz" - "version" "3.0.0" - -"once@^1.3.0": - "integrity" "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==" - "resolved" "https://registry.npmjs.org/once/-/once-1.4.0.tgz" - "version" "1.4.0" - dependencies: - "wrappy" "1" - -"onetime@^5.1.0": - "integrity" "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==" - "resolved" "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" - "version" "5.1.2" - dependencies: - "mimic-fn" "^2.1.0" - -"ora@^5.4.1": - "integrity" "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==" - "resolved" "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz" - "version" "5.4.1" - dependencies: - "bl" "^4.1.0" - "chalk" "^4.1.0" - "cli-cursor" "^3.1.0" - "cli-spinners" "^2.5.0" - "is-interactive" "^1.0.0" - "is-unicode-supported" "^0.1.0" - "log-symbols" "^4.1.0" - "strip-ansi" "^6.0.0" - "wcwidth" "^1.0.1" - -"os-tmpdir@~1.0.2": - "integrity" "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" - "resolved" "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz" - "version" "1.0.2" - -"path-is-absolute@^1.0.0": - "integrity" "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" - "resolved" "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" - "version" "1.0.1" - -"path-to-regexp@3.2.0": - "integrity" "sha512-jczvQbCUS7XmS7o+y1aEO9OBVFeZBQ1MDSEqmO7xSoPgOPoowY/SxLpZ6Vh97/8qHZOteiCKb7gkG9gA2ZUxJA==" - "resolved" "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-3.2.0.tgz" - "version" "3.2.0" - -"proxy-from-env@^1.1.0": - "integrity" "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" - "resolved" "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz" - "version" "1.1.0" - -"readable-stream@^3.4.0": - "integrity" "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==" - "resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz" - "version" "3.6.0" - dependencies: - "inherits" "^2.0.3" - "string_decoder" "^1.1.1" - "util-deprecate" "^1.0.1" - -"reflect-metadata@^0.1.12", "reflect-metadata@0.1.13": - "integrity" "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" - "resolved" "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz" - "version" "0.1.13" - -"require-directory@^2.1.1": - "integrity" "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" - "resolved" "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" - "version" "2.1.1" - -"restore-cursor@^3.1.0": - "integrity" "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==" - "resolved" "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" - "version" "3.1.0" - dependencies: - "onetime" "^5.1.0" - "signal-exit" "^3.0.2" - -"run-async@^2.4.0": - "integrity" "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==" - "resolved" "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz" - "version" "2.4.1" - -"rxjs@^6.6.3": - "integrity" "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==" - "resolved" "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz" - "version" "6.6.7" - dependencies: - "tslib" "^1.9.0" - -"rxjs@^7.1.0", "rxjs@7.5.5": - "integrity" "sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==" - "resolved" "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz" - "version" "7.5.5" - dependencies: - "tslib" "^2.1.0" - -"rxjs@^7.5.5": - "integrity" "sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==" - "resolved" "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz" - "version" "7.5.7" - dependencies: - "tslib" "^2.1.0" - -"safe-buffer@~5.2.0": - "integrity" "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" - "version" "5.2.1" + graceful-fs "^4.1.6" + +lodash@4.17.21, lodash@^4.17.21: + version "4.17.21" + resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12: + version "2.1.35" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +minimatch@^3.0.4: + version "3.1.2" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + +node-fetch@^2.6.1: + version "2.6.7" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz" + integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== + dependencies: + whatwg-url "^5.0.0" + +object-hash@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz" + integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw== + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +onetime@^5.1.0: + version "5.1.2" + resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== + dependencies: + mimic-fn "^2.1.0" + +ora@^5.4.1: + version "5.4.1" + resolved "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz" + integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== + dependencies: + bl "^4.1.0" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + is-unicode-supported "^0.1.0" + log-symbols "^4.1.0" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + +os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz" + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + +path-to-regexp@3.2.0: + version "3.2.0" + resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-3.2.0.tgz" + integrity sha512-jczvQbCUS7XmS7o+y1aEO9OBVFeZBQ1MDSEqmO7xSoPgOPoowY/SxLpZ6Vh97/8qHZOteiCKb7gkG9gA2ZUxJA== + +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +readable-stream@^3.4.0: + version "3.6.0" + resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +reflect-metadata@0.1.13: + version "0.1.13" + resolved "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz" + integrity sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg== + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== + +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +run-async@^2.4.0: + version "2.4.1" + resolved "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz" + integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== + +rxjs@7.5.5: + version "7.5.5" + resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz" + integrity sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw== + dependencies: + tslib "^2.1.0" + +rxjs@^6.6.3: + version "6.6.7" + resolved "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz" + integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== + dependencies: + tslib "^1.9.0" + +rxjs@^7.5.5: + version "7.5.7" + resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz" + integrity sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA== + dependencies: + tslib "^2.1.0" + +safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== "safer-buffer@>= 2.1.2 < 3": - "integrity" "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - "resolved" "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" - "version" "2.1.2" - -"signal-exit@^3.0.2": - "integrity" "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - "resolved" "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" - "version" "3.0.7" - -"spawn-command@^0.0.2-1": - "integrity" "sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==" - "resolved" "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2-1.tgz" - "version" "0.0.2-1" - -"string_decoder@^1.1.1": - "integrity" "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==" - "resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" - "version" "1.3.0" - dependencies: - "safe-buffer" "~5.2.0" - -"string-width@^4.1.0", "string-width@^4.2.0": - "integrity" "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==" - "resolved" "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - "version" "4.2.3" - dependencies: - "emoji-regex" "^8.0.0" - "is-fullwidth-code-point" "^3.0.0" - "strip-ansi" "^6.0.1" - -"strip-ansi@^6.0.0", "strip-ansi@^6.0.1": - "integrity" "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==" - "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" - "version" "6.0.1" - dependencies: - "ansi-regex" "^5.0.1" - -"supports-color@^7.1.0": - "integrity" "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==" - "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" - "version" "7.2.0" - dependencies: - "has-flag" "^4.0.0" - -"supports-color@^8.1.0": - "integrity" "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==" - "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" - "version" "8.1.1" - dependencies: - "has-flag" "^4.0.0" - -"through@^2.3.6": - "integrity" "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" - "resolved" "https://registry.npmjs.org/through/-/through-2.3.8.tgz" - "version" "2.3.8" - -"tmp@^0.0.33": - "integrity" "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==" - "resolved" "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz" - "version" "0.0.33" - dependencies: - "os-tmpdir" "~1.0.2" - -"tr46@~0.0.3": - "integrity" "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - "resolved" "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" - "version" "0.0.3" - -"tree-kill@^1.2.2": - "integrity" "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==" - "resolved" "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz" - "version" "1.2.2" - -"tslib@^1.9.0": - "integrity" "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - "resolved" "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" - "version" "1.14.1" - -"tslib@^2.1.0": - "integrity" "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" - "resolved" "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz" - "version" "2.4.1" - -"tslib@2.0.3": - "integrity" "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==" - "resolved" "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz" - "version" "2.0.3" - -"tslib@2.3.1": - "integrity" "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" - "resolved" "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz" - "version" "2.3.1" - -"type-fest@^0.21.3": - "integrity" "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==" - "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz" - "version" "0.21.3" - -"typescript@^4.8.4": - "integrity" "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==" - "resolved" "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz" - "version" "4.8.4" - -"universalify@^2.0.0": - "integrity" "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" - "resolved" "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz" - "version" "2.0.0" - -"util-deprecate@^1.0.1": - "integrity" "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - "resolved" "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" - "version" "1.0.2" - -"uuid@8.3.2": - "integrity" "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" - "resolved" "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" - "version" "8.3.2" - -"wcwidth@^1.0.1", "wcwidth@>=1.0.1": - "integrity" "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==" - "resolved" "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" - "version" "1.0.1" - dependencies: - "defaults" "^1.0.3" - -"webidl-conversions@^3.0.0": - "integrity" "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - "resolved" "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" - "version" "3.0.1" - -"whatwg-url@^5.0.0": - "integrity" "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==" - "resolved" "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" - "version" "5.0.0" - dependencies: - "tr46" "~0.0.3" - "webidl-conversions" "^3.0.0" - -"wrap-ansi@^7.0.0": - "integrity" "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==" - "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" - "version" "7.0.0" - dependencies: - "ansi-styles" "^4.0.0" - "string-width" "^4.1.0" - "strip-ansi" "^6.0.0" - -"wrappy@1": - "integrity" "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - "resolved" "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" - "version" "1.0.2" - -"y18n@^5.0.5": - "integrity" "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" - "resolved" "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" - "version" "5.0.8" - -"yargs-parser@^20.2.2": - "integrity" "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==" - "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz" - "version" "20.2.9" - -"yargs@^16.2.0": - "integrity" "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==" - "resolved" "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" - "version" "16.2.0" - dependencies: - "cliui" "^7.0.2" - "escalade" "^3.1.1" - "get-caller-file" "^2.0.5" - "require-directory" "^2.1.1" - "string-width" "^4.2.0" - "y18n" "^5.0.5" - "yargs-parser" "^20.2.2" + version "2.1.2" + resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +signal-exit@^3.0.2: + version "3.0.7" + resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + +spawn-command@^0.0.2-1: + version "0.0.2-1" + resolved "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2-1.tgz" + integrity sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg== + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.3" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +supports-color@^8.1.0: + version "8.1.1" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.npmjs.org/through/-/through-2.3.8.tgz" + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + +tree-kill@^1.2.2: + version "1.2.2" + resolved "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz" + integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== + +tslib@2.0.3: + version "2.0.3" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz" + integrity sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ== + +tslib@2.3.1: + version "2.3.1" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz" + integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== + +tslib@^1.9.0: + version "1.14.1" + resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" + integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== + +tslib@^2.1.0: + version "2.4.1" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz" + integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== + +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + +typescript@^4.8.4: + version "4.8.4" + resolved "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz" + integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== + +universalify@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz" + integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== + +util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== + +uuid@8.3.2: + version "8.3.2" + resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + +wcwidth@>=1.0.1, wcwidth@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" + integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== + dependencies: + defaults "^1.0.3" + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yargs-parser@^20.2.2: + version "20.2.9" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz" + integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== + +yargs@^16.2.0: + version "16.2.0" + resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" + integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" From ffe37ab8bbbfb451d071425b1a5ef08ca132a5f5 Mon Sep 17 00:00:00 2001 From: Amitoj Singh Date: Tue, 22 Nov 2022 21:58:55 +0300 Subject: [PATCH 2/2] spam btc get address --- .../__tests__/btc-get-address.js | 19 ++++++++++++------- .../__tests__/spam-btc-get-address.js | 16 ++++++++++++++++ 2 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 packages/ts-keepkey-sdk/__tests__/spam-btc-get-address.js diff --git a/packages/ts-keepkey-sdk/__tests__/btc-get-address.js b/packages/ts-keepkey-sdk/__tests__/btc-get-address.js index afd8d3b..a911f82 100644 --- a/packages/ts-keepkey-sdk/__tests__/btc-get-address.js +++ b/packages/ts-keepkey-sdk/__tests__/btc-get-address.js @@ -23,13 +23,18 @@ let run_test = async function () { showDisplay: false } - //push tx to api - // console.log(kk.instance.SignTransaction()) - let timeStart = new Date().getTime() - let responseSign = await sdk.wallet.btcGetAddress({ bTCGetAddress: addressInfo }) - console.log("responseSign: ", responseSign.data) - let timeEnd = new Date().getTime() - console.log("duration: ", (timeStart - timeEnd) / 1000) + for (let index = 0; index < 100; index++) { + //push tx to api + // console.log(kk.instance.SignTransaction()) + console.log("Try: ", index) + let timeStart = new Date().getTime() + let responseSign = await sdk.wallet.btcGetAddress({ bTCGetAddress: addressInfo }) + console.log("responseSign: ", responseSign.data) + let timeEnd = new Date().getTime() + console.log("duration: ", (timeStart - timeEnd) / 1000) + } + + // let responseSign = await kk.instance.GetPublicKeys(null, { paths }) // console.log("responseSign: ", responseSign.data) diff --git a/packages/ts-keepkey-sdk/__tests__/spam-btc-get-address.js b/packages/ts-keepkey-sdk/__tests__/spam-btc-get-address.js new file mode 100644 index 0000000..6fdeb54 --- /dev/null +++ b/packages/ts-keepkey-sdk/__tests__/spam-btc-get-address.js @@ -0,0 +1,16 @@ +const { spawn } = require('node:child_process') + +for (let index = 0; index < 100; index++) { + const btcGetAddress = spawn('node', ['./btc-get-address.js']); + btcGetAddress.stdout.on('data', (data) => { + console.log(`stdout ${index}: ${data}`); + }); + + btcGetAddress.stderr.on('data', (data) => { + console.error(`stderr ${index}: ${data}`); + }); + + btcGetAddress.on('close', (code) => { + console.log(`child process ${index} exited with code ${code}`); + }); +} \ No newline at end of file