@blockaid/client
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -41,4 +41,3 @@ "use strict"; | ||
const MultipartBody_1 = require("./MultipartBody.js"); | ||
// @ts-ignore (this package does not have proper export maps for this export) | ||
const ponyfill_es2018_js_1 = require("web-streams-polyfill/dist/ponyfill.es2018.js"); | ||
const web_1 = require("node:stream/web"); | ||
let fileFromPathWarned = false; | ||
@@ -83,3 +82,3 @@ async function fileFromPath(path, ...args) { | ||
File: fd.File, | ||
ReadableStream: ponyfill_es2018_js_1.ReadableStream, | ||
ReadableStream: web_1.ReadableStream, | ||
getMultipartRequestOptions, | ||
@@ -86,0 +85,0 @@ getDefaultAgent: (url) => (url.startsWith('https') ? defaultHttpsAgent : defaultHttpAgent), |
# Changelog | ||
## 0.15.0 (2024-07-28) | ||
Full Changelog: [v0.14.0...v0.15.0](https://github.com/blockaid-official/blockaid-client-node/compare/v0.14.0...v0.15.0) | ||
### Features | ||
* **api:** OpenAPI spec update via Stainless API ([#111](https://github.com/blockaid-official/blockaid-client-node/issues/111)) ([8f0aa10](https://github.com/blockaid-official/blockaid-client-node/commit/8f0aa104fb8ef3b88b049a60788c1af5b5489328)) | ||
* **api:** OpenAPI spec update via Stainless API ([#113](https://github.com/blockaid-official/blockaid-client-node/issues/113)) ([4cacf4c](https://github.com/blockaid-official/blockaid-client-node/commit/4cacf4ca68e724c1975c78092ed310b453ee15b2)) | ||
* **api:** OpenAPI spec update via Stainless API ([#116](https://github.com/blockaid-official/blockaid-client-node/issues/116)) ([cdddcb2](https://github.com/blockaid-official/blockaid-client-node/commit/cdddcb22e6d00bf50b5ca35bbc1354936bd56bc9)) | ||
* **api:** OpenAPI spec update via Stainless API ([#117](https://github.com/blockaid-official/blockaid-client-node/issues/117)) ([c1637e9](https://github.com/blockaid-official/blockaid-client-node/commit/c1637e9bd22b2b1220caed9c59a5afb7f542ed30)) | ||
* **api:** OpenAPI spec update via Stainless API ([#118](https://github.com/blockaid-official/blockaid-client-node/issues/118)) ([29fb0d5](https://github.com/blockaid-official/blockaid-client-node/commit/29fb0d585ff72be38c9221c12d5822dc4e53413a)) | ||
* **api:** OpenAPI spec update via Stainless API ([#121](https://github.com/blockaid-official/blockaid-client-node/issues/121)) ([34397a3](https://github.com/blockaid-official/blockaid-client-node/commit/34397a3372b9a2623cbc159b08e40c91d6f62901)) | ||
* **api:** OpenAPI spec update via Stainless API ([#122](https://github.com/blockaid-official/blockaid-client-node/issues/122)) ([8c247f2](https://github.com/blockaid-official/blockaid-client-node/commit/8c247f2d9df24f0b516e541855eb8a0beb00d6bd)) | ||
### Bug Fixes | ||
* **compat:** remove ReadableStream polyfill redundant since node v16 ([#119](https://github.com/blockaid-official/blockaid-client-node/issues/119)) ([7129ae1](https://github.com/blockaid-official/blockaid-client-node/commit/7129ae179ae0e988e76a0cd8ebd11b8a5bb57636)) | ||
* use relative paths ([#115](https://github.com/blockaid-official/blockaid-client-node/issues/115)) ([b57cf67](https://github.com/blockaid-official/blockaid-client-node/commit/b57cf67f519188e92f9424c0608fb71877d44f15)) | ||
### Chores | ||
* **docs:** fix incorrect client var names ([#120](https://github.com/blockaid-official/blockaid-client-node/issues/120)) ([978013b](https://github.com/blockaid-official/blockaid-client-node/commit/978013b7afc5722b9fb1b842d10149c8d3cfcab0)) | ||
* **tests:** update prism version ([#114](https://github.com/blockaid-official/blockaid-client-node/issues/114)) ([5ee709f](https://github.com/blockaid-official/blockaid-client-node/commit/5ee709facb5eeb693f3ae8d3c2c8e32c154e1077)) | ||
## 0.14.0 (2024-07-15) | ||
@@ -4,0 +30,0 @@ |
import * as Errors from "./error.js"; | ||
import * as Uploads from "./uploads.js"; | ||
import { type Agent } from "./_shims/index.js"; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as API from '@blockaid/client/resources/index'; | ||
import * as Core from "./core.js"; | ||
import * as API from "./resources/index.js"; | ||
export interface ClientOptions { | ||
@@ -176,6 +176,10 @@ /** | ||
export import SiteScanMissResponse = API.SiteScanMissResponse; | ||
export import SiteReportResponse = API.SiteReportResponse; | ||
export import SiteScanResponse = API.SiteScanResponse; | ||
export import SiteReportParams = API.SiteReportParams; | ||
export import SiteScanParams = API.SiteScanParams; | ||
export import Token = API.Token; | ||
export import TokenReportResponse = API.TokenReportResponse; | ||
export import TokenScanResponse = API.TokenScanResponse; | ||
export import TokenReportParams = API.TokenReportParams; | ||
export import TokenScanParams = API.TokenScanParams; | ||
@@ -182,0 +186,0 @@ } |
@@ -31,4 +31,4 @@ "use strict"; | ||
const Uploads = __importStar(require("./uploads.js")); | ||
const Core = __importStar(require("@blockaid/client/core")); | ||
const API = __importStar(require("@blockaid/client/resources/index")); | ||
const Core = __importStar(require("./core.js")); | ||
const API = __importStar(require("./resources/index.js")); | ||
/** | ||
@@ -35,0 +35,0 @@ * API Client for interfacing with the Blockaid API. |
{ | ||
"name": "@blockaid/client", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "The official TypeScript library for the Blockaid API", | ||
@@ -31,4 +31,3 @@ "author": "Blockaid <feedback@blockaid.io>", | ||
"formdata-node": "^4.3.2", | ||
"node-fetch": "^2.6.7", | ||
"web-streams-polyfill": "^3.2.1" | ||
"node-fetch": "^2.6.7" | ||
}, | ||
@@ -35,0 +34,0 @@ "sideEffects": [ |
@@ -7,3 +7,3 @@ # Blockaid Node API Library | ||
The REST API documentation can be found [on docs.blockaid.io](https://docs.blockaid.io). The full API of this library can be found in [api.md](api.md). | ||
The REST API documentation can be found on [docs.blockaid.io](https://docs.blockaid.io). The full API of this library can be found in [api.md](api.md). | ||
@@ -26,3 +26,3 @@ It is generated with [Stainless](https://www.stainlessapi.com/). | ||
const blockaid = new Blockaid({ | ||
const client = new Blockaid({ | ||
apiKey: process.env['BLOCKAID_CLIENT_API_KEY'], // This is the default and can be omitted | ||
@@ -32,3 +32,3 @@ }); | ||
async function main() { | ||
const transactionScanResponse = await blockaid.evm.jsonRpc.scan({ | ||
const transactionScanResponse = await client.evm.jsonRpc.scan({ | ||
chain: 'ethereum', | ||
@@ -59,3 +59,3 @@ data: { | ||
const blockaid = new Blockaid({ | ||
const client = new Blockaid({ | ||
apiKey: process.env['BLOCKAID_CLIENT_API_KEY'], // This is the default and can be omitted | ||
@@ -76,3 +76,3 @@ }); | ||
}; | ||
const transactionScanResponse: Blockaid.TransactionScanResponse = await blockaid.evm.jsonRpc.scan(params); | ||
const transactionScanResponse: Blockaid.TransactionScanResponse = await client.evm.jsonRpc.scan(params); | ||
} | ||
@@ -94,3 +94,3 @@ | ||
async function main() { | ||
const transactionScanResponse = await blockaid.evm.jsonRpc | ||
const transactionScanResponse = await client.evm.jsonRpc | ||
.scan({ | ||
@@ -145,3 +145,3 @@ chain: 'ethereum', | ||
// Configure the default for all requests: | ||
const blockaid = new Blockaid({ | ||
const client = new Blockaid({ | ||
maxRetries: 0, // default is 2 | ||
@@ -151,3 +151,3 @@ }); | ||
// Or, configure per-request: | ||
await blockaid.evm.jsonRpc.scan({ chain: 'ethereum', data: { method: 'eth_signTypedData_v4', params: ['0x49c73c9d361c04769a452E85D343b41aC38e0EE4', '{"domain":{"chainId":1,"name":"Aave interest bearing WETH","version":"1","verifyingContract":"0x030ba81f1c18d280636f32af80b9aad02cf0854e"},"message":{"owner":"0x49c73c9d361c04769a452E85D343b41aC38e0EE4","spender":"0xa74cbd5b80f73b5950768c8dc467f1c6307c00fd","value":"115792089237316195423570985008687907853269984665640564039457584007913129639935","nonce":"0","deadline":"1988064000","holder":"0x49c73c9d361c04769a452E85D343b41aC38e0EE4"},"primaryType":"Permit","types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"Permit":[{"name":"owner","type":"address"},{"name":"spender","type":"address"},{"name":"value","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"deadline","type":"uint256"}]}}'] }, metadata: { domain: 'https://boredapeyartclub.com' } }, { | ||
await client.evm.jsonRpc.scan({ chain: 'ethereum', data: { method: 'eth_signTypedData_v4', params: ['0x49c73c9d361c04769a452E85D343b41aC38e0EE4', '{"domain":{"chainId":1,"name":"Aave interest bearing WETH","version":"1","verifyingContract":"0x030ba81f1c18d280636f32af80b9aad02cf0854e"},"message":{"owner":"0x49c73c9d361c04769a452E85D343b41aC38e0EE4","spender":"0xa74cbd5b80f73b5950768c8dc467f1c6307c00fd","value":"115792089237316195423570985008687907853269984665640564039457584007913129639935","nonce":"0","deadline":"1988064000","holder":"0x49c73c9d361c04769a452E85D343b41aC38e0EE4"},"primaryType":"Permit","types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"Permit":[{"name":"owner","type":"address"},{"name":"spender","type":"address"},{"name":"value","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"deadline","type":"uint256"}]}}'] }, metadata: { domain: 'https://boredapeyartclub.com' } }, { | ||
maxRetries: 5, | ||
@@ -164,3 +164,3 @@ }); | ||
// Configure the default for all requests: | ||
const blockaid = new Blockaid({ | ||
const client = new Blockaid({ | ||
timeout: 20 * 1000, // 20 seconds (default is 1 minute) | ||
@@ -170,3 +170,3 @@ }); | ||
// Override per-request: | ||
await blockaid.evm.jsonRpc.scan({ chain: 'ethereum', data: { method: 'eth_signTypedData_v4', params: ['0x49c73c9d361c04769a452E85D343b41aC38e0EE4', '{"domain":{"chainId":1,"name":"Aave interest bearing WETH","version":"1","verifyingContract":"0x030ba81f1c18d280636f32af80b9aad02cf0854e"},"message":{"owner":"0x49c73c9d361c04769a452E85D343b41aC38e0EE4","spender":"0xa74cbd5b80f73b5950768c8dc467f1c6307c00fd","value":"115792089237316195423570985008687907853269984665640564039457584007913129639935","nonce":"0","deadline":"1988064000","holder":"0x49c73c9d361c04769a452E85D343b41aC38e0EE4"},"primaryType":"Permit","types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"Permit":[{"name":"owner","type":"address"},{"name":"spender","type":"address"},{"name":"value","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"deadline","type":"uint256"}]}}'] }, metadata: { domain: 'https://boredapeyartclub.com' } }, { | ||
await client.evm.jsonRpc.scan({ chain: 'ethereum', data: { method: 'eth_signTypedData_v4', params: ['0x49c73c9d361c04769a452E85D343b41aC38e0EE4', '{"domain":{"chainId":1,"name":"Aave interest bearing WETH","version":"1","verifyingContract":"0x030ba81f1c18d280636f32af80b9aad02cf0854e"},"message":{"owner":"0x49c73c9d361c04769a452E85D343b41aC38e0EE4","spender":"0xa74cbd5b80f73b5950768c8dc467f1c6307c00fd","value":"115792089237316195423570985008687907853269984665640564039457584007913129639935","nonce":"0","deadline":"1988064000","holder":"0x49c73c9d361c04769a452E85D343b41aC38e0EE4"},"primaryType":"Permit","types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"Permit":[{"name":"owner","type":"address"},{"name":"spender","type":"address"},{"name":"value","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"deadline","type":"uint256"}]}}'] }, metadata: { domain: 'https://boredapeyartclub.com' } }, { | ||
timeout: 5 * 1000, | ||
@@ -190,5 +190,5 @@ }); | ||
```ts | ||
const blockaid = new Blockaid(); | ||
const client = new Blockaid(); | ||
const response = await blockaid.evm.jsonRpc | ||
const response = await client.evm.jsonRpc | ||
.scan({ | ||
@@ -209,3 +209,3 @@ chain: 'ethereum', | ||
const { data: transactionScanResponse, response: raw } = await blockaid.evm.jsonRpc | ||
const { data: transactionScanResponse, response: raw } = await client.evm.jsonRpc | ||
.scan({ | ||
@@ -323,3 +323,3 @@ chain: 'ethereum', | ||
// Configure the default for all requests: | ||
const blockaid = new Blockaid({ | ||
const client = new Blockaid({ | ||
httpAgent: new HttpsProxyAgent(process.env.PROXY_URL), | ||
@@ -329,3 +329,3 @@ }); | ||
// Override per-request: | ||
await blockaid.evm.jsonRpc.scan( | ||
await client.evm.jsonRpc.scan( | ||
{ | ||
@@ -366,12 +366,4 @@ chain: 'ethereum', | ||
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions. | ||
- Deno v1.28.0 or higher, using `import Blockaid from "npm:@blockaid/client"`. | ||
- Bun 1.0 or later. | ||
- Cloudflare Workers. | ||
- Vercel Edge Runtime. | ||
- Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time). | ||
- Nitro v2.6 or greater. | ||
Note that React Native is not supported at this time. | ||
If you are interested in other runtime environments, please open or upvote an issue on GitHub. |
@@ -1,10 +0,10 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
import * as JsonRpcAPI from '@blockaid/client/resources/evm/json-rpc'; | ||
import * as PostTransactionAPI from '@blockaid/client/resources/evm/post-transaction'; | ||
import * as PostTransactionBulkAPI from '@blockaid/client/resources/evm/post-transaction-bulk'; | ||
import * as TransactionAPI from '@blockaid/client/resources/evm/transaction'; | ||
import * as TransactionBulkAPI from '@blockaid/client/resources/evm/transaction-bulk'; | ||
import * as TransactionRawAPI from '@blockaid/client/resources/evm/transaction-raw'; | ||
import * as UserOperationAPI from '@blockaid/client/resources/evm/user-operation'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as EvmAPI from "./evm.js"; | ||
import * as JsonRpcAPI from "./json-rpc.js"; | ||
import * as PostTransactionAPI from "./post-transaction.js"; | ||
import * as PostTransactionBulkAPI from "./post-transaction-bulk.js"; | ||
import * as TransactionAPI from "./transaction.js"; | ||
import * as TransactionBulkAPI from "./transaction-bulk.js"; | ||
import * as TransactionRawAPI from "./transaction-raw.js"; | ||
import * as UserOperationAPI from "./user-operation.js"; | ||
export declare class Evm extends APIResource { | ||
@@ -282,3 +282,3 @@ jsonRpc: JsonRpcAPI.JsonRpc; | ||
*/ | ||
export type TokenScanSupportedChain = 'arbitrum' | 'avalanche' | 'base' | 'bsc' | 'ethereum' | 'optimism' | 'polygon' | 'zora' | 'solana' | 'stellar'; | ||
export type TokenScanSupportedChain = 'arbitrum' | 'avalanche' | 'base' | 'bsc' | 'ethereum' | 'optimism' | 'polygon' | 'zora' | 'solana' | 'stellar' | 'linea' | 'blast' | 'zksync' | 'scroll' | 'degen'; | ||
export interface TransactionScanFeature { | ||
@@ -594,2 +594,4 @@ /** | ||
export import Transaction = TransactionAPI.Transaction; | ||
export import TransactionReportResponse = TransactionAPI.TransactionReportResponse; | ||
export import TransactionReportParams = TransactionAPI.TransactionReportParams; | ||
export import TransactionScanParams = TransactionAPI.TransactionScanParams; | ||
@@ -604,2 +606,4 @@ export import TransactionBulk = TransactionBulkAPI.TransactionBulk; | ||
export import PostTransaction = PostTransactionAPI.PostTransaction; | ||
export import PostTransactionReportResponse = PostTransactionAPI.PostTransactionReportResponse; | ||
export import PostTransactionReportParams = PostTransactionAPI.PostTransactionReportParams; | ||
export import PostTransactionScanParams = PostTransactionAPI.PostTransactionScanParams; | ||
@@ -606,0 +610,0 @@ export import PostTransactionBulk = PostTransactionBulkAPI.PostTransactionBulk; |
@@ -28,10 +28,10 @@ "use strict"; | ||
exports.Evm = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const JsonRpcAPI = __importStar(require("@blockaid/client/resources/evm/json-rpc")); | ||
const PostTransactionAPI = __importStar(require("@blockaid/client/resources/evm/post-transaction")); | ||
const PostTransactionBulkAPI = __importStar(require("@blockaid/client/resources/evm/post-transaction-bulk")); | ||
const TransactionAPI = __importStar(require("@blockaid/client/resources/evm/transaction")); | ||
const TransactionBulkAPI = __importStar(require("@blockaid/client/resources/evm/transaction-bulk")); | ||
const TransactionRawAPI = __importStar(require("@blockaid/client/resources/evm/transaction-raw")); | ||
const UserOperationAPI = __importStar(require("@blockaid/client/resources/evm/user-operation")); | ||
const resource_1 = require("../../resource.js"); | ||
const JsonRpcAPI = __importStar(require("./json-rpc.js")); | ||
const PostTransactionAPI = __importStar(require("./post-transaction.js")); | ||
const PostTransactionBulkAPI = __importStar(require("./post-transaction-bulk.js")); | ||
const TransactionAPI = __importStar(require("./transaction.js")); | ||
const TransactionBulkAPI = __importStar(require("./transaction-bulk.js")); | ||
const TransactionRawAPI = __importStar(require("./transaction-raw.js")); | ||
const UserOperationAPI = __importStar(require("./user-operation.js")); | ||
class Evm extends resource_1.APIResource { | ||
@@ -38,0 +38,0 @@ constructor() { |
export { AddressAssetExposure, AssetDiff, GeneralAssetDiff, Erc1155Diff, Erc1155Exposure, Erc1155TokenDetails, Erc20Diff, Erc20Exposure, Erc20TokenDetails, Erc721Diff, Erc721Exposure, Erc721TokenDetails, Metadata, NativeAssetDetails, NativeDiff, NonercTokenDetails, TokenScanSupportedChain, TransactionScanFeature, TransactionScanResponse, TransactionScanSupportedChain, TransactionSimulationResponse, TransactionSimulation, TransactionSimulationError, TransactionValidationResponse, TransactionValidation, TransactionValidationError, UsdDiff, Evm, } from "./evm.js"; | ||
export { JsonRpcScanParams, JsonRpc } from "./json-rpc.js"; | ||
export { PostTransactionBulkScanResponse, PostTransactionBulkScanParams, PostTransactionBulk, } from "./post-transaction-bulk.js"; | ||
export { PostTransactionScanParams, PostTransaction } from "./post-transaction.js"; | ||
export { PostTransactionReportResponse, PostTransactionReportParams, PostTransactionScanParams, PostTransaction, } from "./post-transaction.js"; | ||
export { TransactionBulkScanResponse, TransactionBulkScanParams, TransactionBulk } from "./transaction-bulk.js"; | ||
export { TransactionRawScanParams, TransactionRaw } from "./transaction-raw.js"; | ||
export { TransactionScanParams, Transaction } from "./transaction.js"; | ||
export { TransactionReportResponse, TransactionReportParams, TransactionScanParams, Transaction, } from "./transaction.js"; | ||
export { UserOperationScanParams, UserOperation } from "./user-operation.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,5 +0,5 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as JsonRpcAPI from '@blockaid/client/resources/evm/json-rpc'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as JsonRpcAPI from "./json-rpc.js"; | ||
import * as EvmAPI from "./evm.js"; | ||
export declare class JsonRpc extends APIResource { | ||
@@ -6,0 +6,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.JsonRpc = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class JsonRpc extends resource_1.APIResource { | ||
@@ -8,0 +8,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as PostTransactionBulkAPI from '@blockaid/client/resources/evm/post-transaction-bulk'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as PostTransactionBulkAPI from "./post-transaction-bulk.js"; | ||
import * as EvmAPI from "./evm.js"; | ||
export declare class PostTransactionBulk extends APIResource { | ||
@@ -6,0 +6,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.PostTransactionBulk = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class PostTransactionBulk extends resource_1.APIResource { | ||
@@ -8,0 +8,0 @@ /** |
@@ -1,7 +0,11 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as PostTransactionAPI from '@blockaid/client/resources/evm/post-transaction'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as PostTransactionAPI from "./post-transaction.js"; | ||
import * as EvmAPI from "./evm.js"; | ||
export declare class PostTransaction extends APIResource { | ||
/** | ||
* Report for misclassification of an EVM post transaction. | ||
*/ | ||
report(body: PostTransactionReportParams, options?: Core.RequestOptions): Core.APIPromise<unknown>; | ||
/** | ||
* Scan a transaction that was already executed on chain, returns validation with | ||
@@ -12,2 +16,30 @@ * features indicating address poisoning entites and malicious operators. | ||
} | ||
export type PostTransactionReportResponse = unknown; | ||
export interface PostTransactionReportParams { | ||
details: string; | ||
/** | ||
* An enumeration. | ||
*/ | ||
event: 'FALSE_POSITIVE' | 'FALSE_NEGATIVE'; | ||
report: PostTransactionReportParams.ParamReportChainTransactionHashParams | PostTransactionReportParams.RequestIDReport; | ||
} | ||
export declare namespace PostTransactionReportParams { | ||
interface ParamReportChainTransactionHashParams { | ||
params: ParamReportChainTransactionHashParams.Params; | ||
type: 'params'; | ||
} | ||
namespace ParamReportChainTransactionHashParams { | ||
interface Params { | ||
/** | ||
* The chain name | ||
*/ | ||
chain: EvmAPI.TransactionScanSupportedChain; | ||
tx_hash: string; | ||
} | ||
} | ||
interface RequestIDReport { | ||
request_id: string; | ||
type: 'request_id'; | ||
} | ||
} | ||
export interface PostTransactionScanParams { | ||
@@ -43,4 +75,6 @@ /** | ||
export declare namespace PostTransaction { | ||
export import PostTransactionReportResponse = PostTransactionAPI.PostTransactionReportResponse; | ||
export import PostTransactionReportParams = PostTransactionAPI.PostTransactionReportParams; | ||
export import PostTransactionScanParams = PostTransactionAPI.PostTransactionScanParams; | ||
} | ||
//# sourceMappingURL=post-transaction.d.ts.map |
@@ -5,5 +5,11 @@ "use strict"; | ||
exports.PostTransaction = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class PostTransaction extends resource_1.APIResource { | ||
/** | ||
* Report for misclassification of an EVM post transaction. | ||
*/ | ||
report(body, options) { | ||
return this._client.post('/v0/evm/post-transaction/report', { body, ...options }); | ||
} | ||
/** | ||
* Scan a transaction that was already executed on chain, returns validation with | ||
@@ -10,0 +16,0 @@ * features indicating address poisoning entites and malicious operators. |
@@ -1,5 +0,5 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as TransactionBulkAPI from '@blockaid/client/resources/evm/transaction-bulk'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as TransactionBulkAPI from "./transaction-bulk.js"; | ||
import * as EvmAPI from "./evm.js"; | ||
export declare class TransactionBulk extends APIResource { | ||
@@ -6,0 +6,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.TransactionBulk = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class TransactionBulk extends resource_1.APIResource { | ||
@@ -8,0 +8,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as TransactionRawAPI from '@blockaid/client/resources/evm/transaction-raw'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as TransactionRawAPI from "./transaction-raw.js"; | ||
import * as EvmAPI from "./evm.js"; | ||
export declare class TransactionRaw extends APIResource { | ||
@@ -6,0 +6,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.TransactionRaw = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class TransactionRaw extends resource_1.APIResource { | ||
@@ -8,0 +8,0 @@ /** |
@@ -1,7 +0,11 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as TransactionAPI from '@blockaid/client/resources/evm/transaction'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as TransactionAPI from "./transaction.js"; | ||
import * as EvmAPI from "./evm.js"; | ||
export declare class Transaction extends APIResource { | ||
/** | ||
* Report for misclassification of a transaction. | ||
*/ | ||
report(body: TransactionReportParams, options?: Core.RequestOptions): Core.APIPromise<unknown>; | ||
/** | ||
* Gets a transaction and returns a full simulation indicating what will happen in | ||
@@ -13,2 +17,32 @@ * the transaction together with a recommended action and some textual reasons of | ||
} | ||
export type TransactionReportResponse = unknown; | ||
export interface TransactionReportParams { | ||
details: string; | ||
/** | ||
* An enumeration. | ||
*/ | ||
event: 'FALSE_POSITIVE' | 'FALSE_NEGATIVE'; | ||
report: TransactionReportParams.ParamReportTransactionReportParams | TransactionReportParams.RequestIDReport; | ||
} | ||
export declare namespace TransactionReportParams { | ||
interface ParamReportTransactionReportParams { | ||
params: ParamReportTransactionReportParams.Params; | ||
type: 'params'; | ||
} | ||
namespace ParamReportTransactionReportParams { | ||
interface Params { | ||
account_address: string; | ||
/** | ||
* The chain name | ||
*/ | ||
chain: EvmAPI.TransactionScanSupportedChain; | ||
data: unknown; | ||
metadata: unknown; | ||
} | ||
} | ||
interface RequestIDReport { | ||
request_id: string; | ||
type: 'request_id'; | ||
} | ||
} | ||
export interface TransactionScanParams { | ||
@@ -75,4 +109,6 @@ /** | ||
export declare namespace Transaction { | ||
export import TransactionReportResponse = TransactionAPI.TransactionReportResponse; | ||
export import TransactionReportParams = TransactionAPI.TransactionReportParams; | ||
export import TransactionScanParams = TransactionAPI.TransactionScanParams; | ||
} | ||
//# sourceMappingURL=transaction.d.ts.map |
@@ -5,5 +5,11 @@ "use strict"; | ||
exports.Transaction = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class Transaction extends resource_1.APIResource { | ||
/** | ||
* Report for misclassification of a transaction. | ||
*/ | ||
report(body, options) { | ||
return this._client.post('/v0/evm/transaction/report', { body, ...options }); | ||
} | ||
/** | ||
* Gets a transaction and returns a full simulation indicating what will happen in | ||
@@ -10,0 +16,0 @@ * the transaction together with a recommended action and some textual reasons of |
@@ -1,5 +0,5 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as UserOperationAPI from '@blockaid/client/resources/evm/user-operation'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as UserOperationAPI from "./user-operation.js"; | ||
import * as EvmAPI from "./evm.js"; | ||
export declare class UserOperation extends APIResource { | ||
@@ -6,0 +6,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.UserOperation = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class UserOperation extends resource_1.APIResource { | ||
@@ -8,0 +8,0 @@ /** |
export { AccountSummarySchema, AddressScanRequestSchema, AddressScanResponseSchema, AssetTransferDetailsSchema, CnftDetailsSchema, CnftDiffSchema, CnftMintAccountDetailsSchema, CombinedValidationResult, DelegatedAssetDetailsSchema, FungibleMintAccountDetailsSchema, NativeSolDetailsSchema, NativeSolDiffSchema, NativeSolOwnershipDiffSchema, NonFungibleMintAccountDetailsSchema, PdaAccountSchema, ProgramAccountDetailsSchema, ResponseSchema, SplFungibleTokenDetailsSchema, SplFungibleTokenDiffSchema, SplNonFungibleTokenDetailsSchema, SplNonFungibleTokenDiffSchema, SplTokenOwnershipDiffSchema, StakedSolAssetDetailsSchema, StakedSolWithdrawAuthorityDiffSchema, SuccessfulSimulationResultSchema, SystemAccountDetailsSchema, TokenAccountDetailsSchema, TotalUsdDiffSchema, TxScanRequestSchema, Solana, } from "./solana/solana.js"; | ||
export { AddressAssetExposure, AssetDiff, GeneralAssetDiff, Erc1155Diff, Erc1155Exposure, Erc1155TokenDetails, Erc20Diff, Erc20Exposure, Erc20TokenDetails, Erc721Diff, Erc721Exposure, Erc721TokenDetails, Metadata, NativeAssetDetails, NativeDiff, NonercTokenDetails, TokenScanSupportedChain, TransactionScanFeature, TransactionScanResponse, TransactionScanSupportedChain, TransactionSimulationResponse, TransactionSimulation, TransactionSimulationError, TransactionValidationResponse, TransactionValidation, TransactionValidationError, UsdDiff, Evm, } from "./evm/evm.js"; | ||
export { SiteScanHitResponse, SiteScanMissResponse, SiteScanResponse, SiteScanParams, Site } from "./site.js"; | ||
export { SiteScanHitResponse, SiteScanMissResponse, SiteReportResponse, SiteScanResponse, SiteReportParams, SiteScanParams, Site, } from "./site.js"; | ||
export { StellarAssetContractDetailsSchema, StellarAssetTransferDetailsSchema, StellarTransactionScanRequest, StellarTransactionScanResponse, Stellar, } from "./stellar/stellar.js"; | ||
export { TokenScanResponse, TokenScanParams, Token } from "./token.js"; | ||
export { TokenReportResponse, TokenScanResponse, TokenReportParams, TokenScanParams, Token } from "./token.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,6 +0,10 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as SiteAPI from '@blockaid/client/resources/site'; | ||
import { APIResource } from "../resource.js"; | ||
import * as Core from "../core.js"; | ||
import * as SiteAPI from "./site.js"; | ||
export declare class Site extends APIResource { | ||
/** | ||
* Report for misclassification of a site. | ||
*/ | ||
report(body: SiteReportParams, options?: Core.RequestOptions): Core.APIPromise<unknown>; | ||
/** | ||
* Scan Site | ||
@@ -42,3 +46,27 @@ */ | ||
} | ||
export type SiteReportResponse = unknown; | ||
export type SiteScanResponse = SiteScanHitResponse | SiteScanMissResponse; | ||
export interface SiteReportParams { | ||
details: string; | ||
/** | ||
* An enumeration. | ||
*/ | ||
event: 'FALSE_POSITIVE' | 'FALSE_NEGATIVE'; | ||
report: SiteReportParams.ParamReportSiteReportParams | SiteReportParams.RequestIDReport; | ||
} | ||
export declare namespace SiteReportParams { | ||
interface ParamReportSiteReportParams { | ||
params: ParamReportSiteReportParams.Params; | ||
type: 'params'; | ||
} | ||
namespace ParamReportSiteReportParams { | ||
interface Params { | ||
url: string; | ||
} | ||
} | ||
interface RequestIDReport { | ||
request_id: string; | ||
type: 'request_id'; | ||
} | ||
} | ||
export interface SiteScanParams { | ||
@@ -60,5 +88,7 @@ url: string; | ||
export import SiteScanMissResponse = SiteAPI.SiteScanMissResponse; | ||
export import SiteReportResponse = SiteAPI.SiteReportResponse; | ||
export import SiteScanResponse = SiteAPI.SiteScanResponse; | ||
export import SiteReportParams = SiteAPI.SiteReportParams; | ||
export import SiteScanParams = SiteAPI.SiteScanParams; | ||
} | ||
//# sourceMappingURL=site.d.ts.map |
@@ -5,5 +5,11 @@ "use strict"; | ||
exports.Site = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../resource.js"); | ||
class Site extends resource_1.APIResource { | ||
/** | ||
* Report for misclassification of a site. | ||
*/ | ||
report(body, options) { | ||
return this._client.post('/v0/site/report', { body, ...options }); | ||
} | ||
/** | ||
* Scan Site | ||
@@ -10,0 +16,0 @@ */ |
@@ -1,5 +0,5 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as AddressAPI from '@blockaid/client/resources/solana/address'; | ||
import * as SolanaAPI from '@blockaid/client/resources/solana/solana'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as AddressAPI from "./address.js"; | ||
import * as SolanaAPI from "./solana.js"; | ||
export declare class Address extends APIResource { | ||
@@ -6,0 +6,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.Address = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class Address extends resource_1.APIResource { | ||
@@ -8,0 +8,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as MessageAPI from '@blockaid/client/resources/solana/message'; | ||
import * as SolanaAPI from '@blockaid/client/resources/solana/solana'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as MessageAPI from "./message.js"; | ||
import * as SolanaAPI from "./solana.js"; | ||
export declare class Message extends APIResource { | ||
@@ -6,0 +6,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.Message = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class Message extends resource_1.APIResource { | ||
@@ -8,0 +8,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as SolanaAPI from '@blockaid/client/resources/solana/solana'; | ||
import * as AddressAPI from '@blockaid/client/resources/solana/address'; | ||
import * as MessageAPI from '@blockaid/client/resources/solana/message'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as SolanaAPI from "./solana.js"; | ||
import * as AddressAPI from "./address.js"; | ||
import * as MessageAPI from "./message.js"; | ||
export declare class Solana extends APIResource { | ||
@@ -6,0 +6,0 @@ message: MessageAPI.Message; |
@@ -28,5 +28,5 @@ "use strict"; | ||
exports.Solana = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const AddressAPI = __importStar(require("@blockaid/client/resources/solana/address")); | ||
const MessageAPI = __importStar(require("@blockaid/client/resources/solana/message")); | ||
const resource_1 = require("../../resource.js"); | ||
const AddressAPI = __importStar(require("./address.js")); | ||
const MessageAPI = __importStar(require("./message.js")); | ||
class Solana extends resource_1.APIResource { | ||
@@ -33,0 +33,0 @@ constructor() { |
@@ -1,4 +0,4 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as StellarAPI from '@blockaid/client/resources/stellar/stellar'; | ||
import * as TransactionAPI from '@blockaid/client/resources/stellar/transaction'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as StellarAPI from "./stellar.js"; | ||
import * as TransactionAPI from "./transaction.js"; | ||
export declare class Stellar extends APIResource { | ||
@@ -5,0 +5,0 @@ transaction: TransactionAPI.Transaction; |
@@ -28,4 +28,4 @@ "use strict"; | ||
exports.Stellar = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const TransactionAPI = __importStar(require("@blockaid/client/resources/stellar/transaction")); | ||
const resource_1 = require("../../resource.js"); | ||
const TransactionAPI = __importStar(require("./transaction.js")); | ||
class Stellar extends resource_1.APIResource { | ||
@@ -32,0 +32,0 @@ constructor() { |
@@ -1,5 +0,5 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as TransactionAPI from '@blockaid/client/resources/stellar/transaction'; | ||
import * as StellarAPI from '@blockaid/client/resources/stellar/stellar'; | ||
import { APIResource } from "../../resource.js"; | ||
import * as Core from "../../core.js"; | ||
import * as TransactionAPI from "./transaction.js"; | ||
import * as StellarAPI from "./stellar.js"; | ||
export declare class Transaction extends APIResource { | ||
@@ -6,0 +6,0 @@ /** |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.Transaction = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../../resource.js"); | ||
class Transaction extends resource_1.APIResource { | ||
@@ -8,0 +8,0 @@ /** |
@@ -1,7 +0,11 @@ | ||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as TokenAPI from '@blockaid/client/resources/token'; | ||
import * as EvmAPI from '@blockaid/client/resources/evm/evm'; | ||
import { APIResource } from "../resource.js"; | ||
import * as Core from "../core.js"; | ||
import * as TokenAPI from "./token.js"; | ||
import * as EvmAPI from "./evm/evm.js"; | ||
export declare class Token extends APIResource { | ||
/** | ||
* Report for misclassification of a token. | ||
*/ | ||
report(body: TokenReportParams, options?: Core.RequestOptions): Core.APIPromise<unknown>; | ||
/** | ||
* Gets a token address and scan the token to identify any indication of malicious | ||
@@ -12,2 +16,3 @@ * behaviour | ||
} | ||
export type TokenReportResponse = unknown; | ||
export interface TokenScanResponse { | ||
@@ -43,2 +48,29 @@ /** | ||
} | ||
export interface TokenReportParams { | ||
details: string; | ||
/** | ||
* An enumeration. | ||
*/ | ||
event: 'FALSE_POSITIVE' | 'FALSE_NEGATIVE'; | ||
report: TokenReportParams.ParamReportAddressChainReportParams | TokenReportParams.RequestIDReport; | ||
} | ||
export declare namespace TokenReportParams { | ||
interface ParamReportAddressChainReportParams { | ||
params: ParamReportAddressChainReportParams.Params; | ||
type: 'params'; | ||
} | ||
namespace ParamReportAddressChainReportParams { | ||
interface Params { | ||
address: string; | ||
/** | ||
* The chain name | ||
*/ | ||
chain: EvmAPI.TokenScanSupportedChain; | ||
} | ||
} | ||
interface RequestIDReport { | ||
request_id: string; | ||
type: 'request_id'; | ||
} | ||
} | ||
export interface TokenScanParams { | ||
@@ -70,5 +102,7 @@ /** | ||
export declare namespace Token { | ||
export import TokenReportResponse = TokenAPI.TokenReportResponse; | ||
export import TokenScanResponse = TokenAPI.TokenScanResponse; | ||
export import TokenReportParams = TokenAPI.TokenReportParams; | ||
export import TokenScanParams = TokenAPI.TokenScanParams; | ||
} | ||
//# sourceMappingURL=token.d.ts.map |
@@ -5,5 +5,11 @@ "use strict"; | ||
exports.Token = void 0; | ||
const resource_1 = require("@blockaid/client/resource"); | ||
const resource_1 = require("../resource.js"); | ||
class Token extends resource_1.APIResource { | ||
/** | ||
* Report for misclassification of a token. | ||
*/ | ||
report(body, options) { | ||
return this._client.post('/v0/token/report', { body, ...options }); | ||
} | ||
/** | ||
* Gets a token address and scan the token to identify any indication of malicious | ||
@@ -10,0 +16,0 @@ * behaviour |
@@ -16,6 +16,4 @@ /** | ||
import { type Shims } from './registry'; | ||
import { ReadableStream } from 'node:stream/web'; | ||
// @ts-ignore (this package does not have proper export maps for this export) | ||
import { ReadableStream } from 'web-streams-polyfill/dist/ponyfill.es2018.js'; | ||
type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>; | ||
@@ -22,0 +20,0 @@ |
@@ -6,4 +6,4 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { type Agent } from './_shims/index'; | ||
import * as Core from "./core"; | ||
import * as API from "./resources/index"; | ||
import * as Core from './core'; | ||
import * as API from './resources/index'; | ||
@@ -255,7 +255,11 @@ export interface ClientOptions { | ||
export import SiteScanMissResponse = API.SiteScanMissResponse; | ||
export import SiteReportResponse = API.SiteReportResponse; | ||
export import SiteScanResponse = API.SiteScanResponse; | ||
export import SiteReportParams = API.SiteReportParams; | ||
export import SiteScanParams = API.SiteScanParams; | ||
export import Token = API.Token; | ||
export import TokenReportResponse = API.TokenReportResponse; | ||
export import TokenScanResponse = API.TokenScanResponse; | ||
export import TokenReportParams = API.TokenReportParams; | ||
export import TokenScanParams = API.TokenScanParams; | ||
@@ -262,0 +266,0 @@ } |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as EvmAPI from "./evm"; | ||
import * as JsonRpcAPI from "./json-rpc"; | ||
import * as PostTransactionAPI from "./post-transaction"; | ||
import * as PostTransactionBulkAPI from "./post-transaction-bulk"; | ||
import * as TransactionAPI from "./transaction"; | ||
import * as TransactionBulkAPI from "./transaction-bulk"; | ||
import * as TransactionRawAPI from "./transaction-raw"; | ||
import * as UserOperationAPI from "./user-operation"; | ||
import { APIResource } from '../../resource'; | ||
import * as EvmAPI from './evm'; | ||
import * as JsonRpcAPI from './json-rpc'; | ||
import * as PostTransactionAPI from './post-transaction'; | ||
import * as PostTransactionBulkAPI from './post-transaction-bulk'; | ||
import * as TransactionAPI from './transaction'; | ||
import * as TransactionBulkAPI from './transaction-bulk'; | ||
import * as TransactionRawAPI from './transaction-raw'; | ||
import * as UserOperationAPI from './user-operation'; | ||
@@ -366,3 +366,8 @@ export class Evm extends APIResource { | ||
| 'solana' | ||
| 'stellar'; | ||
| 'stellar' | ||
| 'linea' | ||
| 'blast' | ||
| 'zksync' | ||
| 'scroll' | ||
| 'degen'; | ||
@@ -775,2 +780,4 @@ export interface TransactionScanFeature { | ||
export import Transaction = TransactionAPI.Transaction; | ||
export import TransactionReportResponse = TransactionAPI.TransactionReportResponse; | ||
export import TransactionReportParams = TransactionAPI.TransactionReportParams; | ||
export import TransactionScanParams = TransactionAPI.TransactionScanParams; | ||
@@ -785,2 +792,4 @@ export import TransactionBulk = TransactionBulkAPI.TransactionBulk; | ||
export import PostTransaction = PostTransactionAPI.PostTransaction; | ||
export import PostTransactionReportResponse = PostTransactionAPI.PostTransactionReportResponse; | ||
export import PostTransactionReportParams = PostTransactionAPI.PostTransactionReportParams; | ||
export import PostTransactionScanParams = PostTransactionAPI.PostTransactionScanParams; | ||
@@ -787,0 +796,0 @@ export import PostTransactionBulk = PostTransactionBulkAPI.PostTransactionBulk; |
@@ -39,6 +39,16 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
} from './post-transaction-bulk'; | ||
export { PostTransactionScanParams, PostTransaction } from './post-transaction'; | ||
export { | ||
PostTransactionReportResponse, | ||
PostTransactionReportParams, | ||
PostTransactionScanParams, | ||
PostTransaction, | ||
} from './post-transaction'; | ||
export { TransactionBulkScanResponse, TransactionBulkScanParams, TransactionBulk } from './transaction-bulk'; | ||
export { TransactionRawScanParams, TransactionRaw } from './transaction-raw'; | ||
export { TransactionScanParams, Transaction } from './transaction'; | ||
export { | ||
TransactionReportResponse, | ||
TransactionReportParams, | ||
TransactionScanParams, | ||
Transaction, | ||
} from './transaction'; | ||
export { UserOperationScanParams, UserOperation } from './user-operation'; |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as JsonRpcAPI from "./json-rpc"; | ||
import * as EvmAPI from "./evm"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as JsonRpcAPI from './json-rpc'; | ||
import * as EvmAPI from './evm'; | ||
@@ -8,0 +8,0 @@ export class JsonRpc extends APIResource { |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as PostTransactionBulkAPI from "./post-transaction-bulk"; | ||
import * as EvmAPI from "./evm"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as PostTransactionBulkAPI from './post-transaction-bulk'; | ||
import * as EvmAPI from './evm'; | ||
@@ -8,0 +8,0 @@ export class PostTransactionBulk extends APIResource { |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as PostTransactionAPI from "./post-transaction"; | ||
import * as EvmAPI from "./evm"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as PostTransactionAPI from './post-transaction'; | ||
import * as EvmAPI from './evm'; | ||
export class PostTransaction extends APIResource { | ||
/** | ||
* Report for misclassification of an EVM post transaction. | ||
*/ | ||
report(body: PostTransactionReportParams, options?: Core.RequestOptions): Core.APIPromise<unknown> { | ||
return this._client.post('/v0/evm/post-transaction/report', { body, ...options }); | ||
} | ||
/** | ||
* Scan a transaction that was already executed on chain, returns validation with | ||
@@ -21,2 +28,42 @@ * features indicating address poisoning entites and malicious operators. | ||
export type PostTransactionReportResponse = unknown; | ||
export interface PostTransactionReportParams { | ||
details: string; | ||
/** | ||
* An enumeration. | ||
*/ | ||
event: 'FALSE_POSITIVE' | 'FALSE_NEGATIVE'; | ||
report: | ||
| PostTransactionReportParams.ParamReportChainTransactionHashParams | ||
| PostTransactionReportParams.RequestIDReport; | ||
} | ||
export namespace PostTransactionReportParams { | ||
export interface ParamReportChainTransactionHashParams { | ||
params: ParamReportChainTransactionHashParams.Params; | ||
type: 'params'; | ||
} | ||
export namespace ParamReportChainTransactionHashParams { | ||
export interface Params { | ||
/** | ||
* The chain name | ||
*/ | ||
chain: EvmAPI.TransactionScanSupportedChain; | ||
tx_hash: string; | ||
} | ||
} | ||
export interface RequestIDReport { | ||
request_id: string; | ||
type: 'request_id'; | ||
} | ||
} | ||
export interface PostTransactionScanParams { | ||
@@ -58,3 +105,5 @@ /** | ||
export namespace PostTransaction { | ||
export import PostTransactionReportResponse = PostTransactionAPI.PostTransactionReportResponse; | ||
export import PostTransactionReportParams = PostTransactionAPI.PostTransactionReportParams; | ||
export import PostTransactionScanParams = PostTransactionAPI.PostTransactionScanParams; | ||
} |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as TransactionBulkAPI from "./transaction-bulk"; | ||
import * as EvmAPI from "./evm"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as TransactionBulkAPI from './transaction-bulk'; | ||
import * as EvmAPI from './evm'; | ||
@@ -8,0 +8,0 @@ export class TransactionBulk extends APIResource { |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as TransactionRawAPI from "./transaction-raw"; | ||
import * as EvmAPI from "./evm"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as TransactionRawAPI from './transaction-raw'; | ||
import * as EvmAPI from './evm'; | ||
@@ -8,0 +8,0 @@ export class TransactionRaw extends APIResource { |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as TransactionAPI from "./transaction"; | ||
import * as EvmAPI from "./evm"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as TransactionAPI from './transaction'; | ||
import * as EvmAPI from './evm'; | ||
export class Transaction extends APIResource { | ||
/** | ||
* Report for misclassification of a transaction. | ||
*/ | ||
report(body: TransactionReportParams, options?: Core.RequestOptions): Core.APIPromise<unknown> { | ||
return this._client.post('/v0/evm/transaction/report', { body, ...options }); | ||
} | ||
/** | ||
* Gets a transaction and returns a full simulation indicating what will happen in | ||
@@ -22,2 +29,46 @@ * the transaction together with a recommended action and some textual reasons of | ||
export type TransactionReportResponse = unknown; | ||
export interface TransactionReportParams { | ||
details: string; | ||
/** | ||
* An enumeration. | ||
*/ | ||
event: 'FALSE_POSITIVE' | 'FALSE_NEGATIVE'; | ||
report: | ||
| TransactionReportParams.ParamReportTransactionReportParams | ||
| TransactionReportParams.RequestIDReport; | ||
} | ||
export namespace TransactionReportParams { | ||
export interface ParamReportTransactionReportParams { | ||
params: ParamReportTransactionReportParams.Params; | ||
type: 'params'; | ||
} | ||
export namespace ParamReportTransactionReportParams { | ||
export interface Params { | ||
account_address: string; | ||
/** | ||
* The chain name | ||
*/ | ||
chain: EvmAPI.TransactionScanSupportedChain; | ||
data: unknown; | ||
metadata: unknown; | ||
} | ||
} | ||
export interface RequestIDReport { | ||
request_id: string; | ||
type: 'request_id'; | ||
} | ||
} | ||
export interface TransactionScanParams { | ||
@@ -96,3 +147,5 @@ /** | ||
export namespace Transaction { | ||
export import TransactionReportResponse = TransactionAPI.TransactionReportResponse; | ||
export import TransactionReportParams = TransactionAPI.TransactionReportParams; | ||
export import TransactionScanParams = TransactionAPI.TransactionScanParams; | ||
} |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as UserOperationAPI from "./user-operation"; | ||
import * as EvmAPI from "./evm"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as UserOperationAPI from './user-operation'; | ||
import * as EvmAPI from './evm'; | ||
@@ -8,0 +8,0 @@ export class UserOperation extends APIResource { |
@@ -65,4 +65,12 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
} from './evm/evm'; | ||
export { SiteScanHitResponse, SiteScanMissResponse, SiteScanResponse, SiteScanParams, Site } from './site'; | ||
export { | ||
SiteScanHitResponse, | ||
SiteScanMissResponse, | ||
SiteReportResponse, | ||
SiteScanResponse, | ||
SiteReportParams, | ||
SiteScanParams, | ||
Site, | ||
} from './site'; | ||
export { | ||
StellarAssetContractDetailsSchema, | ||
@@ -74,2 +82,2 @@ StellarAssetTransferDetailsSchema, | ||
} from './stellar/stellar'; | ||
export { TokenScanResponse, TokenScanParams, Token } from './token'; | ||
export { TokenReportResponse, TokenScanResponse, TokenReportParams, TokenScanParams, Token } from './token'; |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../resource"; | ||
import * as Core from "../core"; | ||
import * as SiteAPI from "./site"; | ||
import { APIResource } from '../resource'; | ||
import * as Core from '../core'; | ||
import * as SiteAPI from './site'; | ||
export class Site extends APIResource { | ||
/** | ||
* Report for misclassification of a site. | ||
*/ | ||
report(body: SiteReportParams, options?: Core.RequestOptions): Core.APIPromise<unknown> { | ||
return this._client.post('/v0/site/report', { body, ...options }); | ||
} | ||
/** | ||
* Scan Site | ||
@@ -68,4 +75,37 @@ */ | ||
export type SiteReportResponse = unknown; | ||
export type SiteScanResponse = SiteScanHitResponse | SiteScanMissResponse; | ||
export interface SiteReportParams { | ||
details: string; | ||
/** | ||
* An enumeration. | ||
*/ | ||
event: 'FALSE_POSITIVE' | 'FALSE_NEGATIVE'; | ||
report: SiteReportParams.ParamReportSiteReportParams | SiteReportParams.RequestIDReport; | ||
} | ||
export namespace SiteReportParams { | ||
export interface ParamReportSiteReportParams { | ||
params: ParamReportSiteReportParams.Params; | ||
type: 'params'; | ||
} | ||
export namespace ParamReportSiteReportParams { | ||
export interface Params { | ||
url: string; | ||
} | ||
} | ||
export interface RequestIDReport { | ||
request_id: string; | ||
type: 'request_id'; | ||
} | ||
} | ||
export interface SiteScanParams { | ||
@@ -92,4 +132,6 @@ url: string; | ||
export import SiteScanMissResponse = SiteAPI.SiteScanMissResponse; | ||
export import SiteReportResponse = SiteAPI.SiteReportResponse; | ||
export import SiteScanResponse = SiteAPI.SiteScanResponse; | ||
export import SiteReportParams = SiteAPI.SiteReportParams; | ||
export import SiteScanParams = SiteAPI.SiteScanParams; | ||
} |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as AddressAPI from "./address"; | ||
import * as SolanaAPI from "./solana"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as AddressAPI from './address'; | ||
import * as SolanaAPI from './solana'; | ||
@@ -8,0 +8,0 @@ export class Address extends APIResource { |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as MessageAPI from "./message"; | ||
import * as SolanaAPI from "./solana"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as MessageAPI from './message'; | ||
import * as SolanaAPI from './solana'; | ||
@@ -8,0 +8,0 @@ export class Message extends APIResource { |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as SolanaAPI from "./solana"; | ||
import * as AddressAPI from "./address"; | ||
import * as MessageAPI from "./message"; | ||
import { APIResource } from '../../resource'; | ||
import * as SolanaAPI from './solana'; | ||
import * as AddressAPI from './address'; | ||
import * as MessageAPI from './message'; | ||
@@ -8,0 +8,0 @@ export class Solana extends APIResource { |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as StellarAPI from "./stellar"; | ||
import * as TransactionAPI from "./transaction"; | ||
import { APIResource } from '../../resource'; | ||
import * as StellarAPI from './stellar'; | ||
import * as TransactionAPI from './transaction'; | ||
@@ -7,0 +7,0 @@ export class Stellar extends APIResource { |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../../resource"; | ||
import * as Core from "../../core"; | ||
import * as TransactionAPI from "./transaction"; | ||
import * as StellarAPI from "./stellar"; | ||
import { APIResource } from '../../resource'; | ||
import * as Core from '../../core'; | ||
import * as TransactionAPI from './transaction'; | ||
import * as StellarAPI from './stellar'; | ||
@@ -8,0 +8,0 @@ export class Transaction extends APIResource { |
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
import { APIResource } from "../resource"; | ||
import * as Core from "../core"; | ||
import * as TokenAPI from "./token"; | ||
import * as EvmAPI from "./evm/evm"; | ||
import { APIResource } from '../resource'; | ||
import * as Core from '../core'; | ||
import * as TokenAPI from './token'; | ||
import * as EvmAPI from './evm/evm'; | ||
export class Token extends APIResource { | ||
/** | ||
* Report for misclassification of a token. | ||
*/ | ||
report(body: TokenReportParams, options?: Core.RequestOptions): Core.APIPromise<unknown> { | ||
return this._client.post('/v0/token/report', { body, ...options }); | ||
} | ||
/** | ||
* Gets a token address and scan the token to identify any indication of malicious | ||
@@ -18,2 +25,4 @@ * behaviour | ||
export type TokenReportResponse = unknown; | ||
export interface TokenScanResponse { | ||
@@ -55,2 +64,38 @@ /** | ||
export interface TokenReportParams { | ||
details: string; | ||
/** | ||
* An enumeration. | ||
*/ | ||
event: 'FALSE_POSITIVE' | 'FALSE_NEGATIVE'; | ||
report: TokenReportParams.ParamReportAddressChainReportParams | TokenReportParams.RequestIDReport; | ||
} | ||
export namespace TokenReportParams { | ||
export interface ParamReportAddressChainReportParams { | ||
params: ParamReportAddressChainReportParams.Params; | ||
type: 'params'; | ||
} | ||
export namespace ParamReportAddressChainReportParams { | ||
export interface Params { | ||
address: string; | ||
/** | ||
* The chain name | ||
*/ | ||
chain: EvmAPI.TokenScanSupportedChain; | ||
} | ||
} | ||
export interface RequestIDReport { | ||
request_id: string; | ||
type: 'request_id'; | ||
} | ||
} | ||
export interface TokenScanParams { | ||
@@ -86,4 +131,6 @@ /** | ||
export namespace Token { | ||
export import TokenReportResponse = TokenAPI.TokenReportResponse; | ||
export import TokenScanResponse = TokenAPI.TokenScanResponse; | ||
export import TokenReportParams = TokenAPI.TokenReportParams; | ||
export import TokenScanParams = TokenAPI.TokenScanParams; | ||
} |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.14.0'; // x-release-please-version | ||
export const VERSION = '0.15.0'; // x-release-please-version |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.14.0"; | ||
export declare const VERSION = "0.15.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.14.0'; // x-release-please-version | ||
exports.VERSION = '0.15.0'; // x-release-please-version | ||
//# sourceMappingURL=version.js.map |
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 not supported yet
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 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
704849
7
12222
355
- Removedweb-streams-polyfill@^3.2.1
- Removedweb-streams-polyfill@3.3.3(transitive)