@treeseed/sdk 0.13.0-rc.37 → 0.13.0-rc.39
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/agent-capacity/validation/agent-definition-schema.d.ts +36 -36
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +8 -8
- package/dist/capacity-provider/client.d.ts +1 -1
- package/dist/content/validation/agent-operational-content-schemas.d.ts +8 -8
- package/dist/content/validation/auxiliary-content-schemas.d.ts +36 -36
- package/dist/content/validation/content-model-schemas.d.ts +128 -128
- package/dist/content/validation/portable-content-data.d.ts +15 -15
- package/dist/entrypoints/clients/control-plane-client.d.ts +5 -0
- package/dist/guarantees/index.d.ts +96 -0
- package/dist/guarantees/index.js +41 -0
- package/dist/operator-contracts/canonical-command-tree.js +6 -2
- package/dist/operator-contracts/catalog/communication-operations.d.ts +95 -15
- package/dist/operator-contracts/catalog/communication-operations.js +1 -1
- package/dist/operator-contracts/communication/addressing.d.ts +8 -0
- package/dist/operator-contracts/communication/addressing.js +57 -0
- package/dist/operator-contracts/communication/contracts.d.ts +418 -40
- package/dist/operator-contracts/communication/contracts.js +43 -11
- package/dist/operator-contracts/control-plane-operations.d.ts +95 -15
- package/dist/operator-contracts/index.d.ts +1 -0
- package/dist/operator-contracts/index.js +1 -0
- package/dist/operator-contracts/oauth.d.ts +35 -0
- package/dist/operator-contracts/oauth.js +7 -0
- package/dist/site-contracts/catalog.d.ts +16 -0
- package/dist/site-contracts/catalog.js +19 -0
- package/dist/site-contracts/cloudflare.d.ts +48 -0
- package/dist/site-contracts/cloudflare.js +0 -0
- package/dist/site-contracts/platform.d.ts +94 -0
- package/dist/site-contracts/platform.js +0 -0
- package/dist/site-contracts/plugin.d.ts +63 -0
- package/dist/site-contracts/plugin.js +26 -0
- package/package.json +25 -1
|
@@ -11,22 +11,19 @@ export declare const communicationRecipientSchema: z.ZodObject<{
|
|
|
11
11
|
}>;
|
|
12
12
|
export declare const communicationSendRequestSchema: z.ZodObject<{
|
|
13
13
|
message: z.ZodString;
|
|
14
|
-
|
|
15
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
projectId: z.ZodString;
|
|
16
15
|
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
-
|
|
16
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
18
17
|
}, "strict", z.ZodTypeAny, {
|
|
19
18
|
message: string;
|
|
20
|
-
projectId
|
|
19
|
+
projectId: string;
|
|
20
|
+
timeoutSeconds?: number | undefined;
|
|
21
21
|
recipients?: string[] | undefined;
|
|
22
|
-
topic?: string | undefined;
|
|
23
|
-
waitSeconds?: number | undefined;
|
|
24
22
|
}, {
|
|
25
23
|
message: string;
|
|
26
|
-
projectId
|
|
24
|
+
projectId: string;
|
|
25
|
+
timeoutSeconds?: number | undefined;
|
|
27
26
|
recipients?: string[] | undefined;
|
|
28
|
-
topic?: string | undefined;
|
|
29
|
-
waitSeconds?: number | undefined;
|
|
30
27
|
}>;
|
|
31
28
|
export declare const communicationTargetSchema: z.ZodObject<{
|
|
32
29
|
projectId: z.ZodString;
|
|
@@ -34,22 +31,149 @@ export declare const communicationTargetSchema: z.ZodObject<{
|
|
|
34
31
|
} & {
|
|
35
32
|
projectSlug: z.ZodString;
|
|
36
33
|
definitionRevision: z.ZodString;
|
|
34
|
+
revisions: z.ZodObject<{
|
|
35
|
+
project: z.ZodString;
|
|
36
|
+
library: z.ZodString;
|
|
37
|
+
agentDefinition: z.ZodString;
|
|
38
|
+
chatProfile: z.ZodString;
|
|
39
|
+
}, "strict", z.ZodTypeAny, {
|
|
40
|
+
project: string;
|
|
41
|
+
library: string;
|
|
42
|
+
agentDefinition: string;
|
|
43
|
+
chatProfile: string;
|
|
44
|
+
}, {
|
|
45
|
+
project: string;
|
|
46
|
+
library: string;
|
|
47
|
+
agentDefinition: string;
|
|
48
|
+
chatProfile: string;
|
|
49
|
+
}>;
|
|
37
50
|
invocationId: z.ZodNullable<z.ZodString>;
|
|
38
|
-
|
|
51
|
+
requirement: z.ZodEnum<["required", "optional"]>;
|
|
52
|
+
parentInvocationId: z.ZodNullable<z.ZodString>;
|
|
53
|
+
depth: z.ZodNumber;
|
|
54
|
+
status: z.ZodEnum<["queued", "running", "responded", "abstained", "failed", "cancelled"]>;
|
|
55
|
+
requestedAt: z.ZodString;
|
|
56
|
+
updatedAt: z.ZodString;
|
|
57
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
58
|
+
failure: z.ZodNullable<z.ZodObject<{
|
|
59
|
+
code: z.ZodString;
|
|
60
|
+
message: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, "strict", z.ZodTypeAny, {
|
|
62
|
+
code: string;
|
|
63
|
+
message: string | null;
|
|
64
|
+
}, {
|
|
65
|
+
code: string;
|
|
66
|
+
message: string | null;
|
|
67
|
+
}>>;
|
|
68
|
+
capacity: z.ZodObject<{
|
|
69
|
+
assignmentId: z.ZodNullable<z.ZodString>;
|
|
70
|
+
providerId: z.ZodNullable<z.ZodString>;
|
|
71
|
+
executionProviderId: z.ZodNullable<z.ZodString>;
|
|
72
|
+
laneId: z.ZodNullable<z.ZodString>;
|
|
73
|
+
lanePurpose: z.ZodNullable<z.ZodString>;
|
|
74
|
+
status: z.ZodNullable<z.ZodString>;
|
|
75
|
+
assignedAt: z.ZodNullable<z.ZodString>;
|
|
76
|
+
claimedAt: z.ZodNullable<z.ZodString>;
|
|
77
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
78
|
+
returnedAt: z.ZodNullable<z.ZodString>;
|
|
79
|
+
failedAt: z.ZodNullable<z.ZodString>;
|
|
80
|
+
}, "strict", z.ZodTypeAny, {
|
|
81
|
+
status: string | null;
|
|
82
|
+
completedAt: string | null;
|
|
83
|
+
providerId: string | null;
|
|
84
|
+
assignmentId: string | null;
|
|
85
|
+
executionProviderId: string | null;
|
|
86
|
+
laneId: string | null;
|
|
87
|
+
lanePurpose: string | null;
|
|
88
|
+
assignedAt: string | null;
|
|
89
|
+
claimedAt: string | null;
|
|
90
|
+
returnedAt: string | null;
|
|
91
|
+
failedAt: string | null;
|
|
92
|
+
}, {
|
|
93
|
+
status: string | null;
|
|
94
|
+
completedAt: string | null;
|
|
95
|
+
providerId: string | null;
|
|
96
|
+
assignmentId: string | null;
|
|
97
|
+
executionProviderId: string | null;
|
|
98
|
+
laneId: string | null;
|
|
99
|
+
lanePurpose: string | null;
|
|
100
|
+
assignedAt: string | null;
|
|
101
|
+
claimedAt: string | null;
|
|
102
|
+
returnedAt: string | null;
|
|
103
|
+
failedAt: string | null;
|
|
104
|
+
}>;
|
|
39
105
|
}, "strict", z.ZodTypeAny, {
|
|
40
|
-
status: "failed" | "running" | "cancelled" | "queued" | "responded";
|
|
106
|
+
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
107
|
+
completedAt: string | null;
|
|
41
108
|
projectId: string;
|
|
42
109
|
agentSlug: string;
|
|
110
|
+
capacity: {
|
|
111
|
+
status: string | null;
|
|
112
|
+
completedAt: string | null;
|
|
113
|
+
providerId: string | null;
|
|
114
|
+
assignmentId: string | null;
|
|
115
|
+
executionProviderId: string | null;
|
|
116
|
+
laneId: string | null;
|
|
117
|
+
lanePurpose: string | null;
|
|
118
|
+
assignedAt: string | null;
|
|
119
|
+
claimedAt: string | null;
|
|
120
|
+
returnedAt: string | null;
|
|
121
|
+
failedAt: string | null;
|
|
122
|
+
};
|
|
43
123
|
projectSlug: string;
|
|
44
124
|
definitionRevision: string;
|
|
125
|
+
revisions: {
|
|
126
|
+
project: string;
|
|
127
|
+
library: string;
|
|
128
|
+
agentDefinition: string;
|
|
129
|
+
chatProfile: string;
|
|
130
|
+
};
|
|
45
131
|
invocationId: string | null;
|
|
132
|
+
requirement: "required" | "optional";
|
|
133
|
+
parentInvocationId: string | null;
|
|
134
|
+
depth: number;
|
|
135
|
+
requestedAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
failure: {
|
|
138
|
+
code: string;
|
|
139
|
+
message: string | null;
|
|
140
|
+
} | null;
|
|
46
141
|
}, {
|
|
47
|
-
status: "failed" | "running" | "cancelled" | "queued" | "responded";
|
|
142
|
+
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
143
|
+
completedAt: string | null;
|
|
48
144
|
projectId: string;
|
|
49
145
|
agentSlug: string;
|
|
146
|
+
capacity: {
|
|
147
|
+
status: string | null;
|
|
148
|
+
completedAt: string | null;
|
|
149
|
+
providerId: string | null;
|
|
150
|
+
assignmentId: string | null;
|
|
151
|
+
executionProviderId: string | null;
|
|
152
|
+
laneId: string | null;
|
|
153
|
+
lanePurpose: string | null;
|
|
154
|
+
assignedAt: string | null;
|
|
155
|
+
claimedAt: string | null;
|
|
156
|
+
returnedAt: string | null;
|
|
157
|
+
failedAt: string | null;
|
|
158
|
+
};
|
|
50
159
|
projectSlug: string;
|
|
51
160
|
definitionRevision: string;
|
|
161
|
+
revisions: {
|
|
162
|
+
project: string;
|
|
163
|
+
library: string;
|
|
164
|
+
agentDefinition: string;
|
|
165
|
+
chatProfile: string;
|
|
166
|
+
};
|
|
52
167
|
invocationId: string | null;
|
|
168
|
+
requirement: "required" | "optional";
|
|
169
|
+
parentInvocationId: string | null;
|
|
170
|
+
depth: number;
|
|
171
|
+
requestedAt: string;
|
|
172
|
+
updatedAt: string;
|
|
173
|
+
failure: {
|
|
174
|
+
code: string;
|
|
175
|
+
message: string | null;
|
|
176
|
+
} | null;
|
|
53
177
|
}>;
|
|
54
178
|
export declare const communicationResponseSchema: z.ZodObject<{
|
|
55
179
|
projectId: z.ZodString;
|
|
@@ -59,35 +183,61 @@ export declare const communicationResponseSchema: z.ZodObject<{
|
|
|
59
183
|
assignmentId: z.ZodNullable<z.ZodString>;
|
|
60
184
|
messageRef: z.ZodString;
|
|
61
185
|
markdown: z.ZodString;
|
|
62
|
-
|
|
186
|
+
requirement: z.ZodEnum<["required", "optional"]>;
|
|
187
|
+
status: z.ZodEnum<["responded", "abstained", "failed", "cancelled"]>;
|
|
63
188
|
createdAt: z.ZodString;
|
|
64
189
|
}, "strict", z.ZodTypeAny, {
|
|
65
|
-
status: "failed" | "cancelled" | "responded";
|
|
190
|
+
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
66
191
|
createdAt: string;
|
|
67
192
|
projectId: string;
|
|
68
193
|
agentSlug: string;
|
|
69
194
|
assignmentId: string | null;
|
|
70
195
|
invocationId: string;
|
|
196
|
+
requirement: "required" | "optional";
|
|
71
197
|
messageRef: string;
|
|
72
198
|
markdown: string;
|
|
73
199
|
}, {
|
|
74
|
-
status: "failed" | "cancelled" | "responded";
|
|
200
|
+
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
75
201
|
createdAt: string;
|
|
76
202
|
projectId: string;
|
|
77
203
|
agentSlug: string;
|
|
78
204
|
assignmentId: string | null;
|
|
79
205
|
invocationId: string;
|
|
206
|
+
requirement: "required" | "optional";
|
|
80
207
|
messageRef: string;
|
|
81
208
|
markdown: string;
|
|
82
209
|
}>;
|
|
83
210
|
export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
84
|
-
schemaVersion: z.ZodLiteral<"treeseed.communication-send-receipt/
|
|
211
|
+
schemaVersion: z.ZodLiteral<"treeseed.communication-send-receipt/v2">;
|
|
85
212
|
sendId: z.ZodString;
|
|
86
213
|
teamId: z.ZodString;
|
|
87
214
|
channel: z.ZodString;
|
|
88
|
-
topic: z.
|
|
215
|
+
topic: z.ZodObject<{
|
|
216
|
+
id: z.ZodString;
|
|
217
|
+
slug: z.ZodString;
|
|
218
|
+
}, "strict", z.ZodTypeAny, {
|
|
219
|
+
id: string;
|
|
220
|
+
slug: string;
|
|
221
|
+
}, {
|
|
222
|
+
id: string;
|
|
223
|
+
slug: string;
|
|
224
|
+
}>;
|
|
225
|
+
projectStream: z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
projectId: z.ZodString;
|
|
228
|
+
projectSlug: z.ZodString;
|
|
229
|
+
}, "strict", z.ZodTypeAny, {
|
|
230
|
+
id: string;
|
|
231
|
+
projectId: string;
|
|
232
|
+
projectSlug: string;
|
|
233
|
+
}, {
|
|
234
|
+
id: string;
|
|
235
|
+
projectId: string;
|
|
236
|
+
projectSlug: string;
|
|
237
|
+
}>;
|
|
89
238
|
discussionId: z.ZodString;
|
|
90
239
|
messageRef: z.ZodString;
|
|
240
|
+
sourceMessage: z.ZodString;
|
|
91
241
|
status: z.ZodEnum<["queued", "running", "complete", "partial", "failed"]>;
|
|
92
242
|
targets: z.ZodArray<z.ZodObject<{
|
|
93
243
|
projectId: z.ZodString;
|
|
@@ -95,22 +245,149 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
95
245
|
} & {
|
|
96
246
|
projectSlug: z.ZodString;
|
|
97
247
|
definitionRevision: z.ZodString;
|
|
248
|
+
revisions: z.ZodObject<{
|
|
249
|
+
project: z.ZodString;
|
|
250
|
+
library: z.ZodString;
|
|
251
|
+
agentDefinition: z.ZodString;
|
|
252
|
+
chatProfile: z.ZodString;
|
|
253
|
+
}, "strict", z.ZodTypeAny, {
|
|
254
|
+
project: string;
|
|
255
|
+
library: string;
|
|
256
|
+
agentDefinition: string;
|
|
257
|
+
chatProfile: string;
|
|
258
|
+
}, {
|
|
259
|
+
project: string;
|
|
260
|
+
library: string;
|
|
261
|
+
agentDefinition: string;
|
|
262
|
+
chatProfile: string;
|
|
263
|
+
}>;
|
|
98
264
|
invocationId: z.ZodNullable<z.ZodString>;
|
|
99
|
-
|
|
265
|
+
requirement: z.ZodEnum<["required", "optional"]>;
|
|
266
|
+
parentInvocationId: z.ZodNullable<z.ZodString>;
|
|
267
|
+
depth: z.ZodNumber;
|
|
268
|
+
status: z.ZodEnum<["queued", "running", "responded", "abstained", "failed", "cancelled"]>;
|
|
269
|
+
requestedAt: z.ZodString;
|
|
270
|
+
updatedAt: z.ZodString;
|
|
271
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
272
|
+
failure: z.ZodNullable<z.ZodObject<{
|
|
273
|
+
code: z.ZodString;
|
|
274
|
+
message: z.ZodNullable<z.ZodString>;
|
|
275
|
+
}, "strict", z.ZodTypeAny, {
|
|
276
|
+
code: string;
|
|
277
|
+
message: string | null;
|
|
278
|
+
}, {
|
|
279
|
+
code: string;
|
|
280
|
+
message: string | null;
|
|
281
|
+
}>>;
|
|
282
|
+
capacity: z.ZodObject<{
|
|
283
|
+
assignmentId: z.ZodNullable<z.ZodString>;
|
|
284
|
+
providerId: z.ZodNullable<z.ZodString>;
|
|
285
|
+
executionProviderId: z.ZodNullable<z.ZodString>;
|
|
286
|
+
laneId: z.ZodNullable<z.ZodString>;
|
|
287
|
+
lanePurpose: z.ZodNullable<z.ZodString>;
|
|
288
|
+
status: z.ZodNullable<z.ZodString>;
|
|
289
|
+
assignedAt: z.ZodNullable<z.ZodString>;
|
|
290
|
+
claimedAt: z.ZodNullable<z.ZodString>;
|
|
291
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
292
|
+
returnedAt: z.ZodNullable<z.ZodString>;
|
|
293
|
+
failedAt: z.ZodNullable<z.ZodString>;
|
|
294
|
+
}, "strict", z.ZodTypeAny, {
|
|
295
|
+
status: string | null;
|
|
296
|
+
completedAt: string | null;
|
|
297
|
+
providerId: string | null;
|
|
298
|
+
assignmentId: string | null;
|
|
299
|
+
executionProviderId: string | null;
|
|
300
|
+
laneId: string | null;
|
|
301
|
+
lanePurpose: string | null;
|
|
302
|
+
assignedAt: string | null;
|
|
303
|
+
claimedAt: string | null;
|
|
304
|
+
returnedAt: string | null;
|
|
305
|
+
failedAt: string | null;
|
|
306
|
+
}, {
|
|
307
|
+
status: string | null;
|
|
308
|
+
completedAt: string | null;
|
|
309
|
+
providerId: string | null;
|
|
310
|
+
assignmentId: string | null;
|
|
311
|
+
executionProviderId: string | null;
|
|
312
|
+
laneId: string | null;
|
|
313
|
+
lanePurpose: string | null;
|
|
314
|
+
assignedAt: string | null;
|
|
315
|
+
claimedAt: string | null;
|
|
316
|
+
returnedAt: string | null;
|
|
317
|
+
failedAt: string | null;
|
|
318
|
+
}>;
|
|
100
319
|
}, "strict", z.ZodTypeAny, {
|
|
101
|
-
status: "failed" | "running" | "cancelled" | "queued" | "responded";
|
|
320
|
+
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
321
|
+
completedAt: string | null;
|
|
102
322
|
projectId: string;
|
|
103
323
|
agentSlug: string;
|
|
324
|
+
capacity: {
|
|
325
|
+
status: string | null;
|
|
326
|
+
completedAt: string | null;
|
|
327
|
+
providerId: string | null;
|
|
328
|
+
assignmentId: string | null;
|
|
329
|
+
executionProviderId: string | null;
|
|
330
|
+
laneId: string | null;
|
|
331
|
+
lanePurpose: string | null;
|
|
332
|
+
assignedAt: string | null;
|
|
333
|
+
claimedAt: string | null;
|
|
334
|
+
returnedAt: string | null;
|
|
335
|
+
failedAt: string | null;
|
|
336
|
+
};
|
|
104
337
|
projectSlug: string;
|
|
105
338
|
definitionRevision: string;
|
|
339
|
+
revisions: {
|
|
340
|
+
project: string;
|
|
341
|
+
library: string;
|
|
342
|
+
agentDefinition: string;
|
|
343
|
+
chatProfile: string;
|
|
344
|
+
};
|
|
106
345
|
invocationId: string | null;
|
|
346
|
+
requirement: "required" | "optional";
|
|
347
|
+
parentInvocationId: string | null;
|
|
348
|
+
depth: number;
|
|
349
|
+
requestedAt: string;
|
|
350
|
+
updatedAt: string;
|
|
351
|
+
failure: {
|
|
352
|
+
code: string;
|
|
353
|
+
message: string | null;
|
|
354
|
+
} | null;
|
|
107
355
|
}, {
|
|
108
|
-
status: "failed" | "running" | "cancelled" | "queued" | "responded";
|
|
356
|
+
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
357
|
+
completedAt: string | null;
|
|
109
358
|
projectId: string;
|
|
110
359
|
agentSlug: string;
|
|
360
|
+
capacity: {
|
|
361
|
+
status: string | null;
|
|
362
|
+
completedAt: string | null;
|
|
363
|
+
providerId: string | null;
|
|
364
|
+
assignmentId: string | null;
|
|
365
|
+
executionProviderId: string | null;
|
|
366
|
+
laneId: string | null;
|
|
367
|
+
lanePurpose: string | null;
|
|
368
|
+
assignedAt: string | null;
|
|
369
|
+
claimedAt: string | null;
|
|
370
|
+
returnedAt: string | null;
|
|
371
|
+
failedAt: string | null;
|
|
372
|
+
};
|
|
111
373
|
projectSlug: string;
|
|
112
374
|
definitionRevision: string;
|
|
375
|
+
revisions: {
|
|
376
|
+
project: string;
|
|
377
|
+
library: string;
|
|
378
|
+
agentDefinition: string;
|
|
379
|
+
chatProfile: string;
|
|
380
|
+
};
|
|
113
381
|
invocationId: string | null;
|
|
382
|
+
requirement: "required" | "optional";
|
|
383
|
+
parentInvocationId: string | null;
|
|
384
|
+
depth: number;
|
|
385
|
+
requestedAt: string;
|
|
386
|
+
updatedAt: string;
|
|
387
|
+
failure: {
|
|
388
|
+
code: string;
|
|
389
|
+
message: string | null;
|
|
390
|
+
} | null;
|
|
114
391
|
}>, "many">;
|
|
115
392
|
responses: z.ZodArray<z.ZodObject<{
|
|
116
393
|
projectId: z.ZodString;
|
|
@@ -120,123 +397,224 @@ export declare const communicationSendReceiptSchema: z.ZodObject<{
|
|
|
120
397
|
assignmentId: z.ZodNullable<z.ZodString>;
|
|
121
398
|
messageRef: z.ZodString;
|
|
122
399
|
markdown: z.ZodString;
|
|
123
|
-
|
|
400
|
+
requirement: z.ZodEnum<["required", "optional"]>;
|
|
401
|
+
status: z.ZodEnum<["responded", "abstained", "failed", "cancelled"]>;
|
|
124
402
|
createdAt: z.ZodString;
|
|
125
403
|
}, "strict", z.ZodTypeAny, {
|
|
126
|
-
status: "failed" | "cancelled" | "responded";
|
|
404
|
+
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
127
405
|
createdAt: string;
|
|
128
406
|
projectId: string;
|
|
129
407
|
agentSlug: string;
|
|
130
408
|
assignmentId: string | null;
|
|
131
409
|
invocationId: string;
|
|
410
|
+
requirement: "required" | "optional";
|
|
132
411
|
messageRef: string;
|
|
133
412
|
markdown: string;
|
|
134
413
|
}, {
|
|
135
|
-
status: "failed" | "cancelled" | "responded";
|
|
414
|
+
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
136
415
|
createdAt: string;
|
|
137
416
|
projectId: string;
|
|
138
417
|
agentSlug: string;
|
|
139
418
|
assignmentId: string | null;
|
|
140
419
|
invocationId: string;
|
|
420
|
+
requirement: "required" | "optional";
|
|
141
421
|
messageRef: string;
|
|
142
422
|
markdown: string;
|
|
143
423
|
}>, "many">;
|
|
144
424
|
createdAt: z.ZodString;
|
|
145
425
|
updatedAt: z.ZodString;
|
|
426
|
+
replayed: z.ZodBoolean;
|
|
146
427
|
}, "strict", z.ZodTypeAny, {
|
|
147
428
|
status: "partial" | "failed" | "complete" | "running" | "queued";
|
|
148
|
-
schemaVersion: "treeseed.communication-send-receipt/
|
|
429
|
+
schemaVersion: "treeseed.communication-send-receipt/v2";
|
|
149
430
|
createdAt: string;
|
|
150
431
|
responses: {
|
|
151
|
-
status: "failed" | "cancelled" | "responded";
|
|
432
|
+
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
152
433
|
createdAt: string;
|
|
153
434
|
projectId: string;
|
|
154
435
|
agentSlug: string;
|
|
155
436
|
assignmentId: string | null;
|
|
156
437
|
invocationId: string;
|
|
438
|
+
requirement: "required" | "optional";
|
|
157
439
|
messageRef: string;
|
|
158
440
|
markdown: string;
|
|
159
441
|
}[];
|
|
160
442
|
teamId: string;
|
|
161
443
|
channel: string;
|
|
162
|
-
|
|
444
|
+
updatedAt: string;
|
|
163
445
|
messageRef: string;
|
|
164
446
|
sendId: string;
|
|
447
|
+
topic: {
|
|
448
|
+
id: string;
|
|
449
|
+
slug: string;
|
|
450
|
+
};
|
|
451
|
+
projectStream: {
|
|
452
|
+
id: string;
|
|
453
|
+
projectId: string;
|
|
454
|
+
projectSlug: string;
|
|
455
|
+
};
|
|
165
456
|
discussionId: string;
|
|
457
|
+
sourceMessage: string;
|
|
166
458
|
targets: {
|
|
167
|
-
status: "failed" | "running" | "cancelled" | "queued" | "responded";
|
|
459
|
+
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
460
|
+
completedAt: string | null;
|
|
168
461
|
projectId: string;
|
|
169
462
|
agentSlug: string;
|
|
463
|
+
capacity: {
|
|
464
|
+
status: string | null;
|
|
465
|
+
completedAt: string | null;
|
|
466
|
+
providerId: string | null;
|
|
467
|
+
assignmentId: string | null;
|
|
468
|
+
executionProviderId: string | null;
|
|
469
|
+
laneId: string | null;
|
|
470
|
+
lanePurpose: string | null;
|
|
471
|
+
assignedAt: string | null;
|
|
472
|
+
claimedAt: string | null;
|
|
473
|
+
returnedAt: string | null;
|
|
474
|
+
failedAt: string | null;
|
|
475
|
+
};
|
|
170
476
|
projectSlug: string;
|
|
171
477
|
definitionRevision: string;
|
|
478
|
+
revisions: {
|
|
479
|
+
project: string;
|
|
480
|
+
library: string;
|
|
481
|
+
agentDefinition: string;
|
|
482
|
+
chatProfile: string;
|
|
483
|
+
};
|
|
172
484
|
invocationId: string | null;
|
|
485
|
+
requirement: "required" | "optional";
|
|
486
|
+
parentInvocationId: string | null;
|
|
487
|
+
depth: number;
|
|
488
|
+
requestedAt: string;
|
|
489
|
+
updatedAt: string;
|
|
490
|
+
failure: {
|
|
491
|
+
code: string;
|
|
492
|
+
message: string | null;
|
|
493
|
+
} | null;
|
|
173
494
|
}[];
|
|
174
|
-
|
|
495
|
+
replayed: boolean;
|
|
175
496
|
}, {
|
|
176
497
|
status: "partial" | "failed" | "complete" | "running" | "queued";
|
|
177
|
-
schemaVersion: "treeseed.communication-send-receipt/
|
|
498
|
+
schemaVersion: "treeseed.communication-send-receipt/v2";
|
|
178
499
|
createdAt: string;
|
|
179
500
|
responses: {
|
|
180
|
-
status: "failed" | "cancelled" | "responded";
|
|
501
|
+
status: "failed" | "cancelled" | "responded" | "abstained";
|
|
181
502
|
createdAt: string;
|
|
182
503
|
projectId: string;
|
|
183
504
|
agentSlug: string;
|
|
184
505
|
assignmentId: string | null;
|
|
185
506
|
invocationId: string;
|
|
507
|
+
requirement: "required" | "optional";
|
|
186
508
|
messageRef: string;
|
|
187
509
|
markdown: string;
|
|
188
510
|
}[];
|
|
189
511
|
teamId: string;
|
|
190
512
|
channel: string;
|
|
191
|
-
|
|
513
|
+
updatedAt: string;
|
|
192
514
|
messageRef: string;
|
|
193
515
|
sendId: string;
|
|
516
|
+
topic: {
|
|
517
|
+
id: string;
|
|
518
|
+
slug: string;
|
|
519
|
+
};
|
|
520
|
+
projectStream: {
|
|
521
|
+
id: string;
|
|
522
|
+
projectId: string;
|
|
523
|
+
projectSlug: string;
|
|
524
|
+
};
|
|
194
525
|
discussionId: string;
|
|
526
|
+
sourceMessage: string;
|
|
195
527
|
targets: {
|
|
196
|
-
status: "failed" | "running" | "cancelled" | "queued" | "responded";
|
|
528
|
+
status: "failed" | "running" | "cancelled" | "queued" | "responded" | "abstained";
|
|
529
|
+
completedAt: string | null;
|
|
197
530
|
projectId: string;
|
|
198
531
|
agentSlug: string;
|
|
532
|
+
capacity: {
|
|
533
|
+
status: string | null;
|
|
534
|
+
completedAt: string | null;
|
|
535
|
+
providerId: string | null;
|
|
536
|
+
assignmentId: string | null;
|
|
537
|
+
executionProviderId: string | null;
|
|
538
|
+
laneId: string | null;
|
|
539
|
+
lanePurpose: string | null;
|
|
540
|
+
assignedAt: string | null;
|
|
541
|
+
claimedAt: string | null;
|
|
542
|
+
returnedAt: string | null;
|
|
543
|
+
failedAt: string | null;
|
|
544
|
+
};
|
|
199
545
|
projectSlug: string;
|
|
200
546
|
definitionRevision: string;
|
|
547
|
+
revisions: {
|
|
548
|
+
project: string;
|
|
549
|
+
library: string;
|
|
550
|
+
agentDefinition: string;
|
|
551
|
+
chatProfile: string;
|
|
552
|
+
};
|
|
201
553
|
invocationId: string | null;
|
|
554
|
+
requirement: "required" | "optional";
|
|
555
|
+
parentInvocationId: string | null;
|
|
556
|
+
depth: number;
|
|
557
|
+
requestedAt: string;
|
|
558
|
+
updatedAt: string;
|
|
559
|
+
failure: {
|
|
560
|
+
code: string;
|
|
561
|
+
message: string | null;
|
|
562
|
+
} | null;
|
|
202
563
|
}[];
|
|
203
|
-
|
|
564
|
+
replayed: boolean;
|
|
204
565
|
}>;
|
|
205
|
-
export declare const providerDiscussionResponseRequestSchema: z.ZodObject<{
|
|
566
|
+
export declare const providerDiscussionResponseRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
206
567
|
leaseToken: z.ZodString;
|
|
207
568
|
runnerId: z.ZodString;
|
|
208
|
-
|
|
569
|
+
outcome: z.ZodDefault<z.ZodEnum<["responded", "abstained"]>>;
|
|
570
|
+
markdown: z.ZodOptional<z.ZodString>;
|
|
209
571
|
summary: z.ZodOptional<z.ZodString>;
|
|
210
572
|
usage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
211
573
|
}, "strict", z.ZodTypeAny, {
|
|
212
|
-
markdown: string;
|
|
213
574
|
leaseToken: string;
|
|
214
575
|
runnerId: string;
|
|
576
|
+
outcome: "responded" | "abstained";
|
|
215
577
|
summary?: string | undefined;
|
|
216
578
|
usage?: Record<string, unknown> | undefined;
|
|
579
|
+
markdown?: string | undefined;
|
|
580
|
+
}, {
|
|
581
|
+
leaseToken: string;
|
|
582
|
+
runnerId: string;
|
|
583
|
+
summary?: string | undefined;
|
|
584
|
+
usage?: Record<string, unknown> | undefined;
|
|
585
|
+
markdown?: string | undefined;
|
|
586
|
+
outcome?: "responded" | "abstained" | undefined;
|
|
587
|
+
}>, {
|
|
588
|
+
leaseToken: string;
|
|
589
|
+
runnerId: string;
|
|
590
|
+
outcome: "responded" | "abstained";
|
|
591
|
+
summary?: string | undefined;
|
|
592
|
+
usage?: Record<string, unknown> | undefined;
|
|
593
|
+
markdown?: string | undefined;
|
|
217
594
|
}, {
|
|
218
|
-
markdown: string;
|
|
219
595
|
leaseToken: string;
|
|
220
596
|
runnerId: string;
|
|
221
597
|
summary?: string | undefined;
|
|
222
598
|
usage?: Record<string, unknown> | undefined;
|
|
599
|
+
markdown?: string | undefined;
|
|
600
|
+
outcome?: "responded" | "abstained" | undefined;
|
|
223
601
|
}>;
|
|
224
602
|
export declare const providerDiscussionResponseReceiptSchema: z.ZodObject<{
|
|
225
603
|
schemaVersion: z.ZodLiteral<"treeseed.provider-discussion-response-receipt/v1">;
|
|
226
604
|
assignmentId: z.ZodString;
|
|
227
605
|
invocationId: z.ZodString;
|
|
228
606
|
messageRef: z.ZodString;
|
|
229
|
-
status: z.
|
|
607
|
+
status: z.ZodEnum<["responded", "abstained"]>;
|
|
230
608
|
settledAt: z.ZodString;
|
|
231
609
|
}, "strict", z.ZodTypeAny, {
|
|
232
|
-
status: "responded";
|
|
610
|
+
status: "responded" | "abstained";
|
|
233
611
|
schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
|
|
234
612
|
assignmentId: string;
|
|
235
613
|
invocationId: string;
|
|
236
614
|
messageRef: string;
|
|
237
615
|
settledAt: string;
|
|
238
616
|
}, {
|
|
239
|
-
status: "responded";
|
|
617
|
+
status: "responded" | "abstained";
|
|
240
618
|
schemaVersion: "treeseed.provider-discussion-response-receipt/v1";
|
|
241
619
|
assignmentId: string;
|
|
242
620
|
invocationId: string;
|