@oneie/sdk 0.9.0 → 0.11.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 (53) hide show
  1. package/README.md +3 -0
  2. package/dist/auth.d.ts +1 -1
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/auth.js +2 -0
  5. package/dist/auth.js.map +1 -1
  6. package/dist/billing.d.ts +49 -0
  7. package/dist/billing.d.ts.map +1 -0
  8. package/dist/billing.js +49 -0
  9. package/dist/billing.js.map +1 -0
  10. package/dist/brain.d.ts +36 -0
  11. package/dist/brain.d.ts.map +1 -0
  12. package/dist/brain.js +99 -0
  13. package/dist/brain.js.map +1 -0
  14. package/dist/broadcast.d.ts +37 -0
  15. package/dist/broadcast.d.ts.map +1 -0
  16. package/dist/broadcast.js +7 -0
  17. package/dist/broadcast.js.map +1 -0
  18. package/dist/client.d.ts +28 -34
  19. package/dist/client.d.ts.map +1 -1
  20. package/dist/client.js +36 -26
  21. package/dist/client.js.map +1 -1
  22. package/dist/index.d.ts +10 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +6 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/market.d.ts +63 -0
  27. package/dist/market.d.ts.map +1 -0
  28. package/dist/market.js +92 -0
  29. package/dist/market.js.map +1 -0
  30. package/dist/meta.d.ts +45 -0
  31. package/dist/meta.d.ts.map +1 -0
  32. package/dist/meta.js +44 -0
  33. package/dist/meta.js.map +1 -0
  34. package/dist/openapi.d.ts +27 -0
  35. package/dist/openapi.d.ts.map +1 -0
  36. package/dist/openapi.js +62 -0
  37. package/dist/openapi.js.map +1 -0
  38. package/dist/receivers.d.ts +1497 -0
  39. package/dist/receivers.d.ts.map +1 -0
  40. package/dist/receivers.js +1441 -0
  41. package/dist/receivers.js.map +1 -0
  42. package/dist/schemas.d.ts +52 -0
  43. package/dist/schemas.d.ts.map +1 -1
  44. package/dist/schemas.js +40 -0
  45. package/dist/schemas.js.map +1 -1
  46. package/dist/soul.d.ts +10 -0
  47. package/dist/soul.d.ts.map +1 -0
  48. package/dist/soul.js +31 -0
  49. package/dist/soul.js.map +1 -0
  50. package/dist/testing/index.js.map +1 -1
  51. package/dist/types.d.ts +18 -7
  52. package/dist/types.d.ts.map +1 -1
  53. package/package.json +26 -1
@@ -0,0 +1,1497 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Receiver registry — one source of truth for capability.
4
+ *
5
+ * The schema is truth for *data*; this registry is truth for *capability*.
6
+ * A receiver declares its contract (request/response zod + agent-ergonomic
7
+ * metadata). Handlers bind in the service that runs them (web `world-receivers.ts`,
8
+ * channels tool modules) — the SDK ships the catalog, the services ship the
9
+ * implementations. Nothing is hand-maintained twice.
10
+ *
11
+ * Consumers: typed `ask<R>`/`signal<R>` (inference, no codegen) · OpenAPI
12
+ * generator · MCP tool descriptions · `meta:catalog` discovery.
13
+ *
14
+ * See `text/agent-first-spec-plan.md`.
15
+ */
16
+ /** Role gate — mirrors the web route's `gateSignalByRole` action. Kept as a loose
17
+ * string so the contract layer carries no web runtime dependency. */
18
+ export type RoleAction = string;
19
+ /** What a call costs, so an agent can budget before acting. */
20
+ export type ReceiverCost = "free" | "variable" | {
21
+ fixed: number;
22
+ };
23
+ /** Whether the call moves real, permanent value. */
24
+ export type Settlement = "none" | "offchain" | "onchain";
25
+ /** Fire-and-forget vs. awaits an outcome. */
26
+ export type ReceiverEffect = "signal" | "ask";
27
+ /**
28
+ * A receiver's declared contract. Every field beyond the core five is
29
+ * agent-ergonomic metadata, read via `meta:catalog` (C5).
30
+ */
31
+ export interface Receiver<Req extends z.ZodTypeAny = z.ZodTypeAny, Res extends z.ZodTypeAny = z.ZodTypeAny> {
32
+ /** Canonical name, e.g. "world:create-actor". */
33
+ receiver: string;
34
+ /** One line — feeds OpenAPI, MCP, and `meta:catalog`. */
35
+ summary: string;
36
+ /** Validated BEFORE dispatch; errors carry the fix (error-as-affordance). */
37
+ request: Req;
38
+ /** The result shape (for `ask`). */
39
+ response: Res;
40
+ /** Fire-and-forget (`signal`) vs. awaits an outcome (`ask`). */
41
+ effect: ReceiverEffect;
42
+ /** Role gate — documents the existing `gateSignalByRole` check. */
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";
48
+ /** What it costs, so an agent budgets before acting. */
49
+ cost?: ReceiverCost;
50
+ /** Default true; false ⇒ should be dry-run first. */
51
+ reversible?: boolean;
52
+ /** Does it move real, permanent value? */
53
+ settles?: Settlement;
54
+ /** Accepts `{ simulate: true }` → projects an outcome, commits nothing. */
55
+ simulatable?: boolean;
56
+ /** Safe to retry as-is; else dedupes on the envelope `idempotencyKey`. */
57
+ idempotent?: boolean;
58
+ /** Capability version — agents pin; additive bumps never break callers. */
59
+ version?: string;
60
+ /** Valid payloads — seed MCP and the error-as-affordance hint. */
61
+ examples?: Array<z.infer<Req>>;
62
+ /** Migration target if retiring — agents read this and move. */
63
+ deprecated?: string;
64
+ /**
65
+ * Bound in the service, not the SDK. Contract-only declarations omit it;
66
+ * `world-receivers.ts` and channels tool modules attach it.
67
+ */
68
+ handler?: (data: z.infer<Req>, env: unknown, ctx: unknown) => Promise<z.infer<Res>>;
69
+ }
70
+ /**
71
+ * Declare a receiver contract. Identity at runtime — its only job is to pin the
72
+ * `Req`/`Res` generics so the catalog infers payload + outcome types.
73
+ */
74
+ export declare function receiver<Req extends z.ZodTypeAny, Res extends z.ZodTypeAny>(r: Receiver<Req, Res>): Receiver<Req, Res>;
75
+ /**
76
+ * The receiver catalog — one source of truth for capability. Object-literal keys
77
+ * are always literal, so `keyof typeof RECEIVERS` yields the declared receiver
78
+ * names and `ask<R>` infers payload + outcome by inference (no codegen).
79
+ *
80
+ * Populated incrementally: C2 = spine + 21 `world:*` + `grant-capability`;
81
+ * C4 = remaining families with metadata; C5 = the `meta:` family.
82
+ */
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>>;
94
+ "auth:agent": Receiver<z.ZodObject<{
95
+ name: z.ZodOptional<z.ZodString>;
96
+ uid: z.ZodOptional<z.ZodString>;
97
+ kind: z.ZodOptional<z.ZodString>;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ uid: z.ZodString;
100
+ name: z.ZodString;
101
+ kind: z.ZodString;
102
+ wallet: z.ZodNullable<z.ZodString>;
103
+ apiKey: z.ZodString;
104
+ keyId: z.ZodString;
105
+ returning: z.ZodBoolean;
106
+ }, z.core.$strip>>;
107
+ "agents:sync": Receiver<z.ZodUnion<readonly [z.ZodObject<{
108
+ markdown: z.ZodString;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ agents: z.ZodArray<z.ZodObject<{
111
+ name: z.ZodOptional<z.ZodString>;
112
+ content: z.ZodString;
113
+ }, z.core.$strip>>;
114
+ world: z.ZodOptional<z.ZodString>;
115
+ description: z.ZodOptional<z.ZodUnknown>;
116
+ }, z.core.$strip>]>, z.ZodObject<{
117
+ ok: z.ZodBoolean;
118
+ agent: z.ZodOptional<z.ZodString>;
119
+ uid: z.ZodOptional<z.ZodString>;
120
+ wallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ suiObjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
+ world: z.ZodOptional<z.ZodString>;
124
+ }, z.core.$loose>>;
125
+ "world:create-workspace": Receiver<z.ZodObject<{
126
+ name: z.ZodString;
127
+ slug: z.ZodString;
128
+ ownerEmail: z.ZodOptional<z.ZodString>;
129
+ parent: z.ZodOptional<z.ZodString>;
130
+ plan: z.ZodOptional<z.ZodEnum<{
131
+ free: "free";
132
+ pro: "pro";
133
+ studio: "studio";
134
+ agency: "agency";
135
+ enterprise: "enterprise";
136
+ }>>;
137
+ credit: z.ZodOptional<z.ZodNumber>;
138
+ markup: z.ZodOptional<z.ZodNumber>;
139
+ cap: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
140
+ brand: z.ZodOptional<z.ZodBoolean>;
141
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ wsid: z.ZodString;
144
+ slug: z.ZodString;
145
+ }, z.core.$strip>>;
146
+ "world:invite-client": Receiver<z.ZodObject<{
147
+ slug: z.ZodString;
148
+ name: z.ZodOptional<z.ZodString>;
149
+ email: z.ZodOptional<z.ZodString>;
150
+ plan: z.ZodOptional<z.ZodEnum<{
151
+ free: "free";
152
+ pro: "pro";
153
+ studio: "studio";
154
+ agency: "agency";
155
+ enterprise: "enterprise";
156
+ }>>;
157
+ credits: z.ZodOptional<z.ZodNumber>;
158
+ markup: z.ZodOptional<z.ZodNumber>;
159
+ cap: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
160
+ brand: z.ZodOptional<z.ZodBoolean>;
161
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ token: z.ZodString;
164
+ id: z.ZodString;
165
+ child: z.ZodString;
166
+ expiresAt: z.ZodNumber;
167
+ }, z.core.$strip>>;
168
+ "world:accept-client-invite": Receiver<z.ZodObject<{
169
+ token: z.ZodString;
170
+ email: z.ZodOptional<z.ZodString>;
171
+ name: z.ZodOptional<z.ZodString>;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ wsid: z.ZodString;
174
+ slug: z.ZodString;
175
+ owner: z.ZodString;
176
+ parent: z.ZodString;
177
+ }, z.core.$strip>>;
178
+ "world:invite-member": Receiver<z.ZodObject<{
179
+ workspace: z.ZodString;
180
+ email: z.ZodString;
181
+ role: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$strip>, z.ZodObject<{
183
+ ok: z.ZodBoolean;
184
+ uid: z.ZodString;
185
+ }, z.core.$strip>>;
186
+ "world:remove-member": Receiver<z.ZodObject<{
187
+ workspace: z.ZodString;
188
+ aid: z.ZodString;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ ok: z.ZodBoolean;
191
+ }, z.core.$strip>>;
192
+ "world:suspend-workspace": Receiver<z.ZodObject<{
193
+ workspace: z.ZodString;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ ok: z.ZodBoolean;
196
+ }, z.core.$strip>>;
197
+ "world:create-group": Receiver<z.ZodObject<{
198
+ name: z.ZodString;
199
+ type: z.ZodString;
200
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
201
+ }, z.core.$strip>, z.ZodObject<{
202
+ gid: z.ZodString;
203
+ }, z.core.$strip>>;
204
+ "world:update-group": Receiver<z.ZodObject<{
205
+ gid: z.ZodString;
206
+ name: z.ZodOptional<z.ZodString>;
207
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ meta: z.ZodOptional<z.ZodUnknown>;
209
+ }, z.core.$strip>, z.ZodObject<{
210
+ ok: z.ZodBoolean;
211
+ }, z.core.$strip>>;
212
+ "world:remove-group": Receiver<z.ZodObject<{
213
+ gid: z.ZodString;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ ok: z.ZodBoolean;
216
+ }, z.core.$strip>>;
217
+ "world:create-actor": Receiver<z.ZodObject<{
218
+ name: z.ZodString;
219
+ type: z.ZodString;
220
+ group: z.ZodOptional<z.ZodString>;
221
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
222
+ model: z.ZodOptional<z.ZodString>;
223
+ prompt: z.ZodOptional<z.ZodString>;
224
+ }, z.core.$strip>, z.ZodObject<{
225
+ aid: z.ZodString;
226
+ }, z.core.$strip>>;
227
+ "world:update-actor": Receiver<z.ZodObject<{
228
+ aid: z.ZodString;
229
+ name: z.ZodOptional<z.ZodString>;
230
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
231
+ prompt: z.ZodOptional<z.ZodString>;
232
+ model: z.ZodOptional<z.ZodString>;
233
+ }, z.core.$strip>, z.ZodObject<{
234
+ ok: z.ZodBoolean;
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>>;
270
+ "world:remove-actor": Receiver<z.ZodObject<{
271
+ aid: z.ZodString;
272
+ }, z.core.$strip>, z.ZodObject<{
273
+ ok: z.ZodBoolean;
274
+ }, z.core.$strip>>;
275
+ "world:create-key": Receiver<z.ZodObject<{
276
+ actor: z.ZodString;
277
+ scope: z.ZodOptional<z.ZodEnum<{
278
+ read: "read";
279
+ write: "write";
280
+ admin: "admin";
281
+ }>>;
282
+ label: z.ZodOptional<z.ZodString>;
283
+ expiresIn: z.ZodOptional<z.ZodNumber>;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ key: z.ZodString;
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>>;
299
+ }, z.core.$strip>>;
300
+ "world:revoke-key": Receiver<z.ZodObject<{
301
+ keyId: z.ZodString;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ ok: z.ZodBoolean;
304
+ }, z.core.$strip>>;
305
+ "world:create-thing": Receiver<z.ZodObject<{
306
+ name: z.ZodString;
307
+ type: z.ZodString;
308
+ group: z.ZodOptional<z.ZodString>;
309
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
+ price: z.ZodOptional<z.ZodNumber>;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ tid: z.ZodString;
313
+ }, z.core.$strip>>;
314
+ "world:update-thing": Receiver<z.ZodObject<{
315
+ tid: z.ZodString;
316
+ name: z.ZodOptional<z.ZodString>;
317
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
318
+ price: z.ZodOptional<z.ZodNumber>;
319
+ meta: z.ZodOptional<z.ZodUnknown>;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ ok: z.ZodBoolean;
322
+ }, z.core.$strip>>;
323
+ "world:remove-thing": Receiver<z.ZodObject<{
324
+ tid: z.ZodString;
325
+ }, z.core.$strip>, z.ZodObject<{
326
+ ok: z.ZodBoolean;
327
+ }, z.core.$strip>>;
328
+ "world:freeze-path": Receiver<z.ZodObject<{
329
+ edge: z.ZodString;
330
+ }, z.core.$strip>, z.ZodObject<{
331
+ ok: z.ZodBoolean;
332
+ }, z.core.$strip>>;
333
+ "world:unfreeze-path": Receiver<z.ZodObject<{
334
+ edge: z.ZodString;
335
+ }, z.core.$strip>, z.ZodObject<{
336
+ ok: z.ZodBoolean;
337
+ }, z.core.$strip>>;
338
+ "world:remove-path": Receiver<z.ZodObject<{
339
+ edge: z.ZodString;
340
+ }, z.core.$strip>, z.ZodObject<{
341
+ ok: z.ZodBoolean;
342
+ }, z.core.$strip>>;
343
+ "world:create-hypothesis": Receiver<z.ZodObject<{
344
+ claim: z.ZodString;
345
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
346
+ confidence: z.ZodOptional<z.ZodNumber>;
347
+ }, z.core.$strip>, z.ZodObject<{
348
+ hid: z.ZodString;
349
+ }, z.core.$strip>>;
350
+ "world:promote-hypothesis": Receiver<z.ZodObject<{
351
+ hid: z.ZodString;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ ok: z.ZodBoolean;
354
+ }, z.core.$strip>>;
355
+ "world:reject-hypothesis": Receiver<z.ZodObject<{
356
+ hid: z.ZodString;
357
+ reason: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strip>, z.ZodObject<{
359
+ ok: z.ZodBoolean;
360
+ }, z.core.$strip>>;
361
+ "grant-capability": Receiver<z.ZodObject<{
362
+ grantee: z.ZodString;
363
+ actions: z.ZodArray<z.ZodString>;
364
+ scope: z.ZodString;
365
+ valid_from: z.ZodNumber;
366
+ valid_to: z.ZodNumber;
367
+ }, z.core.$strip>, z.ZodObject<{
368
+ outcome: z.ZodLiteral<"granted">;
369
+ id: z.ZodString;
370
+ grantee: z.ZodString;
371
+ scope: z.ZodString;
372
+ }, z.core.$strip>>;
373
+ "identity:address": Receiver<z.ZodObject<{
374
+ uid: z.ZodString;
375
+ }, z.core.$strip>, z.ZodObject<{
376
+ uid: z.ZodString;
377
+ address: z.ZodString;
378
+ }, z.core.$strip>>;
379
+ "auth:sign-out": Receiver<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
380
+ ok: z.ZodBoolean;
381
+ }, z.core.$strip>>;
382
+ "groups:join": Receiver<z.ZodObject<{
383
+ gid: z.ZodString;
384
+ }, z.core.$strip>, z.ZodObject<{
385
+ ok: z.ZodBoolean;
386
+ gid: z.ZodString;
387
+ role: z.ZodString;
388
+ }, z.core.$strip>>;
389
+ "groups:leave": Receiver<z.ZodObject<{
390
+ gid: z.ZodString;
391
+ }, z.core.$strip>, z.ZodObject<{
392
+ ok: z.ZodBoolean;
393
+ }, z.core.$strip>>;
394
+ "groups:invite": Receiver<z.ZodObject<{
395
+ gid: z.ZodString;
396
+ uid: z.ZodString;
397
+ role: z.ZodOptional<z.ZodString>;
398
+ }, z.core.$strip>, z.ZodObject<{
399
+ ok: z.ZodBoolean;
400
+ }, z.core.$strip>>;
401
+ "groups:members": Receiver<z.ZodObject<{
402
+ gid: z.ZodString;
403
+ }, z.core.$strip>, z.ZodObject<{
404
+ gid: z.ZodString;
405
+ members: z.ZodArray<z.ZodObject<{
406
+ uid: z.ZodString;
407
+ name: z.ZodOptional<z.ZodString>;
408
+ role: z.ZodString;
409
+ }, z.core.$strip>>;
410
+ }, z.core.$strip>>;
411
+ "billing:clients": Receiver<z.ZodOptional<z.ZodObject<{}, z.core.$strip>>, z.ZodObject<{
412
+ agency: z.ZodNullable<z.ZodObject<{
413
+ slug: z.ZodString;
414
+ name: z.ZodNullable<z.ZodString>;
415
+ markup_pct: z.ZodNumber;
416
+ pool: z.ZodNumber;
417
+ }, z.core.$strip>>;
418
+ clients: z.ZodArray<z.ZodObject<{
419
+ slug: z.ZodString;
420
+ name: z.ZodNullable<z.ZodString>;
421
+ plan: z.ZodString;
422
+ funded: z.ZodNumber;
423
+ burned: z.ZodNumber;
424
+ margin: z.ZodNumber;
425
+ balance: z.ZodNumber;
426
+ cap: z.ZodNullable<z.ZodNumber>;
427
+ }, z.core.$strip>>;
428
+ }, z.core.$strip>>;
429
+ "subscriptions:register": Receiver<z.ZodObject<{
430
+ receiver: z.ZodString;
431
+ tags: z.ZodArray<z.ZodString>;
432
+ scope: z.ZodOptional<z.ZodEnum<{
433
+ public: "public";
434
+ private: "private";
435
+ }>>;
436
+ }, z.core.$strip>, z.ZodObject<{
437
+ ok: z.ZodBoolean;
438
+ }, z.core.$strip>>;
439
+ "agents:register": Receiver<z.ZodObject<{
440
+ uid: z.ZodString;
441
+ kind: z.ZodOptional<z.ZodString>;
442
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ skill: z.ZodString;
444
+ price: z.ZodOptional<z.ZodNumber>;
445
+ }, z.core.$strip>>>;
446
+ wallet: z.ZodOptional<z.ZodString>;
447
+ chain: z.ZodOptional<z.ZodString>;
448
+ }, z.core.$strip>, z.ZodObject<{
449
+ ok: z.ZodBoolean;
450
+ uid: z.ZodString;
451
+ status: z.ZodString;
452
+ kind: z.ZodString;
453
+ wallet: z.ZodNullable<z.ZodString>;
454
+ walletLinked: z.ZodBoolean;
455
+ capabilities: z.ZodNumber;
456
+ }, z.core.$strip>>;
457
+ "agents:commend": Receiver<z.ZodObject<{
458
+ uid: z.ZodString;
459
+ }, z.core.$strip>, z.ZodObject<{
460
+ ok: z.ZodBoolean;
461
+ id: z.ZodString;
462
+ action: z.ZodString;
463
+ }, z.core.$strip>>;
464
+ "agents:flag": Receiver<z.ZodObject<{
465
+ uid: z.ZodString;
466
+ }, z.core.$strip>, z.ZodObject<{
467
+ ok: z.ZodBoolean;
468
+ id: z.ZodString;
469
+ action: z.ZodString;
470
+ }, z.core.$strip>>;
471
+ "agents:status": Receiver<z.ZodObject<{
472
+ uid: z.ZodString;
473
+ status: z.ZodString;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ ok: z.ZodBoolean;
476
+ id: z.ZodString;
477
+ status: z.ZodString;
478
+ }, z.core.$strip>>;
479
+ "agents:capabilities": Receiver<z.ZodObject<{
480
+ uid: z.ZodString;
481
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
482
+ skillId: z.ZodString;
483
+ skillName: z.ZodString;
484
+ price: z.ZodNumber;
485
+ currency: z.ZodString;
486
+ }, z.core.$strip>>>;
487
+ "pay:weight": Receiver<z.ZodObject<{
488
+ from: z.ZodString;
489
+ to: z.ZodString;
490
+ task: z.ZodString;
491
+ amount: z.ZodNumber;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ ok: z.ZodBoolean;
494
+ from: z.ZodString;
495
+ to: z.ZodString;
496
+ task: z.ZodString;
497
+ amount: z.ZodNumber;
498
+ sui: z.ZodNullable<z.ZodString>;
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>]>>;
641
+ "market:hire": Receiver<z.ZodObject<{
642
+ providerUid: z.ZodString;
643
+ skillId: z.ZodString;
644
+ initialMessage: z.ZodOptional<z.ZodString>;
645
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
646
+ ok: z.ZodLiteral<true>;
647
+ groupId: z.ZodString;
648
+ chatUrl: z.ZodString;
649
+ }, z.core.$strip>, z.ZodObject<{
650
+ status: z.ZodLiteral<402>;
651
+ code: z.ZodString;
652
+ escrow_template: z.ZodRecord<z.ZodString, z.ZodUnknown>;
653
+ expires_at: z.ZodString;
654
+ }, z.core.$strip>]>>;
655
+ "market:bounty": Receiver<z.ZodObject<{
656
+ skillId: z.ZodString;
657
+ sellerUid: z.ZodString;
658
+ posterUid: z.ZodString;
659
+ price: z.ZodNumber;
660
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
661
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
662
+ rubric: z.ZodOptional<z.ZodObject<{
663
+ fit: z.ZodOptional<z.ZodNumber>;
664
+ form: z.ZodOptional<z.ZodNumber>;
665
+ truth: z.ZodOptional<z.ZodNumber>;
666
+ taste: z.ZodOptional<z.ZodNumber>;
667
+ }, z.core.$strip>>;
668
+ deadline: z.ZodOptional<z.ZodString>;
669
+ posterUnitObjectId: z.ZodOptional<z.ZodString>;
670
+ workerUnitObjectId: z.ZodOptional<z.ZodString>;
671
+ pathObjectId: z.ZodOptional<z.ZodString>;
672
+ }, z.core.$strip>, z.ZodObject<{
673
+ id: z.ZodString;
674
+ escrowId: z.ZodOptional<z.ZodString>;
675
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
676
+ }, z.core.$strip>>;
677
+ "market:bounties": Receiver<z.ZodObject<{
678
+ seller: z.ZodOptional<z.ZodString>;
679
+ poster: z.ZodOptional<z.ZodString>;
680
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
681
+ id: z.ZodString;
682
+ skillId: z.ZodString;
683
+ sellerUid: z.ZodString;
684
+ posterUid: z.ZodString;
685
+ price: z.ZodNumber;
686
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
687
+ deadline: z.ZodOptional<z.ZodString>;
688
+ status: z.ZodString;
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>]>>;
700
+ "market:list": Receiver<z.ZodObject<{
701
+ tag: z.ZodOptional<z.ZodString>;
702
+ maxPrice: z.ZodOptional<z.ZodNumber>;
703
+ }, z.core.$strip>, z.ZodObject<{
704
+ capabilities: z.ZodArray<z.ZodUnknown>;
705
+ }, z.core.$strip>>;
706
+ "capabilities:publish": Receiver<z.ZodObject<{
707
+ skillId: z.ZodString;
708
+ name: z.ZodString;
709
+ price: z.ZodNumber;
710
+ mode: z.ZodOptional<z.ZodString>;
711
+ visibility: z.ZodOptional<z.ZodString>;
712
+ scope: z.ZodOptional<z.ZodString>;
713
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
714
+ rubricThresholds: z.ZodOptional<z.ZodObject<{
715
+ fit: z.ZodOptional<z.ZodNumber>;
716
+ form: z.ZodOptional<z.ZodNumber>;
717
+ truth: z.ZodOptional<z.ZodNumber>;
718
+ taste: z.ZodOptional<z.ZodNumber>;
719
+ }, z.core.$strip>>;
720
+ }, z.core.$strip>, z.ZodObject<{
721
+ ok: z.ZodLiteral<true>;
722
+ sid: z.ZodString;
723
+ scope: z.ZodString;
724
+ }, z.core.$strip>>;
725
+ "signals:list": Receiver<z.ZodObject<{
726
+ limit: z.ZodOptional<z.ZodNumber>;
727
+ since: z.ZodOptional<z.ZodNumber>;
728
+ from: z.ZodOptional<z.ZodNumber>;
729
+ to: z.ZodOptional<z.ZodNumber>;
730
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
731
+ id: z.ZodString;
732
+ from: z.ZodString;
733
+ to: z.ZodString;
734
+ skill: z.ZodOptional<z.ZodString>;
735
+ outcome: z.ZodEnum<{
736
+ success: "success";
737
+ timeout: "timeout";
738
+ failure: "failure";
739
+ }>;
740
+ revenue: z.ZodNumber;
741
+ ts: z.ZodNumber;
742
+ }, z.core.$strip>>>;
743
+ "stats:current": Receiver<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
744
+ units: z.ZodObject<{
745
+ total: z.ZodNumber;
746
+ proven: z.ZodNumber;
747
+ atRisk: z.ZodNumber;
748
+ }, z.core.$strip>;
749
+ skills: z.ZodObject<{
750
+ total: z.ZodNumber;
751
+ }, z.core.$strip>;
752
+ highways: z.ZodObject<{
753
+ count: z.ZodNumber;
754
+ totalEdges: z.ZodNumber;
755
+ }, z.core.$strip>;
756
+ revenue: z.ZodObject<{
757
+ total: z.ZodNumber;
758
+ gdp: z.ZodNumber;
759
+ }, z.core.$strip>;
760
+ signals: z.ZodObject<{
761
+ total: z.ZodNumber;
762
+ recent: z.ZodNumber;
763
+ }, z.core.$strip>;
764
+ timestamp: z.ZodString;
765
+ }, z.core.$strip>>;
766
+ "dashboard:usage": Receiver<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
767
+ tier: z.ZodString;
768
+ calls_this_month: z.ZodNumber;
769
+ agents_count: z.ZodNumber;
770
+ api_limit: z.ZodNumber;
771
+ agent_limit: z.ZodNumber;
772
+ loops: z.ZodArray<z.ZodString>;
773
+ highways_count: z.ZodNumber;
774
+ upgrade_url: z.ZodString;
775
+ }, z.core.$strip>>;
776
+ "world:state": Receiver<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$loose>>;
777
+ "meta:catalog": Receiver<z.ZodObject<{
778
+ goal: z.ZodOptional<z.ZodEnum<{
779
+ spine: "spine";
780
+ build: "build";
781
+ trade: "trade";
782
+ transact: "transact";
783
+ }>>;
784
+ }, z.core.$strip>, z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
785
+ receiver: z.ZodString;
786
+ summary: z.ZodString;
787
+ effect: z.ZodEnum<{
788
+ signal: "signal";
789
+ ask: "ask";
790
+ }>;
791
+ auth: z.ZodOptional<z.ZodString>;
792
+ reversible: z.ZodOptional<z.ZodBoolean>;
793
+ settles: z.ZodOptional<z.ZodEnum<{
794
+ none: "none";
795
+ offchain: "offchain";
796
+ onchain: "onchain";
797
+ }>>;
798
+ }, z.core.$loose>>, z.ZodObject<{
799
+ goal: z.ZodString;
800
+ recipe: z.ZodArray<z.ZodString>;
801
+ }, z.core.$strip>]>>;
802
+ "meta:schema": Receiver<z.ZodObject<{
803
+ receiver: z.ZodString;
804
+ }, z.core.$strip>, z.ZodObject<{
805
+ receiver: z.ZodString;
806
+ summary: z.ZodString;
807
+ request: z.ZodUnknown;
808
+ response: z.ZodUnknown;
809
+ }, z.core.$strip>>;
810
+ "meta:recall": Receiver<z.ZodObject<{
811
+ match: z.ZodOptional<z.ZodString>;
812
+ limit: z.ZodOptional<z.ZodNumber>;
813
+ }, z.core.$strip>, z.ZodObject<{
814
+ hypotheses: z.ZodArray<z.ZodObject<{
815
+ hid: z.ZodString;
816
+ claim: z.ZodString;
817
+ status: z.ZodString;
818
+ confidence: z.ZodNullable<z.ZodNumber>;
819
+ }, z.core.$strip>>;
820
+ }, z.core.$strip>>;
821
+ "actors:find": Receiver<z.ZodObject<{
822
+ type: z.ZodOptional<z.ZodEnum<{
823
+ agent: "agent";
824
+ world: "world";
825
+ }>>;
826
+ search: z.ZodOptional<z.ZodString>;
827
+ skill: z.ZodOptional<z.ZodString>;
828
+ limit: z.ZodOptional<z.ZodNumber>;
829
+ }, z.core.$strip>, z.ZodObject<{
830
+ actors: z.ZodArray<z.ZodObject<{
831
+ uid: z.ZodString;
832
+ name: z.ZodString;
833
+ type: z.ZodString;
834
+ }, z.core.$strip>>;
835
+ total: z.ZodNumber;
836
+ }, z.core.$strip>>;
837
+ "peer:message": Receiver<z.ZodObject<{
838
+ to: z.ZodString;
839
+ content: z.ZodString;
840
+ from: z.ZodOptional<z.ZodString>;
841
+ }, z.core.$strip>, z.ZodObject<{
842
+ ok: z.ZodBoolean;
843
+ id: z.ZodOptional<z.ZodString>;
844
+ ts: z.ZodOptional<z.ZodNumber>;
845
+ to: z.ZodOptional<z.ZodString>;
846
+ from: z.ZodOptional<z.ZodString>;
847
+ error: z.ZodOptional<z.ZodString>;
848
+ }, z.core.$strip>>;
849
+ "chat:send": Receiver<z.ZodObject<{
850
+ group: z.ZodString;
851
+ text: z.ZodString;
852
+ slug: z.ZodOptional<z.ZodString>;
853
+ }, z.core.$strip>, z.ZodObject<{
854
+ ok: z.ZodBoolean;
855
+ reply: z.ZodOptional<z.ZodString>;
856
+ error: z.ZodOptional<z.ZodString>;
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>>;
1470
+ };
1471
+ /** A declared receiver name — `keyof` the catalog. */
1472
+ export type ReceiverName = keyof typeof RECEIVERS;
1473
+ /** The request (input) type for a receiver. */
1474
+ export type ReqOf<R extends ReceiverName> = (typeof RECEIVERS)[R] extends Receiver<infer Req, z.ZodTypeAny> ? z.input<Req> : never;
1475
+ /** The response (output) type for a receiver. */
1476
+ export type ResOf<R extends ReceiverName> = (typeof RECEIVERS)[R] extends Receiver<z.ZodTypeAny, infer Res> ? z.output<Res> : never;
1477
+ /**
1478
+ * RECIPES — the four agent journeys as typed, ordered receiver sequences (C6).
1479
+ * Each entry is `readonly ReceiverName[]`, so a typo or a renamed receiver is a
1480
+ * compile error. `meta:catalog?goal=` returns one of these; the MCP server
1481
+ * groups its tools by them. See `text/agent-first-spec-plan.md`.
1482
+ */
1483
+ export declare const RECIPES: {
1484
+ /** Onboard: become an actor → mint a key → join a group → declare capability. */
1485
+ spine: ("auth:agent" | "agents:sync" | "world:create-key" | "groups:join")[];
1486
+ /** Build a world: workspace → group → actor → thing. */
1487
+ build: ("world:create-workspace" | "world:create-group" | "world:create-actor" | "world:create-thing")[];
1488
+ /** Trade: list a capability → browse the market → hire → pay. */
1489
+ trade: ("pay:weight" | "market:hire" | "market:list" | "capabilities:publish")[];
1490
+ /** Transact: post a bounty → settle it onchain. */
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")[];
1494
+ };
1495
+ /** A declared recipe name. */
1496
+ export type RecipeName = keyof typeof RECIPES;
1497
+ //# sourceMappingURL=receivers.d.ts.map