@smithers-orchestrator/db 0.24.0 → 0.25.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.
@@ -1,150 +0,0 @@
1
- export type JsonRecord = Record<string, unknown>;
2
- export type OutputKey = Record<string, string | number | boolean | null>;
3
-
4
- export type Run = {
5
- readonly runId: string;
6
- readonly parentRunId?: string | null;
7
- readonly workflowName?: string | null;
8
- readonly workflowPath?: string | null;
9
- readonly workflowHash?: string | null;
10
- readonly status: string;
11
- readonly createdAtMs?: number;
12
- readonly startedAtMs?: number | null;
13
- readonly finishedAtMs?: number | null;
14
- readonly heartbeatAtMs?: number | null;
15
- readonly runtimeOwnerId?: string | null;
16
- readonly cancelRequestedAtMs?: number | null;
17
- readonly hijackRequestedAtMs?: number | null;
18
- readonly hijackTarget?: string | null;
19
- readonly vcsType?: string | null;
20
- readonly vcsRoot?: string | null;
21
- readonly vcsRevision?: string | null;
22
- readonly errorJson?: string | null;
23
- readonly configJson?: string | null;
24
- };
25
-
26
- export type RunPatch = Partial<Omit<Run, "runId">>;
27
-
28
- export type RunAncestryRow = {
29
- readonly runId: string;
30
- readonly parentRunId: string | null;
31
- readonly depth: number;
32
- };
33
-
34
- export type Attempt = {
35
- readonly runId: string;
36
- readonly nodeId: string;
37
- readonly iteration: number;
38
- readonly attempt: number;
39
- readonly state: string;
40
- readonly startedAtMs: number;
41
- readonly finishedAtMs?: number | null;
42
- readonly heartbeatAtMs?: number | null;
43
- readonly heartbeatDataJson?: string | null;
44
- readonly errorJson?: string | null;
45
- readonly jjPointer?: string | null;
46
- readonly responseText?: string | null;
47
- readonly jjCwd?: string | null;
48
- readonly cached?: boolean;
49
- readonly metaJson?: string | null;
50
- };
51
-
52
- export type AttemptPatch = Partial<
53
- Omit<Attempt, "runId" | "nodeId" | "iteration" | "attempt">
54
- >;
55
-
56
- export type FrameRow = {
57
- readonly runId: string;
58
- readonly frameNo: number;
59
- readonly xmlJson?: string | null;
60
- readonly graphJson?: string | null;
61
- readonly xmlHash?: string | null;
62
- readonly xmlEncoding?: string | null;
63
- readonly createdAtMs?: number;
64
- readonly [key: string]: unknown;
65
- };
66
-
67
- export type SignalInsertRow = {
68
- readonly runId: string;
69
- readonly signalName: string;
70
- readonly correlationId: string | null;
71
- readonly payloadJson: string;
72
- readonly receivedAtMs: number;
73
- readonly receivedBy?: string | null;
74
- };
75
-
76
- export type EventRow = {
77
- readonly runId: string;
78
- readonly seq: number;
79
- readonly timestampMs: number;
80
- readonly type: string;
81
- readonly payloadJson: string;
82
- };
83
-
84
- export type EventInsertRow = Omit<EventRow, "seq">;
85
-
86
- export type RalphRow = {
87
- readonly runId: string;
88
- readonly ralphId: string;
89
- readonly iteration: number;
90
- readonly done?: boolean;
91
- readonly stateJson?: string | null;
92
- readonly updatedAtMs?: number;
93
- };
94
-
95
- export type SandboxRow = {
96
- readonly runId: string;
97
- readonly sandboxId: string;
98
- readonly [key: string]: unknown;
99
- };
100
-
101
- export type ToolCallRow = {
102
- readonly runId: string;
103
- readonly nodeId: string;
104
- readonly iteration: number;
105
- readonly [key: string]: unknown;
106
- };
107
-
108
- export type CronRow = {
109
- readonly cronId: string;
110
- readonly pattern?: string;
111
- readonly workflowPath?: string;
112
- readonly enabled?: boolean;
113
- readonly lastRunAtMs?: number | null;
114
- readonly nextRunAtMs?: number | null;
115
- readonly errorJson?: string | null;
116
- readonly [key: string]: unknown;
117
- };
118
-
119
- export type ScorerResultRow = {
120
- readonly runId: string;
121
- readonly nodeId?: string;
122
- readonly scorerId?: string;
123
- readonly scoredAtMs?: number;
124
- readonly [key: string]: unknown;
125
- };
126
-
127
- export type ClaimRunForResumeParams = {
128
- readonly runId: string;
129
- readonly expectedStatus?: string;
130
- readonly expectedRuntimeOwnerId: string | null;
131
- readonly expectedHeartbeatAtMs: number | null;
132
- readonly staleBeforeMs: number;
133
- readonly claimOwnerId: string;
134
- readonly claimHeartbeatAtMs: number;
135
- readonly requireStale?: boolean;
136
- };
137
-
138
- export type ReleaseRunResumeClaimParams = {
139
- readonly runId: string;
140
- readonly claimOwnerId: string;
141
- readonly restoreRuntimeOwnerId: string | null;
142
- readonly restoreHeartbeatAtMs: number | null;
143
- };
144
-
145
- export type UpdateClaimedRunParams = {
146
- readonly runId: string;
147
- readonly expectedRuntimeOwnerId: string;
148
- readonly expectedHeartbeatAtMs: number | null;
149
- readonly patch: RunPatch;
150
- };