@arkiv-network/sdk 0.8.0 → 0.8.1-dev.1

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 (54) hide show
  1. package/dist/chains/index.d.cts +17 -17
  2. package/dist/entity/index.d.cts +1 -2
  3. package/dist/entity/index.d.ts +1 -2
  4. package/dist/{index-BGp2plHs.d.cts → index-BkqSnGJH.d.ts} +41 -2
  5. package/dist/index-BkqSnGJH.d.ts.map +1 -0
  6. package/dist/{index-DsM7EXu6.d.cts → index-C7fbakoI.d.cts} +2 -2
  7. package/dist/{index-DsM7EXu6.d.cts.map → index-C7fbakoI.d.cts.map} +1 -1
  8. package/dist/index-CIcHPx2j.d.cts.map +1 -1
  9. package/dist/{index-ezMZ2-JH.d.ts → index-CLhsFyVH.d.cts} +41 -2
  10. package/dist/index-CLhsFyVH.d.cts.map +1 -0
  11. package/dist/{index-CmEefH8_.d.ts → index-Cq6fa8AI.d.ts} +2 -2
  12. package/dist/{index-CmEefH8_.d.ts.map → index-Cq6fa8AI.d.ts.map} +1 -1
  13. package/dist/{changeOwnership-B0ar96ub.d.ts → index-DaNeJUw8.d.ts} +460 -27
  14. package/dist/index-DaNeJUw8.d.ts.map +1 -0
  15. package/dist/{changeOwnership-BofkLnXJ.d.cts → index-Dv16LO2s.d.cts} +460 -27
  16. package/dist/index-Dv16LO2s.d.cts.map +1 -0
  17. package/dist/index.cjs +35 -34
  18. package/dist/index.d.cts +6 -7
  19. package/dist/index.d.cts.map +1 -1
  20. package/dist/index.d.ts +6 -7
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +2 -2
  23. package/dist/{payload-CGvVPZQX.d.ts → payload-AfUfSctb.d.ts} +1 -1
  24. package/dist/{payload-CGvVPZQX.d.ts.map → payload-AfUfSctb.d.ts.map} +1 -1
  25. package/dist/{payload-Dfu30njp.d.cts → payload-D167BlJR.d.cts} +1 -1
  26. package/dist/{payload-Dfu30njp.d.cts.map → payload-D167BlJR.d.cts.map} +1 -1
  27. package/dist/query/index.cjs +22 -22
  28. package/dist/query/index.d.cts +6 -5
  29. package/dist/query/index.d.ts +6 -5
  30. package/dist/query/index.js +1 -1
  31. package/dist/{queryBuilder-MubNEvA4.js → query-Ber-lOJQ.js} +1 -1
  32. package/dist/query-Ber-lOJQ.js.map +1 -0
  33. package/dist/types/index.d.cts +2 -4
  34. package/dist/types/index.d.ts +2 -4
  35. package/dist/utils/index.d.cts +3 -3
  36. package/dist/utils/index.d.ts +3 -3
  37. package/package.json +1 -1
  38. package/src/index.ts +11 -0
  39. package/src/query/index.ts +2 -0
  40. package/src/utils/index.ts +1 -0
  41. package/dist/changeOwnership-B0ar96ub.d.ts.map +0 -1
  42. package/dist/changeOwnership-BofkLnXJ.d.cts.map +0 -1
  43. package/dist/flags-0Vl5rrHq.d.cts +0 -41
  44. package/dist/flags-0Vl5rrHq.d.cts.map +0 -1
  45. package/dist/flags-wmcMoAnN.d.ts +0 -41
  46. package/dist/flags-wmcMoAnN.d.ts.map +0 -1
  47. package/dist/index-BGp2plHs.d.cts.map +0 -1
  48. package/dist/index-ezMZ2-JH.d.ts.map +0 -1
  49. package/dist/queryBuilder-MubNEvA4.js.map +0 -1
  50. package/dist/selection-Bv8_o-7i.d.cts +0 -441
  51. package/dist/selection-Bv8_o-7i.d.cts.map +0 -1
  52. package/dist/selection-ox7zdtVm.d.ts +0 -441
  53. package/dist/selection-ox7zdtVm.d.ts.map +0 -1
  54. /package/dist/{queryBuilder-BmRTaoJ8.cjs → query-9oojUdM7.cjs} +0 -0
@@ -1,10 +1,111 @@
1
- import { p as AttributeInputs } from "./index-Cd2aaWme.js";
2
- import { a as SaltInput } from "./index-ezMZ2-JH.js";
1
+ import { C as ValueInput, G as StrValue, R as ArkivValue, Y as UserTypeTag, h as Attributes, m as AttributeSchema, p as AttributeInputs } from "./index-Cd2aaWme.js";
2
+ import { a as SaltInput, c as CreationFlags, l as ResolvedCreationFlags } from "./index-BkqSnGJH.js";
3
3
  import { n as Expiry } from "./expiry-BxOlvVWC.js";
4
- import { n as ResolvedCreationFlags, t as CreationFlags } from "./flags-wmcMoAnN.js";
5
- import { i as SelectArg, k as Entity } from "./selection-ox7zdtVm.js";
6
- import { Address, Hash, Hex } from "viem";
4
+ import { Account, Address, Chain, Client, Hash, Hex, RpcSchema, Transport } from "viem";
7
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
+ /** The second parameter of `arkiv_query` — what to return, and where in the results to start. */
73
+ type RpcQueryOptions = {
74
+ /** Block height to read at, as a hex quantity. Defaults to the head, and must be within the node's retained range. */
75
+ atBlock?: Hex;
76
+ /** What to return. Defaults to `{ key: true }`. */
77
+ select?: RpcSelect;
78
+ /** Page size, as a hex quantity. Node maximum is 200. */
79
+ limit?: Hex;
80
+ /** Opaque cursor from a previous response; bound to that query, block and selection. */
81
+ cursor?: string;
82
+ };
83
+ type ArkivRpcSchema = [{
84
+ Method: "arkiv_query";
85
+ Parameters?: [query: string, queryOptions?: RpcQueryOptions];
86
+ ReturnType: {
87
+ data: RpcEntity[];
88
+ blockNumber: Hex;
89
+ /** Omitted when no pages remain. */
90
+ cursor?: string;
91
+ };
92
+ }, {
93
+ Method: "arkiv_getBlockTiming";
94
+ Parameters?: [];
95
+ ReturnType: {
96
+ current_block: bigint;
97
+ current_block_time: number;
98
+ duration: number;
99
+ };
100
+ }, {
101
+ Method: "arkiv_getEntityCount";
102
+ Parameters?: [];
103
+ ReturnType: number;
104
+ }];
105
+ //#endregion
106
+ //#region src/clients/baseClient.d.ts
107
+ 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>;
108
+ //#endregion
8
109
  //#region src/actions/public/getBlockTiming.d.ts
9
110
  type GetBlockTimingReturnType = {
10
111
  currentBlock: bigint;
@@ -101,6 +202,338 @@ type Repeat<T, TLength extends number, TAcc extends T[] = []> = number extends T
101
202
  * })
102
203
  */
103
204
  //#endregion
205
+ //#region src/query/expression.d.ts
206
+ /**
207
+ * The comparison operators the query language defines. `<` `<=` `>` `>=` need an ordered type —
208
+ * `i32`, `u64`, `u256` or `dec`; every type accepts `=` and `!=`.
209
+ */
210
+ type ComparisonOperator = "=" | "!=" | "<" | "<=" | ">" | ">=";
211
+ /** A comparison between an attribute and a typed literal. */
212
+ type ComparisonNode = {
213
+ readonly kind: "comparison";
214
+ readonly name: string;
215
+ readonly operator: ComparisonOperator;
216
+ readonly value: ArkivValue;
217
+ };
218
+ /** A `STARTSWITH` prefix test, the language's only pattern operator. */
219
+ type StartsWithNode = {
220
+ readonly kind: "startsWith";
221
+ readonly name: string;
222
+ readonly value: StrValue;
223
+ };
224
+ /** An `EXISTS(name)` test — true when the attribute is set with any type. */
225
+ type ExistsNode = {
226
+ readonly kind: "exists";
227
+ readonly name: string;
228
+ };
229
+ /** A `TYPEOF(name) = tag` test. */
230
+ type TypeOfNode = {
231
+ readonly kind: "typeOf";
232
+ readonly name: string;
233
+ readonly tag: UserTypeTag;
234
+ };
235
+ /** The complement of an expression, evaluated against the active-entity set. */
236
+ type NotNode = {
237
+ readonly kind: "not";
238
+ readonly expression: Expression;
239
+ };
240
+ /** A conjunction. */
241
+ type AndNode = {
242
+ readonly kind: "and";
243
+ readonly expressions: readonly Expression[];
244
+ };
245
+ /** A disjunction. */
246
+ type OrNode = {
247
+ readonly kind: "or";
248
+ readonly expressions: readonly Expression[];
249
+ };
250
+ /**
251
+ * A query expression: an immutable tree built by the combinators below, whose `toString()` is the
252
+ * exact query string sent over the wire.
253
+ *
254
+ * @example
255
+ * const q = and(gte("level", i32(10)), or(eq("status", str("open")), not(exists("closedAt"))))
256
+ * String(q) // level >= i32(10) AND (status = str('open') OR NOT EXISTS(closedAt))
257
+ */
258
+ type Expression = ComparisonNode | StartsWithNode | ExistsNode | TypeOfNode | NotNode | AndNode | OrNode;
259
+ /**
260
+ * Attribute equals value — set with this exact type, and holding this value.
261
+ *
262
+ * Bare booleans, numbers, bigints and strings take the same default types they take when written
263
+ * (`number` is an `i32`, `bigint` a `u256`, `string` a `str`); anything else names its type.
264
+ *
265
+ * @throws {InvalidPredicateError} If the name is not a queryable attribute, or a system attribute
266
+ * is compared against the wrong type.
267
+ *
268
+ * @example
269
+ * eq("status", str("open")) // status = str('open')
270
+ * eq("flagged", true) // flagged = true
271
+ * eq("$owner", addr(account)) // $owner = addr(0xd8dA…)
272
+ */
273
+ declare function eq(name: string, value: ValueInput): ComparisonNode;
274
+ /**
275
+ * Attribute is set with this type and holds a **different** value.
276
+ *
277
+ * This is typed value-negation, not the complement: an entity that never set the attribute, or set
278
+ * it with another type, does not match. Use `not(eq(...))` for the full complement.
279
+ *
280
+ * @example
281
+ * ne("status", str("closed")) // status != str('closed')
282
+ * not(eq("status", str("closed"))) // NOT status = str('closed') — also matches entities with no status
283
+ */
284
+ declare function ne(name: string, value: ValueInput): ComparisonNode;
285
+ /**
286
+ * Attribute is greater than value. Ordered types only (`i32`, `u64`, `u256`, `dec`).
287
+ *
288
+ * @throws {UnsupportedOperatorError} If the value's type carries no ordered index.
289
+ *
290
+ * @example
291
+ * gt("level", i32(10)) // level > i32(10)
292
+ * gt("$expiresAt", u64(1_200_000n)) // $expiresAt > u64(1200000)
293
+ */
294
+ declare function gt(name: string, value: ValueInput): ComparisonNode;
295
+ /**
296
+ * Attribute is greater than or equal to value. Ordered types only (`i32`, `u64`, `u256`, `dec`).
297
+ *
298
+ * @throws {UnsupportedOperatorError} If the value's type carries no ordered index.
299
+ *
300
+ * @example
301
+ * gte("score", dec("3.5")) // score >= dec(3.5)
302
+ */
303
+ declare function gte(name: string, value: ValueInput): ComparisonNode;
304
+ /**
305
+ * Attribute is less than value. Ordered types only (`i32`, `u64`, `u256`, `dec`).
306
+ *
307
+ * @throws {UnsupportedOperatorError} If the value's type carries no ordered index.
308
+ *
309
+ * @example
310
+ * lt("level", i32(10)) // level < i32(10)
311
+ */
312
+ declare function lt(name: string, value: ValueInput): ComparisonNode;
313
+ /**
314
+ * Attribute is less than or equal to value. Ordered types only (`i32`, `u64`, `u256`, `dec`).
315
+ *
316
+ * @throws {UnsupportedOperatorError} If the value's type carries no ordered index.
317
+ *
318
+ * @example
319
+ * lte("score", dec("5")) // score <= dec(5)
320
+ */
321
+ declare function lte(name: string, value: ValueInput): ComparisonNode;
322
+ /**
323
+ * Attribute is a `str` beginning with this prefix.
324
+ *
325
+ * The match is on **raw UTF-8 bytes** with no normalization — it is the index encoding, so
326
+ * `startsWith("name", "é")` matches only the same byte sequence, not another normal form of it.
327
+ *
328
+ * @param prefix - The prefix, as a bare string or a `str` value.
329
+ * @throws {InvalidPredicateError} If the name is not a queryable attribute.
330
+ * @throws {UnsupportedOperatorError} If given a value that is not a `str`, or a system attribute
331
+ * (none of which is a `str`).
332
+ *
333
+ * @example
334
+ * startsWith("desc", "ab") // desc STARTSWITH str('ab')
335
+ */
336
+ declare function startsWith(name: string, prefix: string | StrValue): StartsWithNode;
337
+ /**
338
+ * The attribute is set, with any type.
339
+ *
340
+ * @throws {InvalidPredicateError} If given a system attribute — every entity has all of them, so
341
+ * the test would be a constant.
342
+ *
343
+ * @example
344
+ * exists("reviewedBy") // EXISTS(reviewedBy)
345
+ * not(exists("closedAt")) // NOT EXISTS(closedAt)
346
+ */
347
+ declare function exists(name: string): ExistsNode;
348
+ /**
349
+ * The attribute is set with exactly this type, whatever its value.
350
+ *
351
+ * Useful when the same name is written with different types across entities — a comparison already
352
+ * asserts the type, so this is for asking about the type alone.
353
+ *
354
+ * @param tag - The type tag: `bool`, `i32`, `u64`, `u256`, `dec`, `bytes32`, `str`, `addr` or
355
+ * `key`.
356
+ * @throws {InvalidPredicateError} If the tag is not a settable type, or the name is a system
357
+ * attribute (whose type is fixed).
358
+ *
359
+ * @example
360
+ * hasType("age", "i32") // TYPEOF(age) = i32
361
+ */
362
+ declare function hasType(name: string, tag: UserTypeTag): TypeOfNode;
363
+ /**
364
+ * The complement of an expression, evaluated against the set of live entities — unlike `!=`, it
365
+ * matches entities that never set the attribute at all.
366
+ *
367
+ * @example
368
+ * not(exists("closedAt")) // NOT EXISTS(closedAt)
369
+ * not(and(eq("a", 1), eq("b", 2))) // NOT (a = i32(1) AND b = i32(2))
370
+ */
371
+ declare function not(expression: Expression): NotNode;
372
+ /**
373
+ * All of these must hold.
374
+ *
375
+ * A single expression is returned unwrapped, so building a conjunction from a filtered list does
376
+ * not litter the query with redundant nesting.
377
+ *
378
+ * @param expressions - The expressions, as separate arguments or one array.
379
+ * @throws {InvalidPredicateError} If given nothing to combine.
380
+ *
381
+ * @example
382
+ * and(gte("level", i32(10)), eq("status", "open"))
383
+ * and(filters) // an array works too
384
+ */
385
+ declare function and(expressions: readonly Expression[]): Expression;
386
+ declare function and(...expressions: Expression[]): Expression;
387
+ /**
388
+ * At least one of these must hold.
389
+ *
390
+ * A single expression is returned unwrapped.
391
+ *
392
+ * @param expressions - The expressions, as separate arguments or one array.
393
+ * @throws {InvalidPredicateError} If given nothing to combine.
394
+ *
395
+ * @example
396
+ * or(eq("status", "open"), not(exists("closedAt")))
397
+ */
398
+ declare function or(expressions: readonly Expression[]): Expression;
399
+ declare function or(...expressions: Expression[]): Expression;
400
+ /**
401
+ * Renders an expression as the query string the node parses. Equivalent to `String(expression)`.
402
+ *
403
+ * Literals are always written tagged, even where the language would infer them: an untagged number
404
+ * defaults to `i32`, but spelling it `i32(10)` keeps the exact-type assertion visible in the query
405
+ * that actually went over the wire.
406
+ */
407
+ declare function render(expression: Expression): string;
408
+ //#endregion
409
+ //#region src/types/entity.d.ts
410
+ /**
411
+ * The fields an {@link Entity} can carry. Every one is optional: a query returns exactly the parts
412
+ * it selected, and `undefined` means "not asked for" rather than "empty".
413
+ */
414
+ type EntityFields = {
415
+ key?: Hex | undefined;
416
+ owner?: Hex | undefined;
417
+ creator?: Hex | undefined;
418
+ /** Block the entity was created at. */
419
+ createdAt?: bigint | undefined;
420
+ /** Block the entity was last patched at. */
421
+ updatedAt?: bigint | undefined;
422
+ /** Block the entity expires at. */
423
+ expiresAt?: bigint | undefined;
424
+ /** The immutable properties the entity was created with. */
425
+ creationFlags?: ResolvedCreationFlags | undefined;
426
+ contentType?: string | undefined;
427
+ payload?: Uint8Array | undefined;
428
+ /** Attribute names and types, with no values. */
429
+ attributeSchema?: AttributeSchema | undefined;
430
+ /** Attribute names, types and values. */
431
+ attributes?: Attributes | undefined;
432
+ };
433
+ /**
434
+ * An entity as it comes back from a query.
435
+ *
436
+ * Which fields are populated is decided by the query's selection — `select({ key: true })` gives
437
+ * back an entity carrying only its key. The static type of a `select()` result is narrowed to
438
+ * exactly the selected fields, so in typed code the `undefined`s here are not reachable.
439
+ */
440
+ declare class Entity implements EntityFields {
441
+ key: Hex | undefined;
442
+ owner: Hex | undefined;
443
+ creator: Hex | undefined;
444
+ createdAt: bigint | undefined;
445
+ updatedAt: bigint | undefined;
446
+ expiresAt: bigint | undefined;
447
+ creationFlags: ResolvedCreationFlags | undefined;
448
+ contentType: string | undefined;
449
+ payload: Uint8Array | undefined;
450
+ attributeSchema: AttributeSchema | undefined;
451
+ attributes: Attributes | undefined;
452
+ constructor(fields?: EntityFields);
453
+ /**
454
+ * The payload decoded as UTF-8 text.
455
+ *
456
+ * @throws If the payload was not selected, or is not valid UTF-8.
457
+ */
458
+ toText(): string;
459
+ /**
460
+ * The payload parsed as JSON.
461
+ *
462
+ * @throws If the payload was not selected, is empty, or is not valid JSON.
463
+ */
464
+ toJson(): any;
465
+ }
466
+ //#endregion
467
+ //#region src/query/selection.d.ts
468
+ /**
469
+ * The entity fields a query can select. Each maps one-to-one onto a field of {@link Entity}.
470
+ *
471
+ * `attributes` takes a third form beyond `true`/`false`: a map of names, to fetch only those.
472
+ */
473
+ type SelectionFields = {
474
+ key?: boolean;
475
+ owner?: boolean;
476
+ creator?: boolean;
477
+ createdAt?: boolean;
478
+ updatedAt?: boolean;
479
+ expiresAt?: boolean;
480
+ creationFlags?: boolean;
481
+ contentType?: boolean;
482
+ payload?: boolean;
483
+ /** Attribute names and types, without their values. */
484
+ attributeSchema?: boolean;
485
+ /** `true` for every attribute, or a map of names for a subset. */
486
+ attributes?: boolean | Readonly<Record<string, boolean>>;
487
+ };
488
+ /** The selection keys, in the order they are written into the RPC `select` object. */
489
+ declare const SELECTION_KEYS: readonly ["key", "owner", "creator", "createdAt", "updatedAt", "expiresAt", "creationFlags", "contentType", "payload", "attributeSchema", "attributes"];
490
+ /**
491
+ * Requires at least one property of `T` to be present.
492
+ * `{}` is not assignable, which is how `select({})` is rejected at compile time.
493
+ */
494
+ type AtLeastOne<T, K$1 extends keyof T = keyof T> = { [P in K$1]: Required<Pick<T, P>> & Partial<Omit<T, P>> }[K$1];
495
+ /**
496
+ * A non-empty entity selection — the object form accepted by `select()`. At least one field must be
497
+ * selected.
498
+ */
499
+ type EntitySelection = AtLeastOne<SelectionFields>;
500
+ /** Argument accepted by `select()` — a non-empty {@link EntitySelection}, or `"*"` for everything. */
501
+ type SelectArg = EntitySelection | "*";
502
+ /** Whether a selection value asks for the field: `true`, or a non-empty map of attribute names. */
503
+ type Selected<V> = V extends false | undefined ? false : true;
504
+ /**
505
+ * The result of a selection `S`: an {@link Entity} narrowed to exactly the selected fields (each
506
+ * non-`undefined`). The shape is flat — `select({ owner: true })` yields `{ owner: Hex }`, read as
507
+ * `entity.owner`. Accessing an unselected field is a compile error.
508
+ *
509
+ * `toText()` / `toJson()` operate on the payload, so they appear only when `payload` was selected —
510
+ * calling them otherwise would always throw.
511
+ */
512
+ 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 {
513
+ payload: true;
514
+ } ? Pick<Entity, "toText" | "toJson"> : unknown);
515
+ /** A selection of every field, used to type the result of `select()` / `select("*")`. */
516
+ type AllSelected = { [K in (typeof SELECTION_KEYS)[number]]: true };
517
+ /** The projected entity type when everything is selected — every field, plus the methods. */
518
+ type FullEntity = ProjectedEntity<AllSelected>;
519
+ /**
520
+ * Converts a {@link SelectArg} into the RPC `select` object.
521
+ *
522
+ * Every field is opt-in — anything not explicitly selected is sent as `false`, including the key.
523
+ * Sending the full object rather than omitting the `false`s keeps what the SDK asked for legible in
524
+ * a request log, and pins the answer even if a node's defaults change.
525
+ *
526
+ * `undefined` or `"*"` selects everything.
527
+ *
528
+ * @throws If the selection asks for nothing.
529
+ *
530
+ * @example
531
+ * toRpcSelect() // everything
532
+ * toRpcSelect({ key: true }) // only the key
533
+ * toRpcSelect({ attributes: { projectId: true } }) // one named attribute
534
+ */
535
+ declare function toRpcSelect(selection?: SelectArg): RpcSelect;
536
+ //#endregion
104
537
  //#region src/actions/public/query.d.ts
105
538
  type QueryOptions = {
106
539
  /** What to return. Defaults to everything. */
@@ -221,6 +654,26 @@ type WatchEntityEventsParameters = {
221
654
  pollingInterval?: number | undefined;
222
655
  };
223
656
  //#endregion
657
+ //#region src/actions/wallet/changeOwnership.d.ts
658
+ /**
659
+ * Parameters for the changeOwnership function.
660
+ * - entityKey: The key of the entity.
661
+ * - newOwner: The address of the new owner.
662
+ */
663
+ type ChangeOwnershipParameters = {
664
+ entityKey: Hex;
665
+ newOwner: Hex;
666
+ };
667
+ /**
668
+ * Return type for the changeOwnership function.
669
+ * - entityKey: The key of the entity.
670
+ * - txHash: The transaction hash.
671
+ */
672
+ type ChangeOwnershipReturnType = {
673
+ entityKey: Hex;
674
+ txHash: Hash;
675
+ };
676
+ //#endregion
224
677
  //#region src/actions/wallet/createEntity.d.ts
225
678
  /**
226
679
  * Parameters for creating an entity.
@@ -498,25 +951,5 @@ type TxParams = {
498
951
  gasPrice?: never;
499
952
  };
500
953
  //#endregion
501
- //#region src/actions/wallet/changeOwnership.d.ts
502
- /**
503
- * Parameters for the changeOwnership function.
504
- * - entityKey: The key of the entity.
505
- * - newOwner: The address of the new owner.
506
- */
507
- type ChangeOwnershipParameters = {
508
- entityKey: Hex;
509
- newOwner: Hex;
510
- };
511
- /**
512
- * Return type for the changeOwnership function.
513
- * - entityKey: The key of the entity.
514
- * - txHash: The transaction hash.
515
- */
516
- type ChangeOwnershipReturnType = {
517
- entityKey: Hex;
518
- txHash: Hash;
519
- };
520
- //#endregion
521
- export { QueryOptions as C, PredictedEntityKey as D, PredictEntityKeysReturnType as E, GetBlockTimingReturnType as O, OwnershipTransferredEvent as S, PredictEntityKeysParameters as T, EntityDeletedEvent as _, ExecuteBatchParameters as a, EntityPatchedEvent as b, PatchEntityReturnType as c, DeleteEntityParameters as d, DeleteEntityReturnType as f, EntityCreatedEvent as g, WatchEntityEventsParameters as h, MimeType as i, ExtendEntityParameters as l, CreateEntityReturnType as m, ChangeOwnershipReturnType as n, ExecuteBatchReturnType as o, CreateEntityParameters as p, TxParams as r, PatchEntityParameters as s, ChangeOwnershipParameters as t, ExtendEntityReturnType as u, EntityEvent as v, QueryReturnType as w, ExpiryExtendedEvent as x, EntityEventContext as y };
522
- //# sourceMappingURL=changeOwnership-B0ar96ub.d.ts.map
954
+ export { render as $, toRpcSelect as A, StartsWithNode as B, QueryOptions as C, ProjectedEntity as D, FullEntity as E, ComparisonOperator as F, gt as G, and as H, ExistsNode as I, lt as J, gte as K, Expression as L, EntityFields as M, AndNode as N, SelectArg as O, ComparisonNode as P, or as Q, NotNode as R, OwnershipTransferredEvent as S, EntitySelection as T, eq as U, TypeOfNode as V, exists as W, ne as X, lte as Y, not as Z, EntityDeletedEvent as _, PatchEntityParameters as a, ArkivClient as at, EntityPatchedEvent as b, ExtendEntityReturnType as c, RpcAttributeSchemaEntry as ct, CreateEntityParameters as d, RpcQueryOptions as dt, startsWith as et, CreateEntityReturnType as f, RpcSelect as ft, EntityCreatedEvent as g, WatchEntityEventsParameters as h, ExecuteBatchReturnType as i, GetBlockTimingReturnType as it, Entity as j, SelectionFields as k, DeleteEntityParameters as l, RpcCreationFlags as lt, ChangeOwnershipReturnType as m, MimeType as n, PredictEntityKeysReturnType as nt, PatchEntityReturnType as o, ArkivRpcSchema as ot, ChangeOwnershipParameters as p, hasType as q, ExecuteBatchParameters as r, PredictedEntityKey as rt, ExtendEntityParameters as s, RpcAttribute as st, TxParams as t, PredictEntityKeysParameters as tt, DeleteEntityReturnType as u, RpcEntity as ut, EntityEvent as v, QueryReturnType as w, ExpiryExtendedEvent as x, EntityEventContext as y, OrNode as z };
955
+ //# sourceMappingURL=index-DaNeJUw8.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DaNeJUw8.d.ts","names":[],"sources":["../src/types/rpcSchema.ts","../src/clients/baseClient.ts","../src/actions/public/getBlockTiming.ts","../src/actions/public/predictEntityKeys.ts","../src/query/expression.ts","../src/types/entity.ts","../src/query/selection.ts","../src/actions/public/query.ts","../src/types/events.ts","../src/actions/public/watchEntityEvents.ts","../src/actions/wallet/changeOwnership.ts","../src/actions/wallet/createEntity.ts","../src/actions/wallet/deleteEntity.ts","../src/actions/wallet/extendEntity.ts","../src/actions/wallet/patchEntity.ts","../src/actions/wallet/executeBatch.ts","../src/types/mimeTypes.ts","../src/types/txParams.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;AAeA;AAEY,KAhDA,gBAAA,GAgDA;EAED,QAAA,CAAA,EAAA,OAAA;EAED,uBAAA,CAAA,EAAA,OAAA;EAAG,GAAA,EAAA,MAAA;AAKb,CAAA;;;;;KA/CY,SAAA;QACJ;UACE;ECnCE,OAAA,CAAA,EDoCA,GCpCA;EACQ,SAAA,CAAA,EDoCN,GCpCM;EAAY,SAAA,CAAA,EDqClB,GCrCkB;EAChB,SAAA,CAAA,EDqCF,GCrCE;EAAoB,aAAA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