@moonbeam-foundation/sdk 0.7.0 → 0.10.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.
Files changed (106) hide show
  1. package/README.md +201 -27
  2. package/bin/moonbeam.mjs +15 -2
  3. package/dist/acp/moonbeam-acp.generated.d.ts +7 -2
  4. package/dist/acp/moonbeam-acp.generated.d.ts.map +1 -1
  5. package/dist/acp/moonbeam-acp.generated.js +6 -3
  6. package/dist/acp/moonbeam-acp.generated.js.map +1 -1
  7. package/dist/acp/outcome.d.ts +5 -1
  8. package/dist/acp/outcome.d.ts.map +1 -1
  9. package/dist/acp/outcome.js +3 -2
  10. package/dist/acp/outcome.js.map +1 -1
  11. package/dist/adapters/stamp.d.ts +1 -1
  12. package/dist/adapters/stamp.d.ts.map +1 -1
  13. package/dist/adapters/stamp.js +6 -6
  14. package/dist/adapters/stamp.js.map +1 -1
  15. package/dist/assurance/assurance-shared.d.ts.map +1 -1
  16. package/dist/assurance/assurance-shared.js +3 -1
  17. package/dist/assurance/assurance-shared.js.map +1 -1
  18. package/dist/cover/index.d.ts +65 -0
  19. package/dist/cover/index.d.ts.map +1 -0
  20. package/dist/cover/index.js +61 -0
  21. package/dist/cover/index.js.map +1 -0
  22. package/dist/devnet/edge.d.ts +207 -0
  23. package/dist/devnet/edge.d.ts.map +1 -0
  24. package/dist/devnet/edge.js +209 -0
  25. package/dist/devnet/edge.js.map +1 -0
  26. package/dist/devnet/index.d.ts +403 -0
  27. package/dist/devnet/index.d.ts.map +1 -0
  28. package/dist/devnet/index.js +420 -0
  29. package/dist/devnet/index.js.map +1 -0
  30. package/dist/devnet/profile.d.ts +110 -0
  31. package/dist/devnet/profile.d.ts.map +1 -0
  32. package/dist/devnet/profile.js +145 -0
  33. package/dist/devnet/profile.js.map +1 -0
  34. package/dist/erc8004/registry.generated.d.ts.map +1 -1
  35. package/dist/erc8004/registry.generated.js +0 -1
  36. package/dist/erc8004/registry.generated.js.map +1 -1
  37. package/dist/errors/index.d.ts +51 -0
  38. package/dist/errors/index.d.ts.map +1 -0
  39. package/dist/errors/index.js +63 -0
  40. package/dist/errors/index.js.map +1 -0
  41. package/dist/index.d.ts +6 -1
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +6 -1
  44. package/dist/index.js.map +1 -1
  45. package/dist/jobs/index.d.ts +62 -0
  46. package/dist/jobs/index.d.ts.map +1 -0
  47. package/dist/jobs/index.js +59 -0
  48. package/dist/jobs/index.js.map +1 -0
  49. package/dist/judge/index.d.ts +109 -1
  50. package/dist/judge/index.d.ts.map +1 -1
  51. package/dist/judge/index.js +97 -3
  52. package/dist/judge/index.js.map +1 -1
  53. package/dist/market/index.d.ts +162 -0
  54. package/dist/market/index.d.ts.map +1 -0
  55. package/dist/market/index.js +137 -0
  56. package/dist/market/index.js.map +1 -0
  57. package/dist/onboard/index.d.ts +4 -4
  58. package/dist/onboard/index.d.ts.map +1 -1
  59. package/dist/onboard/index.js +9 -15
  60. package/dist/onboard/index.js.map +1 -1
  61. package/dist/pools/index.d.ts +29 -5
  62. package/dist/pools/index.d.ts.map +1 -1
  63. package/dist/pools/index.js +34 -15
  64. package/dist/pools/index.js.map +1 -1
  65. package/dist/proof/index.d.ts +8 -4
  66. package/dist/proof/index.d.ts.map +1 -1
  67. package/dist/proof/index.js +10 -7
  68. package/dist/proof/index.js.map +1 -1
  69. package/dist/resale/index.d.ts +22 -6
  70. package/dist/resale/index.d.ts.map +1 -1
  71. package/dist/resale/index.js +29 -15
  72. package/dist/resale/index.js.map +1 -1
  73. package/dist/resale/payment-scheme.pin.json +1 -1
  74. package/dist/resale/settle-rule.d.ts +49 -0
  75. package/dist/resale/settle-rule.d.ts.map +1 -0
  76. package/dist/resale/settle-rule.js +53 -0
  77. package/dist/resale/settle-rule.js.map +1 -0
  78. package/dist/workflows/data.d.ts +3 -0
  79. package/dist/workflows/data.d.ts.map +1 -0
  80. package/dist/workflows/data.js +829 -0
  81. package/dist/workflows/data.js.map +1 -0
  82. package/dist/workflows/index.d.ts +31 -0
  83. package/dist/workflows/index.d.ts.map +1 -0
  84. package/dist/workflows/index.js +104 -0
  85. package/dist/workflows/index.js.map +1 -0
  86. package/dist/workflows/types.d.ts +26 -0
  87. package/dist/workflows/types.d.ts.map +1 -0
  88. package/dist/workflows/types.js +2 -0
  89. package/dist/workflows/types.js.map +1 -0
  90. package/dist/x402/index.d.ts +80 -17
  91. package/dist/x402/index.d.ts.map +1 -1
  92. package/dist/x402/index.js +95 -27
  93. package/dist/x402/index.js.map +1 -1
  94. package/docs/workflows/hire-from-chat.png +0 -0
  95. package/docs/workflows/list-business.png +0 -0
  96. package/docs/workflows/onboard-batch.png +0 -0
  97. package/docs/workflows/onboard.png +0 -0
  98. package/docs/workflows/publish.png +0 -0
  99. package/docs/workflows/resell.png +0 -0
  100. package/docs/workflows/sell-edge.png +0 -0
  101. package/examples/40-the-article.mjs +1 -1
  102. package/examples/50-x402-pay-a-wall.mjs +22 -11
  103. package/examples/51-read-a-proof.mjs +5 -4
  104. package/examples/README.md +4 -2
  105. package/examples/data/x402-wall-402.json +85 -0
  106. package/package.json +55 -15
@@ -0,0 +1,829 @@
1
+ export const WORKFLOW_DATA = [
2
+ {
3
+ "id": "publish",
4
+ "title": "Publish a workflow and build its record",
5
+ "does": "Every hire of a published workflow is quoted from its record, graded complete or reject, and added to the record, so backers can cover it at a falling price.",
6
+ "nodes": [
7
+ {
8
+ "name": "A buyer hires it",
9
+ "role": "trigger",
10
+ "op": null,
11
+ "title": "TRIGGER",
12
+ "effect": null,
13
+ "moves_money": false,
14
+ "signer": null
15
+ },
16
+ {
17
+ "name": "find_seller",
18
+ "role": "op",
19
+ "op": "GET /v1/match/search",
20
+ "title": "Find a seller on Base",
21
+ "effect": "read",
22
+ "moves_money": false,
23
+ "signer": null
24
+ },
25
+ {
26
+ "name": "quote_terms",
27
+ "role": "op",
28
+ "op": "POST /v1/pools/quote",
29
+ "title": "Quote the hire terms",
30
+ "effect": "pure",
31
+ "moves_money": false,
32
+ "signer": null
33
+ },
34
+ {
35
+ "name": "hand_over",
36
+ "role": "op",
37
+ "op": "POST /v1/handshake",
38
+ "title": "Hand the task to the seller",
39
+ "effect": "dispatch",
40
+ "moves_money": false,
41
+ "signer": null
42
+ },
43
+ {
44
+ "name": "grade",
45
+ "role": "op",
46
+ "op": "POST /v1/judge/compose",
47
+ "title": "Grade the delivery",
48
+ "effect": "jev",
49
+ "moves_money": false,
50
+ "signer": null
51
+ },
52
+ {
53
+ "name": "end_job",
54
+ "role": "op",
55
+ "op": "POST /v1/assurance/call",
56
+ "title": "Plan the ending",
57
+ "effect": "settle",
58
+ "moves_money": true,
59
+ "signer": "evaluator"
60
+ },
61
+ {
62
+ "name": "add_to_record",
63
+ "role": "op",
64
+ "op": "GET /v1/settle/:id",
65
+ "title": "Read the job’s record",
66
+ "effect": "read",
67
+ "moves_money": false,
68
+ "signer": null
69
+ },
70
+ {
71
+ "name": "The record",
72
+ "role": "output",
73
+ "op": null,
74
+ "title": "OUTPUT",
75
+ "effect": null,
76
+ "moves_money": false,
77
+ "signer": null
78
+ }
79
+ ],
80
+ "edges": [
81
+ {
82
+ "from": "A buyer hires it",
83
+ "to": "find_seller",
84
+ "type": "main"
85
+ },
86
+ {
87
+ "from": "find_seller",
88
+ "to": "quote_terms",
89
+ "type": "main"
90
+ },
91
+ {
92
+ "from": "quote_terms",
93
+ "to": "hand_over",
94
+ "type": "main"
95
+ },
96
+ {
97
+ "from": "hand_over",
98
+ "to": "grade",
99
+ "type": "main"
100
+ },
101
+ {
102
+ "from": "grade",
103
+ "to": "end_job",
104
+ "type": "main"
105
+ },
106
+ {
107
+ "from": "end_job",
108
+ "to": "add_to_record",
109
+ "type": "main"
110
+ },
111
+ {
112
+ "from": "add_to_record",
113
+ "to": "The record",
114
+ "type": "main"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "id": "list-business",
120
+ "title": "List my business",
121
+ "does": "From your address to every agent market: your pages read, your name proved, your door tested on your own key, one record published, each market with its next step.",
122
+ "nodes": [
123
+ {
124
+ "name": "Start",
125
+ "role": "trigger",
126
+ "op": null,
127
+ "title": "TRIGGER",
128
+ "effect": null,
129
+ "moves_money": false,
130
+ "signer": null
131
+ },
132
+ {
133
+ "name": "workflow",
134
+ "role": "op",
135
+ "op": "pure:business.workflow",
136
+ "title": "Workflow shell",
137
+ "effect": "pure",
138
+ "moves_money": false,
139
+ "signer": null
140
+ },
141
+ {
142
+ "name": "read",
143
+ "role": "op",
144
+ "op": "pure:business.read",
145
+ "title": "Read and confirm",
146
+ "effect": "pure",
147
+ "moves_money": false,
148
+ "signer": null
149
+ },
150
+ {
151
+ "name": "claim",
152
+ "role": "op",
153
+ "op": "pure:business.claim",
154
+ "title": "Claim",
155
+ "effect": "pure",
156
+ "moves_money": false,
157
+ "signer": null
158
+ },
159
+ {
160
+ "name": "door",
161
+ "role": "op",
162
+ "op": "pure:business.door",
163
+ "title": "Door and test",
164
+ "effect": "pure",
165
+ "moves_money": false,
166
+ "signer": null
167
+ },
168
+ {
169
+ "name": "publish",
170
+ "role": "op",
171
+ "op": "pure:business.publish",
172
+ "title": "Publish",
173
+ "effect": "pure",
174
+ "moves_money": false,
175
+ "signer": null
176
+ },
177
+ {
178
+ "name": "reach",
179
+ "role": "op",
180
+ "op": "pure:business.reach",
181
+ "title": "Market reach",
182
+ "effect": "pure",
183
+ "moves_money": false,
184
+ "signer": null
185
+ },
186
+ {
187
+ "name": "pay",
188
+ "role": "op",
189
+ "op": "pure:business.pay",
190
+ "title": "Hire and pay",
191
+ "effect": "pure",
192
+ "moves_money": false,
193
+ "signer": null
194
+ },
195
+ {
196
+ "name": "keep",
197
+ "role": "op",
198
+ "op": "pure:business.keep",
199
+ "title": "Cockpit and keep",
200
+ "effect": "pure",
201
+ "moves_money": false,
202
+ "signer": null
203
+ },
204
+ {
205
+ "name": "seen",
206
+ "role": "op",
207
+ "op": "pure:business.seen",
208
+ "title": "Being seen",
209
+ "effect": "pure",
210
+ "moves_money": false,
211
+ "signer": null
212
+ },
213
+ {
214
+ "name": "plan",
215
+ "role": "op",
216
+ "op": "pure:business.plan",
217
+ "title": "Plan",
218
+ "effect": "pure",
219
+ "moves_money": false,
220
+ "signer": null
221
+ }
222
+ ],
223
+ "edges": [
224
+ {
225
+ "from": "Start",
226
+ "to": "workflow",
227
+ "type": "main"
228
+ },
229
+ {
230
+ "from": "workflow",
231
+ "to": "read",
232
+ "type": "main"
233
+ },
234
+ {
235
+ "from": "read",
236
+ "to": "claim",
237
+ "type": "main"
238
+ },
239
+ {
240
+ "from": "claim",
241
+ "to": "door",
242
+ "type": "main"
243
+ },
244
+ {
245
+ "from": "door",
246
+ "to": "publish",
247
+ "type": "main"
248
+ },
249
+ {
250
+ "from": "publish",
251
+ "to": "reach",
252
+ "type": "main"
253
+ },
254
+ {
255
+ "from": "reach",
256
+ "to": "pay",
257
+ "type": "main"
258
+ },
259
+ {
260
+ "from": "pay",
261
+ "to": "keep",
262
+ "type": "main"
263
+ },
264
+ {
265
+ "from": "keep",
266
+ "to": "seen",
267
+ "type": "main"
268
+ },
269
+ {
270
+ "from": "seen",
271
+ "to": "plan",
272
+ "type": "main"
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "id": "onboard",
278
+ "title": "Make your agent hireable",
279
+ "does": "Find the agent, read its verdict, say the fix for each failing check with a sample to copy, re-check it with one handshake, and read its terms on Moonbeam.",
280
+ "nodes": [
281
+ {
282
+ "name": "Start onboarding",
283
+ "role": "trigger",
284
+ "op": null,
285
+ "title": "TRIGGER",
286
+ "effect": null,
287
+ "moves_money": false,
288
+ "signer": null
289
+ },
290
+ {
291
+ "name": "find",
292
+ "role": "op",
293
+ "op": "GET /v1/agents/identity",
294
+ "title": "Find the agent",
295
+ "effect": "read",
296
+ "moves_money": false,
297
+ "signer": null
298
+ },
299
+ {
300
+ "name": "verdict",
301
+ "role": "op",
302
+ "op": "GET /v1/agents/:chain/:id/readiness",
303
+ "title": "Read the verdict and its checks",
304
+ "effect": "read",
305
+ "moves_money": false,
306
+ "signer": null
307
+ },
308
+ {
309
+ "name": "fix",
310
+ "role": "op",
311
+ "op": "pure:onboard.fix",
312
+ "title": "Say the fix for each failing check, with a sample",
313
+ "effect": "pure",
314
+ "moves_money": false,
315
+ "signer": null
316
+ },
317
+ {
318
+ "name": "re-check",
319
+ "role": "op",
320
+ "op": "POST /v1/agents/probe",
321
+ "title": "Re-check with one handshake, nothing paid",
322
+ "effect": "dispatch",
323
+ "moves_money": false,
324
+ "signer": null
325
+ },
326
+ {
327
+ "name": "assured",
328
+ "role": "op",
329
+ "op": "POST /v1/pools/quote",
330
+ "title": "Quote the hire terms",
331
+ "effect": "pure",
332
+ "moves_money": false,
333
+ "signer": null
334
+ },
335
+ {
336
+ "name": "Onboarding report",
337
+ "role": "output",
338
+ "op": null,
339
+ "title": "OUTPUT",
340
+ "effect": null,
341
+ "moves_money": false,
342
+ "signer": null
343
+ }
344
+ ],
345
+ "edges": [
346
+ {
347
+ "from": "Start onboarding",
348
+ "to": "find",
349
+ "type": "main"
350
+ },
351
+ {
352
+ "from": "find",
353
+ "to": "verdict",
354
+ "type": "main"
355
+ },
356
+ {
357
+ "from": "verdict",
358
+ "to": "fix",
359
+ "type": "main"
360
+ },
361
+ {
362
+ "from": "fix",
363
+ "to": "re-check",
364
+ "type": "main"
365
+ },
366
+ {
367
+ "from": "re-check",
368
+ "to": "assured",
369
+ "type": "main"
370
+ },
371
+ {
372
+ "from": "assured",
373
+ "to": "Onboarding report",
374
+ "type": "main"
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "id": "sell-edge",
380
+ "title": "Sell one task through an edge",
381
+ "does": "Find the first devnet edge of a class whose check passed and sell one task through it: the edge feeds the call, the seller answers, one meter line in test units.",
382
+ "nodes": [
383
+ {
384
+ "name": "A buyer asks",
385
+ "role": "trigger",
386
+ "op": null,
387
+ "title": "TRIGGER",
388
+ "effect": null,
389
+ "moves_money": false,
390
+ "signer": null
391
+ },
392
+ {
393
+ "name": "find_edge",
394
+ "role": "op",
395
+ "op": "GET /v1/exchanges",
396
+ "title": "Find the listed edges: each seller, its class and its agreement",
397
+ "effect": "read",
398
+ "moves_money": false,
399
+ "signer": null
400
+ },
401
+ {
402
+ "name": "sell_through",
403
+ "role": "op",
404
+ "op": "POST /v1/exchanges/:edge_id/call",
405
+ "title": "Sell through a listed edge: its seller answers, one meter line",
406
+ "effect": "dispatch",
407
+ "moves_money": false,
408
+ "signer": null
409
+ },
410
+ {
411
+ "name": "Sold",
412
+ "role": "output",
413
+ "op": null,
414
+ "title": "OUTPUT",
415
+ "effect": null,
416
+ "moves_money": false,
417
+ "signer": null
418
+ }
419
+ ],
420
+ "edges": [
421
+ {
422
+ "from": "A buyer asks",
423
+ "to": "find_edge",
424
+ "type": "main"
425
+ },
426
+ {
427
+ "from": "find_edge",
428
+ "to": "sell_through",
429
+ "type": "main"
430
+ },
431
+ {
432
+ "from": "sell_through",
433
+ "to": "Sold",
434
+ "type": "main"
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ "id": "resell",
440
+ "title": "Buy from one agent, sell to another",
441
+ "does": "The rules for both sides, the buy side quoted with Wilson and graded, then the agent listed and the next task sold through its edge.",
442
+ "nodes": [
443
+ {
444
+ "name": "A buyer asks",
445
+ "role": "trigger",
446
+ "op": null,
447
+ "title": "TRIGGER",
448
+ "effect": null,
449
+ "moves_money": false,
450
+ "signer": null
451
+ },
452
+ {
453
+ "name": "manual",
454
+ "role": "op",
455
+ "op": "pure:manual",
456
+ "title": "Read the Moonbeam manual: how to buy, sell and be covered, and the rules",
457
+ "effect": "pure",
458
+ "moves_money": false,
459
+ "signer": null
460
+ },
461
+ {
462
+ "name": "buy_find",
463
+ "role": "op",
464
+ "op": "GET /v1/match/search",
465
+ "title": "Find a seller on Base",
466
+ "effect": "read",
467
+ "moves_money": false,
468
+ "signer": null
469
+ },
470
+ {
471
+ "name": "buy_quote",
472
+ "role": "op",
473
+ "op": "POST /v1/pools/quote",
474
+ "title": "Quote the hire terms",
475
+ "effect": "pure",
476
+ "moves_money": false,
477
+ "signer": null
478
+ },
479
+ {
480
+ "name": "both_sides",
481
+ "role": "op",
482
+ "op": "pure:wilson.sides",
483
+ "title": "Split the quote for both sides: the buyer, the seller and the backers",
484
+ "effect": "pure",
485
+ "moves_money": false,
486
+ "signer": null
487
+ },
488
+ {
489
+ "name": "buy_hand_over",
490
+ "role": "op",
491
+ "op": "POST /v1/handshake",
492
+ "title": "Hand the task to the seller",
493
+ "effect": "dispatch",
494
+ "moves_money": false,
495
+ "signer": null
496
+ },
497
+ {
498
+ "name": "buy_grade",
499
+ "role": "op",
500
+ "op": "POST /v1/judge/compose",
501
+ "title": "Grade the delivery",
502
+ "effect": "jev",
503
+ "moves_money": false,
504
+ "signer": null
505
+ },
506
+ {
507
+ "name": "buy_end",
508
+ "role": "op",
509
+ "op": "POST /v1/assurance/call",
510
+ "title": "Plan the ending",
511
+ "effect": "settle",
512
+ "moves_money": true,
513
+ "signer": "evaluator"
514
+ },
515
+ {
516
+ "name": "sell_list",
517
+ "role": "op",
518
+ "op": "POST /v1/exchanges/edge",
519
+ "title": "List the seller with its pool and licence",
520
+ "effect": "write",
521
+ "moves_money": false,
522
+ "signer": null
523
+ },
524
+ {
525
+ "name": "sell_through",
526
+ "role": "op",
527
+ "op": "POST /v1/exchanges/:edge_id/call",
528
+ "title": "Sell through a listed edge: its seller answers, one meter line",
529
+ "effect": "dispatch",
530
+ "moves_money": false,
531
+ "signer": null
532
+ },
533
+ {
534
+ "name": "Listed for the next buyer",
535
+ "role": "output",
536
+ "op": null,
537
+ "title": "OUTPUT",
538
+ "effect": null,
539
+ "moves_money": false,
540
+ "signer": null
541
+ }
542
+ ],
543
+ "edges": [
544
+ {
545
+ "from": "A buyer asks",
546
+ "to": "manual",
547
+ "type": "main"
548
+ },
549
+ {
550
+ "from": "manual",
551
+ "to": "buy_find",
552
+ "type": "main"
553
+ },
554
+ {
555
+ "from": "buy_find",
556
+ "to": "buy_quote",
557
+ "type": "main"
558
+ },
559
+ {
560
+ "from": "buy_quote",
561
+ "to": "both_sides",
562
+ "type": "main"
563
+ },
564
+ {
565
+ "from": "both_sides",
566
+ "to": "buy_hand_over",
567
+ "type": "main"
568
+ },
569
+ {
570
+ "from": "buy_hand_over",
571
+ "to": "buy_grade",
572
+ "type": "main"
573
+ },
574
+ {
575
+ "from": "buy_grade",
576
+ "to": "buy_end",
577
+ "type": "main"
578
+ },
579
+ {
580
+ "from": "buy_end",
581
+ "to": "sell_list",
582
+ "type": "main"
583
+ },
584
+ {
585
+ "from": "sell_list",
586
+ "to": "sell_through",
587
+ "type": "main"
588
+ },
589
+ {
590
+ "from": "sell_through",
591
+ "to": "Listed for the next buyer",
592
+ "type": "main"
593
+ }
594
+ ]
595
+ },
596
+ {
597
+ "id": "hire-from-chat",
598
+ "title": "Hire an assured seller from a chat",
599
+ "does": "The Moonbeam agent finds a seller, quotes the terms, plans the hire, grades the delivery and plans the ending.",
600
+ "nodes": [
601
+ {
602
+ "name": "Chat",
603
+ "role": "trigger",
604
+ "op": null,
605
+ "title": "TRIGGER",
606
+ "effect": null,
607
+ "moves_money": false,
608
+ "signer": null
609
+ },
610
+ {
611
+ "name": "Moonbeam agent",
612
+ "role": "agent",
613
+ "op": null,
614
+ "title": "AGENT",
615
+ "effect": null,
616
+ "moves_money": false,
617
+ "signer": null
618
+ },
619
+ {
620
+ "name": "Model",
621
+ "role": "model",
622
+ "op": null,
623
+ "title": "MODEL",
624
+ "effect": null,
625
+ "moves_money": false,
626
+ "signer": null
627
+ },
628
+ {
629
+ "name": "Memory",
630
+ "role": "memory",
631
+ "op": null,
632
+ "title": "MEMORY",
633
+ "effect": null,
634
+ "moves_money": false,
635
+ "signer": null
636
+ },
637
+ {
638
+ "name": "find_seller",
639
+ "role": "tool",
640
+ "op": "GET /v1/match/search",
641
+ "title": "Find a seller on Base",
642
+ "effect": "read",
643
+ "moves_money": false,
644
+ "signer": null
645
+ },
646
+ {
647
+ "name": "quote_assurance",
648
+ "role": "tool",
649
+ "op": "POST /v1/pools/quote",
650
+ "title": "Quote the hire terms",
651
+ "effect": "pure",
652
+ "moves_money": false,
653
+ "signer": null
654
+ },
655
+ {
656
+ "name": "hire_plan",
657
+ "role": "tool",
658
+ "op": "POST /v1/settle",
659
+ "title": "Plan the hire",
660
+ "effect": "write",
661
+ "moves_money": true,
662
+ "signer": "buyer"
663
+ },
664
+ {
665
+ "name": "grade_delivery",
666
+ "role": "tool",
667
+ "op": "POST /v1/judge/compose",
668
+ "title": "Grade the delivery",
669
+ "effect": "jev",
670
+ "moves_money": false,
671
+ "signer": null
672
+ },
673
+ {
674
+ "name": "settle_plan",
675
+ "role": "tool",
676
+ "op": "POST /v1/assurance/call",
677
+ "title": "Plan the ending",
678
+ "effect": "settle",
679
+ "moves_money": true,
680
+ "signer": "evaluator"
681
+ },
682
+ {
683
+ "name": "Answer",
684
+ "role": "output",
685
+ "op": null,
686
+ "title": "OUTPUT",
687
+ "effect": null,
688
+ "moves_money": false,
689
+ "signer": null
690
+ }
691
+ ],
692
+ "edges": [
693
+ {
694
+ "from": "Chat",
695
+ "to": "Moonbeam agent",
696
+ "type": "main"
697
+ },
698
+ {
699
+ "from": "Moonbeam agent",
700
+ "to": "Answer",
701
+ "type": "main"
702
+ },
703
+ {
704
+ "from": "Model",
705
+ "to": "Moonbeam agent",
706
+ "type": "ai_languageModel"
707
+ },
708
+ {
709
+ "from": "Memory",
710
+ "to": "Moonbeam agent",
711
+ "type": "ai_memory"
712
+ },
713
+ {
714
+ "from": "find_seller",
715
+ "to": "Moonbeam agent",
716
+ "type": "ai_tool"
717
+ },
718
+ {
719
+ "from": "quote_assurance",
720
+ "to": "Moonbeam agent",
721
+ "type": "ai_tool"
722
+ },
723
+ {
724
+ "from": "hire_plan",
725
+ "to": "Moonbeam agent",
726
+ "type": "ai_tool"
727
+ },
728
+ {
729
+ "from": "grade_delivery",
730
+ "to": "Moonbeam agent",
731
+ "type": "ai_tool"
732
+ },
733
+ {
734
+ "from": "settle_plan",
735
+ "to": "Moonbeam agent",
736
+ "type": "ai_tool"
737
+ }
738
+ ]
739
+ },
740
+ {
741
+ "id": "onboard-batch",
742
+ "title": "Onboard a batch of sellers",
743
+ "does": "Find sellers ready to join, check each answer, quote the terms, and list each one with its pool and licence.",
744
+ "nodes": [
745
+ {
746
+ "name": "Start the batch",
747
+ "role": "trigger",
748
+ "op": null,
749
+ "title": "TRIGGER",
750
+ "effect": null,
751
+ "moves_money": false,
752
+ "signer": null
753
+ },
754
+ {
755
+ "name": "find_ready",
756
+ "role": "op",
757
+ "op": "GET /v1/onboard/worklist",
758
+ "title": "Find sellers ready to join",
759
+ "effect": "read",
760
+ "moves_money": false,
761
+ "signer": null
762
+ },
763
+ {
764
+ "name": "check_answer",
765
+ "role": "op",
766
+ "op": "POST /v1/handshake",
767
+ "title": "Hand the task to the seller",
768
+ "effect": "dispatch",
769
+ "moves_money": false,
770
+ "signer": null
771
+ },
772
+ {
773
+ "name": "quote_terms",
774
+ "role": "op",
775
+ "op": "POST /v1/pools/quote",
776
+ "title": "Quote the hire terms",
777
+ "effect": "pure",
778
+ "moves_money": false,
779
+ "signer": null
780
+ },
781
+ {
782
+ "name": "list_seller",
783
+ "role": "op",
784
+ "op": "POST /v1/exchanges/edge",
785
+ "title": "List the seller with its pool and licence",
786
+ "effect": "write",
787
+ "moves_money": false,
788
+ "signer": null
789
+ },
790
+ {
791
+ "name": "Batch report",
792
+ "role": "output",
793
+ "op": null,
794
+ "title": "OUTPUT",
795
+ "effect": null,
796
+ "moves_money": false,
797
+ "signer": null
798
+ }
799
+ ],
800
+ "edges": [
801
+ {
802
+ "from": "Start the batch",
803
+ "to": "find_ready",
804
+ "type": "main"
805
+ },
806
+ {
807
+ "from": "find_ready",
808
+ "to": "check_answer",
809
+ "type": "main"
810
+ },
811
+ {
812
+ "from": "check_answer",
813
+ "to": "quote_terms",
814
+ "type": "main"
815
+ },
816
+ {
817
+ "from": "quote_terms",
818
+ "to": "list_seller",
819
+ "type": "main"
820
+ },
821
+ {
822
+ "from": "list_seller",
823
+ "to": "Batch report",
824
+ "type": "main"
825
+ }
826
+ ]
827
+ }
828
+ ];
829
+ //# sourceMappingURL=data.js.map