@roll-agent/relay-client 0.3.0 → 0.3.2
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/schemas.d.ts +175 -175
- package/package.json +3 -3
package/dist/schemas.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare const relayConnectionStateSchema: z.ZodDiscriminatedUnion<[z.ZodR
|
|
|
30
30
|
transport: "transport";
|
|
31
31
|
protocol: "protocol";
|
|
32
32
|
}>;
|
|
33
|
-
}, z.core.$strict>>]>;
|
|
33
|
+
}, z.core.$strict>>], "status">;
|
|
34
34
|
export declare const RELAY_CLIENT_TRANSPORT_ERROR_CODES: {
|
|
35
35
|
readonly aborted: "ABORTED";
|
|
36
36
|
readonly closed: "CLIENT_CLOSED";
|
|
@@ -85,7 +85,7 @@ export declare const relayClientErrorDetailsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
85
85
|
message: z.ZodString;
|
|
86
86
|
retryable: z.ZodBoolean;
|
|
87
87
|
kind: z.ZodLiteral<"remote">;
|
|
88
|
-
}, z.core.$strict>>]>;
|
|
88
|
+
}, z.core.$strict>>], "kind">;
|
|
89
89
|
export declare const relayLiveAssistantMessageSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
90
90
|
status: z.ZodLiteral<"streaming">;
|
|
91
91
|
streamId: z.ZodString;
|
|
@@ -94,22 +94,22 @@ export declare const relayLiveAssistantMessageSchema: z.ZodDiscriminatedUnion<[z
|
|
|
94
94
|
status: z.ZodLiteral<"completed">;
|
|
95
95
|
streamId: z.ZodString;
|
|
96
96
|
text: z.ZodString;
|
|
97
|
-
}, z.core.$strict>>]>;
|
|
97
|
+
}, z.core.$strict>>], "status">;
|
|
98
98
|
export declare const relayInteractionStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
99
99
|
status: z.ZodLiteral<"pending">;
|
|
100
100
|
request: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
101
101
|
method: z.ZodLiteral<"approval.request">;
|
|
102
102
|
projection: z.ZodReadonly<z.ZodObject<{
|
|
103
|
-
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
103
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
104
104
|
agentName: z.ZodString;
|
|
105
105
|
toolName: z.ZodString;
|
|
106
106
|
explanation: z.ZodOptional<z.ZodString>;
|
|
107
107
|
}, z.core.$strict>>;
|
|
108
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
108
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
109
109
|
relaySequence: z.ZodNumber;
|
|
110
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
111
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
112
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
110
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
111
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
112
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
113
113
|
expiresAt: z.ZodString;
|
|
114
114
|
sensitivity: z.ZodLiteral<"normal">;
|
|
115
115
|
type: z.ZodLiteral<"interaction.request">;
|
|
@@ -163,32 +163,32 @@ export declare const relayInteractionStateSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
163
163
|
description: z.ZodOptional<z.ZodString>;
|
|
164
164
|
required: z.ZodBoolean;
|
|
165
165
|
type: z.ZodLiteral<"choice">;
|
|
166
|
-
}, z.core.$strict>>]>>;
|
|
166
|
+
}, z.core.$strict>>], "type">>;
|
|
167
167
|
}, z.core.$strict>>;
|
|
168
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
168
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
169
169
|
relaySequence: z.ZodNumber;
|
|
170
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
171
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
172
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
170
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
171
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
172
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
173
173
|
expiresAt: z.ZodString;
|
|
174
174
|
sensitivity: z.ZodLiteral<"normal">;
|
|
175
175
|
type: z.ZodLiteral<"interaction.request">;
|
|
176
|
-
}, z.core.$strict>>]>;
|
|
176
|
+
}, z.core.$strict>>], "method">;
|
|
177
177
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
178
178
|
status: z.ZodLiteral<"responding">;
|
|
179
179
|
request: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
180
180
|
method: z.ZodLiteral<"approval.request">;
|
|
181
181
|
projection: z.ZodReadonly<z.ZodObject<{
|
|
182
|
-
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
182
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
183
183
|
agentName: z.ZodString;
|
|
184
184
|
toolName: z.ZodString;
|
|
185
185
|
explanation: z.ZodOptional<z.ZodString>;
|
|
186
186
|
}, z.core.$strict>>;
|
|
187
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
187
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
188
188
|
relaySequence: z.ZodNumber;
|
|
189
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
190
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
191
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
189
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
190
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
191
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
192
192
|
expiresAt: z.ZodString;
|
|
193
193
|
sensitivity: z.ZodLiteral<"normal">;
|
|
194
194
|
type: z.ZodLiteral<"interaction.request">;
|
|
@@ -242,53 +242,53 @@ export declare const relayInteractionStateSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
242
242
|
description: z.ZodOptional<z.ZodString>;
|
|
243
243
|
required: z.ZodBoolean;
|
|
244
244
|
type: z.ZodLiteral<"choice">;
|
|
245
|
-
}, z.core.$strict>>]>>;
|
|
245
|
+
}, z.core.$strict>>], "type">>;
|
|
246
246
|
}, z.core.$strict>>;
|
|
247
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
247
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
248
248
|
relaySequence: z.ZodNumber;
|
|
249
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
250
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
251
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
249
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
250
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
251
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
252
252
|
expiresAt: z.ZodString;
|
|
253
253
|
sensitivity: z.ZodLiteral<"normal">;
|
|
254
254
|
type: z.ZodLiteral<"interaction.request">;
|
|
255
|
-
}, z.core.$strict>>]>;
|
|
255
|
+
}, z.core.$strict>>], "method">;
|
|
256
256
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
257
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
258
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
259
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
257
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
258
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
259
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
260
260
|
method: z.ZodUnion<[z.ZodLiteral<"approval.request">, z.ZodLiteral<"userInput.request">]>;
|
|
261
261
|
status: z.ZodLiteral<"resolved">;
|
|
262
262
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
263
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
264
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
265
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
263
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
264
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
265
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
266
266
|
method: z.ZodUnion<[z.ZodLiteral<"approval.request">, z.ZodLiteral<"userInput.request">]>;
|
|
267
267
|
status: z.ZodLiteral<"cancelled">;
|
|
268
|
-
}, z.core.$strict>>]>;
|
|
268
|
+
}, z.core.$strict>>], "status">;
|
|
269
269
|
export declare const relayTurnStateSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
270
270
|
status: z.ZodLiteral<"idle">;
|
|
271
271
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
272
272
|
status: z.ZodLiteral<"running">;
|
|
273
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
273
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
274
274
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
275
275
|
status: z.ZodLiteral<"cancelling">;
|
|
276
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
276
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
277
277
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
278
278
|
status: z.ZodLiteral<"completed">;
|
|
279
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
279
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
280
280
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
281
281
|
status: z.ZodLiteral<"cancelled">;
|
|
282
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
282
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
283
283
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
284
284
|
status: z.ZodLiteral<"failed">;
|
|
285
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
285
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
286
286
|
stage: z.ZodEnum<{
|
|
287
287
|
bootstrap: "bootstrap";
|
|
288
288
|
plan: "plan";
|
|
289
289
|
execute: "execute";
|
|
290
290
|
}>;
|
|
291
|
-
}, z.core.$strict>>]>;
|
|
291
|
+
}, z.core.$strict>>], "status">;
|
|
292
292
|
export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
293
293
|
snapshot: z.ZodNull;
|
|
294
294
|
contextRecovery: z.ZodDefault<z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
@@ -297,7 +297,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
297
297
|
unextracted: z.ZodBoolean;
|
|
298
298
|
requiredItemCount: z.ZodNumber;
|
|
299
299
|
}, z.core.$strict>>>>;
|
|
300
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
300
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
301
301
|
liveAssistantMessages: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
302
302
|
status: z.ZodLiteral<"streaming">;
|
|
303
303
|
streamId: z.ZodString;
|
|
@@ -306,22 +306,22 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
306
306
|
status: z.ZodLiteral<"completed">;
|
|
307
307
|
streamId: z.ZodString;
|
|
308
308
|
text: z.ZodString;
|
|
309
|
-
}, z.core.$strict>>]>>>;
|
|
309
|
+
}, z.core.$strict>>], "status">>>;
|
|
310
310
|
interactions: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
311
311
|
status: z.ZodLiteral<"pending">;
|
|
312
312
|
request: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
313
313
|
method: z.ZodLiteral<"approval.request">;
|
|
314
314
|
projection: z.ZodReadonly<z.ZodObject<{
|
|
315
|
-
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
315
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
316
316
|
agentName: z.ZodString;
|
|
317
317
|
toolName: z.ZodString;
|
|
318
318
|
explanation: z.ZodOptional<z.ZodString>;
|
|
319
319
|
}, z.core.$strict>>;
|
|
320
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
320
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
321
321
|
relaySequence: z.ZodNumber;
|
|
322
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
323
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
324
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
322
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
323
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
324
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
325
325
|
expiresAt: z.ZodString;
|
|
326
326
|
sensitivity: z.ZodLiteral<"normal">;
|
|
327
327
|
type: z.ZodLiteral<"interaction.request">;
|
|
@@ -375,32 +375,32 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
375
375
|
description: z.ZodOptional<z.ZodString>;
|
|
376
376
|
required: z.ZodBoolean;
|
|
377
377
|
type: z.ZodLiteral<"choice">;
|
|
378
|
-
}, z.core.$strict>>]>>;
|
|
378
|
+
}, z.core.$strict>>], "type">>;
|
|
379
379
|
}, z.core.$strict>>;
|
|
380
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
380
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
381
381
|
relaySequence: z.ZodNumber;
|
|
382
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
383
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
384
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
382
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
383
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
384
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
385
385
|
expiresAt: z.ZodString;
|
|
386
386
|
sensitivity: z.ZodLiteral<"normal">;
|
|
387
387
|
type: z.ZodLiteral<"interaction.request">;
|
|
388
|
-
}, z.core.$strict>>]>;
|
|
388
|
+
}, z.core.$strict>>], "method">;
|
|
389
389
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
390
390
|
status: z.ZodLiteral<"responding">;
|
|
391
391
|
request: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
392
392
|
method: z.ZodLiteral<"approval.request">;
|
|
393
393
|
projection: z.ZodReadonly<z.ZodObject<{
|
|
394
|
-
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
394
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
395
395
|
agentName: z.ZodString;
|
|
396
396
|
toolName: z.ZodString;
|
|
397
397
|
explanation: z.ZodOptional<z.ZodString>;
|
|
398
398
|
}, z.core.$strict>>;
|
|
399
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
399
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
400
400
|
relaySequence: z.ZodNumber;
|
|
401
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
402
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
403
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
401
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
402
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
403
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
404
404
|
expiresAt: z.ZodString;
|
|
405
405
|
sensitivity: z.ZodLiteral<"normal">;
|
|
406
406
|
type: z.ZodLiteral<"interaction.request">;
|
|
@@ -454,58 +454,58 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
454
454
|
description: z.ZodOptional<z.ZodString>;
|
|
455
455
|
required: z.ZodBoolean;
|
|
456
456
|
type: z.ZodLiteral<"choice">;
|
|
457
|
-
}, z.core.$strict>>]>>;
|
|
457
|
+
}, z.core.$strict>>], "type">>;
|
|
458
458
|
}, z.core.$strict>>;
|
|
459
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
459
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
460
460
|
relaySequence: z.ZodNumber;
|
|
461
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
462
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
463
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
461
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
462
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
463
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
464
464
|
expiresAt: z.ZodString;
|
|
465
465
|
sensitivity: z.ZodLiteral<"normal">;
|
|
466
466
|
type: z.ZodLiteral<"interaction.request">;
|
|
467
|
-
}, z.core.$strict>>]>;
|
|
467
|
+
}, z.core.$strict>>], "method">;
|
|
468
468
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
469
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
470
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
471
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
469
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
470
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
471
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
472
472
|
method: z.ZodUnion<[z.ZodLiteral<"approval.request">, z.ZodLiteral<"userInput.request">]>;
|
|
473
473
|
status: z.ZodLiteral<"resolved">;
|
|
474
474
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
475
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
476
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
477
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
475
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
476
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
477
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
478
478
|
method: z.ZodUnion<[z.ZodLiteral<"approval.request">, z.ZodLiteral<"userInput.request">]>;
|
|
479
479
|
status: z.ZodLiteral<"cancelled">;
|
|
480
|
-
}, z.core.$strict>>]>>>;
|
|
480
|
+
}, z.core.$strict>>], "status">>>;
|
|
481
481
|
turn: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
482
482
|
status: z.ZodLiteral<"idle">;
|
|
483
483
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
484
484
|
status: z.ZodLiteral<"running">;
|
|
485
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
485
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
486
486
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
487
487
|
status: z.ZodLiteral<"cancelling">;
|
|
488
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
488
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
489
489
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
490
490
|
status: z.ZodLiteral<"completed">;
|
|
491
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
491
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
492
492
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
493
493
|
status: z.ZodLiteral<"cancelled">;
|
|
494
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
494
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
495
495
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
496
496
|
status: z.ZodLiteral<"failed">;
|
|
497
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
497
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
498
498
|
stage: z.ZodEnum<{
|
|
499
499
|
bootstrap: "bootstrap";
|
|
500
500
|
plan: "plan";
|
|
501
501
|
execute: "execute";
|
|
502
502
|
}>;
|
|
503
|
-
}, z.core.$strict>>]>;
|
|
503
|
+
}, z.core.$strict>>], "status">;
|
|
504
504
|
status: z.ZodLiteral<"loading">;
|
|
505
505
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
506
506
|
snapshot: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
507
507
|
thread: z.ZodReadonly<z.ZodObject<{
|
|
508
|
-
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
508
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
509
509
|
title: z.ZodOptional<z.ZodString>;
|
|
510
510
|
model: z.ZodOptional<z.ZodString>;
|
|
511
511
|
createdAt: z.ZodString;
|
|
@@ -528,7 +528,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
528
528
|
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
529
529
|
}, z.core.$strict>>;
|
|
530
530
|
activeTurn: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
531
|
-
id: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
531
|
+
id: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
532
532
|
status: z.ZodEnum<{
|
|
533
533
|
running: "running";
|
|
534
534
|
cancelling: "cancelling";
|
|
@@ -536,8 +536,8 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
536
536
|
startedAt: z.ZodString;
|
|
537
537
|
}, z.core.$strict>>>;
|
|
538
538
|
pendingApprovals: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
539
|
-
id: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
540
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
539
|
+
id: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
540
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
541
541
|
agentName: z.ZodString;
|
|
542
542
|
toolName: z.ZodString;
|
|
543
543
|
preview: z.ZodJSONSchema;
|
|
@@ -549,7 +549,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
549
549
|
}>;
|
|
550
550
|
operations: z.ZodReadonly<z.ZodObject<{
|
|
551
551
|
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
552
|
-
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
552
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
|
|
553
553
|
sequence: z.ZodNumber;
|
|
554
554
|
toolCallId: z.ZodString;
|
|
555
555
|
agentName: z.ZodString;
|
|
@@ -586,7 +586,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
586
586
|
expired: "expired";
|
|
587
587
|
denied: "denied";
|
|
588
588
|
}>;
|
|
589
|
-
}, z.core.$strict>]>>>;
|
|
589
|
+
}, z.core.$strict>], "status">>>;
|
|
590
590
|
}, z.core.$strict>>>;
|
|
591
591
|
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
592
592
|
}, z.core.$strict>>;
|
|
@@ -598,7 +598,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
598
598
|
}, z.core.$strict>>>;
|
|
599
599
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
600
600
|
thread: z.ZodReadonly<z.ZodObject<{
|
|
601
|
-
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
601
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
602
602
|
title: z.ZodOptional<z.ZodString>;
|
|
603
603
|
model: z.ZodOptional<z.ZodString>;
|
|
604
604
|
createdAt: z.ZodString;
|
|
@@ -621,7 +621,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
621
621
|
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
622
622
|
}, z.core.$strict>>;
|
|
623
623
|
activeTurn: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
624
|
-
id: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
624
|
+
id: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
625
625
|
status: z.ZodEnum<{
|
|
626
626
|
running: "running";
|
|
627
627
|
cancelling: "cancelling";
|
|
@@ -629,8 +629,8 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
629
629
|
startedAt: z.ZodString;
|
|
630
630
|
}, z.core.$strict>>>;
|
|
631
631
|
pendingApprovals: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
632
|
-
id: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
633
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
632
|
+
id: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
633
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
634
634
|
agentName: z.ZodString;
|
|
635
635
|
toolName: z.ZodString;
|
|
636
636
|
preview: z.ZodJSONSchema;
|
|
@@ -642,7 +642,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
642
642
|
}>;
|
|
643
643
|
operations: z.ZodReadonly<z.ZodObject<{
|
|
644
644
|
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
645
|
-
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
645
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
|
|
646
646
|
sequence: z.ZodNumber;
|
|
647
647
|
toolCallId: z.ZodString;
|
|
648
648
|
agentName: z.ZodString;
|
|
@@ -679,7 +679,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
679
679
|
expired: "expired";
|
|
680
680
|
denied: "denied";
|
|
681
681
|
}>;
|
|
682
|
-
}, z.core.$strict>]>>>;
|
|
682
|
+
}, z.core.$strict>], "status">>>;
|
|
683
683
|
}, z.core.$strict>>>;
|
|
684
684
|
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
685
685
|
}, z.core.$strict>>;
|
|
@@ -690,7 +690,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
690
690
|
unextracted: z.ZodBoolean;
|
|
691
691
|
requiredItemCount: z.ZodNumber;
|
|
692
692
|
}, z.core.$strict>>>>;
|
|
693
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
693
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
694
694
|
liveAssistantMessages: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
695
695
|
status: z.ZodLiteral<"streaming">;
|
|
696
696
|
streamId: z.ZodString;
|
|
@@ -699,22 +699,22 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
699
699
|
status: z.ZodLiteral<"completed">;
|
|
700
700
|
streamId: z.ZodString;
|
|
701
701
|
text: z.ZodString;
|
|
702
|
-
}, z.core.$strict>>]>>>;
|
|
702
|
+
}, z.core.$strict>>], "status">>>;
|
|
703
703
|
interactions: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
704
704
|
status: z.ZodLiteral<"pending">;
|
|
705
705
|
request: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
706
706
|
method: z.ZodLiteral<"approval.request">;
|
|
707
707
|
projection: z.ZodReadonly<z.ZodObject<{
|
|
708
|
-
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
708
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
709
709
|
agentName: z.ZodString;
|
|
710
710
|
toolName: z.ZodString;
|
|
711
711
|
explanation: z.ZodOptional<z.ZodString>;
|
|
712
712
|
}, z.core.$strict>>;
|
|
713
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
713
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
714
714
|
relaySequence: z.ZodNumber;
|
|
715
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
716
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
717
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
715
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
716
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
717
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
718
718
|
expiresAt: z.ZodString;
|
|
719
719
|
sensitivity: z.ZodLiteral<"normal">;
|
|
720
720
|
type: z.ZodLiteral<"interaction.request">;
|
|
@@ -768,32 +768,32 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
768
768
|
description: z.ZodOptional<z.ZodString>;
|
|
769
769
|
required: z.ZodBoolean;
|
|
770
770
|
type: z.ZodLiteral<"choice">;
|
|
771
|
-
}, z.core.$strict>>]>>;
|
|
771
|
+
}, z.core.$strict>>], "type">>;
|
|
772
772
|
}, z.core.$strict>>;
|
|
773
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
773
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
774
774
|
relaySequence: z.ZodNumber;
|
|
775
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
776
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
777
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
775
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
776
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
777
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
778
778
|
expiresAt: z.ZodString;
|
|
779
779
|
sensitivity: z.ZodLiteral<"normal">;
|
|
780
780
|
type: z.ZodLiteral<"interaction.request">;
|
|
781
|
-
}, z.core.$strict>>]>;
|
|
781
|
+
}, z.core.$strict>>], "method">;
|
|
782
782
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
783
783
|
status: z.ZodLiteral<"responding">;
|
|
784
784
|
request: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
785
785
|
method: z.ZodLiteral<"approval.request">;
|
|
786
786
|
projection: z.ZodReadonly<z.ZodObject<{
|
|
787
|
-
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
787
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
788
788
|
agentName: z.ZodString;
|
|
789
789
|
toolName: z.ZodString;
|
|
790
790
|
explanation: z.ZodOptional<z.ZodString>;
|
|
791
791
|
}, z.core.$strict>>;
|
|
792
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
792
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
793
793
|
relaySequence: z.ZodNumber;
|
|
794
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
795
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
796
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
794
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
795
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
796
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
797
797
|
expiresAt: z.ZodString;
|
|
798
798
|
sensitivity: z.ZodLiteral<"normal">;
|
|
799
799
|
type: z.ZodLiteral<"interaction.request">;
|
|
@@ -847,58 +847,58 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
847
847
|
description: z.ZodOptional<z.ZodString>;
|
|
848
848
|
required: z.ZodBoolean;
|
|
849
849
|
type: z.ZodLiteral<"choice">;
|
|
850
|
-
}, z.core.$strict>>]>>;
|
|
850
|
+
}, z.core.$strict>>], "type">>;
|
|
851
851
|
}, z.core.$strict>>;
|
|
852
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
852
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
853
853
|
relaySequence: z.ZodNumber;
|
|
854
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
855
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
856
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
854
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
855
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
856
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
857
857
|
expiresAt: z.ZodString;
|
|
858
858
|
sensitivity: z.ZodLiteral<"normal">;
|
|
859
859
|
type: z.ZodLiteral<"interaction.request">;
|
|
860
|
-
}, z.core.$strict>>]>;
|
|
860
|
+
}, z.core.$strict>>], "method">;
|
|
861
861
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
862
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
863
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
864
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
862
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
863
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
864
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
865
865
|
method: z.ZodUnion<[z.ZodLiteral<"approval.request">, z.ZodLiteral<"userInput.request">]>;
|
|
866
866
|
status: z.ZodLiteral<"resolved">;
|
|
867
867
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
868
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
869
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
870
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
868
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
869
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
870
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
871
871
|
method: z.ZodUnion<[z.ZodLiteral<"approval.request">, z.ZodLiteral<"userInput.request">]>;
|
|
872
872
|
status: z.ZodLiteral<"cancelled">;
|
|
873
|
-
}, z.core.$strict>>]>>>;
|
|
873
|
+
}, z.core.$strict>>], "status">>>;
|
|
874
874
|
turn: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
875
875
|
status: z.ZodLiteral<"idle">;
|
|
876
876
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
877
877
|
status: z.ZodLiteral<"running">;
|
|
878
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
878
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
879
879
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
880
880
|
status: z.ZodLiteral<"cancelling">;
|
|
881
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
881
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
882
882
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
883
883
|
status: z.ZodLiteral<"completed">;
|
|
884
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
884
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
885
885
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
886
886
|
status: z.ZodLiteral<"cancelled">;
|
|
887
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
887
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
888
888
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
889
889
|
status: z.ZodLiteral<"failed">;
|
|
890
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
890
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
891
891
|
stage: z.ZodEnum<{
|
|
892
892
|
bootstrap: "bootstrap";
|
|
893
893
|
plan: "plan";
|
|
894
894
|
execute: "execute";
|
|
895
895
|
}>;
|
|
896
|
-
}, z.core.$strict>>]>;
|
|
896
|
+
}, z.core.$strict>>], "status">;
|
|
897
897
|
status: z.ZodLiteral<"ready">;
|
|
898
898
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
899
899
|
snapshot: z.ZodNullable<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
900
900
|
thread: z.ZodReadonly<z.ZodObject<{
|
|
901
|
-
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
901
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
902
902
|
title: z.ZodOptional<z.ZodString>;
|
|
903
903
|
model: z.ZodOptional<z.ZodString>;
|
|
904
904
|
createdAt: z.ZodString;
|
|
@@ -921,7 +921,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
921
921
|
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
922
922
|
}, z.core.$strict>>;
|
|
923
923
|
activeTurn: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
924
|
-
id: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
924
|
+
id: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
925
925
|
status: z.ZodEnum<{
|
|
926
926
|
running: "running";
|
|
927
927
|
cancelling: "cancelling";
|
|
@@ -929,8 +929,8 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
929
929
|
startedAt: z.ZodString;
|
|
930
930
|
}, z.core.$strict>>>;
|
|
931
931
|
pendingApprovals: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
932
|
-
id: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
933
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
932
|
+
id: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
933
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
934
934
|
agentName: z.ZodString;
|
|
935
935
|
toolName: z.ZodString;
|
|
936
936
|
preview: z.ZodJSONSchema;
|
|
@@ -942,7 +942,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
942
942
|
}>;
|
|
943
943
|
operations: z.ZodReadonly<z.ZodObject<{
|
|
944
944
|
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
945
|
-
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
945
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
|
|
946
946
|
sequence: z.ZodNumber;
|
|
947
947
|
toolCallId: z.ZodString;
|
|
948
948
|
agentName: z.ZodString;
|
|
@@ -979,7 +979,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
979
979
|
expired: "expired";
|
|
980
980
|
denied: "denied";
|
|
981
981
|
}>;
|
|
982
|
-
}, z.core.$strict>]>>>;
|
|
982
|
+
}, z.core.$strict>], "status">>>;
|
|
983
983
|
}, z.core.$strict>>>;
|
|
984
984
|
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
985
985
|
}, z.core.$strict>>;
|
|
@@ -991,7 +991,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
991
991
|
}, z.core.$strict>>>;
|
|
992
992
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
993
993
|
thread: z.ZodReadonly<z.ZodObject<{
|
|
994
|
-
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
994
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
995
995
|
title: z.ZodOptional<z.ZodString>;
|
|
996
996
|
model: z.ZodOptional<z.ZodString>;
|
|
997
997
|
createdAt: z.ZodString;
|
|
@@ -1014,7 +1014,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
1014
1014
|
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
1015
1015
|
}, z.core.$strict>>;
|
|
1016
1016
|
activeTurn: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
1017
|
-
id: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1017
|
+
id: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1018
1018
|
status: z.ZodEnum<{
|
|
1019
1019
|
running: "running";
|
|
1020
1020
|
cancelling: "cancelling";
|
|
@@ -1022,8 +1022,8 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
1022
1022
|
startedAt: z.ZodString;
|
|
1023
1023
|
}, z.core.$strict>>>;
|
|
1024
1024
|
pendingApprovals: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1025
|
-
id: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
1026
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1025
|
+
id: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
1026
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1027
1027
|
agentName: z.ZodString;
|
|
1028
1028
|
toolName: z.ZodString;
|
|
1029
1029
|
preview: z.ZodJSONSchema;
|
|
@@ -1035,7 +1035,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
1035
1035
|
}>;
|
|
1036
1036
|
operations: z.ZodReadonly<z.ZodObject<{
|
|
1037
1037
|
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1038
|
-
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
1038
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
|
|
1039
1039
|
sequence: z.ZodNumber;
|
|
1040
1040
|
toolCallId: z.ZodString;
|
|
1041
1041
|
agentName: z.ZodString;
|
|
@@ -1072,7 +1072,7 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
1072
1072
|
expired: "expired";
|
|
1073
1073
|
denied: "denied";
|
|
1074
1074
|
}>;
|
|
1075
|
-
}, z.core.$strict>]>>>;
|
|
1075
|
+
}, z.core.$strict>], "status">>>;
|
|
1076
1076
|
}, z.core.$strict>>>;
|
|
1077
1077
|
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
1078
1078
|
}, z.core.$strict>>;
|
|
@@ -1109,14 +1109,14 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
1109
1109
|
message: z.ZodString;
|
|
1110
1110
|
retryable: z.ZodBoolean;
|
|
1111
1111
|
kind: z.ZodLiteral<"remote">;
|
|
1112
|
-
}, z.core.$strict>>]>;
|
|
1112
|
+
}, z.core.$strict>>], "kind">;
|
|
1113
1113
|
contextRecovery: z.ZodDefault<z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
1114
1114
|
checkpointId: z.ZodString;
|
|
1115
1115
|
required: z.ZodBoolean;
|
|
1116
1116
|
unextracted: z.ZodBoolean;
|
|
1117
1117
|
requiredItemCount: z.ZodNumber;
|
|
1118
1118
|
}, z.core.$strict>>>>;
|
|
1119
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
1119
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
1120
1120
|
liveAssistantMessages: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
1121
1121
|
status: z.ZodLiteral<"streaming">;
|
|
1122
1122
|
streamId: z.ZodString;
|
|
@@ -1125,22 +1125,22 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
1125
1125
|
status: z.ZodLiteral<"completed">;
|
|
1126
1126
|
streamId: z.ZodString;
|
|
1127
1127
|
text: z.ZodString;
|
|
1128
|
-
}, z.core.$strict>>]>>>;
|
|
1128
|
+
}, z.core.$strict>>], "status">>>;
|
|
1129
1129
|
interactions: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
1130
1130
|
status: z.ZodLiteral<"pending">;
|
|
1131
1131
|
request: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
1132
1132
|
method: z.ZodLiteral<"approval.request">;
|
|
1133
1133
|
projection: z.ZodReadonly<z.ZodObject<{
|
|
1134
|
-
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
1134
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
1135
1135
|
agentName: z.ZodString;
|
|
1136
1136
|
toolName: z.ZodString;
|
|
1137
1137
|
explanation: z.ZodOptional<z.ZodString>;
|
|
1138
1138
|
}, z.core.$strict>>;
|
|
1139
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
1139
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
1140
1140
|
relaySequence: z.ZodNumber;
|
|
1141
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
1142
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
1143
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1141
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
1142
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
1143
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1144
1144
|
expiresAt: z.ZodString;
|
|
1145
1145
|
sensitivity: z.ZodLiteral<"normal">;
|
|
1146
1146
|
type: z.ZodLiteral<"interaction.request">;
|
|
@@ -1194,32 +1194,32 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
1194
1194
|
description: z.ZodOptional<z.ZodString>;
|
|
1195
1195
|
required: z.ZodBoolean;
|
|
1196
1196
|
type: z.ZodLiteral<"choice">;
|
|
1197
|
-
}, z.core.$strict>>]>>;
|
|
1197
|
+
}, z.core.$strict>>], "type">>;
|
|
1198
1198
|
}, z.core.$strict>>;
|
|
1199
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
1199
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
1200
1200
|
relaySequence: z.ZodNumber;
|
|
1201
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
1202
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
1203
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1201
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
1202
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
1203
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1204
1204
|
expiresAt: z.ZodString;
|
|
1205
1205
|
sensitivity: z.ZodLiteral<"normal">;
|
|
1206
1206
|
type: z.ZodLiteral<"interaction.request">;
|
|
1207
|
-
}, z.core.$strict>>]>;
|
|
1207
|
+
}, z.core.$strict>>], "method">;
|
|
1208
1208
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1209
1209
|
status: z.ZodLiteral<"responding">;
|
|
1210
1210
|
request: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
1211
1211
|
method: z.ZodLiteral<"approval.request">;
|
|
1212
1212
|
projection: z.ZodReadonly<z.ZodObject<{
|
|
1213
|
-
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
1213
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId", "out">;
|
|
1214
1214
|
agentName: z.ZodString;
|
|
1215
1215
|
toolName: z.ZodString;
|
|
1216
1216
|
explanation: z.ZodOptional<z.ZodString>;
|
|
1217
1217
|
}, z.core.$strict>>;
|
|
1218
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
1218
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
1219
1219
|
relaySequence: z.ZodNumber;
|
|
1220
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
1221
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
1222
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1220
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
1221
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
1222
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1223
1223
|
expiresAt: z.ZodString;
|
|
1224
1224
|
sensitivity: z.ZodLiteral<"normal">;
|
|
1225
1225
|
type: z.ZodLiteral<"interaction.request">;
|
|
@@ -1273,55 +1273,55 @@ export declare const relayThreadViewSchema: z.ZodDiscriminatedUnion<[z.ZodReadon
|
|
|
1273
1273
|
description: z.ZodOptional<z.ZodString>;
|
|
1274
1274
|
required: z.ZodBoolean;
|
|
1275
1275
|
type: z.ZodLiteral<"choice">;
|
|
1276
|
-
}, z.core.$strict>>]>>;
|
|
1276
|
+
}, z.core.$strict>>], "type">>;
|
|
1277
1277
|
}, z.core.$strict>>;
|
|
1278
|
-
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
1278
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId", "out">;
|
|
1279
1279
|
relaySequence: z.ZodNumber;
|
|
1280
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
1281
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
1282
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1280
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
1281
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
1282
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1283
1283
|
expiresAt: z.ZodString;
|
|
1284
1284
|
sensitivity: z.ZodLiteral<"normal">;
|
|
1285
1285
|
type: z.ZodLiteral<"interaction.request">;
|
|
1286
|
-
}, z.core.$strict>>]>;
|
|
1286
|
+
}, z.core.$strict>>], "method">;
|
|
1287
1287
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1288
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
1289
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
1290
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1288
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
1289
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
1290
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1291
1291
|
method: z.ZodUnion<[z.ZodLiteral<"approval.request">, z.ZodLiteral<"userInput.request">]>;
|
|
1292
1292
|
status: z.ZodLiteral<"resolved">;
|
|
1293
1293
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1294
|
-
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
1295
|
-
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
1296
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1294
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId", "out">;
|
|
1295
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId", "out">;
|
|
1296
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1297
1297
|
method: z.ZodUnion<[z.ZodLiteral<"approval.request">, z.ZodLiteral<"userInput.request">]>;
|
|
1298
1298
|
status: z.ZodLiteral<"cancelled">;
|
|
1299
|
-
}, z.core.$strict>>]>>>;
|
|
1299
|
+
}, z.core.$strict>>], "status">>>;
|
|
1300
1300
|
turn: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
1301
1301
|
status: z.ZodLiteral<"idle">;
|
|
1302
1302
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1303
1303
|
status: z.ZodLiteral<"running">;
|
|
1304
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1304
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1305
1305
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1306
1306
|
status: z.ZodLiteral<"cancelling">;
|
|
1307
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1307
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1308
1308
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1309
1309
|
status: z.ZodLiteral<"completed">;
|
|
1310
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1310
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1311
1311
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1312
1312
|
status: z.ZodLiteral<"cancelled">;
|
|
1313
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1313
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1314
1314
|
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
1315
1315
|
status: z.ZodLiteral<"failed">;
|
|
1316
|
-
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
1316
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId", "out">;
|
|
1317
1317
|
stage: z.ZodEnum<{
|
|
1318
1318
|
bootstrap: "bootstrap";
|
|
1319
1319
|
plan: "plan";
|
|
1320
1320
|
execute: "execute";
|
|
1321
1321
|
}>;
|
|
1322
|
-
}, z.core.$strict>>]>;
|
|
1322
|
+
}, z.core.$strict>>], "status">;
|
|
1323
1323
|
status: z.ZodLiteral<"error">;
|
|
1324
|
-
}, z.core.$strict>>]>;
|
|
1324
|
+
}, z.core.$strict>>], "status">;
|
|
1325
1325
|
export type RelayConnectionState = z.output<typeof relayConnectionStateSchema>;
|
|
1326
1326
|
export type RelayClientTransportErrorCode = z.output<typeof relayClientTransportErrorCodeSchema>;
|
|
1327
1327
|
export type RelayClientErrorDetails = z.output<typeof relayClientErrorDetailsSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roll-agent/relay-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"repository": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"node": ">=22.6.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@roll-agent/relay-protocol": "0.5.
|
|
35
|
-
"zod": "
|
|
34
|
+
"@roll-agent/relay-protocol": "0.5.2",
|
|
35
|
+
"zod": "4.6.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^22.0.0",
|