| ... | @@ -15,7 +15,7 @@ import { ProviderKind } from "./orchestration"; | ... | @@ -15,7 +15,7 @@ import { ProviderKind } from "./orchestration"; |
| 15 | const TrimmedNonEmptyStringSchema = TrimmedNonEmptyString; | 15 | const TrimmedNonEmptyStringSchema = TrimmedNonEmptyString; |
| 16 | const UnknownRecordSchema = Schema.Record(Schema.String, Schema.Unknown); | 16 | const UnknownRecordSchema = Schema.Record(Schema.String, Schema.Unknown); |
| 17 | | 17 | |
| 18 | export const RuntimeEventRawSource = Schema.Literals([ | 18 | const RuntimeEventRawSource = Schema.Literals([ |
| 19 | "codex.app-server.notification", | 19 | "codex.app-server.notification", |
| 20 | "codex.app-server.request", | 20 | "codex.app-server.request", |
| 21 | "codex.eventmsg", | 21 | "codex.eventmsg", |
| ... | @@ -36,17 +36,17 @@ export const RuntimeEventRaw = Schema.Struct({ | ... | @@ -36,17 +36,17 @@ export const RuntimeEventRaw = Schema.Struct({ |
| 36 | }); | 36 | }); |
| 37 | export type RuntimeEventRaw = typeof RuntimeEventRaw.Type; | 37 | export type RuntimeEventRaw = typeof RuntimeEventRaw.Type; |
| 38 | | 38 | |
| 39 | export const ProviderRequestId = TrimmedNonEmptyStringSchema; | 39 | const ProviderRequestId = TrimmedNonEmptyStringSchema; |
| 40 | export type ProviderRequestId = typeof ProviderRequestId.Type; | 40 | export type ProviderRequestId = typeof ProviderRequestId.Type; |
| 41 | | 41 | |
| 42 | export const ProviderRefs = Schema.Struct({ | 42 | const ProviderRefs = Schema.Struct({ |
| 43 | providerTurnId: Schema.optional(TrimmedNonEmptyStringSchema), | 43 | providerTurnId: Schema.optional(TrimmedNonEmptyStringSchema), |
| 44 | providerItemId: Schema.optional(ProviderItemId), | 44 | providerItemId: Schema.optional(ProviderItemId), |
| 45 | providerRequestId: Schema.optional(ProviderRequestId), | 45 | providerRequestId: Schema.optional(ProviderRequestId), |
| 46 | }); | 46 | }); |
| 47 | export type ProviderRefs = typeof ProviderRefs.Type; | 47 | export type ProviderRefs = typeof ProviderRefs.Type; |
| 48 | | 48 | |
| 49 | export const RuntimeSessionState = Schema.Literals([ | 49 | const RuntimeSessionState = Schema.Literals([ |
| 50 | "starting", | 50 | "starting", |
| 51 | "ready", | 51 | "ready", |
| 52 | "running", | 52 | "running", |
| ... | @@ -56,7 +56,7 @@ export const RuntimeSessionState = Schema.Literals([ | ... | @@ -56,7 +56,7 @@ export const RuntimeSessionState = Schema.Literals([ |
| 56 | ]); | 56 | ]); |
| 57 | export type RuntimeSessionState = typeof RuntimeSessionState.Type; | 57 | export type RuntimeSessionState = typeof RuntimeSessionState.Type; |
| 58 | | 58 | |
| 59 | export const RuntimeThreadState = Schema.Literals([ | 59 | const RuntimeThreadState = Schema.Literals([ |
| 60 | "active", | 60 | "active", |
| 61 | "idle", | 61 | "idle", |
| 62 | "archived", | 62 | "archived", |
| ... | @@ -66,7 +66,7 @@ export const RuntimeThreadState = Schema.Literals([ | ... | @@ -66,7 +66,7 @@ export const RuntimeThreadState = Schema.Literals([ |
| 66 | ]); | 66 | ]); |
| 67 | export type RuntimeThreadState = typeof RuntimeThreadState.Type; | 67 | export type RuntimeThreadState = typeof RuntimeThreadState.Type; |
| 68 | | 68 | |
| 69 | export const RuntimeTurnState = Schema.Literals([ | 69 | const RuntimeTurnState = Schema.Literals([ |
| 70 | "completed", | 70 | "completed", |
| 71 | "failed", | 71 | "failed", |
| 72 | "interrupted", | 72 | "interrupted", |
| ... | @@ -74,13 +74,13 @@ export const RuntimeTurnState = Schema.Literals([ | ... | @@ -74,13 +74,13 @@ export const RuntimeTurnState = Schema.Literals([ |
| 74 | ]); | 74 | ]); |
| 75 | export type RuntimeTurnState = typeof RuntimeTurnState.Type; | 75 | export type RuntimeTurnState = typeof RuntimeTurnState.Type; |
| 76 | | 76 | |
| 77 | export const RuntimePlanStepStatus = Schema.Literals(["pending", "inProgress", "completed"]); | 77 | const RuntimePlanStepStatus = Schema.Literals(["pending", "inProgress", "completed"]); |
| 78 | export type RuntimePlanStepStatus = typeof RuntimePlanStepStatus.Type; | 78 | export type RuntimePlanStepStatus = typeof RuntimePlanStepStatus.Type; |
| 79 | | 79 | |
| 80 | export const RuntimeItemStatus = Schema.Literals(["inProgress", "completed", "failed", "declined"]); | 80 | const RuntimeItemStatus = Schema.Literals(["inProgress", "completed", "failed", "declined"]); |
| 81 | export type RuntimeItemStatus = typeof RuntimeItemStatus.Type; | 81 | export type RuntimeItemStatus = typeof RuntimeItemStatus.Type; |
| 82 | | 82 | |
| 83 | export const RuntimeContentStreamKind = Schema.Literals([ | 83 | const RuntimeContentStreamKind = Schema.Literals([ |
| 84 | "assistant_text", | 84 | "assistant_text", |
| 85 | "reasoning_text", | 85 | "reasoning_text", |
| 86 | "reasoning_summary_text", | 86 | "reasoning_summary_text", |
| ... | @@ -91,10 +91,10 @@ export const RuntimeContentStreamKind = Schema.Literals([ | ... | @@ -91,10 +91,10 @@ export const RuntimeContentStreamKind = Schema.Literals([ |
| 91 | ]); | 91 | ]); |
| 92 | export type RuntimeContentStreamKind = typeof RuntimeContentStreamKind.Type; | 92 | export type RuntimeContentStreamKind = typeof RuntimeContentStreamKind.Type; |
| 93 | | 93 | |
| 94 | export const RuntimeSessionExitKind = Schema.Literals(["graceful", "error"]); | 94 | const RuntimeSessionExitKind = Schema.Literals(["graceful", "error"]); |
| 95 | export type RuntimeSessionExitKind = typeof RuntimeSessionExitKind.Type; | 95 | export type RuntimeSessionExitKind = typeof RuntimeSessionExitKind.Type; |
| 96 | | 96 | |
| 97 | export const RuntimeErrorClass = Schema.Literals([ | 97 | const RuntimeErrorClass = Schema.Literals([ |
| 98 | "provider_error", | 98 | "provider_error", |
| 99 | "transport_error", | 99 | "transport_error", |
| 100 | "permission_error", | 100 | "permission_error", |
| ... | @@ -136,7 +136,7 @@ export const CanonicalRequestType = Schema.Literals([ | ... | @@ -136,7 +136,7 @@ export const CanonicalRequestType = Schema.Literals([ |
| 136 | ]); | 136 | ]); |
| 137 | export type CanonicalRequestType = typeof CanonicalRequestType.Type; | 137 | export type CanonicalRequestType = typeof CanonicalRequestType.Type; |
| 138 | | 138 | |
| 139 | export const ProviderRuntimeEventType = Schema.Literals([ | 139 | const ProviderRuntimeEventType = Schema.Literals([ |
| 140 | "session.started", | 140 | "session.started", |
| 141 | "session.configured", | 141 | "session.configured", |
| 142 | "session.state.changed", | 142 | "session.state.changed", |
| ... | @@ -187,55 +187,55 @@ export const ProviderRuntimeEventType = Schema.Literals([ | ... | @@ -187,55 +187,55 @@ export const ProviderRuntimeEventType = Schema.Literals([ |
| 187 | ]); | 187 | ]); |
| 188 | export type ProviderRuntimeEventType = typeof ProviderRuntimeEventType.Type; | 188 | export type ProviderRuntimeEventType = typeof ProviderRuntimeEventType.Type; |
| 189 | | 189 | |
| 190 | export const SessionStartedType = Schema.Literal("session.started"); | 190 | const SessionStartedType = Schema.Literal("session.started"); |
| 191 | export const SessionConfiguredType = Schema.Literal("session.configured"); | 191 | const SessionConfiguredType = Schema.Literal("session.configured"); |
| 192 | export const SessionStateChangedType = Schema.Literal("session.state.changed"); | 192 | const SessionStateChangedType = Schema.Literal("session.state.changed"); |
| 193 | export const SessionExitedType = Schema.Literal("session.exited"); | 193 | const SessionExitedType = Schema.Literal("session.exited"); |
| 194 | export const ThreadStartedType = Schema.Literal("thread.started"); | 194 | const ThreadStartedType = Schema.Literal("thread.started"); |
| 195 | export const ThreadStateChangedType = Schema.Literal("thread.state.changed"); | 195 | const ThreadStateChangedType = Schema.Literal("thread.state.changed"); |
| 196 | export const ThreadMetadataUpdatedType = Schema.Literal("thread.metadata.updated"); | 196 | const ThreadMetadataUpdatedType = Schema.Literal("thread.metadata.updated"); |
| 197 | export const ThreadTokenUsageUpdatedType = Schema.Literal("thread.token-usage.updated"); | 197 | const ThreadTokenUsageUpdatedType = Schema.Literal("thread.token-usage.updated"); |
| 198 | export const ThreadRealtimeStartedType = Schema.Literal("thread.realtime.started"); | 198 | const ThreadRealtimeStartedType = Schema.Literal("thread.realtime.started"); |
| 199 | export const ThreadRealtimeItemAddedType = Schema.Literal("thread.realtime.item-added"); | 199 | const ThreadRealtimeItemAddedType = Schema.Literal("thread.realtime.item-added"); |
| 200 | export const ThreadRealtimeAudioDeltaType = Schema.Literal("thread.realtime.audio.delta"); | 200 | const ThreadRealtimeAudioDeltaType = Schema.Literal("thread.realtime.audio.delta"); |
| 201 | export const ThreadRealtimeErrorType = Schema.Literal("thread.realtime.error"); | 201 | const ThreadRealtimeErrorType = Schema.Literal("thread.realtime.error"); |
| 202 | export const ThreadRealtimeClosedType = Schema.Literal("thread.realtime.closed"); | 202 | const ThreadRealtimeClosedType = Schema.Literal("thread.realtime.closed"); |
| 203 | export const TurnStartedType = Schema.Literal("turn.started"); | 203 | const TurnStartedType = Schema.Literal("turn.started"); |
| 204 | export const TurnCompletedType = Schema.Literal("turn.completed"); | 204 | const TurnCompletedType = Schema.Literal("turn.completed"); |
| 205 | export const TurnAbortedType = Schema.Literal("turn.aborted"); | 205 | const TurnAbortedType = Schema.Literal("turn.aborted"); |
| 206 | export const TurnPlanUpdatedType = Schema.Literal("turn.plan.updated"); | 206 | const TurnPlanUpdatedType = Schema.Literal("turn.plan.updated"); |
| 207 | export const TurnProposedDeltaType = Schema.Literal("turn.proposed.delta"); | 207 | const TurnProposedDeltaType = Schema.Literal("turn.proposed.delta"); |
| 208 | export const TurnProposedCompletedType = Schema.Literal("turn.proposed.completed"); | 208 | const TurnProposedCompletedType = Schema.Literal("turn.proposed.completed"); |
| 209 | export const TurnDiffUpdatedType = Schema.Literal("turn.diff.updated"); | 209 | const TurnDiffUpdatedType = Schema.Literal("turn.diff.updated"); |
| 210 | export const ItemStartedType = Schema.Literal("item.started"); | 210 | const ItemStartedType = Schema.Literal("item.started"); |
| 211 | export const ItemUpdatedType = Schema.Literal("item.updated"); | 211 | const ItemUpdatedType = Schema.Literal("item.updated"); |
| 212 | export const ItemCompletedType = Schema.Literal("item.completed"); | 212 | const ItemCompletedType = Schema.Literal("item.completed"); |
| 213 | export const ContentDeltaType = Schema.Literal("content.delta"); | 213 | const ContentDeltaType = Schema.Literal("content.delta"); |
| 214 | export const RequestOpenedType = Schema.Literal("request.opened"); | 214 | const RequestOpenedType = Schema.Literal("request.opened"); |
| 215 | export const RequestResolvedType = Schema.Literal("request.resolved"); | 215 | const RequestResolvedType = Schema.Literal("request.resolved"); |
| 216 | export const UserInputRequestedType = Schema.Literal("user-input.requested"); | 216 | const UserInputRequestedType = Schema.Literal("user-input.requested"); |
| 217 | export const UserInputResolvedType = Schema.Literal("user-input.resolved"); | 217 | const UserInputResolvedType = Schema.Literal("user-input.resolved"); |
| 218 | export const TaskStartedType = Schema.Literal("task.started"); | 218 | const TaskStartedType = Schema.Literal("task.started"); |
| 219 | export const TaskProgressType = Schema.Literal("task.progress"); | 219 | const TaskProgressType = Schema.Literal("task.progress"); |
| 220 | export const TaskCompletedType = Schema.Literal("task.completed"); | 220 | const TaskCompletedType = Schema.Literal("task.completed"); |
| 221 | export const HookStartedType = Schema.Literal("hook.started"); | 221 | const HookStartedType = Schema.Literal("hook.started"); |
| 222 | export const HookProgressType = Schema.Literal("hook.progress"); | 222 | const HookProgressType = Schema.Literal("hook.progress"); |
| 223 | export const HookCompletedType = Schema.Literal("hook.completed"); | 223 | const HookCompletedType = Schema.Literal("hook.completed"); |
| 224 | export const ToolProgressType = Schema.Literal("tool.progress"); | 224 | const ToolProgressType = Schema.Literal("tool.progress"); |
| 225 | export const ToolSummaryType = Schema.Literal("tool.summary"); | 225 | const ToolSummaryType = Schema.Literal("tool.summary"); |
| 226 | export const AuthStatusType = Schema.Literal("auth.status"); | 226 | const AuthStatusType = Schema.Literal("auth.status"); |
| 227 | export const AccountUpdatedType = Schema.Literal("account.updated"); | 227 | const AccountUpdatedType = Schema.Literal("account.updated"); |
| 228 | export const AccountRateLimitsUpdatedType = Schema.Literal("account.rate-limits.updated"); | 228 | const AccountRateLimitsUpdatedType = Schema.Literal("account.rate-limits.updated"); |
| 229 | export const McpStatusUpdatedType = Schema.Literal("mcp.status.updated"); | 229 | const McpStatusUpdatedType = Schema.Literal("mcp.status.updated"); |
| 230 | export const McpOauthCompletedType = Schema.Literal("mcp.oauth.completed"); | 230 | const McpOauthCompletedType = Schema.Literal("mcp.oauth.completed"); |
| 231 | export const ModelReroutedType = Schema.Literal("model.rerouted"); | 231 | const ModelReroutedType = Schema.Literal("model.rerouted"); |
| 232 | export const ConfigWarningType = Schema.Literal("config.warning"); | 232 | const ConfigWarningType = Schema.Literal("config.warning"); |
| 233 | export const DeprecationNoticeType = Schema.Literal("deprecation.notice"); | 233 | const DeprecationNoticeType = Schema.Literal("deprecation.notice"); |
| 234 | export const FilesPersistedType = Schema.Literal("files.persisted"); | 234 | const FilesPersistedType = Schema.Literal("files.persisted"); |
| 235 | export const RuntimeWarningType = Schema.Literal("runtime.warning"); | 235 | const RuntimeWarningType = Schema.Literal("runtime.warning"); |
| 236 | export const RuntimeErrorType = Schema.Literal("runtime.error"); | 236 | const RuntimeErrorType = Schema.Literal("runtime.error"); |
| 237 | | 237 | |
| 238 | export const ProviderRuntimeEventBase = Schema.Struct({ | 238 | const ProviderRuntimeEventBase = Schema.Struct({ |
| 239 | eventId: EventId, | 239 | eventId: EventId, |
| 240 | provider: ProviderKind, | 240 | provider: ProviderKind, |
| 241 | threadId: ThreadId, | 241 | threadId: ThreadId, |
| ... | @@ -248,85 +248,85 @@ export const ProviderRuntimeEventBase = Schema.Struct({ | ... | @@ -248,85 +248,85 @@ export const ProviderRuntimeEventBase = Schema.Struct({ |
| 248 | }); | 248 | }); |
| 249 | export type ProviderRuntimeEventBase = typeof ProviderRuntimeEventBase.Type; | 249 | export type ProviderRuntimeEventBase = typeof ProviderRuntimeEventBase.Type; |
| 250 | | 250 | |
| 251 | export const SessionStartedPayload = Schema.Struct({ | 251 | const SessionStartedPayload = Schema.Struct({ |
| 252 | message: Schema.optional(TrimmedNonEmptyStringSchema), | 252 | message: Schema.optional(TrimmedNonEmptyStringSchema), |
| 253 | resume: Schema.optional(Schema.Unknown), | 253 | resume: Schema.optional(Schema.Unknown), |
| 254 | }); | 254 | }); |
| 255 | export type SessionStartedPayload = typeof SessionStartedPayload.Type; | 255 | export type SessionStartedPayload = typeof SessionStartedPayload.Type; |
| 256 | | 256 | |
| 257 | export const SessionConfiguredPayload = Schema.Struct({ | 257 | const SessionConfiguredPayload = Schema.Struct({ |
| 258 | config: UnknownRecordSchema, | 258 | config: UnknownRecordSchema, |
| 259 | }); | 259 | }); |
| 260 | export type SessionConfiguredPayload = typeof SessionConfiguredPayload.Type; | 260 | export type SessionConfiguredPayload = typeof SessionConfiguredPayload.Type; |
| 261 | | 261 | |
| 262 | export const SessionStateChangedPayload = Schema.Struct({ | 262 | const SessionStateChangedPayload = Schema.Struct({ |
| 263 | state: RuntimeSessionState, | 263 | state: RuntimeSessionState, |
| 264 | reason: Schema.optional(TrimmedNonEmptyStringSchema), | 264 | reason: Schema.optional(TrimmedNonEmptyStringSchema), |
| 265 | detail: Schema.optional(Schema.Unknown), | 265 | detail: Schema.optional(Schema.Unknown), |
| 266 | }); | 266 | }); |
| 267 | export type SessionStateChangedPayload = typeof SessionStateChangedPayload.Type; | 267 | export type SessionStateChangedPayload = typeof SessionStateChangedPayload.Type; |
| 268 | | 268 | |
| 269 | export const SessionExitedPayload = Schema.Struct({ | 269 | const SessionExitedPayload = Schema.Struct({ |
| 270 | reason: Schema.optional(TrimmedNonEmptyStringSchema), | 270 | reason: Schema.optional(TrimmedNonEmptyStringSchema), |
| 271 | recoverable: Schema.optional(Schema.Boolean), | 271 | recoverable: Schema.optional(Schema.Boolean), |
| 272 | exitKind: Schema.optional(RuntimeSessionExitKind), | 272 | exitKind: Schema.optional(RuntimeSessionExitKind), |
| 273 | }); | 273 | }); |
| 274 | export type SessionExitedPayload = typeof SessionExitedPayload.Type; | 274 | export type SessionExitedPayload = typeof SessionExitedPayload.Type; |
| 275 | | 275 | |
| 276 | export const ThreadStartedPayload = Schema.Struct({ | 276 | const ThreadStartedPayload = Schema.Struct({ |
| 277 | providerThreadId: Schema.optional(TrimmedNonEmptyStringSchema), | 277 | providerThreadId: Schema.optional(TrimmedNonEmptyStringSchema), |
| 278 | }); | 278 | }); |
| 279 | export type ThreadStartedPayload = typeof ThreadStartedPayload.Type; | 279 | export type ThreadStartedPayload = typeof ThreadStartedPayload.Type; |
| 280 | | 280 | |
| 281 | export const ThreadStateChangedPayload = Schema.Struct({ | 281 | const ThreadStateChangedPayload = Schema.Struct({ |
| 282 | state: RuntimeThreadState, | 282 | state: RuntimeThreadState, |
| 283 | detail: Schema.optional(Schema.Unknown), | 283 | detail: Schema.optional(Schema.Unknown), |
| 284 | }); | 284 | }); |
| 285 | export type ThreadStateChangedPayload = typeof ThreadStateChangedPayload.Type; | 285 | export type ThreadStateChangedPayload = typeof ThreadStateChangedPayload.Type; |
| 286 | | 286 | |
| 287 | export const ThreadMetadataUpdatedPayload = Schema.Struct({ | 287 | const ThreadMetadataUpdatedPayload = Schema.Struct({ |
| 288 | name: Schema.optional(TrimmedNonEmptyStringSchema), | 288 | name: Schema.optional(TrimmedNonEmptyStringSchema), |
| 289 | metadata: Schema.optional(UnknownRecordSchema), | 289 | metadata: Schema.optional(UnknownRecordSchema), |
| 290 | }); | 290 | }); |
| 291 | export type ThreadMetadataUpdatedPayload = typeof ThreadMetadataUpdatedPayload.Type; | 291 | export type ThreadMetadataUpdatedPayload = typeof ThreadMetadataUpdatedPayload.Type; |
| 292 | | 292 | |
| 293 | export const ThreadTokenUsageUpdatedPayload = Schema.Struct({ | 293 | const ThreadTokenUsageUpdatedPayload = Schema.Struct({ |
| 294 | usage: Schema.Unknown, | 294 | usage: Schema.Unknown, |
| 295 | }); | 295 | }); |
| 296 | export type ThreadTokenUsageUpdatedPayload = typeof ThreadTokenUsageUpdatedPayload.Type; | 296 | export type ThreadTokenUsageUpdatedPayload = typeof ThreadTokenUsageUpdatedPayload.Type; |
| 297 | | 297 | |
| 298 | export const ThreadRealtimeStartedPayload = Schema.Struct({ | 298 | const ThreadRealtimeStartedPayload = Schema.Struct({ |
| 299 | realtimeSessionId: Schema.optional(TrimmedNonEmptyStringSchema), | 299 | realtimeSessionId: Schema.optional(TrimmedNonEmptyStringSchema), |
| 300 | }); | 300 | }); |
| 301 | export type ThreadRealtimeStartedPayload = typeof ThreadRealtimeStartedPayload.Type; | 301 | export type ThreadRealtimeStartedPayload = typeof ThreadRealtimeStartedPayload.Type; |
| 302 | | 302 | |
| 303 | export const ThreadRealtimeItemAddedPayload = Schema.Struct({ | 303 | const ThreadRealtimeItemAddedPayload = Schema.Struct({ |
| 304 | item: Schema.Unknown, | 304 | item: Schema.Unknown, |
| 305 | }); | 305 | }); |
| 306 | export type ThreadRealtimeItemAddedPayload = typeof ThreadRealtimeItemAddedPayload.Type; | 306 | export type ThreadRealtimeItemAddedPayload = typeof ThreadRealtimeItemAddedPayload.Type; |
| 307 | | 307 | |
| 308 | export const ThreadRealtimeAudioDeltaPayload = Schema.Struct({ | 308 | const ThreadRealtimeAudioDeltaPayload = Schema.Struct({ |
| 309 | audio: Schema.Unknown, | 309 | audio: Schema.Unknown, |
| 310 | }); | 310 | }); |
| 311 | export type ThreadRealtimeAudioDeltaPayload = typeof ThreadRealtimeAudioDeltaPayload.Type; | 311 | export type ThreadRealtimeAudioDeltaPayload = typeof ThreadRealtimeAudioDeltaPayload.Type; |
| 312 | | 312 | |
| 313 | export const ThreadRealtimeErrorPayload = Schema.Struct({ | 313 | const ThreadRealtimeErrorPayload = Schema.Struct({ |
| 314 | message: TrimmedNonEmptyStringSchema, | 314 | message: TrimmedNonEmptyStringSchema, |
| 315 | }); | 315 | }); |
| 316 | export type ThreadRealtimeErrorPayload = typeof ThreadRealtimeErrorPayload.Type; | 316 | export type ThreadRealtimeErrorPayload = typeof ThreadRealtimeErrorPayload.Type; |
| 317 | | 317 | |
| 318 | export const ThreadRealtimeClosedPayload = Schema.Struct({ | 318 | const ThreadRealtimeClosedPayload = Schema.Struct({ |
| 319 | reason: Schema.optional(TrimmedNonEmptyStringSchema), | 319 | reason: Schema.optional(TrimmedNonEmptyStringSchema), |
| 320 | }); | 320 | }); |
| 321 | export type ThreadRealtimeClosedPayload = typeof ThreadRealtimeClosedPayload.Type; | 321 | export type ThreadRealtimeClosedPayload = typeof ThreadRealtimeClosedPayload.Type; |
| 322 | | 322 | |
| 323 | export const TurnStartedPayload = Schema.Struct({ | 323 | const TurnStartedPayload = Schema.Struct({ |
| 324 | model: Schema.optional(TrimmedNonEmptyStringSchema), | 324 | model: Schema.optional(TrimmedNonEmptyStringSchema), |
| 325 | effort: Schema.optional(TrimmedNonEmptyStringSchema), | 325 | effort: Schema.optional(TrimmedNonEmptyStringSchema), |
| 326 | }); | 326 | }); |
| 327 | export type TurnStartedPayload = typeof TurnStartedPayload.Type; | 327 | export type TurnStartedPayload = typeof TurnStartedPayload.Type; |
| 328 | | 328 | |
| 329 | export const TurnCompletedPayload = Schema.Struct({ | 329 | const TurnCompletedPayload = Schema.Struct({ |
| 330 | state: RuntimeTurnState, | 330 | state: RuntimeTurnState, |
| 331 | stopReason: Schema.optional(Schema.NullOr(TrimmedNonEmptyStringSchema)), | 331 | stopReason: Schema.optional(Schema.NullOr(TrimmedNonEmptyStringSchema)), |
| 332 | usage: Schema.optional(Schema.Unknown), | 332 | usage: Schema.optional(Schema.Unknown), |
| ... | @@ -336,34 +336,34 @@ export const TurnCompletedPayload = Schema.Struct({ | ... | @@ -336,34 +336,34 @@ export const TurnCompletedPayload = Schema.Struct({ |
| 336 | }); | 336 | }); |
| 337 | export type TurnCompletedPayload = typeof TurnCompletedPayload.Type; | 337 | export type TurnCompletedPayload = typeof TurnCompletedPayload.Type; |
| 338 | | 338 | |
| 339 | export const TurnAbortedPayload = Schema.Struct({ | 339 | const TurnAbortedPayload = Schema.Struct({ |
| 340 | reason: TrimmedNonEmptyStringSchema, | 340 | reason: TrimmedNonEmptyStringSchema, |
| 341 | }); | 341 | }); |
| 342 | export type TurnAbortedPayload = typeof TurnAbortedPayload.Type; | 342 | export type TurnAbortedPayload = typeof TurnAbortedPayload.Type; |
| 343 | | 343 | |
| 344 | export const RuntimePlanStep = Schema.Struct({ | 344 | const RuntimePlanStep = Schema.Struct({ |
| 345 | step: TrimmedNonEmptyStringSchema, | 345 | step: TrimmedNonEmptyStringSchema, |
| 346 | status: RuntimePlanStepStatus, | 346 | status: RuntimePlanStepStatus, |
| 347 | }); | 347 | }); |
| 348 | export type RuntimePlanStep = typeof RuntimePlanStep.Type; | 348 | export type RuntimePlanStep = typeof RuntimePlanStep.Type; |
| 349 | | 349 | |
| 350 | export const TurnPlanUpdatedPayload = Schema.Struct({ | 350 | const TurnPlanUpdatedPayload = Schema.Struct({ |
| 351 | explanation: Schema.optional(Schema.NullOr(TrimmedNonEmptyStringSchema)), | 351 | explanation: Schema.optional(Schema.NullOr(TrimmedNonEmptyStringSchema)), |
| 352 | plan: Schema.Array(RuntimePlanStep), | 352 | plan: Schema.Array(RuntimePlanStep), |
| 353 | }); | 353 | }); |
| 354 | export type TurnPlanUpdatedPayload = typeof TurnPlanUpdatedPayload.Type; | 354 | export type TurnPlanUpdatedPayload = typeof TurnPlanUpdatedPayload.Type; |
| 355 | | 355 | |
| 356 | export const TurnProposedDeltaPayload = Schema.Struct({ | 356 | const TurnProposedDeltaPayload = Schema.Struct({ |
| 357 | delta: Schema.String, | 357 | delta: Schema.String, |
| 358 | }); | 358 | }); |
| 359 | export type TurnProposedDeltaPayload = typeof TurnProposedDeltaPayload.Type; | 359 | export type TurnProposedDeltaPayload = typeof TurnProposedDeltaPayload.Type; |
| 360 | | 360 | |
| 361 | export const TurnProposedCompletedPayload = Schema.Struct({ | 361 | const TurnProposedCompletedPayload = Schema.Struct({ |
| 362 | planMarkdown: TrimmedNonEmptyStringSchema, | 362 | planMarkdown: TrimmedNonEmptyStringSchema, |
| 363 | }); | 363 | }); |
| 364 | export type TurnProposedCompletedPayload = typeof TurnProposedCompletedPayload.Type; | 364 | export type TurnProposedCompletedPayload = typeof TurnProposedCompletedPayload.Type; |
| 365 | | 365 | |
| 366 | export const TurnDiffUpdatedPayload = Schema.Struct({ | 366 | const TurnDiffUpdatedPayload = Schema.Struct({ |
| 367 | unifiedDiff: Schema.String, | 367 | unifiedDiff: Schema.String, |
| 368 | }); | 368 | }); |
| 369 | export type TurnDiffUpdatedPayload = typeof TurnDiffUpdatedPayload.Type; | 369 | export type TurnDiffUpdatedPayload = typeof TurnDiffUpdatedPayload.Type; |
| ... | @@ -377,7 +377,7 @@ export const ItemLifecyclePayload = Schema.Struct({ | ... | @@ -377,7 +377,7 @@ export const ItemLifecyclePayload = Schema.Struct({ |
| 377 | }); | 377 | }); |
| 378 | export type ItemLifecyclePayload = typeof ItemLifecyclePayload.Type; | 378 | export type ItemLifecyclePayload = typeof ItemLifecyclePayload.Type; |
| 379 | | 379 | |
| 380 | export const ContentDeltaPayload = Schema.Struct({ | 380 | const ContentDeltaPayload = Schema.Struct({ |
| 381 | streamKind: RuntimeContentStreamKind, | 381 | streamKind: RuntimeContentStreamKind, |
| 382 | delta: Schema.String, | 382 | delta: Schema.String, |
| 383 | contentIndex: Schema.optional(Schema.Int), | 383 | contentIndex: Schema.optional(Schema.Int), |
| ... | @@ -385,21 +385,21 @@ export const ContentDeltaPayload = Schema.Struct({ | ... | @@ -385,21 +385,21 @@ export const ContentDeltaPayload = Schema.Struct({ |
| 385 | }); | 385 | }); |
| 386 | export type ContentDeltaPayload = typeof ContentDeltaPayload.Type; | 386 | export type ContentDeltaPayload = typeof ContentDeltaPayload.Type; |
| 387 | | 387 | |
| 388 | export const RequestOpenedPayload = Schema.Struct({ | 388 | const RequestOpenedPayload = Schema.Struct({ |
| 389 | requestType: CanonicalRequestType, | 389 | requestType: CanonicalRequestType, |
| 390 | detail: Schema.optional(TrimmedNonEmptyStringSchema), | 390 | detail: Schema.optional(TrimmedNonEmptyStringSchema), |
| 391 | args: Schema.optional(Schema.Unknown), | 391 | args: Schema.optional(Schema.Unknown), |
| 392 | }); | 392 | }); |
| 393 | export type RequestOpenedPayload = typeof RequestOpenedPayload.Type; | 393 | export type RequestOpenedPayload = typeof RequestOpenedPayload.Type; |
| 394 | | 394 | |
| 395 | export const RequestResolvedPayload = Schema.Struct({ | 395 | const RequestResolvedPayload = Schema.Struct({ |
| 396 | requestType: CanonicalRequestType, | 396 | requestType: CanonicalRequestType, |
| 397 | decision: Schema.optional(TrimmedNonEmptyStringSchema), | 397 | decision: Schema.optional(TrimmedNonEmptyStringSchema), |
| 398 | resolution: Schema.optional(Schema.Unknown), | 398 | resolution: Schema.optional(Schema.Unknown), |
| 399 | }); | 399 | }); |
| 400 | export type RequestResolvedPayload = typeof RequestResolvedPayload.Type; | 400 | export type RequestResolvedPayload = typeof RequestResolvedPayload.Type; |
| 401 | | 401 | |
| 402 | export const UserInputQuestionOption = Schema.Struct({ | 402 | const UserInputQuestionOption = Schema.Struct({ |
| 403 | label: TrimmedNonEmptyStringSchema, | 403 | label: TrimmedNonEmptyStringSchema, |
| 404 | description: TrimmedNonEmptyStringSchema, | 404 | description: TrimmedNonEmptyStringSchema, |
| 405 | }); | 405 | }); |
| ... | @@ -413,24 +413,24 @@ export const UserInputQuestion = Schema.Struct({ | ... | @@ -413,24 +413,24 @@ export const UserInputQuestion = Schema.Struct({ |
| 413 | }); | 413 | }); |
| 414 | export type UserInputQuestion = typeof UserInputQuestion.Type; | 414 | export type UserInputQuestion = typeof UserInputQuestion.Type; |
| 415 | | 415 | |
| 416 | export const UserInputRequestedPayload = Schema.Struct({ | 416 | const UserInputRequestedPayload = Schema.Struct({ |
| 417 | questions: Schema.Array(UserInputQuestion), | 417 | questions: Schema.Array(UserInputQuestion), |
| 418 | }); | 418 | }); |
| 419 | export type UserInputRequestedPayload = typeof UserInputRequestedPayload.Type; | 419 | export type UserInputRequestedPayload = typeof UserInputRequestedPayload.Type; |
| 420 | | 420 | |
| 421 | export const UserInputResolvedPayload = Schema.Struct({ | 421 | const UserInputResolvedPayload = Schema.Struct({ |
| 422 | answers: UnknownRecordSchema, | 422 | answers: UnknownRecordSchema, |
| 423 | }); | 423 | }); |
| 424 | export type UserInputResolvedPayload = typeof UserInputResolvedPayload.Type; | 424 | export type UserInputResolvedPayload = typeof UserInputResolvedPayload.Type; |
| 425 | | 425 | |
| 426 | export const TaskStartedPayload = Schema.Struct({ | 426 | const TaskStartedPayload = Schema.Struct({ |
| 427 | taskId: RuntimeTaskId, | 427 | taskId: RuntimeTaskId, |
| 428 | description: Schema.optional(TrimmedNonEmptyStringSchema), | 428 | description: Schema.optional(TrimmedNonEmptyStringSchema), |
| 429 | taskType: Schema.optional(TrimmedNonEmptyStringSchema), | 429 | taskType: Schema.optional(TrimmedNonEmptyStringSchema), |
| 430 | }); | 430 | }); |
| 431 | export type TaskStartedPayload = typeof TaskStartedPayload.Type; | 431 | export type TaskStartedPayload = typeof TaskStartedPayload.Type; |
| 432 | | 432 | |
| 433 | export const TaskProgressPayload = Schema.Struct({ | 433 | const TaskProgressPayload = Schema.Struct({ |
| 434 | taskId: RuntimeTaskId, | 434 | taskId: RuntimeTaskId, |
| 435 | description: TrimmedNonEmptyStringSchema, | 435 | description: TrimmedNonEmptyStringSchema, |
| 436 | usage: Schema.optional(Schema.Unknown), | 436 | usage: Schema.optional(Schema.Unknown), |
| ... | @@ -438,7 +438,7 @@ export const TaskProgressPayload = Schema.Struct({ | ... | @@ -438,7 +438,7 @@ export const TaskProgressPayload = Schema.Struct({ |
| 438 | }); | 438 | }); |
| 439 | export type TaskProgressPayload = typeof TaskProgressPayload.Type; | 439 | export type TaskProgressPayload = typeof TaskProgressPayload.Type; |
| 440 | | 440 | |
| 441 | export const TaskCompletedPayload = Schema.Struct({ | 441 | const TaskCompletedPayload = Schema.Struct({ |
| 442 | taskId: RuntimeTaskId, | 442 | taskId: RuntimeTaskId, |
| 443 | status: Schema.Literals(["completed", "failed", "stopped"]), | 443 | status: Schema.Literals(["completed", "failed", "stopped"]), |
| 444 | summary: Schema.optional(TrimmedNonEmptyStringSchema), | 444 | summary: Schema.optional(TrimmedNonEmptyStringSchema), |
| ... | @@ -446,14 +446,14 @@ export const TaskCompletedPayload = Schema.Struct({ | ... | @@ -446,14 +446,14 @@ export const TaskCompletedPayload = Schema.Struct({ |
| 446 | }); | 446 | }); |
| 447 | export type TaskCompletedPayload = typeof TaskCompletedPayload.Type; | 447 | export type TaskCompletedPayload = typeof TaskCompletedPayload.Type; |
| 448 | | 448 | |
| 449 | export const HookStartedPayload = Schema.Struct({ | 449 | const HookStartedPayload = Schema.Struct({ |
| 450 | hookId: TrimmedNonEmptyStringSchema, | 450 | hookId: TrimmedNonEmptyStringSchema, |
| 451 | hookName: TrimmedNonEmptyStringSchema, | 451 | hookName: TrimmedNonEmptyStringSchema, |
| 452 | hookEvent: TrimmedNonEmptyStringSchema, | 452 | hookEvent: TrimmedNonEmptyStringSchema, |
| 453 | }); | 453 | }); |
| 454 | export type HookStartedPayload = typeof HookStartedPayload.Type; | 454 | export type HookStartedPayload = typeof HookStartedPayload.Type; |
| 455 | | 455 | |
| 456 | export const HookProgressPayload = Schema.Struct({ | 456 | const HookProgressPayload = Schema.Struct({ |
| 457 | hookId: TrimmedNonEmptyStringSchema, | 457 | hookId: TrimmedNonEmptyStringSchema, |
| 458 | output: Schema.optional(Schema.String), | 458 | output: Schema.optional(Schema.String), |
| 459 | stdout: Schema.optional(Schema.String), | 459 | stdout: Schema.optional(Schema.String), |
| ... | @@ -461,7 +461,7 @@ export const HookProgressPayload = Schema.Struct({ | ... | @@ -461,7 +461,7 @@ export const HookProgressPayload = Schema.Struct({ |
| 461 | }); | 461 | }); |
| 462 | export type HookProgressPayload = typeof HookProgressPayload.Type; | 462 | export type HookProgressPayload = typeof HookProgressPayload.Type; |
| 463 | | 463 | |
| 464 | export const HookCompletedPayload = Schema.Struct({ | 464 | const HookCompletedPayload = Schema.Struct({ |
| 465 | hookId: TrimmedNonEmptyStringSchema, | 465 | hookId: TrimmedNonEmptyStringSchema, |
| 466 | outcome: Schema.Literals(["success", "error", "cancelled"]), | 466 | outcome: Schema.Literals(["success", "error", "cancelled"]), |
| 467 | output: Schema.optional(Schema.String), | 467 | output: Schema.optional(Schema.String), |
| ... | @@ -471,7 +471,7 @@ export const HookCompletedPayload = Schema.Struct({ | ... | @@ -471,7 +471,7 @@ export const HookCompletedPayload = Schema.Struct({ |
| 471 | }); | 471 | }); |
| 472 | export type HookCompletedPayload = typeof HookCompletedPayload.Type; | 472 | export type HookCompletedPayload = typeof HookCompletedPayload.Type; |
| 473 | | 473 | |
| 474 | export const ToolProgressPayload = Schema.Struct({ | 474 | const ToolProgressPayload = Schema.Struct({ |
| 475 | toolUseId: Schema.optional(TrimmedNonEmptyStringSchema), | 475 | toolUseId: Schema.optional(TrimmedNonEmptyStringSchema), |
| 476 | toolName: Schema.optional(TrimmedNonEmptyStringSchema), | 476 | toolName: Schema.optional(TrimmedNonEmptyStringSchema), |
| 477 | summary: Schema.optional(TrimmedNonEmptyStringSchema), | 477 | summary: Schema.optional(TrimmedNonEmptyStringSchema), |
| ... | @@ -479,49 +479,49 @@ export const ToolProgressPayload = Schema.Struct({ | ... | @@ -479,49 +479,49 @@ export const ToolProgressPayload = Schema.Struct({ |
| 479 | }); | 479 | }); |
| 480 | export type ToolProgressPayload = typeof ToolProgressPayload.Type; | 480 | export type ToolProgressPayload = typeof ToolProgressPayload.Type; |
| 481 | | 481 | |
| 482 | export const ToolSummaryPayload = Schema.Struct({ | 482 | const ToolSummaryPayload = Schema.Struct({ |
| 483 | summary: TrimmedNonEmptyStringSchema, | 483 | summary: TrimmedNonEmptyStringSchema, |
| 484 | precedingToolUseIds: Schema.optional(Schema.Array(TrimmedNonEmptyStringSchema)), | 484 | precedingToolUseIds: Schema.optional(Schema.Array(TrimmedNonEmptyStringSchema)), |
| 485 | }); | 485 | }); |
| 486 | export type ToolSummaryPayload = typeof ToolSummaryPayload.Type; | 486 | export type ToolSummaryPayload = typeof ToolSummaryPayload.Type; |
| 487 | | 487 | |
| 488 | export const AuthStatusPayload = Schema.Struct({ | 488 | const AuthStatusPayload = Schema.Struct({ |
| 489 | isAuthenticating: Schema.optional(Schema.Boolean), | 489 | isAuthenticating: Schema.optional(Schema.Boolean), |
| 490 | output: Schema.optional(Schema.Array(Schema.String)), | 490 | output: Schema.optional(Schema.Array(Schema.String)), |
| 491 | error: Schema.optional(TrimmedNonEmptyStringSchema), | 491 | error: Schema.optional(TrimmedNonEmptyStringSchema), |
| 492 | }); | 492 | }); |
| 493 | export type AuthStatusPayload = typeof AuthStatusPayload.Type; | 493 | export type AuthStatusPayload = typeof AuthStatusPayload.Type; |
| 494 | | 494 | |
| 495 | export const AccountUpdatedPayload = Schema.Struct({ | 495 | const AccountUpdatedPayload = Schema.Struct({ |
| 496 | account: Schema.Unknown, | 496 | account: Schema.Unknown, |
| 497 | }); | 497 | }); |
| 498 | export type AccountUpdatedPayload = typeof AccountUpdatedPayload.Type; | 498 | export type AccountUpdatedPayload = typeof AccountUpdatedPayload.Type; |
| 499 | | 499 | |
| 500 | export const AccountRateLimitsUpdatedPayload = Schema.Struct({ | 500 | const AccountRateLimitsUpdatedPayload = Schema.Struct({ |
| 501 | rateLimits: Schema.Unknown, | 501 | rateLimits: Schema.Unknown, |
| 502 | }); | 502 | }); |
| 503 | export type AccountRateLimitsUpdatedPayload = typeof AccountRateLimitsUpdatedPayload.Type; | 503 | export type AccountRateLimitsUpdatedPayload = typeof AccountRateLimitsUpdatedPayload.Type; |
| 504 | | 504 | |
| 505 | export const McpStatusUpdatedPayload = Schema.Struct({ | 505 | const McpStatusUpdatedPayload = Schema.Struct({ |
| 506 | status: Schema.Unknown, | 506 | status: Schema.Unknown, |
| 507 | }); | 507 | }); |
| 508 | export type McpStatusUpdatedPayload = typeof McpStatusUpdatedPayload.Type; | 508 | export type McpStatusUpdatedPayload = typeof McpStatusUpdatedPayload.Type; |
| 509 | | 509 | |
| 510 | export const McpOauthCompletedPayload = Schema.Struct({ | 510 | const McpOauthCompletedPayload = Schema.Struct({ |
| 511 | success: Schema.Boolean, | 511 | success: Schema.Boolean, |
| 512 | name: Schema.optional(TrimmedNonEmptyStringSchema), | 512 | name: Schema.optional(TrimmedNonEmptyStringSchema), |
| 513 | error: Schema.optional(TrimmedNonEmptyStringSchema), | 513 | error: Schema.optional(TrimmedNonEmptyStringSchema), |
| 514 | }); | 514 | }); |
| 515 | export type McpOauthCompletedPayload = typeof McpOauthCompletedPayload.Type; | 515 | export type McpOauthCompletedPayload = typeof McpOauthCompletedPayload.Type; |
| 516 | | 516 | |
| 517 | export const ModelReroutedPayload = Schema.Struct({ | 517 | const ModelReroutedPayload = Schema.Struct({ |
| 518 | fromModel: TrimmedNonEmptyStringSchema, | 518 | fromModel: TrimmedNonEmptyStringSchema, |
| 519 | toModel: TrimmedNonEmptyStringSchema, | 519 | toModel: TrimmedNonEmptyStringSchema, |
| 520 | reason: TrimmedNonEmptyStringSchema, | 520 | reason: TrimmedNonEmptyStringSchema, |
| 521 | }); | 521 | }); |
| 522 | export type ModelReroutedPayload = typeof ModelReroutedPayload.Type; | 522 | export type ModelReroutedPayload = typeof ModelReroutedPayload.Type; |
| 523 | | 523 | |
| 524 | export const ConfigWarningPayload = Schema.Struct({ | 524 | const ConfigWarningPayload = Schema.Struct({ |
| 525 | summary: TrimmedNonEmptyStringSchema, | 525 | summary: TrimmedNonEmptyStringSchema, |
| 526 | details: Schema.optional(TrimmedNonEmptyStringSchema), | 526 | details: Schema.optional(TrimmedNonEmptyStringSchema), |
| 527 | path: Schema.optional(TrimmedNonEmptyStringSchema), | 527 | path: Schema.optional(TrimmedNonEmptyStringSchema), |
| ... | @@ -529,13 +529,13 @@ export const ConfigWarningPayload = Schema.Struct({ | ... | @@ -529,13 +529,13 @@ export const ConfigWarningPayload = Schema.Struct({ |
| 529 | }); | 529 | }); |
| 530 | export type ConfigWarningPayload = typeof ConfigWarningPayload.Type; | 530 | export type ConfigWarningPayload = typeof ConfigWarningPayload.Type; |
| 531 | | 531 | |
| 532 | export const DeprecationNoticePayload = Schema.Struct({ | 532 | const DeprecationNoticePayload = Schema.Struct({ |
| 533 | summary: TrimmedNonEmptyStringSchema, | 533 | summary: TrimmedNonEmptyStringSchema, |
| 534 | details: Schema.optional(TrimmedNonEmptyStringSchema), | 534 | details: Schema.optional(TrimmedNonEmptyStringSchema), |
| 535 | }); | 535 | }); |
| 536 | export type DeprecationNoticePayload = typeof DeprecationNoticePayload.Type; | 536 | export type DeprecationNoticePayload = typeof DeprecationNoticePayload.Type; |
| 537 | | 537 | |
| 538 | export const FilesPersistedPayload = Schema.Struct({ | 538 | const FilesPersistedPayload = Schema.Struct({ |
| 539 | files: Schema.Array( | 539 | files: Schema.Array( |
| 540 | Schema.Struct({ | 540 | Schema.Struct({ |
| 541 | filename: TrimmedNonEmptyStringSchema, | 541 | filename: TrimmedNonEmptyStringSchema, |
| ... | @@ -553,69 +553,69 @@ export const FilesPersistedPayload = Schema.Struct({ | ... | @@ -553,69 +553,69 @@ export const FilesPersistedPayload = Schema.Struct({ |
| 553 | }); | 553 | }); |
| 554 | export type FilesPersistedPayload = typeof FilesPersistedPayload.Type; | 554 | export type FilesPersistedPayload = typeof FilesPersistedPayload.Type; |
| 555 | | 555 | |
| 556 | export const RuntimeWarningPayload = Schema.Struct({ | 556 | const RuntimeWarningPayload = Schema.Struct({ |
| 557 | message: TrimmedNonEmptyStringSchema, | 557 | message: TrimmedNonEmptyStringSchema, |
| 558 | detail: Schema.optional(Schema.Unknown), | 558 | detail: Schema.optional(Schema.Unknown), |
| 559 | }); | 559 | }); |
| 560 | export type RuntimeWarningPayload = typeof RuntimeWarningPayload.Type; | 560 | export type RuntimeWarningPayload = typeof RuntimeWarningPayload.Type; |
| 561 | | 561 | |
| 562 | export const RuntimeErrorPayload = Schema.Struct({ | 562 | const RuntimeErrorPayload = Schema.Struct({ |
| 563 | message: TrimmedNonEmptyStringSchema, | 563 | message: TrimmedNonEmptyStringSchema, |
| 564 | class: Schema.optional(RuntimeErrorClass), | 564 | class: Schema.optional(RuntimeErrorClass), |
| 565 | detail: Schema.optional(Schema.Unknown), | 565 | detail: Schema.optional(Schema.Unknown), |
| 566 | }); | 566 | }); |
| 567 | export type RuntimeErrorPayload = typeof RuntimeErrorPayload.Type; | 567 | export type RuntimeErrorPayload = typeof RuntimeErrorPayload.Type; |
| 568 | | 568 | |
| 569 | export const ProviderRuntimeSessionStartedEvent = Schema.Struct({ | 569 | const ProviderRuntimeSessionStartedEvent = Schema.Struct({ |
| 570 | ...ProviderRuntimeEventBase.fields, | 570 | ...ProviderRuntimeEventBase.fields, |
| 571 | type: SessionStartedType, | 571 | type: SessionStartedType, |
| 572 | payload: SessionStartedPayload, | 572 | payload: SessionStartedPayload, |
| 573 | }); | 573 | }); |
| 574 | export type ProviderRuntimeSessionStartedEvent = typeof ProviderRuntimeSessionStartedEvent.Type; | 574 | export type ProviderRuntimeSessionStartedEvent = typeof ProviderRuntimeSessionStartedEvent.Type; |
| 575 | | 575 | |
| 576 | export const ProviderRuntimeSessionConfiguredEvent = Schema.Struct({ | 576 | const ProviderRuntimeSessionConfiguredEvent = Schema.Struct({ |
| 577 | ...ProviderRuntimeEventBase.fields, | 577 | ...ProviderRuntimeEventBase.fields, |
| 578 | type: SessionConfiguredType, | 578 | type: SessionConfiguredType, |
| 579 | payload: SessionConfiguredPayload, | 579 | payload: SessionConfiguredPayload, |
| 580 | }); | 580 | }); |
| 581 | export type ProviderRuntimeSessionConfiguredEvent = typeof ProviderRuntimeSessionConfiguredEvent.Type; | 581 | export type ProviderRuntimeSessionConfiguredEvent = typeof ProviderRuntimeSessionConfiguredEvent.Type; |
| 582 | | 582 | |
| 583 | export const ProviderRuntimeSessionStateChangedEvent = Schema.Struct({ | 583 | const ProviderRuntimeSessionStateChangedEvent = Schema.Struct({ |
| 584 | ...ProviderRuntimeEventBase.fields, | 584 | ...ProviderRuntimeEventBase.fields, |
| 585 | type: SessionStateChangedType, | 585 | type: SessionStateChangedType, |
| 586 | payload: SessionStateChangedPayload, | 586 | payload: SessionStateChangedPayload, |
| 587 | }); | 587 | }); |
| 588 | export type ProviderRuntimeSessionStateChangedEvent = typeof ProviderRuntimeSessionStateChangedEvent.Type; | 588 | export type ProviderRuntimeSessionStateChangedEvent = typeof ProviderRuntimeSessionStateChangedEvent.Type; |
| 589 | | 589 | |
| 590 | export const ProviderRuntimeSessionExitedEvent = Schema.Struct({ | 590 | const ProviderRuntimeSessionExitedEvent = Schema.Struct({ |
| 591 | ...ProviderRuntimeEventBase.fields, | 591 | ...ProviderRuntimeEventBase.fields, |
| 592 | type: SessionExitedType, | 592 | type: SessionExitedType, |
| 593 | payload: SessionExitedPayload, | 593 | payload: SessionExitedPayload, |
| 594 | }); | 594 | }); |
| 595 | export type ProviderRuntimeSessionExitedEvent = typeof ProviderRuntimeSessionExitedEvent.Type; | 595 | export type ProviderRuntimeSessionExitedEvent = typeof ProviderRuntimeSessionExitedEvent.Type; |
| 596 | | 596 | |
| 597 | export const ProviderRuntimeThreadStartedEvent = Schema.Struct({ | 597 | const ProviderRuntimeThreadStartedEvent = Schema.Struct({ |
| 598 | ...ProviderRuntimeEventBase.fields, | 598 | ...ProviderRuntimeEventBase.fields, |
| 599 | type: ThreadStartedType, | 599 | type: ThreadStartedType, |
| 600 | payload: ThreadStartedPayload, | 600 | payload: ThreadStartedPayload, |
| 601 | }); | 601 | }); |
| 602 | export type ProviderRuntimeThreadStartedEvent = typeof ProviderRuntimeThreadStartedEvent.Type; | 602 | export type ProviderRuntimeThreadStartedEvent = typeof ProviderRuntimeThreadStartedEvent.Type; |
| 603 | | 603 | |
| 604 | export const ProviderRuntimeThreadStateChangedEvent = Schema.Struct({ | 604 | const ProviderRuntimeThreadStateChangedEvent = Schema.Struct({ |
| 605 | ...ProviderRuntimeEventBase.fields, | 605 | ...ProviderRuntimeEventBase.fields, |
| 606 | type: ThreadStateChangedType, | 606 | type: ThreadStateChangedType, |
| 607 | payload: ThreadStateChangedPayload, | 607 | payload: ThreadStateChangedPayload, |
| 608 | }); | 608 | }); |
| 609 | export type ProviderRuntimeThreadStateChangedEvent = typeof ProviderRuntimeThreadStateChangedEvent.Type; | 609 | export type ProviderRuntimeThreadStateChangedEvent = typeof ProviderRuntimeThreadStateChangedEvent.Type; |
| 610 | | 610 | |
| 611 | export const ProviderRuntimeThreadMetadataUpdatedEvent = Schema.Struct({ | 611 | const ProviderRuntimeThreadMetadataUpdatedEvent = Schema.Struct({ |
| 612 | ...ProviderRuntimeEventBase.fields, | 612 | ...ProviderRuntimeEventBase.fields, |
| 613 | type: ThreadMetadataUpdatedType, | 613 | type: ThreadMetadataUpdatedType, |
| 614 | payload: ThreadMetadataUpdatedPayload, | 614 | payload: ThreadMetadataUpdatedPayload, |
| 615 | }); | 615 | }); |
| 616 | export type ProviderRuntimeThreadMetadataUpdatedEvent = typeof ProviderRuntimeThreadMetadataUpdatedEvent.Type; | 616 | export type ProviderRuntimeThreadMetadataUpdatedEvent = typeof ProviderRuntimeThreadMetadataUpdatedEvent.Type; |
| 617 | | 617 | |
| 618 | export const ProviderRuntimeThreadTokenUsageUpdatedEvent = Schema.Struct({ | 618 | const ProviderRuntimeThreadTokenUsageUpdatedEvent = Schema.Struct({ |
| 619 | ...ProviderRuntimeEventBase.fields, | 619 | ...ProviderRuntimeEventBase.fields, |
| 620 | type: ThreadTokenUsageUpdatedType, | 620 | type: ThreadTokenUsageUpdatedType, |
| 621 | payload: ThreadTokenUsageUpdatedPayload, | 621 | payload: ThreadTokenUsageUpdatedPayload, |
| ... | @@ -623,7 +623,7 @@ export const ProviderRuntimeThreadTokenUsageUpdatedEvent = Schema.Struct({ | ... | @@ -623,7 +623,7 @@ export const ProviderRuntimeThreadTokenUsageUpdatedEvent = Schema.Struct({ |
| 623 | export type ProviderRuntimeThreadTokenUsageUpdatedEvent = | 623 | export type ProviderRuntimeThreadTokenUsageUpdatedEvent = |
| 624 | typeof ProviderRuntimeThreadTokenUsageUpdatedEvent.Type; | 624 | typeof ProviderRuntimeThreadTokenUsageUpdatedEvent.Type; |
| 625 | | 625 | |
| 626 | export const ProviderRuntimeThreadRealtimeStartedEvent = Schema.Struct({ | 626 | const ProviderRuntimeThreadRealtimeStartedEvent = Schema.Struct({ |
| 627 | ...ProviderRuntimeEventBase.fields, | 627 | ...ProviderRuntimeEventBase.fields, |
| 628 | type: ThreadRealtimeStartedType, | 628 | type: ThreadRealtimeStartedType, |
| 629 | payload: ThreadRealtimeStartedPayload, | 629 | payload: ThreadRealtimeStartedPayload, |
| ... | @@ -631,7 +631,7 @@ export const ProviderRuntimeThreadRealtimeStartedEvent = Schema.Struct({ | ... | @@ -631,7 +631,7 @@ export const ProviderRuntimeThreadRealtimeStartedEvent = Schema.Struct({ |
| 631 | export type ProviderRuntimeThreadRealtimeStartedEvent = | 631 | export type ProviderRuntimeThreadRealtimeStartedEvent = |
| 632 | typeof ProviderRuntimeThreadRealtimeStartedEvent.Type; | 632 | typeof ProviderRuntimeThreadRealtimeStartedEvent.Type; |
| 633 | | 633 | |
| 634 | export const ProviderRuntimeThreadRealtimeItemAddedEvent = Schema.Struct({ | 634 | const ProviderRuntimeThreadRealtimeItemAddedEvent = Schema.Struct({ |
| 635 | ...ProviderRuntimeEventBase.fields, | 635 | ...ProviderRuntimeEventBase.fields, |
| 636 | type: ThreadRealtimeItemAddedType, | 636 | type: ThreadRealtimeItemAddedType, |
| 637 | payload: ThreadRealtimeItemAddedPayload, | 637 | payload: ThreadRealtimeItemAddedPayload, |
| ... | @@ -639,7 +639,7 @@ export const ProviderRuntimeThreadRealtimeItemAddedEvent = Schema.Struct({ | ... | @@ -639,7 +639,7 @@ export const ProviderRuntimeThreadRealtimeItemAddedEvent = Schema.Struct({ |
| 639 | export type ProviderRuntimeThreadRealtimeItemAddedEvent = | 639 | export type ProviderRuntimeThreadRealtimeItemAddedEvent = |
| 640 | typeof ProviderRuntimeThreadRealtimeItemAddedEvent.Type; | 640 | typeof ProviderRuntimeThreadRealtimeItemAddedEvent.Type; |
| 641 | | 641 | |
| 642 | export const ProviderRuntimeThreadRealtimeAudioDeltaEvent = Schema.Struct({ | 642 | const ProviderRuntimeThreadRealtimeAudioDeltaEvent = Schema.Struct({ |
| 643 | ...ProviderRuntimeEventBase.fields, | 643 | ...ProviderRuntimeEventBase.fields, |
| 644 | type: ThreadRealtimeAudioDeltaType, | 644 | type: ThreadRealtimeAudioDeltaType, |
| 645 | payload: ThreadRealtimeAudioDeltaPayload, | 645 | payload: ThreadRealtimeAudioDeltaPayload, |
| ... | @@ -647,7 +647,7 @@ export const ProviderRuntimeThreadRealtimeAudioDeltaEvent = Schema.Struct({ | ... | @@ -647,7 +647,7 @@ export const ProviderRuntimeThreadRealtimeAudioDeltaEvent = Schema.Struct({ |
| 647 | export type ProviderRuntimeThreadRealtimeAudioDeltaEvent = | 647 | export type ProviderRuntimeThreadRealtimeAudioDeltaEvent = |
| 648 | typeof ProviderRuntimeThreadRealtimeAudioDeltaEvent.Type; | 648 | typeof ProviderRuntimeThreadRealtimeAudioDeltaEvent.Type; |
| 649 | | 649 | |
| 650 | export const ProviderRuntimeThreadRealtimeErrorEvent = Schema.Struct({ | 650 | const ProviderRuntimeThreadRealtimeErrorEvent = Schema.Struct({ |
| 651 | ...ProviderRuntimeEventBase.fields, | 651 | ...ProviderRuntimeEventBase.fields, |
| 652 | type: ThreadRealtimeErrorType, | 652 | type: ThreadRealtimeErrorType, |
| 653 | payload: ThreadRealtimeErrorPayload, | 653 | payload: ThreadRealtimeErrorPayload, |
| ... | @@ -655,7 +655,7 @@ export const ProviderRuntimeThreadRealtimeErrorEvent = Schema.Struct({ | ... | @@ -655,7 +655,7 @@ export const ProviderRuntimeThreadRealtimeErrorEvent = Schema.Struct({ |
| 655 | export type ProviderRuntimeThreadRealtimeErrorEvent = | 655 | export type ProviderRuntimeThreadRealtimeErrorEvent = |
| 656 | typeof ProviderRuntimeThreadRealtimeErrorEvent.Type; | 656 | typeof ProviderRuntimeThreadRealtimeErrorEvent.Type; |
| 657 | | 657 | |
| 658 | export const ProviderRuntimeThreadRealtimeClosedEvent = Schema.Struct({ | 658 | const ProviderRuntimeThreadRealtimeClosedEvent = Schema.Struct({ |
| 659 | ...ProviderRuntimeEventBase.fields, | 659 | ...ProviderRuntimeEventBase.fields, |
| 660 | type: ThreadRealtimeClosedType, | 660 | type: ThreadRealtimeClosedType, |
| 661 | payload: ThreadRealtimeClosedPayload, | 661 | payload: ThreadRealtimeClosedPayload, |
| ... | @@ -663,35 +663,35 @@ export const ProviderRuntimeThreadRealtimeClosedEvent = Schema.Struct({ | ... | @@ -663,35 +663,35 @@ export const ProviderRuntimeThreadRealtimeClosedEvent = Schema.Struct({ |
| 663 | export type ProviderRuntimeThreadRealtimeClosedEvent = | 663 | export type ProviderRuntimeThreadRealtimeClosedEvent = |
| 664 | typeof ProviderRuntimeThreadRealtimeClosedEvent.Type; | 664 | typeof ProviderRuntimeThreadRealtimeClosedEvent.Type; |
| 665 | | 665 | |
| 666 | export const ProviderRuntimeTurnStartedEvent = Schema.Struct({ | 666 | const ProviderRuntimeTurnStartedEvent = Schema.Struct({ |
| 667 | ...ProviderRuntimeEventBase.fields, | 667 | ...ProviderRuntimeEventBase.fields, |
| 668 | type: TurnStartedType, | 668 | type: TurnStartedType, |
| 669 | payload: TurnStartedPayload, | 669 | payload: TurnStartedPayload, |
| 670 | }); | 670 | }); |
| 671 | export type ProviderRuntimeTurnStartedEvent = typeof ProviderRuntimeTurnStartedEvent.Type; | 671 | export type ProviderRuntimeTurnStartedEvent = typeof ProviderRuntimeTurnStartedEvent.Type; |
| 672 | | 672 | |
| 673 | export const ProviderRuntimeTurnCompletedEvent = Schema.Struct({ | 673 | const ProviderRuntimeTurnCompletedEvent = Schema.Struct({ |
| 674 | ...ProviderRuntimeEventBase.fields, | 674 | ...ProviderRuntimeEventBase.fields, |
| 675 | type: TurnCompletedType, | 675 | type: TurnCompletedType, |
| 676 | payload: TurnCompletedPayload, | 676 | payload: TurnCompletedPayload, |
| 677 | }); | 677 | }); |
| 678 | export type ProviderRuntimeTurnCompletedEvent = typeof ProviderRuntimeTurnCompletedEvent.Type; | 678 | export type ProviderRuntimeTurnCompletedEvent = typeof ProviderRuntimeTurnCompletedEvent.Type; |
| 679 | | 679 | |
| 680 | export const ProviderRuntimeTurnAbortedEvent = Schema.Struct({ | 680 | const ProviderRuntimeTurnAbortedEvent = Schema.Struct({ |
| 681 | ...ProviderRuntimeEventBase.fields, | 681 | ...ProviderRuntimeEventBase.fields, |
| 682 | type: TurnAbortedType, | 682 | type: TurnAbortedType, |
| 683 | payload: TurnAbortedPayload, | 683 | payload: TurnAbortedPayload, |
| 684 | }); | 684 | }); |
| 685 | export type ProviderRuntimeTurnAbortedEvent = typeof ProviderRuntimeTurnAbortedEvent.Type; | 685 | export type ProviderRuntimeTurnAbortedEvent = typeof ProviderRuntimeTurnAbortedEvent.Type; |
| 686 | | 686 | |
| 687 | export const ProviderRuntimeTurnPlanUpdatedEvent = Schema.Struct({ | 687 | const ProviderRuntimeTurnPlanUpdatedEvent = Schema.Struct({ |
| 688 | ...ProviderRuntimeEventBase.fields, | 688 | ...ProviderRuntimeEventBase.fields, |
| 689 | type: TurnPlanUpdatedType, | 689 | type: TurnPlanUpdatedType, |
| 690 | payload: TurnPlanUpdatedPayload, | 690 | payload: TurnPlanUpdatedPayload, |
| 691 | }); | 691 | }); |
| 692 | export type ProviderRuntimeTurnPlanUpdatedEvent = typeof ProviderRuntimeTurnPlanUpdatedEvent.Type; | 692 | export type ProviderRuntimeTurnPlanUpdatedEvent = typeof ProviderRuntimeTurnPlanUpdatedEvent.Type; |
| 693 | | 693 | |
| 694 | export const ProviderRuntimeTurnProposedDeltaEvent = Schema.Struct({ | 694 | const ProviderRuntimeTurnProposedDeltaEvent = Schema.Struct({ |
| 695 | ...ProviderRuntimeEventBase.fields, | 695 | ...ProviderRuntimeEventBase.fields, |
| 696 | type: TurnProposedDeltaType, | 696 | type: TurnProposedDeltaType, |
| 697 | payload: TurnProposedDeltaPayload, | 697 | payload: TurnProposedDeltaPayload, |
| ... | @@ -699,7 +699,7 @@ export const ProviderRuntimeTurnProposedDeltaEvent = Schema.Struct({ | ... | @@ -699,7 +699,7 @@ export const ProviderRuntimeTurnProposedDeltaEvent = Schema.Struct({ |
| 699 | export type ProviderRuntimeTurnProposedDeltaEvent = | 699 | export type ProviderRuntimeTurnProposedDeltaEvent = |
| 700 | typeof ProviderRuntimeTurnProposedDeltaEvent.Type; | 700 | typeof ProviderRuntimeTurnProposedDeltaEvent.Type; |
| 701 | | 701 | |
| 702 | export const ProviderRuntimeTurnProposedCompletedEvent = Schema.Struct({ | 702 | const ProviderRuntimeTurnProposedCompletedEvent = Schema.Struct({ |
| 703 | ...ProviderRuntimeEventBase.fields, | 703 | ...ProviderRuntimeEventBase.fields, |
| 704 | type: TurnProposedCompletedType, | 704 | type: TurnProposedCompletedType, |
| 705 | payload: TurnProposedCompletedPayload, | 705 | payload: TurnProposedCompletedPayload, |
| ... | @@ -707,56 +707,56 @@ export const ProviderRuntimeTurnProposedCompletedEvent = Schema.Struct({ | ... | @@ -707,56 +707,56 @@ export const ProviderRuntimeTurnProposedCompletedEvent = Schema.Struct({ |
| 707 | export type ProviderRuntimeTurnProposedCompletedEvent = | 707 | export type ProviderRuntimeTurnProposedCompletedEvent = |
| 708 | typeof ProviderRuntimeTurnProposedCompletedEvent.Type; | 708 | typeof ProviderRuntimeTurnProposedCompletedEvent.Type; |
| 709 | | 709 | |
| 710 | export const ProviderRuntimeTurnDiffUpdatedEvent = Schema.Struct({ | 710 | const ProviderRuntimeTurnDiffUpdatedEvent = Schema.Struct({ |
| 711 | ...ProviderRuntimeEventBase.fields, | 711 | ...ProviderRuntimeEventBase.fields, |
| 712 | type: TurnDiffUpdatedType, | 712 | type: TurnDiffUpdatedType, |
| 713 | payload: TurnDiffUpdatedPayload, | 713 | payload: TurnDiffUpdatedPayload, |
| 714 | }); | 714 | }); |
| 715 | export type ProviderRuntimeTurnDiffUpdatedEvent = typeof ProviderRuntimeTurnDiffUpdatedEvent.Type; | 715 | export type ProviderRuntimeTurnDiffUpdatedEvent = typeof ProviderRuntimeTurnDiffUpdatedEvent.Type; |
| 716 | | 716 | |
| 717 | export const ProviderRuntimeItemStartedEvent = Schema.Struct({ | 717 | const ProviderRuntimeItemStartedEvent = Schema.Struct({ |
| 718 | ...ProviderRuntimeEventBase.fields, | 718 | ...ProviderRuntimeEventBase.fields, |
| 719 | type: ItemStartedType, | 719 | type: ItemStartedType, |
| 720 | payload: ItemLifecyclePayload, | 720 | payload: ItemLifecyclePayload, |
| 721 | }); | 721 | }); |
| 722 | export type ProviderRuntimeItemStartedEvent = typeof ProviderRuntimeItemStartedEvent.Type; | 722 | export type ProviderRuntimeItemStartedEvent = typeof ProviderRuntimeItemStartedEvent.Type; |
| 723 | | 723 | |
| 724 | export const ProviderRuntimeItemUpdatedEvent = Schema.Struct({ | 724 | const ProviderRuntimeItemUpdatedEvent = Schema.Struct({ |
| 725 | ...ProviderRuntimeEventBase.fields, | 725 | ...ProviderRuntimeEventBase.fields, |
| 726 | type: ItemUpdatedType, | 726 | type: ItemUpdatedType, |
| 727 | payload: ItemLifecyclePayload, | 727 | payload: ItemLifecyclePayload, |
| 728 | }); | 728 | }); |
| 729 | export type ProviderRuntimeItemUpdatedEvent = typeof ProviderRuntimeItemUpdatedEvent.Type; | 729 | export type ProviderRuntimeItemUpdatedEvent = typeof ProviderRuntimeItemUpdatedEvent.Type; |
| 730 | | 730 | |
| 731 | export const ProviderRuntimeItemCompletedEvent = Schema.Struct({ | 731 | const ProviderRuntimeItemCompletedEvent = Schema.Struct({ |
| 732 | ...ProviderRuntimeEventBase.fields, | 732 | ...ProviderRuntimeEventBase.fields, |
| 733 | type: ItemCompletedType, | 733 | type: ItemCompletedType, |
| 734 | payload: ItemLifecyclePayload, | 734 | payload: ItemLifecyclePayload, |
| 735 | }); | 735 | }); |
| 736 | export type ProviderRuntimeItemCompletedEvent = typeof ProviderRuntimeItemCompletedEvent.Type; | 736 | export type ProviderRuntimeItemCompletedEvent = typeof ProviderRuntimeItemCompletedEvent.Type; |
| 737 | | 737 | |
| 738 | export const ProviderRuntimeContentDeltaEvent = Schema.Struct({ | 738 | const ProviderRuntimeContentDeltaEvent = Schema.Struct({ |
| 739 | ...ProviderRuntimeEventBase.fields, | 739 | ...ProviderRuntimeEventBase.fields, |
| 740 | type: ContentDeltaType, | 740 | type: ContentDeltaType, |
| 741 | payload: ContentDeltaPayload, | 741 | payload: ContentDeltaPayload, |
| 742 | }); | 742 | }); |
| 743 | export type ProviderRuntimeContentDeltaEvent = typeof ProviderRuntimeContentDeltaEvent.Type; | 743 | export type ProviderRuntimeContentDeltaEvent = typeof ProviderRuntimeContentDeltaEvent.Type; |
| 744 | | 744 | |
| 745 | export const ProviderRuntimeRequestOpenedEvent = Schema.Struct({ | 745 | const ProviderRuntimeRequestOpenedEvent = Schema.Struct({ |
| 746 | ...ProviderRuntimeEventBase.fields, | 746 | ...ProviderRuntimeEventBase.fields, |
| 747 | type: RequestOpenedType, | 747 | type: RequestOpenedType, |
| 748 | payload: RequestOpenedPayload, | 748 | payload: RequestOpenedPayload, |
| 749 | }); | 749 | }); |
| 750 | export type ProviderRuntimeRequestOpenedEvent = typeof ProviderRuntimeRequestOpenedEvent.Type; | 750 | export type ProviderRuntimeRequestOpenedEvent = typeof ProviderRuntimeRequestOpenedEvent.Type; |
| 751 | | 751 | |
| 752 | export const ProviderRuntimeRequestResolvedEvent = Schema.Struct({ | 752 | const ProviderRuntimeRequestResolvedEvent = Schema.Struct({ |
| 753 | ...ProviderRuntimeEventBase.fields, | 753 | ...ProviderRuntimeEventBase.fields, |
| 754 | type: RequestResolvedType, | 754 | type: RequestResolvedType, |
| 755 | payload: RequestResolvedPayload, | 755 | payload: RequestResolvedPayload, |
| 756 | }); | 756 | }); |
| 757 | export type ProviderRuntimeRequestResolvedEvent = typeof ProviderRuntimeRequestResolvedEvent.Type; | 757 | export type ProviderRuntimeRequestResolvedEvent = typeof ProviderRuntimeRequestResolvedEvent.Type; |
| 758 | | 758 | |
| 759 | export const ProviderRuntimeUserInputRequestedEvent = Schema.Struct({ | 759 | const ProviderRuntimeUserInputRequestedEvent = Schema.Struct({ |
| 760 | ...ProviderRuntimeEventBase.fields, | 760 | ...ProviderRuntimeEventBase.fields, |
| 761 | type: UserInputRequestedType, | 761 | type: UserInputRequestedType, |
| 762 | payload: UserInputRequestedPayload, | 762 | payload: UserInputRequestedPayload, |
| ... | @@ -764,84 +764,84 @@ export const ProviderRuntimeUserInputRequestedEvent = Schema.Struct({ | ... | @@ -764,84 +764,84 @@ export const ProviderRuntimeUserInputRequestedEvent = Schema.Struct({ |
| 764 | export type ProviderRuntimeUserInputRequestedEvent = | 764 | export type ProviderRuntimeUserInputRequestedEvent = |
| 765 | typeof ProviderRuntimeUserInputRequestedEvent.Type; | 765 | typeof ProviderRuntimeUserInputRequestedEvent.Type; |
| 766 | | 766 | |
| 767 | export const ProviderRuntimeUserInputResolvedEvent = Schema.Struct({ | 767 | const ProviderRuntimeUserInputResolvedEvent = Schema.Struct({ |
| 768 | ...ProviderRuntimeEventBase.fields, | 768 | ...ProviderRuntimeEventBase.fields, |
| 769 | type: UserInputResolvedType, | 769 | type: UserInputResolvedType, |
| 770 | payload: UserInputResolvedPayload, | 770 | payload: UserInputResolvedPayload, |
| 771 | }); | 771 | }); |
| 772 | export type ProviderRuntimeUserInputResolvedEvent = typeof ProviderRuntimeUserInputResolvedEvent.Type; | 772 | export type ProviderRuntimeUserInputResolvedEvent = typeof ProviderRuntimeUserInputResolvedEvent.Type; |
| 773 | | 773 | |
| 774 | export const ProviderRuntimeTaskStartedEvent = Schema.Struct({ | 774 | const ProviderRuntimeTaskStartedEvent = Schema.Struct({ |
| 775 | ...ProviderRuntimeEventBase.fields, | 775 | ...ProviderRuntimeEventBase.fields, |
| 776 | type: TaskStartedType, | 776 | type: TaskStartedType, |
| 777 | payload: TaskStartedPayload, | 777 | payload: TaskStartedPayload, |
| 778 | }); | 778 | }); |
| 779 | export type ProviderRuntimeTaskStartedEvent = typeof ProviderRuntimeTaskStartedEvent.Type; | 779 | export type ProviderRuntimeTaskStartedEvent = typeof ProviderRuntimeTaskStartedEvent.Type; |
| 780 | | 780 | |
| 781 | export const ProviderRuntimeTaskProgressEvent = Schema.Struct({ | 781 | const ProviderRuntimeTaskProgressEvent = Schema.Struct({ |
| 782 | ...ProviderRuntimeEventBase.fields, | 782 | ...ProviderRuntimeEventBase.fields, |
| 783 | type: TaskProgressType, | 783 | type: TaskProgressType, |
| 784 | payload: TaskProgressPayload, | 784 | payload: TaskProgressPayload, |
| 785 | }); | 785 | }); |
| 786 | export type ProviderRuntimeTaskProgressEvent = typeof ProviderRuntimeTaskProgressEvent.Type; | 786 | export type ProviderRuntimeTaskProgressEvent = typeof ProviderRuntimeTaskProgressEvent.Type; |
| 787 | | 787 | |
| 788 | export const ProviderRuntimeTaskCompletedEvent = Schema.Struct({ | 788 | const ProviderRuntimeTaskCompletedEvent = Schema.Struct({ |
| 789 | ...ProviderRuntimeEventBase.fields, | 789 | ...ProviderRuntimeEventBase.fields, |
| 790 | type: TaskCompletedType, | 790 | type: TaskCompletedType, |
| 791 | payload: TaskCompletedPayload, | 791 | payload: TaskCompletedPayload, |
| 792 | }); | 792 | }); |
| 793 | export type ProviderRuntimeTaskCompletedEvent = typeof ProviderRuntimeTaskCompletedEvent.Type; | 793 | export type ProviderRuntimeTaskCompletedEvent = typeof ProviderRuntimeTaskCompletedEvent.Type; |
| 794 | | 794 | |
| 795 | export const ProviderRuntimeHookStartedEvent = Schema.Struct({ | 795 | const ProviderRuntimeHookStartedEvent = Schema.Struct({ |
| 796 | ...ProviderRuntimeEventBase.fields, | 796 | ...ProviderRuntimeEventBase.fields, |
| 797 | type: HookStartedType, | 797 | type: HookStartedType, |
| 798 | payload: HookStartedPayload, | 798 | payload: HookStartedPayload, |
| 799 | }); | 799 | }); |
| 800 | export type ProviderRuntimeHookStartedEvent = typeof ProviderRuntimeHookStartedEvent.Type; | 800 | export type ProviderRuntimeHookStartedEvent = typeof ProviderRuntimeHookStartedEvent.Type; |
| 801 | | 801 | |
| 802 | export const ProviderRuntimeHookProgressEvent = Schema.Struct({ | 802 | const ProviderRuntimeHookProgressEvent = Schema.Struct({ |
| 803 | ...ProviderRuntimeEventBase.fields, | 803 | ...ProviderRuntimeEventBase.fields, |
| 804 | type: HookProgressType, | 804 | type: HookProgressType, |
| 805 | payload: HookProgressPayload, | 805 | payload: HookProgressPayload, |
| 806 | }); | 806 | }); |
| 807 | export type ProviderRuntimeHookProgressEvent = typeof ProviderRuntimeHookProgressEvent.Type; | 807 | export type ProviderRuntimeHookProgressEvent = typeof ProviderRuntimeHookProgressEvent.Type; |
| 808 | | 808 | |
| 809 | export const ProviderRuntimeHookCompletedEvent = Schema.Struct({ | 809 | const ProviderRuntimeHookCompletedEvent = Schema.Struct({ |
| 810 | ...ProviderRuntimeEventBase.fields, | 810 | ...ProviderRuntimeEventBase.fields, |
| 811 | type: HookCompletedType, | 811 | type: HookCompletedType, |
| 812 | payload: HookCompletedPayload, | 812 | payload: HookCompletedPayload, |
| 813 | }); | 813 | }); |
| 814 | export type ProviderRuntimeHookCompletedEvent = typeof ProviderRuntimeHookCompletedEvent.Type; | 814 | export type ProviderRuntimeHookCompletedEvent = typeof ProviderRuntimeHookCompletedEvent.Type; |
| 815 | | 815 | |
| 816 | export const ProviderRuntimeToolProgressEvent = Schema.Struct({ | 816 | const ProviderRuntimeToolProgressEvent = Schema.Struct({ |
| 817 | ...ProviderRuntimeEventBase.fields, | 817 | ...ProviderRuntimeEventBase.fields, |
| 818 | type: ToolProgressType, | 818 | type: ToolProgressType, |
| 819 | payload: ToolProgressPayload, | 819 | payload: ToolProgressPayload, |
| 820 | }); | 820 | }); |
| 821 | export type ProviderRuntimeToolProgressEvent = typeof ProviderRuntimeToolProgressEvent.Type; | 821 | export type ProviderRuntimeToolProgressEvent = typeof ProviderRuntimeToolProgressEvent.Type; |
| 822 | | 822 | |
| 823 | export const ProviderRuntimeToolSummaryEvent = Schema.Struct({ | 823 | const ProviderRuntimeToolSummaryEvent = Schema.Struct({ |
| 824 | ...ProviderRuntimeEventBase.fields, | 824 | ...ProviderRuntimeEventBase.fields, |
| 825 | type: ToolSummaryType, | 825 | type: ToolSummaryType, |
| 826 | payload: ToolSummaryPayload, | 826 | payload: ToolSummaryPayload, |
| 827 | }); | 827 | }); |
| 828 | export type ProviderRuntimeToolSummaryEvent = typeof ProviderRuntimeToolSummaryEvent.Type; | 828 | export type ProviderRuntimeToolSummaryEvent = typeof ProviderRuntimeToolSummaryEvent.Type; |
| 829 | | 829 | |
| 830 | export const ProviderRuntimeAuthStatusEvent = Schema.Struct({ | 830 | const ProviderRuntimeAuthStatusEvent = Schema.Struct({ |
| 831 | ...ProviderRuntimeEventBase.fields, | 831 | ...ProviderRuntimeEventBase.fields, |
| 832 | type: AuthStatusType, | 832 | type: AuthStatusType, |
| 833 | payload: AuthStatusPayload, | 833 | payload: AuthStatusPayload, |
| 834 | }); | 834 | }); |
| 835 | export type ProviderRuntimeAuthStatusEvent = typeof ProviderRuntimeAuthStatusEvent.Type; | 835 | export type ProviderRuntimeAuthStatusEvent = typeof ProviderRuntimeAuthStatusEvent.Type; |
| 836 | | 836 | |
| 837 | export const ProviderRuntimeAccountUpdatedEvent = Schema.Struct({ | 837 | const ProviderRuntimeAccountUpdatedEvent = Schema.Struct({ |
| 838 | ...ProviderRuntimeEventBase.fields, | 838 | ...ProviderRuntimeEventBase.fields, |
| 839 | type: AccountUpdatedType, | 839 | type: AccountUpdatedType, |
| 840 | payload: AccountUpdatedPayload, | 840 | payload: AccountUpdatedPayload, |
| 841 | }); | 841 | }); |
| 842 | export type ProviderRuntimeAccountUpdatedEvent = typeof ProviderRuntimeAccountUpdatedEvent.Type; | 842 | export type ProviderRuntimeAccountUpdatedEvent = typeof ProviderRuntimeAccountUpdatedEvent.Type; |
| 843 | | 843 | |
| 844 | export const ProviderRuntimeAccountRateLimitsUpdatedEvent = Schema.Struct({ | 844 | const ProviderRuntimeAccountRateLimitsUpdatedEvent = Schema.Struct({ |
| 845 | ...ProviderRuntimeEventBase.fields, | 845 | ...ProviderRuntimeEventBase.fields, |
| 846 | type: AccountRateLimitsUpdatedType, | 846 | type: AccountRateLimitsUpdatedType, |
| 847 | payload: AccountRateLimitsUpdatedPayload, | 847 | payload: AccountRateLimitsUpdatedPayload, |
| ... | @@ -849,56 +849,56 @@ export const ProviderRuntimeAccountRateLimitsUpdatedEvent = Schema.Struct({ | ... | @@ -849,56 +849,56 @@ export const ProviderRuntimeAccountRateLimitsUpdatedEvent = Schema.Struct({ |
| 849 | export type ProviderRuntimeAccountRateLimitsUpdatedEvent = | 849 | export type ProviderRuntimeAccountRateLimitsUpdatedEvent = |
| 850 | typeof ProviderRuntimeAccountRateLimitsUpdatedEvent.Type; | 850 | typeof ProviderRuntimeAccountRateLimitsUpdatedEvent.Type; |
| 851 | | 851 | |
| 852 | export const ProviderRuntimeMcpStatusUpdatedEvent = Schema.Struct({ | 852 | const ProviderRuntimeMcpStatusUpdatedEvent = Schema.Struct({ |
| 853 | ...ProviderRuntimeEventBase.fields, | 853 | ...ProviderRuntimeEventBase.fields, |
| 854 | type: McpStatusUpdatedType, | 854 | type: McpStatusUpdatedType, |
| 855 | payload: McpStatusUpdatedPayload, | 855 | payload: McpStatusUpdatedPayload, |
| 856 | }); | 856 | }); |
| 857 | export type ProviderRuntimeMcpStatusUpdatedEvent = typeof ProviderRuntimeMcpStatusUpdatedEvent.Type; | 857 | export type ProviderRuntimeMcpStatusUpdatedEvent = typeof ProviderRuntimeMcpStatusUpdatedEvent.Type; |
| 858 | | 858 | |
| 859 | export const ProviderRuntimeMcpOauthCompletedEvent = Schema.Struct({ | 859 | const ProviderRuntimeMcpOauthCompletedEvent = Schema.Struct({ |
| 860 | ...ProviderRuntimeEventBase.fields, | 860 | ...ProviderRuntimeEventBase.fields, |
| 861 | type: McpOauthCompletedType, | 861 | type: McpOauthCompletedType, |
| 862 | payload: McpOauthCompletedPayload, | 862 | payload: McpOauthCompletedPayload, |
| 863 | }); | 863 | }); |
| 864 | export type ProviderRuntimeMcpOauthCompletedEvent = typeof ProviderRuntimeMcpOauthCompletedEvent.Type; | 864 | export type ProviderRuntimeMcpOauthCompletedEvent = typeof ProviderRuntimeMcpOauthCompletedEvent.Type; |
| 865 | | 865 | |
| 866 | export const ProviderRuntimeModelReroutedEvent = Schema.Struct({ | 866 | const ProviderRuntimeModelReroutedEvent = Schema.Struct({ |
| 867 | ...ProviderRuntimeEventBase.fields, | 867 | ...ProviderRuntimeEventBase.fields, |
| 868 | type: ModelReroutedType, | 868 | type: ModelReroutedType, |
| 869 | payload: ModelReroutedPayload, | 869 | payload: ModelReroutedPayload, |
| 870 | }); | 870 | }); |
| 871 | export type ProviderRuntimeModelReroutedEvent = typeof ProviderRuntimeModelReroutedEvent.Type; | 871 | export type ProviderRuntimeModelReroutedEvent = typeof ProviderRuntimeModelReroutedEvent.Type; |
| 872 | | 872 | |
| 873 | export const ProviderRuntimeConfigWarningEvent = Schema.Struct({ | 873 | const ProviderRuntimeConfigWarningEvent = Schema.Struct({ |
| 874 | ...ProviderRuntimeEventBase.fields, | 874 | ...ProviderRuntimeEventBase.fields, |
| 875 | type: ConfigWarningType, | 875 | type: ConfigWarningType, |
| 876 | payload: ConfigWarningPayload, | 876 | payload: ConfigWarningPayload, |
| 877 | }); | 877 | }); |
| 878 | export type ProviderRuntimeConfigWarningEvent = typeof ProviderRuntimeConfigWarningEvent.Type; | 878 | export type ProviderRuntimeConfigWarningEvent = typeof ProviderRuntimeConfigWarningEvent.Type; |
| 879 | | 879 | |
| 880 | export const ProviderRuntimeDeprecationNoticeEvent = Schema.Struct({ | 880 | const ProviderRuntimeDeprecationNoticeEvent = Schema.Struct({ |
| 881 | ...ProviderRuntimeEventBase.fields, | 881 | ...ProviderRuntimeEventBase.fields, |
| 882 | type: DeprecationNoticeType, | 882 | type: DeprecationNoticeType, |
| 883 | payload: DeprecationNoticePayload, | 883 | payload: DeprecationNoticePayload, |
| 884 | }); | 884 | }); |
| 885 | export type ProviderRuntimeDeprecationNoticeEvent = typeof ProviderRuntimeDeprecationNoticeEvent.Type; | 885 | export type ProviderRuntimeDeprecationNoticeEvent = typeof ProviderRuntimeDeprecationNoticeEvent.Type; |
| 886 | | 886 | |
| 887 | export const ProviderRuntimeFilesPersistedEvent = Schema.Struct({ | 887 | const ProviderRuntimeFilesPersistedEvent = Schema.Struct({ |
| 888 | ...ProviderRuntimeEventBase.fields, | 888 | ...ProviderRuntimeEventBase.fields, |
| 889 | type: FilesPersistedType, | 889 | type: FilesPersistedType, |
| 890 | payload: FilesPersistedPayload, | 890 | payload: FilesPersistedPayload, |
| 891 | }); | 891 | }); |
| 892 | export type ProviderRuntimeFilesPersistedEvent = typeof ProviderRuntimeFilesPersistedEvent.Type; | 892 | export type ProviderRuntimeFilesPersistedEvent = typeof ProviderRuntimeFilesPersistedEvent.Type; |
| 893 | | 893 | |
| 894 | export const ProviderRuntimeWarningEvent = Schema.Struct({ | 894 | const ProviderRuntimeWarningEvent = Schema.Struct({ |
| 895 | ...ProviderRuntimeEventBase.fields, | 895 | ...ProviderRuntimeEventBase.fields, |
| 896 | type: RuntimeWarningType, | 896 | type: RuntimeWarningType, |
| 897 | payload: RuntimeWarningPayload, | 897 | payload: RuntimeWarningPayload, |
| 898 | }); | 898 | }); |
| 899 | export type ProviderRuntimeWarningEvent = typeof ProviderRuntimeWarningEvent.Type; | 899 | export type ProviderRuntimeWarningEvent = typeof ProviderRuntimeWarningEvent.Type; |
| 900 | | 900 | |
| 901 | export const ProviderRuntimeErrorEvent = Schema.Struct({ | 901 | const ProviderRuntimeErrorEvent = Schema.Struct({ |
| 902 | ...ProviderRuntimeEventBase.fields, | 902 | ...ProviderRuntimeEventBase.fields, |
| 903 | type: RuntimeErrorType, | 903 | type: RuntimeErrorType, |
| 904 | payload: RuntimeErrorPayload, | 904 | payload: RuntimeErrorPayload, |
| ... | @@ -960,21 +960,21 @@ export const ProviderRuntimeEvent = ProviderRuntimeEventV2; | ... | @@ -960,21 +960,21 @@ export const ProviderRuntimeEvent = ProviderRuntimeEventV2; |
| 960 | export type ProviderRuntimeEvent = ProviderRuntimeEventV2; | 960 | export type ProviderRuntimeEvent = ProviderRuntimeEventV2; |
| 961 | | 961 | |
| 962 | // Compatibility aliases for call sites still importing legacy names. | 962 | // Compatibility aliases for call sites still importing legacy names. |
| 963 | export const ProviderRuntimeMessageDeltaEvent = ProviderRuntimeContentDeltaEvent; | 963 | const ProviderRuntimeMessageDeltaEvent = ProviderRuntimeContentDeltaEvent; |
| 964 | export type ProviderRuntimeMessageDeltaEvent = ProviderRuntimeContentDeltaEvent; | 964 | export type ProviderRuntimeMessageDeltaEvent = ProviderRuntimeContentDeltaEvent; |
| 965 | export const ProviderRuntimeMessageCompletedEvent = ProviderRuntimeItemCompletedEvent; | 965 | const ProviderRuntimeMessageCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 966 | export type ProviderRuntimeMessageCompletedEvent = ProviderRuntimeItemCompletedEvent; | 966 | export type ProviderRuntimeMessageCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 967 | export const ProviderRuntimeToolStartedEvent = ProviderRuntimeItemStartedEvent; | 967 | const ProviderRuntimeToolStartedEvent = ProviderRuntimeItemStartedEvent; |
| 968 | export type ProviderRuntimeToolStartedEvent = ProviderRuntimeItemStartedEvent; | 968 | export type ProviderRuntimeToolStartedEvent = ProviderRuntimeItemStartedEvent; |
| 969 | export const ProviderRuntimeToolCompletedEvent = ProviderRuntimeItemCompletedEvent; | 969 | const ProviderRuntimeToolCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 970 | export type ProviderRuntimeToolCompletedEvent = ProviderRuntimeItemCompletedEvent; | 970 | export type ProviderRuntimeToolCompletedEvent = ProviderRuntimeItemCompletedEvent; |
| 971 | export const ProviderRuntimeApprovalRequestedEvent = ProviderRuntimeRequestOpenedEvent; | 971 | const ProviderRuntimeApprovalRequestedEvent = ProviderRuntimeRequestOpenedEvent; |
| 972 | export type ProviderRuntimeApprovalRequestedEvent = ProviderRuntimeRequestOpenedEvent; | 972 | export type ProviderRuntimeApprovalRequestedEvent = ProviderRuntimeRequestOpenedEvent; |
| 973 | export const ProviderRuntimeApprovalResolvedEvent = ProviderRuntimeRequestResolvedEvent; | 973 | const ProviderRuntimeApprovalResolvedEvent = ProviderRuntimeRequestResolvedEvent; |
| 974 | export type ProviderRuntimeApprovalResolvedEvent = ProviderRuntimeRequestResolvedEvent; | 974 | export type ProviderRuntimeApprovalResolvedEvent = ProviderRuntimeRequestResolvedEvent; |
| 975 | | 975 | |
| 976 | // Legacy helper aliases retained for adapters/tests. | 976 | // Legacy helper aliases retained for adapters/tests. |
| 977 | export const ProviderRuntimeToolKind = Schema.Literals([ | 977 | const ProviderRuntimeToolKind = Schema.Literals([ |
| 978 | "command", | 978 | "command", |
| 979 | "file-read", | 979 | "file-read", |
| 980 | "file-change", | 980 | "file-change", |