@vapi-network/mcp 0.5.0 → 0.8.0

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.
@@ -0,0 +1,915 @@
1
+ import { type AgentProfile } from "@vapi-network/core";
2
+ import type { ActionContext } from "./context.js";
3
+ import type { Action } from "./define.js";
4
+ export declare class ActionDeclinedError extends Error {
5
+ readonly reason: string;
6
+ readonly name = "ActionDeclinedError";
7
+ constructor(reason: string);
8
+ }
9
+ export declare function runAction<I, O>(action: Action<I, O>, rawInput: unknown, ctx: ActionContext): Promise<O>;
10
+ export declare const actions: readonly [Action<{
11
+ query?: string | undefined;
12
+ kinds?: ("api" | "service_offer" | "open_request")[] | undefined;
13
+ network?: string | undefined;
14
+ limit?: number | undefined;
15
+ cursor?: string | undefined;
16
+ includeUnverified?: boolean | undefined;
17
+ }, {
18
+ [x: string]: unknown;
19
+ protocol: "vapi.marketplace.discovery/1";
20
+ items: ({
21
+ [x: string]: unknown;
22
+ kind: "api";
23
+ provenance: "self_listed" | "partner";
24
+ execution: {
25
+ [x: string]: unknown;
26
+ mode: "direct" | "gateway";
27
+ };
28
+ action: {
29
+ [x: string]: unknown;
30
+ type: "invoke_api";
31
+ href: string;
32
+ };
33
+ verification: "none" | "requested" | "verified";
34
+ ref: string;
35
+ card: {
36
+ [x: string]: unknown;
37
+ title: string;
38
+ summary: string;
39
+ badges: {
40
+ [x: string]: unknown;
41
+ code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
42
+ label: string;
43
+ }[];
44
+ facts: {
45
+ [x: string]: unknown;
46
+ label: string;
47
+ value: string;
48
+ }[];
49
+ byline?: string | undefined;
50
+ bylineHref?: string | undefined;
51
+ };
52
+ group?: "partner" | "external" | "vapi" | "added" | undefined;
53
+ fee?: {
54
+ [x: string]: unknown;
55
+ bps: number;
56
+ label: string;
57
+ } | undefined;
58
+ liveness?: {
59
+ [x: string]: unknown;
60
+ uptime7d: number;
61
+ latencyP50Ms: number | null;
62
+ latencyP95Ms: number | null;
63
+ checks7d: number;
64
+ } | undefined;
65
+ conformance?: {
66
+ [x: string]: unknown;
67
+ declaredVersion: 1 | 2 | null;
68
+ versionConformant: boolean;
69
+ offerTransport: "body" | "header" | "both";
70
+ issues: string[];
71
+ } | undefined;
72
+ identity?: {
73
+ [x: string]: unknown;
74
+ erc8004Id: string;
75
+ reputation?: {
76
+ [x: string]: unknown;
77
+ score: number;
78
+ count: number;
79
+ } | undefined;
80
+ } | undefined;
81
+ } | {
82
+ [x: string]: unknown;
83
+ kind: "api";
84
+ provenance: "indexed";
85
+ execution: {
86
+ [x: string]: unknown;
87
+ mode: "direct";
88
+ url: string;
89
+ method: "HEAD" | "POST" | "GET" | "PUT" | "PATCH" | "DELETE" | null;
90
+ network: string;
91
+ };
92
+ action: {
93
+ [x: string]: unknown;
94
+ type: "invoke_api";
95
+ href: string;
96
+ };
97
+ verification: "none" | "requested" | "verified";
98
+ ref: string;
99
+ card: {
100
+ [x: string]: unknown;
101
+ title: string;
102
+ summary: string;
103
+ badges: {
104
+ [x: string]: unknown;
105
+ code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
106
+ label: string;
107
+ }[];
108
+ facts: {
109
+ [x: string]: unknown;
110
+ label: string;
111
+ value: string;
112
+ }[];
113
+ byline?: string | undefined;
114
+ bylineHref?: string | undefined;
115
+ };
116
+ group?: "partner" | "external" | "vapi" | "added" | undefined;
117
+ fee?: {
118
+ [x: string]: unknown;
119
+ bps: number;
120
+ label: string;
121
+ } | undefined;
122
+ liveness?: {
123
+ [x: string]: unknown;
124
+ uptime7d: number;
125
+ latencyP50Ms: number | null;
126
+ latencyP95Ms: number | null;
127
+ checks7d: number;
128
+ } | undefined;
129
+ conformance?: {
130
+ [x: string]: unknown;
131
+ declaredVersion: 1 | 2 | null;
132
+ versionConformant: boolean;
133
+ offerTransport: "body" | "header" | "both";
134
+ issues: string[];
135
+ } | undefined;
136
+ identity?: {
137
+ [x: string]: unknown;
138
+ erc8004Id: string;
139
+ reputation?: {
140
+ [x: string]: unknown;
141
+ score: number;
142
+ count: number;
143
+ } | undefined;
144
+ } | undefined;
145
+ } | {
146
+ [x: string]: unknown;
147
+ kind: "service_offer";
148
+ action: {
149
+ [x: string]: unknown;
150
+ type: "start_engagement";
151
+ href: string;
152
+ };
153
+ verification: "none" | "requested" | "verified";
154
+ ref: string;
155
+ card: {
156
+ [x: string]: unknown;
157
+ title: string;
158
+ summary: string;
159
+ badges: {
160
+ [x: string]: unknown;
161
+ code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
162
+ label: string;
163
+ }[];
164
+ facts: {
165
+ [x: string]: unknown;
166
+ label: string;
167
+ value: string;
168
+ }[];
169
+ byline?: string | undefined;
170
+ bylineHref?: string | undefined;
171
+ };
172
+ group?: "partner" | "external" | "vapi" | "added" | undefined;
173
+ fee?: {
174
+ [x: string]: unknown;
175
+ bps: number;
176
+ label: string;
177
+ } | undefined;
178
+ liveness?: {
179
+ [x: string]: unknown;
180
+ uptime7d: number;
181
+ latencyP50Ms: number | null;
182
+ latencyP95Ms: number | null;
183
+ checks7d: number;
184
+ } | undefined;
185
+ conformance?: {
186
+ [x: string]: unknown;
187
+ declaredVersion: 1 | 2 | null;
188
+ versionConformant: boolean;
189
+ offerTransport: "body" | "header" | "both";
190
+ issues: string[];
191
+ } | undefined;
192
+ identity?: {
193
+ [x: string]: unknown;
194
+ erc8004Id: string;
195
+ reputation?: {
196
+ [x: string]: unknown;
197
+ score: number;
198
+ count: number;
199
+ } | undefined;
200
+ } | undefined;
201
+ } | {
202
+ [x: string]: unknown;
203
+ kind: "open_request";
204
+ action: {
205
+ [x: string]: unknown;
206
+ type: "propose_to_request";
207
+ href: string;
208
+ };
209
+ verification: "none" | "requested" | "verified";
210
+ ref: string;
211
+ card: {
212
+ [x: string]: unknown;
213
+ title: string;
214
+ summary: string;
215
+ badges: {
216
+ [x: string]: unknown;
217
+ code: "partner" | "live_x402" | "payout_wallet_confirmed" | "vapi_verified" | "external_catalog" | "approved_vendor";
218
+ label: string;
219
+ }[];
220
+ facts: {
221
+ [x: string]: unknown;
222
+ label: string;
223
+ value: string;
224
+ }[];
225
+ byline?: string | undefined;
226
+ bylineHref?: string | undefined;
227
+ };
228
+ group?: "partner" | "external" | "vapi" | "added" | undefined;
229
+ fee?: {
230
+ [x: string]: unknown;
231
+ bps: number;
232
+ label: string;
233
+ } | undefined;
234
+ liveness?: {
235
+ [x: string]: unknown;
236
+ uptime7d: number;
237
+ latencyP50Ms: number | null;
238
+ latencyP95Ms: number | null;
239
+ checks7d: number;
240
+ } | undefined;
241
+ conformance?: {
242
+ [x: string]: unknown;
243
+ declaredVersion: 1 | 2 | null;
244
+ versionConformant: boolean;
245
+ offerTransport: "body" | "header" | "both";
246
+ issues: string[];
247
+ } | undefined;
248
+ identity?: {
249
+ [x: string]: unknown;
250
+ erc8004Id: string;
251
+ reputation?: {
252
+ [x: string]: unknown;
253
+ score: number;
254
+ count: number;
255
+ } | undefined;
256
+ } | undefined;
257
+ })[];
258
+ nextCursor: string | null;
259
+ unavailableKinds: ("api" | "service_offer" | "open_request")[];
260
+ rankingVersion: "marketplace-ranking-v1";
261
+ }>, Action<{
262
+ id: string;
263
+ endpoint?: string | undefined;
264
+ }, {
265
+ name: string;
266
+ method: string | null;
267
+ url: string;
268
+ price: string;
269
+ description: string;
270
+ verification: "none" | "requested" | "verified";
271
+ payment: {
272
+ scheme: "exact";
273
+ network: string;
274
+ asset: string;
275
+ payTo: string;
276
+ checkedAt: string;
277
+ } | null;
278
+ operationId?: string | undefined;
279
+ requestContentType?: string | undefined;
280
+ requestSchema?: unknown;
281
+ responseContentType?: string | undefined;
282
+ network?: string | undefined;
283
+ group?: "partner" | "external" | "vapi" | "added" | undefined;
284
+ fee?: {
285
+ [x: string]: unknown;
286
+ bps: number;
287
+ label: string;
288
+ } | undefined;
289
+ liveness?: {
290
+ [x: string]: unknown;
291
+ uptime7d: number;
292
+ latencyP50Ms: number | null;
293
+ latencyP95Ms: number | null;
294
+ checks7d: number;
295
+ } | undefined;
296
+ conformance?: {
297
+ [x: string]: unknown;
298
+ declaredVersion: 1 | 2 | null;
299
+ versionConformant: boolean;
300
+ offerTransport: "body" | "header" | "both";
301
+ issues: string[];
302
+ } | undefined;
303
+ identity?: {
304
+ [x: string]: unknown;
305
+ erc8004Id: string;
306
+ reputation?: {
307
+ [x: string]: unknown;
308
+ score: number;
309
+ count: number;
310
+ } | undefined;
311
+ } | undefined;
312
+ }>, Action<{
313
+ id?: string | undefined;
314
+ url?: string | undefined;
315
+ method?: string | undefined;
316
+ endpoint?: string | undefined;
317
+ body?: unknown;
318
+ contentType?: string | undefined;
319
+ network?: string | undefined;
320
+ expectedPayTo?: string | undefined;
321
+ maxPriceUsd?: string | number | undefined;
322
+ wallet?: string | undefined;
323
+ }, {
324
+ wallet: string;
325
+ } & import("../server.js").CallToolResult>, Action<{
326
+ from: string;
327
+ to: string;
328
+ amountUsd: string | number;
329
+ network?: "base" | "arc" | undefined;
330
+ }, {
331
+ status: "unknown" | "sent";
332
+ from: string;
333
+ to: string;
334
+ toName: string;
335
+ toKind: "account" | "owner";
336
+ amountUsd: string;
337
+ amountAtomic: string;
338
+ network: "eip155:8453" | "eip155:5042";
339
+ txHash: string | null;
340
+ nonce: string;
341
+ replayed: boolean;
342
+ message: string;
343
+ }>, Action<{
344
+ name: string;
345
+ agents?: number | undefined;
346
+ roles?: string[] | undefined;
347
+ strategy?: "targets" | "even" | "weights" | undefined;
348
+ targetsUsd?: Record<string, string | number> | undefined;
349
+ caps?: {
350
+ perCallUsd: string | number;
351
+ perDayUsd: string | number;
352
+ } | undefined;
353
+ treasuryCaps?: {
354
+ perCallUsd: string | number;
355
+ perDayUsd: string | number;
356
+ } | undefined;
357
+ network?: "base" | "arc" | undefined;
358
+ model?: string | undefined;
359
+ fundUsd?: string | number | undefined;
360
+ from?: string | undefined;
361
+ }, {
362
+ swarm: {
363
+ v: 1;
364
+ name: string;
365
+ device: string;
366
+ network: "eip155:8453" | "eip155:5042";
367
+ createdAt: string;
368
+ treasury: {
369
+ account: string;
370
+ steps: {
371
+ creating: boolean;
372
+ created: boolean;
373
+ capped: boolean;
374
+ linked: boolean;
375
+ };
376
+ address?: string | undefined;
377
+ };
378
+ members: {
379
+ account: string;
380
+ role: string;
381
+ weight: number;
382
+ targetAtomic: string;
383
+ ceilingAtomic: string | null;
384
+ steps: {
385
+ profiled: boolean;
386
+ creating: boolean;
387
+ created: boolean;
388
+ capped: boolean;
389
+ linked: boolean;
390
+ };
391
+ address?: string | undefined;
392
+ }[];
393
+ policy: {
394
+ strategy: "targets" | "even" | "weights";
395
+ treasuryCaps: {
396
+ perCallAtomic: string;
397
+ perDayAtomic: string;
398
+ };
399
+ };
400
+ setupFunding?: {
401
+ amountUsd: string;
402
+ from: string;
403
+ status: "sent" | "incomplete" | "planned";
404
+ movementId?: string | undefined;
405
+ policy?: {
406
+ strategy: "targets" | "even" | "weights";
407
+ status: "sent" | "incomplete" | "planned";
408
+ movementId?: string | undefined;
409
+ blocked?: {
410
+ to: string;
411
+ amountUsd: string;
412
+ reason: string;
413
+ }[] | undefined;
414
+ } | undefined;
415
+ } | undefined;
416
+ };
417
+ members: {
418
+ account: string;
419
+ address: string;
420
+ role: string;
421
+ created: boolean;
422
+ capped: boolean;
423
+ profiled: boolean;
424
+ linked: boolean;
425
+ }[];
426
+ next: ({
427
+ kind: "link";
428
+ account: string;
429
+ userCode: string;
430
+ verificationUri: string;
431
+ expiresInSeconds: number;
432
+ } | {
433
+ kind: "caps";
434
+ account: string;
435
+ command: string;
436
+ })[];
437
+ message: string;
438
+ fund?: {
439
+ status: "sent" | "incomplete" | "resumed" | "waiting_for_owner";
440
+ treasury: {
441
+ account: string;
442
+ address: string;
443
+ };
444
+ network: "eip155:8453" | "eip155:5042";
445
+ amountUsd: string;
446
+ blocked: {
447
+ to: string;
448
+ amountUsd: string;
449
+ reason: string;
450
+ }[];
451
+ skipped: {
452
+ account: string;
453
+ reason: string;
454
+ }[];
455
+ message: string;
456
+ fund?: {
457
+ movementId: string;
458
+ reason: string;
459
+ resumed: boolean;
460
+ legs: {
461
+ from: string;
462
+ to: string;
463
+ amountUsd: string;
464
+ purpose: "send" | "sweep";
465
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
466
+ txHash?: string | undefined;
467
+ reason?: string | undefined;
468
+ }[];
469
+ complete: boolean;
470
+ } | undefined;
471
+ policy?: {
472
+ movementId: string;
473
+ reason: string;
474
+ resumed: boolean;
475
+ legs: {
476
+ from: string;
477
+ to: string;
478
+ amountUsd: string;
479
+ purpose: "send" | "sweep";
480
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
481
+ txHash?: string | undefined;
482
+ reason?: string | undefined;
483
+ }[];
484
+ complete: boolean;
485
+ } | {
486
+ status: "sent" | "incomplete" | "resumed" | "balanced";
487
+ blocked: {
488
+ to: string;
489
+ amountUsd: string;
490
+ reason: string;
491
+ }[];
492
+ skipped: {
493
+ account: string;
494
+ reason: string;
495
+ }[];
496
+ message: string;
497
+ movement?: {
498
+ movementId: string;
499
+ reason: string;
500
+ resumed: boolean;
501
+ legs: {
502
+ from: string;
503
+ to: string;
504
+ amountUsd: string;
505
+ purpose: "send" | "sweep";
506
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
507
+ txHash?: string | undefined;
508
+ reason?: string | undefined;
509
+ }[];
510
+ complete: boolean;
511
+ } | undefined;
512
+ } | undefined;
513
+ } | undefined;
514
+ }>, Action<{
515
+ name: string;
516
+ role: string;
517
+ targetUsd?: string | number | undefined;
518
+ weight?: number | undefined;
519
+ }, {
520
+ swarm: {
521
+ v: 1;
522
+ name: string;
523
+ device: string;
524
+ network: "eip155:8453" | "eip155:5042";
525
+ createdAt: string;
526
+ treasury: {
527
+ account: string;
528
+ steps: {
529
+ creating: boolean;
530
+ created: boolean;
531
+ capped: boolean;
532
+ linked: boolean;
533
+ };
534
+ address?: string | undefined;
535
+ };
536
+ members: {
537
+ account: string;
538
+ role: string;
539
+ weight: number;
540
+ targetAtomic: string;
541
+ ceilingAtomic: string | null;
542
+ steps: {
543
+ profiled: boolean;
544
+ creating: boolean;
545
+ created: boolean;
546
+ capped: boolean;
547
+ linked: boolean;
548
+ };
549
+ address?: string | undefined;
550
+ }[];
551
+ policy: {
552
+ strategy: "targets" | "even" | "weights";
553
+ treasuryCaps: {
554
+ perCallAtomic: string;
555
+ perDayAtomic: string;
556
+ };
557
+ };
558
+ setupFunding?: {
559
+ amountUsd: string;
560
+ from: string;
561
+ status: "sent" | "incomplete" | "planned";
562
+ movementId?: string | undefined;
563
+ policy?: {
564
+ strategy: "targets" | "even" | "weights";
565
+ status: "sent" | "incomplete" | "planned";
566
+ movementId?: string | undefined;
567
+ blocked?: {
568
+ to: string;
569
+ amountUsd: string;
570
+ reason: string;
571
+ }[] | undefined;
572
+ } | undefined;
573
+ } | undefined;
574
+ };
575
+ members: {
576
+ account: string;
577
+ address: string;
578
+ role: string;
579
+ created: boolean;
580
+ capped: boolean;
581
+ profiled: boolean;
582
+ linked: boolean;
583
+ }[];
584
+ next: ({
585
+ kind: "link";
586
+ account: string;
587
+ userCode: string;
588
+ verificationUri: string;
589
+ expiresInSeconds: number;
590
+ } | {
591
+ kind: "caps";
592
+ account: string;
593
+ command: string;
594
+ })[];
595
+ message: string;
596
+ fund?: {
597
+ status: "sent" | "incomplete" | "resumed" | "waiting_for_owner";
598
+ treasury: {
599
+ account: string;
600
+ address: string;
601
+ };
602
+ network: "eip155:8453" | "eip155:5042";
603
+ amountUsd: string;
604
+ blocked: {
605
+ to: string;
606
+ amountUsd: string;
607
+ reason: string;
608
+ }[];
609
+ skipped: {
610
+ account: string;
611
+ reason: string;
612
+ }[];
613
+ message: string;
614
+ fund?: {
615
+ movementId: string;
616
+ reason: string;
617
+ resumed: boolean;
618
+ legs: {
619
+ from: string;
620
+ to: string;
621
+ amountUsd: string;
622
+ purpose: "send" | "sweep";
623
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
624
+ txHash?: string | undefined;
625
+ reason?: string | undefined;
626
+ }[];
627
+ complete: boolean;
628
+ } | undefined;
629
+ policy?: {
630
+ movementId: string;
631
+ reason: string;
632
+ resumed: boolean;
633
+ legs: {
634
+ from: string;
635
+ to: string;
636
+ amountUsd: string;
637
+ purpose: "send" | "sweep";
638
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
639
+ txHash?: string | undefined;
640
+ reason?: string | undefined;
641
+ }[];
642
+ complete: boolean;
643
+ } | {
644
+ status: "sent" | "incomplete" | "resumed" | "balanced";
645
+ blocked: {
646
+ to: string;
647
+ amountUsd: string;
648
+ reason: string;
649
+ }[];
650
+ skipped: {
651
+ account: string;
652
+ reason: string;
653
+ }[];
654
+ message: string;
655
+ movement?: {
656
+ movementId: string;
657
+ reason: string;
658
+ resumed: boolean;
659
+ legs: {
660
+ from: string;
661
+ to: string;
662
+ amountUsd: string;
663
+ purpose: "send" | "sweep";
664
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
665
+ txHash?: string | undefined;
666
+ reason?: string | undefined;
667
+ }[];
668
+ complete: boolean;
669
+ } | undefined;
670
+ } | undefined;
671
+ } | undefined;
672
+ }>, Action<{
673
+ name: string;
674
+ member: string;
675
+ }, {
676
+ status: "resumed" | "left" | "kept";
677
+ member: string;
678
+ message: string;
679
+ movement?: {
680
+ movementId: string;
681
+ reason: string;
682
+ resumed: boolean;
683
+ legs: {
684
+ from: string;
685
+ to: string;
686
+ amountUsd: string;
687
+ purpose: "send" | "sweep";
688
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
689
+ txHash?: string | undefined;
690
+ reason?: string | undefined;
691
+ }[];
692
+ complete: boolean;
693
+ } | undefined;
694
+ }>, Action<{
695
+ name: string;
696
+ amountUsd: string | number;
697
+ from?: string | undefined;
698
+ }, {
699
+ status: "sent" | "incomplete" | "resumed" | "waiting_for_owner";
700
+ treasury: {
701
+ account: string;
702
+ address: string;
703
+ };
704
+ network: "eip155:8453" | "eip155:5042";
705
+ amountUsd: string;
706
+ blocked: {
707
+ to: string;
708
+ amountUsd: string;
709
+ reason: string;
710
+ }[];
711
+ skipped: {
712
+ account: string;
713
+ reason: string;
714
+ }[];
715
+ message: string;
716
+ fund?: {
717
+ movementId: string;
718
+ reason: string;
719
+ resumed: boolean;
720
+ legs: {
721
+ from: string;
722
+ to: string;
723
+ amountUsd: string;
724
+ purpose: "send" | "sweep";
725
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
726
+ txHash?: string | undefined;
727
+ reason?: string | undefined;
728
+ }[];
729
+ complete: boolean;
730
+ } | undefined;
731
+ policy?: {
732
+ movementId: string;
733
+ reason: string;
734
+ resumed: boolean;
735
+ legs: {
736
+ from: string;
737
+ to: string;
738
+ amountUsd: string;
739
+ purpose: "send" | "sweep";
740
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
741
+ txHash?: string | undefined;
742
+ reason?: string | undefined;
743
+ }[];
744
+ complete: boolean;
745
+ } | {
746
+ status: "sent" | "incomplete" | "resumed" | "balanced";
747
+ blocked: {
748
+ to: string;
749
+ amountUsd: string;
750
+ reason: string;
751
+ }[];
752
+ skipped: {
753
+ account: string;
754
+ reason: string;
755
+ }[];
756
+ message: string;
757
+ movement?: {
758
+ movementId: string;
759
+ reason: string;
760
+ resumed: boolean;
761
+ legs: {
762
+ from: string;
763
+ to: string;
764
+ amountUsd: string;
765
+ purpose: "send" | "sweep";
766
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
767
+ txHash?: string | undefined;
768
+ reason?: string | undefined;
769
+ }[];
770
+ complete: boolean;
771
+ } | undefined;
772
+ } | undefined;
773
+ }>, Action<{
774
+ name: string;
775
+ targetsUsd?: Record<string, string | number> | undefined;
776
+ }, {
777
+ status: "sent" | "incomplete" | "resumed" | "balanced";
778
+ blocked: {
779
+ to: string;
780
+ amountUsd: string;
781
+ reason: string;
782
+ }[];
783
+ skipped: {
784
+ account: string;
785
+ reason: string;
786
+ }[];
787
+ message: string;
788
+ movement?: {
789
+ movementId: string;
790
+ reason: string;
791
+ resumed: boolean;
792
+ legs: {
793
+ from: string;
794
+ to: string;
795
+ amountUsd: string;
796
+ purpose: "send" | "sweep";
797
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
798
+ txHash?: string | undefined;
799
+ reason?: string | undefined;
800
+ }[];
801
+ complete: boolean;
802
+ } | undefined;
803
+ }>, Action<{
804
+ name: string;
805
+ }, {
806
+ swarm: string;
807
+ network: "eip155:8453" | "eip155:5042";
808
+ strategy: "targets" | "even" | "weights";
809
+ treasury: {
810
+ account: string;
811
+ address: string;
812
+ linked: boolean;
813
+ balanceAtomic: string;
814
+ balanceUsd: string;
815
+ };
816
+ members: {
817
+ account: string;
818
+ address: string;
819
+ role: string;
820
+ weight: number;
821
+ targetUsd: string;
822
+ ceilingUsd: string | null;
823
+ linked: boolean;
824
+ profile: boolean;
825
+ balanceAtomic: string;
826
+ balanceUsd: string;
827
+ allocatedInUsd: string;
828
+ sweptOutUsd: string;
829
+ netUsd: string;
830
+ }[];
831
+ openMovements: {
832
+ id: string;
833
+ from: string;
834
+ network: "eip155:8453" | "eip155:5042";
835
+ createdAt: string;
836
+ pendingLegs: number;
837
+ unknownLegs: number;
838
+ }[];
839
+ }>, Action<{
840
+ name: string;
841
+ }, {
842
+ status: "incomplete" | "resumed" | "dissolved";
843
+ movements: {
844
+ movementId: string;
845
+ reason: string;
846
+ resumed: boolean;
847
+ legs: {
848
+ from: string;
849
+ to: string;
850
+ amountUsd: string;
851
+ purpose: "send" | "sweep";
852
+ status: "unknown" | "sent" | "planned" | "failed" | "cancelled";
853
+ txHash?: string | undefined;
854
+ reason?: string | undefined;
855
+ }[];
856
+ complete: boolean;
857
+ }[];
858
+ message: string;
859
+ }>, Action<{
860
+ url: string;
861
+ }, {
862
+ status: number;
863
+ contentType: string | null;
864
+ body: unknown;
865
+ }>, Action<import("./context.js").SwarmRunActionInput, import("./context.js").SwarmRunActionResult>, Action<{
866
+ amountUsd: string;
867
+ reason?: string | undefined;
868
+ requestId?: string | undefined;
869
+ }, {
870
+ status: "sent" | "incomplete" | "blocked" | "resumed";
871
+ movementId: string | null;
872
+ sentUsd: string;
873
+ blocked: {
874
+ to: string;
875
+ amountUsd: string;
876
+ reason: string;
877
+ }[];
878
+ }>, Action<{
879
+ member: string;
880
+ task: string;
881
+ budgetUsd: string;
882
+ requestId?: string | undefined;
883
+ }, {
884
+ member: string;
885
+ runId: string | null;
886
+ answer: string | null;
887
+ stoppedBecause: {
888
+ reason: string;
889
+ detail?: string | undefined;
890
+ } | null;
891
+ spentUsd: number | null;
892
+ budgetUsd: number;
893
+ }>, Action<import("./context.js").SwarmRunsInput, import("./context.js").SwarmRunsResult>];
894
+ export declare const agentToolNames: AgentProfile["tools"];
895
+ export declare const registeredAgentProfileSchema: import("zod").ZodObject<{
896
+ tools: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodEnum<{
897
+ [x: string]: string;
898
+ }>>>;
899
+ version: import("zod").ZodLiteral<1>;
900
+ name: import("zod").ZodString;
901
+ wallet: import("zod").ZodString;
902
+ model: import("zod").ZodString;
903
+ instructions: import("zod").ZodString;
904
+ verifiedOnly: import("zod").ZodDefault<import("zod").ZodBoolean>;
905
+ approveAboveUsd: import("zod").ZodDefault<import("zod").ZodNumber>;
906
+ maxSteps: import("zod").ZodDefault<import("zod").ZodNumber>;
907
+ paused: import("zod").ZodDefault<import("zod").ZodBoolean>;
908
+ grants: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodEnum<{
909
+ read: "read";
910
+ delegate: "delegate";
911
+ allocate: "allocate";
912
+ }>>>;
913
+ createdAt: import("zod").ZodString;
914
+ }, import("zod/v4/core").$strip>;
915
+ export declare function findAction(name: string): (typeof actions)[number] | undefined;