@arkiv-network/sdk 0.7.0-dev.1 → 0.8.0-advanced.2

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 (237) hide show
  1. package/README.md +71 -16
  2. package/dist/actions/advanced/index.cjs +13 -0
  3. package/dist/actions/advanced/index.d.cts +8 -0
  4. package/dist/actions/advanced/index.d.ts +9 -0
  5. package/dist/actions/advanced/index.js +9 -0
  6. package/dist/advanced-8ZPTmmaN.js +598 -0
  7. package/dist/advanced-8ZPTmmaN.js.map +1 -0
  8. package/dist/advanced-fPImL6lW.cjs +656 -0
  9. package/dist/arkivTransactions-D74gERHG.d.cts +571 -0
  10. package/dist/arkivTransactions-D74gERHG.d.cts.map +1 -0
  11. package/dist/arkivTransactions-NtGD6uk5.d.ts +571 -0
  12. package/dist/arkivTransactions-NtGD6uk5.d.ts.map +1 -0
  13. package/dist/attr/index.cjs +35 -0
  14. package/dist/attr/index.d.cts +2 -0
  15. package/dist/attr/index.d.ts +3 -0
  16. package/dist/attr/index.js +4 -0
  17. package/dist/attributes-BhY5DwJp.js +809 -0
  18. package/dist/attributes-BhY5DwJp.js.map +1 -0
  19. package/dist/attributes-Df9IsCVs.cjs +1029 -0
  20. package/dist/chains/index.cjs +2 -3
  21. package/dist/chains/index.d.cts +22 -60
  22. package/dist/chains/index.d.cts.map +1 -1
  23. package/dist/chains/index.d.ts +22 -60
  24. package/dist/chains/index.d.ts.map +1 -1
  25. package/dist/chains/index.js +2 -2
  26. package/dist/chains-BJrZs6sG.js +57 -0
  27. package/dist/chains-BJrZs6sG.js.map +1 -0
  28. package/dist/chains-BYRTTipa.cjs +73 -0
  29. package/dist/codec-Car3KkFF.d.ts +102 -0
  30. package/dist/codec-Car3KkFF.d.ts.map +1 -0
  31. package/dist/entity/index.cjs +20 -0
  32. package/dist/entity/index.d.cts +4 -0
  33. package/dist/entity/index.d.ts +5 -0
  34. package/dist/entity/index.js +7 -0
  35. package/dist/entity-B00Li04j.cjs +71 -0
  36. package/dist/entity-B7G8q_Eo.cjs +0 -0
  37. package/dist/entity-BYQR1uoe.js +67 -0
  38. package/dist/entity-BYQR1uoe.js.map +1 -0
  39. package/dist/entity-CD_qFF2M.js +0 -0
  40. package/dist/errors-BVbjKVMN.cjs +56 -0
  41. package/dist/errors-LTe7bOYS.js +33 -0
  42. package/dist/errors-LTe7bOYS.js.map +1 -0
  43. package/dist/expiry-BELY2Kpw.cjs +135 -0
  44. package/dist/expiry-BjpxZZQU.js +95 -0
  45. package/dist/expiry-BjpxZZQU.js.map +1 -0
  46. package/dist/expiry-DRV29F1r.d.cts +79 -0
  47. package/dist/expiry-DRV29F1r.d.cts.map +1 -0
  48. package/dist/expiry-nDbCgZX4.d.ts +79 -0
  49. package/dist/expiry-nDbCgZX4.d.ts.map +1 -0
  50. package/dist/flags-5dTNRnow.d.ts +41 -0
  51. package/dist/flags-5dTNRnow.d.ts.map +1 -0
  52. package/dist/flags-CRjPpoh3.d.cts +41 -0
  53. package/dist/flags-CRjPpoh3.d.cts.map +1 -0
  54. package/dist/flags-DFBs2J94.js +33 -0
  55. package/dist/flags-DFBs2J94.js.map +1 -0
  56. package/dist/flags-kr276q6i.cjs +43 -0
  57. package/dist/index-B5j76711.d.ts +184 -0
  58. package/dist/index-B5j76711.d.ts.map +1 -0
  59. package/dist/index-BF7Mq9Is.d.cts +280 -0
  60. package/dist/index-BF7Mq9Is.d.cts.map +1 -0
  61. package/dist/index-CA4V7Pdh.d.cts +167 -0
  62. package/dist/index-CA4V7Pdh.d.cts.map +1 -0
  63. package/dist/index-CV5zCdpa.d.cts +417 -0
  64. package/dist/index-CV5zCdpa.d.cts.map +1 -0
  65. package/dist/index-DHDud2hC.d.ts +280 -0
  66. package/dist/index-DHDud2hC.d.ts.map +1 -0
  67. package/dist/index-DvYvrkdk.d.ts +320 -0
  68. package/dist/index-DvYvrkdk.d.ts.map +1 -0
  69. package/dist/index-EeUO0nnJ.d.cts +184 -0
  70. package/dist/index-EeUO0nnJ.d.cts.map +1 -0
  71. package/dist/index-fX_XyqLp.d.ts +167 -0
  72. package/dist/index-fX_XyqLp.d.ts.map +1 -0
  73. package/dist/index.cjs +411 -405
  74. package/dist/index.d.cts +360 -209
  75. package/dist/index.d.cts.map +1 -1
  76. package/dist/index.d.ts +361 -209
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +342 -387
  79. package/dist/index.js.map +1 -1
  80. package/dist/key-D1Bh7MF0.js +70 -0
  81. package/dist/key-D1Bh7MF0.js.map +1 -0
  82. package/dist/key-WKhXnXuU.cjs +98 -0
  83. package/dist/logger-CVpvU8ik.js +153 -0
  84. package/dist/logger-CVpvU8ik.js.map +1 -0
  85. package/dist/logger-Cr15lPAQ.cjs +188 -0
  86. package/dist/payload-BNoud2KZ.d.cts +94 -0
  87. package/dist/payload-BNoud2KZ.d.cts.map +1 -0
  88. package/dist/payload-Bz6651ax.js +67 -0
  89. package/dist/payload-Bz6651ax.js.map +1 -0
  90. package/dist/payload-CcUj85ys.d.ts +94 -0
  91. package/dist/payload-CcUj85ys.d.ts.map +1 -0
  92. package/dist/payload-KC14SDlN.cjs +83 -0
  93. package/dist/query/index.cjs +26 -150
  94. package/dist/query/index.d.cts +5 -3
  95. package/dist/query/index.d.ts +6 -3
  96. package/dist/query/index.js +8 -138
  97. package/dist/queryBuilder-DM6AWCBa.js +820 -0
  98. package/dist/queryBuilder-DM6AWCBa.js.map +1 -0
  99. package/dist/queryBuilder-DbUMEZln.cjs +944 -0
  100. package/dist/selection-C4UhsMOO.d.ts +434 -0
  101. package/dist/selection-C4UhsMOO.d.ts.map +1 -0
  102. package/dist/selection-DPg0uyJf.d.cts +433 -0
  103. package/dist/selection-DPg0uyJf.d.cts.map +1 -0
  104. package/dist/types/index.cjs +3 -3
  105. package/dist/types/index.d.cts +7 -2
  106. package/dist/types/index.d.ts +8 -2
  107. package/dist/types/index.js +3 -3
  108. package/dist/types-Bu_ZwMbZ.js +0 -0
  109. package/dist/types-NRqymi6S.cjs +0 -0
  110. package/dist/utils/index.cjs +4 -17
  111. package/dist/utils/index.d.cts +3 -17
  112. package/dist/utils/index.d.ts +3 -17
  113. package/dist/utils/index.js +4 -18
  114. package/package.json +26 -5
  115. package/src/actions/advanced/advanced.test.ts +258 -0
  116. package/src/actions/advanced/buildMutation.ts +104 -0
  117. package/src/actions/advanced/getMutationResult.ts +112 -0
  118. package/src/actions/advanced/index.ts +21 -0
  119. package/src/actions/advanced/pingTransaction.ts +43 -0
  120. package/src/actions/advanced/sendMutation.ts +59 -0
  121. package/src/actions/public/getEntity.ts +27 -43
  122. package/src/actions/public/getEntityNonce.ts +30 -0
  123. package/src/actions/public/predictEntityKeys.test.ts +143 -0
  124. package/src/actions/public/predictEntityKeys.ts +138 -0
  125. package/src/actions/public/query.ts +35 -67
  126. package/src/actions/public/watchEntityEvents.test.ts +414 -0
  127. package/src/actions/public/watchEntityEvents.ts +225 -0
  128. package/src/actions/wallet/changeOwnership.ts +2 -2
  129. package/src/actions/wallet/createEntity.ts +99 -24
  130. package/src/actions/wallet/extendEntity.ts +37 -13
  131. package/src/actions/wallet/mutateEntities.test.ts +76 -0
  132. package/src/actions/wallet/mutateEntities.ts +16 -33
  133. package/src/actions/wallet/patchEntity.ts +90 -0
  134. package/src/attr/attributes.test.ts +120 -0
  135. package/src/attr/attributes.ts +190 -0
  136. package/src/attr/codec.test.ts +162 -0
  137. package/src/attr/codec.ts +220 -0
  138. package/src/attr/decimal.ts +86 -0
  139. package/src/attr/errors.ts +145 -0
  140. package/src/attr/index.ts +50 -0
  141. package/src/attr/names.ts +106 -0
  142. package/src/attr/types.ts +150 -0
  143. package/src/attr/values.test.ts +271 -0
  144. package/src/attr/values.ts +502 -0
  145. package/src/chains/cheesecake.ts +22 -0
  146. package/src/chains/index.ts +1 -2
  147. package/src/clients/createPublicClient.test.ts +3 -5
  148. package/src/clients/createPublicClient.ts +5 -4
  149. package/src/clients/createWalletClient.test.ts +2 -2
  150. package/src/clients/createWalletClient.ts +13 -7
  151. package/src/clients/decorators/arkivAdvanced.ts +144 -0
  152. package/src/clients/decorators/arkivPublic.ts +172 -139
  153. package/src/clients/decorators/arkivWallet.ts +101 -94
  154. package/src/entity/create.test.ts +184 -0
  155. package/src/entity/errors.ts +38 -0
  156. package/src/entity/events.ts +16 -0
  157. package/src/entity/expiry.test.ts +195 -0
  158. package/src/entity/expiry.ts +181 -0
  159. package/src/entity/flags.ts +65 -0
  160. package/src/entity/index.ts +15 -0
  161. package/src/entity/key.ts +68 -0
  162. package/src/entity/operations.ts +134 -0
  163. package/src/entity/params.ts +15 -0
  164. package/src/errors.ts +26 -49
  165. package/src/index.ts +19 -0
  166. package/src/query/engine.ts +68 -137
  167. package/src/query/errors.ts +151 -0
  168. package/src/query/expression.test.ts +286 -0
  169. package/src/query/expression.ts +493 -0
  170. package/src/query/index.ts +40 -4
  171. package/src/query/injection.test.ts +151 -0
  172. package/src/query/queryBuilder.test.ts +342 -637
  173. package/src/query/queryBuilder.ts +133 -359
  174. package/src/query/queryResult.ts +54 -51
  175. package/src/query/selection.test.ts +48 -98
  176. package/src/query/selection.ts +77 -65
  177. package/src/types/entity.test.ts +44 -155
  178. package/src/types/entity.ts +60 -52
  179. package/src/types/events.ts +59 -16
  180. package/src/types/index.ts +20 -17
  181. package/src/types/rpcSchema.ts +69 -37
  182. package/src/utils/arkivTransactions.test.ts +600 -155
  183. package/src/utils/arkivTransactions.ts +350 -219
  184. package/src/utils/chains.test.ts +21 -24
  185. package/src/utils/compression.ts +1 -1
  186. package/src/utils/entities.test.ts +62 -0
  187. package/src/utils/entities.ts +109 -37
  188. package/src/utils/expirationTime.ts +114 -10
  189. package/src/utils/logger.ts +2 -2
  190. package/src/utils/revert.test.ts +99 -0
  191. package/src/utils/revert.ts +145 -0
  192. package/dist/chains-BifaY04V.cjs +0 -108
  193. package/dist/chains-CrtkVbBh.js +0 -86
  194. package/dist/chains-CrtkVbBh.js.map +0 -1
  195. package/dist/consts-Bz0LZQZY.js +0 -7
  196. package/dist/consts-Bz0LZQZY.js.map +0 -1
  197. package/dist/consts-CxT1-RXU.cjs +0 -18
  198. package/dist/entity-BhSXaB23.cjs +0 -81
  199. package/dist/entity-CN41IOrq.d.cts +0 -401
  200. package/dist/entity-CN41IOrq.d.cts.map +0 -1
  201. package/dist/entity-DGfVyB-a.js +0 -71
  202. package/dist/entity-DGfVyB-a.js.map +0 -1
  203. package/dist/entity-NnEVlePN.d.ts +0 -401
  204. package/dist/entity-NnEVlePN.d.ts.map +0 -1
  205. package/dist/index-ClkpS6s_.d.ts +0 -481
  206. package/dist/index-ClkpS6s_.d.ts.map +0 -1
  207. package/dist/index-w4qop0Pe.d.cts +0 -481
  208. package/dist/index-w4qop0Pe.d.cts.map +0 -1
  209. package/dist/payload-BpNUPOnY.js +0 -13
  210. package/dist/payload-BpNUPOnY.js.map +0 -1
  211. package/dist/payload-C2KHOUoj.d.ts +0 -6
  212. package/dist/payload-C2KHOUoj.d.ts.map +0 -1
  213. package/dist/payload-CJN8fTvX.d.cts +0 -6
  214. package/dist/payload-CJN8fTvX.d.cts.map +0 -1
  215. package/dist/payload-D8YLKcJj.cjs +0 -23
  216. package/dist/query/index.js.map +0 -1
  217. package/dist/queryBuilder-BE_XhLLa.js +0 -735
  218. package/dist/queryBuilder-BE_XhLLa.js.map +0 -1
  219. package/dist/queryBuilder-J37buGCi.cjs +0 -865
  220. package/dist/utils/index.d.cts.map +0 -1
  221. package/dist/utils/index.d.ts.map +0 -1
  222. package/dist/utils/index.js.map +0 -1
  223. package/src/actions/public/buildQuery.ts +0 -10
  224. package/src/actions/public/subscribeEntityEvents.ts +0 -93
  225. package/src/actions/wallet/updateEntity.ts +0 -59
  226. package/src/chains/braga.ts +0 -26
  227. package/src/chains/kaolin.ts +0 -29
  228. package/src/query/engine.test.ts +0 -571
  229. package/src/query/predicate.test.ts +0 -461
  230. package/src/query/predicate.ts +0 -144
  231. package/src/query/queryResult.test.ts +0 -270
  232. package/src/query/selectQueryBuilder.test.ts +0 -213
  233. package/src/types/attributes.ts +0 -28
  234. package/src/utils/validation.test.ts +0 -106
  235. package/src/utils/validation.ts +0 -80
  236. /package/dist/{types-Ci4BRClw.js → attr-DlmErkvR.cjs} +0 -0
  237. /package/dist/{types-a8gm_IaQ.cjs → attr-GcQKatub.js} +0 -0
@@ -0,0 +1,434 @@
1
+ import { m as UserTypeTag, r as ArkivValue, u as StrValue } from "./codec-Car3KkFF.js";
2
+ import { C as ValueInput, h as Attributes, m as AttributeSchema } from "./index-DvYvrkdk.js";
3
+ import { n as ResolvedCreationFlags } from "./flags-5dTNRnow.js";
4
+ import { Account, Chain, Client, Hex, RpcSchema, Transport } from "viem";
5
+
6
+ //#region src/types/rpcSchema.d.ts
7
+
8
+ /**
9
+ * An attribute as the node renders it: the name, the type **tag** (not the wire typeId), and the
10
+ * value in the JSON encoding that type prescribes — a JSON number for `i32`, a `0x` QUANTITY for
11
+ * `u64` and `u256`, a decimal string for `dec`, `0x` DATA for the byte-shaped types, and a string for
12
+ * `str`.
13
+ *
14
+ * The encoding follows the *declared type*, never the magnitude, so a decoder dispatches on `type`
15
+ * and never has to guess from the shape of the value.
16
+ */
17
+ type RpcAttribute = {
18
+ name: string;
19
+ type: string;
20
+ value: unknown;
21
+ };
22
+ /** An entry of the `attributeSchema` projection — a name and its type, with no value. */
23
+ type RpcAttributeSchemaEntry = {
24
+ name: string;
25
+ type: string;
26
+ };
27
+ /**
28
+ * The `creationFlags` projection.
29
+ */
30
+ type RpcCreationFlags = {
31
+ readonly?: boolean;
32
+ permissionlessExtension?: boolean;
33
+ raw: number;
34
+ };
35
+ /**
36
+ * An entity as `arkiv_query` returns it. Every field is present only if it was selected, so all of
37
+ * them are optional here — {@link RpcSelect} is what decides which arrive.
38
+ */
39
+ type RpcEntity = {
40
+ key?: Hex;
41
+ owner?: Hex;
42
+ creator?: Hex;
43
+ createdAt?: Hex;
44
+ updatedAt?: Hex;
45
+ expiresAt?: Hex;
46
+ creationFlags?: RpcCreationFlags | number;
47
+ contentType?: string;
48
+ payload?: Hex;
49
+ attributeSchema?: RpcAttributeSchemaEntry[];
50
+ attributes?: RpcAttribute[];
51
+ };
52
+ /**
53
+ * The `select` projection: flat, per-field booleans. Everything except `key` defaults to **off**,
54
+ * so a query asks for exactly what it needs and nothing more.
55
+ *
56
+ * `attributes` is the one field with a third form: `true` for every attribute, or a map of names
57
+ * for a subset.
58
+ */
59
+ type RpcSelect = {
60
+ key?: boolean;
61
+ owner?: boolean;
62
+ creator?: boolean;
63
+ createdAt?: boolean;
64
+ updatedAt?: boolean;
65
+ expiresAt?: boolean;
66
+ creationFlags?: boolean;
67
+ contentType?: boolean;
68
+ payload?: boolean;
69
+ attributeSchema?: boolean;
70
+ attributes?: boolean | Record<string, boolean>;
71
+ };
72
+ type RpcQueryOptions = {
73
+ /** Block height to read at, as a hex quantity. Defaults to the head, and must be within the node's retained range. */
74
+ atBlock?: Hex;
75
+ /** What to return. Defaults to `{ key: true }`. */
76
+ select?: RpcSelect;
77
+ /** Page size, as a hex quantity. Node maximum is 200. */
78
+ limit?: Hex;
79
+ /** Opaque cursor from a previous response; bound to that query, block and selection. */
80
+ cursor?: string;
81
+ };
82
+ type ArkivRpcSchema = [{
83
+ Method: "arkiv_query";
84
+ Parameters?: [query: string, queryOptions?: RpcQueryOptions];
85
+ ReturnType: {
86
+ data: RpcEntity[];
87
+ blockNumber: Hex;
88
+ /** Omitted when no pages remain. */
89
+ cursor?: string;
90
+ };
91
+ }, {
92
+ Method: "arkiv_getBlockTiming";
93
+ Parameters?: [];
94
+ ReturnType: {
95
+ current_block: bigint;
96
+ current_block_time: number;
97
+ duration: number;
98
+ };
99
+ }, {
100
+ Method: "arkiv_getEntityCount";
101
+ Parameters?: [];
102
+ ReturnType: number;
103
+ }];
104
+ //#endregion
105
+ //#region src/clients/baseClient.d.ts
106
+ type ArkivClient<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, accountOrAddress extends Account | undefined = Account | undefined, rpcSchema extends RpcSchema | undefined = ArkivRpcSchema> = Client<transport, chain, accountOrAddress, rpcSchema>;
107
+ //#endregion
108
+ //#region src/query/expression.d.ts
109
+ type ComparisonOperator = "=" | "!=" | "<" | "<=" | ">" | ">=";
110
+ /** A comparison between an attribute and a typed literal. */
111
+ type ComparisonNode = {
112
+ readonly kind: "comparison";
113
+ readonly name: string;
114
+ readonly operator: ComparisonOperator;
115
+ readonly value: ArkivValue;
116
+ };
117
+ /** A `STARTSWITH` prefix test, the language's only pattern operator. */
118
+ type StartsWithNode = {
119
+ readonly kind: "startsWith";
120
+ readonly name: string;
121
+ readonly value: StrValue;
122
+ };
123
+ /** An `EXISTS(name)` test — true when the attribute is set with any type. */
124
+ type ExistsNode = {
125
+ readonly kind: "exists";
126
+ readonly name: string;
127
+ };
128
+ /** A `TYPEOF(name) = tag` test. */
129
+ type TypeOfNode = {
130
+ readonly kind: "typeOf";
131
+ readonly name: string;
132
+ readonly tag: UserTypeTag;
133
+ };
134
+ /** The complement of an expression, evaluated against the active-entity set. */
135
+ type NotNode = {
136
+ readonly kind: "not";
137
+ readonly expression: Expression;
138
+ };
139
+ /** A conjunction. */
140
+ type AndNode = {
141
+ readonly kind: "and";
142
+ readonly expressions: readonly Expression[];
143
+ };
144
+ /** A disjunction. */
145
+ type OrNode = {
146
+ readonly kind: "or";
147
+ readonly expressions: readonly Expression[];
148
+ };
149
+ /**
150
+ * A query expression: an immutable tree built by the combinators below, whose `toString()` is the
151
+ * exact query string sent over the wire.
152
+ *
153
+ * @example
154
+ * const q = and(gte("level", i32(10)), or(eq("status", str("open")), not(exists("closedAt"))))
155
+ * String(q) // level >= i32(10) AND (status = str('open') OR NOT EXISTS(closedAt))
156
+ */
157
+ type Expression = ComparisonNode | StartsWithNode | ExistsNode | TypeOfNode | NotNode | AndNode | OrNode;
158
+ /**
159
+ * Attribute equals value — set with this exact type, and holding this value.
160
+ *
161
+ * Bare booleans, numbers, bigints and strings take the same default types they take when written
162
+ * (`number` is an `i32`, `bigint` a `u256`, `string` a `str`); anything else names its type.
163
+ *
164
+ * @throws {InvalidPredicateError} If the name is not a queryable attribute, or a system attribute
165
+ * is compared against the wrong type.
166
+ *
167
+ * @example
168
+ * eq("status", str("open")) // status = str('open')
169
+ * eq("flagged", true) // flagged = true
170
+ * eq("$owner", addr(account)) // $owner = addr(0xd8dA…)
171
+ */
172
+ declare function eq(name: string, value: ValueInput): ComparisonNode;
173
+ /**
174
+ * Attribute is set with this type and holds a **different** value.
175
+ *
176
+ * This is typed value-negation, not the complement: an entity that never set the attribute, or set
177
+ * it with another type, does not match. Use `not(eq(...))` for the full complement.
178
+ *
179
+ * @example
180
+ * ne("status", str("closed")) // status != str('closed')
181
+ * not(eq("status", str("closed"))) // NOT status = str('closed') — also matches entities with no status
182
+ */
183
+ declare function ne(name: string, value: ValueInput): ComparisonNode;
184
+ /**
185
+ * Attribute is greater than value. Ordered types only (`i32`, `u256`, `dec`).
186
+ *
187
+ * @throws {UnsupportedOperatorError} If the value's type carries no ordered index.
188
+ *
189
+ * @example
190
+ * gt("level", i32(10)) // level > i32(10)
191
+ * gt("$expiresAt", u64(1_200_000n)) // $expiresAt > u64(1200000)
192
+ */
193
+ declare function gt(name: string, value: ValueInput): ComparisonNode;
194
+ /**
195
+ * Attribute is greater than or equal to value. Ordered types only (`i32`, `u256`, `dec`).
196
+ *
197
+ * @throws {UnsupportedOperatorError} If the value's type carries no ordered index.
198
+ *
199
+ * @example
200
+ * gte("score", dec("3.5")) // score >= dec(3.5)
201
+ */
202
+ declare function gte(name: string, value: ValueInput): ComparisonNode;
203
+ /**
204
+ * Attribute is less than value. Ordered types only (`i32`, `u256`, `dec`).
205
+ *
206
+ * @throws {UnsupportedOperatorError} If the value's type carries no ordered index.
207
+ *
208
+ * @example
209
+ * lt("level", i32(10)) // level < i32(10)
210
+ */
211
+ declare function lt(name: string, value: ValueInput): ComparisonNode;
212
+ /**
213
+ * Attribute is less than or equal to value. Ordered types only (`i32`, `u256`, `dec`).
214
+ *
215
+ * @throws {UnsupportedOperatorError} If the value's type carries no ordered index.
216
+ *
217
+ * @example
218
+ * lte("score", dec("5")) // score <= dec(5)
219
+ */
220
+ declare function lte(name: string, value: ValueInput): ComparisonNode;
221
+ /**
222
+ * Attribute is a `str` beginning with this prefix.
223
+ *
224
+ * The match is on **raw UTF-8 bytes** with no normalization — it is the index encoding, so
225
+ * `startsWith("name", "é")` matches only the same byte sequence, not another normal form of it.
226
+ *
227
+ * @param prefix - The prefix, as a bare string or a `str` value.
228
+ * @throws {UnsupportedOperatorError} If given a value that is not a `str`.
229
+ *
230
+ * @example
231
+ * startsWith("desc", "ab") // desc STARTSWITH str('ab')
232
+ */
233
+ declare function startsWith(name: string, prefix: string | StrValue): StartsWithNode;
234
+ /**
235
+ * The attribute is set, with any type.
236
+ *
237
+ * @throws {InvalidPredicateError} If given a system attribute — every entity has all of them, so
238
+ * the test would be a constant.
239
+ *
240
+ * @example
241
+ * exists("reviewedBy") // EXISTS(reviewedBy)
242
+ * not(exists("closedAt")) // NOT EXISTS(closedAt)
243
+ */
244
+ declare function exists(name: string): ExistsNode;
245
+ /**
246
+ * The attribute is set with exactly this type, whatever its value.
247
+ *
248
+ * Useful when the same name is written with different types across entities — a comparison already
249
+ * asserts the type, so this is for asking about the type alone.
250
+ *
251
+ * @param tag - The type tag: `bool`, `i32`, `u256`, `dec`, `bytes32`, `str`, `addr` or `key`.
252
+ * @throws {InvalidPredicateError} If the tag is not a settable type, or the name is a system
253
+ * attribute (whose type is fixed).
254
+ *
255
+ * @example
256
+ * hasType("age", "i32") // TYPEOF(age) = i32
257
+ */
258
+ declare function hasType(name: string, tag: UserTypeTag): TypeOfNode;
259
+ /**
260
+ * The complement of an expression, evaluated against the set of live entities — unlike `!=`, it
261
+ * matches entities that never set the attribute at all.
262
+ *
263
+ * @example
264
+ * not(exists("closedAt")) // NOT EXISTS(closedAt)
265
+ * not(and(eq("a", 1), eq("b", 2))) // NOT (a = i32(1) AND b = i32(2))
266
+ */
267
+ declare function not(expression: Expression): NotNode;
268
+ /**
269
+ * All of these must hold.
270
+ *
271
+ * A single expression is returned unwrapped, so building a conjunction from a filtered list does
272
+ * not litter the query with redundant nesting.
273
+ *
274
+ * @param expressions - The expressions, as separate arguments or one array.
275
+ * @throws {InvalidPredicateError} If given nothing to combine.
276
+ *
277
+ * @example
278
+ * and(gte("level", i32(10)), eq("status", "open"))
279
+ * and(filters) // an array works too
280
+ */
281
+ declare function and(expressions: readonly Expression[]): Expression;
282
+ declare function and(...expressions: Expression[]): Expression;
283
+ /**
284
+ * At least one of these must hold.
285
+ *
286
+ * A single expression is returned unwrapped.
287
+ *
288
+ * @param expressions - The expressions, as separate arguments or one array.
289
+ * @throws {InvalidPredicateError} If given nothing to combine.
290
+ *
291
+ * @example
292
+ * or(eq("status", "open"), not(exists("closedAt")))
293
+ */
294
+ declare function or(expressions: readonly Expression[]): Expression;
295
+ declare function or(...expressions: Expression[]): Expression;
296
+ /**
297
+ * Renders an expression as the query string the node parses. Equivalent to `String(expression)`.
298
+ *
299
+ * Literals are always written tagged, even where the language would infer them: an untagged number
300
+ * defaults to `i32`, but spelling it `i32(10)` keeps the exact-type assertion visible in the query
301
+ * that actually went over the wire.
302
+ */
303
+ declare function render(expression: Expression): string;
304
+ //#endregion
305
+ //#region src/types/entity.d.ts
306
+ /**
307
+ * The fields an {@link Entity} can carry. Every one is optional: a query returns exactly the parts
308
+ * it selected, and `undefined` means "not asked for" rather than "empty".
309
+ */
310
+ type EntityFields = {
311
+ key?: Hex | undefined;
312
+ owner?: Hex | undefined;
313
+ creator?: Hex | undefined;
314
+ /** Block the entity was created at. */
315
+ createdAt?: bigint | undefined;
316
+ /** Block the entity was last patched at. */
317
+ updatedAt?: bigint | undefined;
318
+ /** Block the entity expires at. */
319
+ expiresAt?: bigint | undefined;
320
+ /** The immutable properties the entity was created with. */
321
+ creationFlags?: ResolvedCreationFlags | undefined;
322
+ contentType?: string | undefined;
323
+ payload?: Uint8Array | undefined;
324
+ /** Attribute names and types, with no values. */
325
+ attributeSchema?: AttributeSchema | undefined;
326
+ /** Attribute names, types and values. */
327
+ attributes?: Attributes | undefined;
328
+ };
329
+ /**
330
+ * An entity as it comes back from a query.
331
+ *
332
+ * Which fields are populated is decided by the query's selection — `select({ key: true })` gives
333
+ * back an entity carrying only its key. The static type of a `select()` result is narrowed to
334
+ * exactly the selected fields, so in typed code the `undefined`s here are not reachable.
335
+ */
336
+ declare class Entity implements EntityFields {
337
+ key: Hex | undefined;
338
+ owner: Hex | undefined;
339
+ creator: Hex | undefined;
340
+ createdAt: bigint | undefined;
341
+ updatedAt: bigint | undefined;
342
+ expiresAt: bigint | undefined;
343
+ creationFlags: ResolvedCreationFlags | undefined;
344
+ contentType: string | undefined;
345
+ payload: Uint8Array | undefined;
346
+ attributeSchema: AttributeSchema | undefined;
347
+ attributes: Attributes | undefined;
348
+ constructor(fields?: EntityFields);
349
+ /**
350
+ * The payload decoded as UTF-8 text.
351
+ *
352
+ * @throws If the payload was not selected, or is not valid UTF-8.
353
+ */
354
+ toText(): string;
355
+ /**
356
+ * The payload parsed as JSON.
357
+ *
358
+ * @throws If the payload was not selected, is empty, or is not valid JSON.
359
+ */
360
+ toJson(): any;
361
+ }
362
+ //#endregion
363
+ //#region src/query/selection.d.ts
364
+ /**
365
+ * The entity fields a query can select. Each maps one-to-one onto a field of {@link Entity}.
366
+ *
367
+ * `attributes` takes a third form beyond `true`/`false`: a map of names, to fetch only those.
368
+ */
369
+ type SelectionFields = {
370
+ key?: boolean;
371
+ owner?: boolean;
372
+ creator?: boolean;
373
+ createdAt?: boolean;
374
+ updatedAt?: boolean;
375
+ expiresAt?: boolean;
376
+ creationFlags?: boolean;
377
+ contentType?: boolean;
378
+ payload?: boolean;
379
+ /** Attribute names and types, without their values. */
380
+ attributeSchema?: boolean;
381
+ /** `true` for every attribute, or a map of names for a subset. */
382
+ attributes?: boolean | Readonly<Record<string, boolean>>;
383
+ };
384
+ /** The selection keys, in the order they are written into the RPC `select` object. */
385
+ declare const SELECTION_KEYS: readonly ["key", "owner", "creator", "createdAt", "updatedAt", "expiresAt", "creationFlags", "contentType", "payload", "attributeSchema", "attributes"];
386
+ /**
387
+ * Requires at least one property of `T` to be present.
388
+ * `{}` is not assignable, which is how `select({})` is rejected at compile time.
389
+ */
390
+ type AtLeastOne<T, K$1 extends keyof T = keyof T> = { [P in K$1]: Required<Pick<T, P>> & Partial<Omit<T, P>> }[K$1];
391
+ /**
392
+ * A non-empty entity selection — the object form accepted by `select()`. At least one field must be
393
+ * selected.
394
+ */
395
+ type EntitySelection = AtLeastOne<SelectionFields>;
396
+ /** Argument accepted by `select()` — a non-empty {@link EntitySelection}, or `"*"` for everything. */
397
+ type SelectArg = EntitySelection | "*";
398
+ /** Whether a selection value asks for the field: `true`, or a non-empty map of attribute names. */
399
+ type Selected<V> = V extends false | undefined ? false : true;
400
+ /**
401
+ * The result of a selection `S`: an {@link Entity} narrowed to exactly the selected fields (each
402
+ * non-`undefined`). The shape is flat — `select({ owner: true })` yields `{ owner: Hex }`, read as
403
+ * `entity.owner`. Accessing an unselected field is a compile error.
404
+ *
405
+ * `toText()` / `toJson()` operate on the payload, so they appear only when `payload` was selected —
406
+ * calling them otherwise would always throw.
407
+ */
408
+ type ProjectedEntity<S> = { readonly [K in keyof S as Selected<S[K]> extends true ? K : never]: K extends keyof Entity ? NonNullable<Entity[K]> : never } & (S extends {
409
+ payload: true;
410
+ } ? Pick<Entity, "toText" | "toJson"> : unknown);
411
+ /** A selection of every field, used to type the result of `select()` / `select("*")`. */
412
+ type AllSelected = { [K in (typeof SELECTION_KEYS)[number]]: true };
413
+ /** The projected entity type when everything is selected — every field, plus the methods. */
414
+ type FullEntity = ProjectedEntity<AllSelected>;
415
+ /**
416
+ * Converts a {@link SelectArg} into the RPC `select` object.
417
+ *
418
+ * Every field is opt-in — anything not explicitly selected is sent as `false`, including the key.
419
+ * Sending the full object rather than omitting the `false`s keeps what the SDK asked for legible in
420
+ * a request log, and pins the answer even if a node's defaults change.
421
+ *
422
+ * `undefined` or `"*"` selects everything.
423
+ *
424
+ * @throws If the selection asks for nothing.
425
+ *
426
+ * @example
427
+ * toRpcSelect() // everything
428
+ * toRpcSelect({ key: true }) // only the key
429
+ * toRpcSelect({ attributes: { projectId: true } }) // one named attribute
430
+ */
431
+ declare function toRpcSelect(selection?: SelectArg): RpcSelect;
432
+ //#endregion
433
+ export { startsWith as A, hasType as C, not as D, ne as E, RpcCreationFlags as F, RpcEntity as I, RpcQueryOptions as L, ArkivRpcSchema as M, RpcAttribute as N, or as O, RpcAttributeSchemaEntry as P, RpcSelect as R, gte as S, lte as T, TypeOfNode as _, SelectionFields as a, exists as b, EntityFields as c, ComparisonOperator as d, ExistsNode as f, StartsWithNode as g, OrNode as h, SelectArg as i, ArkivClient as j, render as k, AndNode as l, NotNode as m, FullEntity as n, toRpcSelect as o, Expression as p, ProjectedEntity as r, Entity as s, EntitySelection as t, ComparisonNode as u, and as v, lt as w, gt as x, eq as y };
434
+ //# sourceMappingURL=selection-C4UhsMOO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-C4UhsMOO.d.ts","names":[],"sources":["../src/types/rpcSchema.ts","../src/clients/baseClient.ts","../src/query/expression.ts","../src/types/entity.ts","../src/query/selection.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;AAWA;AAOA;AAQA;AAUA;AACQ,KA1BI,YAAA,GA0BJ;EACE,IAAA,EAAA,MAAA;EACE,IAAA,EAAA,MAAA;EACE,KAAA,EAAA,OAAA;CACA;;AAEI,KAzBN,uBAAA,GAyBM;EAEN,IAAA,EAAA,MAAA;EACQ,IAAA,EAAA,MAAA;CACL;;AAUf;AAcA;AAEY,KA/CA,gBAAA,GA+CA;EAED,QAAA,CAAA,EAAA,OAAA;EAED,uBAAA,CAAA,EAAA,OAAA;EAAG,GAAA,EAAA,MAAA;AAKb,CAAA;;;;;KA9CY,SAAA;QACJ;UACE;ECnCE,OAAA,CAAA,EDoCA,GCpCA;EACQ,SAAA,CAAA,E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