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

@turnkey/http

Package Overview
Dependencies
Maintainers
6
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.9.1 to 2.10.0

6

CHANGELOG.md
# @turnkey/http
## 2.10.0
### Minor Changes
- 7a9ce7a: Sync 2024.3.16
## 2.9.1

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

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

import type { TCreateInvitationsBody, TCreateInvitationsResponse } from "./public_api.fetcher";
import type { TCreatePoliciesBody, TCreatePoliciesResponse } from "./public_api.fetcher";
import type { TCreatePolicyBody, TCreatePolicyResponse } from "./public_api.fetcher";

@@ -57,2 +58,3 @@ import type { TCreatePrivateKeyTagBody, TCreatePrivateKeyTagResponse } from "./public_api.fetcher";

import type { TSignRawPayloadBody, TSignRawPayloadResponse } from "./public_api.fetcher";
import type { TSignRawPayloadsBody, TSignRawPayloadsResponse } from "./public_api.fetcher";
import type { TSignTransactionBody, TSignTransactionResponse } from "./public_api.fetcher";

@@ -420,2 +422,16 @@ import type { TUpdatePolicyBody, TUpdatePolicyResponse } from "./public_api.fetcher";

/**
* Create new Policies
*
* Sign the provided `TCreatePoliciesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_policies).
*
* See also {@link stampCreatePolicies}.
*/
createPolicies: (input: TCreatePoliciesBody) => Promise<TCreatePoliciesResponse>;
/**
* Produce a `SignedRequest` from `TCreatePoliciesBody` by using the client's `stamp` function.
*
* See also {@link CreatePolicies}.
*/
stampCreatePolicies: (input: TCreatePoliciesBody) => Promise<TSignedRequest>;
/**
* Create a new Policy

@@ -827,2 +843,16 @@ *

/**
* Sign multiple raw payloads with the same signing parameters
*
* Sign the provided `TSignRawPayloadsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_raw_payloads).
*
* See also {@link stampSignRawPayloads}.
*/
signRawPayloads: (input: TSignRawPayloadsBody) => Promise<TSignRawPayloadsResponse>;
/**
* Produce a `SignedRequest` from `TSignRawPayloadsBody` by using the client's `stamp` function.
*
* See also {@link SignRawPayloads}.
*/
stampSignRawPayloads: (input: TSignRawPayloadsBody) => Promise<TSignedRequest>;
/**
* Sign a transaction

@@ -829,0 +859,0 @@ *

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

/**
* Create new Policies
*
* Sign the provided `TCreatePoliciesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_policies).
*
* See also {@link stampCreatePolicies}.
*/
this.createPolicies = async (input) => {
return this.request("/public/v1/submit/create_policies", input);
};
/**
* Produce a `SignedRequest` from `TCreatePoliciesBody` by using the client's `stamp` function.
*
* See also {@link CreatePolicies}.
*/
this.stampCreatePolicies = async (input) => {
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_policies";
const body = JSON.stringify(input);
const stamp = await this.stamper.stamp(body);
return {
body: body,
stamp: stamp,
url: fullUrl,
};
};
/**
* Create a new Policy

@@ -1362,2 +1387,27 @@ *

/**
* Sign multiple raw payloads with the same signing parameters
*
* Sign the provided `TSignRawPayloadsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_raw_payloads).
*
* See also {@link stampSignRawPayloads}.
*/
this.signRawPayloads = async (input) => {
return this.request("/public/v1/submit/sign_raw_payloads", input);
};
/**
* Produce a `SignedRequest` from `TSignRawPayloadsBody` by using the client's `stamp` function.
*
* See also {@link SignRawPayloads}.
*/
this.stampSignRawPayloads = async (input) => {
const fullUrl = this.config.baseUrl + "/public/v1/submit/sign_raw_payloads";
const body = JSON.stringify(input);
const stamp = await this.stamper.stamp(body);
return {
body: body,
stamp: stamp,
url: fullUrl,
};
};
/**
* Sign a transaction

@@ -1364,0 +1414,0 @@ *

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

/**
* Create Policies
*
* Create new Policies
*
* `POST /public/v1/submit/create_policies`
*/
const createPolicies = (input) => base.request({
uri: "/public/v1/submit/create_policies",
method: "POST",
body: input.body,
});
/**
* Request a WebAuthn assertion and return a signed `CreatePolicies` request, ready to be POSTed to Turnkey.
*
* See {@link CreatePolicies}
*/
const signCreatePolicies = (input, options) => base.signedRequest({
uri: "/public/v1/submit/create_policies",
body: input.body,
options,
});
/**
* Create Policy

@@ -1196,2 +1218,24 @@ *

/**
* Sign Raw Payloads
*
* Sign multiple raw payloads with the same signing parameters
*
* `POST /public/v1/submit/sign_raw_payloads`
*/
const signRawPayloads = (input) => base.request({
uri: "/public/v1/submit/sign_raw_payloads",
method: "POST",
body: input.body,
});
/**
* Request a WebAuthn assertion and return a signed `SignRawPayloads` request, ready to be POSTed to Turnkey.
*
* See {@link SignRawPayloads}
*/
const signSignRawPayloads = (input, options) => base.signedRequest({
uri: "/public/v1/submit/sign_raw_payloads",
body: input.body,
options,
});
/**
* Sign Transaction

@@ -1349,2 +1393,3 @@ *

exports.createInvitations = createInvitations;
exports.createPolicies = createPolicies;
exports.createPolicy = createPolicy;

@@ -1404,2 +1449,3 @@ exports.createPrivateKeyTag = createPrivateKeyTag;

exports.signCreateInvitations = signCreateInvitations;
exports.signCreatePolicies = signCreatePolicies;
exports.signCreatePolicy = signCreatePolicy;

@@ -1451,2 +1497,3 @@ exports.signCreatePrivateKeyTag = signCreatePrivateKeyTag;

exports.signRawPayload = signRawPayload;
exports.signRawPayloads = signRawPayloads;
exports.signRecoverUser = signRecoverUser;

@@ -1457,2 +1504,3 @@ exports.signRejectActivity = signRejectActivity;

exports.signSignRawPayload = signSignRawPayload;
exports.signSignRawPayloads = signSignRawPayloads;
exports.signSignTransaction = signSignTransaction;

@@ -1459,0 +1507,0 @@ exports.signTransaction = signTransaction;

2

dist/version.d.ts

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

export declare const VERSION = "@turnkey/http@2.9.1";
export declare const VERSION = "@turnkey/http@2.10.0";
//# sourceMappingURL=version.d.ts.map
'use strict';
const VERSION = "@turnkey/http@2.9.1";
const VERSION = "@turnkey/http@2.10.0";
exports.VERSION = VERSION;
//# sourceMappingURL=version.js.map
{
"name": "@turnkey/http",
"version": "2.9.1",
"version": "2.10.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

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