quicknode-sdk 0.3.0__tar.gz → 0.4.0__tar.gz

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.
Files changed (46) hide show
  1. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/Cargo.lock +11 -11
  2. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/Cargo.toml +1 -1
  3. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/PKG-INFO +5 -5
  4. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/Cargo.toml +1 -1
  5. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/README.md +4 -4
  6. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/examples/admin_e2e.rs +6 -7
  7. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/endpoint_security.rs +5 -10
  8. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/mod.rs +1 -1
  9. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/python/src/lib.rs +5 -9
  10. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/pyproject.toml +1 -1
  11. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/python/README.md +4 -4
  12. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/python/quicknode_sdk/_core/__init__.pyi +14 -14
  13. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/LICENSE +0 -0
  14. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/LICENSE +0 -0
  15. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/examples/admin.rs +0 -0
  16. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/examples/kvstore_e2e.rs +0 -0
  17. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/examples/streams.rs +0 -0
  18. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/examples/streams_e2e.rs +0 -0
  19. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/examples/webhooks_e2e.rs +0 -0
  20. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/billing.rs +0 -0
  21. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/bulk.rs +0 -0
  22. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/chains.rs +0 -0
  23. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/endpoint_metrics.rs +0 -0
  24. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/endpoint_rate_limits.rs +0 -0
  25. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/endpoint_urls.rs +0 -0
  26. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/endpoints.rs +0 -0
  27. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/logs.rs +0 -0
  28. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/tags.rs +0 -0
  29. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/teams.rs +0 -0
  30. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/admin/usage.rs +0 -0
  31. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/config.rs +0 -0
  32. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/errors.rs +0 -0
  33. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/kvstore/mod.rs +0 -0
  34. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/lib.rs +0 -0
  35. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/streams/mod.rs +0 -0
  36. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/streams/stream.rs +0 -0
  37. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/webhooks/mod.rs +0 -0
  38. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/core/src/webhooks/webhook.rs +0 -0
  39. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/python/Cargo.toml +0 -0
  40. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/python/src/errors.rs +0 -0
  41. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/python/src/streams_destination.rs +0 -0
  42. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/crates/python/src/webhooks_template.rs +0 -0
  43. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/python/quicknode_sdk/__init__.py +0 -0
  44. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/python/quicknode_sdk/__init__.pyi +0 -0
  45. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/python/quicknode_sdk/init_manual_override.pyi +0 -0
  46. {quicknode_sdk-0.3.0 → quicknode_sdk-0.4.0}/python/quicknode_sdk/py.typed +0 -0
@@ -1234,9 +1234,9 @@ dependencies = [
1234
1234
 
1235
1235
  [[package]]
1236
1236
  name = "napi"
1237
- version = "3.9.3"
1237
+ version = "3.9.4"
1238
1238
  source = "registry+https://github.com/rust-lang/crates.io-index"
1239
- checksum = "fbd9f9295f3ff5921e78a71222c3361a8216f7760b1a99a6ad4e8441de18bbb9"
1239
+ checksum = "b41bda2ac390efb5e8d22025d925ccc3f3807d8c1bea6d19b36127247c4b8f83"
1240
1240
  dependencies = [
1241
1241
  "bitflags",
1242
1242
  "ctor",
@@ -1258,9 +1258,9 @@ checksum = "c9c366d2c8c60b86fa632df75f745509b52f9128f91a6bad4c796e44abb505e1"
1258
1258
 
1259
1259
  [[package]]
1260
1260
  name = "napi-derive"
1261
- version = "3.5.6"
1261
+ version = "3.5.7"
1262
1262
  source = "registry+https://github.com/rust-lang/crates.io-index"
1263
- checksum = "89b3f766e04667e6da0e181e2da4f85475d5a6513b7cf6a80bea184e224a5b42"
1263
+ checksum = "61d66f70256ad5aef58659966064471d0ad90e2897bc36a5a5e0389c85aabc1e"
1264
1264
  dependencies = [
1265
1265
  "convert_case 0.11.0",
1266
1266
  "ctor",
@@ -1272,9 +1272,9 @@ dependencies = [
1272
1272
 
1273
1273
  [[package]]
1274
1274
  name = "napi-derive-backend"
1275
- version = "5.0.4"
1275
+ version = "5.0.5"
1276
1276
  source = "registry+https://github.com/rust-lang/crates.io-index"
1277
- checksum = "0d5af30503edf933ce7377cf6d4c877a62b0f1107ea05585f1b5e430e88d5baf"
1277
+ checksum = "81b4b08f15eed7a2a20c3f4c6314013fc3ac890a3afa9892b594485299ebdb2d"
1278
1278
  dependencies = [
1279
1279
  "convert_case 0.11.0",
1280
1280
  "proc-macro2",
@@ -1696,7 +1696,7 @@ dependencies = [
1696
1696
 
1697
1697
  [[package]]
1698
1698
  name = "quicknode-sdk"
1699
- version = "0.3.0"
1699
+ version = "0.4.0"
1700
1700
  dependencies = [
1701
1701
  "bon",
1702
1702
  "config",
@@ -2173,7 +2173,7 @@ dependencies = [
2173
2173
 
2174
2174
  [[package]]
2175
2175
  name = "sdk-node"
2176
- version = "0.3.0"
2176
+ version = "0.4.0"
2177
2177
  dependencies = [
2178
2178
  "napi",
2179
2179
  "napi-build",
@@ -2185,7 +2185,7 @@ dependencies = [
2185
2185
 
2186
2186
  [[package]]
2187
2187
  name = "sdk-python"
2188
- version = "0.3.0"
2188
+ version = "0.4.0"
2189
2189
  dependencies = [
2190
2190
  "pyo3",
2191
2191
  "pyo3-async-runtimes",
@@ -2196,7 +2196,7 @@ dependencies = [
2196
2196
 
2197
2197
  [[package]]
2198
2198
  name = "sdk-python-stubs"
2199
- version = "0.3.0"
2199
+ version = "0.4.0"
2200
2200
  dependencies = [
2201
2201
  "pyo3-stub-gen",
2202
2202
  "sdk-python",
@@ -2204,7 +2204,7 @@ dependencies = [
2204
2204
 
2205
2205
  [[package]]
2206
2206
  name = "sdk-ruby"
2207
- version = "0.3.0"
2207
+ version = "0.4.0"
2208
2208
  dependencies = [
2209
2209
  "magnus",
2210
2210
  "quicknode-sdk",
@@ -3,7 +3,7 @@ resolver = "2"
3
3
  members = ["crates/core", "crates/python"]
4
4
 
5
5
  [workspace.package]
6
- version = "0.3.0"
6
+ version = "0.4.0"
7
7
  edition = "2021"
8
8
  license = "MIT"
9
9
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quicknode-sdk
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Classifier: Intended Audience :: Developers
5
5
  Classifier: License :: OSI Approved :: MIT License
6
6
  Classifier: Operating System :: POSIX :: Linux
@@ -580,7 +580,7 @@ await qn.admin.delete_token("ep-123", "tok-1")
580
580
 
581
581
  Whitelists a referrer URL or domain on an endpoint.
582
582
 
583
- **Parameters**: `id` (endpoint id, required); body: `referrer` (string, optional).
583
+ **Parameters**: `id` (endpoint id, required); body: `referrer` (string, required).
584
584
 
585
585
  **Returns**: nothing.
586
586
 
@@ -608,7 +608,7 @@ await qn.admin.delete_referrer("ep-123", "ref-1")
608
608
 
609
609
  Whitelists an IP address on an endpoint.
610
610
 
611
- **Parameters**: `id` (endpoint id, required); body: `ip` (string, optional).
611
+ **Parameters**: `id` (endpoint id, required); body: `ip` (string, required).
612
612
 
613
613
  **Returns**: nothing.
614
614
 
@@ -664,7 +664,7 @@ await qn.admin.delete_domain_mask("ep-123", "dm-1")
664
664
 
665
665
  Configures JWT validation on an endpoint.
666
666
 
667
- **Parameters**: `id` (endpoint id, required); body: `public_key` (string, optional), `kid` (string, required), `name` (string, optional).
667
+ **Parameters**: `id` (endpoint id, required); body: `public_key` (string, required), `kid` (string, required), `name` (string, required).
668
668
 
669
669
  **Returns**: nothing.
670
670
 
@@ -697,7 +697,7 @@ Whitelist specific RPC methods on an endpoint. Requests for methods not on the l
697
697
 
698
698
  ##### `create_request_filter` / `createRequestFilter`
699
699
 
700
- **Parameters**: `id` (endpoint id, required); body: `method` (string[], optional). Ruby's Hash key is `methods` (plural).
700
+ **Parameters**: `id` (endpoint id, required); body: `method` (string[], required). Ruby's Hash key is `methods` (plural).
701
701
 
702
702
  **Returns**: `CreateRequestFilterResponse` with `data.id`.
703
703
 
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "quicknode-sdk"
3
- version = "0.3.0"
3
+ version = "0.4.0"
4
4
  edition.workspace = true
5
5
  license.workspace = true
6
6
  description = "Core library for quicknode sdk"
@@ -570,7 +570,7 @@ qn.admin.delete_token("ep-123", "tok-1").await?;
570
570
 
571
571
  Whitelists a referrer URL or domain on an endpoint.
572
572
 
573
- **Parameters**: `id` (endpoint id, required); body: `referrer` (string, optional).
573
+ **Parameters**: `id` (endpoint id, required); body: `referrer` (string, required).
574
574
 
575
575
  **Returns**: nothing.
576
576
 
@@ -599,7 +599,7 @@ qn.admin.delete_referrer("ep-123", "ref-1").await?;
599
599
 
600
600
  Whitelists an IP address on an endpoint.
601
601
 
602
- **Parameters**: `id` (endpoint id, required); body: `ip` (string, optional).
602
+ **Parameters**: `id` (endpoint id, required); body: `ip` (string, required).
603
603
 
604
604
  **Returns**: nothing.
605
605
 
@@ -659,7 +659,7 @@ qn.admin.delete_domain_mask("ep-123", "dm-1").await?;
659
659
 
660
660
  Configures JWT validation on an endpoint.
661
661
 
662
- **Parameters**: `id` (endpoint id, required); body: `public_key` (string, optional), `kid` (string, required), `name` (string, optional).
662
+ **Parameters**: `id` (endpoint id, required); body: `public_key` (string, required), `kid` (string, required), `name` (string, required).
663
663
 
664
664
  **Returns**: nothing.
665
665
 
@@ -692,7 +692,7 @@ Whitelist specific RPC methods on an endpoint. Requests for methods not on the l
692
692
 
693
693
  ##### `create_request_filter` / `createRequestFilter`
694
694
 
695
- **Parameters**: `id` (endpoint id, required); body: `method` (string[], optional). Ruby's Hash key is `methods` (plural).
695
+ **Parameters**: `id` (endpoint id, required); body: `method` (string[], required). Ruby's Hash key is `methods` (plural).
696
696
 
697
697
  **Returns**: `CreateRequestFilterResponse` with `data.id`.
698
698
 
@@ -341,7 +341,7 @@ async fn main() {
341
341
  .create_referrer(
342
342
  &endpoint_id,
343
343
  &CreateReferrerRequest {
344
- referrer: Some("https://example.com".to_string()),
344
+ referrer: "https://example.com".to_string(),
345
345
  },
346
346
  )
347
347
  .await
@@ -378,7 +378,7 @@ async fn main() {
378
378
  .create_ip(
379
379
  &endpoint_id,
380
380
  &CreateIpRequest {
381
- ip: Some("192.0.2.1".to_string()),
381
+ ip: "192.0.2.1".to_string(),
382
382
  },
383
383
  )
384
384
  .await
@@ -452,11 +452,10 @@ async fn main() {
452
452
  .create_jwt(
453
453
  &endpoint_id,
454
454
  &CreateJwtRequest {
455
- public_key: Some(
456
- "-----BEGIN PUBLIC KEY-----\nPLACEHOLDER\n-----END PUBLIC KEY-----".to_string(),
457
- ),
455
+ public_key: "-----BEGIN PUBLIC KEY-----\nPLACEHOLDER\n-----END PUBLIC KEY-----"
456
+ .to_string(),
458
457
  kid: "kid1".to_string(),
459
- name: Some("example-jwt".to_string()),
458
+ name: "example-jwt".to_string(),
460
459
  },
461
460
  )
462
461
  .await
@@ -492,7 +491,7 @@ async fn main() {
492
491
  .create_request_filter(
493
492
  &endpoint_id,
494
493
  &CreateRequestFilterRequest {
495
- method: Some(vec!["eth_getBalance".to_string()]),
494
+ method: vec!["eth_getBalance".to_string()],
496
495
  },
497
496
  )
498
497
  .await
@@ -104,8 +104,7 @@ pub struct UpdateSecurityOptionsResponse {
104
104
  #[derive(Debug, Clone, Default, Serialize)]
105
105
  pub struct CreateReferrerRequest {
106
106
  /// Allowed referrer URL or domain.
107
- #[serde(skip_serializing_if = "Option::is_none")]
108
- pub referrer: Option<String>,
107
+ pub referrer: String,
109
108
  }
110
109
 
111
110
  /// Parameters for `create_ip`.
@@ -116,8 +115,7 @@ pub struct CreateReferrerRequest {
116
115
  #[derive(Debug, Clone, Default, Serialize)]
117
116
  pub struct CreateIpRequest {
118
117
  /// IP address to whitelist.
119
- #[serde(skip_serializing_if = "Option::is_none")]
120
- pub ip: Option<String>,
118
+ pub ip: String,
121
119
  }
122
120
 
123
121
  /// Parameters for `create_domain_mask`.
@@ -140,13 +138,11 @@ pub struct CreateDomainMaskRequest {
140
138
  #[derive(Debug, Clone, Default, Serialize)]
141
139
  pub struct CreateJwtRequest {
142
140
  /// Public key used to verify signed JWTs.
143
- #[serde(skip_serializing_if = "Option::is_none")]
144
- pub public_key: Option<String>,
141
+ pub public_key: String,
145
142
  /// Key identifier (`kid`) embedded in JWT headers.
146
143
  pub kid: String,
147
144
  /// Human-readable name for the JWT configuration.
148
- #[serde(skip_serializing_if = "Option::is_none")]
149
- pub name: Option<String>,
145
+ pub name: String,
150
146
  }
151
147
 
152
148
  /// Parameters for `create_request_filter`.
@@ -157,8 +153,7 @@ pub struct CreateJwtRequest {
157
153
  #[derive(Debug, Clone, Default, Serialize)]
158
154
  pub struct CreateRequestFilterRequest {
159
155
  /// Whitelisted RPC methods; other methods will be blocked.
160
- #[serde(skip_serializing_if = "Option::is_none")]
161
- pub method: Option<Vec<String>>,
156
+ pub method: Vec<String>,
162
157
  }
163
158
 
164
159
  /// Response from `create_request_filter`.
@@ -2548,7 +2548,7 @@ mod tests {
2548
2548
  .create_referrer(
2549
2549
  "ep123",
2550
2550
  &CreateReferrerRequest {
2551
- referrer: Some("example.com".to_string()),
2551
+ referrer: "example.com".to_string(),
2552
2552
  },
2553
2553
  )
2554
2554
  .await
@@ -550,13 +550,12 @@ impl AdminApiClient {
550
550
 
551
551
  /// Adds a referrer to an endpoint's security settings, specifying which
552
552
  /// external URL or domain is permitted to call the endpoint.
553
- #[pyo3(signature = (id, referrer=None))]
554
553
  #[gen_stub(override_return_type(type_repr = "typing.Coroutine[typing.Any, typing.Any, None]"))]
555
554
  fn create_referrer<'py>(
556
555
  &self,
557
556
  py: Python<'py>,
558
557
  id: String,
559
- referrer: Option<String>,
558
+ referrer: String,
560
559
  ) -> PyResult<Bound<'py, PyAny>> {
561
560
  let client = self.inner.clone();
562
561
  let params = core::admin::CreateReferrerRequest { referrer };
@@ -588,13 +587,12 @@ impl AdminApiClient {
588
587
  }
589
588
 
590
589
  /// Adds an IP address to an endpoint's security whitelist.
591
- #[pyo3(signature = (id, ip=None))]
592
590
  #[gen_stub(override_return_type(type_repr = "typing.Coroutine[typing.Any, typing.Any, None]"))]
593
591
  fn create_ip<'py>(
594
592
  &self,
595
593
  py: Python<'py>,
596
594
  id: String,
597
- ip: Option<String>,
595
+ ip: String,
598
596
  ) -> PyResult<Bound<'py, PyAny>> {
599
597
  let client = self.inner.clone();
600
598
  let params = core::admin::CreateIpRequest { ip };
@@ -667,15 +665,14 @@ impl AdminApiClient {
667
665
 
668
666
  /// Creates a new JWT for endpoint authentication. Accepts a public key,
669
667
  /// key id (`kid`), and token name.
670
- #[pyo3(signature = (id, kid, public_key=None, name=None))]
671
668
  #[gen_stub(override_return_type(type_repr = "typing.Coroutine[typing.Any, typing.Any, None]"))]
672
669
  fn create_jwt<'py>(
673
670
  &self,
674
671
  py: Python<'py>,
675
672
  id: String,
676
673
  kid: String,
677
- public_key: Option<String>,
678
- name: Option<String>,
674
+ public_key: String,
675
+ name: String,
679
676
  ) -> PyResult<Bound<'py, PyAny>> {
680
677
  let client = self.inner.clone();
681
678
  let params = core::admin::CreateJwtRequest {
@@ -712,7 +709,6 @@ impl AdminApiClient {
712
709
  /// Creates a request filter on an endpoint — a method whitelist that
713
710
  /// restricts which RPC methods may be called. Accepts an array of method
714
711
  /// names; other methods are blocked.
715
- #[pyo3(signature = (id, method=None))]
716
712
  #[gen_stub(override_return_type(
717
713
  type_repr = "typing.Coroutine[typing.Any, typing.Any, CreateRequestFilterResponse]"
718
714
  ))]
@@ -720,7 +716,7 @@ impl AdminApiClient {
720
716
  &self,
721
717
  py: Python<'py>,
722
718
  id: String,
723
- method: Option<Vec<String>>,
719
+ method: Vec<String>,
724
720
  ) -> PyResult<Bound<'py, PyAny>> {
725
721
  let client = self.inner.clone();
726
722
  let params = core::admin::CreateRequestFilterRequest { method };
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "quicknode-sdk"
7
- version = "0.3.0"
7
+ version = "0.4.0"
8
8
  description = "Quicknode SDK"
9
9
  readme = "python/README.md"
10
10
  requires-python = ">=3.11"
@@ -556,7 +556,7 @@ await qn.admin.delete_token("ep-123", "tok-1")
556
556
 
557
557
  Whitelists a referrer URL or domain on an endpoint.
558
558
 
559
- **Parameters**: `id` (endpoint id, required); body: `referrer` (string, optional).
559
+ **Parameters**: `id` (endpoint id, required); body: `referrer` (string, required).
560
560
 
561
561
  **Returns**: nothing.
562
562
 
@@ -584,7 +584,7 @@ await qn.admin.delete_referrer("ep-123", "ref-1")
584
584
 
585
585
  Whitelists an IP address on an endpoint.
586
586
 
587
- **Parameters**: `id` (endpoint id, required); body: `ip` (string, optional).
587
+ **Parameters**: `id` (endpoint id, required); body: `ip` (string, required).
588
588
 
589
589
  **Returns**: nothing.
590
590
 
@@ -640,7 +640,7 @@ await qn.admin.delete_domain_mask("ep-123", "dm-1")
640
640
 
641
641
  Configures JWT validation on an endpoint.
642
642
 
643
- **Parameters**: `id` (endpoint id, required); body: `public_key` (string, optional), `kid` (string, required), `name` (string, optional).
643
+ **Parameters**: `id` (endpoint id, required); body: `public_key` (string, required), `kid` (string, required), `name` (string, required).
644
644
 
645
645
  **Returns**: nothing.
646
646
 
@@ -673,7 +673,7 @@ Whitelist specific RPC methods on an endpoint. Requests for methods not on the l
673
673
 
674
674
  ##### `create_request_filter` / `createRequestFilter`
675
675
 
676
- **Parameters**: `id` (endpoint id, required); body: `method` (string[], optional). Ruby's Hash key is `methods` (plural).
676
+ **Parameters**: `id` (endpoint id, required); body: `method` (string[], required). Ruby's Hash key is `methods` (plural).
677
677
 
678
678
  **Returns**: `CreateRequestFilterResponse` with `data.id`.
679
679
 
@@ -385,7 +385,7 @@ class AdminApiClient:
385
385
  r"""
386
386
  Revokes a token on an endpoint by token id.
387
387
  """
388
- def create_referrer(self, id: builtins.str, referrer: typing.Optional[builtins.str] = None) -> typing.Coroutine[typing.Any, typing.Any, None]:
388
+ def create_referrer(self, id: builtins.str, referrer: builtins.str) -> typing.Coroutine[typing.Any, typing.Any, None]:
389
389
  r"""
390
390
  Adds a referrer to an endpoint's security settings, specifying which
391
391
  external URL or domain is permitted to call the endpoint.
@@ -394,7 +394,7 @@ class AdminApiClient:
394
394
  r"""
395
395
  Removes a referrer from an endpoint's security settings by referrer id.
396
396
  """
397
- def create_ip(self, id: builtins.str, ip: typing.Optional[builtins.str] = None) -> typing.Coroutine[typing.Any, typing.Any, None]:
397
+ def create_ip(self, id: builtins.str, ip: builtins.str) -> typing.Coroutine[typing.Any, typing.Any, None]:
398
398
  r"""
399
399
  Adds an IP address to an endpoint's security whitelist.
400
400
  """
@@ -412,7 +412,7 @@ class AdminApiClient:
412
412
  r"""
413
413
  Removes a domain mask from an endpoint by domain mask id.
414
414
  """
415
- def create_jwt(self, id: builtins.str, kid: builtins.str, public_key: typing.Optional[builtins.str] = None, name: typing.Optional[builtins.str] = None) -> typing.Coroutine[typing.Any, typing.Any, None]:
415
+ def create_jwt(self, id: builtins.str, kid: builtins.str, public_key: builtins.str, name: builtins.str) -> typing.Coroutine[typing.Any, typing.Any, None]:
416
416
  r"""
417
417
  Creates a new JWT for endpoint authentication. Accepts a public key,
418
418
  key id (`kid`), and token name.
@@ -422,7 +422,7 @@ class AdminApiClient:
422
422
  Removes a JWT from an endpoint's security configuration by jwt id,
423
423
  revoking its access.
424
424
  """
425
- def create_request_filter(self, id: builtins.str, method: typing.Optional[typing.Sequence[builtins.str]] = None) -> typing.Coroutine[typing.Any, typing.Any, CreateRequestFilterResponse]:
425
+ def create_request_filter(self, id: builtins.str, method: typing.Sequence[builtins.str]) -> typing.Coroutine[typing.Any, typing.Any, CreateRequestFilterResponse]:
426
426
  r"""
427
427
  Creates a request filter on an endpoint — a method whitelist that
428
428
  restricts which RPC methods may be called. Accepts an array of method
@@ -1293,12 +1293,12 @@ class CreateIpRequest:
1293
1293
  Parameters for `create_ip`.
1294
1294
  """
1295
1295
  @property
1296
- def ip(self) -> typing.Optional[builtins.str]:
1296
+ def ip(self) -> builtins.str:
1297
1297
  r"""
1298
1298
  IP address to whitelist.
1299
1299
  """
1300
1300
  @ip.setter
1301
- def ip(self, value: typing.Optional[builtins.str]) -> None:
1301
+ def ip(self, value: builtins.str) -> None:
1302
1302
  r"""
1303
1303
  IP address to whitelist.
1304
1304
  """
@@ -1309,12 +1309,12 @@ class CreateJwtRequest:
1309
1309
  Parameters for `create_jwt`.
1310
1310
  """
1311
1311
  @property
1312
- def public_key(self) -> typing.Optional[builtins.str]:
1312
+ def public_key(self) -> builtins.str:
1313
1313
  r"""
1314
1314
  Public key used to verify signed JWTs.
1315
1315
  """
1316
1316
  @public_key.setter
1317
- def public_key(self, value: typing.Optional[builtins.str]) -> None:
1317
+ def public_key(self, value: builtins.str) -> None:
1318
1318
  r"""
1319
1319
  Public key used to verify signed JWTs.
1320
1320
  """
@@ -1329,12 +1329,12 @@ class CreateJwtRequest:
1329
1329
  Key identifier (`kid`) embedded in JWT headers.
1330
1330
  """
1331
1331
  @property
1332
- def name(self) -> typing.Optional[builtins.str]:
1332
+ def name(self) -> builtins.str:
1333
1333
  r"""
1334
1334
  Human-readable name for the JWT configuration.
1335
1335
  """
1336
1336
  @name.setter
1337
- def name(self, value: typing.Optional[builtins.str]) -> None:
1337
+ def name(self, value: builtins.str) -> None:
1338
1338
  r"""
1339
1339
  Human-readable name for the JWT configuration.
1340
1340
  """
@@ -1449,12 +1449,12 @@ class CreateReferrerRequest:
1449
1449
  Parameters for `create_referrer`.
1450
1450
  """
1451
1451
  @property
1452
- def referrer(self) -> typing.Optional[builtins.str]:
1452
+ def referrer(self) -> builtins.str:
1453
1453
  r"""
1454
1454
  Allowed referrer URL or domain.
1455
1455
  """
1456
1456
  @referrer.setter
1457
- def referrer(self, value: typing.Optional[builtins.str]) -> None:
1457
+ def referrer(self, value: builtins.str) -> None:
1458
1458
  r"""
1459
1459
  Allowed referrer URL or domain.
1460
1460
  """
@@ -1481,12 +1481,12 @@ class CreateRequestFilterRequest:
1481
1481
  Parameters for `create_request_filter`.
1482
1482
  """
1483
1483
  @property
1484
- def method(self) -> typing.Optional[builtins.list[builtins.str]]:
1484
+ def method(self) -> builtins.list[builtins.str]:
1485
1485
  r"""
1486
1486
  Whitelisted RPC methods; other methods will be blocked.
1487
1487
  """
1488
1488
  @method.setter
1489
- def method(self, value: typing.Optional[builtins.list[builtins.str]]) -> None:
1489
+ def method(self, value: builtins.list[builtins.str]) -> None:
1490
1490
  r"""
1491
1491
  Whitelisted RPC methods; other methods will be blocked.
1492
1492
  """
File without changes