effect-durable-agent 0.1.0-alpha.17 → 0.1.0-alpha.19
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/{commands-p8venTWs.d.ts → commands-3OD-p8dD.d.ts} +7 -8
- package/dist/{compaction-Db6eoLce.js → compaction-Bell28K8.js} +2 -4
- package/dist/{compaction-Db6eoLce.js.map → compaction-Bell28K8.js.map} +1 -1
- package/dist/{context-projection-n6Rdup0N.d.ts → context-projection-D_uRtK3r.d.ts} +13 -14
- package/dist/{core-C-6xHzRx.d.ts → core-BcimKMIv.d.ts} +1 -2
- package/dist/domain/command-queues.d.ts +81 -2
- package/dist/domain/command-queues.js.map +1 -1
- package/dist/domain/context-projection.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/message-transcript.js.map +1 -1
- package/dist/domain/model-usage.d.ts +1 -1
- package/dist/domain/reduced-state-schema.d.ts +3 -992
- package/dist/domain/reduced-state-schema.js +114 -2
- package/dist/domain/reduced-state-schema.js.map +1 -1
- package/dist/domain/reduced-state.d.ts +2 -2
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/domain/run-scheduling.js.map +1 -1
- package/dist/durable-DRY7AcsF.js.map +1 -1
- package/dist/{durable-Ceu9SC2D.d.ts → durable-DoG_e4iL.d.ts} +1486 -1487
- package/dist/envelope-BCzKUq_z.js.map +1 -1
- package/dist/{envelope-VXFEC8zr.d.ts → envelope-Che6KatU.d.ts} +29 -30
- package/dist/event-factory-CKuWhjS4.js.map +1 -1
- package/dist/{events-D3OAPXgS.d.ts → events-sxIzJY26.d.ts} +124 -122
- package/dist/{id-generator--x6itQZ2.d.ts → id-generator-BKGoKjt-.d.ts} +2 -3
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -2
- package/dist/{keep-alive-Chl5SJxy.d.ts → keep-alive-_zFCUvt3.d.ts} +1 -2
- package/dist/{model-resolver-ci5D5WQv.d.ts → model-resolver-BHYVHsam.d.ts} +3 -3
- package/dist/{model-usage-CNcnhj72.d.ts → model-usage-0GeHwaaU.d.ts} +2 -3
- package/dist/reduced-state-DFIYylAq.js.map +1 -1
- package/dist/{index-DWC70Fsi.d.ts → reduced-state-DrSHn_47.d.ts} +12581 -9701
- package/dist/reduced-state-schema-CPEmuHLY.d.ts +2167 -0
- package/dist/{reducer-registry-nO4biZlg.d.ts → reducer-registry-C3ZidOI1.d.ts} +8 -7
- package/dist/{run-scheduling-wakeup-CXT5_CkI.d.ts → run-scheduling-wakeup-COUj3r_B.d.ts} +2 -3
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/compaction.js +1 -1
- package/dist/services/id-generator.d.ts +1 -1
- package/dist/services/id-generator.js +2 -1
- package/dist/services/id-generator.js.map +1 -1
- package/dist/services/keep-alive.d.ts +1 -1
- package/dist/services/keep-alive.js.map +1 -1
- package/dist/services/model-resolver.d.ts +1 -1
- package/dist/services/model-resolver.js.map +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/prompt-projector.js.map +1 -1
- package/dist/services/reducer-registry.d.ts +1 -1
- package/dist/services/reducer-registry.js.map +1 -1
- package/dist/services/run-scheduler.d.ts +1 -2
- package/dist/services/run-scheduler.js.map +1 -1
- package/dist/services/run-scheduling-wakeup.d.ts +1 -1
- package/dist/services/run-scheduling-wakeup.js.map +1 -1
- package/dist/services/runtime-layer.d.ts +11 -35
- package/dist/services/runtime-layer.js +3 -3
- package/dist/services/runtime-layer.js.map +1 -1
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +12 -3
- package/dist/services/runtime.js.map +1 -1
- package/dist/services/session-event-observer.d.ts +1 -1
- package/dist/services/session-event-observer.js.map +1 -1
- package/dist/services/session-query.d.ts +2 -2
- package/dist/services/session-query.js +24 -8
- package/dist/services/session-query.js.map +1 -1
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/session-store.d.ts +1 -1
- package/dist/services/session-store.js +5 -3
- package/dist/services/session-store.js.map +1 -1
- package/dist/services/sink-checkpoint-store.d.ts +1 -1
- package/dist/services/sink-checkpoint-store.js +2 -1
- package/dist/services/sink-checkpoint-store.js.map +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/sink-registry.js +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/services/tool-registry.js.map +1 -1
- package/dist/services/tracing.d.ts +3 -3
- package/dist/services/tracing.js.map +1 -1
- package/dist/{session-event-observer-BWppl2Fr.d.ts → session-event-observer-BDwja1jX.d.ts} +3 -3
- package/dist/{session-state-8PJZvuR3.js → session-state-BBzzJrDC.js} +78 -50
- package/dist/{session-state-8PJZvuR3.js.map → session-state-BBzzJrDC.js.map} +1 -1
- package/dist/{session-store-DBa-TOVH.d.ts → session-store-B_vh581h.d.ts} +9 -9
- package/dist/{sink-checkpoint-store-BZGfJLve.d.ts → sink-checkpoint-store-2SxoNMbI.d.ts} +3 -4
- package/dist/{sink-registry-B4yxTmlI.js → sink-registry-ogHu2Sw7.js} +2 -2
- package/dist/{sink-registry-B4yxTmlI.js.map → sink-registry-ogHu2Sw7.js.map} +1 -1
- package/dist/testkit/layers.d.ts +13 -18
- package/dist/testkit/layers.js +3 -3
- package/dist/testkit/layers.js.map +1 -1
- package/dist/{tool-registry-NOP9aTHT.d.ts → tool-registry-DDxbmMpY.d.ts} +5 -5
- package/dist/{tracing-BXHAkxkx.d.ts → tracing-BwjbF285.d.ts} +1 -2
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/commands.js.map +1 -1
- package/dist/types/core.d.ts +1 -1
- package/dist/types/core.js.map +1 -1
- package/dist/types/events/durable.d.ts +1 -1
- package/dist/types/events.d.ts +4 -4
- package/dist/types/tracing.d.ts +1 -1
- package/dist/types/tracing.js.map +1 -1
- package/dist/websocket.d.ts +197 -187
- package/dist/websocket.js +4 -3
- package/dist/websocket.js.map +1 -1
- package/package.json +7 -7
- package/dist/command-queues-w9WUKTpM.d.ts +0 -556
- package/dist/compaction-DhIJ-sAH.d.ts +0 -165
- package/dist/event-factory-CHP1-DAF.d.ts +0 -91
- package/dist/message-transcript-BfuGCZhP.d.ts +0 -32
- package/dist/prompt-projector-DvNHsoEN.d.ts +0 -39
- package/dist/run-scheduler-DFBqIRzF.d.ts +0 -43
- package/dist/sink-registry-tpmJ-Dhf.d.ts +0 -148
package/dist/websocket.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMessageCommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand } from "./commands-3OD-p8dD.js";
|
|
2
|
+
import { h as SequenceNumber } from "./core-BcimKMIv.js";
|
|
3
|
+
import { f as PositionedEvent, i as EventEnvelope } from "./envelope-Che6KatU.js";
|
|
4
|
+
import "./events-sxIzJY26.js";
|
|
5
|
+
import "./reduced-state-DrSHn_47.js";
|
|
4
6
|
import * as Effect from "effect/Effect";
|
|
5
7
|
import * as Schema from "effect/Schema";
|
|
6
|
-
|
|
7
8
|
//#region src/websocket/protocol.d.ts
|
|
8
9
|
/** Current EDA live-event WebSocket wire protocol version. */
|
|
9
10
|
declare const EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION: 1;
|
|
10
11
|
/** Flow-control policy announced by the server in the hello frame. */
|
|
11
12
|
declare const EDAWebSocketWireFlowControl: Schema.Struct<{
|
|
12
|
-
readonly ackTimeoutMs: Schema.Int;
|
|
13
|
+
readonly ackTimeoutMs: Schema.Int;
|
|
14
|
+
/** Deprecated: servers no longer send heartbeat frames. Kept so deployed clients can decode hello. */
|
|
13
15
|
readonly heartbeatIntervalMs: Schema.Int;
|
|
14
16
|
readonly maxFrameBytes: Schema.Int;
|
|
15
17
|
readonly maxFrameEvents: Schema.Int;
|
|
16
|
-
readonly maxInFlightFrames: Schema.Int;
|
|
18
|
+
readonly maxInFlightFrames: Schema.Int;
|
|
19
|
+
/** Suggested client-originated ping cadence; absent on servers that still send heartbeats. */
|
|
17
20
|
readonly pingIntervalMs: Schema.optionalKey<Schema.Int>;
|
|
18
21
|
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
19
22
|
}>;
|
|
@@ -43,11 +46,13 @@ declare const EDAWebSocketWireHelloFrame: Schema.Struct<{
|
|
|
43
46
|
readonly subscriberId: Schema.NonEmptyString;
|
|
44
47
|
readonly resumeSeq: Schema.Int;
|
|
45
48
|
readonly flowControl: Schema.Struct<{
|
|
46
|
-
readonly ackTimeoutMs: Schema.Int;
|
|
49
|
+
readonly ackTimeoutMs: Schema.Int;
|
|
50
|
+
/** Deprecated: servers no longer send heartbeat frames. Kept so deployed clients can decode hello. */
|
|
47
51
|
readonly heartbeatIntervalMs: Schema.Int;
|
|
48
52
|
readonly maxFrameBytes: Schema.Int;
|
|
49
53
|
readonly maxFrameEvents: Schema.Int;
|
|
50
|
-
readonly maxInFlightFrames: Schema.Int;
|
|
54
|
+
readonly maxInFlightFrames: Schema.Int;
|
|
55
|
+
/** Suggested client-originated ping cadence; absent on servers that still send heartbeats. */
|
|
51
56
|
readonly pingIntervalMs: Schema.optionalKey<Schema.Int>;
|
|
52
57
|
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
53
58
|
}>;
|
|
@@ -90,6 +95,28 @@ type EDAWebSocketEventConsumerPolicy<Event extends {
|
|
|
90
95
|
}, Disposition> = Readonly<Record<Event["type"], Disposition>>;
|
|
91
96
|
/** Complete framework-owned event union present on every EDA WebSocket. */
|
|
92
97
|
declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
98
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
99
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
100
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
101
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
102
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
103
|
+
readonly span: Schema.Struct<{
|
|
104
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
105
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
106
|
+
readonly sampled: Schema.Boolean;
|
|
107
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
108
|
+
}>;
|
|
109
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
110
|
+
readonly context: Schema.Struct<{
|
|
111
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
112
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
113
|
+
readonly sampled: Schema.Boolean;
|
|
114
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
115
|
+
}>;
|
|
116
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
117
|
+
}>>;
|
|
118
|
+
}>>;
|
|
119
|
+
readonly durability: Schema.Literal<"durable">;
|
|
93
120
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
94
121
|
readonly type: Schema.Literal<"TurnAttemptStarted">;
|
|
95
122
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -98,7 +125,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
98
125
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
99
126
|
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
100
127
|
}>;
|
|
101
|
-
|
|
128
|
+
}>, Schema.Struct<{
|
|
102
129
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
103
130
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
104
131
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -120,7 +147,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
120
147
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
121
148
|
}>>;
|
|
122
149
|
}>>;
|
|
123
|
-
|
|
150
|
+
readonly durability: Schema.Literal<"durable">;
|
|
124
151
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
125
152
|
readonly type: Schema.Literal<"TurnAttemptCompleted">;
|
|
126
153
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -140,7 +167,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
140
167
|
readonly responseMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
141
168
|
readonly finishMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
142
169
|
}>;
|
|
143
|
-
|
|
170
|
+
}>, Schema.Struct<{
|
|
144
171
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
145
172
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
146
173
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -162,7 +189,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
162
189
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
163
190
|
}>>;
|
|
164
191
|
}>>;
|
|
165
|
-
|
|
192
|
+
readonly durability: Schema.Literal<"durable">;
|
|
166
193
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
167
194
|
readonly type: Schema.Literal<"AssistantMessageCommitted">;
|
|
168
195
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -212,7 +239,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
212
239
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
213
240
|
}>]>>;
|
|
214
241
|
}>;
|
|
215
|
-
|
|
242
|
+
}>, Schema.Struct<{
|
|
216
243
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
217
244
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
218
245
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -234,7 +261,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
234
261
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
235
262
|
}>>;
|
|
236
263
|
}>>;
|
|
237
|
-
|
|
264
|
+
readonly durability: Schema.Literal<"durable">;
|
|
238
265
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
239
266
|
readonly type: Schema.Literal<"ToolCallCreated">;
|
|
240
267
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -244,16 +271,16 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
244
271
|
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
245
272
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
246
273
|
readonly promptPart: Schema.Struct<{
|
|
247
|
-
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
248
|
-
readonly name: Schema.NonEmptyString;
|
|
249
274
|
readonly type: Schema.Literal<"tool-call">;
|
|
250
275
|
readonly params: Schema.Unknown;
|
|
251
276
|
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
252
277
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
253
278
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
279
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
280
|
+
readonly name: Schema.NonEmptyString;
|
|
254
281
|
}>;
|
|
255
282
|
}>;
|
|
256
|
-
|
|
283
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
257
284
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
258
285
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
259
286
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -275,7 +302,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
275
302
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
276
303
|
}>>;
|
|
277
304
|
}>>;
|
|
278
|
-
|
|
305
|
+
readonly durability: Schema.Literal<"durable">;
|
|
279
306
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
280
307
|
readonly type: Schema.Literal<"SessionConfigured">;
|
|
281
308
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -286,7 +313,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
286
313
|
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
287
314
|
}>;
|
|
288
315
|
}>;
|
|
289
|
-
|
|
316
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
290
317
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
291
318
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
292
319
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -308,7 +335,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
308
335
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
309
336
|
}>>;
|
|
310
337
|
}>>;
|
|
311
|
-
|
|
338
|
+
readonly durability: Schema.Literal<"durable">;
|
|
312
339
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
313
340
|
readonly type: Schema.Literal<"RunSchedulingRequested">;
|
|
314
341
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -322,7 +349,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
322
349
|
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
323
350
|
}>]>;
|
|
324
351
|
}>;
|
|
325
|
-
|
|
352
|
+
}>, Schema.Struct<{
|
|
326
353
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
327
354
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
328
355
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -344,14 +371,14 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
344
371
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
345
372
|
}>>;
|
|
346
373
|
}>>;
|
|
347
|
-
|
|
374
|
+
readonly durability: Schema.Literal<"durable">;
|
|
348
375
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
349
376
|
readonly type: Schema.Literal<"RunSchedulingDelivered">;
|
|
350
377
|
readonly schemaVersion: Schema.Literal<number>;
|
|
351
378
|
readonly payload: Schema.Struct<{
|
|
352
379
|
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
353
380
|
}>;
|
|
354
|
-
|
|
381
|
+
}>, Schema.Struct<{
|
|
355
382
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
356
383
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
357
384
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -373,7 +400,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
373
400
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
374
401
|
}>>;
|
|
375
402
|
}>>;
|
|
376
|
-
|
|
403
|
+
readonly durability: Schema.Literal<"durable">;
|
|
377
404
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
378
405
|
readonly type: Schema.Literal<"RunSchedulingInvalidated">;
|
|
379
406
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -381,7 +408,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
381
408
|
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
382
409
|
readonly reason: Schema.Literals<readonly ["stopped", "interrupted", "message-cancelled", "ineligible"]>;
|
|
383
410
|
}>;
|
|
384
|
-
|
|
411
|
+
}>, Schema.Struct<{
|
|
385
412
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
386
413
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
387
414
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -403,7 +430,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
403
430
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
404
431
|
}>>;
|
|
405
432
|
}>>;
|
|
406
|
-
|
|
433
|
+
readonly durability: Schema.Literal<"durable">;
|
|
407
434
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
408
435
|
readonly type: Schema.Literal<"RunSchedulingGranted">;
|
|
409
436
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -411,7 +438,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
411
438
|
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
412
439
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
413
440
|
}>;
|
|
414
|
-
|
|
441
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
415
442
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
416
443
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
417
444
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -433,14 +460,14 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
433
460
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
434
461
|
}>>;
|
|
435
462
|
}>>;
|
|
436
|
-
|
|
463
|
+
readonly durability: Schema.Literal<"durable">;
|
|
437
464
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
438
465
|
readonly type: Schema.Literal<"CommandAdmitted">;
|
|
439
466
|
readonly schemaVersion: Schema.Literal<number>;
|
|
440
467
|
readonly payload: Schema.Struct<{
|
|
441
468
|
readonly command: Schema.Union<readonly [typeof SubmitMessageCommand, typeof StopTurnCommand, typeof CancelPendingMessageCommand, typeof PromotePendingMessageCommand, typeof ResumePendingMessagesCommand]>;
|
|
442
469
|
}>;
|
|
443
|
-
|
|
470
|
+
}>, Schema.Struct<{
|
|
444
471
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
445
472
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
446
473
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -462,14 +489,14 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
462
489
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
463
490
|
}>>;
|
|
464
491
|
}>>;
|
|
465
|
-
|
|
492
|
+
readonly durability: Schema.Literal<"durable">;
|
|
466
493
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
467
494
|
readonly type: Schema.Literal<"CommandStarted">;
|
|
468
495
|
readonly schemaVersion: Schema.Literal<number>;
|
|
469
496
|
readonly payload: Schema.Struct<{
|
|
470
497
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
471
498
|
}>;
|
|
472
|
-
|
|
499
|
+
}>, Schema.Struct<{
|
|
473
500
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
474
501
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
475
502
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -491,14 +518,14 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
491
518
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
492
519
|
}>>;
|
|
493
520
|
}>>;
|
|
494
|
-
|
|
521
|
+
readonly durability: Schema.Literal<"durable">;
|
|
495
522
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
496
523
|
readonly type: Schema.Literal<"CommandCompleted">;
|
|
497
524
|
readonly schemaVersion: Schema.Literal<number>;
|
|
498
525
|
readonly payload: Schema.Struct<{
|
|
499
526
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
500
527
|
}>;
|
|
501
|
-
|
|
528
|
+
}>, Schema.Struct<{
|
|
502
529
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
503
530
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
504
531
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -520,7 +547,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
520
547
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
521
548
|
}>>;
|
|
522
549
|
}>>;
|
|
523
|
-
|
|
550
|
+
readonly durability: Schema.Literal<"durable">;
|
|
524
551
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
525
552
|
readonly type: Schema.Literal<"CommandFailed">;
|
|
526
553
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -532,7 +559,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
532
559
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
533
560
|
}>;
|
|
534
561
|
}>;
|
|
535
|
-
|
|
562
|
+
}>, Schema.Struct<{
|
|
536
563
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
537
564
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
538
565
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -554,7 +581,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
554
581
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
555
582
|
}>>;
|
|
556
583
|
}>>;
|
|
557
|
-
|
|
584
|
+
readonly durability: Schema.Literal<"durable">;
|
|
558
585
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
559
586
|
readonly type: Schema.Literal<"CommandCancelled">;
|
|
560
587
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -562,7 +589,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
562
589
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
563
590
|
readonly reason: Schema.String;
|
|
564
591
|
}>;
|
|
565
|
-
|
|
592
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
566
593
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
567
594
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
568
595
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -584,7 +611,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
584
611
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
585
612
|
}>>;
|
|
586
613
|
}>>;
|
|
587
|
-
|
|
614
|
+
readonly durability: Schema.Literal<"durable">;
|
|
588
615
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
589
616
|
readonly type: Schema.Literal<"SystemMessageCommitted">;
|
|
590
617
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -592,7 +619,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
592
619
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
593
620
|
readonly content: Schema.NonEmptyString;
|
|
594
621
|
}>;
|
|
595
|
-
|
|
622
|
+
}>, Schema.Struct<{
|
|
596
623
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
597
624
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
598
625
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -614,7 +641,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
614
641
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
615
642
|
}>>;
|
|
616
643
|
}>>;
|
|
617
|
-
|
|
644
|
+
readonly durability: Schema.Literal<"durable">;
|
|
618
645
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
619
646
|
readonly type: Schema.Literal<"UserMessageCommitted">;
|
|
620
647
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -640,7 +667,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
640
667
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
641
668
|
}>]>>]>;
|
|
642
669
|
}>;
|
|
643
|
-
|
|
670
|
+
}>, Schema.Struct<{
|
|
644
671
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
645
672
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
646
673
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -662,7 +689,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
662
689
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
663
690
|
}>>;
|
|
664
691
|
}>>;
|
|
665
|
-
|
|
692
|
+
readonly durability: Schema.Literal<"durable">;
|
|
666
693
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
667
694
|
readonly type: Schema.Literal<"SteeringMessageQueued">;
|
|
668
695
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -689,7 +716,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
689
716
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
690
717
|
}>]>>]>;
|
|
691
718
|
}>;
|
|
692
|
-
|
|
719
|
+
}>, Schema.Struct<{
|
|
693
720
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
694
721
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
695
722
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -711,7 +738,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
711
738
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
712
739
|
}>>;
|
|
713
740
|
}>>;
|
|
714
|
-
|
|
741
|
+
readonly durability: Schema.Literal<"durable">;
|
|
715
742
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
716
743
|
readonly type: Schema.Literal<"SteeringMessageCancelled">;
|
|
717
744
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -720,7 +747,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
720
747
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
721
748
|
readonly reason: Schema.String;
|
|
722
749
|
}>;
|
|
723
|
-
|
|
750
|
+
}>, Schema.Struct<{
|
|
724
751
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
725
752
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
726
753
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -742,7 +769,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
742
769
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
743
770
|
}>>;
|
|
744
771
|
}>>;
|
|
745
|
-
|
|
772
|
+
readonly durability: Schema.Literal<"durable">;
|
|
746
773
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
747
774
|
readonly type: Schema.Literal<"UserMessageSubmitted">;
|
|
748
775
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -769,7 +796,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
769
796
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
770
797
|
}>]>>]>;
|
|
771
798
|
}>;
|
|
772
|
-
|
|
799
|
+
}>, Schema.Struct<{
|
|
773
800
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
774
801
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
775
802
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -791,7 +818,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
791
818
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
792
819
|
}>>;
|
|
793
820
|
}>>;
|
|
794
|
-
|
|
821
|
+
readonly durability: Schema.Literal<"durable">;
|
|
795
822
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
796
823
|
readonly type: Schema.Literal<"UserMessagePromoted">;
|
|
797
824
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -801,7 +828,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
801
828
|
readonly from: Schema.Literal<"queue">;
|
|
802
829
|
readonly to: Schema.Literal<"steer">;
|
|
803
830
|
}>;
|
|
804
|
-
|
|
831
|
+
}>, Schema.Struct<{
|
|
805
832
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
806
833
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
807
834
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -823,7 +850,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
823
850
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
824
851
|
}>>;
|
|
825
852
|
}>>;
|
|
826
|
-
|
|
853
|
+
readonly durability: Schema.Literal<"durable">;
|
|
827
854
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
828
855
|
readonly type: Schema.Literal<"UserMessageCancelled">;
|
|
829
856
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -832,7 +859,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
832
859
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
833
860
|
readonly reason: Schema.Literals<readonly ["edit", "user-cancel", "clear-paused-queue"]>;
|
|
834
861
|
}>;
|
|
835
|
-
|
|
862
|
+
}>, Schema.Struct<{
|
|
836
863
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
837
864
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
838
865
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -854,7 +881,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
854
881
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
855
882
|
}>>;
|
|
856
883
|
}>>;
|
|
857
|
-
|
|
884
|
+
readonly durability: Schema.Literal<"durable">;
|
|
858
885
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
859
886
|
readonly type: Schema.Literal<"MessageQueuePaused">;
|
|
860
887
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -864,7 +891,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
864
891
|
readonly messageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
865
892
|
readonly reason: Schema.Literal<"user-interrupted">;
|
|
866
893
|
}>;
|
|
867
|
-
|
|
894
|
+
}>, Schema.Struct<{
|
|
868
895
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
869
896
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
870
897
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -886,22 +913,22 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
886
913
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
887
914
|
}>>;
|
|
888
915
|
}>>;
|
|
889
|
-
|
|
916
|
+
readonly durability: Schema.Literal<"durable">;
|
|
890
917
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
891
918
|
readonly type: Schema.Literal<"PendingMessagesPaused">;
|
|
892
919
|
readonly schemaVersion: Schema.Literal<number>;
|
|
893
920
|
readonly payload: Schema.Union<readonly [Schema.Struct<{
|
|
894
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
895
921
|
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
896
922
|
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
897
923
|
readonly reason: Schema.Literal<"user-interrupted">;
|
|
924
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
898
925
|
}>, Schema.Struct<{
|
|
899
|
-
readonly runRequestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
900
926
|
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
901
927
|
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
902
928
|
readonly reason: Schema.Literal<"user-interrupted">;
|
|
929
|
+
readonly runRequestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
903
930
|
}>]>;
|
|
904
|
-
|
|
931
|
+
}>, Schema.Struct<{
|
|
905
932
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
906
933
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
907
934
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -923,7 +950,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
923
950
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
924
951
|
}>>;
|
|
925
952
|
}>>;
|
|
926
|
-
|
|
953
|
+
readonly durability: Schema.Literal<"durable">;
|
|
927
954
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
928
955
|
readonly type: Schema.Literal<"AssistantMessageCommitted">;
|
|
929
956
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -973,7 +1000,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
973
1000
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
974
1001
|
}>]>>;
|
|
975
1002
|
}>;
|
|
976
|
-
|
|
1003
|
+
}>, Schema.Struct<{
|
|
977
1004
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
978
1005
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
979
1006
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -995,7 +1022,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
995
1022
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
996
1023
|
}>>;
|
|
997
1024
|
}>>;
|
|
998
|
-
|
|
1025
|
+
readonly durability: Schema.Literal<"durable">;
|
|
999
1026
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1000
1027
|
readonly type: Schema.Literal<"AssistantMessageImported">;
|
|
1001
1028
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1045,7 +1072,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1045
1072
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1046
1073
|
}>]>>;
|
|
1047
1074
|
}>;
|
|
1048
|
-
|
|
1075
|
+
}>, Schema.Struct<{
|
|
1049
1076
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1050
1077
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1051
1078
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1067,7 +1094,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1067
1094
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1068
1095
|
}>>;
|
|
1069
1096
|
}>>;
|
|
1070
|
-
|
|
1097
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1071
1098
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1072
1099
|
readonly type: Schema.Literal<"AssistantPartialCommitted">;
|
|
1073
1100
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1118,7 +1145,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1118
1145
|
}>]>>;
|
|
1119
1146
|
readonly reason: Schema.String;
|
|
1120
1147
|
}>;
|
|
1121
|
-
|
|
1148
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1122
1149
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1123
1150
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1124
1151
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1140,7 +1167,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1140
1167
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1141
1168
|
}>>;
|
|
1142
1169
|
}>>;
|
|
1143
|
-
|
|
1170
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1144
1171
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1145
1172
|
readonly type: Schema.Literal<"RunStarted">;
|
|
1146
1173
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1170,7 +1197,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1170
1197
|
}>>;
|
|
1171
1198
|
}>>;
|
|
1172
1199
|
}>;
|
|
1173
|
-
|
|
1200
|
+
}>, Schema.Struct<{
|
|
1174
1201
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1175
1202
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1176
1203
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1192,14 +1219,14 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1192
1219
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1193
1220
|
}>>;
|
|
1194
1221
|
}>>;
|
|
1195
|
-
|
|
1222
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1196
1223
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1197
1224
|
readonly type: Schema.Literal<"RunCompleted">;
|
|
1198
1225
|
readonly schemaVersion: Schema.Literal<number>;
|
|
1199
1226
|
readonly payload: Schema.Struct<{
|
|
1200
1227
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1201
1228
|
}>;
|
|
1202
|
-
|
|
1229
|
+
}>, Schema.Struct<{
|
|
1203
1230
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1204
1231
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1205
1232
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1221,7 +1248,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1221
1248
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1222
1249
|
}>>;
|
|
1223
1250
|
}>>;
|
|
1224
|
-
|
|
1251
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1225
1252
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1226
1253
|
readonly type: Schema.Literal<"RunFailed">;
|
|
1227
1254
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1233,7 +1260,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1233
1260
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1234
1261
|
}>;
|
|
1235
1262
|
}>;
|
|
1236
|
-
|
|
1263
|
+
}>, Schema.Struct<{
|
|
1237
1264
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1238
1265
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1239
1266
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1255,7 +1282,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1255
1282
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1256
1283
|
}>>;
|
|
1257
1284
|
}>>;
|
|
1258
|
-
|
|
1285
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1259
1286
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1260
1287
|
readonly type: Schema.Literal<"RunInterrupted">;
|
|
1261
1288
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1263,7 +1290,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1263
1290
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1264
1291
|
readonly reason: Schema.String;
|
|
1265
1292
|
}>;
|
|
1266
|
-
|
|
1293
|
+
}>]>, Schema.Struct<{
|
|
1267
1294
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1268
1295
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1269
1296
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1285,7 +1312,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1285
1312
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1286
1313
|
}>>;
|
|
1287
1314
|
}>>;
|
|
1288
|
-
|
|
1315
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1289
1316
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1290
1317
|
readonly type: Schema.Literal<"RecoveryCompleted">;
|
|
1291
1318
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1297,7 +1324,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1297
1324
|
readonly replacementRunId: Schema.brand<Schema.String, "RunId">;
|
|
1298
1325
|
}>>;
|
|
1299
1326
|
}>;
|
|
1300
|
-
|
|
1327
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1301
1328
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1302
1329
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1303
1330
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1319,7 +1346,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1319
1346
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1320
1347
|
}>>;
|
|
1321
1348
|
}>>;
|
|
1322
|
-
|
|
1349
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1323
1350
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1324
1351
|
readonly type: Schema.Literal<"TurnStarted">;
|
|
1325
1352
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1328,7 +1355,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1328
1355
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1329
1356
|
readonly inputMessageIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "MessageId">>>;
|
|
1330
1357
|
}>;
|
|
1331
|
-
|
|
1358
|
+
}>, Schema.Struct<{
|
|
1332
1359
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1333
1360
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1334
1361
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1350,7 +1377,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1350
1377
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1351
1378
|
}>>;
|
|
1352
1379
|
}>>;
|
|
1353
|
-
|
|
1380
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1354
1381
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1355
1382
|
readonly type: Schema.Literal<"TurnCompleted">;
|
|
1356
1383
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1366,7 +1393,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1366
1393
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
1367
1394
|
}>>;
|
|
1368
1395
|
}>;
|
|
1369
|
-
|
|
1396
|
+
}>, Schema.Struct<{
|
|
1370
1397
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1371
1398
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1372
1399
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1388,7 +1415,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1388
1415
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1389
1416
|
}>>;
|
|
1390
1417
|
}>>;
|
|
1391
|
-
|
|
1418
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1392
1419
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1393
1420
|
readonly type: Schema.Literal<"TurnFailed">;
|
|
1394
1421
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1401,7 +1428,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1401
1428
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1402
1429
|
}>;
|
|
1403
1430
|
}>;
|
|
1404
|
-
|
|
1431
|
+
}>, Schema.Struct<{
|
|
1405
1432
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1406
1433
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1407
1434
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1423,7 +1450,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1423
1450
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1424
1451
|
}>>;
|
|
1425
1452
|
}>>;
|
|
1426
|
-
|
|
1453
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1427
1454
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1428
1455
|
readonly type: Schema.Literal<"TurnStopped">;
|
|
1429
1456
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1432,7 +1459,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1432
1459
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1433
1460
|
readonly reason: Schema.String;
|
|
1434
1461
|
}>;
|
|
1435
|
-
|
|
1462
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1436
1463
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1437
1464
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1438
1465
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1454,7 +1481,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1454
1481
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1455
1482
|
}>>;
|
|
1456
1483
|
}>>;
|
|
1457
|
-
|
|
1484
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1458
1485
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1459
1486
|
readonly type: Schema.Literal<"InferenceStarted">;
|
|
1460
1487
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1463,7 +1490,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1463
1490
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1464
1491
|
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1465
1492
|
}>;
|
|
1466
|
-
|
|
1493
|
+
}>, Schema.Struct<{
|
|
1467
1494
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1468
1495
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1469
1496
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1485,7 +1512,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1485
1512
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1486
1513
|
}>>;
|
|
1487
1514
|
}>>;
|
|
1488
|
-
|
|
1515
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1489
1516
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1490
1517
|
readonly type: Schema.Literal<"InferenceCompleted">;
|
|
1491
1518
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1505,7 +1532,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1505
1532
|
readonly responseMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
1506
1533
|
readonly finishMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
1507
1534
|
}>;
|
|
1508
|
-
|
|
1535
|
+
}>, Schema.Struct<{
|
|
1509
1536
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1510
1537
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1511
1538
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1527,7 +1554,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1527
1554
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1528
1555
|
}>>;
|
|
1529
1556
|
}>>;
|
|
1530
|
-
|
|
1557
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1531
1558
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1532
1559
|
readonly type: Schema.Literal<"InferenceFailed">;
|
|
1533
1560
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1541,7 +1568,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1541
1568
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1542
1569
|
}>;
|
|
1543
1570
|
}>;
|
|
1544
|
-
|
|
1571
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1545
1572
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1546
1573
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1547
1574
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1563,7 +1590,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1563
1590
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1564
1591
|
}>>;
|
|
1565
1592
|
}>>;
|
|
1566
|
-
|
|
1593
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1567
1594
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1568
1595
|
readonly type: Schema.Literal<"ToolCallCreated">;
|
|
1569
1596
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1573,16 +1600,16 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1573
1600
|
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1574
1601
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1575
1602
|
readonly promptPart: Schema.Struct<{
|
|
1576
|
-
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1577
|
-
readonly name: Schema.NonEmptyString;
|
|
1578
1603
|
readonly type: Schema.Literal<"tool-call">;
|
|
1579
1604
|
readonly params: Schema.Unknown;
|
|
1580
1605
|
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1581
1606
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1582
1607
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1608
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1609
|
+
readonly name: Schema.NonEmptyString;
|
|
1583
1610
|
}>;
|
|
1584
1611
|
}>;
|
|
1585
|
-
|
|
1612
|
+
}>, Schema.Struct<{
|
|
1586
1613
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1587
1614
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1588
1615
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1604,7 +1631,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1604
1631
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1605
1632
|
}>>;
|
|
1606
1633
|
}>>;
|
|
1607
|
-
|
|
1634
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1608
1635
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1609
1636
|
readonly type: Schema.Literal<"ToolCallRejected">;
|
|
1610
1637
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1614,20 +1641,20 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1614
1641
|
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1615
1642
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1616
1643
|
readonly promptPart: Schema.Struct<{
|
|
1644
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
1645
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1646
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1647
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1648
|
+
readonly name: Schema.NonEmptyString;
|
|
1617
1649
|
readonly isFailure: Schema.Literal<true>;
|
|
1618
1650
|
readonly result: Schema.Struct<{
|
|
1619
1651
|
readonly message: Schema.String;
|
|
1620
1652
|
readonly reason: Schema.Literals<readonly ["unknown-tool", "invalid-params"]>;
|
|
1621
1653
|
readonly modelFeedback: Schema.NonEmptyString;
|
|
1622
1654
|
}>;
|
|
1623
|
-
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1624
|
-
readonly name: Schema.NonEmptyString;
|
|
1625
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
1626
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1627
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1628
1655
|
}>;
|
|
1629
1656
|
}>;
|
|
1630
|
-
|
|
1657
|
+
}>, Schema.Struct<{
|
|
1631
1658
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1632
1659
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1633
1660
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1649,14 +1676,14 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1649
1676
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1650
1677
|
}>>;
|
|
1651
1678
|
}>>;
|
|
1652
|
-
|
|
1679
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1653
1680
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1654
1681
|
readonly type: Schema.Literal<"ToolCallStarted">;
|
|
1655
1682
|
readonly schemaVersion: Schema.Literal<number>;
|
|
1656
1683
|
readonly payload: Schema.Struct<{
|
|
1657
1684
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1658
1685
|
}>;
|
|
1659
|
-
|
|
1686
|
+
}>, Schema.Struct<{
|
|
1660
1687
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1661
1688
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1662
1689
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1678,23 +1705,23 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1678
1705
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1679
1706
|
}>>;
|
|
1680
1707
|
}>>;
|
|
1681
|
-
|
|
1708
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1682
1709
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1683
1710
|
readonly type: Schema.Literal<"ToolCallCompleted">;
|
|
1684
1711
|
readonly schemaVersion: Schema.Literal<number>;
|
|
1685
1712
|
readonly payload: Schema.Struct<{
|
|
1686
1713
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1687
1714
|
readonly promptPart: Schema.Struct<{
|
|
1688
|
-
readonly isFailure: Schema.Literal<false>;
|
|
1689
|
-
readonly result: Schema.Unknown;
|
|
1690
|
-
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1691
|
-
readonly name: Schema.NonEmptyString;
|
|
1692
1715
|
readonly type: Schema.Literal<"tool-result">;
|
|
1693
1716
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1694
1717
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1718
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1719
|
+
readonly name: Schema.NonEmptyString;
|
|
1720
|
+
readonly isFailure: Schema.Literal<false>;
|
|
1721
|
+
readonly result: Schema.Unknown;
|
|
1695
1722
|
}>;
|
|
1696
1723
|
}>;
|
|
1697
|
-
|
|
1724
|
+
}>, Schema.Struct<{
|
|
1698
1725
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1699
1726
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1700
1727
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1716,7 +1743,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1716
1743
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1717
1744
|
}>>;
|
|
1718
1745
|
}>>;
|
|
1719
|
-
|
|
1746
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1720
1747
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1721
1748
|
readonly type: Schema.Literal<"ToolCallFailed">;
|
|
1722
1749
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1728,20 +1755,20 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1728
1755
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1729
1756
|
}>>;
|
|
1730
1757
|
readonly promptPart: Schema.Struct<{
|
|
1758
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
1759
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1760
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1761
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1762
|
+
readonly name: Schema.NonEmptyString;
|
|
1731
1763
|
readonly isFailure: Schema.Literal<true>;
|
|
1732
1764
|
readonly result: Schema.Struct<{
|
|
1733
1765
|
readonly message: Schema.String;
|
|
1734
1766
|
readonly code: Schema.optionalKey<Schema.String>;
|
|
1735
1767
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1736
1768
|
}>;
|
|
1737
|
-
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1738
|
-
readonly name: Schema.NonEmptyString;
|
|
1739
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
1740
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1741
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1742
1769
|
}>;
|
|
1743
1770
|
}>;
|
|
1744
|
-
|
|
1771
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1745
1772
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1746
1773
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1747
1774
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1763,7 +1790,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1763
1790
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1764
1791
|
}>>;
|
|
1765
1792
|
}>>;
|
|
1766
|
-
|
|
1793
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1767
1794
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1768
1795
|
readonly type: Schema.Literal<"StopTurnRequested">;
|
|
1769
1796
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1772,7 +1799,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1772
1799
|
readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "RunId">>;
|
|
1773
1800
|
readonly turnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
1774
1801
|
}>;
|
|
1775
|
-
|
|
1802
|
+
}>, Schema.Struct<{
|
|
1776
1803
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1777
1804
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1778
1805
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1794,7 +1821,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1794
1821
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1795
1822
|
}>>;
|
|
1796
1823
|
}>>;
|
|
1797
|
-
|
|
1824
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1798
1825
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1799
1826
|
readonly type: Schema.Literal<"StopTurnApplied">;
|
|
1800
1827
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1804,7 +1831,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1804
1831
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1805
1832
|
readonly inferenceId: Schema.optionalKey<Schema.brand<Schema.String, "InferenceId">>;
|
|
1806
1833
|
}>;
|
|
1807
|
-
|
|
1834
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1808
1835
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1809
1836
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1810
1837
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1826,7 +1853,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1826
1853
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1827
1854
|
}>>;
|
|
1828
1855
|
}>>;
|
|
1829
|
-
|
|
1856
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1830
1857
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1831
1858
|
readonly type: Schema.Literal<"ContextProjected">;
|
|
1832
1859
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1834,7 +1861,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1834
1861
|
readonly contextVersion: Schema.brand<Schema.Int, "ContextVersion">;
|
|
1835
1862
|
readonly throughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1836
1863
|
}>;
|
|
1837
|
-
|
|
1864
|
+
}>, Schema.Struct<{
|
|
1838
1865
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1839
1866
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1840
1867
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1856,7 +1883,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1856
1883
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1857
1884
|
}>>;
|
|
1858
1885
|
}>>;
|
|
1859
|
-
|
|
1886
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1860
1887
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1861
1888
|
readonly type: Schema.Literal<"CompactionRequested">;
|
|
1862
1889
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1865,7 +1892,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1865
1892
|
readonly sourceFromSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1866
1893
|
readonly sourceToSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1867
1894
|
}>;
|
|
1868
|
-
|
|
1895
|
+
}>, Schema.Struct<{
|
|
1869
1896
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1870
1897
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1871
1898
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1887,14 +1914,14 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1887
1914
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1888
1915
|
}>>;
|
|
1889
1916
|
}>>;
|
|
1890
|
-
|
|
1917
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1891
1918
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1892
1919
|
readonly type: Schema.Literal<"CompactionStarted">;
|
|
1893
1920
|
readonly schemaVersion: Schema.Literal<number>;
|
|
1894
1921
|
readonly payload: Schema.Struct<{
|
|
1895
1922
|
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
1896
1923
|
}>;
|
|
1897
|
-
|
|
1924
|
+
}>, Schema.Struct<{
|
|
1898
1925
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1899
1926
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1900
1927
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1916,7 +1943,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1916
1943
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1917
1944
|
}>>;
|
|
1918
1945
|
}>>;
|
|
1919
|
-
|
|
1946
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1920
1947
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1921
1948
|
readonly type: Schema.Literal<"SummaryCreated">;
|
|
1922
1949
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1927,7 +1954,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1927
1954
|
readonly sourceToSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1928
1955
|
readonly summary: Schema.Unknown;
|
|
1929
1956
|
}>;
|
|
1930
|
-
|
|
1957
|
+
}>, Schema.Struct<{
|
|
1931
1958
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1932
1959
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1933
1960
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1949,7 +1976,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1949
1976
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1950
1977
|
}>>;
|
|
1951
1978
|
}>>;
|
|
1952
|
-
|
|
1979
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1953
1980
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1954
1981
|
readonly type: Schema.Literal<"CompactionCompleted">;
|
|
1955
1982
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -1969,7 +1996,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1969
1996
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
1970
1997
|
}>>;
|
|
1971
1998
|
}>;
|
|
1972
|
-
|
|
1999
|
+
}>, Schema.Struct<{
|
|
1973
2000
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1974
2001
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1975
2002
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -1991,7 +2018,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
1991
2018
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1992
2019
|
}>>;
|
|
1993
2020
|
}>>;
|
|
1994
|
-
|
|
2021
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1995
2022
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
1996
2023
|
readonly type: Schema.Literal<"ContextRebased">;
|
|
1997
2024
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2001,7 +2028,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2001
2028
|
readonly contextVersion: Schema.brand<Schema.Int, "ContextVersion">;
|
|
2002
2029
|
readonly retainedFromContextSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2003
2030
|
}>;
|
|
2004
|
-
|
|
2031
|
+
}>, Schema.Struct<{
|
|
2005
2032
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2006
2033
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2007
2034
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2023,7 +2050,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2023
2050
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2024
2051
|
}>>;
|
|
2025
2052
|
}>>;
|
|
2026
|
-
|
|
2053
|
+
readonly durability: Schema.Literal<"durable">;
|
|
2027
2054
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2028
2055
|
readonly type: Schema.Literal<"CompactionFailed">;
|
|
2029
2056
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2048,7 +2075,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2048
2075
|
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
2049
2076
|
}>>;
|
|
2050
2077
|
}>;
|
|
2051
|
-
|
|
2078
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
2052
2079
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2053
2080
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2054
2081
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2070,7 +2097,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2070
2097
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2071
2098
|
}>>;
|
|
2072
2099
|
}>>;
|
|
2073
|
-
|
|
2100
|
+
readonly durability: Schema.Literal<"durable">;
|
|
2074
2101
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2075
2102
|
readonly type: Schema.Literal<"BaseStateRequested">;
|
|
2076
2103
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2078,7 +2105,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2078
2105
|
readonly baseStateId: Schema.brand<Schema.String, "BaseStateId">;
|
|
2079
2106
|
readonly requestedThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2080
2107
|
}>;
|
|
2081
|
-
|
|
2108
|
+
}>, Schema.Struct<{
|
|
2082
2109
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2083
2110
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2084
2111
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2100,7 +2127,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2100
2127
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2101
2128
|
}>>;
|
|
2102
2129
|
}>>;
|
|
2103
|
-
|
|
2130
|
+
readonly durability: Schema.Literal<"durable">;
|
|
2104
2131
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2105
2132
|
readonly type: Schema.Literal<"BaseStateCreated">;
|
|
2106
2133
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2108,7 +2135,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2108
2135
|
readonly baseStateId: Schema.brand<Schema.String, "BaseStateId">;
|
|
2109
2136
|
readonly coversThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2110
2137
|
}>;
|
|
2111
|
-
|
|
2138
|
+
}>, Schema.Struct<{
|
|
2112
2139
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2113
2140
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2114
2141
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2130,7 +2157,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2130
2157
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2131
2158
|
}>>;
|
|
2132
2159
|
}>>;
|
|
2133
|
-
|
|
2160
|
+
readonly durability: Schema.Literal<"durable">;
|
|
2134
2161
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2135
2162
|
readonly type: Schema.Literal<"BaseStateFailed">;
|
|
2136
2163
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2142,7 +2169,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2142
2169
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
2143
2170
|
}>;
|
|
2144
2171
|
}>;
|
|
2145
|
-
|
|
2172
|
+
}>]>]>]>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
2146
2173
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2147
2174
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2148
2175
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2164,7 +2191,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2164
2191
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2165
2192
|
}>>;
|
|
2166
2193
|
}>>;
|
|
2167
|
-
|
|
2194
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
2168
2195
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2169
2196
|
readonly type: Schema.Literal<"TextDelta">;
|
|
2170
2197
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2172,7 +2199,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2172
2199
|
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
2173
2200
|
readonly delta: Schema.String;
|
|
2174
2201
|
}>;
|
|
2175
|
-
|
|
2202
|
+
}>, Schema.Struct<{
|
|
2176
2203
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2177
2204
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2178
2205
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2194,7 +2221,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2194
2221
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2195
2222
|
}>>;
|
|
2196
2223
|
}>>;
|
|
2197
|
-
|
|
2224
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
2198
2225
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2199
2226
|
readonly type: Schema.Literal<"ReasoningDelta">;
|
|
2200
2227
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2202,7 +2229,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2202
2229
|
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
2203
2230
|
readonly delta: Schema.String;
|
|
2204
2231
|
}>;
|
|
2205
|
-
|
|
2232
|
+
}>, Schema.Struct<{
|
|
2206
2233
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2207
2234
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2208
2235
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2224,7 +2251,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2224
2251
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2225
2252
|
}>>;
|
|
2226
2253
|
}>>;
|
|
2227
|
-
|
|
2254
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
2228
2255
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2229
2256
|
readonly type: Schema.Literal<"ToolParamsStart">;
|
|
2230
2257
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2234,7 +2261,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2234
2261
|
readonly toolName: Schema.NonEmptyString;
|
|
2235
2262
|
readonly providerExecuted: Schema.Boolean;
|
|
2236
2263
|
}>;
|
|
2237
|
-
|
|
2264
|
+
}>, Schema.Struct<{
|
|
2238
2265
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2239
2266
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2240
2267
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2256,7 +2283,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2256
2283
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2257
2284
|
}>>;
|
|
2258
2285
|
}>>;
|
|
2259
|
-
|
|
2286
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
2260
2287
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2261
2288
|
readonly type: Schema.Literal<"ToolParamsDelta">;
|
|
2262
2289
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2265,7 +2292,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2265
2292
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
2266
2293
|
readonly delta: Schema.String;
|
|
2267
2294
|
}>;
|
|
2268
|
-
|
|
2295
|
+
}>, Schema.Struct<{
|
|
2269
2296
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2270
2297
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2271
2298
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2287,7 +2314,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2287
2314
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2288
2315
|
}>>;
|
|
2289
2316
|
}>>;
|
|
2290
|
-
|
|
2317
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
2291
2318
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2292
2319
|
readonly type: Schema.Literal<"ToolParamsEnd">;
|
|
2293
2320
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2295,7 +2322,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2295
2322
|
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
2296
2323
|
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
2297
2324
|
}>;
|
|
2298
|
-
|
|
2325
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
2299
2326
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2300
2327
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2301
2328
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2317,7 +2344,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2317
2344
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2318
2345
|
}>>;
|
|
2319
2346
|
}>>;
|
|
2320
|
-
|
|
2347
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
2321
2348
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2322
2349
|
readonly type: Schema.Literal<"SubscriberStatus">;
|
|
2323
2350
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2325,7 +2352,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2325
2352
|
readonly status: Schema.Literals<readonly ["connected", "catching-up", "live", "lagging", "closed"]>;
|
|
2326
2353
|
readonly reason: Schema.optionalKey<Schema.String>;
|
|
2327
2354
|
}>;
|
|
2328
|
-
|
|
2355
|
+
}>, Schema.Struct<{
|
|
2329
2356
|
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2330
2357
|
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2331
2358
|
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
@@ -2347,7 +2374,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2347
2374
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2348
2375
|
}>>;
|
|
2349
2376
|
}>>;
|
|
2350
|
-
|
|
2377
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
2351
2378
|
readonly namespace: Schema.Literal<"effect-durable-agent">;
|
|
2352
2379
|
readonly type: Schema.Literal<"TraceStatus">;
|
|
2353
2380
|
readonly schemaVersion: Schema.Literal<number>;
|
|
@@ -2356,28 +2383,6 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
|
|
|
2356
2383
|
readonly spanName: Schema.NonEmptyString;
|
|
2357
2384
|
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
2358
2385
|
}>;
|
|
2359
|
-
readonly durability: Schema.Literal<"ephemeral">;
|
|
2360
|
-
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2361
|
-
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2362
|
-
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
2363
|
-
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
2364
|
-
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
2365
|
-
readonly span: Schema.Struct<{
|
|
2366
|
-
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2367
|
-
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2368
|
-
readonly sampled: Schema.Boolean;
|
|
2369
|
-
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2370
|
-
}>;
|
|
2371
|
-
readonly links: Schema.$Array<Schema.Struct<{
|
|
2372
|
-
readonly context: Schema.Struct<{
|
|
2373
|
-
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2374
|
-
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2375
|
-
readonly sampled: Schema.Boolean;
|
|
2376
|
-
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2377
|
-
}>;
|
|
2378
|
-
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2379
|
-
}>>;
|
|
2380
|
-
}>>;
|
|
2381
2386
|
}>]>]>]>;
|
|
2382
2387
|
type EDAFrameworkWebSocketEvent = typeof EDAFrameworkWebSocketEvent.Type;
|
|
2383
2388
|
declare const makeEDAWebSocketDomainSchemas: <EventSchema extends Schema.Codec<EventEnvelope, unknown, never, never>>(event: EventSchema) => {
|
|
@@ -2407,11 +2412,13 @@ declare const makeEDAWebSocketDomainSchemas: <EventSchema extends Schema.Codec<E
|
|
|
2407
2412
|
readonly subscriberId: Schema.NonEmptyString;
|
|
2408
2413
|
readonly resumeSeq: Schema.Int;
|
|
2409
2414
|
readonly flowControl: Schema.Struct<{
|
|
2410
|
-
readonly ackTimeoutMs: Schema.Int;
|
|
2415
|
+
readonly ackTimeoutMs: Schema.Int;
|
|
2416
|
+
/** Deprecated: servers no longer send heartbeat frames. Kept so deployed clients can decode hello. */
|
|
2411
2417
|
readonly heartbeatIntervalMs: Schema.Int;
|
|
2412
2418
|
readonly maxFrameBytes: Schema.Int;
|
|
2413
2419
|
readonly maxFrameEvents: Schema.Int;
|
|
2414
|
-
readonly maxInFlightFrames: Schema.Int;
|
|
2420
|
+
readonly maxInFlightFrames: Schema.Int;
|
|
2421
|
+
/** Suggested client-originated ping cadence; absent on servers that still send heartbeats. */
|
|
2415
2422
|
readonly pingIntervalMs: Schema.optionalKey<Schema.Int>;
|
|
2416
2423
|
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
2417
2424
|
}>;
|
|
@@ -2550,11 +2557,13 @@ declare const EDAWebSocketHostDomain: {
|
|
|
2550
2557
|
readonly subscriberId: Schema.NonEmptyString;
|
|
2551
2558
|
readonly resumeSeq: Schema.Int;
|
|
2552
2559
|
readonly flowControl: Schema.Struct<{
|
|
2553
|
-
readonly ackTimeoutMs: Schema.Int;
|
|
2560
|
+
readonly ackTimeoutMs: Schema.Int;
|
|
2561
|
+
/** Deprecated: servers no longer send heartbeat frames. Kept so deployed clients can decode hello. */
|
|
2554
2562
|
readonly heartbeatIntervalMs: Schema.Int;
|
|
2555
2563
|
readonly maxFrameBytes: Schema.Int;
|
|
2556
2564
|
readonly maxFrameEvents: Schema.Int;
|
|
2557
|
-
readonly maxInFlightFrames: Schema.Int;
|
|
2565
|
+
readonly maxInFlightFrames: Schema.Int;
|
|
2566
|
+
/** Suggested client-originated ping cadence; absent on servers that still send heartbeats. */
|
|
2558
2567
|
readonly pingIntervalMs: Schema.optionalKey<Schema.Int>;
|
|
2559
2568
|
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
2560
2569
|
}>;
|
|
@@ -2682,8 +2691,6 @@ type EDAWebSocketFlowControl = typeof EDAWebSocketFlowControl.Type;
|
|
|
2682
2691
|
declare const defaultEDAWebSocketFlowControl: EDAWebSocketFlowControl;
|
|
2683
2692
|
/** First server frame; announces protocol and flow-control policy. */
|
|
2684
2693
|
declare const EDAWebSocketHelloFrame: Schema.Struct<{
|
|
2685
|
-
readonly subscriberId: Schema.brand<Schema.NonEmptyString, "SubscriberId">;
|
|
2686
|
-
readonly resumeSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2687
2694
|
readonly _tag: Schema.Literal<"hello">;
|
|
2688
2695
|
readonly protocolVersion: Schema.Literal<1>;
|
|
2689
2696
|
readonly flowControl: Schema.Struct<{
|
|
@@ -2695,6 +2702,8 @@ declare const EDAWebSocketHelloFrame: Schema.Struct<{
|
|
|
2695
2702
|
readonly pingIntervalMs: Schema.optionalKey<Schema.Int>;
|
|
2696
2703
|
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
2697
2704
|
}>;
|
|
2705
|
+
readonly subscriberId: Schema.brand<Schema.NonEmptyString, "SubscriberId">;
|
|
2706
|
+
readonly resumeSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2698
2707
|
}>;
|
|
2699
2708
|
type EDAWebSocketHelloFrame = typeof EDAWebSocketHelloFrame.Type;
|
|
2700
2709
|
/** Ordered positioned events delivered to the client. */
|
|
@@ -2746,9 +2755,9 @@ type EDAWebSocketEventsFrame = typeof EDAWebSocketEventsFrame.Type;
|
|
|
2746
2755
|
* {@link EDAWebSocketPingFrame} and the host-level auto-response pong.
|
|
2747
2756
|
*/
|
|
2748
2757
|
declare const EDAWebSocketHeartbeatFrame: Schema.Struct<{
|
|
2758
|
+
readonly _tag: Schema.Literal<"heartbeat">;
|
|
2749
2759
|
readonly serverTimeMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
2750
2760
|
readonly durableThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2751
|
-
readonly _tag: Schema.Literal<"heartbeat">;
|
|
2752
2761
|
}>;
|
|
2753
2762
|
type EDAWebSocketHeartbeatFrame = typeof EDAWebSocketHeartbeatFrame.Type;
|
|
2754
2763
|
/** Client liveness ping; hosts answer with a pong and never ACK-track it. */
|
|
@@ -2763,9 +2772,9 @@ declare const EDAWebSocketPongFrame: Schema.Struct<{
|
|
|
2763
2772
|
type EDAWebSocketPongFrame = typeof EDAWebSocketPongFrame.Type;
|
|
2764
2773
|
/** Optional final frame sent before a lag-close. */
|
|
2765
2774
|
declare const EDAWebSocketLaggedFrame: Schema.Struct<{
|
|
2766
|
-
readonly resumeSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2767
2775
|
readonly _tag: Schema.Literal<"lagged">;
|
|
2768
2776
|
readonly reason: Schema.Literals<readonly ["buffer-overflow", "ack-timeout"]>;
|
|
2777
|
+
readonly resumeSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2769
2778
|
}>;
|
|
2770
2779
|
type EDAWebSocketLaggedFrame = typeof EDAWebSocketLaggedFrame.Type;
|
|
2771
2780
|
/** Optional final frame sent before a protocol/internal close. */
|
|
@@ -2776,8 +2785,6 @@ declare const EDAWebSocketErrorFrame: Schema.Struct<{
|
|
|
2776
2785
|
type EDAWebSocketErrorFrame = typeof EDAWebSocketErrorFrame.Type;
|
|
2777
2786
|
/** Server-to-client application frame union. */
|
|
2778
2787
|
declare const EDAWebSocketServerFrame: Schema.Union<readonly [Schema.Struct<{
|
|
2779
|
-
readonly subscriberId: Schema.brand<Schema.NonEmptyString, "SubscriberId">;
|
|
2780
|
-
readonly resumeSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2781
2788
|
readonly _tag: Schema.Literal<"hello">;
|
|
2782
2789
|
readonly protocolVersion: Schema.Literal<1>;
|
|
2783
2790
|
readonly flowControl: Schema.Struct<{
|
|
@@ -2789,6 +2796,8 @@ declare const EDAWebSocketServerFrame: Schema.Union<readonly [Schema.Struct<{
|
|
|
2789
2796
|
readonly pingIntervalMs: Schema.optionalKey<Schema.Int>;
|
|
2790
2797
|
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
2791
2798
|
}>;
|
|
2799
|
+
readonly subscriberId: Schema.brand<Schema.NonEmptyString, "SubscriberId">;
|
|
2800
|
+
readonly resumeSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2792
2801
|
}>, Schema.Struct<{
|
|
2793
2802
|
readonly _tag: Schema.Literal<"events">;
|
|
2794
2803
|
readonly frameId: Schema.brand<Schema.Int, "FrameId">;
|
|
@@ -2828,15 +2837,15 @@ declare const EDAWebSocketServerFrame: Schema.Union<readonly [Schema.Struct<{
|
|
|
2828
2837
|
}>>;
|
|
2829
2838
|
readonly durableThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2830
2839
|
}>, Schema.Struct<{
|
|
2840
|
+
readonly _tag: Schema.Literal<"heartbeat">;
|
|
2831
2841
|
readonly serverTimeMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
2832
2842
|
readonly durableThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2833
|
-
readonly _tag: Schema.Literal<"heartbeat">;
|
|
2834
2843
|
}>, Schema.Struct<{
|
|
2835
2844
|
readonly _tag: Schema.Literal<"pong">;
|
|
2836
2845
|
}>, Schema.Struct<{
|
|
2837
|
-
readonly resumeSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2838
2846
|
readonly _tag: Schema.Literal<"lagged">;
|
|
2839
2847
|
readonly reason: Schema.Literals<readonly ["buffer-overflow", "ack-timeout"]>;
|
|
2848
|
+
readonly resumeSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2840
2849
|
}>, Schema.Struct<{
|
|
2841
2850
|
readonly _tag: Schema.Literal<"error">;
|
|
2842
2851
|
readonly message: Schema.String;
|
|
@@ -2844,16 +2853,16 @@ declare const EDAWebSocketServerFrame: Schema.Union<readonly [Schema.Struct<{
|
|
|
2844
2853
|
type EDAWebSocketServerFrame = typeof EDAWebSocketServerFrame.Type;
|
|
2845
2854
|
/** Client acknowledgement after applying a server frame. */
|
|
2846
2855
|
declare const EDAWebSocketAckFrame: Schema.Struct<{
|
|
2856
|
+
readonly _tag: Schema.Literal<"ack">;
|
|
2847
2857
|
readonly frameId: Schema.brand<Schema.Int, "FrameId">;
|
|
2848
2858
|
readonly durableThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2849
|
-
readonly _tag: Schema.Literal<"ack">;
|
|
2850
2859
|
}>;
|
|
2851
2860
|
type EDAWebSocketAckFrame = typeof EDAWebSocketAckFrame.Type;
|
|
2852
2861
|
/** Client-to-server application frame union. */
|
|
2853
2862
|
declare const EDAWebSocketClientFrame: Schema.Union<readonly [Schema.Struct<{
|
|
2863
|
+
readonly _tag: Schema.Literal<"ack">;
|
|
2854
2864
|
readonly frameId: Schema.brand<Schema.Int, "FrameId">;
|
|
2855
2865
|
readonly durableThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2856
|
-
readonly _tag: Schema.Literal<"ack">;
|
|
2857
2866
|
}>, Schema.Struct<{
|
|
2858
2867
|
readonly _tag: Schema.Literal<"ping">;
|
|
2859
2868
|
}>]>;
|
|
@@ -2894,7 +2903,8 @@ declare const EDAWebSocketDeliveryCheckpoint: Schema.Struct<{
|
|
|
2894
2903
|
readonly frameId: Schema.brand<Schema.Int, "FrameId">;
|
|
2895
2904
|
readonly durableThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2896
2905
|
readonly sentAtMs: Schema.Number;
|
|
2897
|
-
}>>;
|
|
2906
|
+
}>>;
|
|
2907
|
+
/** Host-projected receipts waiting behind an earlier client-visible ACK. */
|
|
2898
2908
|
readonly suppressed: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2899
2909
|
readonly fromFrameId: Schema.brand<Schema.Int, "FrameId">;
|
|
2900
2910
|
readonly throughFrameId: Schema.brand<Schema.Int, "FrameId">;
|