@joe-broadhead/messaging 0.8.0 → 0.9.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/CHANGELOG.md +150 -0
- package/dist/bin/messaging-mcp.js +202 -31
- package/dist/bin/messaging-relay.js +291 -43
- package/dist/bin/messaging.js +290 -32
- package/dist/bin/messagingd.js +1158 -138
- package/dist/lib/modules/core/agent/present.js +5 -0
- package/dist/lib/modules/core/agent-tools.js +12 -0
- package/dist/lib/modules/core/consent.js +54 -14
- package/dist/lib/modules/core/contact-card.js +3 -3
- package/dist/lib/modules/core/index.js +1 -1
- package/dist/lib/modules/core/jelly-host.js +3 -0
- package/dist/lib/modules/core/schema/common.js +2 -0
- package/dist/lib/modules/core/schema/consent.js +20 -3
- package/dist/lib/modules/core/schema/conv-frames.js +10 -3
- package/dist/lib/modules/core/schema/directory-frames.js +8 -3
- package/dist/lib/modules/core/schema/errors.js +3 -2
- package/dist/lib/modules/core/schema/ipc/consent.js +85 -10
- package/dist/lib/modules/core/schema/ipc/conversation-views.js +8 -1
- package/dist/lib/modules/core/schema/ipc/conversations.js +5 -1
- package/dist/lib/modules/core/schema/ipc/device.js +7 -0
- package/dist/lib/modules/core/schema/ipc/jelly.js +14 -7
- package/dist/lib/modules/core/schema/ipc/shapes.js +60 -1
- package/dist/lib/modules/core/schema/ipc.js +51 -3
- package/dist/lib/modules/core/version.js +1 -1
- package/dist/spec/messaging-v1.md +321 -49
- package/dist/types/core/agent/present.d.ts +1 -1
- package/dist/types/core/agent-tools.d.ts +32 -0
- package/dist/types/core/consent.d.ts +30 -7
- package/dist/types/core/contact-card.d.ts +3 -3
- package/dist/types/core/conversation-agent-tools.d.ts +21 -0
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/core/schema/common.d.ts +2 -0
- package/dist/types/core/schema/consent.d.ts +23 -2
- package/dist/types/core/schema/conv-frames.d.ts +6 -2
- package/dist/types/core/schema/directory-frames.d.ts +8 -3
- package/dist/types/core/schema/envelope.d.ts +2 -0
- package/dist/types/core/schema/errors.d.ts +2 -0
- package/dist/types/core/schema/ipc/consent.d.ts +377 -15
- package/dist/types/core/schema/ipc/conversation-views.d.ts +176 -0
- package/dist/types/core/schema/ipc/conversations.d.ts +368 -0
- package/dist/types/core/schema/ipc/device.d.ts +6 -0
- package/dist/types/core/schema/ipc/jelly.d.ts +14 -6
- package/dist/types/core/schema/ipc/shapes.d.ts +198 -0
- package/dist/types/core/schema/ipc/surfaces.d.ts +1 -0
- package/dist/types/core/schema/ipc/tasks.d.ts +2 -0
- package/dist/types/core/schema/ipc.d.ts +826 -3
- package/dist/types/core/schema/relay.d.ts +4 -0
- package/dist/types/core/version.d.ts +1 -1
- package/dist/types/ipc/server.d.ts +6 -0
- package/package.json +1 -1
|
@@ -304,6 +304,10 @@ export declare const IPC_METHODS: {
|
|
|
304
304
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
305
305
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
306
306
|
}>;
|
|
307
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
name: z.ZodLiteral<"cancel">;
|
|
309
|
+
token: z.ZodString;
|
|
310
|
+
}, z.core.$strict>>;
|
|
307
311
|
}, z.core.$strip>>;
|
|
308
312
|
notice: z.ZodOptional<z.ZodObject<{
|
|
309
313
|
op: z.ZodEnum<{
|
|
@@ -520,6 +524,10 @@ export declare const IPC_METHODS: {
|
|
|
520
524
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
521
525
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
522
526
|
}>;
|
|
527
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
528
|
+
name: z.ZodLiteral<"cancel">;
|
|
529
|
+
token: z.ZodString;
|
|
530
|
+
}, z.core.$strict>>;
|
|
523
531
|
}, z.core.$strip>>;
|
|
524
532
|
notice: z.ZodOptional<z.ZodObject<{
|
|
525
533
|
op: z.ZodEnum<{
|
|
@@ -719,6 +727,10 @@ export declare const IPC_METHODS: {
|
|
|
719
727
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
720
728
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
721
729
|
}>;
|
|
730
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
731
|
+
name: z.ZodLiteral<"cancel">;
|
|
732
|
+
token: z.ZodString;
|
|
733
|
+
}, z.core.$strict>>;
|
|
722
734
|
}, z.core.$strip>>;
|
|
723
735
|
notice: z.ZodOptional<z.ZodObject<{
|
|
724
736
|
op: z.ZodEnum<{
|
|
@@ -864,6 +876,10 @@ export declare const IPC_METHODS: {
|
|
|
864
876
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
865
877
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
866
878
|
}>;
|
|
879
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
880
|
+
name: z.ZodLiteral<"cancel">;
|
|
881
|
+
token: z.ZodString;
|
|
882
|
+
}, z.core.$strict>>;
|
|
867
883
|
}, z.core.$strip>>;
|
|
868
884
|
notice: z.ZodOptional<z.ZodObject<{
|
|
869
885
|
op: z.ZodEnum<{
|
|
@@ -1297,6 +1313,10 @@ export declare const IPC_METHODS: {
|
|
|
1297
1313
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
1298
1314
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
1299
1315
|
}>;
|
|
1316
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
1317
|
+
name: z.ZodLiteral<"cancel">;
|
|
1318
|
+
token: z.ZodString;
|
|
1319
|
+
}, z.core.$strict>>;
|
|
1300
1320
|
}, z.core.$strip>>;
|
|
1301
1321
|
notice: z.ZodOptional<z.ZodObject<{
|
|
1302
1322
|
op: z.ZodEnum<{
|
|
@@ -1439,6 +1459,10 @@ export declare const IPC_METHODS: {
|
|
|
1439
1459
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
1440
1460
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
1441
1461
|
}>;
|
|
1462
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
1463
|
+
name: z.ZodLiteral<"cancel">;
|
|
1464
|
+
token: z.ZodString;
|
|
1465
|
+
}, z.core.$strict>>;
|
|
1442
1466
|
}, z.core.$strip>>;
|
|
1443
1467
|
notice: z.ZodOptional<z.ZodObject<{
|
|
1444
1468
|
op: z.ZodEnum<{
|
|
@@ -1560,6 +1584,10 @@ export declare const IPC_METHODS: {
|
|
|
1560
1584
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
1561
1585
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
1562
1586
|
}>;
|
|
1587
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
1588
|
+
name: z.ZodLiteral<"cancel">;
|
|
1589
|
+
token: z.ZodString;
|
|
1590
|
+
}, z.core.$strict>>;
|
|
1563
1591
|
}, z.core.$strip>>;
|
|
1564
1592
|
notice: z.ZodOptional<z.ZodObject<{
|
|
1565
1593
|
op: z.ZodEnum<{
|
|
@@ -1773,6 +1801,10 @@ export declare const IPC_METHODS: {
|
|
|
1773
1801
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
1774
1802
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
1775
1803
|
}>;
|
|
1804
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
1805
|
+
name: z.ZodLiteral<"cancel">;
|
|
1806
|
+
token: z.ZodString;
|
|
1807
|
+
}, z.core.$strict>>;
|
|
1776
1808
|
}, z.core.$strip>>;
|
|
1777
1809
|
notice: z.ZodOptional<z.ZodObject<{
|
|
1778
1810
|
op: z.ZodEnum<{
|
|
@@ -1955,6 +1987,10 @@ export declare const IPC_METHODS: {
|
|
|
1955
1987
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
1956
1988
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
1957
1989
|
}>;
|
|
1990
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
1991
|
+
name: z.ZodLiteral<"cancel">;
|
|
1992
|
+
token: z.ZodString;
|
|
1993
|
+
}, z.core.$strict>>;
|
|
1958
1994
|
}, z.core.$strip>>;
|
|
1959
1995
|
notice: z.ZodOptional<z.ZodObject<{
|
|
1960
1996
|
op: z.ZodEnum<{
|
|
@@ -2090,6 +2126,10 @@ export declare const IPC_METHODS: {
|
|
|
2090
2126
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
2091
2127
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
2092
2128
|
}>;
|
|
2129
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
2130
|
+
name: z.ZodLiteral<"cancel">;
|
|
2131
|
+
token: z.ZodString;
|
|
2132
|
+
}, z.core.$strict>>;
|
|
2093
2133
|
}, z.core.$strip>>;
|
|
2094
2134
|
notice: z.ZodOptional<z.ZodObject<{
|
|
2095
2135
|
op: z.ZodEnum<{
|
|
@@ -2287,6 +2327,10 @@ export declare const IPC_METHODS: {
|
|
|
2287
2327
|
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
2288
2328
|
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
2289
2329
|
}>;
|
|
2330
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
2331
|
+
name: z.ZodLiteral<"cancel">;
|
|
2332
|
+
token: z.ZodString;
|
|
2333
|
+
}, z.core.$strict>>;
|
|
2290
2334
|
}, z.core.$strip>>;
|
|
2291
2335
|
notice: z.ZodOptional<z.ZodObject<{
|
|
2292
2336
|
op: z.ZodEnum<{
|
|
@@ -2443,6 +2487,154 @@ export declare const IPC_METHODS: {
|
|
|
2443
2487
|
}, z.core.$strip>, z.ZodObject<{
|
|
2444
2488
|
type: z.ZodLiteral<"gap">;
|
|
2445
2489
|
pos: z.ZodNumber;
|
|
2490
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2491
|
+
type: z.ZodLiteral<"task">;
|
|
2492
|
+
pos: z.ZodNumber;
|
|
2493
|
+
task: z.ZodObject<{
|
|
2494
|
+
person: z.ZodOptional<z.ZodObject<{
|
|
2495
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2496
|
+
name: z.ZodString;
|
|
2497
|
+
}, z.core.$strip>>;
|
|
2498
|
+
role: z.ZodEnum<{
|
|
2499
|
+
requester: "requester";
|
|
2500
|
+
executor: "executor";
|
|
2501
|
+
}>;
|
|
2502
|
+
task: z.ZodObject<{
|
|
2503
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
2504
|
+
status: z.ZodObject<{
|
|
2505
|
+
state: z.ZodEnum<{
|
|
2506
|
+
TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
|
|
2507
|
+
TASK_STATE_WORKING: "TASK_STATE_WORKING";
|
|
2508
|
+
TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
|
|
2509
|
+
TASK_STATE_FAILED: "TASK_STATE_FAILED";
|
|
2510
|
+
TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
|
|
2511
|
+
TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
|
|
2512
|
+
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
2513
|
+
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
2514
|
+
}>;
|
|
2515
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
2516
|
+
messageId: z.ZodString;
|
|
2517
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
2518
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
2519
|
+
role: z.ZodEnum<{
|
|
2520
|
+
ROLE_USER: "ROLE_USER";
|
|
2521
|
+
ROLE_AGENT: "ROLE_AGENT";
|
|
2522
|
+
}>;
|
|
2523
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
2524
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2525
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
2526
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2527
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
2528
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2529
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
2530
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
}, z.core.$strip>>;
|
|
2532
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2533
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2534
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2535
|
+
}, z.core.$strip>>;
|
|
2536
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
}, z.core.$strip>;
|
|
2538
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2539
|
+
artifactId: z.ZodString;
|
|
2540
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2541
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2542
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
2543
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2544
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
2545
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2546
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
2547
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2548
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
2549
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2550
|
+
}, z.core.$strip>>;
|
|
2551
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2552
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2553
|
+
}, z.core.$strip>>>;
|
|
2554
|
+
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2555
|
+
messageId: z.ZodString;
|
|
2556
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
2557
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
2558
|
+
role: z.ZodEnum<{
|
|
2559
|
+
ROLE_USER: "ROLE_USER";
|
|
2560
|
+
ROLE_AGENT: "ROLE_AGENT";
|
|
2561
|
+
}>;
|
|
2562
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
2563
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2564
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
2565
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2566
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
2567
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2568
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
2569
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
2570
|
+
}, z.core.$strip>>;
|
|
2571
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2572
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2573
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2574
|
+
}, z.core.$strip>>>;
|
|
2575
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2576
|
+
id: z.ZodString;
|
|
2577
|
+
}, z.core.$strip>;
|
|
2578
|
+
org: z.ZodOptional<z.ZodEnum<{
|
|
2579
|
+
other: "other";
|
|
2580
|
+
none: "none";
|
|
2581
|
+
same: "same";
|
|
2582
|
+
}>>;
|
|
2583
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
2584
|
+
chain: z.ZodOptional<z.ZodObject<{
|
|
2585
|
+
addresses: z.ZodArray<z.ZodString>;
|
|
2586
|
+
depth: z.ZodNumber;
|
|
2587
|
+
maxDepth: z.ZodNumber;
|
|
2588
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2589
|
+
exp: z.ZodNumber;
|
|
2590
|
+
}, z.core.$strip>>;
|
|
2591
|
+
peer: z.ZodObject<{
|
|
2592
|
+
address: z.ZodString;
|
|
2593
|
+
person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2594
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
2595
|
+
device: z.ZodString;
|
|
2596
|
+
label: z.ZodString;
|
|
2597
|
+
}, z.core.$strip>;
|
|
2598
|
+
createdAt: z.ZodNumber;
|
|
2599
|
+
updatedAt: z.ZodNumber;
|
|
2600
|
+
followUps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2601
|
+
envelopeId: z.ZodString;
|
|
2602
|
+
messageId: z.ZodString;
|
|
2603
|
+
sentAt: z.ZodNumber;
|
|
2604
|
+
stage: z.ZodEnum<{
|
|
2605
|
+
accepted: "accepted";
|
|
2606
|
+
relayed: "relayed";
|
|
2607
|
+
delivered: "delivered";
|
|
2608
|
+
held: "held";
|
|
2609
|
+
handed_to_agent: "handed_to_agent";
|
|
2610
|
+
read: "read";
|
|
2611
|
+
replied: "replied";
|
|
2612
|
+
rejected: "rejected";
|
|
2613
|
+
expired: "expired";
|
|
2614
|
+
}>;
|
|
2615
|
+
at: z.ZodNumber;
|
|
2616
|
+
}, z.core.$strip>>>;
|
|
2617
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
2618
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
2619
|
+
by: z.ZodEnum<{
|
|
2620
|
+
you: "you";
|
|
2621
|
+
them: "them";
|
|
2622
|
+
}>;
|
|
2623
|
+
}, z.core.$strip>>;
|
|
2624
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
2625
|
+
reason: z.ZodString;
|
|
2626
|
+
}, z.core.$strip>>;
|
|
2627
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
2628
|
+
sessionId: z.ZodString;
|
|
2629
|
+
approvalId: z.ZodString;
|
|
2630
|
+
}, z.core.$strict>>;
|
|
2631
|
+
key: z.ZodOptional<z.ZodNever>;
|
|
2632
|
+
session: z.ZodString;
|
|
2633
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
2634
|
+
name: z.ZodLiteral<"cancel">;
|
|
2635
|
+
token: z.ZodString;
|
|
2636
|
+
}, z.core.$strict>>;
|
|
2637
|
+
}, z.core.$strip>;
|
|
2446
2638
|
}, z.core.$strip>], "type">>;
|
|
2447
2639
|
pos: z.ZodNumber;
|
|
2448
2640
|
}, z.core.$strip>;
|
|
@@ -2508,7 +2700,9 @@ export declare const IPC_METHODS: {
|
|
|
2508
2700
|
agent: z.ZodOptional<z.ZodString>;
|
|
2509
2701
|
state: z.ZodEnum<{
|
|
2510
2702
|
held: "held";
|
|
2703
|
+
resend: "resend";
|
|
2511
2704
|
"pending-delivery": "pending-delivery";
|
|
2705
|
+
outdated: "outdated";
|
|
2512
2706
|
}>;
|
|
2513
2707
|
}, z.core.$strip>>;
|
|
2514
2708
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -2712,6 +2906,7 @@ export declare const IPC_METHODS: {
|
|
|
2712
2906
|
jelly_unavailable: "jelly_unavailable";
|
|
2713
2907
|
log_conflict: "log_conflict";
|
|
2714
2908
|
conv_conflict: "conv_conflict";
|
|
2909
|
+
conflict: "conflict";
|
|
2715
2910
|
stale_epoch: "stale_epoch";
|
|
2716
2911
|
device_limit: "device_limit";
|
|
2717
2912
|
admission_required: "admission_required";
|
|
@@ -2855,6 +3050,7 @@ export declare const IPC_METHODS: {
|
|
|
2855
3050
|
team: "team";
|
|
2856
3051
|
}>>;
|
|
2857
3052
|
}, z.core.$strip>>;
|
|
3053
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2858
3054
|
at: z.ZodNumber;
|
|
2859
3055
|
}, z.core.$strip>>;
|
|
2860
3056
|
counts: z.ZodObject<{
|
|
@@ -2896,6 +3092,7 @@ export declare const IPC_METHODS: {
|
|
|
2896
3092
|
armed: "armed";
|
|
2897
3093
|
}>;
|
|
2898
3094
|
awaiting: z.ZodNumber;
|
|
3095
|
+
dms: z.ZodNumber;
|
|
2899
3096
|
}, z.core.$strip>;
|
|
2900
3097
|
};
|
|
2901
3098
|
readonly "wake.disarm": {
|
|
@@ -2953,6 +3150,106 @@ export declare const IPC_METHODS: {
|
|
|
2953
3150
|
since: z.ZodOptional<z.ZodNumber>;
|
|
2954
3151
|
}, z.core.$strip>;
|
|
2955
3152
|
};
|
|
3153
|
+
readonly "reach.get": {
|
|
3154
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3155
|
+
readonly result: z.ZodObject<{
|
|
3156
|
+
revision: z.ZodString;
|
|
3157
|
+
available: z.ZodBoolean;
|
|
3158
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
3159
|
+
id: z.ZodEnum<{
|
|
3160
|
+
message: "message";
|
|
3161
|
+
ask: "ask";
|
|
3162
|
+
}>;
|
|
3163
|
+
label: z.ZodString;
|
|
3164
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3165
|
+
value: z.ZodEnum<{
|
|
3166
|
+
never: "never";
|
|
3167
|
+
ask: "ask";
|
|
3168
|
+
open: "open";
|
|
3169
|
+
}>;
|
|
3170
|
+
label: z.ZodString;
|
|
3171
|
+
description: z.ZodString;
|
|
3172
|
+
}, z.core.$strip>>;
|
|
3173
|
+
value: z.ZodNullable<z.ZodEnum<{
|
|
3174
|
+
never: "never";
|
|
3175
|
+
ask: "ask";
|
|
3176
|
+
open: "open";
|
|
3177
|
+
}>>;
|
|
3178
|
+
lapsed: z.ZodOptional<z.ZodEnum<{
|
|
3179
|
+
never: "never";
|
|
3180
|
+
ask: "ask";
|
|
3181
|
+
open: "open";
|
|
3182
|
+
}>>;
|
|
3183
|
+
}, z.core.$strip>>;
|
|
3184
|
+
}, z.core.$strip>;
|
|
3185
|
+
};
|
|
3186
|
+
readonly "reach.set": {
|
|
3187
|
+
readonly params: z.ZodObject<{
|
|
3188
|
+
revision: z.ZodString;
|
|
3189
|
+
changes: z.ZodObject<{
|
|
3190
|
+
message: z.ZodOptional<z.ZodEnum<{
|
|
3191
|
+
never: "never";
|
|
3192
|
+
ask: "ask";
|
|
3193
|
+
open: "open";
|
|
3194
|
+
}>>;
|
|
3195
|
+
ask: z.ZodOptional<z.ZodEnum<{
|
|
3196
|
+
never: "never";
|
|
3197
|
+
ask: "ask";
|
|
3198
|
+
open: "open";
|
|
3199
|
+
}>>;
|
|
3200
|
+
}, z.core.$strict>;
|
|
3201
|
+
}, z.core.$strict>;
|
|
3202
|
+
readonly result: z.ZodObject<{
|
|
3203
|
+
revision: z.ZodString;
|
|
3204
|
+
available: z.ZodBoolean;
|
|
3205
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
3206
|
+
id: z.ZodEnum<{
|
|
3207
|
+
message: "message";
|
|
3208
|
+
ask: "ask";
|
|
3209
|
+
}>;
|
|
3210
|
+
label: z.ZodString;
|
|
3211
|
+
options: z.ZodArray<z.ZodObject<{
|
|
3212
|
+
value: z.ZodEnum<{
|
|
3213
|
+
never: "never";
|
|
3214
|
+
ask: "ask";
|
|
3215
|
+
open: "open";
|
|
3216
|
+
}>;
|
|
3217
|
+
label: z.ZodString;
|
|
3218
|
+
description: z.ZodString;
|
|
3219
|
+
}, z.core.$strip>>;
|
|
3220
|
+
value: z.ZodNullable<z.ZodEnum<{
|
|
3221
|
+
never: "never";
|
|
3222
|
+
ask: "ask";
|
|
3223
|
+
open: "open";
|
|
3224
|
+
}>>;
|
|
3225
|
+
lapsed: z.ZodOptional<z.ZodEnum<{
|
|
3226
|
+
never: "never";
|
|
3227
|
+
ask: "ask";
|
|
3228
|
+
open: "open";
|
|
3229
|
+
}>>;
|
|
3230
|
+
}, z.core.$strip>>;
|
|
3231
|
+
}, z.core.$strip>;
|
|
3232
|
+
};
|
|
3233
|
+
readonly "reach.set.preview": {
|
|
3234
|
+
readonly params: z.ZodObject<{
|
|
3235
|
+
revision: z.ZodString;
|
|
3236
|
+
changes: z.ZodObject<{
|
|
3237
|
+
message: z.ZodOptional<z.ZodEnum<{
|
|
3238
|
+
never: "never";
|
|
3239
|
+
ask: "ask";
|
|
3240
|
+
open: "open";
|
|
3241
|
+
}>>;
|
|
3242
|
+
ask: z.ZodOptional<z.ZodEnum<{
|
|
3243
|
+
never: "never";
|
|
3244
|
+
ask: "ask";
|
|
3245
|
+
open: "open";
|
|
3246
|
+
}>>;
|
|
3247
|
+
}, z.core.$strict>;
|
|
3248
|
+
}, z.core.$strict>;
|
|
3249
|
+
readonly result: z.ZodObject<{
|
|
3250
|
+
sentence: z.ZodString;
|
|
3251
|
+
}, z.core.$strip>;
|
|
3252
|
+
};
|
|
2956
3253
|
readonly "grant.list": {
|
|
2957
3254
|
readonly params: z.ZodObject<{
|
|
2958
3255
|
subject: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -3095,6 +3392,16 @@ export declare const IPC_METHODS: {
|
|
|
3095
3392
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3096
3393
|
readonly result: z.ZodObject<{
|
|
3097
3394
|
requests: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3395
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3396
|
+
name: z.ZodEnum<{
|
|
3397
|
+
accept: "accept";
|
|
3398
|
+
decline: "decline";
|
|
3399
|
+
once: "once";
|
|
3400
|
+
always: "always";
|
|
3401
|
+
block: "block";
|
|
3402
|
+
}>;
|
|
3403
|
+
token: z.ZodString;
|
|
3404
|
+
}, z.core.$strict>>>;
|
|
3098
3405
|
id: z.ZodString;
|
|
3099
3406
|
kind: z.ZodEnum<{
|
|
3100
3407
|
message: "message";
|
|
@@ -3112,6 +3419,16 @@ export declare const IPC_METHODS: {
|
|
|
3112
3419
|
at: z.ZodNumber;
|
|
3113
3420
|
exp: z.ZodNumber;
|
|
3114
3421
|
}, z.core.$strip>, z.ZodObject<{
|
|
3422
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3423
|
+
name: z.ZodEnum<{
|
|
3424
|
+
accept: "accept";
|
|
3425
|
+
decline: "decline";
|
|
3426
|
+
once: "once";
|
|
3427
|
+
always: "always";
|
|
3428
|
+
block: "block";
|
|
3429
|
+
}>;
|
|
3430
|
+
token: z.ZodString;
|
|
3431
|
+
}, z.core.$strict>>>;
|
|
3115
3432
|
id: z.ZodString;
|
|
3116
3433
|
kind: z.ZodLiteral<"contact">;
|
|
3117
3434
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -3137,12 +3454,32 @@ export declare const IPC_METHODS: {
|
|
|
3137
3454
|
at: z.ZodNumber;
|
|
3138
3455
|
exp: z.ZodNumber;
|
|
3139
3456
|
}, z.core.$strip>, z.ZodObject<{
|
|
3457
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3458
|
+
name: z.ZodEnum<{
|
|
3459
|
+
accept: "accept";
|
|
3460
|
+
decline: "decline";
|
|
3461
|
+
once: "once";
|
|
3462
|
+
always: "always";
|
|
3463
|
+
block: "block";
|
|
3464
|
+
}>;
|
|
3465
|
+
token: z.ZodString;
|
|
3466
|
+
}, z.core.$strict>>>;
|
|
3140
3467
|
id: z.ZodString;
|
|
3141
3468
|
kind: z.ZodLiteral<"suggestion">;
|
|
3142
3469
|
agent: z.ZodString;
|
|
3143
3470
|
email: z.ZodString;
|
|
3144
3471
|
at: z.ZodNumber;
|
|
3145
3472
|
}, z.core.$strip>, z.ZodObject<{
|
|
3473
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3474
|
+
name: z.ZodEnum<{
|
|
3475
|
+
accept: "accept";
|
|
3476
|
+
decline: "decline";
|
|
3477
|
+
once: "once";
|
|
3478
|
+
always: "always";
|
|
3479
|
+
block: "block";
|
|
3480
|
+
}>;
|
|
3481
|
+
token: z.ZodString;
|
|
3482
|
+
}, z.core.$strict>>>;
|
|
3146
3483
|
kind: z.ZodLiteral<"agent-invitation">;
|
|
3147
3484
|
id: z.ZodString;
|
|
3148
3485
|
cid: z.ZodString;
|
|
@@ -3163,6 +3500,7 @@ export declare const IPC_METHODS: {
|
|
|
3163
3500
|
block: "block";
|
|
3164
3501
|
}>;
|
|
3165
3502
|
all: z.ZodOptional<z.ZodBoolean>;
|
|
3503
|
+
token: z.ZodOptional<z.ZodString>;
|
|
3166
3504
|
}, z.core.$strict>;
|
|
3167
3505
|
readonly result: z.ZodObject<{
|
|
3168
3506
|
answered: z.ZodArray<z.ZodString>;
|
|
@@ -3179,6 +3517,7 @@ export declare const IPC_METHODS: {
|
|
|
3179
3517
|
block: "block";
|
|
3180
3518
|
}>;
|
|
3181
3519
|
all: z.ZodOptional<z.ZodBoolean>;
|
|
3520
|
+
token: z.ZodOptional<z.ZodString>;
|
|
3182
3521
|
}, z.core.$strict>;
|
|
3183
3522
|
readonly result: z.ZodObject<{
|
|
3184
3523
|
kind: z.ZodEnum<{
|
|
@@ -3653,6 +3992,30 @@ export declare const IPC_METHODS: {
|
|
|
3653
3992
|
}>;
|
|
3654
3993
|
at: z.ZodNumber;
|
|
3655
3994
|
}, z.core.$strip>>>;
|
|
3995
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
3996
|
+
person: z.ZodOptional<z.ZodObject<{
|
|
3997
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3998
|
+
name: z.ZodString;
|
|
3999
|
+
}, z.core.$strip>>;
|
|
4000
|
+
org: z.ZodOptional<z.ZodEnum<{
|
|
4001
|
+
other: "other";
|
|
4002
|
+
none: "none";
|
|
4003
|
+
same: "same";
|
|
4004
|
+
}>>;
|
|
4005
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
4006
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
4007
|
+
by: z.ZodEnum<{
|
|
4008
|
+
you: "you";
|
|
4009
|
+
them: "them";
|
|
4010
|
+
}>;
|
|
4011
|
+
}, z.core.$strip>>;
|
|
4012
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
4013
|
+
reason: z.ZodString;
|
|
4014
|
+
}, z.core.$strip>>;
|
|
4015
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
4016
|
+
sessionId: z.ZodString;
|
|
4017
|
+
approvalId: z.ZodString;
|
|
4018
|
+
}, z.core.$strict>>;
|
|
3656
4019
|
}, z.core.$strip>>;
|
|
3657
4020
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
3658
4021
|
total: z.ZodNumber;
|
|
@@ -3778,6 +4141,30 @@ export declare const IPC_METHODS: {
|
|
|
3778
4141
|
}>;
|
|
3779
4142
|
at: z.ZodNumber;
|
|
3780
4143
|
}, z.core.$strip>>>;
|
|
4144
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4145
|
+
person: z.ZodOptional<z.ZodObject<{
|
|
4146
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
4147
|
+
name: z.ZodString;
|
|
4148
|
+
}, z.core.$strip>>;
|
|
4149
|
+
org: z.ZodOptional<z.ZodEnum<{
|
|
4150
|
+
other: "other";
|
|
4151
|
+
none: "none";
|
|
4152
|
+
same: "same";
|
|
4153
|
+
}>>;
|
|
4154
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
4155
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
4156
|
+
by: z.ZodEnum<{
|
|
4157
|
+
you: "you";
|
|
4158
|
+
them: "them";
|
|
4159
|
+
}>;
|
|
4160
|
+
}, z.core.$strip>>;
|
|
4161
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
4162
|
+
reason: z.ZodString;
|
|
4163
|
+
}, z.core.$strip>>;
|
|
4164
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
4165
|
+
sessionId: z.ZodString;
|
|
4166
|
+
approvalId: z.ZodString;
|
|
4167
|
+
}, z.core.$strict>>;
|
|
3781
4168
|
}, z.core.$strip>;
|
|
3782
4169
|
};
|
|
3783
4170
|
readonly "task.update": {
|
|
@@ -3823,6 +4210,9 @@ export declare const IPC_METHODS: {
|
|
|
3823
4210
|
}, z.core.$strip>>;
|
|
3824
4211
|
append: z.ZodOptional<z.ZodBoolean>;
|
|
3825
4212
|
lastChunk: z.ZodOptional<z.ZodBoolean>;
|
|
4213
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
4214
|
+
tool: z.ZodString;
|
|
4215
|
+
}, z.core.$strict>>;
|
|
3826
4216
|
}, z.core.$strict>;
|
|
3827
4217
|
readonly result: z.ZodObject<{
|
|
3828
4218
|
task: z.ZodObject<{
|
|
@@ -3939,13 +4329,391 @@ export declare const IPC_METHODS: {
|
|
|
3939
4329
|
}>;
|
|
3940
4330
|
at: z.ZodNumber;
|
|
3941
4331
|
}, z.core.$strip>>>;
|
|
4332
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4333
|
+
person: z.ZodOptional<z.ZodObject<{
|
|
4334
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
4335
|
+
name: z.ZodString;
|
|
4336
|
+
}, z.core.$strip>>;
|
|
4337
|
+
org: z.ZodOptional<z.ZodEnum<{
|
|
4338
|
+
other: "other";
|
|
4339
|
+
none: "none";
|
|
4340
|
+
same: "same";
|
|
4341
|
+
}>>;
|
|
4342
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
4343
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
4344
|
+
by: z.ZodEnum<{
|
|
4345
|
+
you: "you";
|
|
4346
|
+
them: "them";
|
|
4347
|
+
}>;
|
|
4348
|
+
}, z.core.$strip>>;
|
|
4349
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
4350
|
+
reason: z.ZodString;
|
|
4351
|
+
}, z.core.$strip>>;
|
|
4352
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
4353
|
+
sessionId: z.ZodString;
|
|
4354
|
+
approvalId: z.ZodString;
|
|
4355
|
+
}, z.core.$strict>>;
|
|
3942
4356
|
}, z.core.$strip>;
|
|
3943
4357
|
};
|
|
3944
|
-
|
|
4358
|
+
/**
|
|
4359
|
+
* Agent tier, from the executing session's runtime (never a model tool). Ties a task the session `key` runs (its
|
|
4360
|
+
* executor side), in `AUTH_REQUIRED` or `INPUT_REQUIRED`, to the host's own pending approval or question it waits on;
|
|
4361
|
+
* `question: null` unties it. `sessionId` must be the session's own, when its registration named one (`host`).
|
|
4362
|
+
* Held in memory only, shown only to the person's own clients (admin socket, no key), never sent (spec §8.2).
|
|
4363
|
+
*/
|
|
4364
|
+
readonly "task.question": {
|
|
3945
4365
|
readonly params: z.ZodObject<{
|
|
3946
4366
|
key: z.ZodString;
|
|
3947
4367
|
taskId: z.ZodString;
|
|
4368
|
+
question: z.ZodNullable<z.ZodObject<{
|
|
4369
|
+
sessionId: z.ZodString;
|
|
4370
|
+
approvalId: z.ZodString;
|
|
4371
|
+
}, z.core.$strict>>;
|
|
4372
|
+
}, z.core.$strict>;
|
|
4373
|
+
readonly result: z.ZodObject<{
|
|
4374
|
+
ok: z.ZodLiteral<true>;
|
|
4375
|
+
}, z.core.$strip>;
|
|
4376
|
+
};
|
|
4377
|
+
/**
|
|
4378
|
+
* Human tier, admin socket only, no session key. The tasks this person's agents on this device are in, as requester
|
|
4379
|
+
* or executor, across their sessions, most recently updated first: the person's task view (spec §8.2, "The person's
|
|
4380
|
+
* tasks"). Never another person's tasks: this device holds only its own sessions' sides.
|
|
4381
|
+
*/
|
|
4382
|
+
readonly "tasks.list": {
|
|
4383
|
+
readonly params: z.ZodObject<{
|
|
4384
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
4385
|
+
requester: "requester";
|
|
4386
|
+
executor: "executor";
|
|
4387
|
+
}>>;
|
|
4388
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
4389
|
+
TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
|
|
4390
|
+
TASK_STATE_WORKING: "TASK_STATE_WORKING";
|
|
4391
|
+
TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
|
|
4392
|
+
TASK_STATE_FAILED: "TASK_STATE_FAILED";
|
|
4393
|
+
TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
|
|
4394
|
+
TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
|
|
4395
|
+
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
4396
|
+
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
4397
|
+
}>>;
|
|
4398
|
+
session: z.ZodOptional<z.ZodString>;
|
|
4399
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
4400
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4401
|
+
}, z.core.$strict>;
|
|
4402
|
+
readonly result: z.ZodObject<{
|
|
4403
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
4404
|
+
person: z.ZodOptional<z.ZodObject<{
|
|
4405
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
4406
|
+
name: z.ZodString;
|
|
4407
|
+
}, z.core.$strip>>;
|
|
4408
|
+
role: z.ZodEnum<{
|
|
4409
|
+
requester: "requester";
|
|
4410
|
+
executor: "executor";
|
|
4411
|
+
}>;
|
|
4412
|
+
task: z.ZodObject<{
|
|
4413
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
4414
|
+
status: z.ZodObject<{
|
|
4415
|
+
state: z.ZodEnum<{
|
|
4416
|
+
TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
|
|
4417
|
+
TASK_STATE_WORKING: "TASK_STATE_WORKING";
|
|
4418
|
+
TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
|
|
4419
|
+
TASK_STATE_FAILED: "TASK_STATE_FAILED";
|
|
4420
|
+
TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
|
|
4421
|
+
TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
|
|
4422
|
+
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
4423
|
+
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
4424
|
+
}>;
|
|
4425
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
4426
|
+
messageId: z.ZodString;
|
|
4427
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
4428
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
4429
|
+
role: z.ZodEnum<{
|
|
4430
|
+
ROLE_USER: "ROLE_USER";
|
|
4431
|
+
ROLE_AGENT: "ROLE_AGENT";
|
|
4432
|
+
}>;
|
|
4433
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
4434
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4435
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
4436
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4437
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
4438
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4439
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4440
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
4441
|
+
}, z.core.$strip>>;
|
|
4442
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4443
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4444
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4445
|
+
}, z.core.$strip>>;
|
|
4446
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
4447
|
+
}, z.core.$strip>;
|
|
4448
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4449
|
+
artifactId: z.ZodString;
|
|
4450
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4451
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4452
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
4453
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4454
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
4455
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4456
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
4457
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4458
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4459
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
4460
|
+
}, z.core.$strip>>;
|
|
4461
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4462
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4463
|
+
}, z.core.$strip>>>;
|
|
4464
|
+
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4465
|
+
messageId: z.ZodString;
|
|
4466
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
4467
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
4468
|
+
role: z.ZodEnum<{
|
|
4469
|
+
ROLE_USER: "ROLE_USER";
|
|
4470
|
+
ROLE_AGENT: "ROLE_AGENT";
|
|
4471
|
+
}>;
|
|
4472
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
4473
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4474
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
4475
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4476
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
4477
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4478
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4479
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
4480
|
+
}, z.core.$strip>>;
|
|
4481
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4482
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4483
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4484
|
+
}, z.core.$strip>>>;
|
|
4485
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4486
|
+
id: z.ZodString;
|
|
4487
|
+
}, z.core.$strip>;
|
|
4488
|
+
org: z.ZodOptional<z.ZodEnum<{
|
|
4489
|
+
other: "other";
|
|
4490
|
+
none: "none";
|
|
4491
|
+
same: "same";
|
|
4492
|
+
}>>;
|
|
4493
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4494
|
+
chain: z.ZodOptional<z.ZodObject<{
|
|
4495
|
+
addresses: z.ZodArray<z.ZodString>;
|
|
4496
|
+
depth: z.ZodNumber;
|
|
4497
|
+
maxDepth: z.ZodNumber;
|
|
4498
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4499
|
+
exp: z.ZodNumber;
|
|
4500
|
+
}, z.core.$strip>>;
|
|
4501
|
+
peer: z.ZodObject<{
|
|
4502
|
+
address: z.ZodString;
|
|
4503
|
+
person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
4504
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4505
|
+
device: z.ZodString;
|
|
4506
|
+
label: z.ZodString;
|
|
4507
|
+
}, z.core.$strip>;
|
|
4508
|
+
createdAt: z.ZodNumber;
|
|
4509
|
+
updatedAt: z.ZodNumber;
|
|
4510
|
+
followUps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4511
|
+
envelopeId: z.ZodString;
|
|
4512
|
+
messageId: z.ZodString;
|
|
4513
|
+
sentAt: z.ZodNumber;
|
|
4514
|
+
stage: z.ZodEnum<{
|
|
4515
|
+
accepted: "accepted";
|
|
4516
|
+
relayed: "relayed";
|
|
4517
|
+
delivered: "delivered";
|
|
4518
|
+
held: "held";
|
|
4519
|
+
handed_to_agent: "handed_to_agent";
|
|
4520
|
+
read: "read";
|
|
4521
|
+
replied: "replied";
|
|
4522
|
+
rejected: "rejected";
|
|
4523
|
+
expired: "expired";
|
|
4524
|
+
}>;
|
|
4525
|
+
at: z.ZodNumber;
|
|
4526
|
+
}, z.core.$strip>>>;
|
|
4527
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
4528
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
4529
|
+
by: z.ZodEnum<{
|
|
4530
|
+
you: "you";
|
|
4531
|
+
them: "them";
|
|
4532
|
+
}>;
|
|
4533
|
+
}, z.core.$strip>>;
|
|
4534
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
4535
|
+
reason: z.ZodString;
|
|
4536
|
+
}, z.core.$strip>>;
|
|
4537
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
4538
|
+
sessionId: z.ZodString;
|
|
4539
|
+
approvalId: z.ZodString;
|
|
4540
|
+
}, z.core.$strict>>;
|
|
4541
|
+
key: z.ZodOptional<z.ZodNever>;
|
|
4542
|
+
session: z.ZodString;
|
|
4543
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
4544
|
+
name: z.ZodLiteral<"cancel">;
|
|
4545
|
+
token: z.ZodString;
|
|
4546
|
+
}, z.core.$strict>>;
|
|
4547
|
+
}, z.core.$strip>>;
|
|
4548
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4549
|
+
total: z.ZodNumber;
|
|
4550
|
+
}, z.core.$strip>;
|
|
4551
|
+
};
|
|
4552
|
+
/** Human tier. One side of a task of this person's agents; `role` when this device holds both sides. */
|
|
4553
|
+
readonly "tasks.get": {
|
|
4554
|
+
readonly params: z.ZodObject<{
|
|
4555
|
+
taskId: z.ZodString;
|
|
4556
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
4557
|
+
requester: "requester";
|
|
4558
|
+
executor: "executor";
|
|
4559
|
+
}>>;
|
|
4560
|
+
}, z.core.$strict>;
|
|
4561
|
+
readonly result: z.ZodObject<{
|
|
4562
|
+
person: z.ZodOptional<z.ZodObject<{
|
|
4563
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
4564
|
+
name: z.ZodString;
|
|
4565
|
+
}, z.core.$strip>>;
|
|
4566
|
+
role: z.ZodEnum<{
|
|
4567
|
+
requester: "requester";
|
|
4568
|
+
executor: "executor";
|
|
4569
|
+
}>;
|
|
4570
|
+
task: z.ZodObject<{
|
|
4571
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
4572
|
+
status: z.ZodObject<{
|
|
4573
|
+
state: z.ZodEnum<{
|
|
4574
|
+
TASK_STATE_SUBMITTED: "TASK_STATE_SUBMITTED";
|
|
4575
|
+
TASK_STATE_WORKING: "TASK_STATE_WORKING";
|
|
4576
|
+
TASK_STATE_COMPLETED: "TASK_STATE_COMPLETED";
|
|
4577
|
+
TASK_STATE_FAILED: "TASK_STATE_FAILED";
|
|
4578
|
+
TASK_STATE_CANCELED: "TASK_STATE_CANCELED";
|
|
4579
|
+
TASK_STATE_INPUT_REQUIRED: "TASK_STATE_INPUT_REQUIRED";
|
|
4580
|
+
TASK_STATE_REJECTED: "TASK_STATE_REJECTED";
|
|
4581
|
+
TASK_STATE_AUTH_REQUIRED: "TASK_STATE_AUTH_REQUIRED";
|
|
4582
|
+
}>;
|
|
4583
|
+
message: z.ZodOptional<z.ZodObject<{
|
|
4584
|
+
messageId: z.ZodString;
|
|
4585
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
4586
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
4587
|
+
role: z.ZodEnum<{
|
|
4588
|
+
ROLE_USER: "ROLE_USER";
|
|
4589
|
+
ROLE_AGENT: "ROLE_AGENT";
|
|
4590
|
+
}>;
|
|
4591
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
4592
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4593
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
4594
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4595
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
4596
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4597
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4598
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
4599
|
+
}, z.core.$strip>>;
|
|
4600
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4601
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4602
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4603
|
+
}, z.core.$strip>>;
|
|
4604
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
4605
|
+
}, z.core.$strip>;
|
|
4606
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4607
|
+
artifactId: z.ZodString;
|
|
4608
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4609
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4610
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
4611
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4612
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
4613
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4614
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
4615
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4616
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4617
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
4618
|
+
}, z.core.$strip>>;
|
|
4619
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4620
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4621
|
+
}, z.core.$strip>>>;
|
|
4622
|
+
history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4623
|
+
messageId: z.ZodString;
|
|
4624
|
+
contextId: z.ZodOptional<z.ZodString>;
|
|
4625
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
4626
|
+
role: z.ZodEnum<{
|
|
4627
|
+
ROLE_USER: "ROLE_USER";
|
|
4628
|
+
ROLE_AGENT: "ROLE_AGENT";
|
|
4629
|
+
}>;
|
|
4630
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
4631
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4632
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
4633
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4634
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
4635
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4636
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
4637
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
4638
|
+
}, z.core.$strip>>;
|
|
4639
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4640
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4641
|
+
referenceTaskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4642
|
+
}, z.core.$strip>>>;
|
|
4643
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4644
|
+
id: z.ZodString;
|
|
4645
|
+
}, z.core.$strip>;
|
|
4646
|
+
org: z.ZodOptional<z.ZodEnum<{
|
|
4647
|
+
other: "other";
|
|
4648
|
+
none: "none";
|
|
4649
|
+
same: "same";
|
|
4650
|
+
}>>;
|
|
4651
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4652
|
+
chain: z.ZodOptional<z.ZodObject<{
|
|
4653
|
+
addresses: z.ZodArray<z.ZodString>;
|
|
4654
|
+
depth: z.ZodNumber;
|
|
4655
|
+
maxDepth: z.ZodNumber;
|
|
4656
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4657
|
+
exp: z.ZodNumber;
|
|
4658
|
+
}, z.core.$strip>>;
|
|
4659
|
+
peer: z.ZodObject<{
|
|
4660
|
+
address: z.ZodString;
|
|
4661
|
+
person: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
4662
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4663
|
+
device: z.ZodString;
|
|
4664
|
+
label: z.ZodString;
|
|
4665
|
+
}, z.core.$strip>;
|
|
4666
|
+
createdAt: z.ZodNumber;
|
|
4667
|
+
updatedAt: z.ZodNumber;
|
|
4668
|
+
followUps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4669
|
+
envelopeId: z.ZodString;
|
|
4670
|
+
messageId: z.ZodString;
|
|
4671
|
+
sentAt: z.ZodNumber;
|
|
4672
|
+
stage: z.ZodEnum<{
|
|
4673
|
+
accepted: "accepted";
|
|
4674
|
+
relayed: "relayed";
|
|
4675
|
+
delivered: "delivered";
|
|
4676
|
+
held: "held";
|
|
4677
|
+
handed_to_agent: "handed_to_agent";
|
|
4678
|
+
read: "read";
|
|
4679
|
+
replied: "replied";
|
|
4680
|
+
rejected: "rejected";
|
|
4681
|
+
expired: "expired";
|
|
4682
|
+
}>;
|
|
4683
|
+
at: z.ZodNumber;
|
|
4684
|
+
}, z.core.$strip>>>;
|
|
4685
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
4686
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
4687
|
+
by: z.ZodEnum<{
|
|
4688
|
+
you: "you";
|
|
4689
|
+
them: "them";
|
|
4690
|
+
}>;
|
|
4691
|
+
}, z.core.$strip>>;
|
|
4692
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
4693
|
+
reason: z.ZodString;
|
|
4694
|
+
}, z.core.$strip>>;
|
|
4695
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
4696
|
+
sessionId: z.ZodString;
|
|
4697
|
+
approvalId: z.ZodString;
|
|
4698
|
+
}, z.core.$strict>>;
|
|
4699
|
+
key: z.ZodOptional<z.ZodNever>;
|
|
4700
|
+
session: z.ZodString;
|
|
4701
|
+
cancel: z.ZodOptional<z.ZodObject<{
|
|
4702
|
+
name: z.ZodLiteral<"cancel">;
|
|
4703
|
+
token: z.ZodString;
|
|
4704
|
+
}, z.core.$strict>>;
|
|
4705
|
+
}, z.core.$strip>;
|
|
4706
|
+
};
|
|
4707
|
+
/**
|
|
4708
|
+
* As the requester session (`key`), or, on the human tier, as the person with the task's `cancel` action (`token`,
|
|
4709
|
+
* spec §8.2, "Action tokens"): exactly one of the two.
|
|
4710
|
+
*/
|
|
4711
|
+
readonly "task.cancel": {
|
|
4712
|
+
readonly params: z.ZodObject<{
|
|
4713
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4714
|
+
taskId: z.ZodString;
|
|
3948
4715
|
reason: z.ZodOptional<z.ZodString>;
|
|
4716
|
+
token: z.ZodOptional<z.ZodString>;
|
|
3949
4717
|
}, z.core.$strict>;
|
|
3950
4718
|
readonly result: z.ZodObject<{
|
|
3951
4719
|
task: z.ZodObject<{
|
|
@@ -4062,6 +4830,30 @@ export declare const IPC_METHODS: {
|
|
|
4062
4830
|
}>;
|
|
4063
4831
|
at: z.ZodNumber;
|
|
4064
4832
|
}, z.core.$strip>>>;
|
|
4833
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4834
|
+
person: z.ZodOptional<z.ZodObject<{
|
|
4835
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
4836
|
+
name: z.ZodString;
|
|
4837
|
+
}, z.core.$strip>>;
|
|
4838
|
+
org: z.ZodOptional<z.ZodEnum<{
|
|
4839
|
+
other: "other";
|
|
4840
|
+
none: "none";
|
|
4841
|
+
same: "same";
|
|
4842
|
+
}>>;
|
|
4843
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
4844
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
4845
|
+
by: z.ZodEnum<{
|
|
4846
|
+
you: "you";
|
|
4847
|
+
them: "them";
|
|
4848
|
+
}>;
|
|
4849
|
+
}, z.core.$strip>>;
|
|
4850
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
4851
|
+
reason: z.ZodString;
|
|
4852
|
+
}, z.core.$strip>>;
|
|
4853
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
4854
|
+
sessionId: z.ZodString;
|
|
4855
|
+
approvalId: z.ZodString;
|
|
4856
|
+
}, z.core.$strict>>;
|
|
4065
4857
|
}, z.core.$strip>;
|
|
4066
4858
|
};
|
|
4067
4859
|
readonly "events.subscribe": {
|
|
@@ -4327,6 +5119,7 @@ export declare const IPC_METHODS: {
|
|
|
4327
5119
|
jelly_unavailable: "jelly_unavailable";
|
|
4328
5120
|
log_conflict: "log_conflict";
|
|
4329
5121
|
conv_conflict: "conv_conflict";
|
|
5122
|
+
conflict: "conflict";
|
|
4330
5123
|
stale_epoch: "stale_epoch";
|
|
4331
5124
|
device_limit: "device_limit";
|
|
4332
5125
|
admission_required: "admission_required";
|
|
@@ -4427,6 +5220,7 @@ export declare const IPC_METHODS: {
|
|
|
4427
5220
|
jelly_unavailable: "jelly_unavailable";
|
|
4428
5221
|
log_conflict: "log_conflict";
|
|
4429
5222
|
conv_conflict: "conv_conflict";
|
|
5223
|
+
conflict: "conflict";
|
|
4430
5224
|
stale_epoch: "stale_epoch";
|
|
4431
5225
|
device_limit: "device_limit";
|
|
4432
5226
|
admission_required: "admission_required";
|
|
@@ -4541,6 +5335,7 @@ export declare const IPC_METHODS: {
|
|
|
4541
5335
|
}>;
|
|
4542
5336
|
by: z.ZodString;
|
|
4543
5337
|
}, z.core.$strip>>;
|
|
5338
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4544
5339
|
}, z.core.$strip>>;
|
|
4545
5340
|
}, z.core.$strip>;
|
|
4546
5341
|
};
|
|
@@ -4671,6 +5466,7 @@ export declare const IPC_METHODS: {
|
|
|
4671
5466
|
jelly_unavailable: "jelly_unavailable";
|
|
4672
5467
|
log_conflict: "log_conflict";
|
|
4673
5468
|
conv_conflict: "conv_conflict";
|
|
5469
|
+
conflict: "conflict";
|
|
4674
5470
|
stale_epoch: "stale_epoch";
|
|
4675
5471
|
device_limit: "device_limit";
|
|
4676
5472
|
admission_required: "admission_required";
|
|
@@ -4854,14 +5650,14 @@ export type IpcResult<M extends IpcMethod> = z.infer<IpcMethods[M]["result"]>;
|
|
|
4854
5650
|
* daemon serves on `run/agent.sock` (spec §8.2). Anything else is for human clients, on
|
|
4855
5651
|
* `run/admin.sock`: the `messaging` CLI and the `/messaging` TUI.
|
|
4856
5652
|
*/
|
|
4857
|
-
export declare const AGENT_METHODS: readonly ["daemon.status", "daemon.health", "device.status", "device.bind", "session.register", "session.update", "session.unregister", "events.subscribe", "contacts.list", "inbox.list", "inbox.get", "inbox.ack", "item.read", ...ConversationTier<"agent">[], "task.create", "task.continue", "task.list", "task.get", "task.update", "task.cancel"];
|
|
5653
|
+
export declare const AGENT_METHODS: readonly ["daemon.status", "daemon.health", "device.status", "device.bind", "session.register", "session.update", "session.unregister", "events.subscribe", "contacts.list", "inbox.list", "inbox.get", "inbox.ack", "item.read", ...ConversationTier<"agent">[], "task.create", "task.continue", "task.list", "task.get", "task.update", "task.cancel", "task.question"];
|
|
4858
5654
|
export type AgentMethod = (typeof AGENT_METHODS)[number];
|
|
4859
5655
|
/**
|
|
4860
5656
|
* The human tier (design §7.5): methods that act as the person, on `run/admin.sock` only: their
|
|
4861
5657
|
* conversations and own lines, the people of the realm, their grants and held requests (spec §6.9), and channels.
|
|
4862
5658
|
* `conv.read` is in both tiers.
|
|
4863
5659
|
*/
|
|
4864
|
-
export declare const HUMAN_METHODS: readonly [...(ConversationTier<"agent"> | ConversationTier<"human">)[], "people.search", "grant.list", "grant.set", "grant.set.preview", "request.list", "request.answer", "request.answer.preview", "contact.request", "contact.request.preview", "card.get", "notice.subscribe", "notice.list", "notice.ack", "device.approve.preview", "device.remove.preview", "identity.replace.preview", "directory.erase.preview"];
|
|
5660
|
+
export declare const HUMAN_METHODS: readonly [...(ConversationTier<"agent"> | ConversationTier<"human">)[], "people.search", "grant.list", "grant.set", "grant.set.preview", "reach.get", "reach.set", "reach.set.preview", "request.list", "request.answer", "request.answer.preview", "contact.request", "contact.request.preview", "card.get", "notice.subscribe", "notice.list", "notice.ack", "tasks.list", "tasks.get", "device.approve.preview", "device.remove.preview", "identity.replace.preview", "directory.erase.preview"];
|
|
4865
5661
|
export type HumanMethod = (typeof HUMAN_METHODS)[number];
|
|
4866
5662
|
/**
|
|
4867
5663
|
* The admin tier (design §7.5): this device and the daemon, and in a roster realm the team, on
|
|
@@ -4967,6 +5763,7 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4967
5763
|
jelly_unavailable: "jelly_unavailable";
|
|
4968
5764
|
log_conflict: "log_conflict";
|
|
4969
5765
|
conv_conflict: "conv_conflict";
|
|
5766
|
+
conflict: "conflict";
|
|
4970
5767
|
stale_epoch: "stale_epoch";
|
|
4971
5768
|
device_limit: "device_limit";
|
|
4972
5769
|
admission_required: "admission_required";
|
|
@@ -5103,6 +5900,30 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5103
5900
|
}>;
|
|
5104
5901
|
at: z.ZodNumber;
|
|
5105
5902
|
}, z.core.$strip>>>;
|
|
5903
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
5904
|
+
person: z.ZodOptional<z.ZodObject<{
|
|
5905
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
5906
|
+
name: z.ZodString;
|
|
5907
|
+
}, z.core.$strip>>;
|
|
5908
|
+
org: z.ZodOptional<z.ZodEnum<{
|
|
5909
|
+
other: "other";
|
|
5910
|
+
none: "none";
|
|
5911
|
+
same: "same";
|
|
5912
|
+
}>>;
|
|
5913
|
+
signIn: z.ZodOptional<z.ZodObject<{
|
|
5914
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
5915
|
+
by: z.ZodEnum<{
|
|
5916
|
+
you: "you";
|
|
5917
|
+
them: "them";
|
|
5918
|
+
}>;
|
|
5919
|
+
}, z.core.$strip>>;
|
|
5920
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
5921
|
+
reason: z.ZodString;
|
|
5922
|
+
}, z.core.$strip>>;
|
|
5923
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
5924
|
+
sessionId: z.ZodString;
|
|
5925
|
+
approvalId: z.ZodString;
|
|
5926
|
+
}, z.core.$strict>>;
|
|
5106
5927
|
}, z.core.$strip>;
|
|
5107
5928
|
origin: z.ZodEnum<{
|
|
5108
5929
|
peer: "peer";
|
|
@@ -5212,6 +6033,7 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5212
6033
|
jelly_unavailable: "jelly_unavailable";
|
|
5213
6034
|
log_conflict: "log_conflict";
|
|
5214
6035
|
conv_conflict: "conv_conflict";
|
|
6036
|
+
conflict: "conflict";
|
|
5215
6037
|
stale_epoch: "stale_epoch";
|
|
5216
6038
|
device_limit: "device_limit";
|
|
5217
6039
|
admission_required: "admission_required";
|
|
@@ -5286,6 +6108,7 @@ export declare const IpcEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5286
6108
|
team: "team";
|
|
5287
6109
|
}>>;
|
|
5288
6110
|
}, z.core.$strip>>;
|
|
6111
|
+
key: z.ZodOptional<z.ZodString>;
|
|
5289
6112
|
at: z.ZodNumber;
|
|
5290
6113
|
}, z.core.$strip>;
|
|
5291
6114
|
}, z.core.$strip>], "type">;
|