@arkiv-network/sdk 0.5.0-dev.3 → 0.5.0-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/index.cjs +34 -14
  2. package/dist/index.d.cts +397 -3
  3. package/dist/index.d.cts.map +1 -0
  4. package/dist/index.d.ts +397 -3
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +32 -16
  7. package/dist/index.js.map +1 -1
  8. package/dist/{payload-D3fyOBWn.d.cts → payload-CJN8fTvX.d.cts} +1 -1
  9. package/dist/{payload-D3fyOBWn.d.cts.map → payload-CJN8fTvX.d.cts.map} +1 -1
  10. package/dist/{payload-BI2NXPDf.d.ts → payload-Da9gJMG5.d.ts} +1 -1
  11. package/dist/{payload-BI2NXPDf.d.ts.map → payload-Da9gJMG5.d.ts.map} +1 -1
  12. package/dist/query/index.cjs +1 -4
  13. package/dist/query/index.d.cts +3 -16
  14. package/dist/query/index.d.ts +3 -16
  15. package/dist/query/index.js +2 -2
  16. package/dist/query-C0dwQYxT.d.cts +320 -0
  17. package/dist/query-C0dwQYxT.d.cts.map +1 -0
  18. package/dist/query-DybEplzd.d.ts +320 -0
  19. package/dist/query-DybEplzd.d.ts.map +1 -0
  20. package/dist/{queryBuilder-DMzL_J5-.js → queryBuilder-BkWFLc3Y.js} +12 -3
  21. package/dist/queryBuilder-BkWFLc3Y.js.map +1 -0
  22. package/dist/{queryBuilder-B7063DYt.cjs → queryBuilder-BozfXlzA.cjs} +16 -1
  23. package/dist/queryBuilder-DfetMC5Z.d.cts +317 -0
  24. package/dist/queryBuilder-DfetMC5Z.d.cts.map +1 -0
  25. package/dist/queryBuilder-XIln1aIM.d.ts +317 -0
  26. package/dist/queryBuilder-XIln1aIM.d.ts.map +1 -0
  27. package/dist/types/index.d.cts +2 -3
  28. package/dist/types/index.d.ts +2 -3
  29. package/dist/utils/index.d.cts +1 -1
  30. package/dist/utils/index.d.ts +1 -1
  31. package/package.json +1 -1
  32. package/src/actions/public/getEntity.ts +1 -1
  33. package/src/actions/public/query.ts +12 -1
  34. package/src/clients/decorators/arkivPublic.ts +5 -5
  35. package/src/clients/decorators/arkivWallet.ts +2 -2
  36. package/src/{query/errors.ts → errors.ts} +10 -0
  37. package/src/index.ts +2 -2
  38. package/src/query/index.ts +0 -1
  39. package/src/query/queryResult.test.ts +1 -1
  40. package/src/query/queryResult.ts +1 -1
  41. package/src/types/index.ts +1 -0
  42. package/src/types/rpcSchema.ts +1 -1
  43. package/src/utils/arkivTransactions.ts +31 -13
  44. package/dist/index-B801JxcV.d.ts +0 -1003
  45. package/dist/index-B801JxcV.d.ts.map +0 -1
  46. package/dist/index-DQGx5KZ6.d.cts +0 -1003
  47. package/dist/index-DQGx5KZ6.d.cts.map +0 -1
  48. package/dist/query/index.d.cts.map +0 -1
  49. package/dist/query/index.d.ts.map +0 -1
  50. package/dist/queryBuilder-DMzL_J5-.js.map +0 -1
@@ -0,0 +1,320 @@
1
+ import { Account, Chain, Client, Hash, Hex, RpcSchema, Transport } from "viem";
2
+
3
+ //#region src/types/mimeTypes.d.ts
4
+ type MimeType = "text/plain" | "text/html" | "text/css" | "text/csv" | "text/xml" | "text/javascript" | "application/json" | "application/xml" | "application/pdf" | "application/zip" | "application/gzip" | "application/octet-stream" | "application/javascript" | "application/x-www-form-urlencoded" | "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/svg+xml" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "video/mp4" | "video/webm" | "video/ogg" | "multipart/form-data";
5
+ //#endregion
6
+ //#region src/types/rpcSchema.d.ts
7
+ type RpcEntity = {
8
+ key: Hex;
9
+ contentType: MimeType;
10
+ value: string;
11
+ expiresAt: string;
12
+ createdAtBlock: string;
13
+ lastModifiedAtBlock: string;
14
+ transactionIndexInBlock: string;
15
+ operationIndexInTransaction: string;
16
+ owner: Hex;
17
+ stringAttributes?: [{
18
+ key: string;
19
+ value: string;
20
+ }];
21
+ numericAttributes?: [{
22
+ key: string;
23
+ value: number;
24
+ }];
25
+ };
26
+ type RpcOrderByAttribute = {
27
+ name: string;
28
+ type: "string" | "numeric";
29
+ desc: boolean;
30
+ };
31
+ type RpcQueryOptions = {
32
+ atBlock?: number;
33
+ includeData?: RpcIncludeData;
34
+ orderBy?: RpcOrderByAttribute[];
35
+ resultsPerPage?: number;
36
+ cursor?: string;
37
+ };
38
+ type RpcIncludeData = {
39
+ key?: boolean;
40
+ attributes?: boolean;
41
+ payload?: boolean;
42
+ contentType?: boolean;
43
+ expiration?: boolean;
44
+ owner?: boolean;
45
+ createdAtBlock?: boolean;
46
+ lastModifiedAtBlock?: boolean;
47
+ transactionIndexInBlock?: boolean;
48
+ operationIndexInTransaction?: boolean;
49
+ };
50
+ type ArkivRpcSchema = [{
51
+ Method: "arkiv_query";
52
+ Parameters?: [query: string, queryOptions?: RpcQueryOptions];
53
+ ReturnType: {
54
+ data: RpcEntity[];
55
+ blockNumber: number;
56
+ cursor: string;
57
+ };
58
+ }, {
59
+ Method: "arkiv_getBlockTiming";
60
+ Parameters?: [];
61
+ ReturnType: {
62
+ current_block: bigint;
63
+ current_block_time: number;
64
+ duration: number;
65
+ };
66
+ }, {
67
+ Method: "arkiv_getEntityCount";
68
+ Parameters?: [];
69
+ ReturnType: number;
70
+ }];
71
+ //#endregion
72
+ //#region src/clients/baseClient.d.ts
73
+ 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>;
74
+ //#endregion
75
+ //#region src/actions/public/getBlockTiming.d.ts
76
+ type GetBlockTimingReturnType = {
77
+ currentBlock: bigint;
78
+ currentBlockTime: number;
79
+ blockDuration: number;
80
+ };
81
+ //#endregion
82
+ //#region src/actions/wallet/changeOwnership.d.ts
83
+ /**
84
+ * Parameters for the deleteEntity function.
85
+ * - entityKey: The key of the entity to delete.
86
+ */
87
+ type ChangeOwnershipParameters = {
88
+ entityKey: Hex;
89
+ newOwner: Hex;
90
+ };
91
+ /**
92
+ * Return type for the deleteEntity function.
93
+ * - entityKey: The key of the entity.
94
+ * - txHash: The transaction hash.
95
+ */
96
+ type ChangeOwnershipReturnType = {
97
+ entityKey: Hex;
98
+ txHash: string;
99
+ };
100
+ //#endregion
101
+ //#region src/actions/wallet/createEntity.d.ts
102
+ /**
103
+ * Parameters for the createEntity function.
104
+ * - payload: The payload of the entity.
105
+ * - attributes: The attributes of the entity.
106
+ * - contentType: The content type of the entity.
107
+ * - expiresIn: The expires in of the entity in seconds.
108
+ */
109
+ type CreateEntityParameters = {
110
+ payload: Uint8Array;
111
+ attributes: Attribute[];
112
+ contentType: MimeType;
113
+ expiresIn: number;
114
+ };
115
+ /**
116
+ * Return type for the createEntity function.
117
+ * - entityKey: The key of the entity.
118
+ * - txHash: The transaction hash.
119
+ */
120
+ type CreateEntityReturnType = {
121
+ entityKey: Hex;
122
+ txHash: Hash;
123
+ };
124
+ //#endregion
125
+ //#region src/actions/wallet/deleteEntity.d.ts
126
+ /**
127
+ * Parameters for the deleteEntity function.
128
+ * - entityKey: The key of the entity to delete.
129
+ */
130
+ type DeleteEntityParameters = {
131
+ entityKey: Hex;
132
+ };
133
+ /**
134
+ * Return type for the deleteEntity function.
135
+ * - entityKey: The key of the entity.
136
+ * - txHash: The transaction hash.
137
+ */
138
+ type DeleteEntityReturnType = {
139
+ entityKey: Hex;
140
+ txHash: Hash;
141
+ };
142
+ //#endregion
143
+ //#region src/actions/wallet/extendEntity.d.ts
144
+ /**
145
+ * Parameters for the extendEntity function.
146
+ * - entityKey: The key of the entity to extend.
147
+ * - expiresIn: The expires in of the entity in seconds.
148
+ */
149
+ type ExtendEntityParameters = {
150
+ entityKey: Hex;
151
+ expiresIn: number;
152
+ };
153
+ /**
154
+ * Return type for the extendEntity function.
155
+ * - entityKey: The key of the entity.
156
+ * - txHash: The transaction hash.
157
+ */
158
+ type ExtendEntityReturnType = {
159
+ entityKey: Hex;
160
+ txHash: Hash;
161
+ };
162
+ //#endregion
163
+ //#region src/actions/wallet/updateEntity.d.ts
164
+ /**
165
+ * Parameters for the updateEntity function.
166
+ * - entityKey: The key of the entity to update.
167
+ * - payload: The payload of the entity.
168
+ * - attributes: The attributes of the entity.
169
+ * - contentType: The content type of the entity.
170
+ * - expiresIn: The expires in of the entity in seconds.
171
+ */
172
+ type UpdateEntityParameters = {
173
+ entityKey: Hex;
174
+ payload: Uint8Array;
175
+ attributes: Attribute[];
176
+ contentType: MimeType;
177
+ expiresIn: number;
178
+ };
179
+ /**
180
+ * Return type for the updateEntity function.
181
+ * - entityKey: The key of the entity.
182
+ * - txHash: The transaction hash.
183
+ */
184
+ type UpdateEntityReturnType = {
185
+ entityKey: Hex;
186
+ txHash: Hash;
187
+ };
188
+ //#endregion
189
+ //#region src/actions/wallet/mutateEntities.d.ts
190
+ /**
191
+ * Parameters for the mutateEntities function.
192
+ * - creates: The creates to perform.
193
+ * - updates: The updates to perform.
194
+ * - deletes: The deletes to perform.
195
+ * - extensions: The extensions to perform.
196
+ */
197
+ type MutateEntitiesParameters = {
198
+ creates?: CreateEntityParameters[];
199
+ updates?: UpdateEntityParameters[];
200
+ deletes?: DeleteEntityParameters[];
201
+ extensions?: ExtendEntityParameters[];
202
+ ownershipChanges?: ChangeOwnershipParameters[];
203
+ };
204
+ /**
205
+ * Return type for the mutateEntities function.
206
+ * - txHash: The transaction hash.
207
+ * - createdEntities: The keys of the created entities.
208
+ * - updatedEntities: The keys of the updated entities.
209
+ * - deletedEntities: The keys of the deleted entities.
210
+ * - extendedEntities: The keys of the extended entities.
211
+ * - ownershipChanges: The keys of the ownership changes.
212
+ */
213
+ type MutateEntitiesReturnType = {
214
+ txHash: Hash;
215
+ createdEntities: Hex[];
216
+ updatedEntities: Hex[];
217
+ deletedEntities: Hex[];
218
+ extendedEntities: Hex[];
219
+ ownershipChanges: Hex[];
220
+ };
221
+ //#endregion
222
+ //#region src/types/attributes.d.ts
223
+ type Attribute = {
224
+ key: string;
225
+ value: string | number;
226
+ };
227
+ //#endregion
228
+ //#region src/types/events.d.ts
229
+ type OnEntityCreatedEvent = {
230
+ entityKey: Hex;
231
+ owner: Hex;
232
+ expirationBlock: number;
233
+ cost: bigint;
234
+ };
235
+ type OnEntityUpdatedEvent = {
236
+ entityKey: Hex;
237
+ owner: Hex;
238
+ oldExpirationBlock: number;
239
+ newExpirationBlock: number;
240
+ cost: bigint;
241
+ };
242
+ type OnEntityDeletedEvent = {
243
+ entityKey: Hex;
244
+ owner: Hex;
245
+ };
246
+ type OnEntityExpiredEvent = {
247
+ entityKey: Hex;
248
+ owner: Hex;
249
+ };
250
+ type OnEntityExpiresInExtendedEvent = {
251
+ entityKey: Hex;
252
+ owner: Hex;
253
+ oldExpirationBlock: number;
254
+ newExpirationBlock: number;
255
+ cost: bigint;
256
+ };
257
+ type OnEntityOwnerChangedEvent = {
258
+ entityKey: Hex;
259
+ oldOwner: Hex;
260
+ newOwner: Hex;
261
+ };
262
+ //#endregion
263
+ //#region src/types/txParams.d.ts
264
+ type TxParams = {
265
+ gas?: bigint;
266
+ nonce?: number;
267
+ gasPrice?: bigint;
268
+ maxFeePerGas?: never;
269
+ maxPriorityFeePerGas?: never;
270
+ } | {
271
+ gas?: bigint;
272
+ nonce?: number;
273
+ maxFeePerGas?: bigint;
274
+ maxPriorityFeePerGas?: bigint;
275
+ gasPrice?: never;
276
+ };
277
+ //#endregion
278
+ //#region src/types/entity.d.ts
279
+ declare class Entity {
280
+ key: Hex;
281
+ contentType: MimeType | undefined;
282
+ owner: Hex | undefined;
283
+ expiresAtBlock: bigint | undefined;
284
+ createdAtBlock: bigint | undefined;
285
+ lastModifiedAtBlock: bigint | undefined;
286
+ transactionIndexInBlock: bigint | undefined;
287
+ operationIndexInTransaction: bigint | undefined;
288
+ payload: Uint8Array | undefined;
289
+ attributes: Attribute[];
290
+ constructor(key: Hex, contentType: MimeType | undefined, owner: Hex | undefined, expiresAtBlock: bigint | undefined, createdAtBlock: bigint | undefined, lastModifiedAtBlock: bigint | undefined, transactionIndexInBlock: bigint | undefined, operationIndexInTransaction: bigint | undefined, payload: Uint8Array | undefined, attributes: Attribute[]);
291
+ toText(): string;
292
+ toJson(): any;
293
+ }
294
+ //#endregion
295
+ //#region src/actions/public/query.d.ts
296
+ type QueryOptionsIncludeData = {
297
+ attributes?: boolean;
298
+ payload?: boolean;
299
+ metadata?: boolean;
300
+ };
301
+ type QueryOptionsOrderBy = {
302
+ name: string;
303
+ type: "string" | "numeric";
304
+ desc: "asc" | "desc";
305
+ };
306
+ type QueryOptions = {
307
+ includeData?: QueryOptionsIncludeData;
308
+ atBlock?: bigint;
309
+ orderBy?: QueryOptionsOrderBy[];
310
+ resultsPerPage?: number | undefined;
311
+ cursor?: string | undefined;
312
+ };
313
+ type QueryReturnType = {
314
+ entities: Entity[];
315
+ cursor: string | undefined;
316
+ blockNumber: bigint | undefined;
317
+ };
318
+ //#endregion
319
+ export { RpcIncludeData as A, CreateEntityReturnType as C, ArkivClient as D, GetBlockTimingReturnType as E, RpcQueryOptions as M, MimeType as N, ArkivRpcSchema as O, CreateEntityParameters as S, ChangeOwnershipReturnType as T, UpdateEntityReturnType as _, Entity as a, DeleteEntityParameters as b, OnEntityDeletedEvent as c, OnEntityOwnerChangedEvent as d, OnEntityUpdatedEvent as f, UpdateEntityParameters as g, MutateEntitiesReturnType as h, QueryReturnType as i, RpcOrderByAttribute as j, RpcEntity as k, OnEntityExpiredEvent as l, MutateEntitiesParameters as m, QueryOptionsIncludeData as n, TxParams as o, Attribute as p, QueryOptionsOrderBy as r, OnEntityCreatedEvent as s, QueryOptions as t, OnEntityExpiresInExtendedEvent as u, ExtendEntityParameters as v, ChangeOwnershipParameters as w, DeleteEntityReturnType as x, ExtendEntityReturnType as y };
320
+ //# sourceMappingURL=query-C0dwQYxT.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-C0dwQYxT.d.cts","names":[],"sources":["../src/types/mimeTypes.ts","../src/types/rpcSchema.ts","../src/clients/baseClient.ts","../src/actions/public/getBlockTiming.ts","../src/actions/wallet/changeOwnership.ts","../src/actions/wallet/createEntity.ts","../src/actions/wallet/deleteEntity.ts","../src/actions/wallet/extendEntity.ts","../src/actions/wallet/updateEntity.ts","../src/actions/wallet/mutateEntities.ts","../src/types/attributes.ts","../src/types/events.ts","../src/types/txParams.ts","../src/types/entity.ts","../src/actions/public/query.ts"],"sourcesContent":[],"mappings":";;;KAAY,QAAA;;;KCGA,SAAA;EDHA,GAAA,ECIL,GDJK;eCKG;;;EAFH,cAAS,EAAA,MAAA;EACd,mBAAA,EAAA,MAAA;EACQ,uBAAA,EAAA,MAAA;EAON,2BAAA,EAAA,MAAA;EAAG,KAAA,EAAH,GAAG;EAKA,gBAAA,CAAA,EAAA,CAAA;IAMA,GAAA,EAAA,MAAA;IAQA,KAAA,EAAA,MAAc;EAad,CAAA,CAAA;;;;ECzCA,CAAA,CAAA;CACQ;AAAY,KDapB,mBAAA,GCboB;EAChB,IAAA,EAAA,MAAA;EAAoB,IAAA,EAAA,QAAA,GAAA,SAAA;EACT,IAAA,EAAA,OAAA;CAAsB;AAC7B,KDgBR,eAAA,GChBQ;EAAwB,OAAA,CAAA,EAAA,MAAA;EACjC,WAAA,CAAA,EDiBK,cCjBL;EAAW,OAAA,CAAA,EDkBV,mBClBU,EAAA;EAAO,cAAA,CAAA,EAAA,MAAA;EAAkB,MAAA,CAAA,EAAA,MAAA;CAA3C;AAAM,KDuBE,cAAA,GCvBF;;;;ECHE,WAAA,CAAA,EAAA,OAAA;;;;ECOA,mBAAA,CAAA,EAAA,OAAyB;EAUzB,uBAAA,CAAA,EAAA,OAAyB;;;KHsBzB,cAAA,II7BA;EACD,MAAA,EAAA,aAAA;EACG,UAAA,CAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,YAAA,GJ8BkC,eI9BlC,CAAA;EACC,UAAA,EAAA;IAAQ,IAAA,EJ+B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1,320 @@
1
+ import { Account, Chain, Client, Hash, Hex, RpcSchema, Transport } from "viem";
2
+
3
+ //#region src/types/mimeTypes.d.ts
4
+ type MimeType = "text/plain" | "text/html" | "text/css" | "text/csv" | "text/xml" | "text/javascript" | "application/json" | "application/xml" | "application/pdf" | "application/zip" | "application/gzip" | "application/octet-stream" | "application/javascript" | "application/x-www-form-urlencoded" | "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/svg+xml" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "video/mp4" | "video/webm" | "video/ogg" | "multipart/form-data";
5
+ //#endregion
6
+ //#region src/types/rpcSchema.d.ts
7
+ type RpcEntity = {
8
+ key: Hex;
9
+ contentType: MimeType;
10
+ value: string;
11
+ expiresAt: string;
12
+ createdAtBlock: string;
13
+ lastModifiedAtBlock: string;
14
+ transactionIndexInBlock: string;
15
+ operationIndexInTransaction: string;
16
+ owner: Hex;
17
+ stringAttributes?: [{
18
+ key: string;
19
+ value: string;
20
+ }];
21
+ numericAttributes?: [{
22
+ key: string;
23
+ value: number;
24
+ }];
25
+ };
26
+ type RpcOrderByAttribute = {
27
+ name: string;
28
+ type: "string" | "numeric";
29
+ desc: boolean;
30
+ };
31
+ type RpcQueryOptions = {
32
+ atBlock?: number;
33
+ includeData?: RpcIncludeData;
34
+ orderBy?: RpcOrderByAttribute[];
35
+ resultsPerPage?: number;
36
+ cursor?: string;
37
+ };
38
+ type RpcIncludeData = {
39
+ key?: boolean;
40
+ attributes?: boolean;
41
+ payload?: boolean;
42
+ contentType?: boolean;
43
+ expiration?: boolean;
44
+ owner?: boolean;
45
+ createdAtBlock?: boolean;
46
+ lastModifiedAtBlock?: boolean;
47
+ transactionIndexInBlock?: boolean;
48
+ operationIndexInTransaction?: boolean;
49
+ };
50
+ type ArkivRpcSchema = [{
51
+ Method: "arkiv_query";
52
+ Parameters?: [query: string, queryOptions?: RpcQueryOptions];
53
+ ReturnType: {
54
+ data: RpcEntity[];
55
+ blockNumber: number;
56
+ cursor: string;
57
+ };
58
+ }, {
59
+ Method: "arkiv_getBlockTiming";
60
+ Parameters?: [];
61
+ ReturnType: {
62
+ current_block: bigint;
63
+ current_block_time: number;
64
+ duration: number;
65
+ };
66
+ }, {
67
+ Method: "arkiv_getEntityCount";
68
+ Parameters?: [];
69
+ ReturnType: number;
70
+ }];
71
+ //#endregion
72
+ //#region src/clients/baseClient.d.ts
73
+ 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>;
74
+ //#endregion
75
+ //#region src/actions/public/getBlockTiming.d.ts
76
+ type GetBlockTimingReturnType = {
77
+ currentBlock: bigint;
78
+ currentBlockTime: number;
79
+ blockDuration: number;
80
+ };
81
+ //#endregion
82
+ //#region src/actions/wallet/changeOwnership.d.ts
83
+ /**
84
+ * Parameters for the deleteEntity function.
85
+ * - entityKey: The key of the entity to delete.
86
+ */
87
+ type ChangeOwnershipParameters = {
88
+ entityKey: Hex;
89
+ newOwner: Hex;
90
+ };
91
+ /**
92
+ * Return type for the deleteEntity function.
93
+ * - entityKey: The key of the entity.
94
+ * - txHash: The transaction hash.
95
+ */
96
+ type ChangeOwnershipReturnType = {
97
+ entityKey: Hex;
98
+ txHash: string;
99
+ };
100
+ //#endregion
101
+ //#region src/actions/wallet/createEntity.d.ts
102
+ /**
103
+ * Parameters for the createEntity function.
104
+ * - payload: The payload of the entity.
105
+ * - attributes: The attributes of the entity.
106
+ * - contentType: The content type of the entity.
107
+ * - expiresIn: The expires in of the entity in seconds.
108
+ */
109
+ type CreateEntityParameters = {
110
+ payload: Uint8Array;
111
+ attributes: Attribute[];
112
+ contentType: MimeType;
113
+ expiresIn: number;
114
+ };
115
+ /**
116
+ * Return type for the createEntity function.
117
+ * - entityKey: The key of the entity.
118
+ * - txHash: The transaction hash.
119
+ */
120
+ type CreateEntityReturnType = {
121
+ entityKey: Hex;
122
+ txHash: Hash;
123
+ };
124
+ //#endregion
125
+ //#region src/actions/wallet/deleteEntity.d.ts
126
+ /**
127
+ * Parameters for the deleteEntity function.
128
+ * - entityKey: The key of the entity to delete.
129
+ */
130
+ type DeleteEntityParameters = {
131
+ entityKey: Hex;
132
+ };
133
+ /**
134
+ * Return type for the deleteEntity function.
135
+ * - entityKey: The key of the entity.
136
+ * - txHash: The transaction hash.
137
+ */
138
+ type DeleteEntityReturnType = {
139
+ entityKey: Hex;
140
+ txHash: Hash;
141
+ };
142
+ //#endregion
143
+ //#region src/actions/wallet/extendEntity.d.ts
144
+ /**
145
+ * Parameters for the extendEntity function.
146
+ * - entityKey: The key of the entity to extend.
147
+ * - expiresIn: The expires in of the entity in seconds.
148
+ */
149
+ type ExtendEntityParameters = {
150
+ entityKey: Hex;
151
+ expiresIn: number;
152
+ };
153
+ /**
154
+ * Return type for the extendEntity function.
155
+ * - entityKey: The key of the entity.
156
+ * - txHash: The transaction hash.
157
+ */
158
+ type ExtendEntityReturnType = {
159
+ entityKey: Hex;
160
+ txHash: Hash;
161
+ };
162
+ //#endregion
163
+ //#region src/actions/wallet/updateEntity.d.ts
164
+ /**
165
+ * Parameters for the updateEntity function.
166
+ * - entityKey: The key of the entity to update.
167
+ * - payload: The payload of the entity.
168
+ * - attributes: The attributes of the entity.
169
+ * - contentType: The content type of the entity.
170
+ * - expiresIn: The expires in of the entity in seconds.
171
+ */
172
+ type UpdateEntityParameters = {
173
+ entityKey: Hex;
174
+ payload: Uint8Array;
175
+ attributes: Attribute[];
176
+ contentType: MimeType;
177
+ expiresIn: number;
178
+ };
179
+ /**
180
+ * Return type for the updateEntity function.
181
+ * - entityKey: The key of the entity.
182
+ * - txHash: The transaction hash.
183
+ */
184
+ type UpdateEntityReturnType = {
185
+ entityKey: Hex;
186
+ txHash: Hash;
187
+ };
188
+ //#endregion
189
+ //#region src/actions/wallet/mutateEntities.d.ts
190
+ /**
191
+ * Parameters for the mutateEntities function.
192
+ * - creates: The creates to perform.
193
+ * - updates: The updates to perform.
194
+ * - deletes: The deletes to perform.
195
+ * - extensions: The extensions to perform.
196
+ */
197
+ type MutateEntitiesParameters = {
198
+ creates?: CreateEntityParameters[];
199
+ updates?: UpdateEntityParameters[];
200
+ deletes?: DeleteEntityParameters[];
201
+ extensions?: ExtendEntityParameters[];
202
+ ownershipChanges?: ChangeOwnershipParameters[];
203
+ };
204
+ /**
205
+ * Return type for the mutateEntities function.
206
+ * - txHash: The transaction hash.
207
+ * - createdEntities: The keys of the created entities.
208
+ * - updatedEntities: The keys of the updated entities.
209
+ * - deletedEntities: The keys of the deleted entities.
210
+ * - extendedEntities: The keys of the extended entities.
211
+ * - ownershipChanges: The keys of the ownership changes.
212
+ */
213
+ type MutateEntitiesReturnType = {
214
+ txHash: Hash;
215
+ createdEntities: Hex[];
216
+ updatedEntities: Hex[];
217
+ deletedEntities: Hex[];
218
+ extendedEntities: Hex[];
219
+ ownershipChanges: Hex[];
220
+ };
221
+ //#endregion
222
+ //#region src/types/attributes.d.ts
223
+ type Attribute = {
224
+ key: string;
225
+ value: string | number;
226
+ };
227
+ //#endregion
228
+ //#region src/types/events.d.ts
229
+ type OnEntityCreatedEvent = {
230
+ entityKey: Hex;
231
+ owner: Hex;
232
+ expirationBlock: number;
233
+ cost: bigint;
234
+ };
235
+ type OnEntityUpdatedEvent = {
236
+ entityKey: Hex;
237
+ owner: Hex;
238
+ oldExpirationBlock: number;
239
+ newExpirationBlock: number;
240
+ cost: bigint;
241
+ };
242
+ type OnEntityDeletedEvent = {
243
+ entityKey: Hex;
244
+ owner: Hex;
245
+ };
246
+ type OnEntityExpiredEvent = {
247
+ entityKey: Hex;
248
+ owner: Hex;
249
+ };
250
+ type OnEntityExpiresInExtendedEvent = {
251
+ entityKey: Hex;
252
+ owner: Hex;
253
+ oldExpirationBlock: number;
254
+ newExpirationBlock: number;
255
+ cost: bigint;
256
+ };
257
+ type OnEntityOwnerChangedEvent = {
258
+ entityKey: Hex;
259
+ oldOwner: Hex;
260
+ newOwner: Hex;
261
+ };
262
+ //#endregion
263
+ //#region src/types/txParams.d.ts
264
+ type TxParams = {
265
+ gas?: bigint;
266
+ nonce?: number;
267
+ gasPrice?: bigint;
268
+ maxFeePerGas?: never;
269
+ maxPriorityFeePerGas?: never;
270
+ } | {
271
+ gas?: bigint;
272
+ nonce?: number;
273
+ maxFeePerGas?: bigint;
274
+ maxPriorityFeePerGas?: bigint;
275
+ gasPrice?: never;
276
+ };
277
+ //#endregion
278
+ //#region src/types/entity.d.ts
279
+ declare class Entity {
280
+ key: Hex;
281
+ contentType: MimeType | undefined;
282
+ owner: Hex | undefined;
283
+ expiresAtBlock: bigint | undefined;
284
+ createdAtBlock: bigint | undefined;
285
+ lastModifiedAtBlock: bigint | undefined;
286
+ transactionIndexInBlock: bigint | undefined;
287
+ operationIndexInTransaction: bigint | undefined;
288
+ payload: Uint8Array | undefined;
289
+ attributes: Attribute[];
290
+ constructor(key: Hex, contentType: MimeType | undefined, owner: Hex | undefined, expiresAtBlock: bigint | undefined, createdAtBlock: bigint | undefined, lastModifiedAtBlock: bigint | undefined, transactionIndexInBlock: bigint | undefined, operationIndexInTransaction: bigint | undefined, payload: Uint8Array | undefined, attributes: Attribute[]);
291
+ toText(): string;
292
+ toJson(): any;
293
+ }
294
+ //#endregion
295
+ //#region src/actions/public/query.d.ts
296
+ type QueryOptionsIncludeData = {
297
+ attributes?: boolean;
298
+ payload?: boolean;
299
+ metadata?: boolean;
300
+ };
301
+ type QueryOptionsOrderBy = {
302
+ name: string;
303
+ type: "string" | "numeric";
304
+ desc: "asc" | "desc";
305
+ };
306
+ type QueryOptions = {
307
+ includeData?: QueryOptionsIncludeData;
308
+ atBlock?: bigint;
309
+ orderBy?: QueryOptionsOrderBy[];
310
+ resultsPerPage?: number | undefined;
311
+ cursor?: string | undefined;
312
+ };
313
+ type QueryReturnType = {
314
+ entities: Entity[];
315
+ cursor: string | undefined;
316
+ blockNumber: bigint | undefined;
317
+ };
318
+ //#endregion
319
+ export { RpcIncludeData as A, CreateEntityReturnType as C, ArkivClient as D, GetBlockTimingReturnType as E, RpcQueryOptions as M, MimeType as N, ArkivRpcSchema as O, CreateEntityParameters as S, ChangeOwnershipReturnType as T, UpdateEntityReturnType as _, Entity as a, DeleteEntityParameters as b, OnEntityDeletedEvent as c, OnEntityOwnerChangedEvent as d, OnEntityUpdatedEvent as f, UpdateEntityParameters as g, MutateEntitiesReturnType as h, QueryReturnType as i, RpcOrderByAttribute as j, RpcEntity as k, OnEntityExpiredEvent as l, MutateEntitiesParameters as m, QueryOptionsIncludeData as n, TxParams as o, Attribute as p, QueryOptionsOrderBy as r, OnEntityCreatedEvent as s, QueryOptions as t, OnEntityExpiresInExtendedEvent as u, ExtendEntityParameters as v, ChangeOwnershipParameters as w, DeleteEntityReturnType as x, ExtendEntityReturnType as y };
320
+ //# sourceMappingURL=query-DybEplzd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-DybEplzd.d.ts","names":[],"sources":["../src/types/mimeTypes.ts","../src/types/rpcSchema.ts","../src/clients/baseClient.ts","../src/actions/public/getBlockTiming.ts","../src/actions/wallet/changeOwnership.ts","../src/actions/wallet/createEntity.ts","../src/actions/wallet/deleteEntity.ts","../src/actions/wallet/extendEntity.ts","../src/actions/wallet/updateEntity.ts","../src/actions/wallet/mutateEntities.ts","../src/types/attributes.ts","../src/types/events.ts","../src/types/txParams.ts","../src/types/entity.ts","../src/actions/public/query.ts"],"sourcesContent":[],"mappings":";;;KAAY,QAAA;;;KCGA,SAAA;EDHA,GAAA,ECIL,GDJK;eCKG;;;EAFH,cAAS,EAAA,MAAA;EACd,mBAAA,EAAA,MAAA;EACQ,uBAAA,EAAA,MAAA;EAON,2BAAA,EAAA,MAAA;EAAG,KAAA,EAAH,GAAG;EAKA,gBAAA,CAAA,EAAA,CAAA;IAMA,GAAA,EAAA,MAAA;IAQA,KAAA,EAAA,MAAc;EAad,CAAA,CAAA;;;;ECzCA,CAAA,CAAA;C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GAAA,SAAA,EAAA,2BAAA,EAAA,MAAA,GAAA,SAAA,EAAA,OAAA,EYNb,UZMa,GAAA,SAAA,EAAA,UAAA,EYLV,SZKU,EAAA;EAad,MAAA,CAAA,CAAA,EAAA,MAAA;;;;;KavCA,uBAAA;EdLA,UAAA,CAAQ,EAAA,OAAA;;;;ACGR,KaOA,mBAAA,GbPS;EACd,IAAA,EAAA,MAAA;EACQ,IAAA,EAAA,QAAA,GAAA,SAAA;EAON,IAAA,EAAA,KAAA,GAAA,MAAA;CAAG;AAKA,KaDA,YAAA,GbCmB;EAMnB,WAAA,CAAA,EaNI,uBbQA;EAMJ,OAAA,CAAA,EAAA,MAAA;EAaA,OAAA,CAAA,EazBA,mBb4BoC,EAAA;;;;AC5CpC,KYqBA,eAAA,GZrBW;EACH,QAAA,EYqBR,MZrBQ,EAAA;EAAY,MAAA,EAAA,MAAA,GAAA,SAAA;EAChB,WAAA,EAAA,MAAA,GAAA,SAAA;CAAoB"}
@@ -113,20 +113,29 @@ const getLogger = (scope) => {
113
113
  };
114
114
 
115
115
  //#endregion
116
- //#region src/query/errors.ts
116
+ //#region src/errors.ts
117
+ var EntityMutationError = class extends Error {
118
+ constructor(message) {
119
+ super(message);
120
+ this.name = "EntityMutationError";
121
+ }
122
+ };
117
123
  var NoMoreResultsError = class extends Error {
118
124
  constructor() {
119
125
  super("No more results");
126
+ this.name = "NoMoreResultsError";
120
127
  }
121
128
  };
122
129
  var NoCursorOrLimitError = class extends Error {
123
130
  constructor() {
124
131
  super("Cursor and limit must be defined to fetch next");
132
+ this.name = "NoCursorOrLimitError";
125
133
  }
126
134
  };
127
135
  var NoEntityFoundError = class extends Error {
128
136
  constructor() {
129
137
  super("No entity found");
138
+ this.name = "NoEntityFoundError";
130
139
  }
131
140
  };
132
141
 
@@ -527,5 +536,5 @@ var QueryBuilder = class {
527
536
  };
528
537
 
529
538
  //#endregion
530
- export { entityFromRpcResult as a, NoMoreResultsError as c, QueryResult as i, getLogger as l, asc as n, NoCursorOrLimitError as o, desc as r, NoEntityFoundError as s, QueryBuilder as t };
531
- //# sourceMappingURL=queryBuilder-DMzL_J5-.js.map
539
+ export { entityFromRpcResult as a, NoEntityFoundError as c, QueryResult as i, NoMoreResultsError as l, asc as n, EntityMutationError as o, desc as r, NoCursorOrLimitError as s, QueryBuilder as t, getLogger as u };
540
+ //# sourceMappingURL=queryBuilder-BkWFLc3Y.js.map