Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 2, 2024
1 parent b1ce8c4 commit 81e0487
Show file tree
Hide file tree
Showing 8 changed files with 1,138 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 9
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-9684a76da98c474d096bc704e8055953248d10b97ecb58dd0638570b670c3bea.yml
configured_endpoints: 10
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-f0a1ec68a92db2d2ff553b810979b641e4ce57d06466c5399ff5ec9ac80d4961.yml
17 changes: 17 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,23 @@ Methods:

- <code title="post /v0/evm/post-transaction-bulk/scan">client.evm.postTransactionBulk.<a href="./src/resources/evm/post-transaction-bulk.ts">scan</a>({ ...params }) -> PostTransactionBulkScanResponse</code>

# Stellar

Types:

- <code><a href="./src/resources/stellar/stellar.ts">StellarAssetContractDetailsSchema</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarAssetTransferDetailsSchema</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarTransactionScanRequest</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">StellarTransactionScanResponse</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">TransactionScanRequest</a></code>
- <code><a href="./src/resources/stellar/stellar.ts">TransactionScanResponse</a></code>

## Transaction

Methods:

- <code title="post /v0/stellar/scan/transaction">client.stellar.transaction.<a href="./src/resources/stellar/transaction.ts">scan</a>({ ...params }) -> TransactionScanResponse</code>

# Site

Types:
Expand Down
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export class Blockaid extends Core.APIClient {
}

evm: API.Evm = new API.Evm(this);
stellar: API.Stellar = new API.Stellar(this);
site: API.Site = new API.Site(this);
token: API.Token = new API.Token(this);

Expand Down Expand Up @@ -209,6 +210,14 @@ export namespace Blockaid {
export import TransactionValidationError = API.TransactionValidationError;
export import UsdDiff = API.UsdDiff;

export import Stellar = API.Stellar;
export import StellarAssetContractDetailsSchema = API.StellarAssetContractDetailsSchema;
export import StellarAssetTransferDetailsSchema = API.StellarAssetTransferDetailsSchema;
export import StellarTransactionScanRequest = API.StellarTransactionScanRequest;
export import StellarTransactionScanResponse = API.StellarTransactionScanResponse;
export import TransactionScanRequest = API.TransactionScanRequest;
export import TransactionScanResponse = API.TransactionScanResponse;

export import Site = API.Site;
export import SiteScanHitResponse = API.SiteScanHitResponse;
export import SiteScanMissResponse = API.SiteScanMissResponse;
Expand Down
9 changes: 9 additions & 0 deletions src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,13 @@ export {
Evm,
} from './evm/evm';
export { SiteScanHitResponse, SiteScanMissResponse, SiteScanResponse, SiteScanParams, Site } from './site';
export {
StellarAssetContractDetailsSchema,
StellarAssetTransferDetailsSchema,
StellarTransactionScanRequest,
StellarTransactionScanResponse,
TransactionScanRequest,
TransactionScanResponse,
Stellar,
} from './stellar/stellar';
export { TokenScanResponse, TokenScanParams, Token } from './token';
12 changes: 12 additions & 0 deletions src/resources/stellar/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export {
StellarAssetContractDetailsSchema,
StellarAssetTransferDetailsSchema,
StellarTransactionScanRequest,
StellarTransactionScanResponse,
TransactionScanRequest,
TransactionScanResponse,
Stellar,
} from './stellar';
export { TransactionScanParams, Transaction } from './transaction';
Loading

0 comments on commit 81e0487

Please sign in to comment.