quicknode_sdk 0.1.0.pre.alpha.15-aarch64-linux → 0.1.0.pre.alpha.17-aarch64-linux
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.
- checksums.yaml +4 -4
- data/README.md +52 -3
- data/lib/quicknode_sdk/quicknode_sdk.so +0 -0
- data/sig/quicknode_sdk.rbs +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 747acd73af1df734081c94b7ea1094fcbf70a8c2465b3124d58665753b15b98b
|
|
4
|
+
data.tar.gz: 969e7fd95908567e25f282c9fb5fdbe2d0d0203c14a302c40a5f91dc6f8ac752
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a15b231489139c3e3986704df0a68c457f2518d5be31691233fac7b8b488d933009f447096694385bf2f1b4cca7711b2bc4fe925b253d1c3866be37a4b4a7027
|
|
7
|
+
data.tar.gz: d780aa4e3fdf25d7f4fe8b0776cc3a67d9ecb1d53967e77e4f8c62f3e063598cea1c68480d7d8ce39086720e3111a799204e695f37d09527546129caccb1a619
|
data/README.md
CHANGED
|
@@ -28,6 +28,7 @@ This is one of four language bindings published from the same Rust core. See the
|
|
|
28
28
|
- [IP Custom Headers](#ip-custom-headers)
|
|
29
29
|
- [Method Rate Limits](#method-rate-limits)
|
|
30
30
|
- [Endpoint Rate Limits](#endpoint-rate-limits)
|
|
31
|
+
- [Endpoint URLs](#endpoint-urls)
|
|
31
32
|
- [Metrics](#metrics)
|
|
32
33
|
- [Chains](#chains)
|
|
33
34
|
- [Billing](#billing)
|
|
@@ -772,7 +773,7 @@ qn.admin.delete_method_rate_limit(id: "ep-123", method_rate_limit_id: "rl-1")
|
|
|
772
773
|
|
|
773
774
|
##### `update_rate_limits` / `updateRateLimits`
|
|
774
775
|
|
|
775
|
-
|
|
776
|
+
Partial update of the endpoint-level RPS / RPM / RPD caps. Only buckets included in the request are modified — omitted buckets are left unchanged. Values are capped by the account's plan tier. Sends `PATCH`.
|
|
776
777
|
|
|
777
778
|
**Parameters**: `id` (endpoint id, required); `rate_limits`: `RateLimitSettings` (`rps`, `rpm`, `rpd`, all optional).
|
|
778
779
|
|
|
@@ -783,6 +784,54 @@ Updates the endpoint-level RPS / RPM / RPD caps.
|
|
|
783
784
|
qn.admin.update_rate_limits(id: "ep-123", rps: 100, rpm: 5000)
|
|
784
785
|
```
|
|
785
786
|
|
|
787
|
+
##### `get_rate_limits` / `getRateLimits`
|
|
788
|
+
|
|
789
|
+
Returns the rate-limit rows currently enforced on the endpoint, each identifying its `bucket` (`"rps"` / `"rpm"` / `"rpd"`), `rate_limit`, and `source` (`"plan_default"` or `"user_override"`). User-set overrides expose an `id` you can pass to `delete_rate_limit_override`.
|
|
790
|
+
|
|
791
|
+
**Parameters**: `id` (endpoint id, required).
|
|
792
|
+
|
|
793
|
+
**Returns**: `GetRateLimitsResponse` (as a `Hashie::Mash`) with `data.rate_limits: Array<RateLimitEntry>`.
|
|
794
|
+
|
|
795
|
+
```ruby
|
|
796
|
+
# Ruby
|
|
797
|
+
resp = qn.admin.get_rate_limits(id: "123")
|
|
798
|
+
resp.data.rate_limits.each do |row|
|
|
799
|
+
puts "#{row.bucket} #{row.rate_limit} #{row.source} #{row.id}"
|
|
800
|
+
end
|
|
801
|
+
```
|
|
802
|
+
|
|
803
|
+
##### `delete_rate_limit_override` / `deleteRateLimitOverride`
|
|
804
|
+
|
|
805
|
+
Deletes a user-set rate-limit override by UUID. Plan defaults are not deletable — passing a UUID that does not match a user-set override on the endpoint returns 404.
|
|
806
|
+
|
|
807
|
+
**Parameters**: `id` (endpoint id, required); `override_id` (UUID returned by `get_rate_limits`, required).
|
|
808
|
+
|
|
809
|
+
**Returns**: nothing.
|
|
810
|
+
|
|
811
|
+
```ruby
|
|
812
|
+
# Ruby
|
|
813
|
+
qn.admin.delete_rate_limit_override(id: "123", override_id: "ovr-uuid")
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
#### Endpoint URLs
|
|
817
|
+
|
|
818
|
+
##### `get_endpoint_urls` / `getEndpointUrls`
|
|
819
|
+
|
|
820
|
+
Returns the HTTP and WebSocket URLs for the endpoint without fetching the full endpoint record. For multichain endpoints, `multichain_urls` is a per-network map of additional URLs; for single-chain endpoints it is `nil`.
|
|
821
|
+
|
|
822
|
+
**Parameters**: `id` (endpoint id, required).
|
|
823
|
+
|
|
824
|
+
**Returns**: `GetEndpointUrlsResponse` (as a `Hashie::Mash`) with `data.http_url`, `data.wss_url`, and `data.multichain_urls`.
|
|
825
|
+
|
|
826
|
+
```ruby
|
|
827
|
+
# Ruby
|
|
828
|
+
resp = qn.admin.get_endpoint_urls(id: "123")
|
|
829
|
+
puts resp.data.http_url
|
|
830
|
+
resp.data.multichain_urls&.each do |network, urls|
|
|
831
|
+
puts "#{network} #{urls.http_url}"
|
|
832
|
+
end
|
|
833
|
+
```
|
|
834
|
+
|
|
786
835
|
#### Metrics
|
|
787
836
|
|
|
788
837
|
##### `get_endpoint_metrics` / `getEndpointMetrics`
|
|
@@ -791,7 +840,7 @@ Returns metric series for an endpoint over a time period.
|
|
|
791
840
|
|
|
792
841
|
**Parameters**: `id` (endpoint id, required); body: `period` (`"hour"` | `"day"` | `"week"` | `"month"`), `metric` (e.g. `"method_calls_over_time"`, `"response_status_breakdown"`).
|
|
793
842
|
|
|
794
|
-
**Returns**: `GetEndpointMetricsResponse` with `data: EndpointMetric[]`.
|
|
843
|
+
**Returns**: `GetEndpointMetricsResponse` (as a `Hashie::Mash`) with `data: Array<EndpointMetric>`. Each `EndpointMetric` has `tag: Array<String>` and `data: Array<Array<Integer>>` of `[timestamp, value]` pairs. Single-axis series (e.g. `response_time_over_time` with a percentile) come back as a one-element tag like `["p95"]`; multi-axis series come back as `["network", "arbitrum-mainnet"]`.
|
|
795
844
|
|
|
796
845
|
```ruby
|
|
797
846
|
# Ruby
|
|
@@ -808,7 +857,7 @@ Returns account-level metric series. Supports an optional `percentile` (e.g. `"p
|
|
|
808
857
|
|
|
809
858
|
**Parameters**: `period` (required), `metric` (required), `percentile` (string, optional).
|
|
810
859
|
|
|
811
|
-
**Returns**: `GetAccountMetricsResponse` with `data: EndpointMetric
|
|
860
|
+
**Returns**: `GetAccountMetricsResponse` (as a `Hashie::Mash`) with `data: Array<EndpointMetric>`. See `get_endpoint_metrics` above for the `tag: Array<String>` shape.
|
|
812
861
|
|
|
813
862
|
```ruby
|
|
814
863
|
# Ruby
|
|
Binary file
|
data/sig/quicknode_sdk.rbs
CHANGED
|
@@ -83,6 +83,9 @@ module QuicknodeSdk
|
|
|
83
83
|
def update_method_rate_limit: (id: String, method_rate_limit_id: String, ?methods: Array[String], ?status: String, ?rate: Integer) -> untyped
|
|
84
84
|
def delete_method_rate_limit: (id: String, method_rate_limit_id: String) -> void
|
|
85
85
|
def update_rate_limits: (id: String, ?rps: Integer, ?rpm: Integer, ?rpd: Integer) -> void
|
|
86
|
+
def get_rate_limits: (id: String) -> untyped
|
|
87
|
+
def delete_rate_limit_override: (id: String, override_id: String) -> void
|
|
88
|
+
def get_endpoint_urls: (id: String) -> untyped
|
|
86
89
|
def get_endpoint_metrics: (id: String, period: String, metric: String) -> untyped
|
|
87
90
|
def get_account_metrics: (period: String, metric: String, ?percentile: String) -> untyped
|
|
88
91
|
def list_chains: () -> untyped
|
|
@@ -118,7 +121,7 @@ module QuicknodeSdk
|
|
|
118
121
|
def delete_stream: (id: String) -> void
|
|
119
122
|
def activate_stream: (id: String) -> void
|
|
120
123
|
def pause_stream: (id: String) -> void
|
|
121
|
-
def test_filter: (network: String, dataset: String, block: String,
|
|
124
|
+
def test_filter: (network: String, dataset: String, block: String, filter_function: String, ?filter_language: String) -> untyped
|
|
122
125
|
def get_enabled_count: (?stream_type: String) -> untyped
|
|
123
126
|
end
|
|
124
127
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quicknode_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0.pre.alpha.
|
|
4
|
+
version: 0.1.0.pre.alpha.17
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Quicknode
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hashie
|