wowok_agent 2.1.37 → 2.1.39

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 (39) hide show
  1. package/dist/index.d.ts +45 -2
  2. package/dist/index.js +1 -1319
  3. package/dist/schema/call/allocation.js +1 -27
  4. package/dist/schema/call/arbitration.js +1 -106
  5. package/dist/schema/call/base.js +1 -152
  6. package/dist/schema/call/contact.js +1 -41
  7. package/dist/schema/call/demand.js +1 -51
  8. package/dist/schema/call/guard.d.ts +6 -6
  9. package/dist/schema/call/guard.js +1 -67
  10. package/dist/schema/call/handler.d.ts +0 -45
  11. package/dist/schema/call/handler.js +1 -214
  12. package/dist/schema/call/index.js +1 -19
  13. package/dist/schema/call/machine.js +1 -164
  14. package/dist/schema/call/order.js +1 -39
  15. package/dist/schema/call/payment.js +1 -20
  16. package/dist/schema/call/permission.js +1 -118
  17. package/dist/schema/call/personal.js +1 -81
  18. package/dist/schema/call/progress.js +1 -28
  19. package/dist/schema/call/proof.js +1 -27
  20. package/dist/schema/call/repository.js +1 -85
  21. package/dist/schema/call/reward.d.ts +12 -0
  22. package/dist/schema/call/reward.js +1 -46
  23. package/dist/schema/call/service.js +1 -88
  24. package/dist/schema/call/treasury.d.ts +84 -0
  25. package/dist/schema/call/treasury.js +1 -76
  26. package/dist/schema/common/index.js +1 -395
  27. package/dist/schema/index.js +1 -8
  28. package/dist/schema/local/index.js +1 -913
  29. package/dist/schema/local/wip.js +1 -230
  30. package/dist/schema/messenger/index.d.ts +0 -2
  31. package/dist/schema/messenger/index.js +1 -479
  32. package/dist/schema/query/index.d.ts +155 -0
  33. package/dist/schema/query/index.js +1 -1256
  34. package/dist/schema/utils/guard-parser.js +1 -410
  35. package/dist/schema/utils/guard-query-utils.js +1 -22
  36. package/dist/schema/utils/node-parser.d.ts +0 -14
  37. package/dist/schema/utils/node-parser.js +1 -382
  38. package/dist/schema/utils/permission-index-utils.js +1 -10
  39. package/package.json +5 -3
@@ -1,913 +1 @@
1
- import { EntrypointSchema, ObjectOwnerSchema, NameOrAddressSchema, NameSchema, WowAddressSchema, TokenTypeSchema, FaucetNetworkSchema } from "../common/index.js";
2
- import { z } from "zod";
3
- // ============================================================
4
- // Constraint Constants - 约束常量
5
- // ============================================================
6
- export const LocalMarkConstraints = {
7
- nameMaxLength: 64,
8
- tagMaxLength: 64,
9
- tagMaxCount: 50,
10
- };
11
- export const LocalInfoConstraints = {
12
- nameMaxLength: 64,
13
- contentMaxLength: 300,
14
- contentMaxCount: 50,
15
- defaultName: "Address of delivery",
16
- };
17
- export const AccountConstraints = {
18
- nameMaxLength: 64,
19
- };
20
- // ============================================================
21
- // Error Result Schema - 错误返回结构
22
- // ============================================================
23
- export const ErrorResultSchema = z
24
- .object({
25
- error: z.literal(true).describe("Always true for error responses"),
26
- code: z.string().optional().describe("Error code for programmatic handling"),
27
- message: z.string().describe("Human-readable error message"),
28
- details: z.record(z.string(), z.string()).optional().describe("Additional error context"),
29
- })
30
- .describe("Error response structure");
31
- // Helper type for creating union result types
32
- export const createResultSchema = (successSchema) => z.union([
33
- z.object({ success: z.literal(true), data: successSchema }),
34
- ErrorResultSchema,
35
- ]);
36
- // ============================================================
37
- // CoinBalance schema
38
- export const CoinBalanceSchema = z.object({
39
- coinType: z.string().describe("Coin type"),
40
- coinObjectCount: z.number().describe("Coin object count"),
41
- totalBalance: z.string().describe("Total balance"),
42
- lockedBalance: z.record(z.string(), z.string()).describe("Locked balance"),
43
- }).describe("Coin balance");
44
- // Define CoinStruct schema
45
- export const CoinStructSchema = z.object({
46
- balance: z.string().describe("Coin balance"),
47
- coinObjectId: z.string().describe("Coin object ID"),
48
- coinType: z.string().describe("Coin type"),
49
- digest: z.string().describe("Transaction digest"),
50
- previousTransaction: z.string().describe("Previous transaction digest"),
51
- version: z.string().describe("Coin object version"),
52
- }).describe("Coin object");
53
- // Define PaginatedCoins schema
54
- export const PaginatedCoinsSchema = z.object({
55
- data: z.array(CoinStructSchema).describe("Coin object list"),
56
- hasNextPage: z.boolean().describe("Whether there is a next page"),
57
- nextCursor: z.union([z.string(), z.null()]).optional().describe("Next query cursor"),
58
- }).describe("Paginated coin objects");
59
- // Define FaucetCoinInfo schema
60
- export const FaucetCoinInfoSchema = z.object({
61
- amount: z.number().describe("Coin amount"),
62
- id: z.string().describe("Coin ID"),
63
- transferTxDigest: z.string().describe("Transfer transaction digest"),
64
- }).describe("Testnet faucet coin info");
65
- // Define EventId schema
66
- export const EventIdSchema = z.object({
67
- eventSeq: z.string().describe("Event sequence number"),
68
- txDigest: z.string().describe("Transaction digest"),
69
- }).describe("Event ID");
70
- // Define WowEvent schema
71
- export const WowEventSchema = z.discriminatedUnion("bcsEncoding", [
72
- z.object({
73
- id: EventIdSchema.describe("Event ID"),
74
- packageId: z.string().describe("Package ID where event originated"),
75
- parsedJson: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).describe("Parsed JSON value of the event"),
76
- sender: z.string().describe("Sender's address"),
77
- timestampMs: z.union([z.string(), z.null()]).optional().describe("UTC timestamp in milliseconds since epoch"),
78
- transactionModule: z.string().describe("Module where event originated"),
79
- type: z.string().describe("Move event type"),
80
- bcs: z.string().describe("BCS encoded event"),
81
- bcsEncoding: z.literal("base64").describe("BCS encoding format"),
82
- }),
83
- z.object({
84
- id: EventIdSchema.describe("Event ID"),
85
- packageId: z.string().describe("Package ID where event originated"),
86
- parsedJson: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).describe("Parsed JSON value of the event"),
87
- sender: z.string().describe("Sender's ID"),
88
- timestampMs: z.union([z.string(), z.null()]).optional().describe("UTC timestamp in milliseconds since epoch"),
89
- transactionModule: z.string().describe("Module where event originated"),
90
- type: z.string().describe("Move event type"),
91
- bcs: z.string().describe("BCS encoded event"),
92
- bcsEncoding: z.literal("base58").describe("BCS encoding format"),
93
- }),
94
- ]).describe("Blockchain event");
95
- // Define BalanceChange schema
96
- export const BalanceChangeSchema = z.object({
97
- amount: z.string().describe("Balance change value, negative for spending, positive for receiving"),
98
- coinType: z.string().describe("Coin type"),
99
- owner: ObjectOwnerSchema.describe("Owner of the balance change"),
100
- }).describe("Balance change");
101
- // Define GasCostSummary schema
102
- export const GasCostSummarySchema = z.object({
103
- computationCost: z.string().describe("Computation/execution cost"),
104
- nonRefundableStorageFee: z.string().describe("Non-refundable storage fee"),
105
- storageCost: z.string().describe("Storage cost"),
106
- storageRebate: z.string().describe("Storage rebate"),
107
- }).describe("Transaction fee summary");
108
- // Define WowObjectRef schema
109
- export const WowObjectRefSchema = z.object({
110
- digest: z.string().describe("Base64 string of object digest"),
111
- objectId: z.string().describe("Hex code string representing object ID"),
112
- version: z.union([z.string(), z.number()]).describe("Object version"),
113
- }).describe("Wow object reference");
114
- // Define OwnedObjectRef schema
115
- export const OwnedObjectRefSchema = z.object({
116
- owner: ObjectOwnerSchema.describe("Owner"),
117
- reference: WowObjectRefSchema.describe("Object reference"),
118
- }).describe("Owned object reference");
119
- // Define TransactionBlockEffectsModifiedAtVersions schema
120
- export const TransactionBlockEffectsModifiedAtVersionsSchema = z.object({
121
- objectId: z.string().describe("Object ID"),
122
- sequenceNumber: z.string().describe("Sequence number"),
123
- }).describe("Transaction block effects modified versions");
124
- // Define WowMoveAbort schema
125
- export const WowMoveAbortSchema = z.object({
126
- error_code: z.union([z.string(), z.null()]).optional().describe("Error code"),
127
- function: z.union([z.string(), z.null()]).optional().describe("Function"),
128
- line: z.union([z.number(), z.null()]).optional().describe("Line number"),
129
- module_id: z.union([z.string(), z.null()]).optional().describe("Module ID"),
130
- }).describe("Wow Move abort");
131
- // Define ExecutionStatus schema
132
- export const ExecutionStatusSchema = z.object({
133
- status: z.union([z.literal("success"), z.literal("failure")]).describe("Execution status"),
134
- error: z.string().optional().describe("Error message"),
135
- }).describe("Execution status");
136
- // Define SuiGasData schema
137
- export const WowGasDataSchema = z.object({
138
- budget: z.string().describe("Budget"),
139
- owner: z.string().describe("Owner"),
140
- payment: z.array(WowObjectRefSchema).describe("Payment"),
141
- price: z.string().describe("Price"),
142
- }).describe("Wow gas data");
143
- // Define WowTransactionBlockKind schema (simplified version, only basic structure)
144
- export const WowTransactionBlockKindSchema = z.object({
145
- kind: z.string().describe("Transaction type"),
146
- }).passthrough().describe("Wow transaction block kind");
147
- // Define TransactionBlockData schema
148
- export const TransactionBlockDataSchema = z.object({
149
- gasData: WowGasDataSchema.describe("Gas data"),
150
- messageVersion: z.literal("v1").describe("Message version"),
151
- sender: z.string().describe("Sender"),
152
- transaction: WowTransactionBlockKindSchema.describe("Transaction"),
153
- }).describe("Transaction block data");
154
- // Define WowTransactionBlock schema
155
- export const WowTransactionBlockSchema = z.object({
156
- data: TransactionBlockDataSchema.describe("Transaction data"),
157
- txSignatures: z.array(z.string()).describe("Transaction signatures"),
158
- }).describe("Wow transaction block");
159
- // Define WowObjectChange schema
160
- export const WowObjectChangeSchema = z.discriminatedUnion("type", [
161
- z.object({
162
- type: z.literal("published"),
163
- digest: z.string().describe("Digest"),
164
- modules: z.array(z.string()).describe("Modules"),
165
- packageId: z.string().describe("Package ID"),
166
- version: z.union([z.string(), z.number()]).describe("Version"),
167
- }),
168
- z.object({
169
- type: z.literal("transferred"),
170
- digest: z.string().describe("Digest"),
171
- objectId: z.string().describe("Object ID"),
172
- objectType: z.string().describe("Object type"),
173
- recipient: ObjectOwnerSchema.describe("Recipient"),
174
- sender: z.string().describe("Sender ID"),
175
- version: z.union([z.string(), z.number()]).describe("Version"),
176
- }),
177
- z.object({
178
- type: z.literal("mutated"),
179
- digest: z.string().describe("Digest"),
180
- objectId: z.string().describe("Object ID"),
181
- objectType: z.string().describe("Object type"),
182
- owner: z.union([ObjectOwnerSchema, z.null()]).describe("Owner"),
183
- previousVersion: z.union([z.string(), z.number()]).describe("Previous version"),
184
- sender: z.string().describe("Sender"),
185
- version: z.union([z.string(), z.number()]).describe("Version"),
186
- }),
187
- z.object({
188
- type: z.literal("deleted"),
189
- objectId: z.string().describe("Object ID"),
190
- objectType: z.string().describe("Object type"),
191
- sender: z.string().describe("Sender"),
192
- version: z.union([z.string(), z.number()]).describe("Version"),
193
- }),
194
- z.object({
195
- type: z.literal("wrapped"),
196
- objectId: z.string().describe("Object ID"),
197
- objectType: z.string().describe("Object type"),
198
- sender: z.string().describe("Sender"),
199
- version: z.union([z.string(), z.number()]).describe("Version"),
200
- }),
201
- z.object({
202
- type: z.literal("created"),
203
- digest: z.string().describe("Digest"),
204
- objectId: z.string().describe("Object ID"),
205
- objectType: z.string().describe("Object type"),
206
- owner: z.union([ObjectOwnerSchema, z.null()]).describe("Owner"),
207
- sender: z.string().describe("Sender"),
208
- version: z.union([z.string(), z.number()]).describe("Version"),
209
- }),
210
- ]).describe("Object change information");
211
- // Define TransactionEffects schema
212
- export const TransactionEffectsSchema = z.object({
213
- abortError: z.union([WowTransactionBlockSchema, z.null()]).optional().describe("Abort error if transaction failed with abort code"),
214
- created: z.array(OwnedObjectRefSchema).optional().describe("ObjectRef and owner of newly created objects"),
215
- deleted: z.array(WowObjectRefSchema).optional().describe("Object references (old refs) of now deleted objects"),
216
- dependencies: z.array(z.string()).optional().describe("Set of transaction digests this transaction depends on"),
217
- eventsDigest: z.union([z.string(), z.null()]).optional().describe("Digest of events emitted during execution"),
218
- executedEpoch: z.union([z.string(), z.number()]).describe("Epoch in which this transaction was executed"),
219
- gasObject: OwnedObjectRefSchema.describe("Updated gas object reference"),
220
- gasUsed: GasCostSummarySchema.describe("Gas used"),
221
- messageVersion: z.literal("v1").describe("Message version"),
222
- modifiedAtVersions: z.array(TransactionBlockEffectsModifiedAtVersionsSchema).optional().describe("Version of each modified (mutated or deleted) object before this transaction modified it"),
223
- mutated: z.array(OwnedObjectRefSchema).optional().describe("ObjectRef and owner of mutated objects, including gas object"),
224
- sharedObjects: z.array(WowObjectRefSchema).optional().describe("Object references of shared objects used in this transaction"),
225
- status: ExecutionStatusSchema.describe("Execution status"),
226
- transactionDigest: z.string().describe("Transaction digest"),
227
- unwrapped: z.array(OwnedObjectRefSchema).optional().describe("ObjectRef and owner of objects unwrapped in this transaction"),
228
- unwrappedThenDeleted: z.array(WowObjectRefSchema).optional().describe("Object references of objects previously wrapped in other objects but now deleted"),
229
- wrapped: z.array(WowObjectRefSchema).optional().describe("Object references of objects now wrapped in other objects"),
230
- }).describe("Transaction effects");
231
- // Define WowTransactionBlockResponse schema
232
- export const WowTransactionBlockResponseSchema = z.object({
233
- balanceChanges: z.union([z.array(BalanceChangeSchema), z.null()]).optional().describe("Balance changes"),
234
- checkpoint: z.union([z.string(), z.null()]).optional().describe("Checkpoint number that this transaction is included in and thus completed"),
235
- confirmedLocalExecution: z.union([z.boolean(), z.null()]).optional().describe("Confirmed local execution"),
236
- digest: z.string().describe("Transaction digest"),
237
- effects: z.union([TransactionEffectsSchema, z.null()]).optional().describe("Transaction effects"),
238
- errors: z.array(z.string()).optional().describe("Error messages"),
239
- events: z.union([z.array(WowEventSchema), z.null()]).optional().describe("Events"),
240
- objectChanges: z.union([z.array(WowObjectChangeSchema), z.null()]).optional().describe("Object changes"),
241
- rawEffects: z.array(z.number()).optional().describe("Raw effects"),
242
- rawTransaction: z.string().optional().describe("Raw transaction"),
243
- timestampMs: z.union([z.string(), z.null()]).optional().describe("Timestamp"),
244
- transaction: z.union([WowTransactionBlockSchema, z.null()]).optional().describe("Transaction input data"),
245
- }).describe("Wow transaction block response");
246
- // Define MarkParam schema
247
- export const MarkParamSchema = z
248
- .object({
249
- name: z
250
- .object({
251
- value: z
252
- .string()
253
- .max(LocalMarkConstraints.nameMaxLength, `Mark name exceeds maximum length of ${LocalMarkConstraints.nameMaxLength} bcs characters`)
254
- .describe(`Mark name value (max ${LocalMarkConstraints.nameMaxLength} bcs characters)`),
255
- replaceExistName: z
256
- .boolean()
257
- .optional()
258
- .default(false)
259
- .describe("If true, replace existing mark with same name; if false (default), throw error when name exists"),
260
- })
261
- .optional()
262
- .describe("Mark naming configuration"),
263
- address: WowAddressSchema,
264
- tags: z
265
- .array(z
266
- .string()
267
- .max(LocalMarkConstraints.tagMaxLength, `Tag exceeds maximum length of ${LocalMarkConstraints.tagMaxLength} bcs characters`))
268
- .max(LocalMarkConstraints.tagMaxCount, `Tag count exceeds maximum of ${LocalMarkConstraints.tagMaxCount}`)
269
- .optional()
270
- .describe(`Tags for categorization (max ${LocalMarkConstraints.tagMaxCount} tags, each max ${LocalMarkConstraints.tagMaxLength} bcs characters)`),
271
- })
272
- .describe("LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. For public on-chain marks, use the 'personal' tool instead.");
273
- // Define MarkData schema
274
- export const MarkDataSchema = z
275
- .object({
276
- name: z
277
- .string()
278
- .max(LocalMarkConstraints.nameMaxLength, `Mark name exceeds maximum length of ${LocalMarkConstraints.nameMaxLength} bcs characters`)
279
- .optional()
280
- .describe(`Mark name (max ${LocalMarkConstraints.nameMaxLength} bcs characters)`),
281
- address: WowAddressSchema,
282
- tags: z
283
- .array(z.string().max(LocalMarkConstraints.tagMaxLength, `Tag exceeds maximum length of ${LocalMarkConstraints.tagMaxLength} bcs characters`))
284
- .max(LocalMarkConstraints.tagMaxCount, `Tag count exceeds maximum of ${LocalMarkConstraints.tagMaxCount}`)
285
- .optional()
286
- .describe(`Tags for categorization (max ${LocalMarkConstraints.tagMaxCount} tags, each max ${LocalMarkConstraints.tagMaxLength} bcs characters)`),
287
- createdAt: z
288
- .number()
289
- .optional()
290
- .describe("Unix timestamp (ms) when this mark was created"),
291
- updatedAt: z
292
- .number()
293
- .optional()
294
- .describe("Unix timestamp (ms) when this mark was last modified"),
295
- })
296
- .describe("LOCAL PRIVATE: Local mark data structure for storing address names and tags privately on your device. This data is NEVER published to the blockchain.");
297
- // Define InfoDataInner schema
298
- export const InfoDataInnerSchema = z
299
- .object({
300
- default: z
301
- .string()
302
- .max(LocalInfoConstraints.contentMaxLength, `Default value exceeds maximum length of ${LocalInfoConstraints.contentMaxLength} bcs characters`)
303
- .describe(`Primary/default value for this info (max ${LocalInfoConstraints.contentMaxLength} bcs characters)`),
304
- contents: z
305
- .array(z.string().max(LocalInfoConstraints.contentMaxLength, `Content item exceeds maximum length of ${LocalInfoConstraints.contentMaxLength} bcs characters`))
306
- .max(LocalInfoConstraints.contentMaxCount, `Content count exceeds maximum of ${LocalInfoConstraints.contentMaxCount}`)
307
- .optional()
308
- .describe(`Additional content values (max ${LocalInfoConstraints.contentMaxCount} items, each max ${LocalInfoConstraints.contentMaxLength} bcs characters)`),
309
- createdAt: z
310
- .number()
311
- .optional()
312
- .describe("Unix timestamp (ms) when this info was created"),
313
- updatedAt: z
314
- .number()
315
- .optional()
316
- .describe("Unix timestamp (ms) when this info was last modified"),
317
- })
318
- .describe("Info data inner structure");
319
- // Define InfoData schema
320
- export const InfoDataSchema = InfoDataInnerSchema.extend({
321
- name: z
322
- .string()
323
- .max(LocalInfoConstraints.nameMaxLength, `Info name exceeds maximum length of ${LocalInfoConstraints.nameMaxLength} bcs characters`)
324
- .describe(`Unique identifier for this info entry (max ${LocalInfoConstraints.nameMaxLength} bcs characters)`),
325
- }).describe("LOCAL PRIVATE: Local info data structure for storing sensitive personal information like delivery addresses, phone numbers, etc. This data is stored ONLY on your device and NEVER published to the blockchain.");
326
- // Define LocalMarkFilter schema
327
- export const LocalMarkFilterSchema = z
328
- .object({
329
- name: NameSchema
330
- .optional()
331
- .describe("Filter by mark name (supports fuzzy match)"),
332
- tags: z
333
- .array(z.string())
334
- .optional()
335
- .describe("Filter by tags - returns marks that contain ANY of the specified tags"),
336
- address: WowAddressSchema
337
- .optional()
338
- .describe("Filter by address (exact match, format: 0x + 64 hex characters)"),
339
- createdAt: z
340
- .object({
341
- gte: z
342
- .number()
343
- .optional()
344
- .describe("Filter marks created on or after this timestamp (ms)"),
345
- lte: z
346
- .number()
347
- .optional()
348
- .describe("Filter marks created on or before this timestamp (ms)"),
349
- })
350
- .optional()
351
- .describe("Filter by creation time range"),
352
- updatedAt: z
353
- .object({
354
- gte: z
355
- .number()
356
- .optional()
357
- .describe("Filter marks updated on or after this timestamp (ms)"),
358
- lte: z
359
- .number()
360
- .optional()
361
- .describe("Filter marks updated on or before this timestamp (ms)"),
362
- })
363
- .optional()
364
- .describe("Filter by update time range"),
365
- })
366
- .describe("Filter criteria for querying local marks. Multiple filters are combined with AND logic.");
367
- // Define LocalInfoFilter schema
368
- export const LocalInfoFilterSchema = z
369
- .object({
370
- name: NameSchema
371
- .optional()
372
- .describe("Filter by info name (supports fuzzy match)"),
373
- default: z
374
- .string()
375
- .optional()
376
- .describe("Filter by default value (supports fuzzy match)"),
377
- contents: z
378
- .array(z.string())
379
- .optional()
380
- .describe("Filter by contents - returns info that contains ANY of the specified content items"),
381
- createdAt: z
382
- .object({
383
- gte: z
384
- .number()
385
- .optional()
386
- .describe("Filter info created on or after this timestamp (ms)"),
387
- lte: z
388
- .number()
389
- .optional()
390
- .describe("Filter info created on or before this timestamp (ms)"),
391
- })
392
- .optional()
393
- .describe("Filter by creation time range"),
394
- updatedAt: z
395
- .object({
396
- gte: z
397
- .number()
398
- .optional()
399
- .describe("Filter info updated on or after this timestamp (ms)"),
400
- lte: z
401
- .number()
402
- .optional()
403
- .describe("Filter info updated on or before this timestamp (ms)"),
404
- })
405
- .optional()
406
- .describe("Filter by update time range"),
407
- })
408
- .describe("Filter criteria for querying local info. Multiple filters are combined with AND logic.");
409
- // Define QueryLocalInfoList schema
410
- export const QueryLocalInfoListSchema = z.object({
411
- filter: LocalInfoFilterSchema.optional().describe("Local info filter"),
412
- }).describe("Query local info list parameters");
413
- // Define QueryAccount schema
414
- export const QueryAccountSchema = z
415
- .object({
416
- name_or_address: NameOrAddressSchema.optional()
417
- .describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
418
- balance: z
419
- .boolean()
420
- .optional()
421
- .describe("Whether to query coin balance amount"),
422
- coin: z
423
- .object({
424
- cursor: z
425
- .union([z.string(), z.null()])
426
- .optional()
427
- .describe("Query cursor for pagination"),
428
- limit: z
429
- .union([z.number(), z.null()])
430
- .optional()
431
- .describe("Maximum number of objects to return"),
432
- })
433
- .optional()
434
- .describe("Whether to query coin object list"),
435
- token_type: TokenTypeSchema
436
- .optional()
437
- .describe("Token type; default token type is 0x2::wow::WOW"),
438
- network: EntrypointSchema
439
- .optional(),
440
- })
441
- .describe("Used to query account's coin balance");
442
- // Define QueryAccountResult schema
443
- export const QueryAccountResultSchema = z.object({
444
- name_or_address: NameOrAddressSchema.optional().describe("Account name or ID"),
445
- address: z.string().optional().describe("Account ID"),
446
- balance: CoinBalanceSchema.optional().describe("Coin balance details"),
447
- coin: PaginatedCoinsSchema.optional().describe("Paginated coin object list"),
448
- }).describe("Result of querying account's coin balance");
449
- // Define AccountOperation schema
450
- export const AccountOperationSchema = z
451
- .object({
452
- gen: z
453
- .object({
454
- name: NameSchema
455
- .optional()
456
- .describe(`Account name (max ${AccountConstraints.nameMaxLength} characters). Use empty string '' or omit for the default account.`),
457
- replaceExistName: z
458
- .boolean()
459
- .optional()
460
- .describe("If true, existing account with the same name will lose the name; if false (default), throw error when name exists"),
461
- m: z
462
- .union([NameSchema, z.null()])
463
- .optional()
464
- .describe("Messenger name to enable messenger for this account (max 64 characters). If null, disable messenger. Omit to leave messenger unchanged."),
465
- })
466
- .optional()
467
- .describe("Generate new account"),
468
- faucet: z
469
- .object({
470
- name_or_address: NameOrAddressSchema.optional()
471
- .describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
472
- network: FaucetNetworkSchema,
473
- })
474
- .optional()
475
- .describe("Distribute test coins from faucet to the specified account"),
476
- suspend: z
477
- .object({
478
- name_or_address: NameOrAddressSchema.optional()
479
- .describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
480
- })
481
- .optional()
482
- .describe("Remove account from active account list (cannot sign transactions), and delete its name"),
483
- resume: z
484
- .object({
485
- address: WowAddressSchema,
486
- name: NameSchema.optional()
487
- .describe("New name for the resumed account. Omit to leave unnamed."),
488
- })
489
- .optional()
490
- .describe("Add account back to active account list"),
491
- rename: z
492
- .object({
493
- name_or_address: NameOrAddressSchema.optional()
494
- .describe(`Source account name or address. Use empty string '' for the default account. Defaults to '' if omitted. Can be a name or address.`),
495
- new_name: NameSchema
496
- .describe(`New account name (max ${AccountConstraints.nameMaxLength} characters). Must be a name (not an address).`),
497
- })
498
- .optional()
499
- .describe("Rename account. name_or_address can be name or address, new_name must be a name."),
500
- swap_name: z
501
- .object({
502
- name1: NameSchema.optional()
503
- .describe("First account name. Use empty string '' for the default account."),
504
- name2: NameSchema.optional()
505
- .describe("Second account name. Use empty string '' for the default account."),
506
- })
507
- .optional()
508
- .describe("Swap the names of two accounts"),
509
- transfer: z
510
- .object({
511
- name_or_address_from: NameOrAddressSchema.optional()
512
- .describe("Sender account name or address. Use empty string '' for the default account."),
513
- name_or_address_to: NameOrAddressSchema.optional()
514
- .describe("Recipient account name or address. Use empty string '' for the default account."),
515
- amount: z
516
- .union([z.number(), z.string()])
517
- .describe("Amount of tokens to transfer"),
518
- token_type: z
519
- .string()
520
- .optional()
521
- .describe("Token type; default token type is 0x2::wow::WOW"),
522
- network: EntrypointSchema
523
- .optional()
524
- })
525
- .optional()
526
- .describe("Transfer tokens from one account to another"),
527
- get: z
528
- .object({
529
- name_or_address: NameOrAddressSchema.optional()
530
- .describe("Account name or address. Use empty string '' for the default account."),
531
- balance_required: z
532
- .union([z.string(), z.number()])
533
- .describe("Required balance amount"),
534
- token_type: z
535
- .string()
536
- .optional()
537
- .describe("Token type; default token type is 0x2::wow::WOW"),
538
- network: EntrypointSchema
539
- .optional()
540
- })
541
- .optional()
542
- .describe("Generate new coin object ID from account by required amount and return"),
543
- signData: z
544
- .object({
545
- name_or_address: NameOrAddressSchema.optional()
546
- .describe("Account name or address. Use empty string '' for the default account."),
547
- data: z.string().describe("Data to sign. If data_encoding is not specified, treated as UTF-8 string."),
548
- data_encoding: z
549
- .union([
550
- z.literal("utf8").describe("Data is UTF-8 encoded string"),
551
- z.literal("base64").describe("Data is base64 encoded bytes"),
552
- z.literal("hex").describe("Data is hex encoded bytes (with or without 0x prefix)"),
553
- ])
554
- .optional()
555
- .describe("Encoding format of the data field. If not specified, defaults to utf8."),
556
- })
557
- .optional()
558
- .describe("Sign data with account's private key"),
559
- messenger: z
560
- .object({
561
- name_or_account: NameOrAddressSchema.optional()
562
- .describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
563
- m: z
564
- .union([NameSchema, z.null()])
565
- .describe("Messenger name to enable messenger for this account (max 64 characters). If null, disable messenger."),
566
- })
567
- .optional()
568
- .describe("Enable or disable messenger for an account"),
569
- })
570
- .describe("Account operations");
571
- // Define AccountOperationResult schema
572
- export const AccountOperationResultSchema = z
573
- .object({
574
- gen: z
575
- .object({
576
- address: z.string().describe("Newly generated account ID"),
577
- name: NameSchema.optional().describe("Account name"),
578
- m: z
579
- .union([NameSchema, z.null()])
580
- .optional()
581
- .describe("Messenger name if enabled"),
582
- })
583
- .optional()
584
- .describe("Result of generating new account"),
585
- faucet: z
586
- .object({
587
- name_or_address: NameOrAddressSchema.optional()
588
- .describe("Account name or address that received faucet coins"),
589
- result: z
590
- .array(FaucetCoinInfoSchema)
591
- .describe("List of distributed test coin info"),
592
- network: FaucetNetworkSchema,
593
- })
594
- .optional()
595
- .describe("Result of distributing test coins from faucet to the specified account"),
596
- suspend: z
597
- .object({
598
- name_or_address: NameOrAddressSchema.optional()
599
- .describe("Account name or address that was suspended"),
600
- success: z
601
- .boolean()
602
- .describe("True if account was successfully suspended, false if account does not exist"),
603
- })
604
- .optional()
605
- .describe("Result of removing account from active account list (cannot sign transactions)"),
606
- resume: z
607
- .object({
608
- address: WowAddressSchema.describe("Account ID that was resumed"),
609
- name: NameSchema.optional().describe("New name assigned to the account"),
610
- success: z
611
- .boolean()
612
- .describe("True if account was successfully resumed, false if account does not exist"),
613
- })
614
- .optional()
615
- .describe("Result of adding account back to active account list"),
616
- rename: z
617
- .object({
618
- name_or_address: NameOrAddressSchema.optional()
619
- .describe("Source account name or address that was renamed"),
620
- new_name: NameSchema.describe("New account name"),
621
- success: z
622
- .boolean()
623
- .describe("True if rename was successful, false if account not found or name already exists"),
624
- })
625
- .optional()
626
- .describe("Result of renaming account"),
627
- swap_name: z
628
- .object({
629
- name1: NameSchema.optional()
630
- .describe("First account name"),
631
- name2: NameSchema.optional()
632
- .describe("Second account name"),
633
- success: z
634
- .boolean()
635
- .describe("True if swap was successful, false if either account not found"),
636
- })
637
- .optional()
638
- .describe("Result of swapping account names"),
639
- transfer: WowTransactionBlockResponseSchema.optional().describe("Result of token transfer transaction"),
640
- get: z
641
- .object({
642
- coin_address: z
643
- .string()
644
- .optional()
645
- .describe("Newly generated coin object ID"),
646
- name_or_address: NameOrAddressSchema.optional()
647
- .describe("Account name or address"),
648
- balance_required: z
649
- .union([z.string(), z.number()])
650
- .describe("Required coin object balance"),
651
- token_type: z
652
- .string()
653
- .optional()
654
- .describe("Token type; default token type is 0x2::wow::WOW"),
655
- network: EntrypointSchema
656
- .optional()
657
- })
658
- .optional()
659
- .describe("Result of generating new coin object ID from account by required amount"),
660
- signData: z
661
- .object({
662
- name_or_address: NameOrAddressSchema.optional()
663
- .describe("Account name or address used for signing"),
664
- signature: z.string().describe("Signature in hex format"),
665
- publicKey: z.string().describe("Public key in hex format"),
666
- address: z.string().describe("Account address"),
667
- })
668
- .optional()
669
- .describe("Result of signing data with account"),
670
- messenger: z
671
- .object({
672
- name_or_account: NameOrAddressSchema.optional()
673
- .describe("Account name or address"),
674
- m: z
675
- .union([NameSchema, z.null()])
676
- .describe("Messenger name if enabled, null if disabled"),
677
- })
678
- .optional()
679
- .describe("Result of enabling or disabling messenger for an account"),
680
- })
681
- .describe("Results of account operations");
682
- // Define LocalMarkOperation schema
683
- export const LocalMarkOperationSchema = z
684
- .object({
685
- add: z
686
- .object({
687
- op: z.literal("add").describe("Operation type: add marks"),
688
- data: z
689
- .array(MarkParamSchema)
690
- .min(1)
691
- .describe("Array of mark data to add (at least 1 item)"),
692
- })
693
- .optional()
694
- .describe("Add one or more marks"),
695
- remove: z
696
- .object({
697
- op: z.literal("remove").describe("Operation type: remove marks"),
698
- names: z
699
- .array(z.string())
700
- .min(1)
701
- .describe("Array of mark names or addresses to remove"),
702
- })
703
- .optional()
704
- .describe("Remove marks by name or address"),
705
- clear: z
706
- .object({
707
- op: z.literal("clear").describe("Operation type: clear all marks"),
708
- })
709
- .optional()
710
- .describe("Remove all marks"),
711
- })
712
- .describe("Local mark operations. Exactly one operation type (add/remove/clear) must be specified.");
713
- // Define LocalMarkOperationResult schema
714
- export const LocalMarkOperationResultSchema = z.object({
715
- clear: z.boolean().optional().describe("Whether all marks were successfully removed"),
716
- add: z.array(MarkDataSchema).optional().describe("List of added mark data"), // MarkData type
717
- remove: z.array(MarkDataSchema).optional().describe("List of removed mark data"), // MarkData type
718
- }).describe("Results of local mark operations for ID");
719
- // Define LocalInfoOperation schema
720
- export const LocalInfoOperationSchema = z
721
- .object({
722
- add: z
723
- .object({
724
- op: z.literal("add").describe("Operation type: add info"),
725
- data: z
726
- .array(InfoDataSchema)
727
- .min(1)
728
- .describe("Array of info data to add (at least 1 item)"),
729
- })
730
- .optional()
731
- .describe("Add one or more info entries"),
732
- remove: z
733
- .object({
734
- op: z.literal("remove").describe("Operation type: remove info"),
735
- data: z
736
- .array(z.string())
737
- .min(1)
738
- .describe("Array of info names to remove"),
739
- })
740
- .optional()
741
- .describe("Remove info entries by name"),
742
- reset: z
743
- .object({
744
- op: z.literal("reset").describe("Operation type: reset contents"),
745
- name: z.string().describe("Name of info entry to reset"),
746
- contents: z
747
- .array(z.string())
748
- .describe("New content list to replace existing contents"),
749
- })
750
- .optional()
751
- .describe("Reset the contents of an existing info entry"),
752
- clear: z
753
- .object({
754
- op: z.literal("clear").describe("Operation type: clear all info"),
755
- })
756
- .optional()
757
- .describe("Remove all info entries"),
758
- })
759
- .describe("Local info operations. Exactly one operation type (add/remove/reset/clear) must be specified.");
760
- // Define LocalInfoOperationResult schema
761
- export const LocalInfoOperationResultSchema = z.object({
762
- success: z.boolean().describe("Whether successful"),
763
- }).describe("Results of local info operations");
764
- // Define FetchTokenInfoOperation schema
765
- export const FetchTokenInfoOperationSchema = z.object({
766
- tokenType: z.union([TokenTypeSchema, z.null()]).optional().describe("Token type; default token type is 0x2::wow::WOW"),
767
- alias: NameSchema.optional().describe("Token alias; used to quickly fetch token info"),
768
- network: EntrypointSchema.optional(),
769
- }).describe("Fetch token info to local and name it");
770
- // Define QueryLocalMarkList schema
771
- export const QueryLocalMarkListSchema = z.object({
772
- filter: LocalMarkFilterSchema.optional().describe("Local mark filter"),
773
- }).describe("Query local mark list parameters");
774
- // Define QueryLocalMarkListResult schema
775
- export const QueryLocalMarkListResultSchema = z.object({
776
- result: z.array(MarkDataSchema).describe("Local mark list"),
777
- }).describe("Query local mark list result");
778
- // Define AccountFilter schema
779
- export const AccountFilterSchema = z
780
- .object({
781
- name: NameSchema
782
- .optional()
783
- .describe("Filter by account name (supports fuzzy match)"),
784
- address: WowAddressSchema
785
- .optional()
786
- .describe("Filter by account address (supports partial match, format: 0x + hex characters)"),
787
- suspended: z
788
- .boolean()
789
- .optional()
790
- .describe("Filter by suspension status. Omit to return all accounts regardless of status"),
791
- hasMessenger: z
792
- .boolean()
793
- .optional()
794
- .describe("Filter accounts with messenger enabled"),
795
- m: NameSchema
796
- .optional()
797
- .describe("Filter by messenger name (supports fuzzy match)"),
798
- createdAt: z
799
- .object({
800
- gte: z
801
- .number()
802
- .optional()
803
- .describe("Filter accounts created on or after this timestamp (ms)"),
804
- lte: z
805
- .number()
806
- .optional()
807
- .describe("Filter accounts created on or before this timestamp (ms)"),
808
- })
809
- .optional()
810
- .describe("Filter by creation time range"),
811
- updatedAt: z
812
- .object({
813
- gte: z
814
- .number()
815
- .optional()
816
- .describe("Filter accounts updated on or after this timestamp (ms)"),
817
- lte: z
818
- .number()
819
- .optional()
820
- .describe("Filter accounts updated on or before this timestamp (ms)"),
821
- })
822
- .optional()
823
- .describe("Filter by update time range"),
824
- })
825
- .describe("Filter criteria for querying accounts. Multiple filters are combined with AND logic.");
826
- // Define query_account_list schema
827
- export const QueryAccountListSchema = z.object({
828
- filter: AccountFilterSchema.optional().describe("Account filter"),
829
- }).describe("Query account list parameters");
830
- // Define AccountData schema
831
- export const AccountDataSchema = z.object({
832
- name: z.string().optional().describe("Account name"),
833
- address: z.string().describe("Account address"),
834
- pubkey: z.string().optional().describe("Account public key"),
835
- secret: z.string().optional().describe("Account secret key"),
836
- suspended: z.boolean().optional().describe("Whether account is suspended"),
837
- createdAt: z.number().optional().describe("Timestamp when account was created"),
838
- updatedAt: z.number().optional().describe("Timestamp when account was last updated"),
839
- m: z.string().nullable().optional().describe("Messenger name, indicates this account has messenger enabled"),
840
- }).describe("Account data");
841
- // Define QueryAccountListResult schema
842
- export const QueryAccountListResultSchema = z.object({
843
- result: z.array(AccountDataSchema).describe("Account list"),
844
- }).describe("Query account list result");
845
- // Define QueryLocalInfoListResult schema
846
- export const QueryLocalInfoListResultSchema = z.object({
847
- result: z.array(InfoDataSchema).describe("Local info list"),
848
- }).describe("Query local info list result");
849
- // Define TokenTypeInfo schema
850
- export const TokenTypeInfoSchema = z.object({
851
- type: z.string().describe("Token type"),
852
- alias: z.string().optional().describe("Token alias"),
853
- name: z.string().describe("Token name"),
854
- symbol: z.string().describe("Token symbol"),
855
- decimals: z.number().describe("Number of decimal places"),
856
- description: z.string().describe("Description of the token"),
857
- iconUrl: z.union([z.string(), z.null()]).optional().describe("URL for the token logo"),
858
- id: z.union([z.string(), z.null()]).optional().describe("Object id for the CoinMetadata object"),
859
- }).describe("Token type info");
860
- // Define TokenDataFilter schema
861
- export const TokenDataFilterSchema = z.object({
862
- alias_or_name: NameSchema.optional().describe("Alias or name filter"),
863
- symbol: z.string().optional().describe("Token symbol"),
864
- type: z.string().optional().describe("Token type"),
865
- }).describe("Token data filter");
866
- // Define QueryLocalTokenListResult schema
867
- export const QueryLocalTokenListResultSchema = z.object({
868
- result: z.array(TokenTypeInfoSchema).describe("Local token list"),
869
- }).describe("Query local token list result");
870
- // Account Operation Output Schema
871
- export const AccountOperationOutputSchema = z.discriminatedUnion("status", [
872
- z.object({
873
- status: z.literal("success"),
874
- data: AccountOperationResultSchema.describe("Success result data"),
875
- }),
876
- z.object({
877
- status: z.literal("error"),
878
- error: z.string().describe("Error message"),
879
- }),
880
- ]).describe("Account operation output schema with discriminator");
881
- export const AccountOperationOutputWrappedSchema = z.object({
882
- result: AccountOperationOutputSchema,
883
- }).describe("Account operation output wrapped schema");
884
- // Local Mark Operation Output Schema
885
- export const LocalMarkOperationOutputSchema = z.discriminatedUnion("status", [
886
- z.object({
887
- status: z.literal("success"),
888
- data: LocalMarkOperationResultSchema.describe("Success result data"),
889
- }),
890
- z.object({
891
- status: z.literal("error"),
892
- error: z.string().describe("Error message"),
893
- }),
894
- ]).describe("Local mark operation output schema with discriminator");
895
- export const LocalMarkOperationOutputWrappedSchema = z.object({
896
- result: LocalMarkOperationOutputSchema,
897
- }).describe("Local mark operation output wrapped schema");
898
- // Local Info Operation Output Schema
899
- export const LocalInfoOperationOutputSchema = z.discriminatedUnion("status", [
900
- z.object({
901
- status: z.literal("success"),
902
- data: LocalInfoOperationResultSchema.describe("Success result data"),
903
- }),
904
- z.object({
905
- status: z.literal("error"),
906
- error: z.string().describe("Error message"),
907
- }),
908
- ]).describe("Local info operation output schema with discriminator");
909
- export const LocalInfoOperationOutputWrappedSchema = z.object({
910
- result: LocalInfoOperationOutputSchema,
911
- }).describe("Local info operation output wrapped schema");
912
- // Re-export WIP schemas
913
- export * from "./wip.js";
1
+ import{EntrypointSchema,ObjectOwnerSchema,NameOrAddressSchema,NameSchema,WowAddressSchema,TokenTypeSchema,FaucetNetworkSchema}from'../common/index.js';import{z}from'zod';export const LocalMarkConstraints={'nameMaxLength':0x40,'tagMaxLength':0x40,'tagMaxCount':0x32};export const LocalInfoConstraints={'nameMaxLength':0x40,'contentMaxLength':0x12c,'contentMaxCount':0x32,'defaultName':'Address\x20of\x20delivery'};export const AccountConstraints={'nameMaxLength':0x40};export const ErrorResultSchema=z['object']({'error':z['literal'](!![])['describe']('Always\x20true\x20for\x20error\x20responses'),'code':z['string']()['optional']()['describe']('Error\x20code\x20for\x20programmatic\x20handling'),'message':z['string']()['describe']('Human-readable\x20error\x20message'),'details':z['record'](z['string'](),z['string']())['optional']()['describe']('Additional\x20error\x20context')})['describe']('Error\x20response\x20structure');export const createResultSchema=a=>z['union']([z['object']({'success':z['literal'](!![]),'data':a}),ErrorResultSchema]);export const CoinBalanceSchema=z['object']({'coinType':z['string']()['describe']('Coin\x20type'),'coinObjectCount':z['number']()['describe']('Coin\x20object\x20count'),'totalBalance':z['string']()['describe']('Total\x20balance'),'lockedBalance':z['record'](z['string'](),z['string']())['describe']('Locked\x20balance')})['describe']('Coin\x20balance');export const CoinStructSchema=z['object']({'balance':z['string']()['describe']('Coin\x20balance'),'coinObjectId':z['string']()['describe']('Coin\x20object\x20ID'),'coinType':z['string']()['describe']('Coin\x20type'),'digest':z['string']()['describe']('Transaction\x20digest'),'previousTransaction':z['string']()['describe']('Previous\x20transaction\x20digest'),'version':z['string']()['describe']('Coin\x20object\x20version')})['describe']('Coin\x20object');export const PaginatedCoinsSchema=z['object']({'data':z['array'](CoinStructSchema)['describe']('Coin\x20object\x20list'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Next\x20query\x20cursor')})['describe']('Paginated\x20coin\x20objects');export const FaucetCoinInfoSchema=z['object']({'amount':z['number']()['describe']('Coin\x20amount'),'id':z['string']()['describe']('Coin\x20ID'),'transferTxDigest':z['string']()['describe']('Transfer\x20transaction\x20digest')})['describe']('Testnet\x20faucet\x20coin\x20info');export const EventIdSchema=z['object']({'eventSeq':z['string']()['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20ID');export const WowEventSchema=z['discriminatedUnion']('bcsEncoding',[z['object']({'id':EventIdSchema['describe']('Event\x20ID'),'packageId':z['string']()['describe']('Package\x20ID\x20where\x20event\x20originated'),'parsedJson':z['record'](z['string'](),z['union']([z['string'](),z['number'](),z['boolean']()]))['describe']('Parsed\x20JSON\x20value\x20of\x20the\x20event'),'sender':z['string']()['describe']('Sender\x27s\x20address'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('UTC\x20timestamp\x20in\x20milliseconds\x20since\x20epoch'),'transactionModule':z['string']()['describe']('Module\x20where\x20event\x20originated'),'type':z['string']()['describe']('Move\x20event\x20type'),'bcs':z['string']()['describe']('BCS\x20encoded\x20event'),'bcsEncoding':z['literal']('base64')['describe']('BCS\x20encoding\x20format')}),z['object']({'id':EventIdSchema['describe']('Event\x20ID'),'packageId':z['string']()['describe']('Package\x20ID\x20where\x20event\x20originated'),'parsedJson':z['record'](z['string'](),z['union']([z['string'](),z['number'](),z['boolean']()]))['describe']('Parsed\x20JSON\x20value\x20of\x20the\x20event'),'sender':z['string']()['describe']('Sender\x27s\x20ID'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('UTC\x20timestamp\x20in\x20milliseconds\x20since\x20epoch'),'transactionModule':z['string']()['describe']('Module\x20where\x20event\x20originated'),'type':z['string']()['describe']('Move\x20event\x20type'),'bcs':z['string']()['describe']('BCS\x20encoded\x20event'),'bcsEncoding':z['literal']('base58')['describe']('BCS\x20encoding\x20format')})])['describe']('Blockchain\x20event');export const BalanceChangeSchema=z['object']({'amount':z['string']()['describe']('Balance\x20change\x20value,\x20negative\x20for\x20spending,\x20positive\x20for\x20receiving'),'coinType':z['string']()['describe']('Coin\x20type'),'owner':ObjectOwnerSchema['describe']('Owner\x20of\x20the\x20balance\x20change')})['describe']('Balance\x20change');export const GasCostSummarySchema=z['object']({'computationCost':z['string']()['describe']('Computation/execution\x20cost'),'nonRefundableStorageFee':z['string']()['describe']('Non-refundable\x20storage\x20fee'),'storageCost':z['string']()['describe']('Storage\x20cost'),'storageRebate':z['string']()['describe']('Storage\x20rebate')})['describe']('Transaction\x20fee\x20summary');export const WowObjectRefSchema=z['object']({'digest':z['string']()['describe']('Base64\x20string\x20of\x20object\x20digest'),'objectId':z['string']()['describe']('Hex\x20code\x20string\x20representing\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Object\x20version')})['describe']('Wow\x20object\x20reference');export const OwnedObjectRefSchema=z['object']({'owner':ObjectOwnerSchema['describe']('Owner'),'reference':WowObjectRefSchema['describe']('Object\x20reference')})['describe']('Owned\x20object\x20reference');export const TransactionBlockEffectsModifiedAtVersionsSchema=z['object']({'objectId':z['string']()['describe']('Object\x20ID'),'sequenceNumber':z['string']()['describe']('Sequence\x20number')})['describe']('Transaction\x20block\x20effects\x20modified\x20versions');export const WowMoveAbortSchema=z['object']({'error_code':z['union']([z['string'](),z['null']()])['optional']()['describe']('Error\x20code'),'function':z['union']([z['string'](),z['null']()])['optional']()['describe']('Function'),'line':z['union']([z['number'](),z['null']()])['optional']()['describe']('Line\x20number'),'module_id':z['union']([z['string'](),z['null']()])['optional']()['describe']('Module\x20ID')})['describe']('Wow\x20Move\x20abort');export const ExecutionStatusSchema=z['object']({'status':z['union']([z['literal']('success'),z['literal']('failure')])['describe']('Execution\x20status'),'error':z['string']()['optional']()['describe']('Error\x20message')})['describe']('Execution\x20status');export const WowGasDataSchema=z['object']({'budget':z['string']()['describe']('Budget'),'owner':z['string']()['describe']('Owner'),'payment':z['array'](WowObjectRefSchema)['describe']('Payment'),'price':z['string']()['describe']('Price')})['describe']('Wow\x20gas\x20data');export const WowTransactionBlockKindSchema=z['object']({'kind':z['string']()['describe']('Transaction\x20type')})['passthrough']()['describe']('Wow\x20transaction\x20block\x20kind');export const TransactionBlockDataSchema=z['object']({'gasData':WowGasDataSchema['describe']('Gas\x20data'),'messageVersion':z['literal']('v1')['describe']('Message\x20version'),'sender':z['string']()['describe']('Sender'),'transaction':WowTransactionBlockKindSchema['describe']('Transaction')})['describe']('Transaction\x20block\x20data');export const WowTransactionBlockSchema=z['object']({'data':TransactionBlockDataSchema['describe']('Transaction\x20data'),'txSignatures':z['array'](z['string']())['describe']('Transaction\x20signatures')})['describe']('Wow\x20transaction\x20block');export const WowObjectChangeSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('published'),'digest':z['string']()['describe']('Digest'),'modules':z['array'](z['string']())['describe']('Modules'),'packageId':z['string']()['describe']('Package\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('transferred'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'recipient':ObjectOwnerSchema['describe']('Recipient'),'sender':z['string']()['describe']('Sender\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('mutated'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['describe']('Owner'),'previousVersion':z['union']([z['string'](),z['number']()])['describe']('Previous\x20version'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('deleted'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('wrapped'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('created'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['describe']('Owner'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')})])['describe']('Object\x20change\x20information');export const TransactionEffectsSchema=z['object']({'abortError':z['union']([WowTransactionBlockSchema,z['null']()])['optional']()['describe']('Abort\x20error\x20if\x20transaction\x20failed\x20with\x20abort\x20code'),'created':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20newly\x20created\x20objects'),'deleted':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20(old\x20refs)\x20of\x20now\x20deleted\x20objects'),'dependencies':z['array'](z['string']())['optional']()['describe']('Set\x20of\x20transaction\x20digests\x20this\x20transaction\x20depends\x20on'),'eventsDigest':z['union']([z['string'](),z['null']()])['optional']()['describe']('Digest\x20of\x20events\x20emitted\x20during\x20execution'),'executedEpoch':z['union']([z['string'](),z['number']()])['describe']('Epoch\x20in\x20which\x20this\x20transaction\x20was\x20executed'),'gasObject':OwnedObjectRefSchema['describe']('Updated\x20gas\x20object\x20reference'),'gasUsed':GasCostSummarySchema['describe']('Gas\x20used'),'messageVersion':z['literal']('v1')['describe']('Message\x20version'),'modifiedAtVersions':z['array'](TransactionBlockEffectsModifiedAtVersionsSchema)['optional']()['describe']('Version\x20of\x20each\x20modified\x20(mutated\x20or\x20deleted)\x20object\x20before\x20this\x20transaction\x20modified\x20it'),'mutated':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20mutated\x20objects,\x20including\x20gas\x20object'),'sharedObjects':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20shared\x20objects\x20used\x20in\x20this\x20transaction'),'status':ExecutionStatusSchema['describe']('Execution\x20status'),'transactionDigest':z['string']()['describe']('Transaction\x20digest'),'unwrapped':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20objects\x20unwrapped\x20in\x20this\x20transaction'),'unwrappedThenDeleted':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20objects\x20previously\x20wrapped\x20in\x20other\x20objects\x20but\x20now\x20deleted'),'wrapped':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20objects\x20now\x20wrapped\x20in\x20other\x20objects')})['describe']('Transaction\x20effects');export const WowTransactionBlockResponseSchema=z['object']({'balanceChanges':z['union']([z['array'](BalanceChangeSchema),z['null']()])['optional']()['describe']('Balance\x20changes'),'checkpoint':z['union']([z['string'](),z['null']()])['optional']()['describe']('Checkpoint\x20number\x20that\x20this\x20transaction\x20is\x20included\x20in\x20and\x20thus\x20completed'),'confirmedLocalExecution':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Confirmed\x20local\x20execution'),'digest':z['string']()['describe']('Transaction\x20digest'),'effects':z['union']([TransactionEffectsSchema,z['null']()])['optional']()['describe']('Transaction\x20effects'),'errors':z['array'](z['string']())['optional']()['describe']('Error\x20messages'),'events':z['union']([z['array'](WowEventSchema),z['null']()])['optional']()['describe']('Events'),'objectChanges':z['union']([z['array'](WowObjectChangeSchema),z['null']()])['optional']()['describe']('Object\x20changes'),'rawEffects':z['array'](z['number']())['optional']()['describe']('Raw\x20effects'),'rawTransaction':z['string']()['optional']()['describe']('Raw\x20transaction'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('Timestamp'),'transaction':z['union']([WowTransactionBlockSchema,z['null']()])['optional']()['describe']('Transaction\x20input\x20data')})['describe']('Wow\x20transaction\x20block\x20response');export const MarkParamSchema=z['object']({'name':z['object']({'value':z['string']()['max'](LocalMarkConstraints['nameMaxLength'],'Mark\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters')['describe']('Mark\x20name\x20value\x20(max\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters)'),'replaceExistName':z['boolean']()['optional']()['default'](![])['describe']('If\x20true,\x20replace\x20existing\x20mark\x20with\x20same\x20name;\x20if\x20false\x20(default),\x20throw\x20error\x20when\x20name\x20exists')})['optional']()['describe']('Mark\x20naming\x20configuration'),'address':WowAddressSchema,'tags':z['array'](z['string']()['max'](LocalMarkConstraints['tagMaxLength'],'Tag\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters'))['max'](LocalMarkConstraints['tagMaxCount'],'Tag\x20count\x20exceeds\x20maximum\x20of\x20'+LocalMarkConstraints['tagMaxCount'])['optional']()['describe']('Tags\x20for\x20categorization\x20(max\x20'+LocalMarkConstraints['tagMaxCount']+'\x20tags,\x20each\x20max\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters)')})['describe']('LOCAL\x20ONLY:\x20Parameters\x20for\x20creating\x20or\x20updating\x20a\x20LOCAL\x20mark.\x20This\x20data\x20is\x20stored\x20privately\x20on\x20your\x20device\x20and\x20will\x20NEVER\x20be\x20published\x20to\x20the\x20blockchain.\x20For\x20public\x20on-chain\x20marks,\x20use\x20the\x20\x27personal\x27\x20tool\x20instead.');export const MarkDataSchema=z['object']({'name':z['string']()['max'](LocalMarkConstraints['nameMaxLength'],'Mark\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters')['optional']()['describe']('Mark\x20name\x20(max\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters)'),'address':WowAddressSchema,'tags':z['array'](z['string']()['max'](LocalMarkConstraints['tagMaxLength'],'Tag\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters'))['max'](LocalMarkConstraints['tagMaxCount'],'Tag\x20count\x20exceeds\x20maximum\x20of\x20'+LocalMarkConstraints['tagMaxCount'])['optional']()['describe']('Tags\x20for\x20categorization\x20(max\x20'+LocalMarkConstraints['tagMaxCount']+'\x20tags,\x20each\x20max\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters)'),'createdAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20mark\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20mark\x20was\x20last\x20modified')})['describe']('LOCAL\x20PRIVATE:\x20Local\x20mark\x20data\x20structure\x20for\x20storing\x20address\x20names\x20and\x20tags\x20privately\x20on\x20your\x20device.\x20This\x20data\x20is\x20NEVER\x20published\x20to\x20the\x20blockchain.');export const InfoDataInnerSchema=z['object']({'default':z['string']()['max'](LocalInfoConstraints['contentMaxLength'],'Default\x20value\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters')['describe']('Primary/default\x20value\x20for\x20this\x20info\x20(max\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters)'),'contents':z['array'](z['string']()['max'](LocalInfoConstraints['contentMaxLength'],'Content\x20item\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters'))['max'](LocalInfoConstraints['contentMaxCount'],'Content\x20count\x20exceeds\x20maximum\x20of\x20'+LocalInfoConstraints['contentMaxCount'])['optional']()['describe']('Additional\x20content\x20values\x20(max\x20'+LocalInfoConstraints['contentMaxCount']+'\x20items,\x20each\x20max\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters)'),'createdAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20info\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20info\x20was\x20last\x20modified')})['describe']('Info\x20data\x20inner\x20structure');export const InfoDataSchema=InfoDataInnerSchema['extend']({'name':z['string']()['max'](LocalInfoConstraints['nameMaxLength'],'Info\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['nameMaxLength']+'\x20bcs\x20characters')['describe']('Unique\x20identifier\x20for\x20this\x20info\x20entry\x20(max\x20'+LocalInfoConstraints['nameMaxLength']+'\x20bcs\x20characters)')})['describe']('LOCAL\x20PRIVATE:\x20Local\x20info\x20data\x20structure\x20for\x20storing\x20sensitive\x20personal\x20information\x20like\x20delivery\x20addresses,\x20phone\x20numbers,\x20etc.\x20This\x20data\x20is\x20stored\x20ONLY\x20on\x20your\x20device\x20and\x20NEVER\x20published\x20to\x20the\x20blockchain.');export const LocalMarkFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20mark\x20name\x20(supports\x20fuzzy\x20match)'),'tags':z['array'](z['string']())['optional']()['describe']('Filter\x20by\x20tags\x20-\x20returns\x20marks\x20that\x20contain\x20ANY\x20of\x20the\x20specified\x20tags'),'address':WowAddressSchema['optional']()['describe']('Filter\x20by\x20address\x20(exact\x20match,\x20format:\x200x\x20+\x2064\x20hex\x20characters)'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20marks\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20marks\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20marks\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20marks\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range')})['describe']('Filter\x20criteria\x20for\x20querying\x20local\x20marks.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const LocalInfoFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20info\x20name\x20(supports\x20fuzzy\x20match)'),'default':z['string']()['optional']()['describe']('Filter\x20by\x20default\x20value\x20(supports\x20fuzzy\x20match)'),'contents':z['array'](z['string']())['optional']()['describe']('Filter\x20by\x20contents\x20-\x20returns\x20info\x20that\x20contains\x20ANY\x20of\x20the\x20specified\x20content\x20items'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20info\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20info\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20info\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20info\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range')})['describe']('Filter\x20criteria\x20for\x20querying\x20local\x20info.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const QueryLocalInfoListSchema=z['object']({'filter':LocalInfoFilterSchema['optional']()['describe']('Local\x20info\x20filter')})['describe']('Query\x20local\x20info\x20list\x20parameters');export const QueryAccountSchema=z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'balance':z['boolean']()['optional']()['describe']('Whether\x20to\x20query\x20coin\x20balance\x20amount'),'coin':z['object']({'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Query\x20cursor\x20for\x20pagination'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20objects\x20to\x20return')})['optional']()['describe']('Whether\x20to\x20query\x20coin\x20object\x20list'),'token_type':TokenTypeSchema['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['describe']('Used\x20to\x20query\x20account\x27s\x20coin\x20balance');export const QueryAccountResultSchema=z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID'),'address':z['string']()['optional']()['describe']('Account\x20ID'),'balance':CoinBalanceSchema['optional']()['describe']('Coin\x20balance\x20details'),'coin':PaginatedCoinsSchema['optional']()['describe']('Paginated\x20coin\x20object\x20list')})['describe']('Result\x20of\x20querying\x20account\x27s\x20coin\x20balance');export const AccountOperationSchema=z['object']({'gen':z['object']({'name':NameSchema['optional']()['describe']('Account\x20name\x20(max\x20'+AccountConstraints['nameMaxLength']+'\x20characters).\x20Use\x20empty\x20string\x20\x27\x27\x20or\x20omit\x20for\x20the\x20default\x20account.'),'replaceExistName':z['boolean']()['optional']()['describe']('If\x20true,\x20existing\x20account\x20with\x20the\x20same\x20name\x20will\x20lose\x20the\x20name;\x20if\x20false\x20(default),\x20throw\x20error\x20when\x20name\x20exists'),'m':z['union']([NameSchema,z['null']()])['optional']()['describe']('Messenger\x20name\x20to\x20enable\x20messenger\x20for\x20this\x20account\x20(max\x2064\x20characters).\x20If\x20null,\x20disable\x20messenger.\x20Omit\x20to\x20leave\x20messenger\x20unchanged.')})['optional']()['describe']('Generate\x20new\x20account'),'faucet':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'network':FaucetNetworkSchema})['optional']()['describe']('Distribute\x20test\x20coins\x20from\x20faucet\x20to\x20the\x20specified\x20account'),'suspend':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.')})['optional']()['describe']('Remove\x20account\x20from\x20active\x20account\x20list\x20(cannot\x20sign\x20transactions),\x20and\x20delete\x20its\x20name'),'resume':z['object']({'address':WowAddressSchema,'name':NameSchema['optional']()['describe']('New\x20name\x20for\x20the\x20resumed\x20account.\x20Omit\x20to\x20leave\x20unnamed.')})['optional']()['describe']('Add\x20account\x20back\x20to\x20active\x20account\x20list'),'rename':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Source\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.\x20Can\x20be\x20a\x20name\x20or\x20address.'),'new_name':NameSchema['describe']('New\x20account\x20name\x20(max\x20'+AccountConstraints['nameMaxLength']+'\x20characters).\x20Must\x20be\x20a\x20name\x20(not\x20an\x20address).')})['optional']()['describe']('Rename\x20account.\x20name_or_address\x20can\x20be\x20name\x20or\x20address,\x20new_name\x20must\x20be\x20a\x20name.'),'swap_name':z['object']({'name1':NameSchema['optional']()['describe']('First\x20account\x20name.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'name2':NameSchema['optional']()['describe']('Second\x20account\x20name.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.')})['optional']()['describe']('Swap\x20the\x20names\x20of\x20two\x20accounts'),'transfer':z['object']({'name_or_address_from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'name_or_address_to':NameOrAddressSchema['optional']()['describe']('Recipient\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'amount':z['union']([z['number'](),z['string']()])['describe']('Amount\x20of\x20tokens\x20to\x20transfer'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Transfer\x20tokens\x20from\x20one\x20account\x20to\x20another'),'get':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20balance\x20amount'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Generate\x20new\x20coin\x20object\x20ID\x20from\x20account\x20by\x20required\x20amount\x20and\x20return'),'signData':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'data':z['string']()['describe']('Data\x20to\x20sign.\x20If\x20data_encoding\x20is\x20not\x20specified,\x20treated\x20as\x20UTF-8\x20string.'),'data_encoding':z['union']([z['literal']('utf8')['describe']('Data\x20is\x20UTF-8\x20encoded\x20string'),z['literal']('base64')['describe']('Data\x20is\x20base64\x20encoded\x20bytes'),z['literal']('hex')['describe']('Data\x20is\x20hex\x20encoded\x20bytes\x20(with\x20or\x20without\x200x\x20prefix)')])['optional']()['describe']('Encoding\x20format\x20of\x20the\x20data\x20field.\x20If\x20not\x20specified,\x20defaults\x20to\x20utf8.')})['optional']()['describe']('Sign\x20data\x20with\x20account\x27s\x20private\x20key'),'messenger':z['object']({'name_or_account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'m':z['union']([NameSchema,z['null']()])['describe']('Messenger\x20name\x20to\x20enable\x20messenger\x20for\x20this\x20account\x20(max\x2064\x20characters).\x20If\x20null,\x20disable\x20messenger.')})['optional']()['describe']('Enable\x20or\x20disable\x20messenger\x20for\x20an\x20account')})['describe']('Account\x20operations');export const AccountOperationResultSchema=z['object']({'gen':z['object']({'address':z['string']()['describe']('Newly\x20generated\x20account\x20ID'),'name':NameSchema['optional']()['describe']('Account\x20name'),'m':z['union']([NameSchema,z['null']()])['optional']()['describe']('Messenger\x20name\x20if\x20enabled')})['optional']()['describe']('Result\x20of\x20generating\x20new\x20account'),'faucet':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20that\x20received\x20faucet\x20coins'),'result':z['array'](FaucetCoinInfoSchema)['describe']('List\x20of\x20distributed\x20test\x20coin\x20info'),'network':FaucetNetworkSchema})['optional']()['describe']('Result\x20of\x20distributing\x20test\x20coins\x20from\x20faucet\x20to\x20the\x20specified\x20account'),'suspend':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20that\x20was\x20suspended'),'success':z['boolean']()['describe']('True\x20if\x20account\x20was\x20successfully\x20suspended,\x20false\x20if\x20account\x20does\x20not\x20exist')})['optional']()['describe']('Result\x20of\x20removing\x20account\x20from\x20active\x20account\x20list\x20(cannot\x20sign\x20transactions)'),'resume':z['object']({'address':WowAddressSchema['describe']('Account\x20ID\x20that\x20was\x20resumed'),'name':NameSchema['optional']()['describe']('New\x20name\x20assigned\x20to\x20the\x20account'),'success':z['boolean']()['describe']('True\x20if\x20account\x20was\x20successfully\x20resumed,\x20false\x20if\x20account\x20does\x20not\x20exist')})['optional']()['describe']('Result\x20of\x20adding\x20account\x20back\x20to\x20active\x20account\x20list'),'rename':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Source\x20account\x20name\x20or\x20address\x20that\x20was\x20renamed'),'new_name':NameSchema['describe']('New\x20account\x20name'),'success':z['boolean']()['describe']('True\x20if\x20rename\x20was\x20successful,\x20false\x20if\x20account\x20not\x20found\x20or\x20name\x20already\x20exists')})['optional']()['describe']('Result\x20of\x20renaming\x20account'),'swap_name':z['object']({'name1':NameSchema['optional']()['describe']('First\x20account\x20name'),'name2':NameSchema['optional']()['describe']('Second\x20account\x20name'),'success':z['boolean']()['describe']('True\x20if\x20swap\x20was\x20successful,\x20false\x20if\x20either\x20account\x20not\x20found')})['optional']()['describe']('Result\x20of\x20swapping\x20account\x20names'),'transfer':WowTransactionBlockResponseSchema['optional']()['describe']('Result\x20of\x20token\x20transfer\x20transaction'),'get':z['object']({'coin_address':z['string']()['optional']()['describe']('Newly\x20generated\x20coin\x20object\x20ID'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20coin\x20object\x20balance'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Result\x20of\x20generating\x20new\x20coin\x20object\x20ID\x20from\x20account\x20by\x20required\x20amount'),'signData':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20used\x20for\x20signing'),'signature':z['string']()['describe']('Signature\x20in\x20hex\x20format'),'publicKey':z['string']()['describe']('Public\x20key\x20in\x20hex\x20format'),'address':z['string']()['describe']('Account\x20address')})['optional']()['describe']('Result\x20of\x20signing\x20data\x20with\x20account'),'messenger':z['object']({'name_or_account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'m':z['union']([NameSchema,z['null']()])['describe']('Messenger\x20name\x20if\x20enabled,\x20null\x20if\x20disabled')})['optional']()['describe']('Result\x20of\x20enabling\x20or\x20disabling\x20messenger\x20for\x20an\x20account')})['describe']('Results\x20of\x20account\x20operations');export const LocalMarkOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20marks'),'data':z['array'](MarkParamSchema)['min'](0x1)['describe']('Array\x20of\x20mark\x20data\x20to\x20add\x20(at\x20least\x201\x20item)')})['optional']()['describe']('Add\x20one\x20or\x20more\x20marks'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20marks'),'names':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20mark\x20names\x20or\x20addresses\x20to\x20remove')})['optional']()['describe']('Remove\x20marks\x20by\x20name\x20or\x20address'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20marks')})['optional']()['describe']('Remove\x20all\x20marks')})['describe']('Local\x20mark\x20operations.\x20Exactly\x20one\x20operation\x20type\x20(add/remove/clear)\x20must\x20be\x20specified.');export const LocalMarkOperationResultSchema=z['object']({'clear':z['boolean']()['optional']()['describe']('Whether\x20all\x20marks\x20were\x20successfully\x20removed'),'add':z['array'](MarkDataSchema)['optional']()['describe']('List\x20of\x20added\x20mark\x20data'),'remove':z['array'](MarkDataSchema)['optional']()['describe']('List\x20of\x20removed\x20mark\x20data')})['describe']('Results\x20of\x20local\x20mark\x20operations\x20for\x20ID');export const LocalInfoOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20info'),'data':z['array'](InfoDataSchema)['min'](0x1)['describe']('Array\x20of\x20info\x20data\x20to\x20add\x20(at\x20least\x201\x20item)')})['optional']()['describe']('Add\x20one\x20or\x20more\x20info\x20entries'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20info'),'data':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20info\x20names\x20to\x20remove')})['optional']()['describe']('Remove\x20info\x20entries\x20by\x20name'),'reset':z['object']({'op':z['literal']('reset')['describe']('Operation\x20type:\x20reset\x20contents'),'name':z['string']()['describe']('Name\x20of\x20info\x20entry\x20to\x20reset'),'contents':z['array'](z['string']())['describe']('New\x20content\x20list\x20to\x20replace\x20existing\x20contents')})['optional']()['describe']('Reset\x20the\x20contents\x20of\x20an\x20existing\x20info\x20entry'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20info')})['optional']()['describe']('Remove\x20all\x20info\x20entries')})['describe']('Local\x20info\x20operations.\x20Exactly\x20one\x20operation\x20type\x20(add/remove/reset/clear)\x20must\x20be\x20specified.');export const LocalInfoOperationResultSchema=z['object']({'success':z['boolean']()['describe']('Whether\x20successful')})['describe']('Results\x20of\x20local\x20info\x20operations');export const FetchTokenInfoOperationSchema=z['object']({'tokenType':z['union']([TokenTypeSchema,z['null']()])['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'alias':NameSchema['optional']()['describe']('Token\x20alias;\x20used\x20to\x20quickly\x20fetch\x20token\x20info'),'network':EntrypointSchema['optional']()})['describe']('Fetch\x20token\x20info\x20to\x20local\x20and\x20name\x20it');export const QueryLocalMarkListSchema=z['object']({'filter':LocalMarkFilterSchema['optional']()['describe']('Local\x20mark\x20filter')})['describe']('Query\x20local\x20mark\x20list\x20parameters');export const QueryLocalMarkListResultSchema=z['object']({'result':z['array'](MarkDataSchema)['describe']('Local\x20mark\x20list')})['describe']('Query\x20local\x20mark\x20list\x20result');export const AccountFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20account\x20name\x20(supports\x20fuzzy\x20match)'),'address':WowAddressSchema['optional']()['describe']('Filter\x20by\x20account\x20address\x20(supports\x20partial\x20match,\x20format:\x200x\x20+\x20hex\x20characters)'),'suspended':z['boolean']()['optional']()['describe']('Filter\x20by\x20suspension\x20status.\x20Omit\x20to\x20return\x20all\x20accounts\x20regardless\x20of\x20status'),'hasMessenger':z['boolean']()['optional']()['describe']('Filter\x20accounts\x20with\x20messenger\x20enabled'),'m':NameSchema['optional']()['describe']('Filter\x20by\x20messenger\x20name\x20(supports\x20fuzzy\x20match)'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20accounts\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20accounts\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20accounts\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20accounts\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range')})['describe']('Filter\x20criteria\x20for\x20querying\x20accounts.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const QueryAccountListSchema=z['object']({'filter':AccountFilterSchema['optional']()['describe']('Account\x20filter')})['describe']('Query\x20account\x20list\x20parameters');export const AccountDataSchema=z['object']({'name':z['string']()['optional']()['describe']('Account\x20name'),'address':z['string']()['describe']('Account\x20address'),'pubkey':z['string']()['optional']()['describe']('Account\x20public\x20key'),'secret':z['string']()['optional']()['describe']('Account\x20secret\x20key'),'suspended':z['boolean']()['optional']()['describe']('Whether\x20account\x20is\x20suspended'),'createdAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20account\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20account\x20was\x20last\x20updated'),'m':z['string']()['nullable']()['optional']()['describe']('Messenger\x20name,\x20indicates\x20this\x20account\x20has\x20messenger\x20enabled')})['describe']('Account\x20data');export const QueryAccountListResultSchema=z['object']({'result':z['array'](AccountDataSchema)['describe']('Account\x20list')})['describe']('Query\x20account\x20list\x20result');export const QueryLocalInfoListResultSchema=z['object']({'result':z['array'](InfoDataSchema)['describe']('Local\x20info\x20list')})['describe']('Query\x20local\x20info\x20list\x20result');export const TokenTypeInfoSchema=z['object']({'type':z['string']()['describe']('Token\x20type'),'alias':z['string']()['optional']()['describe']('Token\x20alias'),'name':z['string']()['describe']('Token\x20name'),'symbol':z['string']()['describe']('Token\x20symbol'),'decimals':z['number']()['describe']('Number\x20of\x20decimal\x20places'),'description':z['string']()['describe']('Description\x20of\x20the\x20token'),'iconUrl':z['union']([z['string'](),z['null']()])['optional']()['describe']('URL\x20for\x20the\x20token\x20logo'),'id':z['union']([z['string'](),z['null']()])['optional']()['describe']('Object\x20id\x20for\x20the\x20CoinMetadata\x20object')})['describe']('Token\x20type\x20info');export const TokenDataFilterSchema=z['object']({'alias_or_name':NameSchema['optional']()['describe']('Alias\x20or\x20name\x20filter'),'symbol':z['string']()['optional']()['describe']('Token\x20symbol'),'type':z['string']()['optional']()['describe']('Token\x20type')})['describe']('Token\x20data\x20filter');export const QueryLocalTokenListResultSchema=z['object']({'result':z['array'](TokenTypeInfoSchema)['describe']('Local\x20token\x20list')})['describe']('Query\x20local\x20token\x20list\x20result');export const AccountOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':AccountOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message')})])['describe']('Account\x20operation\x20output\x20schema\x20with\x20discriminator');export const AccountOperationOutputWrappedSchema=z['object']({'result':AccountOperationOutputSchema})['describe']('Account\x20operation\x20output\x20wrapped\x20schema');export const LocalMarkOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalMarkOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message')})])['describe']('Local\x20mark\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalMarkOperationOutputWrappedSchema=z['object']({'result':LocalMarkOperationOutputSchema})['describe']('Local\x20mark\x20operation\x20output\x20wrapped\x20schema');export const LocalInfoOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalInfoOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message')})])['describe']('Local\x20info\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalInfoOperationOutputWrappedSchema=z['object']({'result':LocalInfoOperationOutputSchema})['describe']('Local\x20info\x20operation\x20output\x20wrapped\x20schema');export*from'./wip.js';