Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): api update #305

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 19
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-68190ea619cfe126cdb1d0d08d55d0701e87c1cb45aaaf714807e2fc0bdde5e6.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-24c4d07c90fb94cf6b67b0392c0295590f6d013639f617269d26761adbb1f503.yml
23 changes: 19 additions & 4 deletions src/resources/bitcoin/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ export namespace TransactionScanResponse {
export interface BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema {
asset: BitcoinAccountSingleAssetDiffSchemaTypeNativeAssetDetailsSchemaNativeDiffSchema.Asset;

/**
* The type of the assets in this diff
*/
asset_type: string;

/**
* Details of the incoming transfer
*/
Expand Down Expand Up @@ -164,6 +169,11 @@ export namespace TransactionScanResponse {
export interface BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema {
asset: BitcoinAccountSingleAssetDiffSchemaTypeOrdinalDetailsSchemaOrdinalDiffSchema.Asset;

/**
* The type of the assets in this diff
*/
asset_type: string;

/**
* Details of the incoming transfer
*/
Expand Down Expand Up @@ -257,6 +267,11 @@ export namespace TransactionScanResponse {
export interface BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema {
asset: BitcoinAccountSingleAssetDiffSchemaTypeRuneDetailsSchemaRuneDiffSchema.Asset;

/**
* The type of the assets in this diff
*/
asset_type: string;

/**
* Details of the incoming transfer
*/
Expand Down Expand Up @@ -364,7 +379,7 @@ export namespace TransactionScanResponse {
*/
error: string;

status?: 'Error';
status: 'Error';
}

export interface BitcoinValidationResultSchemaTypeAnnotatedStrSkipValidationPlainSerializerGetPydanticSchema {
Expand Down Expand Up @@ -439,7 +454,7 @@ export interface TransactionScanParams {
*/
metadata:
| TransactionScanParams.BitcoinblockaidApplicationRunnerAppSchemasTransactionScanningAPIWalletRequestMetadata
| TransactionScanParams.BitcoinInAppRequestMetadata;
| TransactionScanParams.BitcoinblockaidApplicationRunnerAppSchemasTransactionScanningAPIInAppRequestMetadata;

transaction: string;

Expand All @@ -466,11 +481,11 @@ export namespace TransactionScanParams {
url: string;
}

export interface BitcoinInAppRequestMetadata {
export interface BitcoinblockaidApplicationRunnerAppSchemasTransactionScanningAPIInAppRequestMetadata {
/**
* Metadata for in-app requests
*/
type: 'in_app';
type?: 'in_app';
}
}

Expand Down
34 changes: 32 additions & 2 deletions src/resources/starknet/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export namespace TransactionScanResponse {
/**
* Assets diffs of the requested account address
*/
assets_diffs?: Array<
account_assets_diffs?: Array<
| AccountSummary.StarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc20DiffSchema
| AccountSummary.StarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc721DiffSchema
| AccountSummary.StarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc1155DiffSchema
Expand Down Expand Up @@ -312,6 +312,11 @@ export namespace TransactionScanResponse {
export interface StarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc20DiffSchema {
asset: StarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc20DiffSchema.Asset;

/**
* The type of the assets in this diff
*/
asset_type: string;

/**
* Details of the incoming transfer
*/
Expand Down Expand Up @@ -360,6 +365,11 @@ export namespace TransactionScanResponse {
export interface StarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc721DiffSchema {
asset: StarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc721DiffSchema.Asset;

/**
* The type of the assets in this diff
*/
asset_type: string;

/**
* Details of the incoming transfer
*/
Expand Down Expand Up @@ -403,6 +413,11 @@ export namespace TransactionScanResponse {
export interface StarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc1155DiffSchema {
asset: StarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc1155DiffSchema.Asset;

/**
* The type of the assets in this diff
*/
asset_type: string;

/**
* Details of the incoming transfer
*/
Expand Down Expand Up @@ -459,6 +474,11 @@ export namespace TransactionScanResponse {
export interface StarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc20DiffSchema {
asset: StarknetAccountSingleAssetDiffSchemaTypeErc20DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc20DiffSchema.Asset;

/**
* The type of the assets in this diff
*/
asset_type: string;

/**
* Details of the incoming transfer
*/
Expand Down Expand Up @@ -507,6 +527,11 @@ export namespace TransactionScanResponse {
export interface StarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc721DiffSchema {
asset: StarknetAccountSingleAssetDiffSchemaTypeErc721DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc721DiffSchema.Asset;

/**
* The type of the assets in this diff
*/
asset_type: string;

/**
* Details of the incoming transfer
*/
Expand Down Expand Up @@ -550,6 +575,11 @@ export namespace TransactionScanResponse {
export interface StarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc1155DiffSchema {
asset: StarknetAccountSingleAssetDiffSchemaTypeErc1155DetailsSchemaAnnotatedIntSkipValidationPlainSerializerGetPydanticSchemaErc1155DiffSchema.Asset;

/**
* The type of the assets in this diff
*/
asset_type: string;

/**
* Details of the incoming transfer
*/
Expand Down Expand Up @@ -890,7 +920,7 @@ export namespace TransactionScanParams {
/**
* Metadata for in-app requests
*/
type: 'in_app';
type?: 'in_app';
}

export interface StarknetInvokeV1TransactionSchema {
Expand Down