@xyo-network/xl1-rpc 1.30.2 → 1.30.4

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.
@@ -229,6 +229,11 @@ import { creatableProvider } from "@xyo-network/xl1-protocol-sdk";
229
229
  // src/provider/runner/JsonRpcMempoolRunner/JsonRpcMempoolRunnerMethods.ts
230
230
  import { MempoolRunnerMoniker } from "@xyo-network/xl1-protocol-lib";
231
231
 
232
+ // src/types/DataLakePageRpc.ts
233
+ var DataLakesPageMethodPrefix = "xyoDataLakes";
234
+ var DataLakesGetMethod = `${DataLakesPageMethodPrefix}_get`;
235
+ var DataLakesInsertMethod = `${DataLakesPageMethodPrefix}_insert`;
236
+
232
237
  // src/types/ErrorCodes.ts
233
238
  var JsonRpcErrorCodes = {
234
239
  InternalError: { code: -32603, message: "Internal JSON-RPC error (unexpected exception)." },
@@ -1511,6 +1516,45 @@ var createResponseSchema = (resultSchema = z23.undefined()) => z23.object({
1511
1516
  result: resultSchema
1512
1517
  });
1513
1518
 
1519
+ // src/types/schema/DataLakePageRpcSchemas.ts
1520
+ import { HashZod as HashZod6 } from "@xylabs/sdk-js";
1521
+ import { PayloadZodLoose as PayloadZodLoose2 } from "@xyo-network/payload-model";
1522
+ import { ArrayBufferToJsonZod as ArrayBufferToJsonZod2, JsonToArrayBufferZod as JsonToArrayBufferWideZod } from "@xyo-network/xl1-protocol-model";
1523
+ import { z as z24 } from "zod";
1524
+ var JsonToArrayBufferZod2 = JsonToArrayBufferWideZod.pipe(z24.instanceof(ArrayBuffer));
1525
+ var DataLakePageRpcSchemas = {
1526
+ xyoDataLakes_get: {
1527
+ params: {
1528
+ to: z24.tuple([z24.object({ id: z24.string(), hashes: z24.array(HashZod6) })]),
1529
+ from: z24.tuple([z24.object({ id: z24.string(), hashes: z24.array(HashZod6) })])
1530
+ },
1531
+ result: {
1532
+ to: z24.array(z24.union([PayloadZodLoose2, ArrayBufferToJsonZod2])),
1533
+ from: z24.array(z24.union([PayloadZodLoose2, JsonToArrayBufferZod2]))
1534
+ }
1535
+ },
1536
+ xyoDataLakes_insert: {
1537
+ params: {
1538
+ to: z24.tuple([
1539
+ z24.object({
1540
+ id: z24.string(),
1541
+ payloads: z24.array(z24.union([PayloadZodLoose2, ArrayBufferToJsonZod2]))
1542
+ })
1543
+ ]),
1544
+ from: z24.tuple([
1545
+ z24.object({
1546
+ id: z24.string(),
1547
+ payloads: z24.array(z24.union([PayloadZodLoose2, JsonToArrayBufferZod2]))
1548
+ })
1549
+ ])
1550
+ },
1551
+ result: {
1552
+ to: z24.array(z24.union([PayloadZodLoose2, ArrayBufferToJsonZod2])),
1553
+ from: z24.array(z24.union([PayloadZodLoose2, JsonToArrayBufferZod2]))
1554
+ }
1555
+ }
1556
+ };
1557
+
1514
1558
  // src/provider/runner/JsonRpcRunner.ts
1515
1559
  import {
1516
1560
  AbstractCreatableProvider,
@@ -1526,7 +1570,7 @@ import {
1526
1570
  isUndefinedOrNull
1527
1571
  } from "@xylabs/sdk-js";
1528
1572
  import { v4 } from "uuid";
1529
- import { z as z24 } from "zod";
1573
+ import { z as z25 } from "zod";
1530
1574
  var HttpRpcTransport = class {
1531
1575
  _passThrough;
1532
1576
  _rpcUrl;
@@ -1549,7 +1593,7 @@ var HttpRpcTransport = class {
1549
1593
  };
1550
1594
  const schema = schemas[method];
1551
1595
  if (params) {
1552
- body.params = isDefined(schema) ? schema.params.to.parse(params) : this._passThrough ? z24.json().parse(params) : void 0;
1596
+ body.params = isDefined(schema) ? schema.params.to.parse(params) : this._passThrough ? z25.json().parse(params) : void 0;
1553
1597
  if (!isDefined(body.params)) {
1554
1598
  throw new Error(`[callRpc] RPC method ${String(method)} missing schema`);
1555
1599
  }
@@ -2919,7 +2963,11 @@ export {
2919
2963
  AccountBalanceViewerRpcSchemas,
2920
2964
  AllRpcSchemas,
2921
2965
  BlockViewerRpcSchemas,
2966
+ DataLakePageRpcSchemas,
2922
2967
  DataLakeViewerRpcSchemas,
2968
+ DataLakesGetMethod,
2969
+ DataLakesInsertMethod,
2970
+ DataLakesPageMethodPrefix,
2923
2971
  FinalizationViewerRpcSchemas,
2924
2972
  HttpRpcTransport,
2925
2973
  JsonRpcAccountBalanceViewer,