@turnkey/http
Advanced tools
Comparing version 2.0.0 to 2.1.0
# @turnkey/http | ||
## 2.1.0 | ||
### Minor Changes | ||
- bb6ea0b: Update generated files | ||
- new query endpoints to retrieve wallets (`/public/v1/query/list_wallets`) | ||
- new query endpoint to retrieve wallet accounts (`/public/v1/query/list_wallet_accounts`) | ||
## 2.0.0 | ||
@@ -4,0 +12,0 @@ |
@@ -9,2 +9,3 @@ import { THttpConfig, TSignedRequest, TStamper } from "../../../../../base"; | ||
import type { TGetUserBody, TGetUserResponse } from "./public_api.fetcher"; | ||
import type { TGetWalletBody, TGetWalletResponse } from "./public_api.fetcher"; | ||
import type { TGetActivitiesBody, TGetActivitiesResponse } from "./public_api.fetcher"; | ||
@@ -14,2 +15,4 @@ import type { TGetPoliciesBody, TGetPoliciesResponse } from "./public_api.fetcher"; | ||
import type { TGetUsersBody, TGetUsersResponse } from "./public_api.fetcher"; | ||
import type { TGetWalletAccountsBody, TGetWalletAccountsResponse } from "./public_api.fetcher"; | ||
import type { TGetWalletsBody, TGetWalletsResponse } from "./public_api.fetcher"; | ||
import type { TGetWhoamiBody, TGetWhoamiResponse } from "./public_api.fetcher"; | ||
@@ -152,2 +155,16 @@ import type { TApproveActivityBody, TApproveActivityResponse } from "./public_api.fetcher"; | ||
/** | ||
* Get details about a Wallet | ||
* | ||
* Sign the provided `TGetWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_wallet). | ||
* | ||
* See also {@link stampGetWallet}. | ||
*/ | ||
getWallet: (input: TGetWalletBody) => Promise<TGetWalletResponse>; | ||
/** | ||
* Produce a `SignedRequest` from `TGetWalletBody` by using the client's `stamp` function. | ||
* | ||
* See also {@link GetWallet}. | ||
*/ | ||
stampGetWallet: (input: TGetWalletBody) => Promise<TSignedRequest>; | ||
/** | ||
* List all Activities within an Organization | ||
@@ -209,2 +226,30 @@ * | ||
/** | ||
* List all Accounts wirhin a Wallet | ||
* | ||
* Sign the provided `TGetWalletAccountsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallet_accounts). | ||
* | ||
* See also {@link stampGetWalletAccounts}. | ||
*/ | ||
getWalletAccounts: (input: TGetWalletAccountsBody) => Promise<TGetWalletAccountsResponse>; | ||
/** | ||
* Produce a `SignedRequest` from `TGetWalletAccountsBody` by using the client's `stamp` function. | ||
* | ||
* See also {@link GetWalletAccounts}. | ||
*/ | ||
stampGetWalletAccounts: (input: TGetWalletAccountsBody) => Promise<TSignedRequest>; | ||
/** | ||
* List all Wallets within an Organization | ||
* | ||
* Sign the provided `TGetWalletsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallets). | ||
* | ||
* See also {@link stampGetWallets}. | ||
*/ | ||
getWallets: (input: TGetWalletsBody) => Promise<TGetWalletsResponse>; | ||
/** | ||
* Produce a `SignedRequest` from `TGetWalletsBody` by using the client's `stamp` function. | ||
* | ||
* See also {@link GetWallets}. | ||
*/ | ||
stampGetWallets: (input: TGetWalletsBody) => Promise<TSignedRequest>; | ||
/** | ||
* Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN users. | ||
@@ -588,3 +633,3 @@ * | ||
/** | ||
* Update the allowable origins for credentials and requests | ||
* Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations. | ||
* | ||
@@ -591,0 +636,0 @@ * Sign the provided `TUpdateAllowedOriginsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_allowed_origins). |
@@ -184,2 +184,27 @@ "use strict"; | ||
/** | ||
* Get details about a Wallet | ||
* | ||
* Sign the provided `TGetWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_wallet). | ||
* | ||
* See also {@link stampGetWallet}. | ||
*/ | ||
this.getWallet = async (input) => { | ||
return this.request("/public/v1/query/get_wallet", input); | ||
}; | ||
/** | ||
* Produce a `SignedRequest` from `TGetWalletBody` by using the client's `stamp` function. | ||
* | ||
* See also {@link GetWallet}. | ||
*/ | ||
this.stampGetWallet = async (input) => { | ||
const fullUrl = this.config.baseUrl + "/public/v1/query/get_wallet"; | ||
const body = JSON.stringify(input); | ||
const stamp = await this.stamper.stamp(body); | ||
return { | ||
body: body, | ||
stamp: stamp, | ||
url: fullUrl, | ||
}; | ||
}; | ||
/** | ||
* List all Activities within an Organization | ||
@@ -285,2 +310,52 @@ * | ||
/** | ||
* List all Accounts wirhin a Wallet | ||
* | ||
* Sign the provided `TGetWalletAccountsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallet_accounts). | ||
* | ||
* See also {@link stampGetWalletAccounts}. | ||
*/ | ||
this.getWalletAccounts = async (input) => { | ||
return this.request("/public/v1/query/list_wallet_accounts", input); | ||
}; | ||
/** | ||
* Produce a `SignedRequest` from `TGetWalletAccountsBody` by using the client's `stamp` function. | ||
* | ||
* See also {@link GetWalletAccounts}. | ||
*/ | ||
this.stampGetWalletAccounts = async (input) => { | ||
const fullUrl = this.config.baseUrl + "/public/v1/query/list_wallet_accounts"; | ||
const body = JSON.stringify(input); | ||
const stamp = await this.stamper.stamp(body); | ||
return { | ||
body: body, | ||
stamp: stamp, | ||
url: fullUrl, | ||
}; | ||
}; | ||
/** | ||
* List all Wallets within an Organization | ||
* | ||
* Sign the provided `TGetWalletsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallets). | ||
* | ||
* See also {@link stampGetWallets}. | ||
*/ | ||
this.getWallets = async (input) => { | ||
return this.request("/public/v1/query/list_wallets", input); | ||
}; | ||
/** | ||
* Produce a `SignedRequest` from `TGetWalletsBody` by using the client's `stamp` function. | ||
* | ||
* See also {@link GetWallets}. | ||
*/ | ||
this.stampGetWallets = async (input) => { | ||
const fullUrl = this.config.baseUrl + "/public/v1/query/list_wallets"; | ||
const body = JSON.stringify(input); | ||
const stamp = await this.stamper.stamp(body); | ||
return { | ||
body: body, | ||
stamp: stamp, | ||
url: fullUrl, | ||
}; | ||
}; | ||
/** | ||
* Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN users. | ||
@@ -961,3 +1036,3 @@ * | ||
/** | ||
* Update the allowable origins for credentials and requests | ||
* Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations. | ||
* | ||
@@ -964,0 +1039,0 @@ * Sign the provided `TUpdateAllowedOriginsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_allowed_origins). |
"use strict"; | ||
/* @generated by `@turnkey/fetchers`. DO NOT EDIT BY HAND */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.signCreateWalletAccounts = exports.createWalletAccounts = exports.signCreateWallet = exports.createWallet = exports.signCreateUsers = exports.createUsers = exports.signCreateUserTag = exports.createUserTag = exports.signCreateSubOrganization = exports.createSubOrganization = exports.signCreatePrivateKeys = exports.createPrivateKeys = exports.signCreatePrivateKeyTag = exports.createPrivateKeyTag = exports.signCreatePolicy = exports.createPolicy = exports.signCreateInvitations = exports.createInvitations = exports.signCreateAuthenticators = exports.createAuthenticators = exports.signCreateApiOnlyUsers = exports.createApiOnlyUsers = exports.signCreateApiKeys = exports.createApiKeys = exports.signApproveActivity = exports.approveActivity = exports.signGetWhoami = exports.getWhoami = exports.signGetUsers = exports.getUsers = exports.signGetPrivateKeys = exports.getPrivateKeys = exports.signGetPolicies = exports.getPolicies = exports.signGetActivities = exports.getActivities = exports.signGetUser = exports.getUser = exports.signGetPrivateKey = exports.getPrivateKey = exports.signGetPolicy = exports.getPolicy = exports.signGetOrganization = exports.getOrganization = exports.signGetAuthenticators = exports.getAuthenticators = exports.signGetAuthenticator = exports.getAuthenticator = exports.signGetActivity = exports.getActivity = void 0; | ||
exports.signNOOPCodegenAnchor = exports.nOOPCodegenAnchor = exports.signUpdateUserTag = exports.updateUserTag = exports.signUpdateUser = exports.updateUser = exports.signUpdateRootQuorum = exports.updateRootQuorum = exports.signUpdatePrivateKeyTag = exports.updatePrivateKeyTag = exports.signUpdatePolicy = exports.updatePolicy = exports.signUpdateAllowedOrigins = exports.updateAllowedOrigins = exports.signSignTransaction = exports.signTransaction = exports.signSignRawPayload = exports.signRawPayload = exports.signSetOrganizationFeature = exports.setOrganizationFeature = exports.signRemoveOrganizationFeature = exports.removeOrganizationFeature = exports.signRejectActivity = exports.rejectActivity = exports.signRecoverUser = exports.recoverUser = exports.signInitUserEmailRecovery = exports.initUserEmailRecovery = exports.signExportWallet = exports.exportWallet = exports.signExportPrivateKey = exports.exportPrivateKey = exports.signDeletePolicy = exports.deletePolicy = exports.signDeleteInvitation = exports.deleteInvitation = exports.signDeleteAuthenticators = exports.deleteAuthenticators = exports.signDeleteApiKeys = exports.deleteApiKeys = void 0; | ||
exports.signCreateUserTag = exports.createUserTag = exports.signCreateSubOrganization = exports.createSubOrganization = exports.signCreatePrivateKeys = exports.createPrivateKeys = exports.signCreatePrivateKeyTag = exports.createPrivateKeyTag = exports.signCreatePolicy = exports.createPolicy = exports.signCreateInvitations = exports.createInvitations = exports.signCreateAuthenticators = exports.createAuthenticators = exports.signCreateApiOnlyUsers = exports.createApiOnlyUsers = exports.signCreateApiKeys = exports.createApiKeys = exports.signApproveActivity = exports.approveActivity = exports.signGetWhoami = exports.getWhoami = exports.signGetWallets = exports.getWallets = exports.signGetWalletAccounts = exports.getWalletAccounts = exports.signGetUsers = exports.getUsers = exports.signGetPrivateKeys = exports.getPrivateKeys = exports.signGetPolicies = exports.getPolicies = exports.signGetActivities = exports.getActivities = exports.signGetWallet = exports.getWallet = exports.signGetUser = exports.getUser = exports.signGetPrivateKey = exports.getPrivateKey = exports.signGetPolicy = exports.getPolicy = exports.signGetOrganization = exports.getOrganization = exports.signGetAuthenticators = exports.getAuthenticators = exports.signGetAuthenticator = exports.getAuthenticator = exports.signGetActivity = exports.getActivity = void 0; | ||
exports.signNOOPCodegenAnchor = exports.nOOPCodegenAnchor = exports.signUpdateUserTag = exports.updateUserTag = exports.signUpdateUser = exports.updateUser = exports.signUpdateRootQuorum = exports.updateRootQuorum = exports.signUpdatePrivateKeyTag = exports.updatePrivateKeyTag = exports.signUpdatePolicy = exports.updatePolicy = exports.signUpdateAllowedOrigins = exports.updateAllowedOrigins = exports.signSignTransaction = exports.signTransaction = exports.signSignRawPayload = exports.signRawPayload = exports.signSetOrganizationFeature = exports.setOrganizationFeature = exports.signRemoveOrganizationFeature = exports.removeOrganizationFeature = exports.signRejectActivity = exports.rejectActivity = exports.signRecoverUser = exports.recoverUser = exports.signInitUserEmailRecovery = exports.initUserEmailRecovery = exports.signExportWallet = exports.exportWallet = exports.signExportPrivateKey = exports.exportPrivateKey = exports.signDeletePolicy = exports.deletePolicy = exports.signDeleteInvitation = exports.deleteInvitation = exports.signDeleteAuthenticators = exports.deleteAuthenticators = exports.signDeleteApiKeys = exports.deleteApiKeys = exports.signCreateWalletAccounts = exports.createWalletAccounts = exports.signCreateWallet = exports.createWallet = exports.signCreateUsers = exports.createUsers = void 0; | ||
const base_1 = require("../../../../../base"); | ||
@@ -176,2 +176,26 @@ /** | ||
/** | ||
* Get Wallet | ||
* | ||
* Get details about a Wallet | ||
* | ||
* `POST /public/v1/query/get_wallet` | ||
*/ | ||
const getWallet = (input) => (0, base_1.request)({ | ||
uri: "/public/v1/query/get_wallet", | ||
method: "POST", | ||
body: input.body, | ||
}); | ||
exports.getWallet = getWallet; | ||
/** | ||
* Request a WebAuthn assertion and return a signed `GetWallet` request, ready to be POSTed to Turnkey. | ||
* | ||
* See {@link GetWallet} | ||
*/ | ||
const signGetWallet = (input, options) => (0, base_1.signedRequest)({ | ||
uri: "/public/v1/query/get_wallet", | ||
body: input.body, | ||
options, | ||
}); | ||
exports.signGetWallet = signGetWallet; | ||
/** | ||
* List Activities | ||
@@ -273,2 +297,50 @@ * | ||
/** | ||
* List Wallets Accounts | ||
* | ||
* List all Accounts wirhin a Wallet | ||
* | ||
* `POST /public/v1/query/list_wallet_accounts` | ||
*/ | ||
const getWalletAccounts = (input) => (0, base_1.request)({ | ||
uri: "/public/v1/query/list_wallet_accounts", | ||
method: "POST", | ||
body: input.body, | ||
}); | ||
exports.getWalletAccounts = getWalletAccounts; | ||
/** | ||
* Request a WebAuthn assertion and return a signed `GetWalletAccounts` request, ready to be POSTed to Turnkey. | ||
* | ||
* See {@link GetWalletAccounts} | ||
*/ | ||
const signGetWalletAccounts = (input, options) => (0, base_1.signedRequest)({ | ||
uri: "/public/v1/query/list_wallet_accounts", | ||
body: input.body, | ||
options, | ||
}); | ||
exports.signGetWalletAccounts = signGetWalletAccounts; | ||
/** | ||
* List Wallets | ||
* | ||
* List all Wallets within an Organization | ||
* | ||
* `POST /public/v1/query/list_wallets` | ||
*/ | ||
const getWallets = (input) => (0, base_1.request)({ | ||
uri: "/public/v1/query/list_wallets", | ||
method: "POST", | ||
body: input.body, | ||
}); | ||
exports.getWallets = getWallets; | ||
/** | ||
* Request a WebAuthn assertion and return a signed `GetWallets` request, ready to be POSTed to Turnkey. | ||
* | ||
* See {@link GetWallets} | ||
*/ | ||
const signGetWallets = (input, options) => (0, base_1.signedRequest)({ | ||
uri: "/public/v1/query/list_wallets", | ||
body: input.body, | ||
options, | ||
}); | ||
exports.signGetWallets = signGetWallets; | ||
/** | ||
* Who am I? | ||
@@ -922,5 +994,5 @@ * | ||
/** | ||
* Update Allowable Origins | ||
* Update Allowed Origins | ||
* | ||
* Update the allowable origins for credentials and requests | ||
* Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations. | ||
* | ||
@@ -927,0 +999,0 @@ * `POST /public/v1/submit/update_allowed_origins` |
{ | ||
"name": "@turnkey/http", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
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 not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1976247
41674