@nirvana-labs/nirvana 1.20.3 → 1.22.0

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 (270) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +31 -0
  3. package/client.d.mts +7 -0
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +7 -0
  6. package/client.d.ts.map +1 -1
  7. package/client.js +8 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +8 -0
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +61 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +61 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +101 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +95 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/internal/tslib.js +18 -18
  28. package/package.json +11 -1
  29. package/pagination.d.mts +2 -0
  30. package/pagination.d.mts.map +1 -0
  31. package/pagination.d.ts +2 -0
  32. package/pagination.d.ts.map +1 -0
  33. package/pagination.js +6 -0
  34. package/pagination.js.map +1 -0
  35. package/pagination.mjs +2 -0
  36. package/pagination.mjs.map +1 -0
  37. package/resources/api-keys.d.mts +16 -4
  38. package/resources/api-keys.d.mts.map +1 -1
  39. package/resources/api-keys.d.ts +16 -4
  40. package/resources/api-keys.d.ts.map +1 -1
  41. package/resources/api-keys.js +8 -4
  42. package/resources/api-keys.js.map +1 -1
  43. package/resources/api-keys.mjs +8 -4
  44. package/resources/api-keys.mjs.map +1 -1
  45. package/resources/compute/compute.d.mts +4 -4
  46. package/resources/compute/compute.d.mts.map +1 -1
  47. package/resources/compute/compute.d.ts +4 -4
  48. package/resources/compute/compute.d.ts.map +1 -1
  49. package/resources/compute/compute.js.map +1 -1
  50. package/resources/compute/compute.mjs.map +1 -1
  51. package/resources/compute/index.d.mts +2 -2
  52. package/resources/compute/index.d.mts.map +1 -1
  53. package/resources/compute/index.d.ts +2 -2
  54. package/resources/compute/index.d.ts.map +1 -1
  55. package/resources/compute/index.js.map +1 -1
  56. package/resources/compute/index.mjs.map +1 -1
  57. package/resources/compute/vms/index.d.mts +3 -3
  58. package/resources/compute/vms/index.d.mts.map +1 -1
  59. package/resources/compute/vms/index.d.ts +3 -3
  60. package/resources/compute/vms/index.d.ts.map +1 -1
  61. package/resources/compute/vms/index.js.map +1 -1
  62. package/resources/compute/vms/index.mjs.map +1 -1
  63. package/resources/compute/vms/os-images.d.mts +11 -5
  64. package/resources/compute/vms/os-images.d.mts.map +1 -1
  65. package/resources/compute/vms/os-images.d.ts +11 -5
  66. package/resources/compute/vms/os-images.d.ts.map +1 -1
  67. package/resources/compute/vms/os-images.js +10 -3
  68. package/resources/compute/vms/os-images.js.map +1 -1
  69. package/resources/compute/vms/os-images.mjs +10 -3
  70. package/resources/compute/vms/os-images.mjs.map +1 -1
  71. package/resources/compute/vms/vms.d.mts +19 -7
  72. package/resources/compute/vms/vms.d.mts.map +1 -1
  73. package/resources/compute/vms/vms.d.ts +19 -7
  74. package/resources/compute/vms/vms.d.ts.map +1 -1
  75. package/resources/compute/vms/vms.js +7 -3
  76. package/resources/compute/vms/vms.js.map +1 -1
  77. package/resources/compute/vms/vms.mjs +7 -3
  78. package/resources/compute/vms/vms.mjs.map +1 -1
  79. package/resources/compute/vms/volumes.d.mts +15 -5
  80. package/resources/compute/vms/volumes.d.mts.map +1 -1
  81. package/resources/compute/vms/volumes.d.ts +15 -5
  82. package/resources/compute/vms/volumes.d.ts.map +1 -1
  83. package/resources/compute/vms/volumes.js +11 -4
  84. package/resources/compute/vms/volumes.js.map +1 -1
  85. package/resources/compute/vms/volumes.mjs +11 -4
  86. package/resources/compute/vms/volumes.mjs.map +1 -1
  87. package/resources/compute/volumes/index.d.mts +1 -1
  88. package/resources/compute/volumes/index.d.mts.map +1 -1
  89. package/resources/compute/volumes/index.d.ts +1 -1
  90. package/resources/compute/volumes/index.d.ts.map +1 -1
  91. package/resources/compute/volumes/index.js.map +1 -1
  92. package/resources/compute/volumes/index.mjs.map +1 -1
  93. package/resources/compute/volumes/volumes.d.mts +14 -3
  94. package/resources/compute/volumes/volumes.d.mts.map +1 -1
  95. package/resources/compute/volumes/volumes.d.ts +14 -3
  96. package/resources/compute/volumes/volumes.d.ts.map +1 -1
  97. package/resources/compute/volumes/volumes.js +7 -3
  98. package/resources/compute/volumes/volumes.js.map +1 -1
  99. package/resources/compute/volumes/volumes.mjs +7 -3
  100. package/resources/compute/volumes/volumes.mjs.map +1 -1
  101. package/resources/networking/connect/connect.d.mts +15 -4
  102. package/resources/networking/connect/connect.d.mts.map +1 -1
  103. package/resources/networking/connect/connect.d.ts +15 -4
  104. package/resources/networking/connect/connect.d.ts.map +1 -1
  105. package/resources/networking/connect/connect.js.map +1 -1
  106. package/resources/networking/connect/connect.mjs +1 -1
  107. package/resources/networking/connect/connect.mjs.map +1 -1
  108. package/resources/networking/connect/connections.d.mts +11 -4
  109. package/resources/networking/connect/connections.d.mts.map +1 -1
  110. package/resources/networking/connect/connections.d.ts +11 -4
  111. package/resources/networking/connect/connections.d.ts.map +1 -1
  112. package/resources/networking/connect/connections.js +7 -4
  113. package/resources/networking/connect/connections.js.map +1 -1
  114. package/resources/networking/connect/connections.mjs +7 -4
  115. package/resources/networking/connect/connections.mjs.map +1 -1
  116. package/resources/networking/connect/index.d.mts +3 -3
  117. package/resources/networking/connect/index.d.mts.map +1 -1
  118. package/resources/networking/connect/index.d.ts +3 -3
  119. package/resources/networking/connect/index.d.ts.map +1 -1
  120. package/resources/networking/connect/index.js.map +1 -1
  121. package/resources/networking/connect/index.mjs +1 -1
  122. package/resources/networking/connect/index.mjs.map +1 -1
  123. package/resources/networking/connect/routes.d.mts +13 -4
  124. package/resources/networking/connect/routes.d.mts.map +1 -1
  125. package/resources/networking/connect/routes.d.ts +13 -4
  126. package/resources/networking/connect/routes.d.ts.map +1 -1
  127. package/resources/networking/connect/routes.js +10 -4
  128. package/resources/networking/connect/routes.js.map +1 -1
  129. package/resources/networking/connect/routes.mjs +10 -4
  130. package/resources/networking/connect/routes.mjs.map +1 -1
  131. package/resources/networking/firewall-rules.d.mts +16 -4
  132. package/resources/networking/firewall-rules.d.mts.map +1 -1
  133. package/resources/networking/firewall-rules.d.ts +16 -4
  134. package/resources/networking/firewall-rules.d.ts.map +1 -1
  135. package/resources/networking/firewall-rules.js +12 -4
  136. package/resources/networking/firewall-rules.js.map +1 -1
  137. package/resources/networking/firewall-rules.mjs +12 -4
  138. package/resources/networking/firewall-rules.mjs.map +1 -1
  139. package/resources/networking/index.d.mts +3 -3
  140. package/resources/networking/index.d.mts.map +1 -1
  141. package/resources/networking/index.d.ts +3 -3
  142. package/resources/networking/index.d.ts.map +1 -1
  143. package/resources/networking/index.js.map +1 -1
  144. package/resources/networking/index.mjs.map +1 -1
  145. package/resources/networking/networking.d.mts +4 -4
  146. package/resources/networking/networking.d.mts.map +1 -1
  147. package/resources/networking/networking.d.ts +4 -4
  148. package/resources/networking/networking.d.ts.map +1 -1
  149. package/resources/networking/networking.js.map +1 -1
  150. package/resources/networking/networking.mjs +1 -1
  151. package/resources/networking/networking.mjs.map +1 -1
  152. package/resources/networking/vpcs/index.d.mts +1 -1
  153. package/resources/networking/vpcs/index.d.mts.map +1 -1
  154. package/resources/networking/vpcs/index.d.ts +1 -1
  155. package/resources/networking/vpcs/index.d.ts.map +1 -1
  156. package/resources/networking/vpcs/index.js.map +1 -1
  157. package/resources/networking/vpcs/index.mjs.map +1 -1
  158. package/resources/networking/vpcs/vpcs.d.mts +14 -3
  159. package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
  160. package/resources/networking/vpcs/vpcs.d.ts +14 -3
  161. package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
  162. package/resources/networking/vpcs/vpcs.js +7 -3
  163. package/resources/networking/vpcs/vpcs.js.map +1 -1
  164. package/resources/networking/vpcs/vpcs.mjs +7 -3
  165. package/resources/networking/vpcs/vpcs.mjs.map +1 -1
  166. package/resources/operations.d.mts +11 -2
  167. package/resources/operations.d.mts.map +1 -1
  168. package/resources/operations.d.ts +11 -2
  169. package/resources/operations.d.ts.map +1 -1
  170. package/resources/operations.js +3 -2
  171. package/resources/operations.js.map +1 -1
  172. package/resources/operations.mjs +3 -2
  173. package/resources/operations.mjs.map +1 -1
  174. package/resources/rpc-nodes/dedicated/blockchains.d.mts +13 -4
  175. package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
  176. package/resources/rpc-nodes/dedicated/blockchains.d.ts +13 -4
  177. package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
  178. package/resources/rpc-nodes/dedicated/blockchains.js +7 -4
  179. package/resources/rpc-nodes/dedicated/blockchains.js.map +1 -1
  180. package/resources/rpc-nodes/dedicated/blockchains.mjs +7 -4
  181. package/resources/rpc-nodes/dedicated/blockchains.mjs.map +1 -1
  182. package/resources/rpc-nodes/dedicated/dedicated.d.mts +22 -6
  183. package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
  184. package/resources/rpc-nodes/dedicated/dedicated.d.ts +22 -6
  185. package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
  186. package/resources/rpc-nodes/dedicated/dedicated.js +7 -4
  187. package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
  188. package/resources/rpc-nodes/dedicated/dedicated.mjs +7 -4
  189. package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
  190. package/resources/rpc-nodes/dedicated/index.d.mts +2 -2
  191. package/resources/rpc-nodes/dedicated/index.d.mts.map +1 -1
  192. package/resources/rpc-nodes/dedicated/index.d.ts +2 -2
  193. package/resources/rpc-nodes/dedicated/index.d.ts.map +1 -1
  194. package/resources/rpc-nodes/dedicated/index.js.map +1 -1
  195. package/resources/rpc-nodes/dedicated/index.mjs.map +1 -1
  196. package/resources/rpc-nodes/flex/blockchains.d.mts +13 -4
  197. package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
  198. package/resources/rpc-nodes/flex/blockchains.d.ts +13 -4
  199. package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
  200. package/resources/rpc-nodes/flex/blockchains.js +10 -4
  201. package/resources/rpc-nodes/flex/blockchains.js.map +1 -1
  202. package/resources/rpc-nodes/flex/blockchains.mjs +10 -4
  203. package/resources/rpc-nodes/flex/blockchains.mjs.map +1 -1
  204. package/resources/rpc-nodes/flex/flex.d.mts +22 -5
  205. package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
  206. package/resources/rpc-nodes/flex/flex.d.ts +22 -5
  207. package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
  208. package/resources/rpc-nodes/flex/flex.js +7 -3
  209. package/resources/rpc-nodes/flex/flex.js.map +1 -1
  210. package/resources/rpc-nodes/flex/flex.mjs +7 -3
  211. package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
  212. package/resources/rpc-nodes/flex/index.d.mts +2 -2
  213. package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
  214. package/resources/rpc-nodes/flex/index.d.ts +2 -2
  215. package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
  216. package/resources/rpc-nodes/flex/index.js.map +1 -1
  217. package/resources/rpc-nodes/flex/index.mjs.map +1 -1
  218. package/resources/rpc-nodes/index.d.mts +2 -2
  219. package/resources/rpc-nodes/index.d.mts.map +1 -1
  220. package/resources/rpc-nodes/index.d.ts +2 -2
  221. package/resources/rpc-nodes/index.d.ts.map +1 -1
  222. package/resources/rpc-nodes/index.js.map +1 -1
  223. package/resources/rpc-nodes/index.mjs.map +1 -1
  224. package/resources/rpc-nodes/rpc-nodes.d.mts +4 -4
  225. package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
  226. package/resources/rpc-nodes/rpc-nodes.d.ts +4 -4
  227. package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
  228. package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
  229. package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
  230. package/resources/shared.d.mts +8 -0
  231. package/resources/shared.d.mts.map +1 -1
  232. package/resources/shared.d.ts +8 -0
  233. package/resources/shared.d.ts.map +1 -1
  234. package/src/client.ts +25 -0
  235. package/src/core/pagination.ts +167 -0
  236. package/src/index.ts +1 -0
  237. package/src/pagination.ts +2 -0
  238. package/src/resources/api-keys.ts +23 -4
  239. package/src/resources/compute/compute.ts +8 -0
  240. package/src/resources/compute/index.ts +5 -0
  241. package/src/resources/compute/vms/index.ts +5 -2
  242. package/src/resources/compute/vms/os-images.ts +18 -6
  243. package/src/resources/compute/vms/vms.ts +24 -7
  244. package/src/resources/compute/vms/volumes.ts +25 -6
  245. package/src/resources/compute/volumes/index.ts +2 -0
  246. package/src/resources/compute/volumes/volumes.ts +21 -3
  247. package/src/resources/networking/connect/connect.ts +24 -3
  248. package/src/resources/networking/connect/connections.ts +20 -4
  249. package/src/resources/networking/connect/index.ts +9 -2
  250. package/src/resources/networking/connect/routes.ts +22 -5
  251. package/src/resources/networking/firewall-rules.ts +27 -4
  252. package/src/resources/networking/index.ts +6 -0
  253. package/src/resources/networking/networking.ts +16 -1
  254. package/src/resources/networking/vpcs/index.ts +2 -0
  255. package/src/resources/networking/vpcs/vpcs.ts +18 -3
  256. package/src/resources/operations.ts +18 -2
  257. package/src/resources/rpc-nodes/dedicated/blockchains.ts +23 -5
  258. package/src/resources/rpc-nodes/dedicated/dedicated.ts +31 -6
  259. package/src/resources/rpc-nodes/dedicated/index.ts +4 -1
  260. package/src/resources/rpc-nodes/flex/blockchains.ts +22 -5
  261. package/src/resources/rpc-nodes/flex/flex.ts +31 -5
  262. package/src/resources/rpc-nodes/flex/index.ts +4 -1
  263. package/src/resources/rpc-nodes/index.ts +6 -0
  264. package/src/resources/rpc-nodes/rpc-nodes.ts +8 -0
  265. package/src/resources/shared.ts +11 -0
  266. package/src/version.ts +1 -1
  267. package/version.d.mts +1 -1
  268. package/version.d.ts +1 -1
  269. package/version.js +1 -1
  270. package/version.mjs +1 -1
@@ -1,7 +1,9 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
+ import * as Shared from "../../shared.mjs";
2
3
  import * as BlockchainsAPI from "./blockchains.mjs";
3
- import { Blockchains } from "./blockchains.mjs";
4
+ import { BlockchainListParams, Blockchains } from "./blockchains.mjs";
4
5
  import { APIPromise } from "../../../core/api-promise.mjs";
6
+ import { Cursor, type CursorParams, PagePromise } from "../../../core/pagination.mjs";
5
7
  import { RequestOptions } from "../../../internal/request-options.mjs";
6
8
  export declare class DedicatedResource extends APIResource {
7
9
  blockchains: BlockchainsAPI.Blockchains;
@@ -10,11 +12,13 @@ export declare class DedicatedResource extends APIResource {
10
12
  *
11
13
  * @example
12
14
  * ```ts
13
- * const dedicatedList =
14
- * await client.rpcNodes.dedicated.list();
15
+ * // Automatically fetches more pages as needed.
16
+ * for await (const dedicated of client.rpcNodes.dedicated.list()) {
17
+ * // ...
18
+ * }
15
19
  * ```
16
20
  */
17
- list(options?: RequestOptions): APIPromise<DedicatedList>;
21
+ list(query?: DedicatedListParams | null | undefined, options?: RequestOptions): PagePromise<DedicatedsCursor, Dedicated>;
18
22
  /**
19
23
  * Get details about an RPC Node Dedicated
20
24
  *
@@ -27,6 +31,8 @@ export declare class DedicatedResource extends APIResource {
27
31
  */
28
32
  get(nodeID: string, options?: RequestOptions): APIPromise<Dedicated>;
29
33
  }
34
+ export type DedicatedsCursor = Cursor<Dedicated>;
35
+ export type DedicatedBlockchainsCursor = Cursor<DedicatedBlockchain>;
30
36
  /**
31
37
  * RPC Node Dedicated details.
32
38
  */
@@ -79,12 +85,22 @@ export interface DedicatedBlockchain {
79
85
  }
80
86
  export interface DedicatedBlockchainList {
81
87
  items: Array<DedicatedBlockchain>;
88
+ /**
89
+ * Pagination response details.
90
+ */
91
+ pagination: Shared.Pagination;
82
92
  }
83
93
  export interface DedicatedList {
84
94
  items: Array<Dedicated>;
95
+ /**
96
+ * Pagination response details.
97
+ */
98
+ pagination: Shared.Pagination;
99
+ }
100
+ export interface DedicatedListParams extends CursorParams {
85
101
  }
86
102
  export declare namespace DedicatedResource {
87
- export { type Dedicated as Dedicated, type DedicatedBlockchain as DedicatedBlockchain, type DedicatedBlockchainList as DedicatedBlockchainList, type DedicatedList as DedicatedList, };
88
- export { Blockchains as Blockchains };
103
+ export { type Dedicated as Dedicated, type DedicatedBlockchain as DedicatedBlockchain, type DedicatedBlockchainList as DedicatedBlockchainList, type DedicatedList as DedicatedList, type DedicatedsCursor as DedicatedsCursor, type DedicatedListParams as DedicatedListParams, };
104
+ export { Blockchains as Blockchains, type BlockchainListParams as BlockchainListParams };
89
105
  }
90
106
  //# sourceMappingURL=dedicated.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dedicated.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/dedicated.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIzD;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGrE;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAA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AiB,CAAC;IACzC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC1F"}
@@ -1,7 +1,9 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
+ import * as Shared from "../../shared.js";
2
3
  import * as BlockchainsAPI from "./blockchains.js";
3
- import { Blockchains } from "./blockchains.js";
4
+ import { BlockchainListParams, Blockchains } from "./blockchains.js";
4
5
  import { APIPromise } from "../../../core/api-promise.js";
6
+ import { Cursor, type CursorParams, PagePromise } from "../../../core/pagination.js";
5
7
  import { RequestOptions } from "../../../internal/request-options.js";
6
8
  export declare class DedicatedResource extends APIResource {
7
9
  blockchains: BlockchainsAPI.Blockchains;
@@ -10,11 +12,13 @@ export declare class DedicatedResource extends APIResource {
10
12
  *
11
13
  * @example
12
14
  * ```ts
13
- * const dedicatedList =
14
- * await client.rpcNodes.dedicated.list();
15
+ * // Automatically fetches more pages as needed.
16
+ * for await (const dedicated of client.rpcNodes.dedicated.list()) {
17
+ * // ...
18
+ * }
15
19
  * ```
16
20
  */
17
- list(options?: RequestOptions): APIPromise<DedicatedList>;
21
+ list(query?: DedicatedListParams | null | undefined, options?: RequestOptions): PagePromise<DedicatedsCursor, Dedicated>;
18
22
  /**
19
23
  * Get details about an RPC Node Dedicated
20
24
  *
@@ -27,6 +31,8 @@ export declare class DedicatedResource extends APIResource {
27
31
  */
28
32
  get(nodeID: string, options?: RequestOptions): APIPromise<Dedicated>;
29
33
  }
34
+ export type DedicatedsCursor = Cursor<Dedicated>;
35
+ export type DedicatedBlockchainsCursor = Cursor<DedicatedBlockchain>;
30
36
  /**
31
37
  * RPC Node Dedicated details.
32
38
  */
@@ -79,12 +85,22 @@ export interface DedicatedBlockchain {
79
85
  }
80
86
  export interface DedicatedBlockchainList {
81
87
  items: Array<DedicatedBlockchain>;
88
+ /**
89
+ * Pagination response details.
90
+ */
91
+ pagination: Shared.Pagination;
82
92
  }
83
93
  export interface DedicatedList {
84
94
  items: Array<Dedicated>;
95
+ /**
96
+ * Pagination response details.
97
+ */
98
+ pagination: Shared.Pagination;
99
+ }
100
+ export interface DedicatedListParams extends CursorParams {
85
101
  }
86
102
  export declare namespace DedicatedResource {
87
- export { type Dedicated as Dedicated, type DedicatedBlockchain as DedicatedBlockchain, type DedicatedBlockchainList as DedicatedBlockchainList, type DedicatedList as DedicatedList, };
88
- export { Blockchains as Blockchains };
103
+ export { type Dedicated as Dedicated, type DedicatedBlockchain as DedicatedBlockchain, type DedicatedBlockchainList as DedicatedBlockchainList, type DedicatedList as DedicatedList, type DedicatedsCursor as DedicatedsCursor, type DedicatedListParams as DedicatedListParams, };
104
+ export { Blockchains as Blockchains, type BlockchainListParams as BlockchainListParams };
89
105
  }
90
106
  //# sourceMappingURL=dedicated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dedicated.d.ts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/dedicated.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIzD;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGrE;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CACzB;AAID,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;IAEF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,CAAC;CACvC"}
1
+ {"version":3,"file":"dedicated.d.ts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/dedicated.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,cAAc;OACnB,EAAE,oBAAoB,EAAE,WAAW,EAAE;OACrC,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,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CAAC,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;CAAG;AAI5D,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC1F"}
@@ -6,6 +6,7 @@ const tslib_1 = require("../../../internal/tslib.js");
6
6
  const resource_1 = require("../../../core/resource.js");
7
7
  const BlockchainsAPI = tslib_1.__importStar(require("./blockchains.js"));
8
8
  const blockchains_1 = require("./blockchains.js");
9
+ const pagination_1 = require("../../../core/pagination.js");
9
10
  const path_1 = require("../../../internal/utils/path.js");
10
11
  class DedicatedResource extends resource_1.APIResource {
11
12
  constructor() {
@@ -17,12 +18,14 @@ class DedicatedResource extends resource_1.APIResource {
17
18
  *
18
19
  * @example
19
20
  * ```ts
20
- * const dedicatedList =
21
- * await client.rpcNodes.dedicated.list();
21
+ * // Automatically fetches more pages as needed.
22
+ * for await (const dedicated of client.rpcNodes.dedicated.list()) {
23
+ * // ...
24
+ * }
22
25
  * ```
23
26
  */
24
- list(options) {
25
- return this._client.get('/v1/rpc_nodes/dedicated', options);
27
+ list(query = {}, options) {
28
+ return this._client.getAPIList('/v1/rpc_nodes/dedicated', (pagination_1.Cursor), { query, ...options });
26
29
  }
27
30
  /**
28
31
  * Get details about an RPC Node Dedicated
@@ -1 +1 @@
1
- {"version":3,"file":"dedicated.js","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/dedicated.ts"],"names":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OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAlCD,8CAkCC;AAsFD,iBAAiB,CAAC,WAAW,GAAG,yBAAW,CAAC"}
@@ -2,6 +2,7 @@
2
2
  import { APIResource } from "../../../core/resource.mjs";
3
3
  import * as BlockchainsAPI from "./blockchains.mjs";
4
4
  import { Blockchains } from "./blockchains.mjs";
5
+ import { Cursor } from "../../../core/pagination.mjs";
5
6
  import { path } from "../../../internal/utils/path.mjs";
6
7
  export class DedicatedResource extends APIResource {
7
8
  constructor() {
@@ -13,12 +14,14 @@ export class DedicatedResource extends APIResource {
13
14
  *
14
15
  * @example
15
16
  * ```ts
16
- * const dedicatedList =
17
- * await client.rpcNodes.dedicated.list();
17
+ * // Automatically fetches more pages as needed.
18
+ * for await (const dedicated of client.rpcNodes.dedicated.list()) {
19
+ * // ...
20
+ * }
18
21
  * ```
19
22
  */
20
- list(options) {
21
- return this._client.get('/v1/rpc_nodes/dedicated', options);
23
+ list(query = {}, options) {
24
+ return this._client.getAPIList('/v1/rpc_nodes/dedicated', (Cursor), { query, ...options });
22
25
  }
23
26
  /**
24
27
  * Get details about an RPC Node Dedicated
@@ -1 +1 @@
1
- {"version":3,"file":"dedicated.mjs","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/dedicated.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAAlD;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4BzF,CAAC;IA1BC;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAc,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAsED,iBAAiB,CAAC,WAAW,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"dedicated.mjs","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/dedicated.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,cAAc;OACnB,EAAwB,WAAW,EAAE;OAErC,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAAlD;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiCzF,CAAC;IA/BC;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,MAAiB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,MAAc,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAsFD,iBAAiB,CAAC,WAAW,GAAG,WAAW,CAAC"}
@@ -1,3 +1,3 @@
1
- export { Blockchains } from "./blockchains.mjs";
2
- export { DedicatedResource, type Dedicated, type DedicatedBlockchain, type DedicatedBlockchainList, type DedicatedList, } from "./dedicated.mjs";
1
+ export { Blockchains, type BlockchainListParams } from "./blockchains.mjs";
2
+ export { DedicatedResource, type Dedicated, type DedicatedBlockchain, type DedicatedBlockchainList, type DedicatedList, type DedicatedListParams, type DedicatedBlockchainsCursor, type DedicatedsCursor, } from "./dedicated.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EACL,iBAAiB,EACjB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,GACnB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE,KAAK,oBAAoB,EAAE;OAC1C,EACL,iBAAiB,EACjB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,GACtB"}
@@ -1,3 +1,3 @@
1
- export { Blockchains } from "./blockchains.js";
2
- export { DedicatedResource, type Dedicated, type DedicatedBlockchain, type DedicatedBlockchainList, type DedicatedList, } from "./dedicated.js";
1
+ export { Blockchains, type BlockchainListParams } from "./blockchains.js";
2
+ export { DedicatedResource, type Dedicated, type DedicatedBlockchain, type DedicatedBlockchainList, type DedicatedList, type DedicatedListParams, type DedicatedBlockchainsCursor, type DedicatedsCursor, } from "./dedicated.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EACL,iBAAiB,EACjB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,GACnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE,KAAK,oBAAoB,EAAE;OAC1C,EACL,iBAAiB,EACjB,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,GACtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,4CAMqB;AALnB,8GAAA,iBAAiB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAAuE;AAA9D,0GAAA,WAAW,OAAA;AACpB,4CASqB;AARnB,8GAAA,iBAAiB,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EACL,iBAAiB,GAKlB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/dedicated/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAA6B;OAC1C,EACL,iBAAiB,GAQlB"}
@@ -1,6 +1,7 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as FlexAPI from "./flex.mjs";
3
- import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { FlexBlockchainsCursor } from "./flex.mjs";
4
+ import { type CursorParams, PagePromise } from "../../../core/pagination.mjs";
4
5
  import { RequestOptions } from "../../../internal/request-options.mjs";
5
6
  export declare class Blockchains extends APIResource {
6
7
  /**
@@ -8,10 +9,18 @@ export declare class Blockchains extends APIResource {
8
9
  *
9
10
  * @example
10
11
  * ```ts
11
- * const flexBlockchainList =
12
- * await client.rpcNodes.flex.blockchains.list();
12
+ * // Automatically fetches more pages as needed.
13
+ * for await (const flexBlockchain of client.rpcNodes.flex.blockchains.list()) {
14
+ * // ...
15
+ * }
13
16
  * ```
14
17
  */
15
- list(options?: RequestOptions): APIPromise<FlexAPI.FlexBlockchainList>;
18
+ list(query?: BlockchainListParams | null | undefined, options?: RequestOptions): PagePromise<FlexBlockchainsCursor, FlexAPI.FlexBlockchain>;
16
19
  }
20
+ export interface BlockchainListParams extends CursorParams {
21
+ }
22
+ export declare namespace Blockchains {
23
+ export { type BlockchainListParams as BlockchainListParams };
24
+ }
25
+ export { type FlexBlockchainsCursor };
17
26
  //# sourceMappingURL=blockchains.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockchains.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/blockchains.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAGvE"}
1
+ {"version":3,"file":"blockchains.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/blockchains.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,qBAAqB,EAAE;OACzB,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EAAE,OAAO,CAAC,cAAc,CAAC;CAM9D;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;CAAG;AAE7D,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
2
  import * as FlexAPI from "./flex.js";
3
- import { APIPromise } from "../../../core/api-promise.js";
3
+ import { FlexBlockchainsCursor } from "./flex.js";
4
+ import { type CursorParams, PagePromise } from "../../../core/pagination.js";
4
5
  import { RequestOptions } from "../../../internal/request-options.js";
5
6
  export declare class Blockchains extends APIResource {
6
7
  /**
@@ -8,10 +9,18 @@ export declare class Blockchains extends APIResource {
8
9
  *
9
10
  * @example
10
11
  * ```ts
11
- * const flexBlockchainList =
12
- * await client.rpcNodes.flex.blockchains.list();
12
+ * // Automatically fetches more pages as needed.
13
+ * for await (const flexBlockchain of client.rpcNodes.flex.blockchains.list()) {
14
+ * // ...
15
+ * }
13
16
  * ```
14
17
  */
15
- list(options?: RequestOptions): APIPromise<FlexAPI.FlexBlockchainList>;
18
+ list(query?: BlockchainListParams | null | undefined, options?: RequestOptions): PagePromise<FlexBlockchainsCursor, FlexAPI.FlexBlockchain>;
16
19
  }
20
+ export interface BlockchainListParams extends CursorParams {
21
+ }
22
+ export declare namespace Blockchains {
23
+ export { type BlockchainListParams as BlockchainListParams };
24
+ }
25
+ export { type FlexBlockchainsCursor };
17
26
  //# sourceMappingURL=blockchains.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockchains.d.ts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/blockchains.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAGvE"}
1
+ {"version":3,"file":"blockchains.d.ts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/blockchains.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,qBAAqB,EAAE;OACzB,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EAAE,OAAO,CAAC,cAAc,CAAC;CAM9D;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;CAAG;AAE7D,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC9D;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
@@ -3,18 +3,24 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Blockchains = void 0;
5
5
  const resource_1 = require("../../../core/resource.js");
6
+ const pagination_1 = require("../../../core/pagination.js");
6
7
  class Blockchains extends resource_1.APIResource {
7
8
  /**
8
9
  * List all Flex Blockchains
9
10
  *
10
11
  * @example
11
12
  * ```ts
12
- * const flexBlockchainList =
13
- * await client.rpcNodes.flex.blockchains.list();
13
+ * // Automatically fetches more pages as needed.
14
+ * for await (const flexBlockchain of client.rpcNodes.flex.blockchains.list()) {
15
+ * // ...
16
+ * }
14
17
  * ```
15
18
  */
16
- list(options) {
17
- return this._client.get('/v1/rpc_nodes/flex/blockchains', options);
19
+ list(query = {}, options) {
20
+ return this._client.getAPIList('/v1/rpc_nodes/flex/blockchains', (pagination_1.Cursor), {
21
+ query,
22
+ ...options,
23
+ });
18
24
  }
19
25
  }
20
26
  exports.Blockchains = Blockchains;
@@ -1 +1 @@
1
- {"version":3,"file":"blockchains.js","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/blockchains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AAbD,kCAaC"}
1
+ {"version":3,"file":"blockchains.js","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/blockchains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAAkF;AAGlF,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gCAAgC,EAAE,CAAA,mBAA8B,CAAA,EAAE;YAC/F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AArBD,kCAqBC"}
@@ -1,17 +1,23 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../../core/resource.mjs";
3
+ import { Cursor } from "../../../core/pagination.mjs";
3
4
  export class Blockchains extends APIResource {
4
5
  /**
5
6
  * List all Flex Blockchains
6
7
  *
7
8
  * @example
8
9
  * ```ts
9
- * const flexBlockchainList =
10
- * await client.rpcNodes.flex.blockchains.list();
10
+ * // Automatically fetches more pages as needed.
11
+ * for await (const flexBlockchain of client.rpcNodes.flex.blockchains.list()) {
12
+ * // ...
13
+ * }
11
14
  * ```
12
15
  */
13
- list(options) {
14
- return this._client.get('/v1/rpc_nodes/flex/blockchains', options);
16
+ list(query = {}, options) {
17
+ return this._client.getAPIList('/v1/rpc_nodes/flex/blockchains', (Cursor), {
18
+ query,
19
+ ...options,
20
+ });
15
21
  }
16
22
  }
17
23
  //# sourceMappingURL=blockchains.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockchains.mjs","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/blockchains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF"}
1
+ {"version":3,"file":"blockchains.mjs","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/blockchains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,MAAM,EAAkC;AAGjD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gCAAgC,EAAE,CAAA,MAA8B,CAAA,EAAE;YAC/F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,7 +1,9 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
+ import * as Shared from "../../shared.mjs";
2
3
  import * as BlockchainsAPI from "./blockchains.mjs";
3
- import { Blockchains } from "./blockchains.mjs";
4
+ import { BlockchainListParams, Blockchains } from "./blockchains.mjs";
4
5
  import { APIPromise } from "../../../core/api-promise.mjs";
6
+ import { Cursor, type CursorParams, PagePromise } from "../../../core/pagination.mjs";
5
7
  import { RequestOptions } from "../../../internal/request-options.mjs";
6
8
  export declare class FlexResource extends APIResource {
7
9
  blockchains: BlockchainsAPI.Blockchains;
@@ -32,10 +34,13 @@ export declare class FlexResource extends APIResource {
32
34
  *
33
35
  * @example
34
36
  * ```ts
35
- * const flexList = await client.rpcNodes.flex.list();
37
+ * // Automatically fetches more pages as needed.
38
+ * for await (const flex of client.rpcNodes.flex.list()) {
39
+ * // ...
40
+ * }
36
41
  * ```
37
42
  */
38
- list(options?: RequestOptions): APIPromise<FlexList>;
43
+ list(query?: FlexListParams | null | undefined, options?: RequestOptions): PagePromise<FlexesCursor, Flex>;
39
44
  /**
40
45
  * Delete an RPC Node Flex
41
46
  *
@@ -55,6 +60,8 @@ export declare class FlexResource extends APIResource {
55
60
  */
56
61
  get(nodeID: string, options?: RequestOptions): APIPromise<Flex>;
57
62
  }
63
+ export type FlexesCursor = Cursor<Flex>;
64
+ export type FlexBlockchainsCursor = Cursor<FlexBlockchain>;
58
65
  /**
59
66
  * RPC Node Flex details.
60
67
  */
@@ -107,9 +114,17 @@ export interface FlexBlockchain {
107
114
  }
108
115
  export interface FlexBlockchainList {
109
116
  items: Array<FlexBlockchain>;
117
+ /**
118
+ * Pagination response details.
119
+ */
120
+ pagination: Shared.Pagination;
110
121
  }
111
122
  export interface FlexList {
112
123
  items: Array<Flex>;
124
+ /**
125
+ * Pagination response details.
126
+ */
127
+ pagination: Shared.Pagination;
113
128
  }
114
129
  export interface FlexCreateParams {
115
130
  /**
@@ -139,8 +154,10 @@ export interface FlexUpdateParams {
139
154
  */
140
155
  tags?: Array<string>;
141
156
  }
157
+ export interface FlexListParams extends CursorParams {
158
+ }
142
159
  export declare namespace FlexResource {
143
- export { type Flex as Flex, type FlexBlockchain as FlexBlockchain, type FlexBlockchainList as FlexBlockchainList, type FlexList as FlexList, type FlexCreateParams as FlexCreateParams, type FlexUpdateParams as FlexUpdateParams, };
144
- export { Blockchains as Blockchains };
160
+ export { type Flex as Flex, type FlexBlockchain as FlexBlockchain, type FlexBlockchainList as FlexBlockchainList, type FlexList as FlexList, type FlexesCursor as FlexesCursor, type FlexCreateParams as FlexCreateParams, type FlexUpdateParams as FlexUpdateParams, type FlexListParams as FlexListParams, };
161
+ export { Blockchains as Blockchains, type BlockchainListParams as BlockchainListParams };
145
162
  }
146
163
  //# sourceMappingURL=flex.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flex.d.mts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/flex.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAI1E;;;;;;;OAOG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAI1F;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAIpD;;;;;;;OAOG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOlE;;;;;;;OAOG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAGhE;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,EAAE,EA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M,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC1F"}
@@ -1,7 +1,9 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
+ import * as Shared from "../../shared.js";
2
3
  import * as BlockchainsAPI from "./blockchains.js";
3
- import { Blockchains } from "./blockchains.js";
4
+ import { BlockchainListParams, Blockchains } from "./blockchains.js";
4
5
  import { APIPromise } from "../../../core/api-promise.js";
6
+ import { Cursor, type CursorParams, PagePromise } from "../../../core/pagination.js";
5
7
  import { RequestOptions } from "../../../internal/request-options.js";
6
8
  export declare class FlexResource extends APIResource {
7
9
  blockchains: BlockchainsAPI.Blockchains;
@@ -32,10 +34,13 @@ export declare class FlexResource extends APIResource {
32
34
  *
33
35
  * @example
34
36
  * ```ts
35
- * const flexList = await client.rpcNodes.flex.list();
37
+ * // Automatically fetches more pages as needed.
38
+ * for await (const flex of client.rpcNodes.flex.list()) {
39
+ * // ...
40
+ * }
36
41
  * ```
37
42
  */
38
- list(options?: RequestOptions): APIPromise<FlexList>;
43
+ list(query?: FlexListParams | null | undefined, options?: RequestOptions): PagePromise<FlexesCursor, Flex>;
39
44
  /**
40
45
  * Delete an RPC Node Flex
41
46
  *
@@ -55,6 +60,8 @@ export declare class FlexResource extends APIResource {
55
60
  */
56
61
  get(nodeID: string, options?: RequestOptions): APIPromise<Flex>;
57
62
  }
63
+ export type FlexesCursor = Cursor<Flex>;
64
+ export type FlexBlockchainsCursor = Cursor<FlexBlockchain>;
58
65
  /**
59
66
  * RPC Node Flex details.
60
67
  */
@@ -107,9 +114,17 @@ export interface FlexBlockchain {
107
114
  }
108
115
  export interface FlexBlockchainList {
109
116
  items: Array<FlexBlockchain>;
117
+ /**
118
+ * Pagination response details.
119
+ */
120
+ pagination: Shared.Pagination;
110
121
  }
111
122
  export interface FlexList {
112
123
  items: Array<Flex>;
124
+ /**
125
+ * Pagination response details.
126
+ */
127
+ pagination: Shared.Pagination;
113
128
  }
114
129
  export interface FlexCreateParams {
115
130
  /**
@@ -139,8 +154,10 @@ export interface FlexUpdateParams {
139
154
  */
140
155
  tags?: Array<string>;
141
156
  }
157
+ export interface FlexListParams extends CursorParams {
158
+ }
142
159
  export declare namespace FlexResource {
143
- export { type Flex as Flex, type FlexBlockchain as FlexBlockchain, type FlexBlockchainList as FlexBlockchainList, type FlexList as FlexList, type FlexCreateParams as FlexCreateParams, type FlexUpdateParams as FlexUpdateParams, };
144
- export { Blockchains as Blockchains };
160
+ export { type Flex as Flex, type FlexBlockchain as FlexBlockchain, type FlexBlockchainList as FlexBlockchainList, type FlexList as FlexList, type FlexesCursor as FlexesCursor, type FlexCreateParams as FlexCreateParams, type FlexUpdateParams as FlexUpdateParams, type FlexListParams as FlexListParams, };
161
+ export { Blockchains as Blockchains, type BlockchainListParams as BlockchainListParams };
145
162
  }
146
163
  //# sourceMappingURL=flex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/flex.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAg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AE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAG;AAIvD,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CAC1F"}
@@ -6,6 +6,7 @@ const tslib_1 = require("../../../internal/tslib.js");
6
6
  const resource_1 = require("../../../core/resource.js");
7
7
  const BlockchainsAPI = tslib_1.__importStar(require("./blockchains.js"));
8
8
  const blockchains_1 = require("./blockchains.js");
9
+ const pagination_1 = require("../../../core/pagination.js");
9
10
  const headers_1 = require("../../../internal/headers.js");
10
11
  const path_1 = require("../../../internal/utils/path.js");
11
12
  class FlexResource extends resource_1.APIResource {
@@ -44,11 +45,14 @@ class FlexResource extends resource_1.APIResource {
44
45
  *
45
46
  * @example
46
47
  * ```ts
47
- * const flexList = await client.rpcNodes.flex.list();
48
+ * // Automatically fetches more pages as needed.
49
+ * for await (const flex of client.rpcNodes.flex.list()) {
50
+ * // ...
51
+ * }
48
52
  * ```
49
53
  */
50
- list(options) {
51
- return this._client.get('/v1/rpc_nodes/flex', options);
54
+ list(query = {}, options) {
55
+ return this._client.getAPIList('/v1/rpc_nodes/flex', (pagination_1.Cursor), { query, ...options });
52
56
  }
53
57
  /**
54
58
  * Delete an RPC Node Flex
@@ -1 +1 @@
1
- {"version":3,"file":"flex.js","sourceRoot":"","sources":["../../../src/resources/rpc-nodes/flex/flex.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,kDAA4C;AAE5C,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoEzF,CAAC;IAlEC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,sBAAsB,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG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,WAAI,EAAA,sBAAsB,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAA,mBAAY,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,sBAAsB,MAAM,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,MAAc,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CACF;AA3ED,oCA2EC;AAwHD,YAAY,CAAC,WAAW,GAAG,yBAAW,CAAC"}
@@ -2,6 +2,7 @@
2
2
  import { APIResource } from "../../../core/resource.mjs";
3
3
  import * as BlockchainsAPI from "./blockchains.mjs";
4
4
  import { Blockchains } from "./blockchains.mjs";
5
+ import { Cursor } from "../../../core/pagination.mjs";
5
6
  import { buildHeaders } from "../../../internal/headers.mjs";
6
7
  import { path } from "../../../internal/utils/path.mjs";
7
8
  export class FlexResource extends APIResource {
@@ -40,11 +41,14 @@ export class FlexResource extends APIResource {
40
41
  *
41
42
  * @example
42
43
  * ```ts
43
- * const flexList = await client.rpcNodes.flex.list();
44
+ * // Automatically fetches more pages as needed.
45
+ * for await (const flex of client.rpcNodes.flex.list()) {
46
+ * // ...
47
+ * }
44
48
  * ```
45
49
  */
46
- list(options) {
47
- return this._client.get('/v1/rpc_nodes/flex', options);
50
+ list(query = {}, options) {
51
+ return this._client.getAPIList('/v1/rpc_nodes/flex', (Cursor), { query, ...options });
48
52
  }
49
53
  /**
50
54
  * Delete an RPC Node Flex