Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent 2cb967c commit 7f472e8
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-44fca9377d2921067e5ab728675577190537b052af013c9fa7de6f0243efbd34.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/new%2Fblockaid-033d819d6a3d2cce319e814f00b12f4200e03dce4776676357338b64e466a7a4.yml
12 changes: 6 additions & 6 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ Types:

Methods:

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

## Transaction

Methods:

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

## TransactionBulk

Expand All @@ -47,19 +47,19 @@ Types:

Methods:

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

## TransactionRaw

Methods:

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

## UserOperation

Methods:

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

# Site

Expand All @@ -71,4 +71,4 @@ Types:

Methods:

- <code title="post /site/scan">client.site.<a href="./src/resources/site.ts">scan</a>({ ...params }) -> SiteScanResponse</code>
- <code title="post /v0/site/scan">client.site.<a href="./src/resources/site.ts">scan</a>({ ...params }) -> SiteScanResponse</code>
2 changes: 1 addition & 1 deletion src/resources/evm/json-rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class JsonRpc extends APIResource {
body: JsonRpcScanParams,
options?: Core.RequestOptions,
): Core.APIPromise<EvmAPI.TransactionScanResponse> {
return this._client.post('/evm/json-rpc/scan', { body, ...options });
return this._client.post('/v0/evm/json-rpc/scan', { body, ...options });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/evm/transaction-bulk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class TransactionBulk extends APIResource {
body: TransactionBulkScanParams,
options?: Core.RequestOptions,
): Core.APIPromise<TransactionBulkScanResponse> {
return this._client.post('/evm/transaction-bulk/scan', { body, ...options });
return this._client.post('/v0/evm/transaction-bulk/scan', { body, ...options });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/evm/transaction-raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class TransactionRaw extends APIResource {
body: TransactionRawScanParams,
options?: Core.RequestOptions,
): Core.APIPromise<EvmAPI.TransactionScanResponse> {
return this._client.post('/evm/transaction-raw/scan', { body, ...options });
return this._client.post('/v0/evm/transaction-raw/scan', { body, ...options });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/evm/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class Transaction extends APIResource {
body: TransactionScanParams,
options?: Core.RequestOptions,
): Core.APIPromise<EvmAPI.TransactionScanResponse> {
return this._client.post('/evm/transaction/scan', { body, ...options });
return this._client.post('/v0/evm/transaction/scan', { body, ...options });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/evm/user-operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class UserOperation extends APIResource {
body: UserOperationScanParams,
options?: Core.RequestOptions,
): Core.APIPromise<EvmAPI.TransactionScanResponse> {
return this._client.post('/evm/user-operation/scan', { body, ...options });
return this._client.post('/v0/evm/user-operation/scan', { body, ...options });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class Site extends APIResource {
* Scan Site
*/
scan(body: SiteScanParams, options?: Core.RequestOptions): Core.APIPromise<SiteScanResponse> {
return this._client.post('/site/scan', { body, ...options });
return this._client.post('/v0/site/scan', { body, ...options });
}
}

Expand Down

0 comments on commit 7f472e8

Please sign in to comment.