@arkiv-network/sdk 0.8.0-advanced.2 → 0.8.0-advanced.3

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 (152) hide show
  1. package/dist/actions/advanced/index.cjs +6 -6
  2. package/dist/actions/advanced/index.d.cts +5 -5
  3. package/dist/actions/advanced/index.d.ts +6 -6
  4. package/dist/actions/advanced/index.js +6 -6
  5. package/dist/{advanced-fPImL6lW.cjs → advanced-Ds2XRflQ.cjs} +6 -6
  6. package/dist/{advanced-8ZPTmmaN.js → advanced-FZy7WoYR.js} +7 -7
  7. package/dist/advanced-FZy7WoYR.js.map +1 -0
  8. package/dist/{arkivTransactions-D74gERHG.d.cts → arkivTransactions-BpARZOsH.d.cts} +60 -47
  9. package/dist/arkivTransactions-BpARZOsH.d.cts.map +1 -0
  10. package/dist/{arkivTransactions-NtGD6uk5.d.ts → arkivTransactions-DfZ_yVDD.d.ts} +60 -47
  11. package/dist/arkivTransactions-DfZ_yVDD.d.ts.map +1 -0
  12. package/dist/attr/index.cjs +1 -1
  13. package/dist/attr/index.d.cts +1 -1
  14. package/dist/attr/index.d.ts +2 -2
  15. package/dist/attr/index.js +1 -1
  16. package/dist/{attributes-BhY5DwJp.js → attributes-BJGuhsqp.js} +14 -4
  17. package/dist/attributes-BJGuhsqp.js.map +1 -0
  18. package/dist/{attributes-Df9IsCVs.cjs → attributes-CMJlp1wn.cjs} +13 -3
  19. package/dist/chains/index.cjs +1 -1
  20. package/dist/chains/index.d.cts +3 -0
  21. package/dist/chains/index.d.cts.map +1 -1
  22. package/dist/chains/index.d.ts +3 -0
  23. package/dist/chains/index.d.ts.map +1 -1
  24. package/dist/chains/index.js +1 -1
  25. package/dist/{chains-BYRTTipa.cjs → chains-BfNQliHU.cjs} +3 -0
  26. package/dist/{chains-BJrZs6sG.js → chains-Du8tql7I.js} +4 -1
  27. package/dist/chains-Du8tql7I.js.map +1 -0
  28. package/dist/{codec-Car3KkFF.d.ts → codec-M74UR1_0.d.ts} +3 -4
  29. package/dist/codec-M74UR1_0.d.ts.map +1 -0
  30. package/dist/entity/index.cjs +5 -4
  31. package/dist/entity/index.d.cts +2 -2
  32. package/dist/entity/index.d.ts +3 -3
  33. package/dist/entity/index.js +5 -5
  34. package/dist/{errors-BVbjKVMN.cjs → errors-51znTSB1.cjs} +1 -1
  35. package/dist/{errors-LTe7bOYS.js → errors-CwPJ16bn.js} +2 -2
  36. package/dist/errors-CwPJ16bn.js.map +1 -0
  37. package/dist/{expiry-BjpxZZQU.js → expiry-CZErShX6.js} +2 -2
  38. package/dist/expiry-CZErShX6.js.map +1 -0
  39. package/dist/expiry-DRV29F1r.d.cts.map +1 -1
  40. package/dist/expiry-nDbCgZX4.d.ts.map +1 -1
  41. package/dist/{expiry-BELY2Kpw.cjs → expiry-xr6mx4f7.cjs} +1 -1
  42. package/dist/{flags-kr276q6i.cjs → flags-Bh0HJldY.cjs} +1 -1
  43. package/dist/{flags-DFBs2J94.js → flags-Cr76ldwF.js} +2 -2
  44. package/dist/{flags-DFBs2J94.js.map → flags-Cr76ldwF.js.map} +1 -1
  45. package/dist/{index-BF7Mq9Is.d.cts → index-CMeD8uEq.d.cts} +4 -4
  46. package/dist/{index-BF7Mq9Is.d.cts.map → index-CMeD8uEq.d.cts.map} +1 -1
  47. package/dist/{index-B5j76711.d.ts → index-CTDI5pXZ.d.ts} +5 -5
  48. package/dist/{index-B5j76711.d.ts.map → index-CTDI5pXZ.d.ts.map} +1 -1
  49. package/dist/{index-EeUO0nnJ.d.cts → index-CekGjkRx.d.cts} +5 -5
  50. package/dist/{index-EeUO0nnJ.d.cts.map → index-CekGjkRx.d.cts.map} +1 -1
  51. package/dist/{index-DvYvrkdk.d.ts → index-D0IzFwMX.d.ts} +12 -4
  52. package/dist/index-D0IzFwMX.d.ts.map +1 -0
  53. package/dist/{index-fX_XyqLp.d.ts → index-DZxwz2Ky.d.cts} +53 -43
  54. package/dist/index-DZxwz2Ky.d.cts.map +1 -0
  55. package/dist/{index-DHDud2hC.d.ts → index-Dz4SkQWg.d.ts} +4 -4
  56. package/dist/{index-DHDud2hC.d.ts.map → index-Dz4SkQWg.d.ts.map} +1 -1
  57. package/dist/{index-CA4V7Pdh.d.cts → index-JP31fjyM.d.ts} +53 -43
  58. package/dist/index-JP31fjyM.d.ts.map +1 -0
  59. package/dist/{index-CV5zCdpa.d.cts → index-NbfnXxgr.d.cts} +13 -6
  60. package/dist/index-NbfnXxgr.d.cts.map +1 -0
  61. package/dist/index.cjs +41 -42
  62. package/dist/index.d.cts +58 -52
  63. package/dist/index.d.cts.map +1 -1
  64. package/dist/index.d.ts +59 -53
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +41 -43
  67. package/dist/index.js.map +1 -1
  68. package/dist/{key-WKhXnXuU.cjs → key-E7mv0BYf.cjs} +23 -5
  69. package/dist/{key-D1Bh7MF0.js → key-XQkpw2xh.js} +17 -5
  70. package/dist/key-XQkpw2xh.js.map +1 -0
  71. package/dist/{payload-KC14SDlN.cjs → payload-Cvrir3Q-.cjs} +27 -2
  72. package/dist/{payload-CcUj85ys.d.ts → payload-D53ms-Mg.d.ts} +60 -1
  73. package/dist/payload-D53ms-Mg.d.ts.map +1 -0
  74. package/dist/{payload-Bz6651ax.js → payload-DaPzUvEh.js} +28 -3
  75. package/dist/payload-DaPzUvEh.js.map +1 -0
  76. package/dist/{payload-BNoud2KZ.d.cts → payload-hluX1rc0.d.cts} +60 -1
  77. package/dist/payload-hluX1rc0.d.cts.map +1 -0
  78. package/dist/query/index.cjs +4 -4
  79. package/dist/query/index.d.cts +3 -3
  80. package/dist/query/index.d.ts +4 -4
  81. package/dist/query/index.js +4 -4
  82. package/dist/{queryBuilder-DbUMEZln.cjs → queryBuilder-BXR-HxD9.cjs} +13 -10
  83. package/dist/{queryBuilder-DM6AWCBa.js → queryBuilder-BwauPaGO.js} +14 -11
  84. package/dist/queryBuilder-BwauPaGO.js.map +1 -0
  85. package/dist/{selection-DPg0uyJf.d.cts → selection-C6KeWJ7g.d.cts} +16 -8
  86. package/dist/selection-C6KeWJ7g.d.cts.map +1 -0
  87. package/dist/{selection-C4UhsMOO.d.ts → selection-mjiiAGDO.d.ts} +17 -9
  88. package/dist/selection-mjiiAGDO.d.ts.map +1 -0
  89. package/dist/types/index.d.cts +5 -5
  90. package/dist/types/index.d.ts +6 -6
  91. package/dist/utils/index.cjs +3 -3
  92. package/dist/utils/index.d.cts +1 -1
  93. package/dist/utils/index.d.ts +1 -1
  94. package/dist/utils/index.js +3 -3
  95. package/package.json +1 -5
  96. package/src/actions/advanced/index.ts +1 -1
  97. package/src/actions/advanced/sendMutation.ts +1 -1
  98. package/src/actions/public/getEntity.ts +1 -0
  99. package/src/actions/public/predictEntityKeys.test.ts +17 -1
  100. package/src/actions/public/predictEntityKeys.ts +28 -14
  101. package/src/actions/wallet/createEntity.ts +7 -6
  102. package/src/actions/wallet/{mutateEntities.test.ts → executeBatch.test.ts} +7 -7
  103. package/src/actions/wallet/{mutateEntities.ts → executeBatch.ts} +9 -9
  104. package/src/actions/wallet/extendEntity.ts +1 -0
  105. package/src/actions/wallet/patchEntity.ts +3 -3
  106. package/src/attr/attributes.ts +8 -2
  107. package/src/attr/errors.ts +2 -2
  108. package/src/attr/types.ts +3 -3
  109. package/src/attr/values.ts +5 -1
  110. package/src/chains/localhost.ts +3 -0
  111. package/src/clients/createPublicClient.test.ts +1 -1
  112. package/src/clients/createPublicClient.ts +5 -5
  113. package/src/clients/createWalletClient.test.ts +2 -2
  114. package/src/clients/createWalletClient.ts +3 -5
  115. package/src/clients/decorators/arkivAdvanced.ts +1 -1
  116. package/src/clients/decorators/arkivPublic.ts +13 -12
  117. package/src/clients/decorators/arkivWallet.ts +40 -32
  118. package/src/entity/create.test.ts +20 -1
  119. package/src/entity/errors.ts +4 -3
  120. package/src/entity/expiry.ts +1 -0
  121. package/src/entity/index.ts +2 -1
  122. package/src/entity/key.ts +23 -3
  123. package/src/entity/operations.ts +1 -0
  124. package/src/query/errors.ts +1 -1
  125. package/src/query/expression.ts +14 -7
  126. package/src/query/queryBuilder.ts +1 -1
  127. package/src/types/index.ts +4 -4
  128. package/src/types/rpcSchema.ts +1 -0
  129. package/src/types/txParams.ts +8 -0
  130. package/src/utils/arkivTransactions.test.ts +7 -1
  131. package/src/utils/arkivTransactions.ts +2 -2
  132. package/src/utils/expirationTime.ts +39 -0
  133. package/src/utils/payload.ts +25 -0
  134. package/dist/advanced-8ZPTmmaN.js.map +0 -1
  135. package/dist/arkivTransactions-D74gERHG.d.cts.map +0 -1
  136. package/dist/arkivTransactions-NtGD6uk5.d.ts.map +0 -1
  137. package/dist/attributes-BhY5DwJp.js.map +0 -1
  138. package/dist/chains-BJrZs6sG.js.map +0 -1
  139. package/dist/codec-Car3KkFF.d.ts.map +0 -1
  140. package/dist/errors-LTe7bOYS.js.map +0 -1
  141. package/dist/expiry-BjpxZZQU.js.map +0 -1
  142. package/dist/index-CA4V7Pdh.d.cts.map +0 -1
  143. package/dist/index-CV5zCdpa.d.cts.map +0 -1
  144. package/dist/index-DvYvrkdk.d.ts.map +0 -1
  145. package/dist/index-fX_XyqLp.d.ts.map +0 -1
  146. package/dist/key-D1Bh7MF0.js.map +0 -1
  147. package/dist/payload-BNoud2KZ.d.cts.map +0 -1
  148. package/dist/payload-Bz6651ax.js.map +0 -1
  149. package/dist/payload-CcUj85ys.d.ts.map +0 -1
  150. package/dist/queryBuilder-DM6AWCBa.js.map +0 -1
  151. package/dist/selection-C4UhsMOO.d.ts.map +0 -1
  152. package/dist/selection-DPg0uyJf.d.cts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-M74UR1_0.d.ts","names":[],"sources":["../src/attr/types.ts"],"sourcesContent":[],"mappings":";;;;;;AAwBA;AAcA;AASA;AAKC;AAgBD;;;;;;;AAOA;AAEA;AAIA;AAEA;AAKA;AAEA;AAEA;AAEA;AAEY,cAxEC,QAwEuB,EAAA;EAKxB,SAAA,IAAU,EAAA,CAAA;EAGV,SAAA,GAAA,EAAU,CAAA;EAClB,SAAA,GAAA,EAAA,CAAA;EACA,SAAA,IAAA,EAAA,CAAA;EACA,SAAA,GAAA,EAAA,CAAA;EACA,SAAA,OAAA,EAAA,CAAA;EACA,SAAA,KAAA,EAAA,CAAA;EACA,SAAA,GAAA,EAAA,CAAA;EACA,SAAA,IAAA,EAAA,CAAA;EACA,SAAA,GAAA,EAAA,EAAA;CACA;;AAGQ,KA9EA,OAAA,GA8Ea,MAAA,OA9EU,QA8EP;;;;;KArEhB,WAAA,GAAc,QAAQ;;;;;;cAYpB;;;;;;;;KASF,kBAAkB;iBACb;kBACC;YACN,SAAA,GAAY;;;KAIZ,SAAA,GAAY;;KAEZ,QAAA,GAAW;;;;KAIX,QAAA,GAAW;;KAEX,SAAA,GAAY;;;;;KAKZ,QAAA,GAAW;;KAEX,YAAA,GAAe,iBAAiB;;KAEhC,QAAA,GAAW;;KAEX,SAAA,GAAY,cAAc;;KAE1B,QAAA,GAAW,aAAa;;;;;KAKxB,UAAA,GAAa,eAAe;;KAG5B,UAAA,GACR,YACA,WACA,WACA,YACA,WACA,eACA,WACA,YACA;;KAGQ,aAAA,GAAgB,aAAa;;;;iBAsBzB,YAAA,2BAAuC"}
@@ -1,7 +1,7 @@
1
- const require_expiry = require('../expiry-BELY2Kpw.cjs');
2
- const require_key = require('../key-WKhXnXuU.cjs');
3
- const require_errors = require('../errors-BVbjKVMN.cjs');
4
- const require_flags = require('../flags-kr276q6i.cjs');
1
+ const require_expiry = require('../expiry-xr6mx4f7.cjs');
2
+ const require_key = require('../key-E7mv0BYf.cjs');
3
+ const require_errors = require('../errors-51znTSB1.cjs');
4
+ const require_flags = require('../flags-Bh0HJldY.cjs');
5
5
  require('../entity-B7G8q_Eo.cjs');
6
6
 
7
7
  exports.ENTITY_EVENTS_ABI = require_key.ENTITY_EVENTS_ABI;
@@ -10,6 +10,7 @@ exports.InvalidExpiryError = require_errors.InvalidExpiryError;
10
10
  exports.InvalidSaltError = require_errors.InvalidSaltError;
11
11
  exports.MAX_EXPIRES_AT = require_expiry.MAX_EXPIRES_AT;
12
12
  exports.MAX_SALT = require_key.MAX_SALT;
13
+ exports.NO_SALT = require_key.NO_SALT;
13
14
  exports.NoRandomSourceError = require_errors.NoRandomSourceError;
14
15
  exports.OperationType = require_expiry.OperationType;
15
16
  exports.decodeCreationFlags = require_flags.decodeCreationFlags;
@@ -1,4 +1,4 @@
1
1
  import { a as ResolvedExpiry, i as Lifetime, n as Expiry, o as resolveExpiry, r as ExpiryContext, s as toBlocks, t as EncodedExpiry } from "../expiry-DRV29F1r.cjs";
2
- import { a as randomSalt, c as InvalidCreationFlagsError, d as NoRandomSourceError, f as Operation, i as predictEntityKey, l as InvalidExpiryError, n as OperationType, o as ENTITY_EVENTS_ABI, r as MAX_SALT, s as EntityEventName, t as MAX_EXPIRES_AT, u as InvalidSaltError } from "../index-CA4V7Pdh.cjs";
2
+ import { a as InvalidCreationFlagsError, c as NoRandomSourceError, d as SaltInput, f as predictEntityKey, i as EntityEventName, l as MAX_SALT, m as Operation, n as OperationType, o as InvalidExpiryError, p as randomSalt, r as ENTITY_EVENTS_ABI, s as InvalidSaltError, t as MAX_EXPIRES_AT, u as NO_SALT } from "../index-DZxwz2Ky.cjs";
3
3
  import { i as encodeCreationFlags, n as ResolvedCreationFlags, r as decodeCreationFlags, t as CreationFlags } from "../flags-CRjPpoh3.cjs";
4
- export { CreationFlags, ENTITY_EVENTS_ABI, EncodedExpiry, EntityEventName, Expiry, ExpiryContext, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, Lifetime, MAX_EXPIRES_AT, MAX_SALT, NoRandomSourceError, Operation, OperationType, ResolvedCreationFlags, ResolvedExpiry, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
4
+ export { CreationFlags, ENTITY_EVENTS_ABI, EncodedExpiry, EntityEventName, Expiry, ExpiryContext, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, Lifetime, MAX_EXPIRES_AT, MAX_SALT, NO_SALT, NoRandomSourceError, Operation, OperationType, ResolvedCreationFlags, ResolvedExpiry, SaltInput, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
@@ -1,5 +1,5 @@
1
- import "../codec-Car3KkFF.js";
1
+ import "../codec-M74UR1_0.js";
2
2
  import { a as ResolvedExpiry, i as Lifetime, n as Expiry, o as resolveExpiry, r as ExpiryContext, s as toBlocks, t as EncodedExpiry } from "../expiry-nDbCgZX4.js";
3
- import { a as randomSalt, c as InvalidCreationFlagsError, d as NoRandomSourceError, f as Operation, i as predictEntityKey, l as InvalidExpiryError, n as OperationType, o as ENTITY_EVENTS_ABI, r as MAX_SALT, s as EntityEventName, t as MAX_EXPIRES_AT, u as InvalidSaltError } from "../index-fX_XyqLp.js";
3
+ import { a as InvalidCreationFlagsError, c as NoRandomSourceError, d as SaltInput, f as predictEntityKey, i as EntityEventName, l as MAX_SALT, m as Operation, n as OperationType, o as InvalidExpiryError, p as randomSalt, r as ENTITY_EVENTS_ABI, s as InvalidSaltError, t as MAX_EXPIRES_AT, u as NO_SALT } from "../index-JP31fjyM.js";
4
4
  import { i as encodeCreationFlags, n as ResolvedCreationFlags, r as decodeCreationFlags, t as CreationFlags } from "../flags-5dTNRnow.js";
5
- export { CreationFlags, ENTITY_EVENTS_ABI, EncodedExpiry, EntityEventName, Expiry, ExpiryContext, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, Lifetime, MAX_EXPIRES_AT, MAX_SALT, NoRandomSourceError, Operation, OperationType, ResolvedCreationFlags, ResolvedExpiry, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
5
+ export { CreationFlags, ENTITY_EVENTS_ABI, EncodedExpiry, EntityEventName, Expiry, ExpiryContext, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, Lifetime, MAX_EXPIRES_AT, MAX_SALT, NO_SALT, NoRandomSourceError, Operation, OperationType, ResolvedCreationFlags, ResolvedExpiry, SaltInput, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
@@ -1,7 +1,7 @@
1
- import { a as OperationType, i as MAX_EXPIRES_AT, n as resolveExpiry, r as toBlocks } from "../expiry-BjpxZZQU.js";
2
- import { a as ENTITY_EVENTS_ABI, n as predictEntityKey, r as randomSalt, t as MAX_SALT } from "../key-D1Bh7MF0.js";
3
- import { i as NoRandomSourceError, n as InvalidExpiryError, r as InvalidSaltError, t as InvalidCreationFlagsError } from "../errors-LTe7bOYS.js";
4
- import { n as encodeCreationFlags, t as decodeCreationFlags } from "../flags-DFBs2J94.js";
1
+ import { a as OperationType, i as MAX_EXPIRES_AT, n as resolveExpiry, r as toBlocks } from "../expiry-CZErShX6.js";
2
+ import { i as randomSalt, n as NO_SALT, o as ENTITY_EVENTS_ABI, r as predictEntityKey, t as MAX_SALT } from "../key-XQkpw2xh.js";
3
+ import { i as NoRandomSourceError, n as InvalidExpiryError, r as InvalidSaltError, t as InvalidCreationFlagsError } from "../errors-CwPJ16bn.js";
4
+ import { n as encodeCreationFlags, t as decodeCreationFlags } from "../flags-Cr76ldwF.js";
5
5
  import "../entity-CD_qFF2M.js";
6
6
 
7
- export { ENTITY_EVENTS_ABI, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, MAX_EXPIRES_AT, MAX_SALT, NoRandomSourceError, OperationType, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
7
+ export { ENTITY_EVENTS_ABI, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, MAX_EXPIRES_AT, MAX_SALT, NO_SALT, NoRandomSourceError, OperationType, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
@@ -17,7 +17,7 @@ var InvalidCreationFlagsError = class extends Error {
17
17
  /** A key salt was outside the `uint128` the wire carries. */
18
18
  var InvalidSaltError = class extends Error {
19
19
  constructor(salt) {
20
- super(`Invalid salt ${salt}. A salt is a uint128, so it must be between 0 and ${2n ** 128n - 1n}. Omit it to get 128 random bits, or pass 0 for a predictable key.`);
20
+ super(`Invalid salt ${String(salt)}. A salt is a uint128, so it must be between 0 and ${2n ** 128n - 1n}. Omit it to get 128 random bits, or pass NO_SALT for a key derived from the owner and nonce alone.`);
21
21
  this.name = "InvalidSaltError";
22
22
  }
23
23
  };
@@ -16,7 +16,7 @@ var InvalidCreationFlagsError = class extends Error {
16
16
  /** A key salt was outside the `uint128` the wire carries. */
17
17
  var InvalidSaltError = class extends Error {
18
18
  constructor(salt) {
19
- super(`Invalid salt ${salt}. A salt is a uint128, so it must be between 0 and ${2n ** 128n - 1n}. Omit it to get 128 random bits, or pass 0 for a predictable key.`);
19
+ super(`Invalid salt ${String(salt)}. A salt is a uint128, so it must be between 0 and ${2n ** 128n - 1n}. Omit it to get 128 random bits, or pass NO_SALT for a key derived from the owner and nonce alone.`);
20
20
  this.name = "InvalidSaltError";
21
21
  }
22
22
  };
@@ -30,4 +30,4 @@ var NoRandomSourceError = class extends Error {
30
30
 
31
31
  //#endregion
32
32
  export { NoRandomSourceError as i, InvalidExpiryError as n, InvalidSaltError as r, InvalidCreationFlagsError as t };
33
- //# sourceMappingURL=errors-LTe7bOYS.js.map
33
+ //# sourceMappingURL=errors-CwPJ16bn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-CwPJ16bn.js","names":[],"sources":["../src/entity/errors.ts"],"sourcesContent":["/** An expiry could not be expressed, or would be rejected by the engine. */\nexport class InvalidExpiryError extends Error {\n constructor(reason: string) {\n super(`Invalid expiry: ${reason}`)\n this.name = \"InvalidExpiryError\"\n }\n}\n\n/** A `creationFlags` byte could not be built or read. */\nexport class InvalidCreationFlagsError extends Error {\n constructor(reason: string) {\n super(`Invalid creation flags: ${reason}`)\n this.name = \"InvalidCreationFlagsError\"\n }\n}\n\n/** A key salt was outside the `uint128` the wire carries. */\nexport class InvalidSaltError extends Error {\n constructor(salt: unknown) {\n super(\n `Invalid salt ${String(salt)}. A salt is a uint128, so it must be between 0 and ` +\n `${2n ** 128n - 1n}. Omit it to get 128 random bits, or pass NO_SALT for a key derived ` +\n `from the owner and nonce alone.`,\n )\n this.name = \"InvalidSaltError\"\n }\n}\n\n/** No cryptographic randomness was available to generate a salt. */\nexport class NoRandomSourceError extends Error {\n constructor() {\n super(\n \"No cryptographic random source is available (globalThis.crypto.getRandomValues is \" +\n \"missing), so a key salt cannot be generated. Upgrade to Node 18+ or a modern browser, \" +\n \"or pass an explicit salt.\",\n )\n this.name = \"NoRandomSourceError\"\n }\n}\n"],"mappings":";;AACA,IAAa,qBAAb,cAAwC,MAAM;CAC5C,YAAY,QAAgB;AAC1B,QAAM,mBAAmB,SAAS;AAClC,OAAK,OAAO;;;;AAKhB,IAAa,4BAAb,cAA+C,MAAM;CACnD,YAAY,QAAgB;AAC1B,QAAM,2BAA2B,SAAS;AAC1C,OAAK,OAAO;;;;AAKhB,IAAa,mBAAb,cAAsC,MAAM;CAC1C,YAAY,MAAe;AACzB,QACE,gBAAgB,OAAO,KAAK,CAAC,qDACxB,MAAM,OAAO,GAAG,qGAEtB;AACD,OAAK,OAAO;;;;AAKhB,IAAa,sBAAb,cAAyC,MAAM;CAC7C,cAAc;AACZ,QACE,oMAGD;AACD,OAAK,OAAO"}
@@ -1,4 +1,4 @@
1
- import { n as InvalidExpiryError } from "./errors-LTe7bOYS.js";
1
+ import { n as InvalidExpiryError } from "./errors-CwPJ16bn.js";
2
2
 
3
3
  //#region src/consts.ts
4
4
  const ARKIV_ADDRESS = "0x4400000000000000000000000000000000000044";
@@ -92,4 +92,4 @@ function blockAtDate(date, currentBlock) {
92
92
 
93
93
  //#endregion
94
94
  export { OperationType as a, MAX_EXPIRES_AT as i, resolveExpiry as n, ARKIV_ADDRESS as o, toBlocks as r, BLOCK_TIME as s, makeExpiry as t };
95
- //# sourceMappingURL=expiry-BjpxZZQU.js.map
95
+ //# sourceMappingURL=expiry-CZErShX6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expiry-CZErShX6.js","names":[],"sources":["../src/consts.ts","../src/entity/params.ts","../src/entity/expiry.ts"],"sourcesContent":["//export const ARKIV_ADDRESS = \"0x00000000000000000000000000000061726b6976\" as `0x${string}`\nexport const ARKIV_ADDRESS = \"0x4400000000000000000000000000000000000044\" as `0x${string}`\nexport const BLOCK_TIME = 2 // 2 seconds\n","/**\n * Max uint64 value\n */\nexport const MAX_EXPIRES_AT = 2n ** 64n - 1n\n\n/** The operation tags of the `execute` ABI's tagged union. */\nexport const OperationType = {\n Create: 1,\n Patch: 2,\n ExtendExpiry: 3,\n TransferOwnership: 4,\n Delete: 5,\n} as const\n\nexport type OperationType = (typeof OperationType)[keyof typeof OperationType]\n","import { BLOCK_TIME } from \"../consts\"\nimport type { ExpirationTime } from \"../utils/expirationTime\"\nimport { InvalidExpiryError } from \"./errors\"\nimport { MAX_EXPIRES_AT } from \"./params\"\n\n/**\n * The brand. Module-private and never exported, so the only way to obtain an {@link Expiry} is to\n * build one with {@link ExpirationTime} — a hand-written `{ minLifetime, expiresAt }` literal will\n * not typecheck, and neither will a bare number of seconds.\n */\ndeclare const validated: unique symbol\n\n/**\n * How long an entity should live.\n *\n * This is the pair the ABI carries, and the engine resolves it as\n * `max(expiresAt, currentBlock + minLifetime)` — whichever is later. Build one with\n * {@link ExpirationTime}; there is no other way to make one.\n *\n * Which slot a value lands in also decides which rules govern it. `minLifetime` is a duration, so\n * it must come to a whole number of blocks. `expiresAt` is a block height, which is a whole number\n * by construction, so a wall-clock date rounds into it rather than being rejected.\n */\nexport type Expiry = {\n /** Lifetime floor in blocks, counted from the block the transaction lands in. `0n` if unset. */\n readonly minLifetime: bigint\n /**\n * Absolute deadline: a block height, or a `Date` still to be placed against the current block.\n * `0n` if unset.\n */\n readonly expiresAt: bigint | Date\n readonly [validated]: true\n}\n\n/**\n * An expiry that is nothing but a duration — what the `ExpirationTime.from*` helpers return.\n *\n * Distinguished from a full {@link Expiry} by its `expiresAt` being the literal `0n`, which is what\n * keeps `atBlock(x, { atLeast: atBlock(y) })` from compiling: a deadline is not a floor.\n */\nexport type Lifetime = Expiry & { readonly expiresAt: 0n }\n\n/**\n * Builds a branded {@link Expiry}.\n *\n * Internal seam for {@link ExpirationTime}, which is the only thing that should call it — it is not\n * part of the package's public surface.\n */\nexport function makeExpiry(minLifetime: bigint, expiresAt: bigint | Date): Expiry {\n return { minLifetime, expiresAt } as Expiry\n}\n\n/** The two `uint256` values the ABI carries, with every `Date` already placed. */\nexport type EncodedExpiry = {\n /** Absolute target block height, or `0n` for a purely relative lifetime. */\n expiresAt: bigint\n /** Relative floor in blocks, or `0n` for a purely absolute expiry. */\n minLifetime: bigint\n}\n\n/** What an expiry resolves to, given the chain's current block. */\nexport type ResolvedExpiry = EncodedExpiry & {\n /** The block the entity will expire at — `max(expiresAt, currentBlock + minLifetime)`. */\n target: bigint\n}\n\n/** What the SDK needs to know about the chain to resolve an expiry. */\nexport type ExpiryContext = {\n currentBlock: bigint\n}\n\n/**\n * Resolves an expiry into the wire pair and the block the entity will expire at.\n *\n * Durations are converted to blocks at the nominal `BLOCK_TIME` (2 seconds), which makes them\n * **approximate**: block production is not a clock, so a lifetime asked for in days drifts if the\n * chain runs fast or slow. The block it was converted to comes back as\n * {@link ResolvedExpiry.target}, so the approximation is always observable rather than assumed.\n *\n * @throws {InvalidExpiryError} If the expiry is malformed, does not fit the `uint64` the wire\n * carries, or would leave the entity dead on arrival.\n */\nexport function resolveExpiry(expiry: Expiry, context: ExpiryContext): ResolvedExpiry {\n const { currentBlock } = context\n\n if (typeof expiry?.minLifetime !== \"bigint\" || expiry.expiresAt === undefined) {\n throw new InvalidExpiryError(\n \"expires must be built with ExpirationTime, e.g. ExpirationTime.fromDays(30) or \" +\n \"ExpirationTime.atBlock(1_200_000n)\",\n )\n }\n\n const { minLifetime } = expiry\n const absolute =\n typeof expiry.expiresAt === \"bigint\"\n ? expiry.expiresAt\n : blockAtDate(expiry.expiresAt, currentBlock)\n\n if (minLifetime === 0n && absolute === 0n) {\n throw new InvalidExpiryError(\n \"no expiry given. Pass ExpirationTime.fromDays(30) for a lifetime, \" +\n \"ExpirationTime.atBlock(n) for an absolute deadline, or a deadline with \" +\n \"{ atLeast } to take whichever is later.\",\n )\n }\n\n if (absolute > MAX_EXPIRES_AT) {\n throw new InvalidExpiryError(\n `expiresAt resolves to block ${absolute}, which does not fit the uint64 the wire carries ` +\n `(max ${MAX_EXPIRES_AT}). Use ExpirationTime.permanent() for an entity that should not ` +\n \"expire.\",\n )\n }\n if (minLifetime > MAX_EXPIRES_AT) {\n throw new InvalidExpiryError(\n `the lifetime is ${minLifetime} blocks, which does not fit the uint64 the wire carries ` +\n `(max ${MAX_EXPIRES_AT})`,\n )\n }\n\n const relative = minLifetime === 0n ? 0n : currentBlock + minLifetime\n const target = absolute > relative ? absolute : relative\n\n if (target <= currentBlock) {\n throw new InvalidExpiryError(\n `the entity would expire at block ${target}, which is not after the current block ` +\n `${currentBlock}, so it would be dead on arrival`,\n )\n }\n if (target > MAX_EXPIRES_AT) {\n throw new InvalidExpiryError(\n `a lifetime of ${minLifetime} blocks from block ${currentBlock} lands at ${target}, past ` +\n `the largest expiry the wire carries (${MAX_EXPIRES_AT})`,\n )\n }\n\n return { expiresAt: absolute, minLifetime, target }\n}\n\n/**\n * A duration in seconds as a whole number of blocks.\n *\n * Arkiv counts lifetimes in blocks, so a duration that is not a whole number of them does not\n * describe anything the chain can store. Rather than silently round a caller's `3` up to two blocks\n * — four seconds, not what they asked for — this rejects it: a duration must be a positive multiple\n * of `BLOCK_TIME` (2 seconds). The {@link ExpirationTime} helpers all produce such multiples.\n *\n * @throws {InvalidExpiryError} If the duration is not a positive whole number of blocks' seconds.\n */\nexport function toBlocks(seconds: number): bigint {\n if (!Number.isInteger(seconds) || seconds <= 0) {\n throw new InvalidExpiryError(\n `a lifetime must be a positive whole number of seconds, got ${seconds}. Use the ` +\n \"ExpirationTime helpers, e.g. ExpirationTime.fromDays(30).\",\n )\n }\n if (seconds % BLOCK_TIME !== 0) {\n throw new InvalidExpiryError(\n `a lifetime must be a multiple of the ${BLOCK_TIME}s block time, got ${seconds}, which is ` +\n `${seconds / BLOCK_TIME} blocks. Try ${seconds - (seconds % BLOCK_TIME)} or ` +\n `${seconds + BLOCK_TIME - (seconds % BLOCK_TIME)}, or ExpirationTime.fromBlocks(n).`,\n )\n }\n return BigInt(seconds / BLOCK_TIME)\n}\n\n/**\n * The block a wall-clock instant lands on.\n *\n * Rounds **up**: a date almost never falls on a block boundary, and unlike a duration — which the\n * caller states and can state exactly — there is nothing here to reject, so the entity lives until\n * at least the instant asked for.\n */\nfunction blockAtDate(date: Date, currentBlock: bigint): bigint {\n const secondsAway = (date.getTime() - Date.now()) / 1000\n if (secondsAway <= 0) {\n throw new InvalidExpiryError(\n `the deadline ${date.toISOString()} is in the past, so the entity would be dead on arrival`,\n )\n }\n return currentBlock + BigInt(Math.ceil(secondsAway / BLOCK_TIME))\n}\n"],"mappings":";;;AACA,MAAa,gBAAgB;AAC7B,MAAa,aAAa;;;;;;;ACC1B,MAAa,iBAAiB,MAAM,MAAM;;AAG1C,MAAa,gBAAgB;CAC3B,QAAQ;CACR,OAAO;CACP,cAAc;CACd,mBAAmB;CACnB,QAAQ;CACT;;;;;;;;;;ACoCD,SAAgB,WAAW,aAAqB,WAAkC;AAChF,QAAO;EAAE;EAAa;EAAW;;;;;;;;;;;;;AAiCnC,SAAgB,cAAc,QAAgB,SAAwC;CACpF,MAAM,EAAE,iBAAiB;AAEzB,KAAI,OAAO,QAAQ,gBAAgB,YAAY,OAAO,cAAc,OAClE,OAAM,IAAI,mBACR,oHAED;CAGH,MAAM,EAAE,gBAAgB;CACxB,MAAM,WACJ,OAAO,OAAO,cAAc,WACxB,OAAO,YACP,YAAY,OAAO,WAAW,aAAa;AAEjD,KAAI,gBAAgB,MAAM,aAAa,GACrC,OAAM,IAAI,mBACR,mLAGD;AAGH,KAAI,WAAW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;;;;;;;KASA,QAAA,GAAW;;;;KAaX,aAAA;;;;;;;KAQA,cAAA,GAAiB;;;;;KAMjB,aAAA;;;;;;;;;;;;;;iBAeI,aAAA,SAAsB,iBAAiB,gBAAgB;;;;;;;;;;;iBAmEvD,QAAA"}
1
+ {"version":3,"file":"expiry-DRV29F1r.d.cts","names":[],"sources":["../src/entity/expiry.ts"],"sourcesContent":[],"mappings":";;;AAuBA;AAiBA;AAaA;AAQA,cAnDc,SAmDY,EAAA,OAAA,MAAG;AAM7B;AAeA;;;;;AAmEA;;;;;KA9HY,MAAA;;;;;;;+BAOmB;YACnB,SAAA;;;;;;;;KASA,QAAA,GAAW;;;;KAaX,aAAA;;;;;;;KAQA,cAAA,GAAiB;;;;;KAMjB,aAAA;;;;;;;;;;;;;;iBAeI,aAAA,SAAsB,iBAAiB,gBAAgB;;;;;;;;;;;iBAmEvD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"expiry-nDbCgZX4.d.ts","names":[],"sources":["../src/entity/expiry.ts"],"sourcesContent":[],"mappings":";;;AAsBA;AAiBA;AAaA;AAQA,cAnDc,SAmDY,EAAA,OAAA,MAAG;AAM7B;AAeA;;;;;AAmEA;;;;;KA9HY,MAAA;;;;;;;+BAOmB;YACnB,SAAA;;;;;;;;KASA,QAAA,GAAW;;;;KAaX,aAAA;;;;;;;KAQA,cAAA,GAAiB;;;;;KAMjB,aAAA;;;;;;;;;;;;;;iBAeI,aAAA,SAAsB,iBAAiB,gBAAgB;;;;;;;;;;;iBAmEvD,QAAA"}
1
+ {"version":3,"file":"expiry-nDbCgZX4.d.ts","names":[],"sources":["../src/entity/expiry.ts"],"sourcesContent":[],"mappings":";;;AAuBA;AAiBA;AAaA;AAQA,cAnDc,SAmDY,EAAA,OAAA,MAAG;AAM7B;AAeA;;;;;AAmEA;;;;;KA9HY,MAAA;;;;;;;+BAOmB;YACnB,SAAA;;;;;;;;KASA,QAAA,GAAW;;;;KAaX,aAAA;;;;;;;KAQA,cAAA,GAAiB;;;;;KAMjB,aAAA;;;;;;;;;;;;;;iBAeI,aAAA,SAAsB,iBAAiB,gBAAgB;;;;;;;;;;;iBAmEvD,QAAA"}
@@ -1,4 +1,4 @@
1
- const require_errors = require('./errors-BVbjKVMN.cjs');
1
+ const require_errors = require('./errors-51znTSB1.cjs');
2
2
 
3
3
  //#region src/consts.ts
4
4
  const ARKIV_ADDRESS = "0x4400000000000000000000000000000000000044";
@@ -1,4 +1,4 @@
1
- const require_errors = require('./errors-BVbjKVMN.cjs');
1
+ const require_errors = require('./errors-51znTSB1.cjs');
2
2
 
3
3
  //#region src/entity/flags.ts
4
4
  /** Bit positions in the `creationFlags` byte. Bits 2-7 are reserved and must be zero. */
@@ -1,4 +1,4 @@
1
- import { t as InvalidCreationFlagsError } from "./errors-LTe7bOYS.js";
1
+ import { t as InvalidCreationFlagsError } from "./errors-CwPJ16bn.js";
2
2
 
3
3
  //#region src/entity/flags.ts
4
4
  /** Bit positions in the `creationFlags` byte. Bits 2-7 are reserved and must be zero. */
@@ -30,4 +30,4 @@ function decodeCreationFlags(raw) {
30
30
 
31
31
  //#endregion
32
32
  export { encodeCreationFlags as n, decodeCreationFlags as t };
33
- //# sourceMappingURL=flags-DFBs2J94.js.map
33
+ //# sourceMappingURL=flags-Cr76ldwF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"flags-DFBs2J94.js","names":[],"sources":["../src/entity/flags.ts"],"sourcesContent":["import { InvalidCreationFlagsError } from \"./errors\"\n\n/** Bit positions in the `creationFlags` byte. Bits 2-7 are reserved and must be zero. */\nconst READONLY_BIT = 0b0000_0001\nconst PERMISSIONLESS_EXTENSION_BIT = 0b0000_0010\n\n/**\n * The immutable properties an entity is created with. Both default to `false`.\n *\n * Creation flags are fixed at creation: there is no operation that changes them, so an entity is\n * whatever it was created as for its whole life.\n */\nexport type CreationFlags = {\n /**\n * The entity's attributes and payload can never be changed — only its expiry extended, its\n * ownership transferred, and the entity deleted.\n */\n readonly?: boolean\n /**\n * Anyone, not just the owner, may extend the entity's expiry. Lets a third party keep something\n * alive without being able to change it.\n */\n permissionlessExtension?: boolean\n}\n\n/** {@link CreationFlags} as read back, with every flag resolved and the raw byte alongside. */\nexport type ResolvedCreationFlags = {\n readonly: boolean\n permissionlessExtension: boolean\n raw: number\n}\n\n/**\n * Packs creation flags into the `creationFlags` byte.\n *\n * @throws {InvalidCreationFlagsError} If a value is not a boolean.\n */\nexport function encodeCreationFlags(flags: CreationFlags = {}): number {\n for (const [name, value] of Object.entries(flags)) {\n if (value !== undefined && typeof value !== \"boolean\") {\n throw new InvalidCreationFlagsError(`\"${name}\" must be a boolean, got ${typeof value}`)\n }\n }\n return (\n (flags.readonly ? READONLY_BIT : 0) |\n (flags.permissionlessExtension ? PERMISSIONLESS_EXTENSION_BIT : 0)\n )\n}\n\n/**\n * Reads the `creationFlags` byte back.\n *\n * @param raw - The `creationFlags` byte.\n * @throws {InvalidCreationFlagsError} Malformed input\n */\nexport function decodeCreationFlags(raw: number): ResolvedCreationFlags {\n if (!Number.isInteger(raw) || raw < 0 || raw > 0xff) {\n throw new InvalidCreationFlagsError(`${raw} is not a byte`)\n }\n return {\n readonly: (raw & READONLY_BIT) !== 0,\n permissionlessExtension: (raw & PERMISSIONLESS_EXTENSION_BIT) !== 0,\n raw,\n }\n}\n"],"mappings":";;;;AAGA,MAAM,eAAe;AACrB,MAAM,+BAA+B;;;;;;AAiCrC,SAAgB,oBAAoB,QAAuB,EAAE,EAAU;AACrE,MAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,MAAM,CAC/C,KAAI,UAAU,UAAa,OAAO,UAAU,UAC1C,OAAM,IAAI,0BAA0B,IAAI,KAAK,2BAA2B,OAAO,QAAQ;AAG3F,SACG,MAAM,WAAW,eAAe,MAChC,MAAM,0BAA0B,+BAA+B;;;;;;;;AAUpE,SAAgB,oBAAoB,KAAoC;AACtE,KAAI,CAAC,OAAO,UAAU,IAAI,IAAI,MAAM,KAAK,MAAM,IAC7C,OAAM,IAAI,0BAA0B,GAAG,IAAI,gBAAgB;AAE7D,QAAO;EACL,WAAW,MAAM,kBAAkB;EACnC,0BAA0B,MAAM,kCAAkC;EAClE;EACD"}
1
+ {"version":3,"file":"flags-Cr76ldwF.js","names":[],"sources":["../src/entity/flags.ts"],"sourcesContent":["import { InvalidCreationFlagsError } from \"./errors\"\n\n/** Bit positions in the `creationFlags` byte. Bits 2-7 are reserved and must be zero. */\nconst READONLY_BIT = 0b0000_0001\nconst PERMISSIONLESS_EXTENSION_BIT = 0b0000_0010\n\n/**\n * The immutable properties an entity is created with. Both default to `false`.\n *\n * Creation flags are fixed at creation: there is no operation that changes them, so an entity is\n * whatever it was created as for its whole life.\n */\nexport type CreationFlags = {\n /**\n * The entity's attributes and payload can never be changed — only its expiry extended, its\n * ownership transferred, and the entity deleted.\n */\n readonly?: boolean\n /**\n * Anyone, not just the owner, may extend the entity's expiry. Lets a third party keep something\n * alive without being able to change it.\n */\n permissionlessExtension?: boolean\n}\n\n/** {@link CreationFlags} as read back, with every flag resolved and the raw byte alongside. */\nexport type ResolvedCreationFlags = {\n readonly: boolean\n permissionlessExtension: boolean\n raw: number\n}\n\n/**\n * Packs creation flags into the `creationFlags` byte.\n *\n * @throws {InvalidCreationFlagsError} If a value is not a boolean.\n */\nexport function encodeCreationFlags(flags: CreationFlags = {}): number {\n for (const [name, value] of Object.entries(flags)) {\n if (value !== undefined && typeof value !== \"boolean\") {\n throw new InvalidCreationFlagsError(`\"${name}\" must be a boolean, got ${typeof value}`)\n }\n }\n return (\n (flags.readonly ? READONLY_BIT : 0) |\n (flags.permissionlessExtension ? PERMISSIONLESS_EXTENSION_BIT : 0)\n )\n}\n\n/**\n * Reads the `creationFlags` byte back.\n *\n * @param raw - The `creationFlags` byte.\n * @throws {InvalidCreationFlagsError} Malformed input\n */\nexport function decodeCreationFlags(raw: number): ResolvedCreationFlags {\n if (!Number.isInteger(raw) || raw < 0 || raw > 0xff) {\n throw new InvalidCreationFlagsError(`${raw} is not a byte`)\n }\n return {\n readonly: (raw & READONLY_BIT) !== 0,\n permissionlessExtension: (raw & PERMISSIONLESS_EXTENSION_BIT) !== 0,\n raw,\n }\n}\n"],"mappings":";;;;AAGA,MAAM,eAAe;AACrB,MAAM,+BAA+B;;;;;;AAiCrC,SAAgB,oBAAoB,QAAuB,EAAE,EAAU;AACrE,MAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,MAAM,CAC/C,KAAI,UAAU,UAAa,OAAO,UAAU,UAC1C,OAAM,IAAI,0BAA0B,IAAI,KAAK,2BAA2B,OAAO,QAAQ;AAG3F,SACG,MAAM,WAAW,eAAe,MAChC,MAAM,0BAA0B,+BAA+B;;;;;;;;AAUpE,SAAgB,oBAAoB,KAAoC;AACtE,KAAI,CAAC,OAAO,UAAU,IAAI,IAAI,MAAM,KAAK,MAAM,IAC7C,OAAM,IAAI,0BAA0B,GAAG,IAAI,gBAAgB;AAE7D,QAAO;EACL,WAAW,MAAM,kBAAkB;EACnC,0BAA0B,MAAM,kCAAkC;EAClE;EACD"}
@@ -1,5 +1,5 @@
1
- import { R as RpcSelect, i as SelectArg, j as ArkivClient, p as Expression, s as Entity } from "./selection-DPg0uyJf.cjs";
2
- import { K as TypeTag } from "./index-CV5zCdpa.cjs";
1
+ import { R as RpcSelect, i as SelectArg, j as ArkivClient, p as Expression, s as Entity } from "./selection-C6KeWJ7g.cjs";
2
+ import { K as TypeTag } from "./index-NbfnXxgr.cjs";
3
3
  import { Hex } from "viem";
4
4
 
5
5
  //#region src/query/engine.d.ts
@@ -43,7 +43,7 @@ declare function runQuery(client: ArkivClient, request: QueryRequest): Promise<Q
43
43
  * | | `=` `!=` | `<` `<=` `>` `>=` | `STARTSWITH` |
44
44
  * | --- | --- | --- | --- |
45
45
  * | `bool` | yes | no | no |
46
- * | `i32` `u256` `dec` | yes | yes | no |
46
+ * | `i32` `u64` `u256` `dec` | yes | yes | no |
47
47
  * | `str` | yes | no | yes |
48
48
  * | `addr` `key` `bytes32` | yes | no | no |
49
49
  */
@@ -277,4 +277,4 @@ declare class SelectQueryBuilder<TEntity = Entity> {
277
277
  }
278
278
  //#endregion
279
279
  export { QueryErrorKind as a, QueryRequest as c, QueryError as i, QueryResponse as l, QueryResult as n, UnsupportedOperatorError as o, InvalidPredicateError as r, MAX_LIMIT as s, SelectQueryBuilder as t, runQuery as u };
280
- //# sourceMappingURL=index-BF7Mq9Is.d.cts.map
280
+ //# sourceMappingURL=index-CMeD8uEq.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-BF7Mq9Is.d.cts","names":[],"sources":["../src/query/engine.ts","../src/query/errors.ts","../src/query/queryResult.ts","../src/query/queryBuilder.ts"],"sourcesContent":[],"mappings":";;;;;cAUa,SAAA;;AAAA,KAGD,YAAA,GAHU;EAGV;EAcA,KAAA,EAAA,MAAA;EAaU;EAAiB,MAAA,EAvB7B,SAuB6B;EAAsB;EAAuB,KAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAAR;EAAO,MAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;ACxBnF;AAMgB,KDKJ,aAAA,GCLI;EAE4C,QAAA,EDIhD,MCJgD,EAAA;EARd;EAAK,WAAA,EAAA,MAAA;EAyBtC;EAgBD,MAAA,EAAA,MAAA,GAAc,SAAA;AAwC1B,CAAA;;;;;;iBDzDsB,QAAA,SAAiB,sBAAsB,eAAe,QAAQ;;;;;;;AA9BpF;AAGA;AAcA;AAaA;;;;;;;cCxBa,wBAAA,SAAiC,KAAA;;EAAjC,SAAA,aAAA,EAAA,MAAyB;EAMtB;EAE4C,SAAA,QAAA,EAAA,MAAA;EARd;EAAK,SAAA,GAAA,EAMnC,OANmC;EAyBtC,WAAA,CAAA,aAAsB,EAAA,MAAA,EAAA,QAAa,EAAA,MAAA,EAAA,GAAA,EAjBY,OAiBZ,EAAA,IAAA,CAAA,EAAA,MAAA;AAgBhD;AAwCA;;;;;cAxDa,qBAAA,SAA8B,KAAA;;;ECrCtC,WAAA,CAAS,OAA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;;;;;;;;;;;;;;;;;;;;;WAyEJ,QAAQ,YAAY;;;;;;;;;GAqB3B,MAAA,CAAO,aAAA,KAAkB,eAAe"}
1
+ {"version":3,"file":"index-CMeD8uEq.d.cts","names":[],"sources":["../src/query/engine.ts","../src/query/errors.ts","../src/query/queryResult.ts","../src/query/queryBuilder.ts"],"sourcesContent":[],"mappings":";;;;;cAUa,SAAA;;AAAA,KAGD,YAAA,GAHU;EAGV;EAcA,KAAA,EAAA,MAAA;EAaU;EAAiB,MAAA,EAvB7B,SAuB6B;EAAsB;EAAuB,KAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAAR;EAAO,MAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;ACxBnF;AAMgB,KDKJ,aAAA,GCLI;EAE4C,QAAA,EDIhD,MCJgD,EAAA;EARd;EAAK,WAAA,EAAA,MAAA;EAyBtC;EAgBD,MAAA,EAAA,MAAA,GAAc,SAAA;AAwC1B,CAAA;;;;;;iBDzDsB,QAAA,SAAiB,sBAAsB,eAAe,QAAQ;;;;;;;AA9BpF;AAGA;AAcA;AAaA;;;;;;;cCxBa,wBAAA,SAAiC,KAAA;;EAAjC,SAAA,aAAA,EAAA,MAAyB;EAMtB;EAE4C,SAAA,QAAA,EAAA,MAAA;EARd;EAAK,SAAA,GAAA,EAMnC,OANmC;EAyBtC,WAAA,CAAA,aAAsB,EAAA,MAAA,EAAA,QAAa,EAAA,MAAA,EAAA,GAAA,EAjBY,OAiBZ,EAAA,IAAA,CAAA,EAAA,MAAA;AAgBhD;AAwCA;;;;;cAxDa,qBAAA,SAA8B,KAAA;;;ECrCtC,WAAA,CAAS,OAAA,EAAA,MAAA,EAAA,aAAA,CAAA,EAAA,MAAA;;;;;AAgBd;;AAE8B,KDmClB,cAAA;;+GCSwB;kHAApB;;;ACzBhB,0DAA0C,OAAA;;;;;;;;;;;;;;;;;cFwD7B,UAAA,SAAmB,KAAA;;iBAEf;;;;;;;oBAQG;;;;;KCvGf,yCAAyC,QAA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Ops } from "./arkivTransactions-NtGD6uk5.js";
1
+ import { j as ArkivClient } from "./selection-mjiiAGDO.js";
2
+ import { m as Operation } from "./index-JP31fjyM.js";
3
+ import { c as TxParams, t as EntityMutationOps } from "./arkivTransactions-DfZ_yVDD.js";
4
4
  import { Address, Hash, Hex, TransactionReceipt } from "viem";
5
5
 
6
6
  //#region src/actions/advanced/buildMutation.d.ts
@@ -165,7 +165,7 @@ type SendMutationReturnType = {
165
165
  /**
166
166
  * Signs and sends a mutation batch, returning as soon as the transaction is submitted.
167
167
  *
168
- * The fire-and-forget half of the advanced path. Unlike `mutateEntities`, this does **not** wait
168
+ * The fire-and-forget half of the advanced path. Unlike `executeBatch`, this does **not** wait
169
169
  * for a receipt, does not poll, and runs no revert diagnosis — it spends only what submitting
170
170
  * costs. With `options.currentBlock` and full `txParams` (nonce, gas, fees) that is exactly one
171
171
  * RPC call; each omitted piece adds only the lookup viem needs to fill it.
@@ -181,4 +181,4 @@ type SendMutationReturnType = {
181
181
  declare function sendMutation(client: ArkivClient, data: EntityMutationOps, options?: SendMutationOptions): Promise<SendMutationReturnType>;
182
182
  //#endregion
183
183
  export { pingTransaction as a, decodeMutationResult as c, BuildMutationReturnType as d, buildMutation as f, PingTransactionReturnType as i, getMutationResult as l, SendMutationReturnType as n, GetMutationResultReturnType as o, sendMutation as r, MutationResult as s, SendMutationOptions as t, BuildMutationOptions as u };
184
- //# sourceMappingURL=index-B5j76711.d.ts.map
184
+ //# sourceMappingURL=index-CTDI5pXZ.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-B5j76711.d.ts","names":[],"sources":["../src/actions/advanced/buildMutation.ts","../src/actions/advanced/getMutationResult.ts","../src/actions/advanced/pingTransaction.ts","../src/actions/advanced/sendMutation.ts"],"sourcesContent":[],"mappings":";;;;;;;KAeY,oBAAA;EAAA;AAkBZ;;;;;AAwCA;;;;;;;;;;AC1DY,KDkBA,uBAAA,GClBc;EAIhB;EAIS,UAAA,EDYL,SCZK,EAAA;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ECYhB,ODZgB,CCYR,yBDZQ,CAAA;;;;ADRP,KGDA,mBAAA,GAAsB,oBHCF,GAAA;EAkBpB;;;;EASD,QAAA,CAAA,EGvBE,QHuBF;AA+BX,CAAA;;AAEQ,KGpDI,sBAAA,GHoDJ;EACG;EACA,MAAA,EGpDD,IHoDC;EAAR;EAAO,QAAA,EGlDE,uBHkDF,CAAA,UAAA,CAAA;;;;AC9DV;;;;;;;;;AA0BA;AAUA;AA4BA;;;AAGW,iBEpCW,YAAA,CFoCX,MAAA,EEnCD,WFmCC,EAAA,IAAA,EElCH,iBFkCG,EAAA,OAAA,CAAA,EEjCA,mBFiCA,CAAA,EEhCR,OFgCQ,CEhCA,sBFgCA,CAAA"}
1
+ {"version":3,"file":"index-CTDI5pXZ.d.ts","names":[],"sources":["../src/actions/advanced/buildMutation.ts","../src/actions/advanced/getMutationResult.ts","../src/actions/advanced/pingTransaction.ts","../src/actions/advanced/sendMutation.ts"],"sourcesContent":[],"mappings":";;;;;;;KAeY,oBAAA;EAAA;AAkBZ;;;;;AAwCA;;;;;;;;;;AC1DY,KDkBA,uBAAA,GClBc;EAIhB;EAIS,UAAA,EDYL,SCZK,EAAA;EAIA;EAEA,EAAA,EDQb,OCRa;EAEC;;;;EAUR,IAAA,EDCJ,GCDI;EAUI;AA4BhB;;;EAGW,QAAA,EAAA;IAAR,OAAA,EAAA,MAAA;IAAO,OAAA,EAAA,MAAA;;;;EC1EE,CAAA;AAwBZ,CAAA;;;;;;;;;AClBA;AASA;AAuBA;;;;;;;iBH2BsB,aAAA,SACZ,mBACF,6BACG,uBACR,QAAQ;;;;;;;AA9DX;AAkBA;;AAIM,KCtBM,cAAA,GDsBN;EAKE;EAAG,MAAA,EAAA,SAAA,GAAA,UAAA;EA+BW;EACZ,MAAA,ECvDA,IDuDA;EACF;EACG,WAAA,EAAA,MAAA;EACA;EAAR,eAAA,ECtDgB,GDsDhB,EAAA;EAAO;;;mBClDS;EAZP;EAIF,eAAA,EAUS,GAVT,EAA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
2
- import { f as Operation } from "./index-CA4V7Pdh.cjs";
3
- import { c as TxParams, t as EntityMutationOps } from "./arkivTransactions-D74gERHG.cjs";
1
+ import { j as ArkivClient } from "./selection-C6KeWJ7g.cjs";
2
+ import { m as Operation } from "./index-DZxwz2Ky.cjs";
3
+ import { c as TxParams, t as EntityMutationOps } from "./arkivTransactions-BpARZOsH.cjs";
4
4
  import { Address, Hash, Hex, TransactionReceipt } from "viem";
5
5
 
6
6
  //#region src/actions/advanced/buildMutation.d.ts
@@ -165,7 +165,7 @@ type SendMutationReturnType = {
165
165
  /**
166
166
  * Signs and sends a mutation batch, returning as soon as the transaction is submitted.
167
167
  *
168
- * The fire-and-forget half of the advanced path. Unlike `mutateEntities`, this does **not** wait
168
+ * The fire-and-forget half of the advanced path. Unlike `executeBatch`, this does **not** wait
169
169
  * for a receipt, does not poll, and runs no revert diagnosis — it spends only what submitting
170
170
  * costs. With `options.currentBlock` and full `txParams` (nonce, gas, fees) that is exactly one
171
171
  * RPC call; each omitted piece adds only the lookup viem needs to fill it.
@@ -181,4 +181,4 @@ type SendMutationReturnType = {
181
181
  declare function sendMutation(client: ArkivClient, data: EntityMutationOps, options?: SendMutationOptions): Promise<SendMutationReturnType>;
182
182
  //#endregion
183
183
  export { pingTransaction as a, decodeMutationResult as c, BuildMutationReturnType as d, buildMutation as f, PingTransactionReturnType as i, getMutationResult as l, SendMutationReturnType as n, GetMutationResultReturnType as o, sendMutation as r, MutationResult as s, SendMutationOptions as t, BuildMutationOptions as u };
184
- //# sourceMappingURL=index-EeUO0nnJ.d.cts.map
184
+ //# sourceMappingURL=index-CekGjkRx.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-EeUO0nnJ.d.cts","names":[],"sources":["../src/actions/advanced/buildMutation.ts","../src/actions/advanced/getMutationResult.ts","../src/actions/advanced/pingTransaction.ts","../src/actions/advanced/sendMutation.ts"],"sourcesContent":[],"mappings":";;;;;;;KAeY,oBAAA;EAAA;AAkBZ;;;;;AAwC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;;AAQmB,iBCSG,eAAA,CDTH,MAAA,ECUT,WDVS,EAAA,MAAA,ECWT,IDXS,CAAA,ECYhB,ODZgB,CCYR,yBDZQ,CAAA;;;;ADRP,KGDA,mBAAA,GAAsB,oBHCF,GAAA;EAkBpB;;;;EASD,QAAA,CAAA,EGvBE,QHuBF;AA+BX,CAAA;;AAEQ,KGpDI,sBAAA,GHoDJ;EACG;EACA,MAAA,EGpDD,IHoDC;EAAR;EAAO,QAAA,EGlDE,uBHkDF,CAAA,UAAA,CAAA;;;;AC9DV;;;;;;;;;AA0BA;AAUA;AA4BA;;;AAGW,iBEpCW,YAAA,CFoCX,MAAA,EEnCD,WFmCC,EAAA,IAAA,EElCH,iBFkCG,EAAA,OAAA,CAAA,EEjCA,mBFiCA,CAAA,EEhCR,OFgCQ,CEhCA,sBFgCA,CAAA"}
1
+ {"version":3,"file":"index-CekGjkRx.d.cts","names":[],"sources":["../src/actions/advanced/buildMutation.ts","../src/actions/advanced/getMutationResult.ts","../src/actions/advanced/pingTransaction.ts","../src/actions/advanced/sendMutation.ts"],"sourcesContent":[],"mappings":";;;;;;;KAeY,oBAAA;EAAA;AAkBZ;;;;;AAwCA;;;;;;;;;;AC1DY,KDkBA,uBAAA,GClBc;EAIhB;EAIS,UAAA,EDYL,SCZK,EAAA;EAIA;EAEA,EAAA,EDQb,OCRa;EAEC;;;;EAUR,IAAA,EDCJ,GCDI;EAUI;AA4BhB;;;EAGW,QAAA,EAAA;IAAR,OAAA,EAAA,MAAA;IAAO,OAAA,EAAA,MAAA;;;;EC1EE,CAAA;AAwBZ,CAAA;;;;;;;;;AClBA;AASA;AAuBA;;;;;;;iBH2BsB,aAAA,SACZ,mBACF,6BACG,uBACR,QAAQ;;;;;;;AA9DX;AAkBA;;AAIM,KCtBM,cAAA,GDsBN;EAKE;EAAG,MAAA,EAAA,SAAA,GAAA,UAAA;EA+BW;EACZ,MAAA,ECvDA,IDuDA;EACF;EACG,WAAA,EAAA,MAAA;EACA;EAAR,eA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sBFgCA,CAAA"}
@@ -1,4 +1,4 @@
1
- import { a as Bytes32Value, c as I32Value, d as TypeTag, f as U256Value, i as BoolValue, l as KeyValue, n as AnyArkivValue, p as U64Value, r as ArkivValue, s as DecValue, t as AddrValue, u as StrValue } from "./codec-Car3KkFF.js";
1
+ import { a as Bytes32Value, c as I32Value, d as TypeTag, f as U256Value, i as BoolValue, l as KeyValue, n as AnyArkivValue, p as U64Value, r as ArkivValue, s as DecValue, t as AddrValue, u as StrValue } from "./codec-M74UR1_0.js";
2
2
  import { Hex } from "viem";
3
3
 
4
4
  //#region src/attr/values.d.ts
@@ -108,7 +108,11 @@ declare function decFromUnits(units: bigint): DecValue;
108
108
  *
109
109
  * The limit is on **bytes**, not characters: a string of 128 emoji does not fit.
110
110
  *
111
- * @throws {InvalidValueError} If the string exceeds 128 UTF-8 bytes.
111
+ * C0 control characters and DEL are rejected: the query language writes a `str` as `str('...')`,
112
+ * whose only escape is a doubled quote, so a control character could be stored but never queried.
113
+ *
114
+ * @throws {InvalidValueError} If the value is not a string, holds a control character, or exceeds
115
+ * 128 UTF-8 bytes.
112
116
  *
113
117
  * @example
114
118
  * str("Bob")
@@ -199,11 +203,15 @@ declare function toValue(input: ValueInput, attributeName?: string): ArkivValue;
199
203
  * The most attribute cells one operation may carry.
200
204
  */
201
205
  declare const MAX_ATTRIBUTES = 32;
206
+ /**
207
+ * The largest payload an entity may carry, in bytes. The payload travels as the `$payload` system
208
+ * cell, so this is a bound on that one attribute rather than on the operation as a whole.
209
+ */
202
210
  declare const MAX_PAYLOAD_BYTES: number;
203
211
  /**
204
212
  * The attributes written on an entity, as a plain object keyed by attribute name.
205
213
  *
206
- * Values may be tagged ({@link ValueInput}) or bare where the type is unambiguous — see
214
+ * Values may be tagged ({@link ArkivValue}) or bare where the type is unambiguous — see
207
215
  * {@link toValue} for the bare-form defaults.
208
216
  *
209
217
  * @example
@@ -317,4 +325,4 @@ declare function validateAttributeName(name: string): void;
317
325
  declare function isValidAttributeName(name: string): boolean;
318
326
  //#endregion
319
327
  export { i32 as A, ValueInput as C, dec as D, bytes32 as E, u64 as F, str as M, toValue as N, decFromUnits as O, u256 as P, U64_MAX as S, bool as T, MAX_PAYLOAD_BYTES as _, InvalidAttributeNameError as a, MAX_STRING_BYTES as b, TooManyAttributesError as c, DECIMAL_SCALE as d, DECIMAL_UNIT as f, MAX_ATTRIBUTES as g, Attributes as h, ConflictingMutationError as i, key as j, decUnits as k, UnknownAttributeTypeError as l, AttributeSchema as m, isValidAttributeName as n, InvalidValueError as o, AttributeInputs as p, validateAttributeName as r, MissingValueError as s, MAX_NAME_BYTES as t, UntypedValueError as u, I32_MAX as v, addr as w, U256_MAX as x, I32_MIN as y };
320
- //# sourceMappingURL=index-DvYvrkdk.d.ts.map
328
+ //# sourceMappingURL=index-D0IzFwMX.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-D0IzFwMX.d.ts","names":[],"sources":["../src/attr/values.ts","../src/attr/attributes.ts","../src/attr/decimal.ts","../src/attr/errors.ts","../src/attr/names.ts"],"sourcesContent":[],"mappings":";;;;;cA6Ba,OAAA;AAAb;AAEa,cAAA,OAAA,GAAO,CAAA,UAAA;AAEpB;AAEa,cAFA,OAE0B,EAAA,MAAA;AAIvC;AAsBgB,cA1BH,QA0ByB,EAAA,MAAS;AAkB/C;AA8CA;AAoBA;AAgFgB,cA1LH,gBAAA,GA0LiD,GAAA;AA6B9D;AAUA;AAkBA;AAwCA;AA8BA;;;;;AAgBgB,iBAnTA,IAAA,CAmTO,KAAA,EAAA,OAAA,CAAA,EAnTe,SAmTf;;;;;AA4CvB;AAqBA;;;;ACvaA;AAMA;AAuBY,iBDwCI,GAAA,CCxCW,KAAA,EAAA,MAAA,GAAA,MAAA,CAAA,EDwCkB,QCxClB;;;;;AAQ3B;;;;;AASA;;;;;iBDqEgB,IAAA,mCAAuC;;;AEvHvD;AAGA;;;;ACAA;;;;;AAmBA;AAqBA;AAoBA;AAgBA;AAea,iBH6CG,GAA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A,KAAQ,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAAA,MAAA;AA6B9D;AAUA;AAkBA;AAwCA;AA8BA;;AAAiC,cGpUpB,iBAAA,SAA0B,KAAA,CHoUN;EAAa,SAAA,KAAA,EAAA,OAAA;EAAQ,WAAA,CAAA,KAAA,EAAA,OAAA;AAgBtD;;;;;AA4CA;AAqBA;;cGhYa,iBAAA,SAA0B,KAAA;;EFvC1B,SAAA,aAAc,EAAA,MAAA,GAAA,SAAA;EAMd,WAAA,CAAA,KAAA,EAAA,IAA8B,GAAA,SAAA,EAAA,aAAA,CAAA,EAAA,MAAA;AAuB3C;;AAAuC,cE8B1B,yBAAA,SAAkC,KAAA,CF9BR;EAAT,SAAA,aAAA,EAAA,MAAA;EAAQ,WAAA,CAAA,aAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA;AAQtC;;;;AAAiC,cEsCpB,wBAAA,SAAiC,KAAA,CFtCb;EASrB,SAAA,aAAe,EAAA,MAAA;EAA2B,WAAA,CAAA,aAAA,EAAA,MAAA;;;AAAhB,cE4CzB,sBAAA,SAA+B,KAAA,CF5CN;;;;AClDzB,cCsGA,yBAAA,SAAkC,KAAA,CDtGrB;EAGb;;;;;;;cENA,cAAA;;;AJ0Bb;AAEA;AAEA;AAEA;AAIA;AAsBA;AAkBgB,iBIzBA,qBAAA,CJyBqC,IAAA,EAAA,MAAA,CAAA,EAAA,IAAA;AA8CrD;AAoBgB,iBI/CA,oBAAA,CJ+C8C,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA"}
@@ -8,6 +8,56 @@ type Operation = {
8
8
  operationData: Hex;
9
9
  };
10
10
  //#endregion
11
+ //#region src/entity/key.d.ts
12
+ /** The widest salt the `uint128` wire field carries. */
13
+ declare const MAX_SALT: bigint;
14
+ /**
15
+ * Opts a create out of salting, as {@link CreateEntityParameters.salt}: the key is then derived
16
+ * from the owner and its nonce alone, so anyone who knows both can work it out before the create
17
+ * lands.
18
+ */
19
+ declare const NO_SALT: unique symbol;
20
+ /**
21
+ * A salt as a caller expresses it: an explicit `uint128`, or {@link NO_SALT} to opt out of salting.
22
+ */
23
+ type SaltInput = bigint | typeof NO_SALT;
24
+ /**
25
+ * A cryptographically random 128-bit salt — what {@link CreateEntityParameters.salt} defaults to.
26
+ *
27
+ * The salt exists for unpredictability, not uniqueness: the per-owner nonce already guarantees
28
+ * distinct keys. Random bits mean only the creator can predict the key of an entity they are about
29
+ * to create, so nobody else can reference or squat it in advance.
30
+ *
31
+ * @throws {NoRandomSourceError} If the runtime has no `crypto.getRandomValues`.
32
+ */
33
+ declare function randomSalt(): bigint;
34
+ /**
35
+ * The key an entity will be created with, derived exactly as the engine derives it:
36
+ * `keccak256(domain ++ owner ++ nonce ++ salt)`.
37
+ *
38
+ * Deriving it client-side is what lets a batch compose: predict the key of a create, then have a
39
+ * later operation in the same transaction reference it, or store it as a `key` attribute on a
40
+ * sibling entity.
41
+ */
42
+ declare function predictEntityKey({
43
+ owner,
44
+ nonce,
45
+ salt,
46
+ chainId
47
+ }: {
48
+ /** The account creating the entity. */
49
+ owner: Address;
50
+ /**
51
+ * The owner's entity-nonce at creation time. Each create in a batch consumes one, so the *n*th
52
+ * create in a batch uses `nonce + n`.
53
+ */
54
+ nonce: bigint;
55
+ /** The salt the create will carry, or {@link NO_SALT} if it carries none. */
56
+ salt: SaltInput;
57
+ /** The chain the entity is being created on — half of the derivation domain. */
58
+ chainId: number;
59
+ }): Hex;
60
+ //#endregion
11
61
  //#region src/entity/errors.d.ts
12
62
  /** An expiry could not be expressed, or would be rejected by the engine. */
13
63
  declare class InvalidExpiryError extends Error {
@@ -19,7 +69,7 @@ declare class InvalidCreationFlagsError extends Error {
19
69
  }
20
70
  /** A key salt was outside the `uint128` the wire carries. */
21
71
  declare class InvalidSaltError extends Error {
22
- constructor(salt: bigint);
72
+ constructor(salt: unknown);
23
73
  }
24
74
  /** No cryptographic randomness was available to generate a salt. */
25
75
  declare class NoRandomSourceError extends Error {
@@ -108,46 +158,6 @@ declare const ENTITY_EVENTS_ABI: readonly [{
108
158
  /** The name of each event in {@link ENTITY_EVENTS_ABI}. */
109
159
  type EntityEventName = (typeof ENTITY_EVENTS_ABI)[number]["name"];
110
160
  //#endregion
111
- //#region src/entity/key.d.ts
112
- /** The widest salt the `uint128` wire field carries. */
113
- declare const MAX_SALT: bigint;
114
- /**
115
- * A cryptographically random 128-bit salt — what {@link CreateEntityParameters.salt} defaults to.
116
- *
117
- * The salt exists for unpredictability, not uniqueness: the per-owner nonce already guarantees
118
- * distinct keys. Random bits mean only the creator can predict the key of an entity they are about
119
- * to create, so nobody else can reference or squat it in advance.
120
- *
121
- * @throws {NoRandomSourceError} If the runtime has no `crypto.getRandomValues`.
122
- */
123
- declare function randomSalt(): bigint;
124
- /**
125
- * The key an entity will be created with, derived exactly as the engine derives it:
126
- * `keccak256(domain ++ owner ++ nonce ++ salt)`.
127
- *
128
- * Deriving it client-side is what lets a batch compose: predict the key of a create, then have a
129
- * later operation in the same transaction reference it, or store it as a `key` attribute on a
130
- * sibling entity.
131
- */
132
- declare function predictEntityKey({
133
- owner,
134
- nonce,
135
- salt,
136
- chainId
137
- }: {
138
- /** The account creating the entity. */
139
- owner: Address;
140
- /**
141
- * The owner's entity-nonce at creation time. Each create in a batch consumes one, so the *n*th
142
- * create in a batch uses `nonce + n`.
143
- */
144
- nonce: bigint;
145
- /** The salt the create will carry. */
146
- salt: bigint;
147
- /** The chain the entity is being created on — half of the derivation domain. */
148
- chainId: number;
149
- }): Hex;
150
- //#endregion
151
161
  //#region src/entity/params.d.ts
152
162
  /**
153
163
  * Max uint64 value
@@ -163,5 +173,5 @@ declare const OperationType: {
163
173
  };
164
174
  type OperationType = (typeof OperationType)[keyof typeof OperationType];
165
175
  //#endregion
166
- export { randomSalt as a, InvalidCreationFlagsError as c, NoRandomSourceError as d, Operation as f, predictEntityKey as i, InvalidExpiryError as l, OperationType as n, ENTITY_EVENTS_ABI as o, MAX_SALT as r, EntityEventName as s, MAX_EXPIRES_AT as t, InvalidSaltError as u };
167
- //# sourceMappingURL=index-fX_XyqLp.d.ts.map
176
+ export { InvalidCreationFlagsError as a, NoRandomSourceError as c, SaltInput as d, predictEntityKey as f, EntityEventName as i, MAX_SALT as l, Operation as m, OperationType as n, InvalidExpiryError as o, randomSalt as p, ENTITY_EVENTS_ABI as r, InvalidSaltError as s, MAX_EXPIRES_AT as t, NO_SALT as u };
177
+ //# sourceMappingURL=index-DZxwz2Ky.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DZxwz2Ky.d.cts","names":[],"sources":["../src/entity/operations.ts","../src/entity/key.ts","../src/entity/errors.ts","../src/entity/events.ts","../src/entity/params.ts"],"sourcesContent":[],"mappings":";;;;;KAiDY,SAAA;;iBAEK;;;;;cC7CJ;AD2Cb;;;;AC3CA;AAOa,cAAA,OAA2B,EAAA,OAAA,MAAA;AAKxC;AAWA;AAkCA;AACE,KA9CU,SAAA,GA8CV,MAAA,GAAA,OA9CsC,OA8CtC;;;;;;;;;;iBAnCc,UAAA,CAAA;;AEvBhB;AASA;;;;ACZA;AAGA;AAQY,iBHiDI,gBAAA,CGjDoB;EAAA,KAA4B;EAAA,KAAA;EAAA,IAAa;EAAA;CAAA,EAAA;;SHwDpE;;;;;;;QAOD;;;IAGJ;;;;cC/ES,kBAAA,SAA2B,KAAA;;AFgDxC;;cExCa,yBAAA,SAAkC,KAAA;;ADH/C;AAOA;AAKY,cCDC,gBAAA,SAAyB,KAAA,CDCS;EAW/B,WAAA,CAAA,IAAU,EAAA,OAAA;AAkC1B;;AAEE,cCpCW,mBAAA,SAA4B,KAAA,CDoCvC;EACA,WAAA,CAAA;;;;;;;ADjBF;cG3Ca;;;EFAA,SAAA,MAA0B,EAAA,SAAA,CAAA;IAO1B,SAA2B,IAAA,EAAA,SAAA;IAK5B,SAAS,IAAA,EAAA,WAAmB;IAWxB,SAAU,OAAA,EAAA,IAAA;EAkCV,CAAA,EAAA;IACd,SAAA,IAAA,EAAA,SAAA;IACA,SAAA,IAAA,EAAA,OAAA;IACA,SAAA,OAAA,EAAA,IAAA;EACA,CAAA,EAAA;IAGO,SAAA,IAAA,EAAA,QAAA;IAOD,SAAA,IAAA,EAAA,WAAA;EAGJ,CAAA,EAAA;IAAG,SAAA,IAAA,EAAA,OAAA;;;;EC/EM,SAAA,IAAA,EAAA,eAAmB;EAQnB,SAAA,IAAA,EAAA,OAAA;EAQA,SAAA,MAAA,EAAA,SAAiB,CAAA;IAYjB,SAAA,IAAA,EAAA,SAAoB;;;;ICvBpB,SAAA,IAAA,EAAA,SAMX;IAGU,SAAA,IAAA,EAAe,OAAA;;;;ECZd,SAAA,IAAA,EAAA,gBAA+B;EAG/B,SAAA,IAAA,EAAA,OAMH;EAEE,SAAA,MAAA,EAAa,SAAA,CAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KDCxB,eAAA,WAA0B;;;;;;AHkC1B,cI9CC,cJgDO,EAAA,MAAA;;cI7CP;;EHAA,SAAA,KAA0B,EAAA,CAAA;EAO1B,SAAA,YAA2B,EAAA,CAAA;EAK5B,SAAA,iBAA4B,EAAA,CAAA;EAWxB,SAAA,MAAU,EAAA,CAAA;AAkC1B,CAAA;AACE,KGlDU,aAAA,GHkDV,CAAA,OGlDkC,aHkDlC,CAAA,CAAA,MAAA,OGlD8D,aHkD9D,CAAA"}
@@ -1,5 +1,5 @@
1
- import { R as RpcSelect, i as SelectArg, j as ArkivClient, p as Expression, s as Entity } from "./selection-C4UhsMOO.js";
2
- import { d as TypeTag } from "./codec-Car3KkFF.js";
1
+ import { R as RpcSelect, i as SelectArg, j as ArkivClient, p as Expression, s as Entity } from "./selection-mjiiAGDO.js";
2
+ import { d as TypeTag } from "./codec-M74UR1_0.js";
3
3
  import { Hex } from "viem";
4
4
 
5
5
  //#region src/query/engine.d.ts
@@ -43,7 +43,7 @@ declare function runQuery(client: ArkivClient, request: QueryRequest): Promise<Q
43
43
  * | | `=` `!=` | `<` `<=` `>` `>=` | `STARTSWITH` |
44
44
  * | --- | --- | --- | --- |
45
45
  * | `bool` | yes | no | no |
46
- * | `i32` `u256` `dec` | yes | yes | no |
46
+ * | `i32` `u64` `u256` `dec` | yes | yes | no |
47
47
  * | `str` | yes | no | yes |
48
48
  * | `addr` `key` `bytes32` | yes | no | no |
49
49
  */
@@ -277,4 +277,4 @@ declare class SelectQueryBuilder<TEntity = Entity> {
277
277
  }
278
278
  //#endregion
279
279
  export { QueryErrorKind as a, QueryRequest as c, QueryError as i, QueryResponse as l, QueryResult as n, UnsupportedOperatorError as o, InvalidPredicateError as r, MAX_LIMIT as s, SelectQueryBuilder as t, runQuery as u };
280
- //# sourceMappingURL=index-DHDud2hC.d.ts.map
280
+ //# sourceMappingURL=index-Dz4SkQWg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DHDud2hC.d.ts","names":[],"sources":["../src/query/engine.ts","../src/query/errors.ts","../src/query/queryResult.ts","../src/query/queryBuilder.ts"],"sourcesContent":[],"mappings":";;;;;cAUa,SAAA;;AAAA,KAGD,YAAA,GAHU;EAGV;EAcA,KAAA,EAAA,MAAA;EAaU;EAAiB,MAAA,EAvB7B,SAuB6B;EAAsB;EAAuB,KAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAAR;EAAO,MAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;ACxBnF;AAMgB,KDKJ,aAAA,GCLI;EAE4C,QAAA,EDIhD,MCJgD,EAAA;EARd;EAAK,WAAA,EAAA,MAAA;EAyBtC;EAgBD,MAAA,EAAA,MAAA,GAAc,SAAA;AAwC1B,CAAA;;;;;;iBDzDsB,QAAA,SAAiB,sBAAsB,eAAe,QAAQ;;;;;;;AA9BpF;AAGA;AAcA;AAaA;;;;;;;cCxBa,wBAAA,SAAiC,KAAA;;EAAjC,SAAA,aAAA,EAAA,MAAyB;EAMtB;EAE4C,SAAA,QAAA,EAAA,MAAA;EARd;EAAK,SAAA,GAAA,EAMnC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;;;EAuCiB,KAAA,CAAA,WAAA,EAAA,SAda,UAcb,EAAA,CAAA,EAAA,IAAA;EAWI,KAAA,CAAA,GAAA,WAAA,EAxBG,UAwBH,EAAA,CAAA,EAAA,IAAA;EAyEgB;;;;;;;iBApFpB;;;;;;;qBAWI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAyEJ,QAAQ,YAAY;;;;;;;;;GAqB3B,MAAA,CAAO,aAAA,KAAkB,eAAe"}
1
+ {"version":3,"file":"index-Dz4SkQWg.d.ts","names":[],"sources":["../src/query/engine.ts","../src/query/errors.ts","../src/query/queryResult.ts","../src/query/queryBuilder.ts"],"sourcesContent":[],"mappings":";;;;;cAUa,SAAA;;AAAA,KAGD,YAAA,GAHU;EAGV;EAcA,KAAA,EAAA,MAAA;EAaU;EAAiB,MAAA,EAvB7B,SAuB6B;EAAsB;EAAuB,KAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAAR;EAAO,MAAA,CAAA,EAAA,MAAA,GAAA,SAAA;;;;ACxBnF;AAMgB,KDKJ,aAAA,GCLI;EAE4C,QAAA,EDIhD,MCJgD,EAAA;EARd;EAAK,WAAA,EAAA,MAAA;EAyBtC;EAgBD,MAAA,EAAA,MAAA,GAAc,SAAA;AAwC1B,CAAA;;;;;;iBDzDsB,QAAA,SAAiB,sBAAsB,eAAe,QAAQ;;;;;;;AA9BpF;AAGA;AAcA;AAaA;;;;;;;cCxBa,wBAAA,SAAiC,KAAA;;EAAjC,SAAA,aAAA,EAAA,MAAyB;EAMtB;EAE4C,SAAA,QAAA,EAAA,MAAA;EARd;EAAK,SAAA,GAAA,EAMnC,OANmC;EAyBtC,WAAA,CAAA,aAAsB,EAAA,MAAA,EAAA,QAAa,EAAA,MAAA,EAAA,GAAA,EAjBY,OAiBZ,EAAA,IAAA,CAAA,EAAA,MAAA;AAgBhD;AAwCA;;;;;cAxDa,qBAAA,SAA8B,KAAA;;;ECrCtC,WAAA,CAAS,OAAA,EAAA,M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