@dipansrimany/mlink-sdk 0.3.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,13 +1,597 @@
1
- import { V as ValidationResult, A as ActionMetadata, T as TransactionRequest, a as TransactionResponse, C as ChainConfig } from './types-CAnUIaVe.js';
2
- export { c as ActionButton, g as ActionContext, f as ActionDefinition, d as ActionError, e as ActionHandler, b as ActionType, E as EVMTransaction } from './types-CAnUIaVe.js';
3
- export { A as Action, b as button, c as createAction, i as input } from './builders-CJNt88dM.js';
1
+ import { V as ValidationResult, A as ActionMetadata, T as TransactionRequest, a as TransactionResponse, L as LinkedAction, b as TypedActionParameter, C as ChainConfig } from './types-DD9rJ58Y.js';
2
+ export { d as ActionButton, h as ActionContext, g as ActionDefinition, e as ActionError, f as ActionHandler, o as ActionLinks, l as ActionParameter, k as ActionParameterBase, j as ActionParameterOption, m as ActionParameterSelectable, i as ActionParameterType, c as ActionType, E as EVMTransaction, I as InlineNextActionLink, n as LinkedActionType, N as NextActionLink, P as PostNextActionLink, S as SelectableParameterType } from './types-DD9rJ58Y.js';
3
+ export { A as Action, E as ExtendedActionDefinition, a as actionButton, k as addressParam, j as amountParam, e as buildHref, b as button, m as checkboxParam, c as createAction, d as createLinks, o as dateParam, f as extractParams, h as hasParameters, i as input, g as isSelectableParam, l as linkedAction, n as numberParam, q as option, r as radioParam, s as selectParam, t as textParam, p as textareaParam } from './builders-CLqoe2Kx.js';
4
4
  import { z } from 'zod';
5
5
 
6
- declare const ActionMetadataSchema: z.ZodObject<{
6
+ declare const ActionButtonSchema: z.ZodObject<{
7
+ label: z.ZodString;
8
+ value: z.ZodString;
9
+ type: z.ZodEnum<["button", "input"]>;
10
+ placeholder: z.ZodOptional<z.ZodString>;
11
+ disabled: z.ZodOptional<z.ZodBoolean>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ label: string;
14
+ value: string;
15
+ type: "button" | "input";
16
+ placeholder?: string | undefined;
17
+ disabled?: boolean | undefined;
18
+ }, {
19
+ label: string;
20
+ value: string;
21
+ type: "button" | "input";
22
+ placeholder?: string | undefined;
23
+ disabled?: boolean | undefined;
24
+ }>;
25
+ /**
26
+ * Option for select/radio/checkbox
27
+ */
28
+ declare const ActionParameterOptionSchema: z.ZodObject<{
29
+ label: z.ZodString;
30
+ value: z.ZodString;
31
+ selected: z.ZodOptional<z.ZodBoolean>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ label: string;
34
+ value: string;
35
+ selected?: boolean | undefined;
36
+ }, {
37
+ label: string;
38
+ value: string;
39
+ selected?: boolean | undefined;
40
+ }>;
41
+ /**
42
+ * Non-selectable parameter (text, number, etc.)
43
+ */
44
+ declare const ActionParameterSchema: z.ZodObject<{
45
+ name: z.ZodString;
46
+ label: z.ZodOptional<z.ZodString>;
47
+ required: z.ZodOptional<z.ZodBoolean>;
48
+ pattern: z.ZodOptional<z.ZodString>;
49
+ patternDescription: z.ZodOptional<z.ZodString>;
50
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
51
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
52
+ } & {
53
+ type: z.ZodOptional<z.ZodEnum<["text", "number", "email", "url", "date", "datetime-local", "textarea", "address", "token", "amount"]>>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ name: string;
56
+ label?: string | undefined;
57
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
58
+ required?: boolean | undefined;
59
+ pattern?: string | undefined;
60
+ patternDescription?: string | undefined;
61
+ min?: string | number | undefined;
62
+ max?: string | number | undefined;
63
+ }, {
64
+ name: string;
65
+ label?: string | undefined;
66
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
67
+ required?: boolean | undefined;
68
+ pattern?: string | undefined;
69
+ patternDescription?: string | undefined;
70
+ min?: string | number | undefined;
71
+ max?: string | number | undefined;
72
+ }>;
73
+ /**
74
+ * Selectable parameter (select, radio, checkbox)
75
+ */
76
+ declare const ActionParameterSelectableSchema: z.ZodObject<{
77
+ name: z.ZodString;
78
+ label: z.ZodOptional<z.ZodString>;
79
+ required: z.ZodOptional<z.ZodBoolean>;
80
+ pattern: z.ZodOptional<z.ZodString>;
81
+ patternDescription: z.ZodOptional<z.ZodString>;
82
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
83
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
84
+ } & {
85
+ type: z.ZodEnum<["select", "radio", "checkbox"]>;
86
+ options: z.ZodArray<z.ZodObject<{
87
+ label: z.ZodString;
88
+ value: z.ZodString;
89
+ selected: z.ZodOptional<z.ZodBoolean>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ label: string;
92
+ value: string;
93
+ selected?: boolean | undefined;
94
+ }, {
95
+ label: string;
96
+ value: string;
97
+ selected?: boolean | undefined;
98
+ }>, "many">;
99
+ }, "strip", z.ZodTypeAny, {
100
+ type: "select" | "radio" | "checkbox";
101
+ options: {
102
+ label: string;
103
+ value: string;
104
+ selected?: boolean | undefined;
105
+ }[];
106
+ name: string;
107
+ label?: string | undefined;
108
+ required?: boolean | undefined;
109
+ pattern?: string | undefined;
110
+ patternDescription?: string | undefined;
111
+ min?: string | number | undefined;
112
+ max?: string | number | undefined;
113
+ }, {
114
+ type: "select" | "radio" | "checkbox";
115
+ options: {
116
+ label: string;
117
+ value: string;
118
+ selected?: boolean | undefined;
119
+ }[];
120
+ name: string;
121
+ label?: string | undefined;
122
+ required?: boolean | undefined;
123
+ pattern?: string | undefined;
124
+ patternDescription?: string | undefined;
125
+ min?: string | number | undefined;
126
+ max?: string | number | undefined;
127
+ }>;
128
+ /**
129
+ * Union of all parameter types
130
+ */
131
+ declare const TypedActionParameterSchema: z.ZodUnion<[z.ZodObject<{
132
+ name: z.ZodString;
133
+ label: z.ZodOptional<z.ZodString>;
134
+ required: z.ZodOptional<z.ZodBoolean>;
135
+ pattern: z.ZodOptional<z.ZodString>;
136
+ patternDescription: z.ZodOptional<z.ZodString>;
137
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
138
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
139
+ } & {
140
+ type: z.ZodEnum<["select", "radio", "checkbox"]>;
141
+ options: z.ZodArray<z.ZodObject<{
142
+ label: z.ZodString;
143
+ value: z.ZodString;
144
+ selected: z.ZodOptional<z.ZodBoolean>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ label: string;
147
+ value: string;
148
+ selected?: boolean | undefined;
149
+ }, {
150
+ label: string;
151
+ value: string;
152
+ selected?: boolean | undefined;
153
+ }>, "many">;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type: "select" | "radio" | "checkbox";
156
+ options: {
157
+ label: string;
158
+ value: string;
159
+ selected?: boolean | undefined;
160
+ }[];
161
+ name: string;
162
+ label?: string | undefined;
163
+ required?: boolean | undefined;
164
+ pattern?: string | undefined;
165
+ patternDescription?: string | undefined;
166
+ min?: string | number | undefined;
167
+ max?: string | number | undefined;
168
+ }, {
169
+ type: "select" | "radio" | "checkbox";
170
+ options: {
171
+ label: string;
172
+ value: string;
173
+ selected?: boolean | undefined;
174
+ }[];
175
+ name: string;
176
+ label?: string | undefined;
177
+ required?: boolean | undefined;
178
+ pattern?: string | undefined;
179
+ patternDescription?: string | undefined;
180
+ min?: string | number | undefined;
181
+ max?: string | number | undefined;
182
+ }>, z.ZodObject<{
183
+ name: z.ZodString;
184
+ label: z.ZodOptional<z.ZodString>;
185
+ required: z.ZodOptional<z.ZodBoolean>;
186
+ pattern: z.ZodOptional<z.ZodString>;
187
+ patternDescription: z.ZodOptional<z.ZodString>;
188
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
189
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
190
+ } & {
191
+ type: z.ZodOptional<z.ZodEnum<["text", "number", "email", "url", "date", "datetime-local", "textarea", "address", "token", "amount"]>>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ name: string;
194
+ label?: string | undefined;
195
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
196
+ required?: boolean | undefined;
197
+ pattern?: string | undefined;
198
+ patternDescription?: string | undefined;
199
+ min?: string | number | undefined;
200
+ max?: string | number | undefined;
201
+ }, {
202
+ name: string;
203
+ label?: string | undefined;
204
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
205
+ required?: boolean | undefined;
206
+ pattern?: string | undefined;
207
+ patternDescription?: string | undefined;
208
+ min?: string | number | undefined;
209
+ max?: string | number | undefined;
210
+ }>]>;
211
+ /**
212
+ * Linked action with href template and parameters
213
+ */
214
+ declare const LinkedActionSchema: z.ZodObject<{
215
+ type: z.ZodOptional<z.ZodEnum<["transaction", "post", "external-link"]>>;
216
+ href: z.ZodString;
217
+ label: z.ZodString;
218
+ disabled: z.ZodOptional<z.ZodBoolean>;
219
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
220
+ name: z.ZodString;
221
+ label: z.ZodOptional<z.ZodString>;
222
+ required: z.ZodOptional<z.ZodBoolean>;
223
+ pattern: z.ZodOptional<z.ZodString>;
224
+ patternDescription: z.ZodOptional<z.ZodString>;
225
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
226
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
227
+ } & {
228
+ type: z.ZodEnum<["select", "radio", "checkbox"]>;
229
+ options: z.ZodArray<z.ZodObject<{
230
+ label: z.ZodString;
231
+ value: z.ZodString;
232
+ selected: z.ZodOptional<z.ZodBoolean>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ label: string;
235
+ value: string;
236
+ selected?: boolean | undefined;
237
+ }, {
238
+ label: string;
239
+ value: string;
240
+ selected?: boolean | undefined;
241
+ }>, "many">;
242
+ }, "strip", z.ZodTypeAny, {
243
+ type: "select" | "radio" | "checkbox";
244
+ options: {
245
+ label: string;
246
+ value: string;
247
+ selected?: boolean | undefined;
248
+ }[];
249
+ name: string;
250
+ label?: string | undefined;
251
+ required?: boolean | undefined;
252
+ pattern?: string | undefined;
253
+ patternDescription?: string | undefined;
254
+ min?: string | number | undefined;
255
+ max?: string | number | undefined;
256
+ }, {
257
+ type: "select" | "radio" | "checkbox";
258
+ options: {
259
+ label: string;
260
+ value: string;
261
+ selected?: boolean | undefined;
262
+ }[];
263
+ name: string;
264
+ label?: string | undefined;
265
+ required?: boolean | undefined;
266
+ pattern?: string | undefined;
267
+ patternDescription?: string | undefined;
268
+ min?: string | number | undefined;
269
+ max?: string | number | undefined;
270
+ }>, z.ZodObject<{
271
+ name: z.ZodString;
272
+ label: z.ZodOptional<z.ZodString>;
273
+ required: z.ZodOptional<z.ZodBoolean>;
274
+ pattern: z.ZodOptional<z.ZodString>;
275
+ patternDescription: z.ZodOptional<z.ZodString>;
276
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
277
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
278
+ } & {
279
+ type: z.ZodOptional<z.ZodEnum<["text", "number", "email", "url", "date", "datetime-local", "textarea", "address", "token", "amount"]>>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ name: string;
282
+ label?: string | undefined;
283
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
284
+ required?: boolean | undefined;
285
+ pattern?: string | undefined;
286
+ patternDescription?: string | undefined;
287
+ min?: string | number | undefined;
288
+ max?: string | number | undefined;
289
+ }, {
290
+ name: string;
291
+ label?: string | undefined;
292
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
293
+ required?: boolean | undefined;
294
+ pattern?: string | undefined;
295
+ patternDescription?: string | undefined;
296
+ min?: string | number | undefined;
297
+ max?: string | number | undefined;
298
+ }>]>, "many">>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ label: string;
301
+ href: string;
302
+ type?: "transaction" | "post" | "external-link" | undefined;
303
+ disabled?: boolean | undefined;
304
+ parameters?: ({
305
+ name: string;
306
+ label?: string | undefined;
307
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
308
+ required?: boolean | undefined;
309
+ pattern?: string | undefined;
310
+ patternDescription?: string | undefined;
311
+ min?: string | number | undefined;
312
+ max?: string | number | undefined;
313
+ } | {
314
+ type: "select" | "radio" | "checkbox";
315
+ options: {
316
+ label: string;
317
+ value: string;
318
+ selected?: boolean | undefined;
319
+ }[];
320
+ name: string;
321
+ label?: string | undefined;
322
+ required?: boolean | undefined;
323
+ pattern?: string | undefined;
324
+ patternDescription?: string | undefined;
325
+ min?: string | number | undefined;
326
+ max?: string | number | undefined;
327
+ })[] | undefined;
328
+ }, {
329
+ label: string;
330
+ href: string;
331
+ type?: "transaction" | "post" | "external-link" | undefined;
332
+ disabled?: boolean | undefined;
333
+ parameters?: ({
334
+ name: string;
335
+ label?: string | undefined;
336
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
337
+ required?: boolean | undefined;
338
+ pattern?: string | undefined;
339
+ patternDescription?: string | undefined;
340
+ min?: string | number | undefined;
341
+ max?: string | number | undefined;
342
+ } | {
343
+ type: "select" | "radio" | "checkbox";
344
+ options: {
345
+ label: string;
346
+ value: string;
347
+ selected?: boolean | undefined;
348
+ }[];
349
+ name: string;
350
+ label?: string | undefined;
351
+ required?: boolean | undefined;
352
+ pattern?: string | undefined;
353
+ patternDescription?: string | undefined;
354
+ min?: string | number | undefined;
355
+ max?: string | number | undefined;
356
+ })[] | undefined;
357
+ }>;
358
+ /**
359
+ * Links section containing linked actions
360
+ */
361
+ declare const ActionLinksSchema: z.ZodObject<{
362
+ actions: z.ZodArray<z.ZodObject<{
363
+ type: z.ZodOptional<z.ZodEnum<["transaction", "post", "external-link"]>>;
364
+ href: z.ZodString;
365
+ label: z.ZodString;
366
+ disabled: z.ZodOptional<z.ZodBoolean>;
367
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
368
+ name: z.ZodString;
369
+ label: z.ZodOptional<z.ZodString>;
370
+ required: z.ZodOptional<z.ZodBoolean>;
371
+ pattern: z.ZodOptional<z.ZodString>;
372
+ patternDescription: z.ZodOptional<z.ZodString>;
373
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
374
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
375
+ } & {
376
+ type: z.ZodEnum<["select", "radio", "checkbox"]>;
377
+ options: z.ZodArray<z.ZodObject<{
378
+ label: z.ZodString;
379
+ value: z.ZodString;
380
+ selected: z.ZodOptional<z.ZodBoolean>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ label: string;
383
+ value: string;
384
+ selected?: boolean | undefined;
385
+ }, {
386
+ label: string;
387
+ value: string;
388
+ selected?: boolean | undefined;
389
+ }>, "many">;
390
+ }, "strip", z.ZodTypeAny, {
391
+ type: "select" | "radio" | "checkbox";
392
+ options: {
393
+ label: string;
394
+ value: string;
395
+ selected?: boolean | undefined;
396
+ }[];
397
+ name: string;
398
+ label?: string | undefined;
399
+ required?: boolean | undefined;
400
+ pattern?: string | undefined;
401
+ patternDescription?: string | undefined;
402
+ min?: string | number | undefined;
403
+ max?: string | number | undefined;
404
+ }, {
405
+ type: "select" | "radio" | "checkbox";
406
+ options: {
407
+ label: string;
408
+ value: string;
409
+ selected?: boolean | undefined;
410
+ }[];
411
+ name: string;
412
+ label?: string | undefined;
413
+ required?: boolean | undefined;
414
+ pattern?: string | undefined;
415
+ patternDescription?: string | undefined;
416
+ min?: string | number | undefined;
417
+ max?: string | number | undefined;
418
+ }>, z.ZodObject<{
419
+ name: z.ZodString;
420
+ label: z.ZodOptional<z.ZodString>;
421
+ required: z.ZodOptional<z.ZodBoolean>;
422
+ pattern: z.ZodOptional<z.ZodString>;
423
+ patternDescription: z.ZodOptional<z.ZodString>;
424
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
425
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
426
+ } & {
427
+ type: z.ZodOptional<z.ZodEnum<["text", "number", "email", "url", "date", "datetime-local", "textarea", "address", "token", "amount"]>>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ name: string;
430
+ label?: string | undefined;
431
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
432
+ required?: boolean | undefined;
433
+ pattern?: string | undefined;
434
+ patternDescription?: string | undefined;
435
+ min?: string | number | undefined;
436
+ max?: string | number | undefined;
437
+ }, {
438
+ name: string;
439
+ label?: string | undefined;
440
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
441
+ required?: boolean | undefined;
442
+ pattern?: string | undefined;
443
+ patternDescription?: string | undefined;
444
+ min?: string | number | undefined;
445
+ max?: string | number | undefined;
446
+ }>]>, "many">>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ label: string;
449
+ href: string;
450
+ type?: "transaction" | "post" | "external-link" | undefined;
451
+ disabled?: boolean | undefined;
452
+ parameters?: ({
453
+ name: string;
454
+ label?: string | undefined;
455
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
456
+ required?: boolean | undefined;
457
+ pattern?: string | undefined;
458
+ patternDescription?: string | undefined;
459
+ min?: string | number | undefined;
460
+ max?: string | number | undefined;
461
+ } | {
462
+ type: "select" | "radio" | "checkbox";
463
+ options: {
464
+ label: string;
465
+ value: string;
466
+ selected?: boolean | undefined;
467
+ }[];
468
+ name: string;
469
+ label?: string | undefined;
470
+ required?: boolean | undefined;
471
+ pattern?: string | undefined;
472
+ patternDescription?: string | undefined;
473
+ min?: string | number | undefined;
474
+ max?: string | number | undefined;
475
+ })[] | undefined;
476
+ }, {
477
+ label: string;
478
+ href: string;
479
+ type?: "transaction" | "post" | "external-link" | undefined;
480
+ disabled?: boolean | undefined;
481
+ parameters?: ({
482
+ name: string;
483
+ label?: string | undefined;
484
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
485
+ required?: boolean | undefined;
486
+ pattern?: string | undefined;
487
+ patternDescription?: string | undefined;
488
+ min?: string | number | undefined;
489
+ max?: string | number | undefined;
490
+ } | {
491
+ type: "select" | "radio" | "checkbox";
492
+ options: {
493
+ label: string;
494
+ value: string;
495
+ selected?: boolean | undefined;
496
+ }[];
497
+ name: string;
498
+ label?: string | undefined;
499
+ required?: boolean | undefined;
500
+ pattern?: string | undefined;
501
+ patternDescription?: string | undefined;
502
+ min?: string | number | undefined;
503
+ max?: string | number | undefined;
504
+ })[] | undefined;
505
+ }>, "many">;
506
+ }, "strip", z.ZodTypeAny, {
507
+ actions: {
508
+ label: string;
509
+ href: string;
510
+ type?: "transaction" | "post" | "external-link" | undefined;
511
+ disabled?: boolean | undefined;
512
+ parameters?: ({
513
+ name: string;
514
+ label?: string | undefined;
515
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
516
+ required?: boolean | undefined;
517
+ pattern?: string | undefined;
518
+ patternDescription?: string | undefined;
519
+ min?: string | number | undefined;
520
+ max?: string | number | undefined;
521
+ } | {
522
+ type: "select" | "radio" | "checkbox";
523
+ options: {
524
+ label: string;
525
+ value: string;
526
+ selected?: boolean | undefined;
527
+ }[];
528
+ name: string;
529
+ label?: string | undefined;
530
+ required?: boolean | undefined;
531
+ pattern?: string | undefined;
532
+ patternDescription?: string | undefined;
533
+ min?: string | number | undefined;
534
+ max?: string | number | undefined;
535
+ })[] | undefined;
536
+ }[];
537
+ }, {
538
+ actions: {
539
+ label: string;
540
+ href: string;
541
+ type?: "transaction" | "post" | "external-link" | undefined;
542
+ disabled?: boolean | undefined;
543
+ parameters?: ({
544
+ name: string;
545
+ label?: string | undefined;
546
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
547
+ required?: boolean | undefined;
548
+ pattern?: string | undefined;
549
+ patternDescription?: string | undefined;
550
+ min?: string | number | undefined;
551
+ max?: string | number | undefined;
552
+ } | {
553
+ type: "select" | "radio" | "checkbox";
554
+ options: {
555
+ label: string;
556
+ value: string;
557
+ selected?: boolean | undefined;
558
+ }[];
559
+ name: string;
560
+ label?: string | undefined;
561
+ required?: boolean | undefined;
562
+ pattern?: string | undefined;
563
+ patternDescription?: string | undefined;
564
+ min?: string | number | undefined;
565
+ max?: string | number | undefined;
566
+ })[] | undefined;
567
+ }[];
568
+ }>;
569
+ declare const NextActionLinkSchema: z.ZodUnion<[z.ZodObject<{
570
+ type: z.ZodLiteral<"post">;
571
+ href: z.ZodString;
572
+ }, "strip", z.ZodTypeAny, {
573
+ type: "post";
574
+ href: string;
575
+ }, {
576
+ type: "post";
577
+ href: string;
578
+ }>, z.ZodType<{
579
+ type: "inline";
580
+ action: ActionMetadata;
581
+ }, z.ZodTypeDef, {
582
+ type: "inline";
583
+ action: ActionMetadata;
584
+ }>]>;
585
+ /**
586
+ * Enhanced ActionMetadata schema with links support
587
+ */
588
+ declare const ActionMetadataSchema: z.ZodEffects<z.ZodObject<{
589
+ type: z.ZodOptional<z.ZodEnum<["action", "completed"]>>;
7
590
  title: z.ZodString;
8
- icon: z.ZodString;
591
+ icon: z.ZodEffects<z.ZodString, string, string>;
9
592
  description: z.ZodString;
10
- actions: z.ZodArray<z.ZodObject<{
593
+ label: z.ZodOptional<z.ZodString>;
594
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
11
595
  label: z.ZodString;
12
596
  value: z.ZodString;
13
597
  type: z.ZodEnum<["button", "input"]>;
@@ -25,7 +609,215 @@ declare const ActionMetadataSchema: z.ZodObject<{
25
609
  type: "button" | "input";
26
610
  placeholder?: string | undefined;
27
611
  disabled?: boolean | undefined;
28
- }>, "many">;
612
+ }>, "many">>;
613
+ links: z.ZodOptional<z.ZodObject<{
614
+ actions: z.ZodArray<z.ZodObject<{
615
+ type: z.ZodOptional<z.ZodEnum<["transaction", "post", "external-link"]>>;
616
+ href: z.ZodString;
617
+ label: z.ZodString;
618
+ disabled: z.ZodOptional<z.ZodBoolean>;
619
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
620
+ name: z.ZodString;
621
+ label: z.ZodOptional<z.ZodString>;
622
+ required: z.ZodOptional<z.ZodBoolean>;
623
+ pattern: z.ZodOptional<z.ZodString>;
624
+ patternDescription: z.ZodOptional<z.ZodString>;
625
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
626
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
627
+ } & {
628
+ type: z.ZodEnum<["select", "radio", "checkbox"]>;
629
+ options: z.ZodArray<z.ZodObject<{
630
+ label: z.ZodString;
631
+ value: z.ZodString;
632
+ selected: z.ZodOptional<z.ZodBoolean>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ label: string;
635
+ value: string;
636
+ selected?: boolean | undefined;
637
+ }, {
638
+ label: string;
639
+ value: string;
640
+ selected?: boolean | undefined;
641
+ }>, "many">;
642
+ }, "strip", z.ZodTypeAny, {
643
+ type: "select" | "radio" | "checkbox";
644
+ options: {
645
+ label: string;
646
+ value: string;
647
+ selected?: boolean | undefined;
648
+ }[];
649
+ name: string;
650
+ label?: string | undefined;
651
+ required?: boolean | undefined;
652
+ pattern?: string | undefined;
653
+ patternDescription?: string | undefined;
654
+ min?: string | number | undefined;
655
+ max?: string | number | undefined;
656
+ }, {
657
+ type: "select" | "radio" | "checkbox";
658
+ options: {
659
+ label: string;
660
+ value: string;
661
+ selected?: boolean | undefined;
662
+ }[];
663
+ name: string;
664
+ label?: string | undefined;
665
+ required?: boolean | undefined;
666
+ pattern?: string | undefined;
667
+ patternDescription?: string | undefined;
668
+ min?: string | number | undefined;
669
+ max?: string | number | undefined;
670
+ }>, z.ZodObject<{
671
+ name: z.ZodString;
672
+ label: z.ZodOptional<z.ZodString>;
673
+ required: z.ZodOptional<z.ZodBoolean>;
674
+ pattern: z.ZodOptional<z.ZodString>;
675
+ patternDescription: z.ZodOptional<z.ZodString>;
676
+ min: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
677
+ max: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
678
+ } & {
679
+ type: z.ZodOptional<z.ZodEnum<["text", "number", "email", "url", "date", "datetime-local", "textarea", "address", "token", "amount"]>>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ name: string;
682
+ label?: string | undefined;
683
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
684
+ required?: boolean | undefined;
685
+ pattern?: string | undefined;
686
+ patternDescription?: string | undefined;
687
+ min?: string | number | undefined;
688
+ max?: string | number | undefined;
689
+ }, {
690
+ name: string;
691
+ label?: string | undefined;
692
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
693
+ required?: boolean | undefined;
694
+ pattern?: string | undefined;
695
+ patternDescription?: string | undefined;
696
+ min?: string | number | undefined;
697
+ max?: string | number | undefined;
698
+ }>]>, "many">>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ label: string;
701
+ href: string;
702
+ type?: "transaction" | "post" | "external-link" | undefined;
703
+ disabled?: boolean | undefined;
704
+ parameters?: ({
705
+ name: string;
706
+ label?: string | undefined;
707
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
708
+ required?: boolean | undefined;
709
+ pattern?: string | undefined;
710
+ patternDescription?: string | undefined;
711
+ min?: string | number | undefined;
712
+ max?: string | number | undefined;
713
+ } | {
714
+ type: "select" | "radio" | "checkbox";
715
+ options: {
716
+ label: string;
717
+ value: string;
718
+ selected?: boolean | undefined;
719
+ }[];
720
+ name: string;
721
+ label?: string | undefined;
722
+ required?: boolean | undefined;
723
+ pattern?: string | undefined;
724
+ patternDescription?: string | undefined;
725
+ min?: string | number | undefined;
726
+ max?: string | number | undefined;
727
+ })[] | undefined;
728
+ }, {
729
+ label: string;
730
+ href: string;
731
+ type?: "transaction" | "post" | "external-link" | undefined;
732
+ disabled?: boolean | undefined;
733
+ parameters?: ({
734
+ name: string;
735
+ label?: string | undefined;
736
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
737
+ required?: boolean | undefined;
738
+ pattern?: string | undefined;
739
+ patternDescription?: string | undefined;
740
+ min?: string | number | undefined;
741
+ max?: string | number | undefined;
742
+ } | {
743
+ type: "select" | "radio" | "checkbox";
744
+ options: {
745
+ label: string;
746
+ value: string;
747
+ selected?: boolean | undefined;
748
+ }[];
749
+ name: string;
750
+ label?: string | undefined;
751
+ required?: boolean | undefined;
752
+ pattern?: string | undefined;
753
+ patternDescription?: string | undefined;
754
+ min?: string | number | undefined;
755
+ max?: string | number | undefined;
756
+ })[] | undefined;
757
+ }>, "many">;
758
+ }, "strip", z.ZodTypeAny, {
759
+ actions: {
760
+ label: string;
761
+ href: string;
762
+ type?: "transaction" | "post" | "external-link" | undefined;
763
+ disabled?: boolean | undefined;
764
+ parameters?: ({
765
+ name: string;
766
+ label?: string | undefined;
767
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
768
+ required?: boolean | undefined;
769
+ pattern?: string | undefined;
770
+ patternDescription?: string | undefined;
771
+ min?: string | number | undefined;
772
+ max?: string | number | undefined;
773
+ } | {
774
+ type: "select" | "radio" | "checkbox";
775
+ options: {
776
+ label: string;
777
+ value: string;
778
+ selected?: boolean | undefined;
779
+ }[];
780
+ name: string;
781
+ label?: string | undefined;
782
+ required?: boolean | undefined;
783
+ pattern?: string | undefined;
784
+ patternDescription?: string | undefined;
785
+ min?: string | number | undefined;
786
+ max?: string | number | undefined;
787
+ })[] | undefined;
788
+ }[];
789
+ }, {
790
+ actions: {
791
+ label: string;
792
+ href: string;
793
+ type?: "transaction" | "post" | "external-link" | undefined;
794
+ disabled?: boolean | undefined;
795
+ parameters?: ({
796
+ name: string;
797
+ label?: string | undefined;
798
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
799
+ required?: boolean | undefined;
800
+ pattern?: string | undefined;
801
+ patternDescription?: string | undefined;
802
+ min?: string | number | undefined;
803
+ max?: string | number | undefined;
804
+ } | {
805
+ type: "select" | "radio" | "checkbox";
806
+ options: {
807
+ label: string;
808
+ value: string;
809
+ selected?: boolean | undefined;
810
+ }[];
811
+ name: string;
812
+ label?: string | undefined;
813
+ required?: boolean | undefined;
814
+ pattern?: string | undefined;
815
+ patternDescription?: string | undefined;
816
+ min?: string | number | undefined;
817
+ max?: string | number | undefined;
818
+ })[] | undefined;
819
+ }[];
820
+ }>>;
29
821
  disabled: z.ZodOptional<z.ZodBoolean>;
30
822
  error: z.ZodOptional<z.ZodObject<{
31
823
  message: z.ZodString;
@@ -38,14 +830,48 @@ declare const ActionMetadataSchema: z.ZodObject<{
38
830
  title: string;
39
831
  icon: string;
40
832
  description: string;
41
- actions: {
833
+ label?: string | undefined;
834
+ type?: "action" | "completed" | undefined;
835
+ disabled?: boolean | undefined;
836
+ actions?: {
42
837
  label: string;
43
838
  value: string;
44
839
  type: "button" | "input";
45
840
  placeholder?: string | undefined;
46
841
  disabled?: boolean | undefined;
47
- }[];
48
- disabled?: boolean | undefined;
842
+ }[] | undefined;
843
+ links?: {
844
+ actions: {
845
+ label: string;
846
+ href: string;
847
+ type?: "transaction" | "post" | "external-link" | undefined;
848
+ disabled?: boolean | undefined;
849
+ parameters?: ({
850
+ name: string;
851
+ label?: string | undefined;
852
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
853
+ required?: boolean | undefined;
854
+ pattern?: string | undefined;
855
+ patternDescription?: string | undefined;
856
+ min?: string | number | undefined;
857
+ max?: string | number | undefined;
858
+ } | {
859
+ type: "select" | "radio" | "checkbox";
860
+ options: {
861
+ label: string;
862
+ value: string;
863
+ selected?: boolean | undefined;
864
+ }[];
865
+ name: string;
866
+ label?: string | undefined;
867
+ required?: boolean | undefined;
868
+ pattern?: string | undefined;
869
+ patternDescription?: string | undefined;
870
+ min?: string | number | undefined;
871
+ max?: string | number | undefined;
872
+ })[] | undefined;
873
+ }[];
874
+ } | undefined;
49
875
  error?: {
50
876
  message: string;
51
877
  } | undefined;
@@ -53,71 +879,350 @@ declare const ActionMetadataSchema: z.ZodObject<{
53
879
  title: string;
54
880
  icon: string;
55
881
  description: string;
56
- actions: {
882
+ label?: string | undefined;
883
+ type?: "action" | "completed" | undefined;
884
+ disabled?: boolean | undefined;
885
+ actions?: {
57
886
  label: string;
58
887
  value: string;
59
888
  type: "button" | "input";
60
889
  placeholder?: string | undefined;
61
890
  disabled?: boolean | undefined;
62
- }[];
891
+ }[] | undefined;
892
+ links?: {
893
+ actions: {
894
+ label: string;
895
+ href: string;
896
+ type?: "transaction" | "post" | "external-link" | undefined;
897
+ disabled?: boolean | undefined;
898
+ parameters?: ({
899
+ name: string;
900
+ label?: string | undefined;
901
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
902
+ required?: boolean | undefined;
903
+ pattern?: string | undefined;
904
+ patternDescription?: string | undefined;
905
+ min?: string | number | undefined;
906
+ max?: string | number | undefined;
907
+ } | {
908
+ type: "select" | "radio" | "checkbox";
909
+ options: {
910
+ label: string;
911
+ value: string;
912
+ selected?: boolean | undefined;
913
+ }[];
914
+ name: string;
915
+ label?: string | undefined;
916
+ required?: boolean | undefined;
917
+ pattern?: string | undefined;
918
+ patternDescription?: string | undefined;
919
+ min?: string | number | undefined;
920
+ max?: string | number | undefined;
921
+ })[] | undefined;
922
+ }[];
923
+ } | undefined;
924
+ error?: {
925
+ message: string;
926
+ } | undefined;
927
+ }>, {
928
+ title: string;
929
+ icon: string;
930
+ description: string;
931
+ label?: string | undefined;
932
+ type?: "action" | "completed" | undefined;
933
+ disabled?: boolean | undefined;
934
+ actions?: {
935
+ label: string;
936
+ value: string;
937
+ type: "button" | "input";
938
+ placeholder?: string | undefined;
939
+ disabled?: boolean | undefined;
940
+ }[] | undefined;
941
+ links?: {
942
+ actions: {
943
+ label: string;
944
+ href: string;
945
+ type?: "transaction" | "post" | "external-link" | undefined;
946
+ disabled?: boolean | undefined;
947
+ parameters?: ({
948
+ name: string;
949
+ label?: string | undefined;
950
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
951
+ required?: boolean | undefined;
952
+ pattern?: string | undefined;
953
+ patternDescription?: string | undefined;
954
+ min?: string | number | undefined;
955
+ max?: string | number | undefined;
956
+ } | {
957
+ type: "select" | "radio" | "checkbox";
958
+ options: {
959
+ label: string;
960
+ value: string;
961
+ selected?: boolean | undefined;
962
+ }[];
963
+ name: string;
964
+ label?: string | undefined;
965
+ required?: boolean | undefined;
966
+ pattern?: string | undefined;
967
+ patternDescription?: string | undefined;
968
+ min?: string | number | undefined;
969
+ max?: string | number | undefined;
970
+ })[] | undefined;
971
+ }[];
972
+ } | undefined;
973
+ error?: {
974
+ message: string;
975
+ } | undefined;
976
+ }, {
977
+ title: string;
978
+ icon: string;
979
+ description: string;
980
+ label?: string | undefined;
981
+ type?: "action" | "completed" | undefined;
63
982
  disabled?: boolean | undefined;
983
+ actions?: {
984
+ label: string;
985
+ value: string;
986
+ type: "button" | "input";
987
+ placeholder?: string | undefined;
988
+ disabled?: boolean | undefined;
989
+ }[] | undefined;
990
+ links?: {
991
+ actions: {
992
+ label: string;
993
+ href: string;
994
+ type?: "transaction" | "post" | "external-link" | undefined;
995
+ disabled?: boolean | undefined;
996
+ parameters?: ({
997
+ name: string;
998
+ label?: string | undefined;
999
+ type?: "number" | "text" | "email" | "url" | "date" | "datetime-local" | "textarea" | "address" | "token" | "amount" | undefined;
1000
+ required?: boolean | undefined;
1001
+ pattern?: string | undefined;
1002
+ patternDescription?: string | undefined;
1003
+ min?: string | number | undefined;
1004
+ max?: string | number | undefined;
1005
+ } | {
1006
+ type: "select" | "radio" | "checkbox";
1007
+ options: {
1008
+ label: string;
1009
+ value: string;
1010
+ selected?: boolean | undefined;
1011
+ }[];
1012
+ name: string;
1013
+ label?: string | undefined;
1014
+ required?: boolean | undefined;
1015
+ pattern?: string | undefined;
1016
+ patternDescription?: string | undefined;
1017
+ min?: string | number | undefined;
1018
+ max?: string | number | undefined;
1019
+ })[] | undefined;
1020
+ }[];
1021
+ } | undefined;
64
1022
  error?: {
65
1023
  message: string;
66
1024
  } | undefined;
67
1025
  }>;
1026
+ /**
1027
+ * Enhanced TransactionRequest with data support
1028
+ */
68
1029
  declare const TransactionRequestSchema: z.ZodObject<{
69
1030
  account: z.ZodString;
70
1031
  action: z.ZodString;
71
1032
  input: z.ZodOptional<z.ZodString>;
1033
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
72
1034
  }, "strip", z.ZodTypeAny, {
73
- account: string;
74
1035
  action: string;
1036
+ account: string;
75
1037
  input?: string | undefined;
1038
+ data?: Record<string, string | string[]> | undefined;
76
1039
  }, {
77
- account: string;
78
1040
  action: string;
1041
+ account: string;
79
1042
  input?: string | undefined;
1043
+ data?: Record<string, string | string[]> | undefined;
80
1044
  }>;
81
- declare const TransactionResponseSchema: z.ZodObject<{
82
- transaction: z.ZodObject<{
1045
+ /**
1046
+ * Enhanced TransactionResponse with multi-tx and chaining support
1047
+ */
1048
+ declare const TransactionResponseSchema: z.ZodEffects<z.ZodObject<{
1049
+ transaction: z.ZodOptional<z.ZodObject<{
83
1050
  to: z.ZodString;
84
1051
  value: z.ZodString;
85
1052
  data: z.ZodString;
86
1053
  chainId: z.ZodNumber;
87
1054
  }, "strip", z.ZodTypeAny, {
88
1055
  value: string;
89
- to: string;
90
1056
  data: string;
1057
+ to: string;
91
1058
  chainId: number;
92
1059
  }, {
93
1060
  value: string;
1061
+ data: string;
94
1062
  to: string;
1063
+ chainId: number;
1064
+ }>>;
1065
+ transactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1066
+ to: z.ZodString;
1067
+ value: z.ZodString;
1068
+ data: z.ZodString;
1069
+ chainId: z.ZodNumber;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ value: string;
95
1072
  data: string;
1073
+ to: string;
96
1074
  chainId: number;
97
- }>;
1075
+ }, {
1076
+ value: string;
1077
+ data: string;
1078
+ to: string;
1079
+ chainId: number;
1080
+ }>, "many">>;
98
1081
  message: z.ZodOptional<z.ZodString>;
1082
+ links: z.ZodOptional<z.ZodObject<{
1083
+ next: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1084
+ type: z.ZodLiteral<"post">;
1085
+ href: z.ZodString;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ type: "post";
1088
+ href: string;
1089
+ }, {
1090
+ type: "post";
1091
+ href: string;
1092
+ }>, z.ZodType<{
1093
+ type: "inline";
1094
+ action: ActionMetadata;
1095
+ }, z.ZodTypeDef, {
1096
+ type: "inline";
1097
+ action: ActionMetadata;
1098
+ }>]>>;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ next?: {
1101
+ type: "post";
1102
+ href: string;
1103
+ } | {
1104
+ type: "inline";
1105
+ action: ActionMetadata;
1106
+ } | undefined;
1107
+ }, {
1108
+ next?: {
1109
+ type: "post";
1110
+ href: string;
1111
+ } | {
1112
+ type: "inline";
1113
+ action: ActionMetadata;
1114
+ } | undefined;
1115
+ }>>;
99
1116
  }, "strip", z.ZodTypeAny, {
100
- transaction: {
1117
+ transaction?: {
101
1118
  value: string;
102
- to: string;
103
1119
  data: string;
1120
+ to: string;
104
1121
  chainId: number;
105
- };
1122
+ } | undefined;
106
1123
  message?: string | undefined;
1124
+ links?: {
1125
+ next?: {
1126
+ type: "post";
1127
+ href: string;
1128
+ } | {
1129
+ type: "inline";
1130
+ action: ActionMetadata;
1131
+ } | undefined;
1132
+ } | undefined;
1133
+ transactions?: {
1134
+ value: string;
1135
+ data: string;
1136
+ to: string;
1137
+ chainId: number;
1138
+ }[] | undefined;
107
1139
  }, {
108
- transaction: {
1140
+ transaction?: {
109
1141
  value: string;
1142
+ data: string;
110
1143
  to: string;
1144
+ chainId: number;
1145
+ } | undefined;
1146
+ message?: string | undefined;
1147
+ links?: {
1148
+ next?: {
1149
+ type: "post";
1150
+ href: string;
1151
+ } | {
1152
+ type: "inline";
1153
+ action: ActionMetadata;
1154
+ } | undefined;
1155
+ } | undefined;
1156
+ transactions?: {
1157
+ value: string;
111
1158
  data: string;
1159
+ to: string;
112
1160
  chainId: number;
113
- };
1161
+ }[] | undefined;
1162
+ }>, {
1163
+ transaction?: {
1164
+ value: string;
1165
+ data: string;
1166
+ to: string;
1167
+ chainId: number;
1168
+ } | undefined;
1169
+ message?: string | undefined;
1170
+ links?: {
1171
+ next?: {
1172
+ type: "post";
1173
+ href: string;
1174
+ } | {
1175
+ type: "inline";
1176
+ action: ActionMetadata;
1177
+ } | undefined;
1178
+ } | undefined;
1179
+ transactions?: {
1180
+ value: string;
1181
+ data: string;
1182
+ to: string;
1183
+ chainId: number;
1184
+ }[] | undefined;
1185
+ }, {
1186
+ transaction?: {
1187
+ value: string;
1188
+ data: string;
1189
+ to: string;
1190
+ chainId: number;
1191
+ } | undefined;
114
1192
  message?: string | undefined;
1193
+ links?: {
1194
+ next?: {
1195
+ type: "post";
1196
+ href: string;
1197
+ } | {
1198
+ type: "inline";
1199
+ action: ActionMetadata;
1200
+ } | undefined;
1201
+ } | undefined;
1202
+ transactions?: {
1203
+ value: string;
1204
+ data: string;
1205
+ to: string;
1206
+ chainId: number;
1207
+ }[] | undefined;
115
1208
  }>;
116
1209
  declare function validateActionMetadata(data: unknown): ValidationResult<ActionMetadata>;
117
1210
  declare function validateTransactionRequest(data: unknown): ValidationResult<TransactionRequest>;
118
1211
  declare function validateTransactionResponse(data: unknown): ValidationResult<TransactionResponse>;
119
1212
  declare function isValidAddress(address: string): boolean;
120
1213
  declare function isValidHex(hex: string): boolean;
1214
+ /**
1215
+ * Validate a linked action
1216
+ */
1217
+ declare function validateLinkedAction(data: unknown): ValidationResult<LinkedAction>;
1218
+ /**
1219
+ * Validate a parameter
1220
+ */
1221
+ declare function validateParameter(data: unknown): ValidationResult<TypedActionParameter>;
1222
+ /**
1223
+ * Validate parameter values against their definitions
1224
+ */
1225
+ declare function validateParameterValues(parameters: TypedActionParameter[], values: Record<string, string | string[]>): ValidationResult<Record<string, string | string[]>>;
121
1226
 
122
1227
  declare function createBlinkUrl(actionUrl: string, baseUrl?: string): string;
123
1228
  declare function parseBlinkUrl(blinkUrl: string): string | null;
@@ -135,5 +1240,7 @@ declare const SUPPORTED_CHAINS: ChainConfig[];
135
1240
  declare const DEFAULT_CHAIN: ChainConfig;
136
1241
  declare const BLINK_BASE_URL = "https://blink.mantle.xyz";
137
1242
  declare const ACTION_QUERY_PARAM = "action";
1243
+ declare const REGISTRY_URL = "https://mlinks-fe.vercel.app";
1244
+ declare const REGISTRY_VALIDATE_ENDPOINT = "/api/registry/validate";
138
1245
 
139
- export { ACTION_QUERY_PARAM, ActionMetadata, ActionMetadataSchema, BLINK_BASE_URL, ChainConfig, DEFAULT_CHAIN, MANTLE_MAINNET, MANTLE_SEPOLIA, SUPPORTED_CHAINS, TransactionRequest, TransactionRequestSchema, TransactionResponse, TransactionResponseSchema, ValidationResult, createBlinkUrl, formatEther, getAddressExplorerUrl, getChainById, getExplorerUrl, isBlinkUrl, isValidAddress, isValidHex, parseBlinkUrl, parseEther, shortenAddress, validateActionMetadata, validateTransactionRequest, validateTransactionResponse };
1246
+ export { ACTION_QUERY_PARAM, ActionButtonSchema, ActionLinksSchema, ActionMetadata, ActionMetadataSchema, ActionParameterOptionSchema, ActionParameterSchema, ActionParameterSelectableSchema, BLINK_BASE_URL, ChainConfig, DEFAULT_CHAIN, LinkedAction, LinkedActionSchema, MANTLE_MAINNET, MANTLE_SEPOLIA, NextActionLinkSchema, REGISTRY_URL, REGISTRY_VALIDATE_ENDPOINT, SUPPORTED_CHAINS, TransactionRequest, TransactionRequestSchema, TransactionResponse, TransactionResponseSchema, TypedActionParameter, TypedActionParameterSchema, ValidationResult, createBlinkUrl, formatEther, getAddressExplorerUrl, getChainById, getExplorerUrl, isBlinkUrl, isValidAddress, isValidHex, parseBlinkUrl, parseEther, shortenAddress, validateActionMetadata, validateLinkedAction, validateParameter, validateParameterValues, validateTransactionRequest, validateTransactionResponse };