-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): update via SDK Studio (#91)
- Loading branch information
1 parent
0b65cf9
commit 1ad5f36
Showing
10 changed files
with
1,043 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 10 | ||
configured_endpoints: 12 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-f88dc435e11134e1b575820cd27672e8e6c42b53abef807cb8d0d4851a64c86b.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
import { APIResource } from '@blockaid/client/resource'; | ||
import * as Core from '@blockaid/client/core'; | ||
import * as AddressAPI from '@blockaid/client/resources/solana/address'; | ||
|
||
export class Address extends APIResource { | ||
/** | ||
* Gets an address and returns a full security assessment indicating weather or not | ||
* this address is malicious as well as textual reasons of why the address was | ||
* flagged that way. | ||
*/ | ||
scan(body: AddressScanParams, options?: Core.RequestOptions): Core.APIPromise<AddressScanResponse> { | ||
return this._client.post('/v0/solana/address/scan', { body, ...options }); | ||
} | ||
} | ||
|
||
export interface AddressScanResponse { | ||
/** | ||
* Features about the result | ||
*/ | ||
features: Array<AddressScanResponse.Feature>; | ||
|
||
/** | ||
* An enumeration. | ||
*/ | ||
result_type: 'Malicious' | 'Warning' | 'Benign'; | ||
} | ||
|
||
export namespace AddressScanResponse { | ||
export interface Feature { | ||
/** | ||
* Description of the feature | ||
*/ | ||
description: string; | ||
|
||
/** | ||
* ID of the feature | ||
*/ | ||
feature_id: string; | ||
|
||
/** | ||
* An enumeration. | ||
*/ | ||
type: 'Malicious' | 'Warning' | 'Benign' | 'Info'; | ||
} | ||
} | ||
|
||
export interface AddressScanParams { | ||
/** | ||
* Encoded public key | ||
*/ | ||
address: string; | ||
|
||
metadata: AddressScanParams.Metadata; | ||
|
||
/** | ||
* Chain to scan the transaction on | ||
*/ | ||
chain?: string; | ||
} | ||
|
||
export namespace AddressScanParams { | ||
export interface Metadata { | ||
/** | ||
* URL of the dApp related to the address | ||
*/ | ||
url: string; | ||
} | ||
} | ||
|
||
export namespace Address { | ||
export import AddressScanResponse = AddressAPI.AddressScanResponse; | ||
export import AddressScanParams = AddressAPI.AddressScanParams; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { AddressScanResponse, AddressScanParams, Address } from './address'; | ||
export { | ||
AssetTransferDetailsSchema, | ||
CnftDetailsSchema, | ||
NativeSolDetailsSchema, | ||
SplFungibleTokenDetailsSchema, | ||
SplNonFungibleTokenDetailsSchema, | ||
Solana, | ||
} from './solana'; | ||
export { MessageScanResponse, MessageScanParams, Message } from './message'; |
Oops, something went wrong.