-
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): OpenAPI spec update via Stainless API (#113)
- Loading branch information
1 parent
8f0aa10
commit 4cacf4c
Showing
8 changed files
with
12 additions
and
127 deletions.
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,6 +1,8 @@ | ||
name: Release Doctor | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
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: 12 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-84bcb7b94ca6b21e8d486402a12eb18576497eff38b7cd846e509c49c58e8b2e.yml | ||
configured_endpoints: 11 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-e201805908610f3980464949d264407cb96388191245bb8544bd03999e67f017.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
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,72 +1,5 @@ | ||
// 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 TransactionAPI from '@blockaid/client/resources/stellar/transaction'; | ||
import * as StellarAPI from '@blockaid/client/resources/stellar/stellar'; | ||
|
||
export class Transaction extends APIResource { | ||
/** | ||
* Scan Transactions | ||
*/ | ||
scan( | ||
body: TransactionScanParams, | ||
options?: Core.RequestOptions, | ||
): Core.APIPromise<StellarAPI.StellarTransactionScanResponse> { | ||
return this._client.post('/v0/stellar/scan/transaction', { body, ...options }); | ||
} | ||
} | ||
|
||
export interface TransactionScanParams { | ||
account_address: string; | ||
|
||
/** | ||
* A CAIP-2 chain ID or a Stellar network name | ||
*/ | ||
chain: 'pubnet' | 'futurenet' | 'testnet'; | ||
|
||
/** | ||
* Metadata | ||
*/ | ||
metadata: | ||
| TransactionScanParams.StellarWalletRequestMetadata | ||
| TransactionScanParams.StellarInAppRequestMetadata; | ||
|
||
/** | ||
* List of XDR-encoded transactions to be scanned | ||
*/ | ||
transactions: Array<string>; | ||
|
||
/** | ||
* List of options to include in the response | ||
* | ||
* - `simulation`: Include simulation output in the response | ||
* - `validation`: Include security validation of the transaction in the response | ||
*/ | ||
options?: Array<'validation' | 'simulation'>; | ||
} | ||
|
||
export namespace TransactionScanParams { | ||
export interface StellarWalletRequestMetadata { | ||
/** | ||
* Metadata for wallet requests | ||
*/ | ||
type: 'wallet'; | ||
|
||
/** | ||
* URL of the dApp originating the transaction | ||
*/ | ||
url: string; | ||
} | ||
|
||
export interface StellarInAppRequestMetadata { | ||
/** | ||
* Metadata for in-app requests | ||
*/ | ||
type: 'in_app'; | ||
} | ||
} | ||
|
||
export namespace Transaction { | ||
export import TransactionScanParams = TransactionAPI.TransactionScanParams; | ||
} | ||
export class Transaction extends APIResource {} |
This file was deleted.
Oops, something went wrong.