@@ -1392,6 +1392,15 @@ export const OrchestrationV2ThreadArtifact = Schema.Struct({
13921392} ) ;
13931393export type OrchestrationV2ThreadArtifact = typeof OrchestrationV2ThreadArtifact . Type ;
13941394
1395+ export const OrchestrationV2ThreadArtifactJson = OrchestrationV2ThreadArtifact . mapFields (
1396+ ( fields ) => ( {
1397+ ...fields ,
1398+ createdAt : Schema . DateTimeUtcFromString ,
1399+ updatedAt : Schema . DateTimeUtcFromString ,
1400+ } ) ,
1401+ ) ;
1402+ export type OrchestrationV2ThreadArtifactJson = typeof OrchestrationV2ThreadArtifactJson . Type ;
1403+
13951404export const OrchestrationV2CheckpointFileSummary = Schema . Struct ( {
13961405 path : TrimmedNonEmptyString ,
13971406 kind : TrimmedNonEmptyString ,
@@ -2697,7 +2706,7 @@ export const OrchestrationV2ThreadProjectionJson = OrchestrationV2ThreadProjecti
26972706 runtimeRequests : Schema . Array ( OrchestrationV2RuntimeRequestJson ) ,
26982707 messages : Schema . Array ( OrchestrationV2ConversationMessageJson ) ,
26992708 plans : Schema . Array ( OrchestrationV2PlanArtifact ) ,
2700- artifacts : Schema . Array ( OrchestrationV2ThreadArtifact ) . pipe (
2709+ artifacts : Schema . Array ( OrchestrationV2ThreadArtifactJson ) . pipe (
27012710 Schema . withDecodingDefault ( Effect . succeed ( [ ] ) ) ,
27022711 ) ,
27032712 turnItems : turnItemArray ( OrchestrationV2TurnItemJson ) ,
@@ -2896,7 +2905,7 @@ export const OrchestrationV2DomainEventJson = Schema.Union([
28962905 Schema . Struct ( {
28972906 ...OrchestrationV2JsonEventBaseFields ,
28982907 type : Schema . Literal ( "artifact.updated" ) ,
2899- payload : OrchestrationV2ThreadArtifact ,
2908+ payload : OrchestrationV2ThreadArtifactJson ,
29002909 } ) ,
29012910 Schema . Struct ( {
29022911 ...OrchestrationV2JsonEventBaseFields ,
0 commit comments