@quicknode/sdk 3.1.0-alpha.15 → 3.1.0-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +93 -7
- package/index.darwin-arm64.node +0 -0
- package/index.linux-arm64-gnu.node +0 -0
- package/index.linux-arm64-musl.node +0 -0
- package/index.linux-x64-gnu.node +0 -0
- package/index.linux-x64-musl.node +0 -0
- package/package.json +6 -6
- package/sdk.d.ts +7 -0
package/index.d.ts
CHANGED
|
@@ -208,8 +208,12 @@ export interface GetAccountMetricsRequest {
|
|
|
208
208
|
export interface EndpointMetric {
|
|
209
209
|
/** Data points, each as `[timestamp, value]`. */
|
|
210
210
|
data: Array<Array<number>>
|
|
211
|
-
/**
|
|
212
|
-
|
|
211
|
+
/**
|
|
212
|
+
* Tag identifying the series. Single-axis metrics return a one-element
|
|
213
|
+
* vector (e.g. `["total"]`, `["p95"]`); multi-axis metrics return the
|
|
214
|
+
* key/value pair (e.g. `["network", "arbitrum-mainnet"]`).
|
|
215
|
+
*/
|
|
216
|
+
tag: Array<string>
|
|
213
217
|
}
|
|
214
218
|
/** Response from `get_endpoint_metrics`. */
|
|
215
219
|
export interface GetEndpointMetricsResponse {
|
|
@@ -298,6 +302,37 @@ export interface UpdateRateLimitsRequest {
|
|
|
298
302
|
/** Rate limit values to apply. */
|
|
299
303
|
rateLimits: RateLimitSettings
|
|
300
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* A single rate-limit row returned by `get_rate_limits`, identifying the
|
|
307
|
+
* bucket (`rps`/`rpm`/`rpd`), the value enforced, and whether the value comes
|
|
308
|
+
* from the plan default or a user-set override.
|
|
309
|
+
*/
|
|
310
|
+
export interface RateLimitEntry {
|
|
311
|
+
/** Which bucket this row applies to: `rps`, `rpm`, or `rpd`. */
|
|
312
|
+
bucket: string
|
|
313
|
+
/** The enforced value for this bucket. */
|
|
314
|
+
rateLimit: number
|
|
315
|
+
/** Where the value comes from: `plan_default` or `user_override`. */
|
|
316
|
+
source: string
|
|
317
|
+
/**
|
|
318
|
+
* Row identifier. Present on `user_override` rows — pass it to
|
|
319
|
+
* `delete_rate_limit_override` to remove the override. May be absent on
|
|
320
|
+
* `plan_default` rows and cannot be deleted there.
|
|
321
|
+
*/
|
|
322
|
+
id?: string
|
|
323
|
+
}
|
|
324
|
+
/** Inner data for `get_rate_limits`. */
|
|
325
|
+
export interface GetRateLimitsData {
|
|
326
|
+
/** One row per enforced bucket. */
|
|
327
|
+
rateLimits: Array<RateLimitEntry>
|
|
328
|
+
}
|
|
329
|
+
/** Response from `get_rate_limits`. */
|
|
330
|
+
export interface GetRateLimitsResponse {
|
|
331
|
+
/** Rate-limit rows with their source. */
|
|
332
|
+
data?: GetRateLimitsData
|
|
333
|
+
/** Error message when the request did not succeed. */
|
|
334
|
+
error?: string
|
|
335
|
+
}
|
|
301
336
|
/** A single security feature's name, status, and optional value. */
|
|
302
337
|
export interface SecurityOption {
|
|
303
338
|
/** Name of the security feature (e.g. `tokens`, `jwts`, `ips`). */
|
|
@@ -420,6 +455,32 @@ export interface DeleteBoolResponse {
|
|
|
420
455
|
/** Error message when the request did not succeed. */
|
|
421
456
|
error?: string
|
|
422
457
|
}
|
|
458
|
+
/** HTTP/WSS URL pair for a single network on a multichain endpoint. */
|
|
459
|
+
export interface EndpointUrl {
|
|
460
|
+
/** HTTP RPC URL. */
|
|
461
|
+
httpUrl: string
|
|
462
|
+
/** WebSocket RPC URL, when available. */
|
|
463
|
+
wssUrl?: string
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Inner data for `get_endpoint_urls` — the http/wss URLs for the endpoint and,
|
|
467
|
+
* when the endpoint is multichain, a per-network map of additional URLs.
|
|
468
|
+
*/
|
|
469
|
+
export interface GetEndpointUrlsData {
|
|
470
|
+
/** HTTP RPC URL. */
|
|
471
|
+
httpUrl: string
|
|
472
|
+
/** WebSocket RPC URL, when available. */
|
|
473
|
+
wssUrl?: string
|
|
474
|
+
/** Per-network URLs for multichain endpoints; `None` for single-chain endpoints. */
|
|
475
|
+
multichainUrls?: Record<string, EndpointUrl>
|
|
476
|
+
}
|
|
477
|
+
/** Response from `get_endpoint_urls`. */
|
|
478
|
+
export interface GetEndpointUrlsResponse {
|
|
479
|
+
/** URLs for the endpoint. */
|
|
480
|
+
data?: GetEndpointUrlsData
|
|
481
|
+
/** Error message when the request did not succeed. */
|
|
482
|
+
error?: string
|
|
483
|
+
}
|
|
423
484
|
/** Parameters for `get_endpoints`. */
|
|
424
485
|
export interface GetEndpointsRequest {
|
|
425
486
|
/** Maximum number of endpoints returned. */
|
|
@@ -489,6 +550,8 @@ export interface Endpoint {
|
|
|
489
550
|
wssUrl?: string
|
|
490
551
|
/** Tags applied to the endpoint. */
|
|
491
552
|
tags: Array<EndpointTag>
|
|
553
|
+
/** Whether the endpoint is configured to serve multiple chains/networks. */
|
|
554
|
+
isMultichain: boolean
|
|
492
555
|
}
|
|
493
556
|
/** Tag reference as returned on an endpoint. */
|
|
494
557
|
export interface EndpointTag {
|
|
@@ -533,6 +596,8 @@ export interface SingleEndpoint {
|
|
|
533
596
|
rateLimits?: EndpointRateLimits
|
|
534
597
|
/** Tags applied to the endpoint. */
|
|
535
598
|
tags: Array<EndpointTag>
|
|
599
|
+
/** Whether the endpoint is configured to serve multiple chains/networks. */
|
|
600
|
+
isMultichain: boolean
|
|
536
601
|
}
|
|
537
602
|
/** Rate limits applied to an endpoint. */
|
|
538
603
|
export interface EndpointRateLimits {
|
|
@@ -1420,8 +1485,8 @@ export interface TestFilterParams {
|
|
|
1420
1485
|
dataset: StreamDataset
|
|
1421
1486
|
/** Specific block number to feed into the filter for the test. */
|
|
1422
1487
|
block: string
|
|
1423
|
-
/** Base64-encoded filter function to evaluate. */
|
|
1424
|
-
filterFunction
|
|
1488
|
+
/** Base64-encoded filter function to evaluate. Required by the API. To inspect raw block data with no transformation, supply a base64-encoded identity function such as `function main(d){return d;}`. */
|
|
1489
|
+
filterFunction: string
|
|
1425
1490
|
/** Language the filter function is written in. */
|
|
1426
1491
|
filterLanguage?: FilterLanguage
|
|
1427
1492
|
/** Address book linked to the filter, if any. */
|
|
@@ -1882,11 +1947,32 @@ export declare class AdminApiClient {
|
|
|
1882
1947
|
/** Removes a method rate limit from an endpoint by method rate limit id. */
|
|
1883
1948
|
deleteMethodRateLimit(id: string, methodRateLimitId: string): Promise<void>
|
|
1884
1949
|
/**
|
|
1885
|
-
*
|
|
1886
|
-
* (requests per second), `rpm` (requests per minute), and `rpd`
|
|
1887
|
-
* per day).
|
|
1950
|
+
* Partial update of the endpoint-level rate-limit overrides. Accepts
|
|
1951
|
+
* `rps` (requests per second), `rpm` (requests per minute), and `rpd`
|
|
1952
|
+
* (requests per day). Only buckets included are modified — omitted
|
|
1953
|
+
* buckets are left unchanged. Values are capped by the account's plan
|
|
1954
|
+
* tier.
|
|
1888
1955
|
*/
|
|
1889
1956
|
updateRateLimits(id: string, params: UpdateRateLimitsRequest): Promise<void>
|
|
1957
|
+
/**
|
|
1958
|
+
* Returns the endpoint-level rate limits currently enforced, with each
|
|
1959
|
+
* row identifying its bucket (`rps`/`rpm`/`rpd`), value, and source
|
|
1960
|
+
* (`plan_default` or `user_override`). User-set overrides expose an
|
|
1961
|
+
* `overrideId` that can be passed to `deleteRateLimitOverride`.
|
|
1962
|
+
*/
|
|
1963
|
+
getRateLimits(id: string): Promise<GetRateLimitsResponse>
|
|
1964
|
+
/**
|
|
1965
|
+
* Deletes a user-set rate-limit override by its UUID. Plan defaults are
|
|
1966
|
+
* not deletable.
|
|
1967
|
+
*/
|
|
1968
|
+
deleteRateLimitOverride(id: string, overrideId: string): Promise<void>
|
|
1969
|
+
/**
|
|
1970
|
+
* Returns the HTTP and WebSocket URLs for the endpoint without fetching
|
|
1971
|
+
* the full endpoint record. For multichain endpoints, `multichainUrls`
|
|
1972
|
+
* is a per-network mapping of additional URLs; for single-chain endpoints
|
|
1973
|
+
* it is `null`.
|
|
1974
|
+
*/
|
|
1975
|
+
getEndpointUrls(id: string): Promise<GetEndpointUrlsResponse>
|
|
1890
1976
|
/**
|
|
1891
1977
|
* Returns time-series metrics for a specific endpoint. Requires a
|
|
1892
1978
|
* `period` (`hour`, `day`, `week`, or `month`) and a metric type such as
|
package/index.darwin-arm64.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.linux-x64-gnu.node
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quicknode/sdk",
|
|
3
|
-
"version": "3.1.0-alpha.
|
|
3
|
+
"version": "3.1.0-alpha.17",
|
|
4
4
|
"description": "Quicknode SDK",
|
|
5
5
|
"main": "sdk.js",
|
|
6
6
|
"types": "sdk.d.ts",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
},
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@quicknode/sdk-linux-x64-gnu": "3.1.0-alpha.
|
|
50
|
-
"@quicknode/sdk-linux-arm64-gnu": "3.1.0-alpha.
|
|
51
|
-
"@quicknode/sdk-linux-x64-musl": "3.1.0-alpha.
|
|
52
|
-
"@quicknode/sdk-linux-arm64-musl": "3.1.0-alpha.
|
|
53
|
-
"@quicknode/sdk-darwin-arm64": "3.1.0-alpha.
|
|
49
|
+
"@quicknode/sdk-linux-x64-gnu": "3.1.0-alpha.17",
|
|
50
|
+
"@quicknode/sdk-linux-arm64-gnu": "3.1.0-alpha.17",
|
|
51
|
+
"@quicknode/sdk-linux-x64-musl": "3.1.0-alpha.17",
|
|
52
|
+
"@quicknode/sdk-linux-arm64-musl": "3.1.0-alpha.17",
|
|
53
|
+
"@quicknode/sdk-darwin-arm64": "3.1.0-alpha.17"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/sdk.d.ts
CHANGED
|
@@ -138,6 +138,13 @@ export type {
|
|
|
138
138
|
UpdateMethodRateLimitResponse,
|
|
139
139
|
RateLimitSettings,
|
|
140
140
|
UpdateRateLimitsRequest,
|
|
141
|
+
RateLimitEntry,
|
|
142
|
+
GetRateLimitsData,
|
|
143
|
+
GetRateLimitsResponse,
|
|
144
|
+
// endpoint URLs
|
|
145
|
+
EndpointUrl,
|
|
146
|
+
GetEndpointUrlsData,
|
|
147
|
+
GetEndpointUrlsResponse,
|
|
141
148
|
// security options
|
|
142
149
|
SecurityOption,
|
|
143
150
|
GetSecurityOptionsResponse,
|