@oneie/sdk 0.10.0 → 0.12.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.
- package/dist/billing.d.ts +49 -0
- package/dist/billing.d.ts.map +1 -0
- package/dist/billing.js +49 -0
- package/dist/billing.js.map +1 -0
- package/dist/broadcast.d.ts +37 -0
- package/dist/broadcast.d.ts.map +1 -0
- package/dist/broadcast.js +7 -0
- package/dist/broadcast.js.map +1 -0
- package/dist/client.d.ts +12 -32
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +16 -24
- package/dist/client.js.map +1 -1
- package/dist/gateway.d.ts +39 -0
- package/dist/gateway.d.ts.map +1 -0
- package/dist/gateway.js +94 -0
- package/dist/gateway.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/market.d.ts +63 -0
- package/dist/market.d.ts.map +1 -0
- package/dist/market.js +92 -0
- package/dist/market.js.map +1 -0
- package/dist/meta.d.ts +1 -1
- package/dist/openapi.d.ts +1 -1
- package/dist/openapi.js +1 -1
- package/dist/receivers.d.ts +834 -80
- package/dist/receivers.d.ts.map +1 -1
- package/dist/receivers.js +890 -75
- package/dist/receivers.js.map +1 -1
- package/dist/schemas.d.ts +52 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +40 -0
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -1
package/dist/receivers.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { z } from "zod";
|
|
|
11
11
|
* Consumers: typed `ask<R>`/`signal<R>` (inference, no codegen) · OpenAPI
|
|
12
12
|
* generator · MCP tool descriptions · `meta:catalog` discovery.
|
|
13
13
|
*
|
|
14
|
-
* See `
|
|
14
|
+
* See `text/agent-first-spec-plan.md`.
|
|
15
15
|
*/
|
|
16
16
|
/** Role gate — mirrors the web route's `gateSignalByRole` action. Kept as a loose
|
|
17
17
|
* string so the contract layer carries no web runtime dependency. */
|
|
@@ -41,6 +41,10 @@ export interface Receiver<Req extends z.ZodTypeAny = z.ZodTypeAny, Res extends z
|
|
|
41
41
|
effect: ReceiverEffect;
|
|
42
42
|
/** Role gate — documents the existing `gateSignalByRole` check. */
|
|
43
43
|
auth?: RoleAction;
|
|
44
|
+
/** Minimum world-key scope to call this receiver via an `osk_` bearer key
|
|
45
|
+
* ('read' | 'write' | 'admin'). Discovery metadata — enforcement lives in the
|
|
46
|
+
* service (`world-receivers.ts` assertScope). Omitted ⇒ defaults to 'write'. */
|
|
47
|
+
scope?: "read" | "write" | "admin";
|
|
44
48
|
/** What it costs, so an agent budgets before acting. */
|
|
45
49
|
cost?: ReceiverCost;
|
|
46
50
|
/** Default true; false ⇒ should be dry-run first. */
|
|
@@ -77,6 +81,16 @@ export declare function receiver<Req extends z.ZodTypeAny, Res extends z.ZodType
|
|
|
77
81
|
* C4 = remaining families with metadata; C5 = the `meta:` family.
|
|
78
82
|
*/
|
|
79
83
|
export declare const RECEIVERS: {
|
|
84
|
+
"agent:enroll": Receiver<z.ZodObject<{
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
ok: z.ZodLiteral<true>;
|
|
89
|
+
actorId: z.ZodString;
|
|
90
|
+
slug: z.ZodString;
|
|
91
|
+
apiKey: z.ZodString;
|
|
92
|
+
credits: z.ZodNumber;
|
|
93
|
+
}, z.core.$strip>>;
|
|
80
94
|
"auth:agent": Receiver<z.ZodObject<{
|
|
81
95
|
name: z.ZodOptional<z.ZodString>;
|
|
82
96
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -219,6 +233,40 @@ export declare const RECEIVERS: {
|
|
|
219
233
|
}, z.core.$strip>, z.ZodObject<{
|
|
220
234
|
ok: z.ZodBoolean;
|
|
221
235
|
}, z.core.$strip>>;
|
|
236
|
+
"world:update-contact": Receiver<z.ZodObject<{
|
|
237
|
+
aid: z.ZodString;
|
|
238
|
+
name: z.ZodOptional<z.ZodString>;
|
|
239
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
240
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
241
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
242
|
+
title: z.ZodOptional<z.ZodString>;
|
|
243
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
244
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
245
|
+
email: z.ZodOptional<z.ZodString>;
|
|
246
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
247
|
+
website: z.ZodOptional<z.ZodString>;
|
|
248
|
+
jobTitle: z.ZodOptional<z.ZodString>;
|
|
249
|
+
company: z.ZodOptional<z.ZodString>;
|
|
250
|
+
department: z.ZodOptional<z.ZodString>;
|
|
251
|
+
role: z.ZodOptional<z.ZodString>;
|
|
252
|
+
birthday: z.ZodOptional<z.ZodString>;
|
|
253
|
+
gender: z.ZodOptional<z.ZodString>;
|
|
254
|
+
nationality: z.ZodOptional<z.ZodString>;
|
|
255
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
256
|
+
street: z.ZodOptional<z.ZodString>;
|
|
257
|
+
city: z.ZodOptional<z.ZodString>;
|
|
258
|
+
region: z.ZodOptional<z.ZodString>;
|
|
259
|
+
postcode: z.ZodOptional<z.ZodString>;
|
|
260
|
+
country: z.ZodOptional<z.ZodString>;
|
|
261
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
262
|
+
source: z.ZodOptional<z.ZodString>;
|
|
263
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
fitScore: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
nps: z.ZodOptional<z.ZodNumber>;
|
|
266
|
+
csat: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
+
ok: z.ZodBoolean;
|
|
269
|
+
}, z.core.$strip>>;
|
|
222
270
|
"world:remove-actor": Receiver<z.ZodObject<{
|
|
223
271
|
aid: z.ZodString;
|
|
224
272
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -226,11 +274,28 @@ export declare const RECEIVERS: {
|
|
|
226
274
|
}, z.core.$strip>>;
|
|
227
275
|
"world:create-key": Receiver<z.ZodObject<{
|
|
228
276
|
actor: z.ZodString;
|
|
229
|
-
scope: z.ZodOptional<z.
|
|
277
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
read: "read";
|
|
279
|
+
write: "write";
|
|
280
|
+
admin: "admin";
|
|
281
|
+
}>>;
|
|
230
282
|
label: z.ZodOptional<z.ZodString>;
|
|
283
|
+
expiresIn: z.ZodOptional<z.ZodNumber>;
|
|
231
284
|
}, z.core.$strip>, z.ZodObject<{
|
|
232
285
|
key: z.ZodString;
|
|
233
286
|
keyId: z.ZodString;
|
|
287
|
+
scope: z.ZodString;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
"world:list-keys": Receiver<z.ZodObject<{
|
|
290
|
+
actor: z.ZodString;
|
|
291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
+
keys: z.ZodArray<z.ZodObject<{
|
|
293
|
+
keyId: z.ZodString;
|
|
294
|
+
label: z.ZodNullable<z.ZodString>;
|
|
295
|
+
scope: z.ZodString;
|
|
296
|
+
createdAt: z.ZodNumber;
|
|
297
|
+
validTo: z.ZodNullable<z.ZodNumber>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
234
299
|
}, z.core.$strip>>;
|
|
235
300
|
"world:revoke-key": Receiver<z.ZodObject<{
|
|
236
301
|
keyId: z.ZodString;
|
|
@@ -311,39 +376,9 @@ export declare const RECEIVERS: {
|
|
|
311
376
|
uid: z.ZodString;
|
|
312
377
|
address: z.ZodString;
|
|
313
378
|
}, z.core.$strip>>;
|
|
314
|
-
"auth:sign-in": Receiver<z.ZodObject<{
|
|
315
|
-
email: z.ZodString;
|
|
316
|
-
password: z.ZodString;
|
|
317
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
318
|
-
sessionId: z.ZodString;
|
|
319
|
-
userId: z.ZodString;
|
|
320
|
-
}, z.core.$strip>>;
|
|
321
379
|
"auth:sign-out": Receiver<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
322
380
|
ok: z.ZodBoolean;
|
|
323
381
|
}, z.core.$strip>>;
|
|
324
|
-
"board:join": Receiver<z.ZodObject<{
|
|
325
|
-
uid: z.ZodString;
|
|
326
|
-
group: z.ZodOptional<z.ZodString>;
|
|
327
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
328
|
-
ok: z.ZodBoolean;
|
|
329
|
-
uid: z.ZodString;
|
|
330
|
-
group: z.ZodString;
|
|
331
|
-
role: z.ZodString;
|
|
332
|
-
}, z.core.$strip>>;
|
|
333
|
-
"agency:push:complete": Receiver<z.ZodObject<{
|
|
334
|
-
agents: z.ZodNumber;
|
|
335
|
-
skills: z.ZodNumber;
|
|
336
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
337
|
-
ok: z.ZodBoolean;
|
|
338
|
-
}, z.core.$strip>>;
|
|
339
|
-
"agency:friction": Receiver<z.ZodObject<{
|
|
340
|
-
agency: z.ZodString;
|
|
341
|
-
cycle: z.ZodNullable<z.ZodString>;
|
|
342
|
-
wave: z.ZodNullable<z.ZodString>;
|
|
343
|
-
reason: z.ZodString;
|
|
344
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
345
|
-
ok: z.ZodBoolean;
|
|
346
|
-
}, z.core.$strip>>;
|
|
347
382
|
"groups:join": Receiver<z.ZodObject<{
|
|
348
383
|
gid: z.ZodString;
|
|
349
384
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -391,25 +426,12 @@ export declare const RECEIVERS: {
|
|
|
391
426
|
cap: z.ZodNullable<z.ZodNumber>;
|
|
392
427
|
}, z.core.$strip>>;
|
|
393
428
|
}, z.core.$strip>>;
|
|
394
|
-
"paths:bridge": Receiver<z.ZodObject<{
|
|
395
|
-
from: z.ZodString;
|
|
396
|
-
to: z.ZodString;
|
|
397
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
398
|
-
ok: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
400
|
-
pending: "pending";
|
|
401
|
-
bridged: "bridged";
|
|
402
|
-
}>>;
|
|
403
|
-
key: z.ZodOptional<z.ZodString>;
|
|
404
|
-
gid: z.ZodOptional<z.ZodString>;
|
|
405
|
-
awaiting: z.ZodOptional<z.ZodString>;
|
|
406
|
-
}, z.core.$strip>>;
|
|
407
429
|
"subscriptions:register": Receiver<z.ZodObject<{
|
|
408
430
|
receiver: z.ZodString;
|
|
409
431
|
tags: z.ZodArray<z.ZodString>;
|
|
410
432
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
411
|
-
private: "private";
|
|
412
433
|
public: "public";
|
|
434
|
+
private: "private";
|
|
413
435
|
}>>;
|
|
414
436
|
}, z.core.$strip>, z.ZodObject<{
|
|
415
437
|
ok: z.ZodBoolean;
|
|
@@ -462,19 +484,6 @@ export declare const RECEIVERS: {
|
|
|
462
484
|
price: z.ZodNumber;
|
|
463
485
|
currency: z.ZodString;
|
|
464
486
|
}, z.core.$strip>>>;
|
|
465
|
-
"agents:deploy-on-behalf": Receiver<z.ZodObject<{
|
|
466
|
-
owner: z.ZodString;
|
|
467
|
-
spec: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
468
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
469
|
-
ok: z.ZodBoolean;
|
|
470
|
-
uid: z.ZodString;
|
|
471
|
-
owner: z.ZodString;
|
|
472
|
-
inheritedPaths: z.ZodArray<z.ZodObject<{
|
|
473
|
-
from: z.ZodString;
|
|
474
|
-
to: z.ZodString;
|
|
475
|
-
strength: z.ZodNumber;
|
|
476
|
-
}, z.core.$strip>>;
|
|
477
|
-
}, z.core.$strip>>;
|
|
478
487
|
"pay:weight": Receiver<z.ZodObject<{
|
|
479
488
|
from: z.ZodString;
|
|
480
489
|
to: z.ZodString;
|
|
@@ -488,6 +497,147 @@ export declare const RECEIVERS: {
|
|
|
488
497
|
amount: z.ZodNumber;
|
|
489
498
|
sui: z.ZodNullable<z.ZodString>;
|
|
490
499
|
}, z.core.$strip>>;
|
|
500
|
+
"market:offer": Receiver<z.ZodObject<{
|
|
501
|
+
id: z.ZodOptional<z.ZodString>;
|
|
502
|
+
seller: z.ZodString;
|
|
503
|
+
skill: z.ZodString;
|
|
504
|
+
price: z.ZodNumber;
|
|
505
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
506
|
+
deadline: z.ZodString;
|
|
507
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
508
|
+
ok: z.ZodLiteral<true>;
|
|
509
|
+
deal: z.ZodObject<{
|
|
510
|
+
id: z.ZodString;
|
|
511
|
+
stage: z.ZodString;
|
|
512
|
+
version: z.ZodNumber;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
515
|
+
ok: z.ZodLiteral<false>;
|
|
516
|
+
error: z.ZodString;
|
|
517
|
+
}, z.core.$strip>]>>;
|
|
518
|
+
"market:counter": Receiver<z.ZodObject<{
|
|
519
|
+
dealId: z.ZodString;
|
|
520
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
521
|
+
deadline: z.ZodOptional<z.ZodString>;
|
|
522
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
523
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
524
|
+
ok: z.ZodLiteral<true>;
|
|
525
|
+
deal: z.ZodObject<{
|
|
526
|
+
id: z.ZodString;
|
|
527
|
+
stage: z.ZodString;
|
|
528
|
+
version: z.ZodNumber;
|
|
529
|
+
}, z.core.$strip>;
|
|
530
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
531
|
+
ok: z.ZodLiteral<false>;
|
|
532
|
+
error: z.ZodString;
|
|
533
|
+
}, z.core.$strip>]>>;
|
|
534
|
+
"market:accept": Receiver<z.ZodObject<{
|
|
535
|
+
dealId: z.ZodString;
|
|
536
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
537
|
+
ok: z.ZodLiteral<true>;
|
|
538
|
+
deal: z.ZodObject<{
|
|
539
|
+
id: z.ZodString;
|
|
540
|
+
stage: z.ZodString;
|
|
541
|
+
version: z.ZodNumber;
|
|
542
|
+
}, z.core.$strip>;
|
|
543
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
544
|
+
ok: z.ZodLiteral<false>;
|
|
545
|
+
error: z.ZodString;
|
|
546
|
+
}, z.core.$strip>]>>;
|
|
547
|
+
"market:reject": Receiver<z.ZodObject<{
|
|
548
|
+
dealId: z.ZodString;
|
|
549
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
550
|
+
ok: z.ZodLiteral<true>;
|
|
551
|
+
deal: z.ZodObject<{
|
|
552
|
+
id: z.ZodString;
|
|
553
|
+
stage: z.ZodString;
|
|
554
|
+
version: z.ZodNumber;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
557
|
+
ok: z.ZodLiteral<false>;
|
|
558
|
+
error: z.ZodString;
|
|
559
|
+
}, z.core.$strip>]>>;
|
|
560
|
+
"market:deliver": Receiver<z.ZodObject<{
|
|
561
|
+
dealId: z.ZodString;
|
|
562
|
+
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
563
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
564
|
+
ok: z.ZodLiteral<true>;
|
|
565
|
+
deal: z.ZodObject<{
|
|
566
|
+
id: z.ZodString;
|
|
567
|
+
stage: z.ZodString;
|
|
568
|
+
version: z.ZodNumber;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
571
|
+
ok: z.ZodLiteral<false>;
|
|
572
|
+
error: z.ZodString;
|
|
573
|
+
}, z.core.$strip>]>>;
|
|
574
|
+
"market:verify": Receiver<z.ZodObject<{
|
|
575
|
+
dealId: z.ZodString;
|
|
576
|
+
fit: z.ZodNumber;
|
|
577
|
+
form: z.ZodNumber;
|
|
578
|
+
truth: z.ZodNumber;
|
|
579
|
+
taste: z.ZodNumber;
|
|
580
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
581
|
+
ok: z.ZodLiteral<true>;
|
|
582
|
+
deal: z.ZodObject<{
|
|
583
|
+
id: z.ZodString;
|
|
584
|
+
stage: z.ZodString;
|
|
585
|
+
version: z.ZodNumber;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
scores: z.ZodObject<{
|
|
588
|
+
fit: z.ZodNumber;
|
|
589
|
+
form: z.ZodNumber;
|
|
590
|
+
truth: z.ZodNumber;
|
|
591
|
+
taste: z.ZodNumber;
|
|
592
|
+
}, z.core.$strip>;
|
|
593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
594
|
+
ok: z.ZodLiteral<false>;
|
|
595
|
+
error: z.ZodString;
|
|
596
|
+
}, z.core.$strip>]>>;
|
|
597
|
+
"market:settle": Receiver<z.ZodObject<{
|
|
598
|
+
dealId: z.ZodString;
|
|
599
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
600
|
+
ok: z.ZodLiteral<true>;
|
|
601
|
+
deal: z.ZodObject<{
|
|
602
|
+
id: z.ZodString;
|
|
603
|
+
stage: z.ZodString;
|
|
604
|
+
version: z.ZodNumber;
|
|
605
|
+
}, z.core.$strip>;
|
|
606
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
607
|
+
ok: z.ZodLiteral<false>;
|
|
608
|
+
error: z.ZodString;
|
|
609
|
+
}, z.core.$strip>]>>;
|
|
610
|
+
"market:dispute": Receiver<z.ZodObject<{
|
|
611
|
+
dealId: z.ZodString;
|
|
612
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
613
|
+
ok: z.ZodLiteral<true>;
|
|
614
|
+
deal: z.ZodObject<{
|
|
615
|
+
id: z.ZodString;
|
|
616
|
+
stage: z.ZodString;
|
|
617
|
+
version: z.ZodNumber;
|
|
618
|
+
}, z.core.$strip>;
|
|
619
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
620
|
+
ok: z.ZodLiteral<false>;
|
|
621
|
+
error: z.ZodString;
|
|
622
|
+
}, z.core.$strip>]>>;
|
|
623
|
+
"market:escrow": Receiver<z.ZodObject<{
|
|
624
|
+
dealId: z.ZodString;
|
|
625
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
626
|
+
ok: z.ZodLiteral<true>;
|
|
627
|
+
deal: z.ZodObject<{
|
|
628
|
+
id: z.ZodString;
|
|
629
|
+
stage: z.ZodString;
|
|
630
|
+
version: z.ZodNumber;
|
|
631
|
+
}, z.core.$strip>;
|
|
632
|
+
escrowRef: z.ZodString;
|
|
633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
634
|
+
ok: z.ZodLiteral<false>;
|
|
635
|
+
error: z.ZodString;
|
|
636
|
+
deal: z.ZodOptional<z.ZodObject<{
|
|
637
|
+
id: z.ZodString;
|
|
638
|
+
stage: z.ZodString;
|
|
639
|
+
}, z.core.$strip>>;
|
|
640
|
+
}, z.core.$strip>]>>;
|
|
491
641
|
"market:hire": Receiver<z.ZodObject<{
|
|
492
642
|
providerUid: z.ZodString;
|
|
493
643
|
skillId: z.ZodString;
|
|
@@ -537,6 +687,16 @@ export declare const RECEIVERS: {
|
|
|
537
687
|
deadline: z.ZodOptional<z.ZodString>;
|
|
538
688
|
status: z.ZodString;
|
|
539
689
|
}, z.core.$strip>>>;
|
|
690
|
+
"market:claim": Receiver<z.ZodObject<{
|
|
691
|
+
bountyId: z.ZodString;
|
|
692
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
693
|
+
ok: z.ZodLiteral<true>;
|
|
694
|
+
bountyId: z.ZodString;
|
|
695
|
+
claimantUid: z.ZodString;
|
|
696
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
697
|
+
ok: z.ZodLiteral<false>;
|
|
698
|
+
error: z.ZodString;
|
|
699
|
+
}, z.core.$strip>]>>;
|
|
540
700
|
"market:list": Receiver<z.ZodObject<{
|
|
541
701
|
tag: z.ZodOptional<z.ZodString>;
|
|
542
702
|
maxPrice: z.ZodOptional<z.ZodNumber>;
|
|
@@ -562,26 +722,6 @@ export declare const RECEIVERS: {
|
|
|
562
722
|
sid: z.ZodString;
|
|
563
723
|
scope: z.ZodString;
|
|
564
724
|
}, z.core.$strip>>;
|
|
565
|
-
"loop:close": Receiver<z.ZodObject<{
|
|
566
|
-
session: z.ZodString;
|
|
567
|
-
outcome: z.ZodEnum<{
|
|
568
|
-
timeout: "timeout";
|
|
569
|
-
result: "result";
|
|
570
|
-
dissolved: "dissolved";
|
|
571
|
-
failure: "failure";
|
|
572
|
-
}>;
|
|
573
|
-
rubric: z.ZodOptional<z.ZodNumber>;
|
|
574
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
575
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
576
|
-
ok: z.ZodLiteral<true>;
|
|
577
|
-
stages: z.ZodArray<z.ZodUnknown>;
|
|
578
|
-
highways: z.ZodArray<z.ZodObject<{
|
|
579
|
-
path: z.ZodString;
|
|
580
|
-
strength: z.ZodNumber;
|
|
581
|
-
resistance: z.ZodNumber;
|
|
582
|
-
net: z.ZodNumber;
|
|
583
|
-
}, z.core.$strip>>;
|
|
584
|
-
}, z.core.$strip>>;
|
|
585
725
|
"signals:list": Receiver<z.ZodObject<{
|
|
586
726
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
587
727
|
since: z.ZodOptional<z.ZodNumber>;
|
|
@@ -715,6 +855,618 @@ export declare const RECEIVERS: {
|
|
|
715
855
|
reply: z.ZodOptional<z.ZodString>;
|
|
716
856
|
error: z.ZodOptional<z.ZodString>;
|
|
717
857
|
}, z.core.$strip>>;
|
|
858
|
+
"booking:list-slots": Receiver<z.ZodObject<{
|
|
859
|
+
slug: z.ZodString;
|
|
860
|
+
service: z.ZodOptional<z.ZodString>;
|
|
861
|
+
date: z.ZodOptional<z.ZodString>;
|
|
862
|
+
days: z.ZodOptional<z.ZodNumber>;
|
|
863
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
864
|
+
service: z.ZodNullable<z.ZodObject<{
|
|
865
|
+
service_id: z.ZodString;
|
|
866
|
+
name: z.ZodString;
|
|
867
|
+
duration_min: z.ZodNumber;
|
|
868
|
+
price: z.ZodNumber;
|
|
869
|
+
currency: z.ZodString;
|
|
870
|
+
}, z.core.$strip>>;
|
|
871
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
872
|
+
date: z.ZodString;
|
|
873
|
+
times: z.ZodArray<z.ZodString>;
|
|
874
|
+
}, z.core.$strip>>;
|
|
875
|
+
error: z.ZodOptional<z.ZodString>;
|
|
876
|
+
}, z.core.$strip>>;
|
|
877
|
+
"booking:create": Receiver<z.ZodObject<{
|
|
878
|
+
slug: z.ZodString;
|
|
879
|
+
service: z.ZodString;
|
|
880
|
+
slotDate: z.ZodString;
|
|
881
|
+
slotTime: z.ZodString;
|
|
882
|
+
customer: z.ZodObject<{
|
|
883
|
+
name: z.ZodString;
|
|
884
|
+
email: z.ZodOptional<z.ZodString>;
|
|
885
|
+
}, z.core.$strip>;
|
|
886
|
+
paymentRail: z.ZodOptional<z.ZodEnum<{
|
|
887
|
+
sui: "sui";
|
|
888
|
+
stripe: "stripe";
|
|
889
|
+
}>>;
|
|
890
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
891
|
+
ok: z.ZodBoolean;
|
|
892
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
893
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
894
|
+
pending: "pending";
|
|
895
|
+
confirmed: "confirmed";
|
|
896
|
+
}>>;
|
|
897
|
+
paymentRail: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
898
|
+
sui: "sui";
|
|
899
|
+
stripe: "stripe";
|
|
900
|
+
}>>>;
|
|
901
|
+
paymentIntent: z.ZodOptional<z.ZodObject<{
|
|
902
|
+
clientSecret: z.ZodString;
|
|
903
|
+
amount: z.ZodNumber;
|
|
904
|
+
}, z.core.$strip>>;
|
|
905
|
+
escrow: z.ZodOptional<z.ZodObject<{
|
|
906
|
+
escrowId: z.ZodString;
|
|
907
|
+
bounty: z.ZodNumber;
|
|
908
|
+
deadline: z.ZodString;
|
|
909
|
+
}, z.core.$strip>>;
|
|
910
|
+
error: z.ZodOptional<z.ZodString>;
|
|
911
|
+
}, z.core.$strip>>;
|
|
912
|
+
"booking:configure": Receiver<z.ZodObject<{
|
|
913
|
+
slug: z.ZodString;
|
|
914
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
915
|
+
service: z.ZodOptional<z.ZodString>;
|
|
916
|
+
name: z.ZodString;
|
|
917
|
+
duration_min: z.ZodNumber;
|
|
918
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
919
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
920
|
+
hours_json: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
921
|
+
start: z.ZodString;
|
|
922
|
+
end: z.ZodString;
|
|
923
|
+
}, z.core.$strip>>>;
|
|
924
|
+
tz: z.ZodOptional<z.ZodString>;
|
|
925
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
926
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
927
|
+
ok: z.ZodBoolean;
|
|
928
|
+
service_id: z.ZodOptional<z.ZodString>;
|
|
929
|
+
error: z.ZodOptional<z.ZodString>;
|
|
930
|
+
}, z.core.$strip>>;
|
|
931
|
+
"booking:list-bookings": Receiver<z.ZodObject<{
|
|
932
|
+
slug: z.ZodString;
|
|
933
|
+
month: z.ZodOptional<z.ZodString>;
|
|
934
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
935
|
+
bookings: z.ZodArray<z.ZodObject<{
|
|
936
|
+
id: z.ZodString;
|
|
937
|
+
ref: z.ZodString;
|
|
938
|
+
service_name: z.ZodString;
|
|
939
|
+
slot_date: z.ZodString;
|
|
940
|
+
slot_time: z.ZodString;
|
|
941
|
+
customer_name: z.ZodString;
|
|
942
|
+
status: z.ZodString;
|
|
943
|
+
}, z.core.$strip>>;
|
|
944
|
+
error: z.ZodOptional<z.ZodString>;
|
|
945
|
+
}, z.core.$strip>>;
|
|
946
|
+
"booking:cancel": Receiver<z.ZodObject<{
|
|
947
|
+
slug: z.ZodString;
|
|
948
|
+
ref: z.ZodString;
|
|
949
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
950
|
+
ok: z.ZodBoolean;
|
|
951
|
+
error: z.ZodOptional<z.ZodString>;
|
|
952
|
+
}, z.core.$strip>>;
|
|
953
|
+
"workflow:list": Receiver<z.ZodObject<{
|
|
954
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
955
|
+
templates: z.ZodOptional<z.ZodBoolean>;
|
|
956
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
957
|
+
workflows: z.ZodArray<z.ZodObject<{
|
|
958
|
+
id: z.ZodString;
|
|
959
|
+
name: z.ZodString;
|
|
960
|
+
description: z.ZodOptional<z.ZodString>;
|
|
961
|
+
step_count: z.ZodNumber;
|
|
962
|
+
status: z.ZodString;
|
|
963
|
+
last_run_status: z.ZodNullable<z.ZodString>;
|
|
964
|
+
}, z.core.$strip>>;
|
|
965
|
+
error: z.ZodOptional<z.ZodString>;
|
|
966
|
+
}, z.core.$strip>>;
|
|
967
|
+
"workflow:get": Receiver<z.ZodObject<{
|
|
968
|
+
workflowId: z.ZodString;
|
|
969
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
970
|
+
id: z.ZodString;
|
|
971
|
+
name: z.ZodString;
|
|
972
|
+
status: z.ZodString;
|
|
973
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
974
|
+
id: z.ZodString;
|
|
975
|
+
kind: z.ZodEnum<{
|
|
976
|
+
agent: "agent";
|
|
977
|
+
skill: "skill";
|
|
978
|
+
trigger: "trigger";
|
|
979
|
+
tool: "tool";
|
|
980
|
+
condition: "condition";
|
|
981
|
+
human: "human";
|
|
982
|
+
delay: "delay";
|
|
983
|
+
sell: "sell";
|
|
984
|
+
}>;
|
|
985
|
+
name: z.ZodString;
|
|
986
|
+
config: z.ZodString;
|
|
987
|
+
position: z.ZodOptional<z.ZodString>;
|
|
988
|
+
}, z.core.$strip>>;
|
|
989
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
990
|
+
source: z.ZodString;
|
|
991
|
+
target: z.ZodString;
|
|
992
|
+
strength: z.ZodNumber;
|
|
993
|
+
resistance: z.ZodNumber;
|
|
994
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
995
|
+
}, z.core.$strip>>;
|
|
996
|
+
error: z.ZodOptional<z.ZodString>;
|
|
997
|
+
}, z.core.$strip>>;
|
|
998
|
+
"workflow:runs": Receiver<z.ZodObject<{
|
|
999
|
+
workflowId: z.ZodString;
|
|
1000
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1001
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1003
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1004
|
+
id: z.ZodString;
|
|
1005
|
+
status: z.ZodString;
|
|
1006
|
+
started_at: z.ZodNumber;
|
|
1007
|
+
finished_at: z.ZodNullable<z.ZodNumber>;
|
|
1008
|
+
}, z.core.$strip>>;
|
|
1009
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1010
|
+
step_id: z.ZodString;
|
|
1011
|
+
kind: z.ZodString;
|
|
1012
|
+
status: z.ZodNullable<z.ZodString>;
|
|
1013
|
+
latency_ms: z.ZodNullable<z.ZodNumber>;
|
|
1014
|
+
at: z.ZodNumber;
|
|
1015
|
+
}, z.core.$strip>>>;
|
|
1016
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
}, z.core.$strip>>;
|
|
1018
|
+
"workflow:create": Receiver<z.ZodObject<{
|
|
1019
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
name: z.ZodString;
|
|
1021
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1022
|
+
fromTemplate: z.ZodOptional<z.ZodString>;
|
|
1023
|
+
simulate: z.ZodOptional<z.ZodBoolean>;
|
|
1024
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1025
|
+
id: z.ZodString;
|
|
1026
|
+
workflowId: z.ZodString;
|
|
1027
|
+
}, z.core.$strip>>;
|
|
1028
|
+
"workflow:apply-diff": Receiver<z.ZodObject<{
|
|
1029
|
+
workflowId: z.ZodString;
|
|
1030
|
+
diff: z.ZodObject<{
|
|
1031
|
+
add: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1032
|
+
tempId: z.ZodString;
|
|
1033
|
+
kind: z.ZodEnum<{
|
|
1034
|
+
agent: "agent";
|
|
1035
|
+
skill: "skill";
|
|
1036
|
+
trigger: "trigger";
|
|
1037
|
+
tool: "tool";
|
|
1038
|
+
condition: "condition";
|
|
1039
|
+
human: "human";
|
|
1040
|
+
delay: "delay";
|
|
1041
|
+
sell: "sell";
|
|
1042
|
+
}>;
|
|
1043
|
+
name: z.ZodString;
|
|
1044
|
+
config: z.ZodString;
|
|
1045
|
+
position: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
afterStepId: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
}, z.core.$strip>>>;
|
|
1048
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1049
|
+
connect: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1050
|
+
source: z.ZodString;
|
|
1051
|
+
target: z.ZodString;
|
|
1052
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
1053
|
+
}, z.core.$strip>>>;
|
|
1054
|
+
disconnect: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1055
|
+
source: z.ZodString;
|
|
1056
|
+
target: z.ZodString;
|
|
1057
|
+
}, z.core.$strip>>>;
|
|
1058
|
+
update: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1059
|
+
stepId: z.ZodString;
|
|
1060
|
+
field: z.ZodEnum<{
|
|
1061
|
+
name: "name";
|
|
1062
|
+
config: "config";
|
|
1063
|
+
position: "position";
|
|
1064
|
+
"exit-condition": "exit-condition";
|
|
1065
|
+
owner: "owner";
|
|
1066
|
+
}>;
|
|
1067
|
+
value: z.ZodString;
|
|
1068
|
+
}, z.core.$strip>>>;
|
|
1069
|
+
}, z.core.$strip>;
|
|
1070
|
+
simulate: z.ZodOptional<z.ZodBoolean>;
|
|
1071
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1072
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1073
|
+
ok: z.ZodBoolean;
|
|
1074
|
+
stepCount: z.ZodOptional<z.ZodNumber>;
|
|
1075
|
+
idMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1076
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
}, z.core.$strip>>;
|
|
1078
|
+
"workflow:run": Receiver<z.ZodObject<{
|
|
1079
|
+
workflowId: z.ZodString;
|
|
1080
|
+
triggerPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1081
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1083
|
+
runId: z.ZodString;
|
|
1084
|
+
status: z.ZodString;
|
|
1085
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
}, z.core.$strip>>;
|
|
1087
|
+
"human:resolve": Receiver<z.ZodObject<{
|
|
1088
|
+
runId: z.ZodString;
|
|
1089
|
+
stepId: z.ZodString;
|
|
1090
|
+
decision: z.ZodOptional<z.ZodEnum<{
|
|
1091
|
+
approved: "approved";
|
|
1092
|
+
rejected: "rejected";
|
|
1093
|
+
}>>;
|
|
1094
|
+
formPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1095
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1096
|
+
attestation: z.ZodOptional<z.ZodString>;
|
|
1097
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1098
|
+
ok: z.ZodBoolean;
|
|
1099
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1100
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1101
|
+
}, z.core.$strip>>;
|
|
1102
|
+
"checkout:create": Receiver<z.ZodObject<{
|
|
1103
|
+
workspace: z.ZodString;
|
|
1104
|
+
ppid: z.ZodString;
|
|
1105
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
1106
|
+
stepId: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1108
|
+
clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1109
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1110
|
+
applicationFeeAmount: z.ZodOptional<z.ZodNumber>;
|
|
1111
|
+
stripeAccount: z.ZodOptional<z.ZodString>;
|
|
1112
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
}, z.core.$strip>>;
|
|
1114
|
+
"checkout:resume": Receiver<z.ZodObject<{
|
|
1115
|
+
runId: z.ZodString;
|
|
1116
|
+
stepId: z.ZodString;
|
|
1117
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1119
|
+
ok: z.ZodBoolean;
|
|
1120
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
}, z.core.$strip>>;
|
|
1123
|
+
"human:notify": Receiver<z.ZodObject<{
|
|
1124
|
+
runId: z.ZodString;
|
|
1125
|
+
stepId: z.ZodString;
|
|
1126
|
+
stepName: z.ZodOptional<z.ZodString>;
|
|
1127
|
+
workflowName: z.ZodOptional<z.ZodString>;
|
|
1128
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1130
|
+
ok: z.ZodBoolean;
|
|
1131
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
}, z.core.$strip>>;
|
|
1134
|
+
"workflow:stop": Receiver<z.ZodObject<{
|
|
1135
|
+
runId: z.ZodString;
|
|
1136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1137
|
+
ok: z.ZodBoolean;
|
|
1138
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1139
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1140
|
+
}, z.core.$strip>>;
|
|
1141
|
+
"workflow:trigger": Receiver<z.ZodObject<{
|
|
1142
|
+
source: z.ZodString;
|
|
1143
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1144
|
+
triggerPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1145
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1146
|
+
ok: z.ZodBoolean;
|
|
1147
|
+
started: z.ZodNumber;
|
|
1148
|
+
runIds: z.ZodArray<z.ZodString>;
|
|
1149
|
+
}, z.core.$strip>>;
|
|
1150
|
+
"workflow:delete": Receiver<z.ZodObject<{
|
|
1151
|
+
workflowId: z.ZodString;
|
|
1152
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1153
|
+
ok: z.ZodBoolean;
|
|
1154
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
}, z.core.$strip>>;
|
|
1156
|
+
"workflow:update": Receiver<z.ZodObject<{
|
|
1157
|
+
workflowId: z.ZodString;
|
|
1158
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1159
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1160
|
+
draft: "draft";
|
|
1161
|
+
active: "active";
|
|
1162
|
+
paused: "paused";
|
|
1163
|
+
}>>;
|
|
1164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1165
|
+
ok: z.ZodBoolean;
|
|
1166
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
}, z.core.$strip>>;
|
|
1168
|
+
"skills:list": Receiver<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
1169
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
1170
|
+
name: z.ZodString;
|
|
1171
|
+
size: z.ZodNumber;
|
|
1172
|
+
}, z.core.$strip>>;
|
|
1173
|
+
}, z.core.$strip>>;
|
|
1174
|
+
"skill:run": Receiver<z.ZodObject<{
|
|
1175
|
+
skill: z.ZodString;
|
|
1176
|
+
}, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
|
|
1177
|
+
ok: z.ZodBoolean;
|
|
1178
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1179
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
}, z.core.$strip>>;
|
|
1182
|
+
"agent:run": Receiver<z.ZodObject<{
|
|
1183
|
+
actorId: z.ZodString;
|
|
1184
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
}, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
|
|
1187
|
+
ok: z.ZodBoolean;
|
|
1188
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
1190
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
}, z.core.$strip>>;
|
|
1192
|
+
"video:create-room": Receiver<z.ZodObject<{
|
|
1193
|
+
workspace: z.ZodString;
|
|
1194
|
+
roomSlug: z.ZodString;
|
|
1195
|
+
name: z.ZodString;
|
|
1196
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1198
|
+
meeting: "meeting";
|
|
1199
|
+
classroom: "classroom";
|
|
1200
|
+
webinar: "webinar";
|
|
1201
|
+
}>>;
|
|
1202
|
+
region: z.ZodOptional<z.ZodString>;
|
|
1203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1204
|
+
ok: z.ZodBoolean;
|
|
1205
|
+
room: z.ZodOptional<z.ZodObject<{
|
|
1206
|
+
slug: z.ZodString;
|
|
1207
|
+
name: z.ZodString;
|
|
1208
|
+
description: z.ZodString;
|
|
1209
|
+
type: z.ZodString;
|
|
1210
|
+
hmsRoomId: z.ZodString;
|
|
1211
|
+
url: z.ZodString;
|
|
1212
|
+
}, z.core.$strip>>;
|
|
1213
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1214
|
+
}, z.core.$strip>>;
|
|
1215
|
+
"video:delete-room": Receiver<z.ZodObject<{
|
|
1216
|
+
workspace: z.ZodString;
|
|
1217
|
+
roomSlug: z.ZodString;
|
|
1218
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1219
|
+
ok: z.ZodBoolean;
|
|
1220
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
}, z.core.$strip>>;
|
|
1222
|
+
"video:contact-call": Receiver<z.ZodObject<{
|
|
1223
|
+
workspace: z.ZodString;
|
|
1224
|
+
actorId: z.ZodString;
|
|
1225
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1227
|
+
ok: z.ZodBoolean;
|
|
1228
|
+
roomSlug: z.ZodOptional<z.ZodString>;
|
|
1229
|
+
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1230
|
+
guestJoinUrl: z.ZodOptional<z.ZodString>;
|
|
1231
|
+
hostJoinUrl: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1233
|
+
}, z.core.$strip>>;
|
|
1234
|
+
"video:invite": Receiver<z.ZodObject<{
|
|
1235
|
+
workspace: z.ZodString;
|
|
1236
|
+
roomSlug: z.ZodString;
|
|
1237
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1239
|
+
ok: z.ZodBoolean;
|
|
1240
|
+
goUrl: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
1242
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1243
|
+
}, z.core.$strip>>;
|
|
1244
|
+
"video:schedule-webinar": Receiver<z.ZodObject<{
|
|
1245
|
+
workspace: z.ZodString;
|
|
1246
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1247
|
+
actorIds: z.ZodArray<z.ZodString>;
|
|
1248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1249
|
+
ok: z.ZodBoolean;
|
|
1250
|
+
roomUrl: z.ZodOptional<z.ZodString>;
|
|
1251
|
+
invited: z.ZodOptional<z.ZodNumber>;
|
|
1252
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1253
|
+
actorId: z.ZodString;
|
|
1254
|
+
goUrl: z.ZodString;
|
|
1255
|
+
}, z.core.$strip>>>;
|
|
1256
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
}, z.core.$strip>>;
|
|
1258
|
+
"video:create-session": Receiver<z.ZodObject<{
|
|
1259
|
+
workspace: z.ZodString;
|
|
1260
|
+
roomSlug: z.ZodString;
|
|
1261
|
+
name: z.ZodString;
|
|
1262
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1263
|
+
meeting: "meeting";
|
|
1264
|
+
classroom: "classroom";
|
|
1265
|
+
webinar: "webinar";
|
|
1266
|
+
}>>;
|
|
1267
|
+
region: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
guestActorId: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
scheduledAt: z.ZodOptional<z.ZodNumber>;
|
|
1270
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1271
|
+
ok: z.ZodBoolean;
|
|
1272
|
+
room: z.ZodOptional<z.ZodObject<{
|
|
1273
|
+
slug: z.ZodString;
|
|
1274
|
+
hmsRoomId: z.ZodString;
|
|
1275
|
+
url: z.ZodString;
|
|
1276
|
+
}, z.core.$strip>>;
|
|
1277
|
+
hostJoinUrl: z.ZodOptional<z.ZodString>;
|
|
1278
|
+
guestJoinUrl: z.ZodOptional<z.ZodString>;
|
|
1279
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1280
|
+
}, z.core.$strip>>;
|
|
1281
|
+
"video:summary": Receiver<z.ZodObject<{
|
|
1282
|
+
threadId: z.ZodString;
|
|
1283
|
+
transcript: z.ZodString;
|
|
1284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1285
|
+
ok: z.ZodBoolean;
|
|
1286
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
1287
|
+
skipped: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1289
|
+
}, z.core.$strip>>;
|
|
1290
|
+
"video:quick-room": Receiver<z.ZodObject<{
|
|
1291
|
+
workspace: z.ZodString;
|
|
1292
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
1293
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1294
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1295
|
+
ok: z.ZodBoolean;
|
|
1296
|
+
roomSlug: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
guestJoinUrl: z.ZodOptional<z.ZodString>;
|
|
1298
|
+
hostJoinUrl: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1300
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1301
|
+
}, z.core.$strip>>;
|
|
1302
|
+
"video:join-event": Receiver<z.ZodObject<{
|
|
1303
|
+
workspace: z.ZodString;
|
|
1304
|
+
roomSlug: z.ZodString;
|
|
1305
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1306
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
1307
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1308
|
+
ok: z.ZodBoolean;
|
|
1309
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1310
|
+
}, z.core.$strip>>;
|
|
1311
|
+
"video:start-recording": Receiver<z.ZodObject<{
|
|
1312
|
+
workspace: z.ZodString;
|
|
1313
|
+
roomSlug: z.ZodString;
|
|
1314
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1315
|
+
ok: z.ZodBoolean;
|
|
1316
|
+
recordingId: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
}, z.core.$strip>>;
|
|
1319
|
+
"video:start-stream": Receiver<z.ZodObject<{
|
|
1320
|
+
workspace: z.ZodString;
|
|
1321
|
+
roomSlug: z.ZodString;
|
|
1322
|
+
hlsConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1323
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1324
|
+
ok: z.ZodBoolean;
|
|
1325
|
+
hlsUrl: z.ZodOptional<z.ZodString>;
|
|
1326
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1327
|
+
}, z.core.$strip>>;
|
|
1328
|
+
"connect:channel": Receiver<z.ZodObject<{
|
|
1329
|
+
channel: z.ZodString;
|
|
1330
|
+
token: z.ZodString;
|
|
1331
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1333
|
+
ok: z.ZodBoolean;
|
|
1334
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1335
|
+
account: z.ZodOptional<z.ZodString>;
|
|
1336
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
}, z.core.$strip>>;
|
|
1338
|
+
"connect:status": Receiver<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
1339
|
+
ok: z.ZodBoolean;
|
|
1340
|
+
connections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1341
|
+
channel: z.ZodString;
|
|
1342
|
+
account: z.ZodString;
|
|
1343
|
+
status: z.ZodString;
|
|
1344
|
+
runtime: z.ZodString;
|
|
1345
|
+
connected_at: z.ZodNumber;
|
|
1346
|
+
}, z.core.$strip>>>;
|
|
1347
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1348
|
+
}, z.core.$strip>>;
|
|
1349
|
+
"broadcast:create": Receiver<z.ZodObject<{
|
|
1350
|
+
workspace: z.ZodString;
|
|
1351
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
body_md: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
audience_tag: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
channel: z.ZodOptional<z.ZodEnum<{
|
|
1355
|
+
email: "email";
|
|
1356
|
+
sms: "sms";
|
|
1357
|
+
whatsapp: "whatsapp";
|
|
1358
|
+
}>>;
|
|
1359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1360
|
+
broadcastId: z.ZodString;
|
|
1361
|
+
}, z.core.$strip>>;
|
|
1362
|
+
"broadcast:update": Receiver<z.ZodObject<{
|
|
1363
|
+
workspace: z.ZodString;
|
|
1364
|
+
broadcastId: z.ZodString;
|
|
1365
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
body_md: z.ZodOptional<z.ZodString>;
|
|
1367
|
+
audience_tag: z.ZodOptional<z.ZodString>;
|
|
1368
|
+
scheduled_at: z.ZodOptional<z.ZodNumber>;
|
|
1369
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1370
|
+
ok: z.ZodBoolean;
|
|
1371
|
+
}, z.core.$strip>>;
|
|
1372
|
+
"broadcast:list": Receiver<z.ZodObject<{
|
|
1373
|
+
workspace: z.ZodString;
|
|
1374
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1375
|
+
draft: "draft";
|
|
1376
|
+
scheduled: "scheduled";
|
|
1377
|
+
sending: "sending";
|
|
1378
|
+
sent: "sent";
|
|
1379
|
+
cancelled: "cancelled";
|
|
1380
|
+
}>>;
|
|
1381
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1383
|
+
broadcasts: z.ZodArray<z.ZodObject<{
|
|
1384
|
+
id: z.ZodString;
|
|
1385
|
+
subject: z.ZodString;
|
|
1386
|
+
status: z.ZodString;
|
|
1387
|
+
sent_at: z.ZodNullable<z.ZodNumber>;
|
|
1388
|
+
audience_tag: z.ZodNullable<z.ZodString>;
|
|
1389
|
+
}, z.core.$strip>>;
|
|
1390
|
+
}, z.core.$strip>>;
|
|
1391
|
+
"broadcast:get": Receiver<z.ZodObject<{
|
|
1392
|
+
workspace: z.ZodString;
|
|
1393
|
+
broadcastId: z.ZodString;
|
|
1394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1395
|
+
broadcast: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1396
|
+
}, z.core.$strip>>;
|
|
1397
|
+
"broadcast:test": Receiver<z.ZodObject<{
|
|
1398
|
+
workspace: z.ZodString;
|
|
1399
|
+
broadcastId: z.ZodString;
|
|
1400
|
+
to: z.ZodString;
|
|
1401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1402
|
+
ok: z.ZodBoolean;
|
|
1403
|
+
}, z.core.$strip>>;
|
|
1404
|
+
"broadcast:send": Receiver<z.ZodObject<{
|
|
1405
|
+
workspace: z.ZodString;
|
|
1406
|
+
broadcastId: z.ZodString;
|
|
1407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1408
|
+
enqueued: z.ZodNumber;
|
|
1409
|
+
}, z.core.$strip>>;
|
|
1410
|
+
"broadcast:schedule": Receiver<z.ZodObject<{
|
|
1411
|
+
workspace: z.ZodString;
|
|
1412
|
+
broadcastId: z.ZodString;
|
|
1413
|
+
scheduled_at: z.ZodNumber;
|
|
1414
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1415
|
+
ok: z.ZodBoolean;
|
|
1416
|
+
}, z.core.$strip>>;
|
|
1417
|
+
"broadcast:cancel": Receiver<z.ZodObject<{
|
|
1418
|
+
workspace: z.ZodString;
|
|
1419
|
+
broadcastId: z.ZodString;
|
|
1420
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1421
|
+
ok: z.ZodBoolean;
|
|
1422
|
+
}, z.core.$strip>>;
|
|
1423
|
+
"audience:subscribe": Receiver<z.ZodObject<{
|
|
1424
|
+
workspace: z.ZodString;
|
|
1425
|
+
address: z.ZodString;
|
|
1426
|
+
list: z.ZodOptional<z.ZodString>;
|
|
1427
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1429
|
+
ok: z.ZodBoolean;
|
|
1430
|
+
}, z.core.$strip>>;
|
|
1431
|
+
"audience:unsubscribe": Receiver<z.ZodObject<{
|
|
1432
|
+
workspace: z.ZodString;
|
|
1433
|
+
channel: z.ZodOptional<z.ZodEnum<{
|
|
1434
|
+
email: "email";
|
|
1435
|
+
sms: "sms";
|
|
1436
|
+
whatsapp: "whatsapp";
|
|
1437
|
+
}>>;
|
|
1438
|
+
address: z.ZodString;
|
|
1439
|
+
token: z.ZodString;
|
|
1440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1441
|
+
ok: z.ZodBoolean;
|
|
1442
|
+
}, z.core.$strip>>;
|
|
1443
|
+
"audience:confirm": Receiver<z.ZodObject<{
|
|
1444
|
+
token: z.ZodString;
|
|
1445
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1446
|
+
ok: z.ZodBoolean;
|
|
1447
|
+
}, z.core.$strip>>;
|
|
1448
|
+
"audience:winback": Receiver<z.ZodObject<{
|
|
1449
|
+
days: z.ZodOptional<z.ZodNumber>;
|
|
1450
|
+
campaign: z.ZodOptional<z.ZodString>;
|
|
1451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1452
|
+
ok: z.ZodBoolean;
|
|
1453
|
+
sent: z.ZodNumber;
|
|
1454
|
+
scanned: z.ZodNumber;
|
|
1455
|
+
}, z.core.$strip>>;
|
|
1456
|
+
"message:send": Receiver<z.ZodObject<{
|
|
1457
|
+
workspace: z.ZodString;
|
|
1458
|
+
channel: z.ZodEnum<{
|
|
1459
|
+
email: "email";
|
|
1460
|
+
sms: "sms";
|
|
1461
|
+
whatsapp: "whatsapp";
|
|
1462
|
+
}>;
|
|
1463
|
+
to: z.ZodString;
|
|
1464
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
1465
|
+
body: z.ZodString;
|
|
1466
|
+
campaign: z.ZodOptional<z.ZodString>;
|
|
1467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1468
|
+
ok: z.ZodBoolean;
|
|
1469
|
+
}, z.core.$strip>>;
|
|
718
1470
|
};
|
|
719
1471
|
/** A declared receiver name — `keyof` the catalog. */
|
|
720
1472
|
export type ReceiverName = keyof typeof RECEIVERS;
|
|
@@ -726,7 +1478,7 @@ export type ResOf<R extends ReceiverName> = (typeof RECEIVERS)[R] extends Receiv
|
|
|
726
1478
|
* RECIPES — the four agent journeys as typed, ordered receiver sequences (C6).
|
|
727
1479
|
* Each entry is `readonly ReceiverName[]`, so a typo or a renamed receiver is a
|
|
728
1480
|
* compile error. `meta:catalog?goal=` returns one of these; the MCP server
|
|
729
|
-
* groups its tools by them. See `
|
|
1481
|
+
* groups its tools by them. See `text/agent-first-spec-plan.md`.
|
|
730
1482
|
*/
|
|
731
1483
|
export declare const RECIPES: {
|
|
732
1484
|
/** Onboard: become an actor → mint a key → join a group → declare capability. */
|
|
@@ -737,6 +1489,8 @@ export declare const RECIPES: {
|
|
|
737
1489
|
trade: ("pay:weight" | "market:hire" | "market:list" | "capabilities:publish")[];
|
|
738
1490
|
/** Transact: post a bounty → settle it onchain. */
|
|
739
1491
|
transact: ("pay:weight" | "market:bounty")[];
|
|
1492
|
+
/** SOP: define a workflow → shape it with a diff → run it. */
|
|
1493
|
+
sop: ("workflow:create" | "workflow:apply-diff" | "workflow:run")[];
|
|
740
1494
|
};
|
|
741
1495
|
/** A declared recipe name. */
|
|
742
1496
|
export type RecipeName = keyof typeof RECIPES;
|