@heynixie/contract 0.75.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 +579 -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 +814 -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/schedule-schema.d.ts +31 -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/trigger-schema.d.ts +36 -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 +10 -0
- package/dist/index.js +1075 -639
- 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>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const scheduleSchema: z.ZodObject<{
|
|
3
|
+
every: z.ZodUnion<readonly [z.ZodEnum<{
|
|
4
|
+
day: "day";
|
|
5
|
+
hour: "hour";
|
|
6
|
+
week: "week";
|
|
7
|
+
}>, z.ZodObject<{
|
|
8
|
+
minutes: z.ZodInt;
|
|
9
|
+
}, z.core.$strict>]>;
|
|
10
|
+
at: z.ZodOptional<z.ZodString>;
|
|
11
|
+
on: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
fri: "fri";
|
|
13
|
+
mon: "mon";
|
|
14
|
+
sat: "sat";
|
|
15
|
+
sun: "sun";
|
|
16
|
+
thu: "thu";
|
|
17
|
+
tue: "tue";
|
|
18
|
+
wed: "wed";
|
|
19
|
+
}>>;
|
|
20
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
from: z.ZodString;
|
|
22
|
+
until: z.ZodString;
|
|
23
|
+
}, z.core.$strict>>;
|
|
24
|
+
idleMinutes: z.ZodOptional<z.ZodInt>;
|
|
25
|
+
zone: z.ZodDefault<z.ZodString>;
|
|
26
|
+
catchUp: z.ZodDefault<z.ZodEnum<{
|
|
27
|
+
once: "once";
|
|
28
|
+
skip: "skip";
|
|
29
|
+
}>>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
export type Schedule = z.output<typeof scheduleSchema>;
|
|
@@ -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,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const triggerAtSchema: z.ZodISODateTime;
|
|
3
|
+
export declare const triggerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
+
schedule: z.ZodObject<{
|
|
5
|
+
every: z.ZodUnion<readonly [z.ZodEnum<{
|
|
6
|
+
day: "day";
|
|
7
|
+
hour: "hour";
|
|
8
|
+
week: "week";
|
|
9
|
+
}>, z.ZodObject<{
|
|
10
|
+
minutes: z.ZodInt;
|
|
11
|
+
}, z.core.$strict>]>;
|
|
12
|
+
at: z.ZodOptional<z.ZodString>;
|
|
13
|
+
on: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
fri: "fri";
|
|
15
|
+
mon: "mon";
|
|
16
|
+
sat: "sat";
|
|
17
|
+
sun: "sun";
|
|
18
|
+
thu: "thu";
|
|
19
|
+
tue: "tue";
|
|
20
|
+
wed: "wed";
|
|
21
|
+
}>>;
|
|
22
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
from: z.ZodString;
|
|
24
|
+
until: z.ZodString;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
idleMinutes: z.ZodOptional<z.ZodInt>;
|
|
27
|
+
zone: z.ZodDefault<z.ZodString>;
|
|
28
|
+
catchUp: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
once: "once";
|
|
30
|
+
skip: "skip";
|
|
31
|
+
}>>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
at: z.ZodISODateTime;
|
|
35
|
+
}, z.core.$strict>]>;
|
|
36
|
+
export type Trigger = z.output<typeof triggerSchema>;
|