effect-durable-agent 0.1.0-alpha.1 → 0.1.0-alpha.4
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/CHANGELOG.md +25 -1
- package/README.md +131 -128
- package/SECURITY.md +3 -4
- package/dist/{command-queues-CQ9cwRP7.d.ts → command-queues-CV7O-51r.d.ts} +7 -6
- package/dist/{compaction-YayFKo_1.d.ts → compaction-zbvLREI8.d.ts} +8 -6
- package/dist/context-projection-n6Rdup0N.d.ts +140 -0
- package/dist/{core-Hv3cFydL.d.ts → core-CYT6DBaS.d.ts} +2 -2
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/context-projection.d.ts +2 -0
- package/dist/domain/context-projection.js +32 -0
- package/dist/domain/context-projection.js.map +1 -0
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/reduced-state-schema.d.ts +2 -0
- package/dist/domain/reduced-state-schema.js +2 -1
- package/dist/domain/reduced-state-schema.js.map +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/reduced-state.js +1 -1
- package/dist/{durable-DlScwmCy.d.ts → durable-B7M6TD_0.d.ts} +341 -2
- package/dist/{durable-C3Rz7kg3.js → durable-DsV9PxZC.js} +13 -2
- package/dist/durable-DsV9PxZC.js.map +1 -0
- package/dist/{keep-alive-DYDsH6qN.d.ts → event-factory-CLJcyymV.d.ts} +5 -29
- package/dist/{keep-alive-p8dIcSVy.js → event-factory-tcpLgdMN.js} +3 -10
- package/dist/event-factory-tcpLgdMN.js.map +1 -0
- package/dist/host/websocket-protocol.d.ts +229 -0
- package/dist/host/websocket-protocol.js +99 -0
- package/dist/host/websocket-protocol.js.map +1 -0
- package/dist/host/websocket-wire.d.ts +2 -2
- package/dist/host/websocket-wire.js +37 -20
- package/dist/host/websocket-wire.js.map +1 -1
- package/dist/{id-generator-C2Q15uZM.d.ts → id-generator-Ckl8_XWW.d.ts} +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/keep-alive-Chl5SJxy.d.ts +29 -0
- package/dist/{message-transcript-BCHdHAe2.d.ts → message-transcript-DiOPBY3l.d.ts} +3 -3
- package/dist/{prompt-projector-9_02lk5-.d.ts → prompt-projector-C1IbkHr0.d.ts} +15 -16
- package/dist/{reduced-state-C4nVVzz9.js → reduced-state-TMi7ISla.js} +20 -4
- package/dist/reduced-state-TMi7ISla.js.map +1 -0
- package/dist/{reducer-registry-C0svUa63.d.ts → reducer-registry-CjSJBPKo.d.ts} +2 -2
- package/dist/{runtime-C56FQxiL.d.ts → runtime-DOgmAKsO.d.ts} +7 -6
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/compaction.js +4 -3
- package/dist/services/compaction.js.map +1 -1
- package/dist/services/id-generator.d.ts +1 -1
- package/dist/services/keep-alive.d.ts +2 -0
- package/dist/services/keep-alive.js +13 -0
- package/dist/services/keep-alive.js.map +1 -0
- package/dist/services/prompt-projector.d.ts +2 -2
- package/dist/services/prompt-projector.js +20 -10
- package/dist/services/prompt-projector.js.map +1 -1
- package/dist/services/reducer-registry.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +58 -0
- package/dist/services/runtime-layer.js +42 -0
- package/dist/services/runtime-layer.js.map +1 -0
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +4 -3
- package/dist/services/runtime.js.map +1 -1
- package/dist/services/session-query.d.ts +1 -1
- package/dist/services/session-query.js +76 -1
- package/dist/services/session-query.js.map +1 -0
- package/dist/services/session-state.d.ts +2 -0
- package/dist/services/session-state.js +2 -0
- package/dist/services/session-store.d.ts +2 -2
- package/dist/services/session-store.js +181 -2
- package/dist/services/session-store.js.map +1 -0
- package/dist/services/sink-checkpoint-store.d.ts +2 -0
- package/dist/services/sink-checkpoint-store.js +49 -0
- package/dist/services/sink-checkpoint-store.js.map +1 -0
- 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/websocket-subscriber.d.ts +54 -0
- package/dist/services/websocket-subscriber.js +190 -0
- package/dist/services/websocket-subscriber.js.map +1 -0
- package/dist/session-query-C-C4m1eq.d.ts +38 -0
- package/dist/{session-query-DlRo5Ufc.d.ts → session-state-CjOSvWbe.d.ts} +132 -40
- package/dist/{session-query-DOc1KanA.js → session-state-SStf0KUo.js} +43 -146
- package/dist/session-state-SStf0KUo.js.map +1 -0
- package/dist/{session-store-D2Ore1QC.d.ts → session-store-DZZUffUy.d.ts} +5 -94
- package/dist/sink-checkpoint-store-BZmQFTRE.d.ts +40 -0
- package/dist/{sink-registry-CIU0LD3m.d.ts → sink-registry-Cf79ICdW.d.ts} +11 -40
- package/dist/{sink-registry-CFC6xjsN.js → sink-registry-D13eUO_c.js} +9 -47
- package/dist/sink-registry-D13eUO_c.js.map +1 -0
- package/dist/testkit/layers.d.ts +14 -11
- package/dist/testkit/layers.js +8 -5
- package/dist/testkit/layers.js.map +1 -1
- package/dist/{tool-registry-CcnkAAQK.d.ts → tool-registry-B7Wona6N.d.ts} +3 -3
- package/dist/types/core.d.ts +1 -1
- package/dist/types/core.js +1 -1
- package/dist/types/core.js.map +1 -1
- package/dist/types/events/durable.d.ts +2 -2
- package/dist/types/events/durable.js +2 -2
- package/dist/types/events.d.ts +2 -2
- package/dist/types/events.js +2 -2
- package/dist/websocket-wire-QD2SquQE.d.ts +2244 -0
- package/docs/assets/architecture.svg +170 -60
- package/docs/assets/event-sequence.svg +68 -78
- package/docs/assets/hero.svg +33 -0
- package/docs/message-steering.md +1 -1
- package/docs/releasing.md +96 -39
- package/docs/spec.md +15 -12
- package/docs/websocket-protocol.md +35 -9
- package/package.json +55 -35
- package/dist/durable-C3Rz7kg3.js.map +0 -1
- package/dist/durable-object-runtime-B7jwBY2R.js +0 -1494
- package/dist/durable-object-runtime-B7jwBY2R.js.map +0 -1
- package/dist/durable-object-runtime-pWv0ohlz.d.ts +0 -257
- package/dist/durable-object-storage-Czy7IPrh.d.ts +0 -41
- package/dist/host/durable-object-runtime.d.ts +0 -2
- package/dist/host/durable-object-runtime.js +0 -2
- package/dist/host/durable-object-storage.d.ts +0 -2
- package/dist/host/durable-object-storage.js +0 -0
- package/dist/host/durable-object.d.ts +0 -83
- package/dist/host/durable-object.js +0 -191
- package/dist/host/durable-object.js.map +0 -1
- package/dist/keep-alive-p8dIcSVy.js.map +0 -1
- package/dist/reduced-state-C4nVVzz9.js.map +0 -1
- package/dist/session-query-DOc1KanA.js.map +0 -1
- package/dist/session-store-pYxQW9qh.js +0 -214
- package/dist/session-store-pYxQW9qh.js.map +0 -1
- package/dist/sink-registry-CFC6xjsN.js.map +0 -1
- package/dist/websocket-wire-DvOu_6BJ.d.ts +0 -16773
- package/examples/001-no-tools/README.md +0 -65
- package/examples/001-no-tools/worker.ts +0 -79
- package/examples/002-slack-bridge/README.md +0 -134
- package/examples/002-slack-bridge/events.ts +0 -115
- package/examples/002-slack-bridge/reducer.ts +0 -216
- package/examples/002-slack-bridge/scenario.test.ts +0 -223
- package/examples/002-slack-bridge/sinks.ts +0 -109
- package/examples/002-slack-bridge/worker.ts +0 -140
- package/examples/003-sandbox-lifecycle/README.md +0 -78
- package/examples/003-sandbox-lifecycle/events.ts +0 -203
- package/examples/003-sandbox-lifecycle/reducer.ts +0 -305
- package/examples/003-sandbox-lifecycle/scenario.test.ts +0 -202
- package/examples/_shared/event-id.ts +0 -12
- package/examples/_shared/http.ts +0 -27
- package/examples/_shared/openai.ts +0 -33
|
@@ -0,0 +1,2244 @@
|
|
|
1
|
+
import { a as PromotePendingMessageCommand, c as SubmitMessageCommand, o as ResumePendingMessagesCommand, s as StopTurnCommand, t as CancelPendingMessageCommand } from "./commands-Ce1ec6kH.js";
|
|
2
|
+
import { A as EventEnvelope } from "./events-Bb9-Cu-7.js";
|
|
3
|
+
import * as Schema from "effect/Schema";
|
|
4
|
+
|
|
5
|
+
//#region src/host/websocket-wire.d.ts
|
|
6
|
+
/** Current EDA live-event WebSocket wire protocol version. */
|
|
7
|
+
declare const EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION: 1;
|
|
8
|
+
/** Flow-control policy announced by the server in the hello frame. */
|
|
9
|
+
declare const EDAWebSocketWireFlowControl: Schema.Struct<{
|
|
10
|
+
readonly ackTimeoutMs: Schema.Int;
|
|
11
|
+
readonly heartbeatIntervalMs: Schema.Int;
|
|
12
|
+
readonly maxFrameBytes: Schema.Int;
|
|
13
|
+
readonly maxFrameEvents: Schema.Int;
|
|
14
|
+
readonly maxInFlightFrames: Schema.Int;
|
|
15
|
+
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
16
|
+
}>;
|
|
17
|
+
type EDAWebSocketWireFlowControl = typeof EDAWebSocketWireFlowControl.Type;
|
|
18
|
+
declare const EDAWebSocketWireHelloFrame: Schema.Struct<{
|
|
19
|
+
readonly _tag: Schema.Literal<"hello">;
|
|
20
|
+
readonly protocolVersion: Schema.Literal<1>;
|
|
21
|
+
readonly subscriberId: Schema.NonEmptyString;
|
|
22
|
+
readonly resumeSeq: Schema.Int;
|
|
23
|
+
readonly flowControl: Schema.Struct<{
|
|
24
|
+
readonly ackTimeoutMs: Schema.Int;
|
|
25
|
+
readonly heartbeatIntervalMs: Schema.Int;
|
|
26
|
+
readonly maxFrameBytes: Schema.Int;
|
|
27
|
+
readonly maxFrameEvents: Schema.Int;
|
|
28
|
+
readonly maxInFlightFrames: Schema.Int;
|
|
29
|
+
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
30
|
+
}>;
|
|
31
|
+
}>;
|
|
32
|
+
type EDAWebSocketWireHelloFrame = typeof EDAWebSocketWireHelloFrame.Type;
|
|
33
|
+
declare const EDAWebSocketWireHeartbeatFrame: Schema.Struct<{
|
|
34
|
+
readonly _tag: Schema.Literal<"heartbeat">;
|
|
35
|
+
readonly serverTimeMs: Schema.Int;
|
|
36
|
+
readonly durableThroughSeq: Schema.Int;
|
|
37
|
+
}>;
|
|
38
|
+
type EDAWebSocketWireHeartbeatFrame = typeof EDAWebSocketWireHeartbeatFrame.Type;
|
|
39
|
+
declare const EDAWebSocketWireLaggedFrame: Schema.Struct<{
|
|
40
|
+
readonly _tag: Schema.Literal<"lagged">;
|
|
41
|
+
readonly resumeSeq: Schema.Int;
|
|
42
|
+
readonly reason: Schema.Literals<readonly ["buffer-overflow", "ack-timeout"]>;
|
|
43
|
+
}>;
|
|
44
|
+
type EDAWebSocketWireLaggedFrame = typeof EDAWebSocketWireLaggedFrame.Type;
|
|
45
|
+
declare const EDAWebSocketWireErrorFrame: Schema.Struct<{
|
|
46
|
+
readonly _tag: Schema.Literal<"error">;
|
|
47
|
+
readonly message: Schema.String;
|
|
48
|
+
}>;
|
|
49
|
+
type EDAWebSocketWireErrorFrame = typeof EDAWebSocketWireErrorFrame.Type;
|
|
50
|
+
declare const EDAWebSocketWireAckFrame: Schema.Struct<{
|
|
51
|
+
readonly _tag: Schema.Literal<"ack">;
|
|
52
|
+
readonly frameId: Schema.Int;
|
|
53
|
+
readonly durableThroughSeq: Schema.Int;
|
|
54
|
+
}>;
|
|
55
|
+
type EDAWebSocketWireAckFrame = typeof EDAWebSocketWireAckFrame.Type;
|
|
56
|
+
declare const EDAWebSocketWireClientFrame: Schema.Union<readonly [Schema.Struct<{
|
|
57
|
+
readonly _tag: Schema.Literal<"ack">;
|
|
58
|
+
readonly frameId: Schema.Int;
|
|
59
|
+
readonly durableThroughSeq: Schema.Int;
|
|
60
|
+
}>]>;
|
|
61
|
+
type EDAWebSocketWireClientFrame = typeof EDAWebSocketWireClientFrame.Type;
|
|
62
|
+
/** Exhaustive decision table for a concrete WebSocket event union. */
|
|
63
|
+
type EDAWebSocketEventConsumerPolicy<Event extends {
|
|
64
|
+
readonly type: string;
|
|
65
|
+
}, Disposition> = Readonly<Record<Event["type"], Disposition>>;
|
|
66
|
+
/** Complete framework-owned event union present on every EDA WebSocket. */
|
|
67
|
+
declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
68
|
+
readonly namespace: Schema.Literal<string>;
|
|
69
|
+
readonly type: Schema.Literal<"CommandAdmitted">;
|
|
70
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
71
|
+
readonly payload: Schema.Struct<{
|
|
72
|
+
readonly command: Schema.Union<readonly [typeof SubmitMessageCommand, typeof StopTurnCommand, typeof CancelPendingMessageCommand, typeof PromotePendingMessageCommand, typeof ResumePendingMessagesCommand]>;
|
|
73
|
+
}>;
|
|
74
|
+
readonly durability: Schema.Literal<"durable">;
|
|
75
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
76
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
77
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
78
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
79
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
80
|
+
readonly span: Schema.Struct<{
|
|
81
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
82
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
83
|
+
readonly sampled: Schema.Boolean;
|
|
84
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
85
|
+
}>;
|
|
86
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
87
|
+
readonly context: Schema.Struct<{
|
|
88
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
89
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
90
|
+
readonly sampled: Schema.Boolean;
|
|
91
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
92
|
+
}>;
|
|
93
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
94
|
+
}>>;
|
|
95
|
+
}>>;
|
|
96
|
+
}>, Schema.Struct<{
|
|
97
|
+
readonly namespace: Schema.Literal<string>;
|
|
98
|
+
readonly type: Schema.Literal<"CommandStarted">;
|
|
99
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
100
|
+
readonly payload: Schema.Struct<{
|
|
101
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
102
|
+
}>;
|
|
103
|
+
readonly durability: Schema.Literal<"durable">;
|
|
104
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
105
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
106
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
107
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
108
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
109
|
+
readonly span: Schema.Struct<{
|
|
110
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
111
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
112
|
+
readonly sampled: Schema.Boolean;
|
|
113
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
114
|
+
}>;
|
|
115
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
116
|
+
readonly context: Schema.Struct<{
|
|
117
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
118
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
119
|
+
readonly sampled: Schema.Boolean;
|
|
120
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
121
|
+
}>;
|
|
122
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
123
|
+
}>>;
|
|
124
|
+
}>>;
|
|
125
|
+
}>, Schema.Struct<{
|
|
126
|
+
readonly namespace: Schema.Literal<string>;
|
|
127
|
+
readonly type: Schema.Literal<"CommandCompleted">;
|
|
128
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
129
|
+
readonly payload: Schema.Struct<{
|
|
130
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
131
|
+
}>;
|
|
132
|
+
readonly durability: Schema.Literal<"durable">;
|
|
133
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
134
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
135
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
136
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
137
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
138
|
+
readonly span: Schema.Struct<{
|
|
139
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
140
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
141
|
+
readonly sampled: Schema.Boolean;
|
|
142
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
143
|
+
}>;
|
|
144
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
145
|
+
readonly context: Schema.Struct<{
|
|
146
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
147
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
148
|
+
readonly sampled: Schema.Boolean;
|
|
149
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
150
|
+
}>;
|
|
151
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
152
|
+
}>>;
|
|
153
|
+
}>>;
|
|
154
|
+
}>, Schema.Struct<{
|
|
155
|
+
readonly namespace: Schema.Literal<string>;
|
|
156
|
+
readonly type: Schema.Literal<"CommandFailed">;
|
|
157
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
158
|
+
readonly payload: Schema.Struct<{
|
|
159
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
160
|
+
readonly error: Schema.Struct<{
|
|
161
|
+
readonly message: Schema.String;
|
|
162
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
163
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
164
|
+
}>;
|
|
165
|
+
}>;
|
|
166
|
+
readonly durability: Schema.Literal<"durable">;
|
|
167
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
168
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
169
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
170
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
171
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
172
|
+
readonly span: Schema.Struct<{
|
|
173
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
174
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
175
|
+
readonly sampled: Schema.Boolean;
|
|
176
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
177
|
+
}>;
|
|
178
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
179
|
+
readonly context: Schema.Struct<{
|
|
180
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
181
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
182
|
+
readonly sampled: Schema.Boolean;
|
|
183
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
184
|
+
}>;
|
|
185
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
186
|
+
}>>;
|
|
187
|
+
}>>;
|
|
188
|
+
}>, Schema.Struct<{
|
|
189
|
+
readonly namespace: Schema.Literal<string>;
|
|
190
|
+
readonly type: Schema.Literal<"CommandCancelled">;
|
|
191
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
192
|
+
readonly payload: Schema.Struct<{
|
|
193
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
194
|
+
readonly reason: Schema.String;
|
|
195
|
+
}>;
|
|
196
|
+
readonly durability: Schema.Literal<"durable">;
|
|
197
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
198
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
199
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
200
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
201
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
202
|
+
readonly span: Schema.Struct<{
|
|
203
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
204
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
205
|
+
readonly sampled: Schema.Boolean;
|
|
206
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
207
|
+
}>;
|
|
208
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
209
|
+
readonly context: Schema.Struct<{
|
|
210
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
211
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
212
|
+
readonly sampled: Schema.Boolean;
|
|
213
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
214
|
+
}>;
|
|
215
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
216
|
+
}>>;
|
|
217
|
+
}>>;
|
|
218
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
219
|
+
readonly namespace: Schema.Literal<string>;
|
|
220
|
+
readonly type: Schema.Literal<"SystemMessageCommitted">;
|
|
221
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
222
|
+
readonly payload: Schema.Struct<{
|
|
223
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
224
|
+
readonly content: Schema.NonEmptyString;
|
|
225
|
+
}>;
|
|
226
|
+
readonly durability: Schema.Literal<"durable">;
|
|
227
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
228
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
229
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
230
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
231
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
232
|
+
readonly span: Schema.Struct<{
|
|
233
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
234
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
235
|
+
readonly sampled: Schema.Boolean;
|
|
236
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
237
|
+
}>;
|
|
238
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
239
|
+
readonly context: Schema.Struct<{
|
|
240
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
241
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
242
|
+
readonly sampled: Schema.Boolean;
|
|
243
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
244
|
+
}>;
|
|
245
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
246
|
+
}>>;
|
|
247
|
+
}>>;
|
|
248
|
+
}>, Schema.Struct<{
|
|
249
|
+
readonly namespace: Schema.Literal<string>;
|
|
250
|
+
readonly type: Schema.Literal<"UserMessageCommitted">;
|
|
251
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
252
|
+
readonly payload: Schema.Struct<{
|
|
253
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
254
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
255
|
+
readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
256
|
+
readonly type: Schema.Literal<"text">;
|
|
257
|
+
readonly text: Schema.String;
|
|
258
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
259
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
260
|
+
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
261
|
+
readonly type: Schema.Literal<"text">;
|
|
262
|
+
readonly text: Schema.String;
|
|
263
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
264
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
265
|
+
}>, Schema.Struct<{
|
|
266
|
+
readonly type: Schema.Literal<"file">;
|
|
267
|
+
readonly mediaType: Schema.String;
|
|
268
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
269
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
270
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
271
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
272
|
+
}>]>>]>;
|
|
273
|
+
}>;
|
|
274
|
+
readonly durability: Schema.Literal<"durable">;
|
|
275
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
276
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
277
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
278
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
279
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
280
|
+
readonly span: Schema.Struct<{
|
|
281
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
282
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
283
|
+
readonly sampled: Schema.Boolean;
|
|
284
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
285
|
+
}>;
|
|
286
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
287
|
+
readonly context: Schema.Struct<{
|
|
288
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
289
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
290
|
+
readonly sampled: Schema.Boolean;
|
|
291
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
292
|
+
}>;
|
|
293
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
294
|
+
}>>;
|
|
295
|
+
}>>;
|
|
296
|
+
}>, Schema.Struct<{
|
|
297
|
+
readonly namespace: Schema.Literal<string>;
|
|
298
|
+
readonly type: Schema.Literal<"SteeringMessageQueued">;
|
|
299
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
300
|
+
readonly payload: Schema.Struct<{
|
|
301
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
302
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
303
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
304
|
+
readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
305
|
+
readonly type: Schema.Literal<"text">;
|
|
306
|
+
readonly text: Schema.String;
|
|
307
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
308
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
309
|
+
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
310
|
+
readonly type: Schema.Literal<"text">;
|
|
311
|
+
readonly text: Schema.String;
|
|
312
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
313
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
314
|
+
}>, Schema.Struct<{
|
|
315
|
+
readonly type: Schema.Literal<"file">;
|
|
316
|
+
readonly mediaType: Schema.String;
|
|
317
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
318
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
319
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
320
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
321
|
+
}>]>>]>;
|
|
322
|
+
}>;
|
|
323
|
+
readonly durability: Schema.Literal<"durable">;
|
|
324
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
325
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
326
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
327
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
328
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
329
|
+
readonly span: Schema.Struct<{
|
|
330
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
331
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
332
|
+
readonly sampled: Schema.Boolean;
|
|
333
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
334
|
+
}>;
|
|
335
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
336
|
+
readonly context: Schema.Struct<{
|
|
337
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
338
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
339
|
+
readonly sampled: Schema.Boolean;
|
|
340
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
341
|
+
}>;
|
|
342
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
343
|
+
}>>;
|
|
344
|
+
}>>;
|
|
345
|
+
}>, Schema.Struct<{
|
|
346
|
+
readonly namespace: Schema.Literal<string>;
|
|
347
|
+
readonly type: Schema.Literal<"SteeringMessageCancelled">;
|
|
348
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
349
|
+
readonly payload: Schema.Struct<{
|
|
350
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
351
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
352
|
+
readonly reason: Schema.String;
|
|
353
|
+
}>;
|
|
354
|
+
readonly durability: Schema.Literal<"durable">;
|
|
355
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
356
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
357
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
358
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
359
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
360
|
+
readonly span: Schema.Struct<{
|
|
361
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
362
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
363
|
+
readonly sampled: Schema.Boolean;
|
|
364
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
365
|
+
}>;
|
|
366
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
367
|
+
readonly context: Schema.Struct<{
|
|
368
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
369
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
370
|
+
readonly sampled: Schema.Boolean;
|
|
371
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
372
|
+
}>;
|
|
373
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
374
|
+
}>>;
|
|
375
|
+
}>>;
|
|
376
|
+
}>, Schema.Struct<{
|
|
377
|
+
readonly namespace: Schema.Literal<string>;
|
|
378
|
+
readonly type: Schema.Literal<"UserMessageSubmitted">;
|
|
379
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
380
|
+
readonly payload: Schema.Struct<{
|
|
381
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
382
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
383
|
+
readonly disposition: Schema.Literals<readonly ["queue", "steer"]>;
|
|
384
|
+
readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
385
|
+
readonly type: Schema.Literal<"text">;
|
|
386
|
+
readonly text: Schema.String;
|
|
387
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
388
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
389
|
+
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
390
|
+
readonly type: Schema.Literal<"text">;
|
|
391
|
+
readonly text: Schema.String;
|
|
392
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
393
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
394
|
+
}>, Schema.Struct<{
|
|
395
|
+
readonly type: Schema.Literal<"file">;
|
|
396
|
+
readonly mediaType: Schema.String;
|
|
397
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
398
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
399
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
400
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
401
|
+
}>]>>]>;
|
|
402
|
+
}>;
|
|
403
|
+
readonly durability: Schema.Literal<"durable">;
|
|
404
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
405
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
406
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
407
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
408
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
409
|
+
readonly span: Schema.Struct<{
|
|
410
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
411
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
412
|
+
readonly sampled: Schema.Boolean;
|
|
413
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
414
|
+
}>;
|
|
415
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
416
|
+
readonly context: Schema.Struct<{
|
|
417
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
418
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
419
|
+
readonly sampled: Schema.Boolean;
|
|
420
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
421
|
+
}>;
|
|
422
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
423
|
+
}>>;
|
|
424
|
+
}>>;
|
|
425
|
+
}>, Schema.Struct<{
|
|
426
|
+
readonly namespace: Schema.Literal<string>;
|
|
427
|
+
readonly type: Schema.Literal<"UserMessagePromoted">;
|
|
428
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
429
|
+
readonly payload: Schema.Struct<{
|
|
430
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
431
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
432
|
+
readonly from: Schema.Literal<"queue">;
|
|
433
|
+
readonly to: Schema.Literal<"steer">;
|
|
434
|
+
}>;
|
|
435
|
+
readonly durability: Schema.Literal<"durable">;
|
|
436
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
437
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
438
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
439
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
440
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
441
|
+
readonly span: Schema.Struct<{
|
|
442
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
443
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
444
|
+
readonly sampled: Schema.Boolean;
|
|
445
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
446
|
+
}>;
|
|
447
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
448
|
+
readonly context: Schema.Struct<{
|
|
449
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
450
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
451
|
+
readonly sampled: Schema.Boolean;
|
|
452
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
453
|
+
}>;
|
|
454
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
455
|
+
}>>;
|
|
456
|
+
}>>;
|
|
457
|
+
}>, Schema.Struct<{
|
|
458
|
+
readonly namespace: Schema.Literal<string>;
|
|
459
|
+
readonly type: Schema.Literal<"UserMessageCancelled">;
|
|
460
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
461
|
+
readonly payload: Schema.Struct<{
|
|
462
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
463
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
464
|
+
readonly reason: Schema.Literals<readonly ["edit", "user-cancel", "clear-paused-queue"]>;
|
|
465
|
+
}>;
|
|
466
|
+
readonly durability: Schema.Literal<"durable">;
|
|
467
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
468
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
469
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
470
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
471
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
472
|
+
readonly span: Schema.Struct<{
|
|
473
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
474
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
475
|
+
readonly sampled: Schema.Boolean;
|
|
476
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
477
|
+
}>;
|
|
478
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
479
|
+
readonly context: Schema.Struct<{
|
|
480
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
481
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
482
|
+
readonly sampled: Schema.Boolean;
|
|
483
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
484
|
+
}>;
|
|
485
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
486
|
+
}>>;
|
|
487
|
+
}>>;
|
|
488
|
+
}>, Schema.Struct<{
|
|
489
|
+
readonly namespace: Schema.Literal<string>;
|
|
490
|
+
readonly type: Schema.Literal<"MessageQueuePaused">;
|
|
491
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
492
|
+
readonly payload: Schema.Struct<{
|
|
493
|
+
readonly stopCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
494
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
495
|
+
readonly messageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
496
|
+
readonly reason: Schema.Literal<"user-interrupted">;
|
|
497
|
+
}>;
|
|
498
|
+
readonly durability: Schema.Literal<"durable">;
|
|
499
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
500
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
501
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
502
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
503
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
504
|
+
readonly span: Schema.Struct<{
|
|
505
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
506
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
507
|
+
readonly sampled: Schema.Boolean;
|
|
508
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
509
|
+
}>;
|
|
510
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
511
|
+
readonly context: Schema.Struct<{
|
|
512
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
513
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
514
|
+
readonly sampled: Schema.Boolean;
|
|
515
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
516
|
+
}>;
|
|
517
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
518
|
+
}>>;
|
|
519
|
+
}>>;
|
|
520
|
+
}>, Schema.Struct<{
|
|
521
|
+
readonly namespace: Schema.Literal<string>;
|
|
522
|
+
readonly type: Schema.Literal<"PendingMessagesPaused">;
|
|
523
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
524
|
+
readonly payload: Schema.Struct<{
|
|
525
|
+
readonly interruptionCommandId: Schema.brand<Schema.String, "CommandId">;
|
|
526
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
527
|
+
readonly messageIds: Schema.NonEmptyArray<Schema.brand<Schema.String, "MessageId">>;
|
|
528
|
+
readonly reason: Schema.Literal<"user-interrupted">;
|
|
529
|
+
}>;
|
|
530
|
+
readonly durability: Schema.Literal<"durable">;
|
|
531
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
532
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
533
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
534
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
535
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
536
|
+
readonly span: Schema.Struct<{
|
|
537
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
538
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
539
|
+
readonly sampled: Schema.Boolean;
|
|
540
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
541
|
+
}>;
|
|
542
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
543
|
+
readonly context: Schema.Struct<{
|
|
544
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
545
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
546
|
+
readonly sampled: Schema.Boolean;
|
|
547
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
548
|
+
}>;
|
|
549
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
550
|
+
}>>;
|
|
551
|
+
}>>;
|
|
552
|
+
}>, Schema.Struct<{
|
|
553
|
+
readonly namespace: Schema.Literal<string>;
|
|
554
|
+
readonly type: Schema.Literal<"AssistantMessageCommitted">;
|
|
555
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
556
|
+
readonly payload: Schema.Struct<{
|
|
557
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
558
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
559
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
560
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
561
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
562
|
+
readonly type: Schema.Literal<"text">;
|
|
563
|
+
readonly text: Schema.String;
|
|
564
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
565
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
566
|
+
}>, Schema.Struct<{
|
|
567
|
+
readonly type: Schema.Literal<"file">;
|
|
568
|
+
readonly mediaType: Schema.String;
|
|
569
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
570
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
571
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
572
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
573
|
+
}>, Schema.Struct<{
|
|
574
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
575
|
+
readonly text: Schema.String;
|
|
576
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
577
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
578
|
+
}>, Schema.Struct<{
|
|
579
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
580
|
+
readonly id: Schema.String;
|
|
581
|
+
readonly name: Schema.String;
|
|
582
|
+
readonly params: Schema.Unknown;
|
|
583
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
584
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
585
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
586
|
+
}>, Schema.Struct<{
|
|
587
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
588
|
+
readonly id: Schema.String;
|
|
589
|
+
readonly name: Schema.String;
|
|
590
|
+
readonly isFailure: Schema.Boolean;
|
|
591
|
+
readonly result: Schema.Unknown;
|
|
592
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
593
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
594
|
+
}>, Schema.Struct<{
|
|
595
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
596
|
+
readonly approvalId: Schema.String;
|
|
597
|
+
readonly toolCallId: Schema.String;
|
|
598
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
599
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
600
|
+
}>]>>;
|
|
601
|
+
}>;
|
|
602
|
+
readonly durability: Schema.Literal<"durable">;
|
|
603
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
604
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
605
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
606
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
607
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
608
|
+
readonly span: Schema.Struct<{
|
|
609
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
610
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
611
|
+
readonly sampled: Schema.Boolean;
|
|
612
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
613
|
+
}>;
|
|
614
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
615
|
+
readonly context: Schema.Struct<{
|
|
616
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
617
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
618
|
+
readonly sampled: Schema.Boolean;
|
|
619
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
620
|
+
}>;
|
|
621
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
622
|
+
}>>;
|
|
623
|
+
}>>;
|
|
624
|
+
}>, Schema.Struct<{
|
|
625
|
+
readonly namespace: Schema.Literal<string>;
|
|
626
|
+
readonly type: Schema.Literal<"AssistantMessageImported">;
|
|
627
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
628
|
+
readonly payload: Schema.Struct<{
|
|
629
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
630
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
631
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
632
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
633
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
634
|
+
readonly type: Schema.Literal<"text">;
|
|
635
|
+
readonly text: Schema.String;
|
|
636
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
637
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
638
|
+
}>, Schema.Struct<{
|
|
639
|
+
readonly type: Schema.Literal<"file">;
|
|
640
|
+
readonly mediaType: Schema.String;
|
|
641
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
642
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
643
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
644
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
645
|
+
}>, Schema.Struct<{
|
|
646
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
647
|
+
readonly text: Schema.String;
|
|
648
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
649
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
650
|
+
}>, Schema.Struct<{
|
|
651
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
652
|
+
readonly id: Schema.String;
|
|
653
|
+
readonly name: Schema.String;
|
|
654
|
+
readonly params: Schema.Unknown;
|
|
655
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
656
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
657
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
658
|
+
}>, Schema.Struct<{
|
|
659
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
660
|
+
readonly id: Schema.String;
|
|
661
|
+
readonly name: Schema.String;
|
|
662
|
+
readonly isFailure: Schema.Boolean;
|
|
663
|
+
readonly result: Schema.Unknown;
|
|
664
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
665
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
666
|
+
}>, Schema.Struct<{
|
|
667
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
668
|
+
readonly approvalId: Schema.String;
|
|
669
|
+
readonly toolCallId: Schema.String;
|
|
670
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
671
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
672
|
+
}>]>>;
|
|
673
|
+
}>;
|
|
674
|
+
readonly durability: Schema.Literal<"durable">;
|
|
675
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
676
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
677
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
678
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
679
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
680
|
+
readonly span: Schema.Struct<{
|
|
681
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
682
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
683
|
+
readonly sampled: Schema.Boolean;
|
|
684
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
685
|
+
}>;
|
|
686
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
687
|
+
readonly context: Schema.Struct<{
|
|
688
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
689
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
690
|
+
readonly sampled: Schema.Boolean;
|
|
691
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
692
|
+
}>;
|
|
693
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
694
|
+
}>>;
|
|
695
|
+
}>>;
|
|
696
|
+
}>, Schema.Struct<{
|
|
697
|
+
readonly namespace: Schema.Literal<string>;
|
|
698
|
+
readonly type: Schema.Literal<"AssistantPartialCommitted">;
|
|
699
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
700
|
+
readonly payload: Schema.Struct<{
|
|
701
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
702
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
703
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
704
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
705
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
706
|
+
readonly type: Schema.Literal<"text">;
|
|
707
|
+
readonly text: Schema.String;
|
|
708
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
709
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
710
|
+
}>, Schema.Struct<{
|
|
711
|
+
readonly type: Schema.Literal<"file">;
|
|
712
|
+
readonly mediaType: Schema.String;
|
|
713
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
714
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
715
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
716
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
717
|
+
}>, Schema.Struct<{
|
|
718
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
719
|
+
readonly text: Schema.String;
|
|
720
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
721
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
722
|
+
}>, Schema.Struct<{
|
|
723
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
724
|
+
readonly id: Schema.String;
|
|
725
|
+
readonly name: Schema.String;
|
|
726
|
+
readonly params: Schema.Unknown;
|
|
727
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
728
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
729
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
730
|
+
}>, Schema.Struct<{
|
|
731
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
732
|
+
readonly id: Schema.String;
|
|
733
|
+
readonly name: Schema.String;
|
|
734
|
+
readonly isFailure: Schema.Boolean;
|
|
735
|
+
readonly result: Schema.Unknown;
|
|
736
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
737
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
738
|
+
}>, Schema.Struct<{
|
|
739
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
740
|
+
readonly approvalId: Schema.String;
|
|
741
|
+
readonly toolCallId: Schema.String;
|
|
742
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
743
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
744
|
+
}>]>>;
|
|
745
|
+
readonly reason: Schema.String;
|
|
746
|
+
}>;
|
|
747
|
+
readonly durability: Schema.Literal<"durable">;
|
|
748
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
749
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
750
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
751
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
752
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
753
|
+
readonly span: Schema.Struct<{
|
|
754
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
755
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
756
|
+
readonly sampled: Schema.Boolean;
|
|
757
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
758
|
+
}>;
|
|
759
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
760
|
+
readonly context: Schema.Struct<{
|
|
761
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
762
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
763
|
+
readonly sampled: Schema.Boolean;
|
|
764
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
765
|
+
}>;
|
|
766
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
767
|
+
}>>;
|
|
768
|
+
}>>;
|
|
769
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
770
|
+
readonly namespace: Schema.Literal<string>;
|
|
771
|
+
readonly type: Schema.Literal<"RunStarted">;
|
|
772
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
773
|
+
readonly payload: Schema.Struct<{
|
|
774
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
775
|
+
readonly commandIds: Schema.$Array<Schema.brand<Schema.String, "CommandId">>;
|
|
776
|
+
readonly modelSelection: Schema.Struct<{
|
|
777
|
+
readonly provider: Schema.NonEmptyString;
|
|
778
|
+
readonly modelId: Schema.NonEmptyString;
|
|
779
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
780
|
+
}>;
|
|
781
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
782
|
+
readonly root: Schema.Struct<{
|
|
783
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
784
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
785
|
+
readonly sampled: Schema.Boolean;
|
|
786
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
787
|
+
}>;
|
|
788
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
789
|
+
readonly context: Schema.Struct<{
|
|
790
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
791
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
792
|
+
readonly sampled: Schema.Boolean;
|
|
793
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
794
|
+
}>;
|
|
795
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
796
|
+
}>>;
|
|
797
|
+
}>>;
|
|
798
|
+
}>;
|
|
799
|
+
readonly durability: Schema.Literal<"durable">;
|
|
800
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
801
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
802
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
803
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
804
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
805
|
+
readonly span: Schema.Struct<{
|
|
806
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
807
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
808
|
+
readonly sampled: Schema.Boolean;
|
|
809
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
810
|
+
}>;
|
|
811
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
812
|
+
readonly context: Schema.Struct<{
|
|
813
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
814
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
815
|
+
readonly sampled: Schema.Boolean;
|
|
816
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
817
|
+
}>;
|
|
818
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
819
|
+
}>>;
|
|
820
|
+
}>>;
|
|
821
|
+
}>, Schema.Struct<{
|
|
822
|
+
readonly namespace: Schema.Literal<string>;
|
|
823
|
+
readonly type: Schema.Literal<"RunCompleted">;
|
|
824
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
825
|
+
readonly payload: Schema.Struct<{
|
|
826
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
827
|
+
}>;
|
|
828
|
+
readonly durability: Schema.Literal<"durable">;
|
|
829
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
830
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
831
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
832
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
833
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
834
|
+
readonly span: Schema.Struct<{
|
|
835
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
836
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
837
|
+
readonly sampled: Schema.Boolean;
|
|
838
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
839
|
+
}>;
|
|
840
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
841
|
+
readonly context: Schema.Struct<{
|
|
842
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
843
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
844
|
+
readonly sampled: Schema.Boolean;
|
|
845
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
846
|
+
}>;
|
|
847
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
848
|
+
}>>;
|
|
849
|
+
}>>;
|
|
850
|
+
}>, Schema.Struct<{
|
|
851
|
+
readonly namespace: Schema.Literal<string>;
|
|
852
|
+
readonly type: Schema.Literal<"RunFailed">;
|
|
853
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
854
|
+
readonly payload: Schema.Struct<{
|
|
855
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
856
|
+
readonly error: Schema.Struct<{
|
|
857
|
+
readonly message: Schema.String;
|
|
858
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
859
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
860
|
+
}>;
|
|
861
|
+
}>;
|
|
862
|
+
readonly durability: Schema.Literal<"durable">;
|
|
863
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
864
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
865
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
866
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
867
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
868
|
+
readonly span: Schema.Struct<{
|
|
869
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
870
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
871
|
+
readonly sampled: Schema.Boolean;
|
|
872
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
873
|
+
}>;
|
|
874
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
875
|
+
readonly context: Schema.Struct<{
|
|
876
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
877
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
878
|
+
readonly sampled: Schema.Boolean;
|
|
879
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
880
|
+
}>;
|
|
881
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
882
|
+
}>>;
|
|
883
|
+
}>>;
|
|
884
|
+
}>, Schema.Struct<{
|
|
885
|
+
readonly namespace: Schema.Literal<string>;
|
|
886
|
+
readonly type: Schema.Literal<"RunInterrupted">;
|
|
887
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
888
|
+
readonly payload: Schema.Struct<{
|
|
889
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
890
|
+
readonly reason: Schema.String;
|
|
891
|
+
}>;
|
|
892
|
+
readonly durability: Schema.Literal<"durable">;
|
|
893
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
894
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
895
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
896
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
897
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
898
|
+
readonly span: Schema.Struct<{
|
|
899
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
900
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
901
|
+
readonly sampled: Schema.Boolean;
|
|
902
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
903
|
+
}>;
|
|
904
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
905
|
+
readonly context: Schema.Struct<{
|
|
906
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
907
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
908
|
+
readonly sampled: Schema.Boolean;
|
|
909
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
910
|
+
}>;
|
|
911
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
912
|
+
}>>;
|
|
913
|
+
}>>;
|
|
914
|
+
}>]>, Schema.Struct<{
|
|
915
|
+
readonly namespace: Schema.Literal<string>;
|
|
916
|
+
readonly type: Schema.Literal<"RecoveryCompleted">;
|
|
917
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
918
|
+
readonly payload: Schema.Struct<{
|
|
919
|
+
readonly trigger: Schema.Literal<"runtime-restart">;
|
|
920
|
+
readonly continuation: Schema.optionalKey<Schema.Struct<{
|
|
921
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
922
|
+
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
923
|
+
readonly replacementRunId: Schema.brand<Schema.String, "RunId">;
|
|
924
|
+
}>>;
|
|
925
|
+
}>;
|
|
926
|
+
readonly durability: Schema.Literal<"durable">;
|
|
927
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
928
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
929
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
930
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
931
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
932
|
+
readonly span: Schema.Struct<{
|
|
933
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
934
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
935
|
+
readonly sampled: Schema.Boolean;
|
|
936
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
937
|
+
}>;
|
|
938
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
939
|
+
readonly context: Schema.Struct<{
|
|
940
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
941
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
942
|
+
readonly sampled: Schema.Boolean;
|
|
943
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
944
|
+
}>;
|
|
945
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
946
|
+
}>>;
|
|
947
|
+
}>>;
|
|
948
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
949
|
+
readonly namespace: Schema.Literal<string>;
|
|
950
|
+
readonly type: Schema.Literal<"TurnStarted">;
|
|
951
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
952
|
+
readonly payload: Schema.Struct<{
|
|
953
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
954
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
955
|
+
readonly inputMessageIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "MessageId">>>;
|
|
956
|
+
}>;
|
|
957
|
+
readonly durability: Schema.Literal<"durable">;
|
|
958
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
959
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
960
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
961
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
962
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
963
|
+
readonly span: Schema.Struct<{
|
|
964
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
965
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
966
|
+
readonly sampled: Schema.Boolean;
|
|
967
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
968
|
+
}>;
|
|
969
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
970
|
+
readonly context: Schema.Struct<{
|
|
971
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
972
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
973
|
+
readonly sampled: Schema.Boolean;
|
|
974
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
975
|
+
}>;
|
|
976
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
977
|
+
}>>;
|
|
978
|
+
}>>;
|
|
979
|
+
}>, Schema.Struct<{
|
|
980
|
+
readonly namespace: Schema.Literal<string>;
|
|
981
|
+
readonly type: Schema.Literal<"TurnCompleted">;
|
|
982
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
983
|
+
readonly payload: Schema.Struct<{
|
|
984
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
985
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
986
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
987
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
988
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
989
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
990
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
991
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
992
|
+
}>>;
|
|
993
|
+
}>;
|
|
994
|
+
readonly durability: Schema.Literal<"durable">;
|
|
995
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
996
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
997
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
998
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
999
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1000
|
+
readonly span: Schema.Struct<{
|
|
1001
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1002
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1003
|
+
readonly sampled: Schema.Boolean;
|
|
1004
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1005
|
+
}>;
|
|
1006
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1007
|
+
readonly context: Schema.Struct<{
|
|
1008
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1009
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1010
|
+
readonly sampled: Schema.Boolean;
|
|
1011
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1012
|
+
}>;
|
|
1013
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1014
|
+
}>>;
|
|
1015
|
+
}>>;
|
|
1016
|
+
}>, Schema.Struct<{
|
|
1017
|
+
readonly namespace: Schema.Literal<string>;
|
|
1018
|
+
readonly type: Schema.Literal<"TurnFailed">;
|
|
1019
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1020
|
+
readonly payload: Schema.Struct<{
|
|
1021
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1022
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1023
|
+
readonly error: Schema.Struct<{
|
|
1024
|
+
readonly message: Schema.String;
|
|
1025
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
1026
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1027
|
+
}>;
|
|
1028
|
+
}>;
|
|
1029
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1030
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1031
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1032
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1033
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1034
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1035
|
+
readonly span: Schema.Struct<{
|
|
1036
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1037
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1038
|
+
readonly sampled: Schema.Boolean;
|
|
1039
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1040
|
+
}>;
|
|
1041
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1042
|
+
readonly context: Schema.Struct<{
|
|
1043
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1044
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1045
|
+
readonly sampled: Schema.Boolean;
|
|
1046
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1047
|
+
}>;
|
|
1048
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1049
|
+
}>>;
|
|
1050
|
+
}>>;
|
|
1051
|
+
}>, Schema.Struct<{
|
|
1052
|
+
readonly namespace: Schema.Literal<string>;
|
|
1053
|
+
readonly type: Schema.Literal<"TurnStopped">;
|
|
1054
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1055
|
+
readonly payload: Schema.Struct<{
|
|
1056
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1057
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1058
|
+
readonly reason: Schema.String;
|
|
1059
|
+
}>;
|
|
1060
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1061
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1062
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1063
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1064
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1065
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1066
|
+
readonly span: Schema.Struct<{
|
|
1067
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1068
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1069
|
+
readonly sampled: Schema.Boolean;
|
|
1070
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1071
|
+
}>;
|
|
1072
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1073
|
+
readonly context: Schema.Struct<{
|
|
1074
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1075
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1076
|
+
readonly sampled: Schema.Boolean;
|
|
1077
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1078
|
+
}>;
|
|
1079
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1080
|
+
}>>;
|
|
1081
|
+
}>>;
|
|
1082
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1083
|
+
readonly namespace: Schema.Literal<string>;
|
|
1084
|
+
readonly type: Schema.Literal<"InferenceStarted">;
|
|
1085
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1086
|
+
readonly payload: Schema.Struct<{
|
|
1087
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1088
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1089
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1090
|
+
}>;
|
|
1091
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1092
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1093
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1094
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1095
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1096
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1097
|
+
readonly span: Schema.Struct<{
|
|
1098
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1099
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1100
|
+
readonly sampled: Schema.Boolean;
|
|
1101
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1102
|
+
}>;
|
|
1103
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1104
|
+
readonly context: Schema.Struct<{
|
|
1105
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1106
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1107
|
+
readonly sampled: Schema.Boolean;
|
|
1108
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1109
|
+
}>;
|
|
1110
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1111
|
+
}>>;
|
|
1112
|
+
}>>;
|
|
1113
|
+
}>, Schema.Struct<{
|
|
1114
|
+
readonly namespace: Schema.Literal<string>;
|
|
1115
|
+
readonly type: Schema.Literal<"InferenceCompleted">;
|
|
1116
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1117
|
+
readonly payload: Schema.Struct<{
|
|
1118
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1119
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1120
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1121
|
+
readonly finishReason: Schema.optionalKey<Schema.String>;
|
|
1122
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
1123
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
1124
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
1125
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
1126
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
1127
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
1128
|
+
}>>;
|
|
1129
|
+
readonly responseMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
1130
|
+
readonly finishMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
1131
|
+
}>;
|
|
1132
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1133
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1134
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1135
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1136
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1137
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1138
|
+
readonly span: Schema.Struct<{
|
|
1139
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1140
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1141
|
+
readonly sampled: Schema.Boolean;
|
|
1142
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1143
|
+
}>;
|
|
1144
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1145
|
+
readonly context: Schema.Struct<{
|
|
1146
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1147
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1148
|
+
readonly sampled: Schema.Boolean;
|
|
1149
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1150
|
+
}>;
|
|
1151
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1152
|
+
}>>;
|
|
1153
|
+
}>>;
|
|
1154
|
+
}>, Schema.Struct<{
|
|
1155
|
+
readonly namespace: Schema.Literal<string>;
|
|
1156
|
+
readonly type: Schema.Literal<"InferenceFailed">;
|
|
1157
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1158
|
+
readonly payload: Schema.Struct<{
|
|
1159
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1160
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1161
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1162
|
+
readonly error: Schema.Struct<{
|
|
1163
|
+
readonly message: Schema.String;
|
|
1164
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
1165
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1166
|
+
}>;
|
|
1167
|
+
}>;
|
|
1168
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1169
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1170
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1171
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1172
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1173
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1174
|
+
readonly span: Schema.Struct<{
|
|
1175
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1176
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1177
|
+
readonly sampled: Schema.Boolean;
|
|
1178
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1179
|
+
}>;
|
|
1180
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1181
|
+
readonly context: Schema.Struct<{
|
|
1182
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1183
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1184
|
+
readonly sampled: Schema.Boolean;
|
|
1185
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1186
|
+
}>;
|
|
1187
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1188
|
+
}>>;
|
|
1189
|
+
}>>;
|
|
1190
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1191
|
+
readonly namespace: Schema.Literal<string>;
|
|
1192
|
+
readonly type: Schema.Literal<"ToolCallCreated">;
|
|
1193
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1194
|
+
readonly payload: Schema.Struct<{
|
|
1195
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1196
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1197
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1198
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1199
|
+
readonly promptPart: Schema.Struct<{
|
|
1200
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1201
|
+
readonly name: Schema.NonEmptyString;
|
|
1202
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
1203
|
+
readonly params: Schema.Unknown;
|
|
1204
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
1205
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1206
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1207
|
+
}>;
|
|
1208
|
+
}>;
|
|
1209
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1210
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1211
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1212
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1213
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1214
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1215
|
+
readonly span: Schema.Struct<{
|
|
1216
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1217
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1218
|
+
readonly sampled: Schema.Boolean;
|
|
1219
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1220
|
+
}>;
|
|
1221
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1222
|
+
readonly context: Schema.Struct<{
|
|
1223
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1224
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1225
|
+
readonly sampled: Schema.Boolean;
|
|
1226
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1227
|
+
}>;
|
|
1228
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1229
|
+
}>>;
|
|
1230
|
+
}>>;
|
|
1231
|
+
}>, Schema.Struct<{
|
|
1232
|
+
readonly namespace: Schema.Literal<string>;
|
|
1233
|
+
readonly type: Schema.Literal<"ToolCallRejected">;
|
|
1234
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1235
|
+
readonly payload: Schema.Struct<{
|
|
1236
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1237
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1238
|
+
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1239
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1240
|
+
readonly promptPart: Schema.Struct<{
|
|
1241
|
+
readonly isFailure: Schema.Literal<true>;
|
|
1242
|
+
readonly result: Schema.Struct<{
|
|
1243
|
+
readonly message: Schema.String;
|
|
1244
|
+
readonly reason: Schema.Literals<readonly ["unknown-tool", "invalid-params"]>;
|
|
1245
|
+
readonly modelFeedback: Schema.NonEmptyString;
|
|
1246
|
+
}>;
|
|
1247
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1248
|
+
readonly name: Schema.NonEmptyString;
|
|
1249
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
1250
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1251
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1252
|
+
}>;
|
|
1253
|
+
}>;
|
|
1254
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1255
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1256
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1257
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1258
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1259
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1260
|
+
readonly span: Schema.Struct<{
|
|
1261
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1262
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1263
|
+
readonly sampled: Schema.Boolean;
|
|
1264
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1265
|
+
}>;
|
|
1266
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1267
|
+
readonly context: Schema.Struct<{
|
|
1268
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1269
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1270
|
+
readonly sampled: Schema.Boolean;
|
|
1271
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1272
|
+
}>;
|
|
1273
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1274
|
+
}>>;
|
|
1275
|
+
}>>;
|
|
1276
|
+
}>, Schema.Struct<{
|
|
1277
|
+
readonly namespace: Schema.Literal<string>;
|
|
1278
|
+
readonly type: Schema.Literal<"ToolCallStarted">;
|
|
1279
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1280
|
+
readonly payload: Schema.Struct<{
|
|
1281
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1282
|
+
}>;
|
|
1283
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1284
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1285
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1286
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1287
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1288
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1289
|
+
readonly span: Schema.Struct<{
|
|
1290
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1291
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1292
|
+
readonly sampled: Schema.Boolean;
|
|
1293
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1294
|
+
}>;
|
|
1295
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1296
|
+
readonly context: Schema.Struct<{
|
|
1297
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1298
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1299
|
+
readonly sampled: Schema.Boolean;
|
|
1300
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1301
|
+
}>;
|
|
1302
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1303
|
+
}>>;
|
|
1304
|
+
}>>;
|
|
1305
|
+
}>, Schema.Struct<{
|
|
1306
|
+
readonly namespace: Schema.Literal<string>;
|
|
1307
|
+
readonly type: Schema.Literal<"ToolCallCompleted">;
|
|
1308
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1309
|
+
readonly payload: Schema.Struct<{
|
|
1310
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1311
|
+
readonly promptPart: Schema.Struct<{
|
|
1312
|
+
readonly isFailure: Schema.Literal<false>;
|
|
1313
|
+
readonly result: Schema.Unknown;
|
|
1314
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1315
|
+
readonly name: Schema.NonEmptyString;
|
|
1316
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
1317
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1318
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1319
|
+
}>;
|
|
1320
|
+
}>;
|
|
1321
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1322
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1323
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1324
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1325
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1326
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1327
|
+
readonly span: Schema.Struct<{
|
|
1328
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1329
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1330
|
+
readonly sampled: Schema.Boolean;
|
|
1331
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1332
|
+
}>;
|
|
1333
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1334
|
+
readonly context: Schema.Struct<{
|
|
1335
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1336
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1337
|
+
readonly sampled: Schema.Boolean;
|
|
1338
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1339
|
+
}>;
|
|
1340
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1341
|
+
}>>;
|
|
1342
|
+
}>>;
|
|
1343
|
+
}>, Schema.Struct<{
|
|
1344
|
+
readonly namespace: Schema.Literal<string>;
|
|
1345
|
+
readonly type: Schema.Literal<"ToolCallFailed">;
|
|
1346
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1347
|
+
readonly payload: Schema.Struct<{
|
|
1348
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1349
|
+
readonly error: Schema.optionalKey<Schema.Struct<{
|
|
1350
|
+
readonly message: Schema.String;
|
|
1351
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
1352
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1353
|
+
}>>;
|
|
1354
|
+
readonly promptPart: Schema.Struct<{
|
|
1355
|
+
readonly isFailure: Schema.Literal<true>;
|
|
1356
|
+
readonly result: Schema.Struct<{
|
|
1357
|
+
readonly message: Schema.String;
|
|
1358
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
1359
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1360
|
+
}>;
|
|
1361
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1362
|
+
readonly name: Schema.NonEmptyString;
|
|
1363
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
1364
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1365
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1366
|
+
}>;
|
|
1367
|
+
}>;
|
|
1368
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1369
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1370
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1371
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1372
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1373
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1374
|
+
readonly span: Schema.Struct<{
|
|
1375
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1376
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1377
|
+
readonly sampled: Schema.Boolean;
|
|
1378
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1379
|
+
}>;
|
|
1380
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1381
|
+
readonly context: Schema.Struct<{
|
|
1382
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1383
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1384
|
+
readonly sampled: Schema.Boolean;
|
|
1385
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1386
|
+
}>;
|
|
1387
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1388
|
+
}>>;
|
|
1389
|
+
}>>;
|
|
1390
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1391
|
+
readonly namespace: Schema.Literal<string>;
|
|
1392
|
+
readonly type: Schema.Literal<"StopTurnRequested">;
|
|
1393
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1394
|
+
readonly payload: Schema.Struct<{
|
|
1395
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
1396
|
+
readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "RunId">>;
|
|
1397
|
+
readonly turnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
1398
|
+
}>;
|
|
1399
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1400
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1401
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1402
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1403
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1404
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1405
|
+
readonly span: Schema.Struct<{
|
|
1406
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1407
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1408
|
+
readonly sampled: Schema.Boolean;
|
|
1409
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1410
|
+
}>;
|
|
1411
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1412
|
+
readonly context: Schema.Struct<{
|
|
1413
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1414
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1415
|
+
readonly sampled: Schema.Boolean;
|
|
1416
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1417
|
+
}>;
|
|
1418
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1419
|
+
}>>;
|
|
1420
|
+
}>>;
|
|
1421
|
+
}>, Schema.Struct<{
|
|
1422
|
+
readonly namespace: Schema.Literal<string>;
|
|
1423
|
+
readonly type: Schema.Literal<"StopTurnApplied">;
|
|
1424
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1425
|
+
readonly payload: Schema.Struct<{
|
|
1426
|
+
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
1427
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1428
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1429
|
+
readonly inferenceId: Schema.optionalKey<Schema.brand<Schema.String, "InferenceId">>;
|
|
1430
|
+
}>;
|
|
1431
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1432
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1433
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1434
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1435
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1436
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1437
|
+
readonly span: Schema.Struct<{
|
|
1438
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1439
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1440
|
+
readonly sampled: Schema.Boolean;
|
|
1441
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1442
|
+
}>;
|
|
1443
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1444
|
+
readonly context: Schema.Struct<{
|
|
1445
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1446
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1447
|
+
readonly sampled: Schema.Boolean;
|
|
1448
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1449
|
+
}>;
|
|
1450
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1451
|
+
}>>;
|
|
1452
|
+
}>>;
|
|
1453
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1454
|
+
readonly namespace: Schema.Literal<string>;
|
|
1455
|
+
readonly type: Schema.Literal<"ContextProjected">;
|
|
1456
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1457
|
+
readonly payload: Schema.Struct<{
|
|
1458
|
+
readonly contextVersion: Schema.brand<Schema.Int, "ContextVersion">;
|
|
1459
|
+
readonly throughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1460
|
+
}>;
|
|
1461
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1462
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1463
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1464
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1465
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1466
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1467
|
+
readonly span: Schema.Struct<{
|
|
1468
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1469
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1470
|
+
readonly sampled: Schema.Boolean;
|
|
1471
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1472
|
+
}>;
|
|
1473
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1474
|
+
readonly context: Schema.Struct<{
|
|
1475
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1476
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1477
|
+
readonly sampled: Schema.Boolean;
|
|
1478
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1479
|
+
}>;
|
|
1480
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1481
|
+
}>>;
|
|
1482
|
+
}>>;
|
|
1483
|
+
}>, Schema.Struct<{
|
|
1484
|
+
readonly namespace: Schema.Literal<string>;
|
|
1485
|
+
readonly type: Schema.Literal<"CompactionRequested">;
|
|
1486
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1487
|
+
readonly payload: Schema.Struct<{
|
|
1488
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
1489
|
+
readonly sourceFromSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1490
|
+
readonly sourceToSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1491
|
+
}>;
|
|
1492
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1493
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1494
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1495
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1496
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1497
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1498
|
+
readonly span: Schema.Struct<{
|
|
1499
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1500
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1501
|
+
readonly sampled: Schema.Boolean;
|
|
1502
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1503
|
+
}>;
|
|
1504
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1505
|
+
readonly context: Schema.Struct<{
|
|
1506
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1507
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1508
|
+
readonly sampled: Schema.Boolean;
|
|
1509
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1510
|
+
}>;
|
|
1511
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1512
|
+
}>>;
|
|
1513
|
+
}>>;
|
|
1514
|
+
}>, Schema.Struct<{
|
|
1515
|
+
readonly namespace: Schema.Literal<string>;
|
|
1516
|
+
readonly type: Schema.Literal<"CompactionStarted">;
|
|
1517
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1518
|
+
readonly payload: Schema.Struct<{
|
|
1519
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
1520
|
+
}>;
|
|
1521
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1522
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1523
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1524
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1525
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1526
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1527
|
+
readonly span: Schema.Struct<{
|
|
1528
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1529
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1530
|
+
readonly sampled: Schema.Boolean;
|
|
1531
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1532
|
+
}>;
|
|
1533
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1534
|
+
readonly context: Schema.Struct<{
|
|
1535
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1536
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1537
|
+
readonly sampled: Schema.Boolean;
|
|
1538
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1539
|
+
}>;
|
|
1540
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1541
|
+
}>>;
|
|
1542
|
+
}>>;
|
|
1543
|
+
}>, Schema.Struct<{
|
|
1544
|
+
readonly namespace: Schema.Literal<string>;
|
|
1545
|
+
readonly type: Schema.Literal<"SummaryCreated">;
|
|
1546
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1547
|
+
readonly payload: Schema.Struct<{
|
|
1548
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
1549
|
+
readonly summaryId: Schema.brand<Schema.String, "SummaryId">;
|
|
1550
|
+
readonly sourceFromSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1551
|
+
readonly sourceToSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1552
|
+
readonly summary: Schema.Unknown;
|
|
1553
|
+
}>;
|
|
1554
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1555
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1556
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1557
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1558
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1559
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1560
|
+
readonly span: Schema.Struct<{
|
|
1561
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1562
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1563
|
+
readonly sampled: Schema.Boolean;
|
|
1564
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1565
|
+
}>;
|
|
1566
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1567
|
+
readonly context: Schema.Struct<{
|
|
1568
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1569
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1570
|
+
readonly sampled: Schema.Boolean;
|
|
1571
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1572
|
+
}>;
|
|
1573
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1574
|
+
}>>;
|
|
1575
|
+
}>>;
|
|
1576
|
+
}>, Schema.Struct<{
|
|
1577
|
+
readonly namespace: Schema.Literal<string>;
|
|
1578
|
+
readonly type: Schema.Literal<"CompactionCompleted">;
|
|
1579
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1580
|
+
readonly payload: Schema.Struct<{
|
|
1581
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
1582
|
+
}>;
|
|
1583
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1584
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1585
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1586
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1587
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1588
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1589
|
+
readonly span: Schema.Struct<{
|
|
1590
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1591
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1592
|
+
readonly sampled: Schema.Boolean;
|
|
1593
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1594
|
+
}>;
|
|
1595
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1596
|
+
readonly context: Schema.Struct<{
|
|
1597
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1598
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1599
|
+
readonly sampled: Schema.Boolean;
|
|
1600
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1601
|
+
}>;
|
|
1602
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1603
|
+
}>>;
|
|
1604
|
+
}>>;
|
|
1605
|
+
}>, Schema.Struct<{
|
|
1606
|
+
readonly namespace: Schema.Literal<string>;
|
|
1607
|
+
readonly type: Schema.Literal<"ContextRebased">;
|
|
1608
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1609
|
+
readonly payload: Schema.Struct<{
|
|
1610
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
1611
|
+
readonly summaryId: Schema.brand<Schema.String, "SummaryId">;
|
|
1612
|
+
readonly contextVersion: Schema.brand<Schema.Int, "ContextVersion">;
|
|
1613
|
+
readonly retainedFromContextSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1614
|
+
}>;
|
|
1615
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1616
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1617
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1618
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1619
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1620
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1621
|
+
readonly span: Schema.Struct<{
|
|
1622
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1623
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1624
|
+
readonly sampled: Schema.Boolean;
|
|
1625
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1626
|
+
}>;
|
|
1627
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1628
|
+
readonly context: Schema.Struct<{
|
|
1629
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1630
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1631
|
+
readonly sampled: Schema.Boolean;
|
|
1632
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1633
|
+
}>;
|
|
1634
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1635
|
+
}>>;
|
|
1636
|
+
}>>;
|
|
1637
|
+
}>, Schema.Struct<{
|
|
1638
|
+
readonly namespace: Schema.Literal<string>;
|
|
1639
|
+
readonly type: Schema.Literal<"CompactionFailed">;
|
|
1640
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1641
|
+
readonly payload: Schema.Struct<{
|
|
1642
|
+
readonly compactionId: Schema.brand<Schema.String, "CompactionId">;
|
|
1643
|
+
readonly error: Schema.Struct<{
|
|
1644
|
+
readonly message: Schema.String;
|
|
1645
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
1646
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1647
|
+
}>;
|
|
1648
|
+
}>;
|
|
1649
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1650
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1651
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1652
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1653
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1654
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1655
|
+
readonly span: Schema.Struct<{
|
|
1656
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1657
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1658
|
+
readonly sampled: Schema.Boolean;
|
|
1659
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1660
|
+
}>;
|
|
1661
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1662
|
+
readonly context: Schema.Struct<{
|
|
1663
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1664
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1665
|
+
readonly sampled: Schema.Boolean;
|
|
1666
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1667
|
+
}>;
|
|
1668
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1669
|
+
}>>;
|
|
1670
|
+
}>>;
|
|
1671
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1672
|
+
readonly namespace: Schema.Literal<string>;
|
|
1673
|
+
readonly type: Schema.Literal<"BaseStateRequested">;
|
|
1674
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1675
|
+
readonly payload: Schema.Struct<{
|
|
1676
|
+
readonly baseStateId: Schema.brand<Schema.String, "BaseStateId">;
|
|
1677
|
+
readonly requestedThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1678
|
+
}>;
|
|
1679
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1680
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1681
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1682
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1683
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1684
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1685
|
+
readonly span: Schema.Struct<{
|
|
1686
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1687
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1688
|
+
readonly sampled: Schema.Boolean;
|
|
1689
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1690
|
+
}>;
|
|
1691
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1692
|
+
readonly context: Schema.Struct<{
|
|
1693
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1694
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1695
|
+
readonly sampled: Schema.Boolean;
|
|
1696
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1697
|
+
}>;
|
|
1698
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1699
|
+
}>>;
|
|
1700
|
+
}>>;
|
|
1701
|
+
}>, Schema.Struct<{
|
|
1702
|
+
readonly namespace: Schema.Literal<string>;
|
|
1703
|
+
readonly type: Schema.Literal<"BaseStateCreated">;
|
|
1704
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1705
|
+
readonly payload: Schema.Struct<{
|
|
1706
|
+
readonly baseStateId: Schema.brand<Schema.String, "BaseStateId">;
|
|
1707
|
+
readonly coversThroughSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1708
|
+
}>;
|
|
1709
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1710
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1711
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1712
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1713
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1714
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1715
|
+
readonly span: Schema.Struct<{
|
|
1716
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1717
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1718
|
+
readonly sampled: Schema.Boolean;
|
|
1719
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1720
|
+
}>;
|
|
1721
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1722
|
+
readonly context: Schema.Struct<{
|
|
1723
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1724
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1725
|
+
readonly sampled: Schema.Boolean;
|
|
1726
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1727
|
+
}>;
|
|
1728
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1729
|
+
}>>;
|
|
1730
|
+
}>>;
|
|
1731
|
+
}>, Schema.Struct<{
|
|
1732
|
+
readonly namespace: Schema.Literal<string>;
|
|
1733
|
+
readonly type: Schema.Literal<"BaseStateFailed">;
|
|
1734
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1735
|
+
readonly payload: Schema.Struct<{
|
|
1736
|
+
readonly baseStateId: Schema.brand<Schema.String, "BaseStateId">;
|
|
1737
|
+
readonly error: Schema.Struct<{
|
|
1738
|
+
readonly message: Schema.String;
|
|
1739
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
1740
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1741
|
+
}>;
|
|
1742
|
+
}>;
|
|
1743
|
+
readonly durability: Schema.Literal<"durable">;
|
|
1744
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1745
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1746
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1747
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1748
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1749
|
+
readonly span: Schema.Struct<{
|
|
1750
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1751
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1752
|
+
readonly sampled: Schema.Boolean;
|
|
1753
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1754
|
+
}>;
|
|
1755
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1756
|
+
readonly context: Schema.Struct<{
|
|
1757
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1758
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1759
|
+
readonly sampled: Schema.Boolean;
|
|
1760
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1761
|
+
}>;
|
|
1762
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1763
|
+
}>>;
|
|
1764
|
+
}>>;
|
|
1765
|
+
}>]>]>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1766
|
+
readonly namespace: Schema.Literal<string>;
|
|
1767
|
+
readonly type: Schema.Literal<"TextDelta">;
|
|
1768
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1769
|
+
readonly payload: Schema.Struct<{
|
|
1770
|
+
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1771
|
+
readonly delta: Schema.String;
|
|
1772
|
+
}>;
|
|
1773
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
1774
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1775
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1776
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1777
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1778
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1779
|
+
readonly span: Schema.Struct<{
|
|
1780
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1781
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1782
|
+
readonly sampled: Schema.Boolean;
|
|
1783
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1784
|
+
}>;
|
|
1785
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1786
|
+
readonly context: Schema.Struct<{
|
|
1787
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1788
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1789
|
+
readonly sampled: Schema.Boolean;
|
|
1790
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1791
|
+
}>;
|
|
1792
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1793
|
+
}>>;
|
|
1794
|
+
}>>;
|
|
1795
|
+
}>, Schema.Struct<{
|
|
1796
|
+
readonly namespace: Schema.Literal<string>;
|
|
1797
|
+
readonly type: Schema.Literal<"ReasoningDelta">;
|
|
1798
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1799
|
+
readonly payload: Schema.Struct<{
|
|
1800
|
+
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1801
|
+
readonly delta: Schema.String;
|
|
1802
|
+
}>;
|
|
1803
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
1804
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1805
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1806
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1807
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1808
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1809
|
+
readonly span: Schema.Struct<{
|
|
1810
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1811
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1812
|
+
readonly sampled: Schema.Boolean;
|
|
1813
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1814
|
+
}>;
|
|
1815
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1816
|
+
readonly context: Schema.Struct<{
|
|
1817
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1818
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1819
|
+
readonly sampled: Schema.Boolean;
|
|
1820
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1821
|
+
}>;
|
|
1822
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1823
|
+
}>>;
|
|
1824
|
+
}>>;
|
|
1825
|
+
}>, Schema.Struct<{
|
|
1826
|
+
readonly namespace: Schema.Literal<string>;
|
|
1827
|
+
readonly type: Schema.Literal<"ToolParamsStart">;
|
|
1828
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1829
|
+
readonly payload: Schema.Struct<{
|
|
1830
|
+
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1831
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1832
|
+
readonly toolName: Schema.NonEmptyString;
|
|
1833
|
+
readonly providerExecuted: Schema.Boolean;
|
|
1834
|
+
}>;
|
|
1835
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
1836
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1837
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1838
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1839
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1840
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1841
|
+
readonly span: Schema.Struct<{
|
|
1842
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1843
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1844
|
+
readonly sampled: Schema.Boolean;
|
|
1845
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1846
|
+
}>;
|
|
1847
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1848
|
+
readonly context: Schema.Struct<{
|
|
1849
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1850
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1851
|
+
readonly sampled: Schema.Boolean;
|
|
1852
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1853
|
+
}>;
|
|
1854
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1855
|
+
}>>;
|
|
1856
|
+
}>>;
|
|
1857
|
+
}>, Schema.Struct<{
|
|
1858
|
+
readonly namespace: Schema.Literal<string>;
|
|
1859
|
+
readonly type: Schema.Literal<"ToolParamsDelta">;
|
|
1860
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1861
|
+
readonly payload: Schema.Struct<{
|
|
1862
|
+
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1863
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1864
|
+
readonly delta: Schema.String;
|
|
1865
|
+
}>;
|
|
1866
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
1867
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1868
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1869
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1870
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1871
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1872
|
+
readonly span: Schema.Struct<{
|
|
1873
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1874
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1875
|
+
readonly sampled: Schema.Boolean;
|
|
1876
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1877
|
+
}>;
|
|
1878
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1879
|
+
readonly context: Schema.Struct<{
|
|
1880
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1881
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1882
|
+
readonly sampled: Schema.Boolean;
|
|
1883
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1884
|
+
}>;
|
|
1885
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1886
|
+
}>>;
|
|
1887
|
+
}>>;
|
|
1888
|
+
}>, Schema.Struct<{
|
|
1889
|
+
readonly namespace: Schema.Literal<string>;
|
|
1890
|
+
readonly type: Schema.Literal<"ToolParamsEnd">;
|
|
1891
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1892
|
+
readonly payload: Schema.Struct<{
|
|
1893
|
+
readonly providerPartId: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
1894
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
1895
|
+
}>;
|
|
1896
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
1897
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1898
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1899
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1900
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1901
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1902
|
+
readonly span: Schema.Struct<{
|
|
1903
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1904
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1905
|
+
readonly sampled: Schema.Boolean;
|
|
1906
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1907
|
+
}>;
|
|
1908
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1909
|
+
readonly context: Schema.Struct<{
|
|
1910
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1911
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1912
|
+
readonly sampled: Schema.Boolean;
|
|
1913
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1914
|
+
}>;
|
|
1915
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1916
|
+
}>>;
|
|
1917
|
+
}>>;
|
|
1918
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
1919
|
+
readonly namespace: Schema.Literal<string>;
|
|
1920
|
+
readonly type: Schema.Literal<"SubscriberStatus">;
|
|
1921
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1922
|
+
readonly payload: Schema.Struct<{
|
|
1923
|
+
readonly status: Schema.Literals<readonly ["connected", "catching-up", "live", "lagging", "closed"]>;
|
|
1924
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
1925
|
+
}>;
|
|
1926
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
1927
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1928
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1929
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1930
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1931
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1932
|
+
readonly span: Schema.Struct<{
|
|
1933
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1934
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1935
|
+
readonly sampled: Schema.Boolean;
|
|
1936
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1937
|
+
}>;
|
|
1938
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1939
|
+
readonly context: Schema.Struct<{
|
|
1940
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1941
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1942
|
+
readonly sampled: Schema.Boolean;
|
|
1943
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1944
|
+
}>;
|
|
1945
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1946
|
+
}>>;
|
|
1947
|
+
}>>;
|
|
1948
|
+
}>, Schema.Struct<{
|
|
1949
|
+
readonly namespace: Schema.Literal<string>;
|
|
1950
|
+
readonly type: Schema.Literal<"TraceStatus">;
|
|
1951
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
1952
|
+
readonly payload: Schema.Struct<{
|
|
1953
|
+
readonly status: Schema.Literals<readonly ["span-started", "span-ended", "span-failed"]>;
|
|
1954
|
+
readonly spanName: Schema.NonEmptyString;
|
|
1955
|
+
readonly details: Schema.optionalKey<Schema.Unknown>;
|
|
1956
|
+
}>;
|
|
1957
|
+
readonly durability: Schema.Literal<"ephemeral">;
|
|
1958
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
1959
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
1960
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
1961
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
1962
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
1963
|
+
readonly span: Schema.Struct<{
|
|
1964
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1965
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1966
|
+
readonly sampled: Schema.Boolean;
|
|
1967
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1968
|
+
}>;
|
|
1969
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
1970
|
+
readonly context: Schema.Struct<{
|
|
1971
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
1972
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
1973
|
+
readonly sampled: Schema.Boolean;
|
|
1974
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
1975
|
+
}>;
|
|
1976
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1977
|
+
}>>;
|
|
1978
|
+
}>>;
|
|
1979
|
+
}>]>]>]>;
|
|
1980
|
+
type EDAFrameworkWebSocketEvent = typeof EDAFrameworkWebSocketEvent.Type;
|
|
1981
|
+
declare const makeEDAWebSocketDomainSchemas: <EventSchema extends Schema.Codec<EventEnvelope, unknown, never, never>>(event: EventSchema) => {
|
|
1982
|
+
event: EventSchema;
|
|
1983
|
+
positionedEvent: Schema.Struct<{
|
|
1984
|
+
readonly position: Schema.Struct<{
|
|
1985
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1986
|
+
readonly subSeq: Schema.brand<Schema.Int, "SubSequenceNumber">;
|
|
1987
|
+
}>;
|
|
1988
|
+
readonly event: EventSchema;
|
|
1989
|
+
}>;
|
|
1990
|
+
eventsFrame: Schema.Struct<{
|
|
1991
|
+
readonly _tag: Schema.Literal<"events">;
|
|
1992
|
+
readonly frameId: Schema.Int;
|
|
1993
|
+
readonly events: Schema.NonEmptyArray<Schema.Struct<{
|
|
1994
|
+
readonly position: Schema.Struct<{
|
|
1995
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1996
|
+
readonly subSeq: Schema.brand<Schema.Int, "SubSequenceNumber">;
|
|
1997
|
+
}>;
|
|
1998
|
+
readonly event: EventSchema;
|
|
1999
|
+
}>>;
|
|
2000
|
+
readonly durableThroughSeq: Schema.Int;
|
|
2001
|
+
}>;
|
|
2002
|
+
serverFrame: Schema.Union<readonly [Schema.Struct<{
|
|
2003
|
+
readonly _tag: Schema.Literal<"hello">;
|
|
2004
|
+
readonly protocolVersion: Schema.Literal<1>;
|
|
2005
|
+
readonly subscriberId: Schema.NonEmptyString;
|
|
2006
|
+
readonly resumeSeq: Schema.Int;
|
|
2007
|
+
readonly flowControl: Schema.Struct<{
|
|
2008
|
+
readonly ackTimeoutMs: Schema.Int;
|
|
2009
|
+
readonly heartbeatIntervalMs: Schema.Int;
|
|
2010
|
+
readonly maxFrameBytes: Schema.Int;
|
|
2011
|
+
readonly maxFrameEvents: Schema.Int;
|
|
2012
|
+
readonly maxInFlightFrames: Schema.Int;
|
|
2013
|
+
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
2014
|
+
}>;
|
|
2015
|
+
}>, Schema.Struct<{
|
|
2016
|
+
readonly _tag: Schema.Literal<"events">;
|
|
2017
|
+
readonly frameId: Schema.Int;
|
|
2018
|
+
readonly events: Schema.NonEmptyArray<Schema.Struct<{
|
|
2019
|
+
readonly position: Schema.Struct<{
|
|
2020
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2021
|
+
readonly subSeq: Schema.brand<Schema.Int, "SubSequenceNumber">;
|
|
2022
|
+
}>;
|
|
2023
|
+
readonly event: EventSchema;
|
|
2024
|
+
}>>;
|
|
2025
|
+
readonly durableThroughSeq: Schema.Int;
|
|
2026
|
+
}>, Schema.Struct<{
|
|
2027
|
+
readonly _tag: Schema.Literal<"heartbeat">;
|
|
2028
|
+
readonly serverTimeMs: Schema.Int;
|
|
2029
|
+
readonly durableThroughSeq: Schema.Int;
|
|
2030
|
+
}>, Schema.Struct<{
|
|
2031
|
+
readonly _tag: Schema.Literal<"lagged">;
|
|
2032
|
+
readonly resumeSeq: Schema.Int;
|
|
2033
|
+
readonly reason: Schema.Literals<readonly ["buffer-overflow", "ack-timeout"]>;
|
|
2034
|
+
}>, Schema.Struct<{
|
|
2035
|
+
readonly _tag: Schema.Literal<"error">;
|
|
2036
|
+
readonly message: Schema.String;
|
|
2037
|
+
}>]>;
|
|
2038
|
+
};
|
|
2039
|
+
type EDAWebSocketDomainSchemas<EventSchema extends Schema.Codec<EventEnvelope, unknown, never, never>> = ReturnType<typeof makeEDAWebSocketDomainSchemas<EventSchema>>;
|
|
2040
|
+
declare const EDAWebSocketHostDomain: {
|
|
2041
|
+
event: Schema.Struct<{
|
|
2042
|
+
readonly namespace: Schema.NonEmptyString;
|
|
2043
|
+
readonly type: Schema.NonEmptyString;
|
|
2044
|
+
readonly schemaVersion: Schema.Int;
|
|
2045
|
+
readonly durability: Schema.Literals<readonly ["durable", "ephemeral"]>;
|
|
2046
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2047
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2048
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
2049
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
2050
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
2051
|
+
readonly span: Schema.Struct<{
|
|
2052
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2053
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2054
|
+
readonly sampled: Schema.Boolean;
|
|
2055
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2056
|
+
}>;
|
|
2057
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
2058
|
+
readonly context: Schema.Struct<{
|
|
2059
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2060
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2061
|
+
readonly sampled: Schema.Boolean;
|
|
2062
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2063
|
+
}>;
|
|
2064
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2065
|
+
}>>;
|
|
2066
|
+
}>>;
|
|
2067
|
+
readonly payload: Schema.Unknown;
|
|
2068
|
+
}>;
|
|
2069
|
+
positionedEvent: Schema.Struct<{
|
|
2070
|
+
readonly position: Schema.Struct<{
|
|
2071
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2072
|
+
readonly subSeq: Schema.brand<Schema.Int, "SubSequenceNumber">;
|
|
2073
|
+
}>;
|
|
2074
|
+
readonly event: Schema.Struct<{
|
|
2075
|
+
readonly namespace: Schema.NonEmptyString;
|
|
2076
|
+
readonly type: Schema.NonEmptyString;
|
|
2077
|
+
readonly schemaVersion: Schema.Int;
|
|
2078
|
+
readonly durability: Schema.Literals<readonly ["durable", "ephemeral"]>;
|
|
2079
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2080
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2081
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
2082
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
2083
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
2084
|
+
readonly span: Schema.Struct<{
|
|
2085
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2086
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2087
|
+
readonly sampled: Schema.Boolean;
|
|
2088
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2089
|
+
}>;
|
|
2090
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
2091
|
+
readonly context: Schema.Struct<{
|
|
2092
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2093
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2094
|
+
readonly sampled: Schema.Boolean;
|
|
2095
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2096
|
+
}>;
|
|
2097
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2098
|
+
}>>;
|
|
2099
|
+
}>>;
|
|
2100
|
+
readonly payload: Schema.Unknown;
|
|
2101
|
+
}>;
|
|
2102
|
+
}>;
|
|
2103
|
+
eventsFrame: Schema.Struct<{
|
|
2104
|
+
readonly _tag: Schema.Literal<"events">;
|
|
2105
|
+
readonly frameId: Schema.Int;
|
|
2106
|
+
readonly events: Schema.NonEmptyArray<Schema.Struct<{
|
|
2107
|
+
readonly position: Schema.Struct<{
|
|
2108
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2109
|
+
readonly subSeq: Schema.brand<Schema.Int, "SubSequenceNumber">;
|
|
2110
|
+
}>;
|
|
2111
|
+
readonly event: Schema.Struct<{
|
|
2112
|
+
readonly namespace: Schema.NonEmptyString;
|
|
2113
|
+
readonly type: Schema.NonEmptyString;
|
|
2114
|
+
readonly schemaVersion: Schema.Int;
|
|
2115
|
+
readonly durability: Schema.Literals<readonly ["durable", "ephemeral"]>;
|
|
2116
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2117
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2118
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
2119
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
2120
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
2121
|
+
readonly span: Schema.Struct<{
|
|
2122
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2123
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2124
|
+
readonly sampled: Schema.Boolean;
|
|
2125
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2126
|
+
}>;
|
|
2127
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
2128
|
+
readonly context: Schema.Struct<{
|
|
2129
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2130
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2131
|
+
readonly sampled: Schema.Boolean;
|
|
2132
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2133
|
+
}>;
|
|
2134
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2135
|
+
}>>;
|
|
2136
|
+
}>>;
|
|
2137
|
+
readonly payload: Schema.Unknown;
|
|
2138
|
+
}>;
|
|
2139
|
+
}>>;
|
|
2140
|
+
readonly durableThroughSeq: Schema.Int;
|
|
2141
|
+
}>;
|
|
2142
|
+
serverFrame: Schema.Union<readonly [Schema.Struct<{
|
|
2143
|
+
readonly _tag: Schema.Literal<"hello">;
|
|
2144
|
+
readonly protocolVersion: Schema.Literal<1>;
|
|
2145
|
+
readonly subscriberId: Schema.NonEmptyString;
|
|
2146
|
+
readonly resumeSeq: Schema.Int;
|
|
2147
|
+
readonly flowControl: Schema.Struct<{
|
|
2148
|
+
readonly ackTimeoutMs: Schema.Int;
|
|
2149
|
+
readonly heartbeatIntervalMs: Schema.Int;
|
|
2150
|
+
readonly maxFrameBytes: Schema.Int;
|
|
2151
|
+
readonly maxFrameEvents: Schema.Int;
|
|
2152
|
+
readonly maxInFlightFrames: Schema.Int;
|
|
2153
|
+
readonly subscriberBufferCapacityEvents: Schema.Int;
|
|
2154
|
+
}>;
|
|
2155
|
+
}>, Schema.Struct<{
|
|
2156
|
+
readonly _tag: Schema.Literal<"events">;
|
|
2157
|
+
readonly frameId: Schema.Int;
|
|
2158
|
+
readonly events: Schema.NonEmptyArray<Schema.Struct<{
|
|
2159
|
+
readonly position: Schema.Struct<{
|
|
2160
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
2161
|
+
readonly subSeq: Schema.brand<Schema.Int, "SubSequenceNumber">;
|
|
2162
|
+
}>;
|
|
2163
|
+
readonly event: Schema.Struct<{
|
|
2164
|
+
readonly namespace: Schema.NonEmptyString;
|
|
2165
|
+
readonly type: Schema.NonEmptyString;
|
|
2166
|
+
readonly schemaVersion: Schema.Int;
|
|
2167
|
+
readonly durability: Schema.Literals<readonly ["durable", "ephemeral"]>;
|
|
2168
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
2169
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
2170
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
2171
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
2172
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
2173
|
+
readonly span: Schema.Struct<{
|
|
2174
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2175
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2176
|
+
readonly sampled: Schema.Boolean;
|
|
2177
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2178
|
+
}>;
|
|
2179
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
2180
|
+
readonly context: Schema.Struct<{
|
|
2181
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
2182
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
2183
|
+
readonly sampled: Schema.Boolean;
|
|
2184
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
2185
|
+
}>;
|
|
2186
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
2187
|
+
}>>;
|
|
2188
|
+
}>>;
|
|
2189
|
+
readonly payload: Schema.Unknown;
|
|
2190
|
+
}>;
|
|
2191
|
+
}>>;
|
|
2192
|
+
readonly durableThroughSeq: Schema.Int;
|
|
2193
|
+
}>, Schema.Struct<{
|
|
2194
|
+
readonly _tag: Schema.Literal<"heartbeat">;
|
|
2195
|
+
readonly serverTimeMs: Schema.Int;
|
|
2196
|
+
readonly durableThroughSeq: Schema.Int;
|
|
2197
|
+
}>, Schema.Struct<{
|
|
2198
|
+
readonly _tag: Schema.Literal<"lagged">;
|
|
2199
|
+
readonly resumeSeq: Schema.Int;
|
|
2200
|
+
readonly reason: Schema.Literals<readonly ["buffer-overflow", "ack-timeout"]>;
|
|
2201
|
+
}>, Schema.Struct<{
|
|
2202
|
+
readonly _tag: Schema.Literal<"error">;
|
|
2203
|
+
readonly message: Schema.String;
|
|
2204
|
+
}>]>;
|
|
2205
|
+
};
|
|
2206
|
+
/** Domain frame shape accepted by an app-bound encoder at the EDA host boundary. */
|
|
2207
|
+
type EDAWebSocketServerFrameInput = typeof EDAWebSocketHostDomain.serverFrame.Type;
|
|
2208
|
+
/** Minimal typed encoder surface consumed by an EDA host. */
|
|
2209
|
+
interface EDAWebSocketServerFrameEncoder {
|
|
2210
|
+
readonly encodeServerFrame: (frame: EDAWebSocketServerFrameInput) => string;
|
|
2211
|
+
}
|
|
2212
|
+
/** App-bound domain schemas, wire schemas, and encoders for protocol version 1. */
|
|
2213
|
+
interface EDAWebSocketWireProtocol<EventSchema extends Schema.Codec<EventEnvelope, unknown, never, never>> {
|
|
2214
|
+
/** Exact app-bound schemas whose `Type` values are used inside the server. */
|
|
2215
|
+
readonly domain: EDAWebSocketDomainSchemas<EventSchema>;
|
|
2216
|
+
/** Exact app-bound schemas whose `Type` values are the serialized JSON representation. */
|
|
2217
|
+
readonly wire: {
|
|
2218
|
+
readonly event: Schema.toEncoded<EventSchema>;
|
|
2219
|
+
readonly positionedEvent: Schema.toEncoded<EDAWebSocketDomainSchemas<EventSchema>["positionedEvent"]>;
|
|
2220
|
+
readonly eventsFrame: Schema.toEncoded<EDAWebSocketDomainSchemas<EventSchema>["eventsFrame"]>;
|
|
2221
|
+
readonly serverFrame: Schema.toEncoded<EDAWebSocketDomainSchemas<EventSchema>["serverFrame"]>;
|
|
2222
|
+
readonly clientFrame: typeof EDAWebSocketWireClientFrame;
|
|
2223
|
+
};
|
|
2224
|
+
/** Serialize one exact app-bound domain frame to a JSON text message. */
|
|
2225
|
+
readonly encodeServerFrame: (frame: Schema.Schema.Type<EDAWebSocketDomainSchemas<EventSchema>["serverFrame"]>) => string;
|
|
2226
|
+
/** Validate broad host frames against the app event union before serialization. */
|
|
2227
|
+
readonly host: EDAWebSocketServerFrameEncoder;
|
|
2228
|
+
}
|
|
2229
|
+
/** Strict framework-only protocol used when an app registers no custom events. */
|
|
2230
|
+
declare const edaFrameworkWebSocketWireProtocol: EDAWebSocketWireProtocol<typeof EDAFrameworkWebSocketEvent>;
|
|
2231
|
+
/**
|
|
2232
|
+
* Bind the generic EDA WebSocket transport to one app's custom event schema.
|
|
2233
|
+
*
|
|
2234
|
+
* Framework durable and ephemeral events are included automatically. Future EDA
|
|
2235
|
+
* apps register only their custom events. Servers use the returned domain schemas
|
|
2236
|
+
* and typed encoder; external consumers decode with the wire schemas. Pass the
|
|
2237
|
+
* returned `host` adapter to the selected host package.
|
|
2238
|
+
*/
|
|
2239
|
+
declare const makeEDAWebSocketWireProtocol: <AppEventSchema extends Schema.Codec<EventEnvelope, unknown, never, never>>(options: {
|
|
2240
|
+
readonly appEvents: AppEventSchema;
|
|
2241
|
+
}) => EDAWebSocketWireProtocol<Schema.Union<readonly [typeof EDAFrameworkWebSocketEvent, AppEventSchema]>>;
|
|
2242
|
+
//#endregion
|
|
2243
|
+
export { EDAWebSocketWireAckFrame as a, EDAWebSocketWireFlowControl as c, EDAWebSocketWireLaggedFrame as d, EDAWebSocketWireProtocol as f, makeEDAWebSocketWireProtocol as h, EDAWebSocketServerFrameInput as i, EDAWebSocketWireHeartbeatFrame as l, edaFrameworkWebSocketWireProtocol as m, EDAWebSocketEventConsumerPolicy as n, EDAWebSocketWireClientFrame as o, EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION as p, EDAWebSocketServerFrameEncoder as r, EDAWebSocketWireErrorFrame as s, EDAFrameworkWebSocketEvent as t, EDAWebSocketWireHelloFrame as u };
|
|
2244
|
+
//# sourceMappingURL=websocket-wire-QD2SquQE.d.ts.map
|