@heynixie/contract 0.76.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contract/approval-contract.d.ts +0 -4
- package/dist/contract/build-query-utils.d.ts +527 -116
- package/dist/contract/clip-record-payloads.d.ts +2 -0
- package/dist/contract/clipped-payload-schema.d.ts +11 -0
- package/dist/contract/contract.d.ts +758 -139
- package/dist/contract/definition-notice-schema.d.ts +24 -0
- package/dist/contract/definitions-contract.d.ts +72 -0
- package/dist/contract/forgettable-kinds.d.ts +1 -1
- package/dist/contract/host-contract.d.ts +31 -2
- package/dist/contract/listed-task-schema.d.ts +91 -0
- package/dist/contract/memory-view-contract.d.ts +15 -45
- package/dist/contract/payload-clip-bytes.d.ts +1 -0
- package/dist/contract/read-payload-contract.d.ts +29 -0
- package/dist/contract/sequence-schema.d.ts +2 -0
- package/dist/contract/thread-schema.d.ts +2 -0
- package/dist/contract/tool-call-schema.d.ts +1 -0
- package/dist/contract/view-contract.d.ts +209 -0
- package/dist/contract/worker-view-schema.d.ts +37 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1053 -686
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const definitionNoticeSchema: z.ZodObject<{
|
|
3
|
+
definitionID: z.ZodString;
|
|
4
|
+
name: z.ZodNullable<z.ZodString>;
|
|
5
|
+
operation: z.ZodEnum<{
|
|
6
|
+
add: "add";
|
|
7
|
+
change: "change";
|
|
8
|
+
remove: "remove";
|
|
9
|
+
undo: "undo";
|
|
10
|
+
}>;
|
|
11
|
+
shortID: z.ZodString;
|
|
12
|
+
changeID: z.ZodString;
|
|
13
|
+
hasVersion: z.ZodBoolean;
|
|
14
|
+
rendered: z.ZodNullable<z.ZodString>;
|
|
15
|
+
next: z.ZodNullable<z.ZodString>;
|
|
16
|
+
state: z.ZodEnum<{
|
|
17
|
+
adopted: "adopted";
|
|
18
|
+
in_force: "in_force";
|
|
19
|
+
retired: "retired";
|
|
20
|
+
superseded: "superseded";
|
|
21
|
+
}>;
|
|
22
|
+
isUnreadable: z.ZodBoolean;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type DefinitionNotice = z.output<typeof definitionNoticeSchema>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const definitionsContract: {
|
|
3
|
+
undo: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
+
clientActionID: z.ZodUUID;
|
|
5
|
+
changeID: z.ZodString;
|
|
6
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7
|
+
definitionID: z.ZodString;
|
|
8
|
+
changeID: z.ZodString;
|
|
9
|
+
restored: z.ZodOptional<z.ZodLiteral<"repo">>;
|
|
10
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
11
|
+
UNAUTHORIZED: {
|
|
12
|
+
message: string;
|
|
13
|
+
status: number;
|
|
14
|
+
};
|
|
15
|
+
}>, {
|
|
16
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
17
|
+
message: string;
|
|
18
|
+
status: number;
|
|
19
|
+
};
|
|
20
|
+
}>, {
|
|
21
|
+
NOT_STARTED: {
|
|
22
|
+
message: string;
|
|
23
|
+
status: number;
|
|
24
|
+
};
|
|
25
|
+
NOT_FOUND: {
|
|
26
|
+
message: string;
|
|
27
|
+
status: number;
|
|
28
|
+
};
|
|
29
|
+
REPLACED: {
|
|
30
|
+
message: string;
|
|
31
|
+
status: number;
|
|
32
|
+
data: z.ZodObject<{
|
|
33
|
+
head: z.ZodObject<{
|
|
34
|
+
changeID: z.ZodString;
|
|
35
|
+
shortID: z.ZodString;
|
|
36
|
+
operation: z.ZodEnum<{
|
|
37
|
+
add: "add";
|
|
38
|
+
change: "change";
|
|
39
|
+
remove: "remove";
|
|
40
|
+
undo: "undo";
|
|
41
|
+
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
};
|
|
45
|
+
REPO_MOVED: {
|
|
46
|
+
message: string;
|
|
47
|
+
status: number;
|
|
48
|
+
data: z.ZodObject<{
|
|
49
|
+
seedSequence: z.ZodInt;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
};
|
|
52
|
+
NOT_IN_FORCE: {
|
|
53
|
+
message: string;
|
|
54
|
+
status: number;
|
|
55
|
+
data: z.ZodObject<{
|
|
56
|
+
cause: z.ZodEnum<{
|
|
57
|
+
kept_repo: "kept_repo";
|
|
58
|
+
one_shot_fired: "one_shot_fired";
|
|
59
|
+
one_shot_skipped: "one_shot_skipped";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
};
|
|
63
|
+
ONE_SHOT_OVER_REPO: {
|
|
64
|
+
message: string;
|
|
65
|
+
status: number;
|
|
66
|
+
};
|
|
67
|
+
ONE_SHOT_PAST: {
|
|
68
|
+
message: string;
|
|
69
|
+
status: number;
|
|
70
|
+
};
|
|
71
|
+
}>, Record<never, never>>;
|
|
72
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const forgettableKinds: readonly ['action.outcome', 'action.queued', 'action.reconcile_checked', 'action.retry_scheduled', 'model.compaction_failed', 'model.reply', 'model.session_summarized', 'owner_message', 'passkey.registered', 'policy.action_answered', 'policy.action_proposed', 'policy.contact_marked_known', 'prompts.override_rejected', 'proposals.deferred', 'session.enrolled', 'session.labelled', 'rules.mandate_proposed', 'rules.rule_proposed', 'session_kept', 'skills.write_rejected', 'task.created', 'task.run_ended', 'task.run_report_requested', 'task.step_errored', 'task_message', 'tool_called', 'tool_result'];
|
|
1
|
+
export declare const forgettableKinds: readonly ['action.outcome', 'action.queued', 'action.reconcile_checked', 'action.retry_scheduled', 'model.compaction_failed', 'model.reply', 'model.session_summarized', 'owner_message', 'passkey.registered', 'policy.action_answered', 'policy.action_proposed', 'policy.contact_marked_known', 'prompts.override_rejected', 'proposals.deferred', 'session.enrolled', 'session.labelled', 'rules.mandate_proposed', 'rules.rule_proposed', 'session_kept', 'skills.write_rejected', 'task.created', 'task.run_ended', 'task.run_report_requested', 'task.step_errored', 'task_message', 'tool_called', 'tool_result', 'worker.run_ended', 'worker.turn_ended'];
|
|
@@ -218,6 +218,10 @@ export declare const hostContract: {
|
|
|
218
218
|
message: string;
|
|
219
219
|
status: number;
|
|
220
220
|
};
|
|
221
|
+
DEFINITION_TASK_NEVER_CLOSES: {
|
|
222
|
+
message: string;
|
|
223
|
+
status: number;
|
|
224
|
+
};
|
|
221
225
|
}>, Record<never, never>>;
|
|
222
226
|
interrupt: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
223
227
|
taskID: z.ZodString;
|
|
@@ -360,7 +364,6 @@ export declare const hostContract: {
|
|
|
360
364
|
self: "self";
|
|
361
365
|
shared: "shared";
|
|
362
366
|
}>>;
|
|
363
|
-
isSensitive: z.ZodBoolean;
|
|
364
367
|
kind: z.ZodEnum<{
|
|
365
368
|
fact: "fact";
|
|
366
369
|
self: "self";
|
|
@@ -381,7 +384,6 @@ export declare const hostContract: {
|
|
|
381
384
|
quote_in_quoted_block: "quote_in_quoted_block";
|
|
382
385
|
quote_not_typed: "quote_not_typed";
|
|
383
386
|
self_note: "self_note";
|
|
384
|
-
sensitive: "sensitive";
|
|
385
387
|
subject_change: "subject_change";
|
|
386
388
|
token_missing: "token_missing";
|
|
387
389
|
}>;
|
|
@@ -676,6 +678,8 @@ export declare const hostContract: {
|
|
|
676
678
|
untrusted: "untrusted";
|
|
677
679
|
}>;
|
|
678
680
|
recordedAt: z.ZodDate;
|
|
681
|
+
isRemoved: z.ZodBoolean;
|
|
682
|
+
isBridge: z.ZodBoolean;
|
|
679
683
|
status: z.ZodEnum<{
|
|
680
684
|
readable: "readable";
|
|
681
685
|
shredded: "shredded";
|
|
@@ -1422,6 +1426,31 @@ export declare const hostContract: {
|
|
|
1422
1426
|
}>, Record<never, never>>;
|
|
1423
1427
|
};
|
|
1424
1428
|
};
|
|
1429
|
+
definitions: {
|
|
1430
|
+
resolve: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1431
|
+
definitionID: z.ZodString;
|
|
1432
|
+
keep: z.ZodEnum<{
|
|
1433
|
+
nixie: "nixie";
|
|
1434
|
+
repo: "repo";
|
|
1435
|
+
}>;
|
|
1436
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1437
|
+
definitionID: z.ZodString;
|
|
1438
|
+
changeID: z.ZodString;
|
|
1439
|
+
keep: z.ZodEnum<{
|
|
1440
|
+
nixie: "nixie";
|
|
1441
|
+
repo: "repo";
|
|
1442
|
+
}>;
|
|
1443
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1444
|
+
NOT_FOUND: {
|
|
1445
|
+
message: string;
|
|
1446
|
+
status: number;
|
|
1447
|
+
};
|
|
1448
|
+
DEFINITIONS_NOT_STARTED: {
|
|
1449
|
+
message: string;
|
|
1450
|
+
status: number;
|
|
1451
|
+
};
|
|
1452
|
+
}>, Record<never, never>>;
|
|
1453
|
+
};
|
|
1425
1454
|
actions: {
|
|
1426
1455
|
proposals: {
|
|
1427
1456
|
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const taskStateSchema: z.ZodEnum<{
|
|
3
|
+
closed: "closed";
|
|
4
|
+
done: "done";
|
|
5
|
+
failed: "failed";
|
|
6
|
+
paused: "paused";
|
|
7
|
+
ready: "ready";
|
|
8
|
+
running: "running";
|
|
9
|
+
stopped: "stopped";
|
|
10
|
+
waiting: "waiting";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const listedStateSchema: z.ZodEnum<{
|
|
13
|
+
asleep: "asleep";
|
|
14
|
+
closed: "closed";
|
|
15
|
+
done: "done";
|
|
16
|
+
failed: "failed";
|
|
17
|
+
finished: "finished";
|
|
18
|
+
idle: "idle";
|
|
19
|
+
paused: "paused";
|
|
20
|
+
ready: "ready";
|
|
21
|
+
running: "running";
|
|
22
|
+
stopped: "stopped";
|
|
23
|
+
waiting: "waiting";
|
|
24
|
+
}>;
|
|
25
|
+
export declare const runFireSchema: z.ZodObject<{
|
|
26
|
+
scheduledFor: z.ZodString;
|
|
27
|
+
firedAt: z.ZodString;
|
|
28
|
+
isCatchUp: z.ZodBoolean;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const actionCountSchema: z.ZodInt;
|
|
31
|
+
export declare const listedTaskSchema: z.ZodObject<{
|
|
32
|
+
actions: z.ZodObject<{
|
|
33
|
+
cancelled: z.ZodInt;
|
|
34
|
+
queued: z.ZodInt;
|
|
35
|
+
started: z.ZodInt;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
brief: z.ZodString;
|
|
38
|
+
closedBy: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
disposable: "disposable";
|
|
40
|
+
nixie: "nixie";
|
|
41
|
+
owner: "owner";
|
|
42
|
+
}>>;
|
|
43
|
+
controls: z.ZodArray<z.ZodEnum<{
|
|
44
|
+
close: "close";
|
|
45
|
+
interrupt: "interrupt";
|
|
46
|
+
pause: "pause";
|
|
47
|
+
restart: "restart";
|
|
48
|
+
resume: "resume";
|
|
49
|
+
stop: "stop";
|
|
50
|
+
}>>;
|
|
51
|
+
definitionID: z.ZodOptional<z.ZodString>;
|
|
52
|
+
disposable: z.ZodNullable<z.ZodBoolean>;
|
|
53
|
+
fire: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
54
|
+
scheduledFor: z.ZodString;
|
|
55
|
+
firedAt: z.ZodString;
|
|
56
|
+
isCatchUp: z.ZodBoolean;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
isPauseRequested: z.ZodBoolean;
|
|
59
|
+
isPausedByNixie: z.ZodBoolean;
|
|
60
|
+
isTakingMessages: z.ZodBoolean;
|
|
61
|
+
lastActivityAt: z.ZodDate;
|
|
62
|
+
listedState: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
asleep: "asleep";
|
|
64
|
+
closed: "closed";
|
|
65
|
+
done: "done";
|
|
66
|
+
failed: "failed";
|
|
67
|
+
finished: "finished";
|
|
68
|
+
idle: "idle";
|
|
69
|
+
paused: "paused";
|
|
70
|
+
ready: "ready";
|
|
71
|
+
running: "running";
|
|
72
|
+
stopped: "stopped";
|
|
73
|
+
waiting: "waiting";
|
|
74
|
+
}>>;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
nextRunAt: z.ZodOptional<z.ZodString>;
|
|
77
|
+
runner: z.ZodString;
|
|
78
|
+
state: z.ZodEnum<{
|
|
79
|
+
closed: "closed";
|
|
80
|
+
done: "done";
|
|
81
|
+
failed: "failed";
|
|
82
|
+
paused: "paused";
|
|
83
|
+
ready: "ready";
|
|
84
|
+
running: "running";
|
|
85
|
+
stopped: "stopped";
|
|
86
|
+
waiting: "waiting";
|
|
87
|
+
}>;
|
|
88
|
+
taskID: z.ZodString;
|
|
89
|
+
wakeable: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
waitingOn: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>;
|
|
@@ -22,7 +22,6 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
22
22
|
thread: z.ZodString;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
24
|
isPinned: z.ZodBoolean;
|
|
25
|
-
isSensitive: z.ZodBoolean;
|
|
26
25
|
itemID: z.ZodString;
|
|
27
26
|
kind: z.ZodEnum<{
|
|
28
27
|
fact: "fact";
|
|
@@ -68,7 +67,6 @@ export declare const memoryProposalSchema: z.ZodObject<{
|
|
|
68
67
|
quote_in_quoted_block: "quote_in_quoted_block";
|
|
69
68
|
quote_not_typed: "quote_not_typed";
|
|
70
69
|
self_note: "self_note";
|
|
71
|
-
sensitive: "sensitive";
|
|
72
70
|
subject_change: "subject_change";
|
|
73
71
|
token_missing: "token_missing";
|
|
74
72
|
}>;
|
|
@@ -471,8 +469,8 @@ export declare const memoryViewContract: {
|
|
|
471
469
|
changedAt: z.ZodDate;
|
|
472
470
|
createdAt: z.ZodDate;
|
|
473
471
|
forgottenAt: z.ZodNullable<z.ZodDate>;
|
|
472
|
+
isBridge: z.ZodBoolean;
|
|
474
473
|
isPinned: z.ZodBoolean;
|
|
475
|
-
isSensitive: z.ZodBoolean;
|
|
476
474
|
itemID: z.ZodString;
|
|
477
475
|
kind: z.ZodEnum<{
|
|
478
476
|
fact: "fact";
|
|
@@ -534,8 +532,8 @@ export declare const memoryViewContract: {
|
|
|
534
532
|
changedAt: z.ZodDate;
|
|
535
533
|
createdAt: z.ZodDate;
|
|
536
534
|
forgottenAt: z.ZodNullable<z.ZodDate>;
|
|
535
|
+
isBridge: z.ZodBoolean;
|
|
537
536
|
isPinned: z.ZodBoolean;
|
|
538
|
-
isSensitive: z.ZodBoolean;
|
|
539
537
|
itemID: z.ZodString;
|
|
540
538
|
kind: z.ZodEnum<{
|
|
541
539
|
fact: "fact";
|
|
@@ -597,8 +595,8 @@ export declare const memoryViewContract: {
|
|
|
597
595
|
changedAt: z.ZodDate;
|
|
598
596
|
createdAt: z.ZodDate;
|
|
599
597
|
forgottenAt: z.ZodNullable<z.ZodDate>;
|
|
598
|
+
isBridge: z.ZodBoolean;
|
|
600
599
|
isPinned: z.ZodBoolean;
|
|
601
|
-
isSensitive: z.ZodBoolean;
|
|
602
600
|
itemID: z.ZodString;
|
|
603
601
|
kind: z.ZodEnum<{
|
|
604
602
|
fact: "fact";
|
|
@@ -654,8 +652,8 @@ export declare const memoryViewContract: {
|
|
|
654
652
|
changedAt: z.ZodDate;
|
|
655
653
|
createdAt: z.ZodDate;
|
|
656
654
|
forgottenAt: z.ZodNullable<z.ZodDate>;
|
|
655
|
+
isBridge: z.ZodBoolean;
|
|
657
656
|
isPinned: z.ZodBoolean;
|
|
658
|
-
isSensitive: z.ZodBoolean;
|
|
659
657
|
itemID: z.ZodString;
|
|
660
658
|
kind: z.ZodEnum<{
|
|
661
659
|
fact: "fact";
|
|
@@ -722,6 +720,8 @@ export declare const memoryViewContract: {
|
|
|
722
720
|
sequence: z.ZodInt;
|
|
723
721
|
thread: z.ZodString;
|
|
724
722
|
}, z.core.$strip>>;
|
|
723
|
+
isBridge: z.ZodBoolean;
|
|
724
|
+
isRemoved: z.ZodBoolean;
|
|
725
725
|
origin: z.ZodEnum<{
|
|
726
726
|
conversation: "conversation";
|
|
727
727
|
lapse: "lapse";
|
|
@@ -855,8 +855,8 @@ export declare const memoryViewContract: {
|
|
|
855
855
|
changedAt: z.ZodDate;
|
|
856
856
|
createdAt: z.ZodDate;
|
|
857
857
|
forgottenAt: z.ZodNullable<z.ZodDate>;
|
|
858
|
+
isBridge: z.ZodBoolean;
|
|
858
859
|
isPinned: z.ZodBoolean;
|
|
859
|
-
isSensitive: z.ZodBoolean;
|
|
860
860
|
itemID: z.ZodString;
|
|
861
861
|
kind: z.ZodEnum<{
|
|
862
862
|
fact: "fact";
|
|
@@ -968,6 +968,10 @@ export declare const memoryViewContract: {
|
|
|
968
968
|
message: string;
|
|
969
969
|
status: number;
|
|
970
970
|
};
|
|
971
|
+
VERSION_REMOVED: {
|
|
972
|
+
message: string;
|
|
973
|
+
status: number;
|
|
974
|
+
};
|
|
971
975
|
}>, Record<never, never>>;
|
|
972
976
|
keep: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
973
977
|
clientActionID: z.ZodUUID;
|
|
@@ -1012,8 +1016,8 @@ export declare const memoryViewContract: {
|
|
|
1012
1016
|
changedAt: z.ZodDate;
|
|
1013
1017
|
createdAt: z.ZodDate;
|
|
1014
1018
|
forgottenAt: z.ZodNullable<z.ZodDate>;
|
|
1019
|
+
isBridge: z.ZodBoolean;
|
|
1015
1020
|
isPinned: z.ZodBoolean;
|
|
1016
|
-
isSensitive: z.ZodBoolean;
|
|
1017
1021
|
itemID: z.ZodString;
|
|
1018
1022
|
kind: z.ZodEnum<{
|
|
1019
1023
|
fact: "fact";
|
|
@@ -1080,6 +1084,8 @@ export declare const memoryViewContract: {
|
|
|
1080
1084
|
sequence: z.ZodInt;
|
|
1081
1085
|
thread: z.ZodString;
|
|
1082
1086
|
}, z.core.$strip>>;
|
|
1087
|
+
isBridge: z.ZodBoolean;
|
|
1088
|
+
isRemoved: z.ZodBoolean;
|
|
1083
1089
|
origin: z.ZodEnum<{
|
|
1084
1090
|
conversation: "conversation";
|
|
1085
1091
|
lapse: "lapse";
|
|
@@ -1184,8 +1190,8 @@ export declare const memoryViewContract: {
|
|
|
1184
1190
|
changedAt: z.ZodDate;
|
|
1185
1191
|
createdAt: z.ZodDate;
|
|
1186
1192
|
forgottenAt: z.ZodNullable<z.ZodDate>;
|
|
1193
|
+
isBridge: z.ZodBoolean;
|
|
1187
1194
|
isPinned: z.ZodBoolean;
|
|
1188
|
-
isSensitive: z.ZodBoolean;
|
|
1189
1195
|
itemID: z.ZodString;
|
|
1190
1196
|
kind: z.ZodEnum<{
|
|
1191
1197
|
fact: "fact";
|
|
@@ -1358,40 +1364,4 @@ export declare const memoryViewContract: {
|
|
|
1358
1364
|
status: number;
|
|
1359
1365
|
};
|
|
1360
1366
|
}>, Record<never, never>>;
|
|
1361
|
-
markSensitive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1362
|
-
clientActionID: z.ZodUUID;
|
|
1363
|
-
isSensitive: z.ZodBoolean;
|
|
1364
|
-
itemID: z.ZodString;
|
|
1365
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1366
|
-
isSensitive: z.ZodBoolean;
|
|
1367
|
-
itemID: z.ZodString;
|
|
1368
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1369
|
-
UNAUTHORIZED: {
|
|
1370
|
-
message: string;
|
|
1371
|
-
status: number;
|
|
1372
|
-
};
|
|
1373
|
-
}>, {
|
|
1374
|
-
MEMORY_NOT_STARTED: {
|
|
1375
|
-
message: string;
|
|
1376
|
-
status: number;
|
|
1377
|
-
};
|
|
1378
|
-
}>, {
|
|
1379
|
-
CLIENT_ACTION_ID_REUSED: {
|
|
1380
|
-
message: string;
|
|
1381
|
-
status: number;
|
|
1382
|
-
};
|
|
1383
|
-
}>, {
|
|
1384
|
-
MEMORY_ITEM_NOT_FOUND: {
|
|
1385
|
-
message: string;
|
|
1386
|
-
status: number;
|
|
1387
|
-
};
|
|
1388
|
-
STALE_VERSION: {
|
|
1389
|
-
message: string;
|
|
1390
|
-
status: number;
|
|
1391
|
-
};
|
|
1392
|
-
WRONG_STATE: {
|
|
1393
|
-
message: string;
|
|
1394
|
-
status: number;
|
|
1395
|
-
};
|
|
1396
|
-
}>, Record<never, never>>;
|
|
1397
1367
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const payloadClipBytes = 4096;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const readPayloadContract: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3
|
+
thread: z.ZodString;
|
|
4
|
+
sequence: z.ZodInt;
|
|
5
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
status: z.ZodLiteral<"readable">;
|
|
7
|
+
toolCall: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
worker: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
text: z.ZodOptional<z.ZodString>;
|
|
13
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
status: z.ZodLiteral<"forgotten">;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
status: z.ZodLiteral<"unreadable">;
|
|
19
|
+
}, z.core.$strip>], "status">, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
20
|
+
UNAUTHORIZED: {
|
|
21
|
+
message: string;
|
|
22
|
+
status: number;
|
|
23
|
+
};
|
|
24
|
+
}>, {
|
|
25
|
+
RECORD_NOT_FOUND: {
|
|
26
|
+
readonly message: 'No record on this thread has this sequence';
|
|
27
|
+
readonly status: 404;
|
|
28
|
+
};
|
|
29
|
+
}>, Record<never, never>>;
|
|
@@ -4,5 +4,6 @@ export declare const toolCallSchema: z.ZodObject<{
|
|
|
4
4
|
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5
5
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
outcome: z.ZodOptional<z.ZodString>;
|
|
7
|
+
runID: z.ZodOptional<z.ZodString>;
|
|
7
8
|
tool: z.ZodOptional<z.ZodString>;
|
|
8
9
|
}, z.core.$strip>;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const skipReasonSchema: z.ZodEnum<{
|
|
3
|
+
catch_up_off: "catch_up_off";
|
|
4
|
+
still_running: "still_running";
|
|
5
|
+
task_held: "task_held";
|
|
6
|
+
too_late: "too_late";
|
|
7
|
+
window_closed: "window_closed";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const viewContract: {
|
|
10
|
+
tasks: {
|
|
11
|
+
listEnded: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
12
|
+
limit: z.ZodInt;
|
|
13
|
+
before: z.ZodOptional<z.ZodInt>;
|
|
14
|
+
definitionID: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
17
|
+
actions: z.ZodObject<{
|
|
18
|
+
cancelled: z.ZodInt;
|
|
19
|
+
queued: z.ZodInt;
|
|
20
|
+
started: z.ZodInt;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
brief: z.ZodString;
|
|
23
|
+
closedBy: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
disposable: "disposable";
|
|
25
|
+
nixie: "nixie";
|
|
26
|
+
owner: "owner";
|
|
27
|
+
}>>;
|
|
28
|
+
controls: z.ZodArray<z.ZodEnum<{
|
|
29
|
+
close: "close";
|
|
30
|
+
interrupt: "interrupt";
|
|
31
|
+
pause: "pause";
|
|
32
|
+
restart: "restart";
|
|
33
|
+
resume: "resume";
|
|
34
|
+
stop: "stop";
|
|
35
|
+
}>>;
|
|
36
|
+
definitionID: z.ZodOptional<z.ZodString>;
|
|
37
|
+
disposable: z.ZodNullable<z.ZodBoolean>;
|
|
38
|
+
fire: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39
|
+
scheduledFor: z.ZodString;
|
|
40
|
+
firedAt: z.ZodString;
|
|
41
|
+
isCatchUp: z.ZodBoolean;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
isPauseRequested: z.ZodBoolean;
|
|
44
|
+
isPausedByNixie: z.ZodBoolean;
|
|
45
|
+
isTakingMessages: z.ZodBoolean;
|
|
46
|
+
lastActivityAt: z.ZodDate;
|
|
47
|
+
listedState: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
asleep: "asleep";
|
|
49
|
+
closed: "closed";
|
|
50
|
+
done: "done";
|
|
51
|
+
failed: "failed";
|
|
52
|
+
finished: "finished";
|
|
53
|
+
idle: "idle";
|
|
54
|
+
paused: "paused";
|
|
55
|
+
ready: "ready";
|
|
56
|
+
running: "running";
|
|
57
|
+
stopped: "stopped";
|
|
58
|
+
waiting: "waiting";
|
|
59
|
+
}>>;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
nextRunAt: z.ZodOptional<z.ZodString>;
|
|
62
|
+
runner: z.ZodString;
|
|
63
|
+
state: z.ZodEnum<{
|
|
64
|
+
closed: "closed";
|
|
65
|
+
done: "done";
|
|
66
|
+
failed: "failed";
|
|
67
|
+
paused: "paused";
|
|
68
|
+
ready: "ready";
|
|
69
|
+
running: "running";
|
|
70
|
+
stopped: "stopped";
|
|
71
|
+
waiting: "waiting";
|
|
72
|
+
}>;
|
|
73
|
+
taskID: z.ZodString;
|
|
74
|
+
wakeable: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
waitingOn: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
78
|
+
runID: z.ZodString;
|
|
79
|
+
taskID: z.ZodString;
|
|
80
|
+
definitionID: z.ZodNullable<z.ZodString>;
|
|
81
|
+
startedAt: z.ZodDate;
|
|
82
|
+
endedAt: z.ZodDate;
|
|
83
|
+
sequence: z.ZodInt;
|
|
84
|
+
cause: z.ZodString;
|
|
85
|
+
endedBy: z.ZodString;
|
|
86
|
+
carriesRunID: z.ZodNullable<z.ZodString>;
|
|
87
|
+
reportID: z.ZodString;
|
|
88
|
+
delivery: z.ZodEnum<{
|
|
89
|
+
kept: "kept";
|
|
90
|
+
next_turn: "next_turn";
|
|
91
|
+
wake: "wake";
|
|
92
|
+
}>;
|
|
93
|
+
fire: z.ZodNullable<z.ZodObject<{
|
|
94
|
+
scheduledFor: z.ZodString;
|
|
95
|
+
firedAt: z.ZodString;
|
|
96
|
+
isCatchUp: z.ZodBoolean;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
used: z.ZodObject<{
|
|
99
|
+
turns: z.ZodNumber;
|
|
100
|
+
dollars: z.ZodNumber;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
next: z.ZodNullable<z.ZodInt>;
|
|
104
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
105
|
+
UNAUTHORIZED: {
|
|
106
|
+
message: string;
|
|
107
|
+
status: number;
|
|
108
|
+
};
|
|
109
|
+
}>, Record<never, never>>;
|
|
110
|
+
};
|
|
111
|
+
triggers: {
|
|
112
|
+
report: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
113
|
+
since: z.ZodString;
|
|
114
|
+
definitionID: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
117
|
+
definitionID: z.ZodString;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
kind: z.ZodEnum<{
|
|
120
|
+
late: "late";
|
|
121
|
+
skipped: "skipped";
|
|
122
|
+
}>;
|
|
123
|
+
scheduledFor: z.ZodString;
|
|
124
|
+
firedAt: z.ZodNullable<z.ZodString>;
|
|
125
|
+
lateBySeconds: z.ZodNullable<z.ZodNumber>;
|
|
126
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
127
|
+
catch_up_off: "catch_up_off";
|
|
128
|
+
still_running: "still_running";
|
|
129
|
+
task_held: "task_held";
|
|
130
|
+
too_late: "too_late";
|
|
131
|
+
window_closed: "window_closed";
|
|
132
|
+
}>>;
|
|
133
|
+
sequence: z.ZodInt;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
136
|
+
UNAUTHORIZED: {
|
|
137
|
+
message: string;
|
|
138
|
+
status: number;
|
|
139
|
+
};
|
|
140
|
+
}>, Record<never, never>>;
|
|
141
|
+
};
|
|
142
|
+
definitions: {
|
|
143
|
+
listTasks: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
144
|
+
definitions: z.ZodArray<z.ZodObject<{
|
|
145
|
+
definitionID: z.ZodString;
|
|
146
|
+
name: z.ZodString;
|
|
147
|
+
enabled: z.ZodBoolean;
|
|
148
|
+
target: z.ZodEnum<{
|
|
149
|
+
conversation: "conversation";
|
|
150
|
+
task: "task";
|
|
151
|
+
}>;
|
|
152
|
+
trigger: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
153
|
+
schedule: z.ZodObject<{
|
|
154
|
+
every: z.ZodUnion<readonly [z.ZodEnum<{
|
|
155
|
+
day: "day";
|
|
156
|
+
hour: "hour";
|
|
157
|
+
week: "week";
|
|
158
|
+
}>, z.ZodObject<{
|
|
159
|
+
minutes: z.ZodInt;
|
|
160
|
+
}, z.core.$strict>]>;
|
|
161
|
+
at: z.ZodOptional<z.ZodString>;
|
|
162
|
+
on: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
fri: "fri";
|
|
164
|
+
mon: "mon";
|
|
165
|
+
sat: "sat";
|
|
166
|
+
sun: "sun";
|
|
167
|
+
thu: "thu";
|
|
168
|
+
tue: "tue";
|
|
169
|
+
wed: "wed";
|
|
170
|
+
}>>;
|
|
171
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
from: z.ZodString;
|
|
173
|
+
until: z.ZodString;
|
|
174
|
+
}, z.core.$strict>>;
|
|
175
|
+
idleMinutes: z.ZodOptional<z.ZodInt>;
|
|
176
|
+
zone: z.ZodDefault<z.ZodString>;
|
|
177
|
+
catchUp: z.ZodDefault<z.ZodEnum<{
|
|
178
|
+
once: "once";
|
|
179
|
+
skip: "skip";
|
|
180
|
+
}>>;
|
|
181
|
+
}, z.core.$strict>;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
at: z.ZodISODateTime;
|
|
184
|
+
}, z.core.$strict>]>>;
|
|
185
|
+
rendered: z.ZodNullable<z.ZodString>;
|
|
186
|
+
next: z.ZodNullable<z.ZodString>;
|
|
187
|
+
tools: z.ZodArray<z.ZodString>;
|
|
188
|
+
origin: z.ZodEnum<{
|
|
189
|
+
definitions: "definitions";
|
|
190
|
+
nixie: "nixie";
|
|
191
|
+
}>;
|
|
192
|
+
createdBy: z.ZodObject<{
|
|
193
|
+
sequence: z.ZodInt;
|
|
194
|
+
kind: z.ZodEnum<{
|
|
195
|
+
"definition.changed": "definition.changed";
|
|
196
|
+
definitions_seeded: "definitions_seeded";
|
|
197
|
+
}>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
taskID: z.ZodNullable<z.ZodString>;
|
|
200
|
+
isUnreadable: z.ZodBoolean;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
203
|
+
UNAUTHORIZED: {
|
|
204
|
+
message: string;
|
|
205
|
+
status: number;
|
|
206
|
+
};
|
|
207
|
+
}>, Record<never, never>>;
|
|
208
|
+
};
|
|
209
|
+
};
|