Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turnkey/http

Package Overview
Dependencies
Maintainers
5
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turnkey/http - npm Package Compare versions

Comparing version 2.8.0 to 2.9.0

6

CHANGELOG.md
# @turnkey/http
## 2.9.0
### Minor Changes
- 83b62b5: Sync types for latest release
## 2.8.0

@@ -4,0 +10,0 @@

@@ -46,3 +46,5 @@ import { THttpConfig, TSignedRequest, TStamper } from "../../../../../base";

import type { TExportWalletAccountBody, TExportWalletAccountResponse } from "./public_api.fetcher";
import type { TImportPrivateKeyBody, TImportPrivateKeyResponse } from "./public_api.fetcher";
import type { TImportWalletBody, TImportWalletResponse } from "./public_api.fetcher";
import type { TInitImportPrivateKeyBody, TInitImportPrivateKeyResponse } from "./public_api.fetcher";
import type { TInitImportWalletBody, TInitImportWalletResponse } from "./public_api.fetcher";

@@ -683,2 +685,16 @@ import type { TInitUserEmailRecoveryBody, TInitUserEmailRecoveryResponse } from "./public_api.fetcher";

/**
* Imports a private key
*
* Sign the provided `TImportPrivateKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/import_private_key).
*
* See also {@link stampImportPrivateKey}.
*/
importPrivateKey: (input: TImportPrivateKeyBody) => Promise<TImportPrivateKeyResponse>;
/**
* Produce a `SignedRequest` from `TImportPrivateKeyBody` by using the client's `stamp` function.
*
* See also {@link ImportPrivateKey}.
*/
stampImportPrivateKey: (input: TImportPrivateKeyBody) => Promise<TSignedRequest>;
/**
* Imports a wallet

@@ -698,2 +714,16 @@ *

/**
* Initializes a new private key import
*
* Sign the provided `TInitImportPrivateKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_import_private_key).
*
* See also {@link stampInitImportPrivateKey}.
*/
initImportPrivateKey: (input: TInitImportPrivateKeyBody) => Promise<TInitImportPrivateKeyResponse>;
/**
* Produce a `SignedRequest` from `TInitImportPrivateKeyBody` by using the client's `stamp` function.
*
* See also {@link InitImportPrivateKey}.
*/
stampInitImportPrivateKey: (input: TInitImportPrivateKeyBody) => Promise<TSignedRequest>;
/**
* Initializes a new wallet import

@@ -700,0 +730,0 @@ *

@@ -1111,2 +1111,27 @@ 'use strict';

/**
* Imports a private key
*
* Sign the provided `TImportPrivateKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/import_private_key).
*
* See also {@link stampImportPrivateKey}.
*/
this.importPrivateKey = async (input) => {
return this.request("/public/v1/submit/import_private_key", input);
};
/**
* Produce a `SignedRequest` from `TImportPrivateKeyBody` by using the client's `stamp` function.
*
* See also {@link ImportPrivateKey}.
*/
this.stampImportPrivateKey = async (input) => {
const fullUrl = this.config.baseUrl + "/public/v1/submit/import_private_key";
const body = JSON.stringify(input);
const stamp = await this.stamper.stamp(body);
return {
body: body,
stamp: stamp,
url: fullUrl,
};
};
/**
* Imports a wallet

@@ -1137,2 +1162,27 @@ *

/**
* Initializes a new private key import
*
* Sign the provided `TInitImportPrivateKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_import_private_key).
*
* See also {@link stampInitImportPrivateKey}.
*/
this.initImportPrivateKey = async (input) => {
return this.request("/public/v1/submit/init_import_private_key", input);
};
/**
* Produce a `SignedRequest` from `TInitImportPrivateKeyBody` by using the client's `stamp` function.
*
* See also {@link InitImportPrivateKey}.
*/
this.stampInitImportPrivateKey = async (input) => {
const fullUrl = this.config.baseUrl + "/public/v1/submit/init_import_private_key";
const body = JSON.stringify(input);
const stamp = await this.stamper.stamp(body);
return {
body: body,
stamp: stamp,
url: fullUrl,
};
};
/**
* Initializes a new wallet import

@@ -1139,0 +1189,0 @@ *

@@ -975,2 +975,24 @@ 'use strict';

/**
* Import Private Key
*
* Imports a private key
*
* `POST /public/v1/submit/import_private_key`
*/
const importPrivateKey = (input) => base.request({
uri: "/public/v1/submit/import_private_key",
method: "POST",
body: input.body,
});
/**
* Request a WebAuthn assertion and return a signed `ImportPrivateKey` request, ready to be POSTed to Turnkey.
*
* See {@link ImportPrivateKey}
*/
const signImportPrivateKey = (input, options) => base.signedRequest({
uri: "/public/v1/submit/import_private_key",
body: input.body,
options,
});
/**
* Import Wallet

@@ -998,2 +1020,24 @@ *

/**
* Init Import Private Key
*
* Initializes a new private key import
*
* `POST /public/v1/submit/init_import_private_key`
*/
const initImportPrivateKey = (input) => base.request({
uri: "/public/v1/submit/init_import_private_key",
method: "POST",
body: input.body,
});
/**
* Request a WebAuthn assertion and return a signed `InitImportPrivateKey` request, ready to be POSTed to Turnkey.
*
* See {@link InitImportPrivateKey}
*/
const signInitImportPrivateKey = (input, options) => base.signedRequest({
uri: "/public/v1/submit/init_import_private_key",
body: input.body,
options,
});
/**
* Init Import Wallet

@@ -1342,3 +1386,5 @@ *

exports.getWhoami = getWhoami;
exports.importPrivateKey = importPrivateKey;
exports.importWallet = importWallet;
exports.initImportPrivateKey = initImportPrivateKey;
exports.initImportWallet = initImportWallet;

@@ -1395,3 +1441,5 @@ exports.initUserEmailRecovery = initUserEmailRecovery;

exports.signGetWhoami = signGetWhoami;
exports.signImportPrivateKey = signImportPrivateKey;
exports.signImportWallet = signImportWallet;
exports.signInitImportPrivateKey = signInitImportPrivateKey;
exports.signInitImportWallet = signInitImportWallet;

@@ -1398,0 +1446,0 @@ exports.signInitUserEmailRecovery = signInitUserEmailRecovery;

2

dist/version.d.ts

@@ -1,2 +0,2 @@

export declare const VERSION = "@turnkey/http@2.8.0";
export declare const VERSION = "@turnkey/http@2.9.0";
//# sourceMappingURL=version.d.ts.map
'use strict';
const VERSION = "@turnkey/http@2.8.0";
const VERSION = "@turnkey/http@2.9.0";
exports.VERSION = VERSION;
//# sourceMappingURL=version.js.map
{
"name": "@turnkey/http",
"version": "2.8.0",
"version": "2.9.0",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "module": "./dist/index.mjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc