@frumu/tandem-client 0.4.0 → 0.4.5

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.
@@ -40,10 +40,18 @@ export declare const jsonFallback: z.ZodPipe<z.ZodAny, z.ZodTransform<string | n
40
40
  [key: string]: Public.JsonValue;
41
41
  } | null, any>>;
42
42
  export declare const jsonObjectFallback: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Public.JsonObject, Record<string, any>>>;
43
- export declare const SystemHealthSchema: z.ZodObject<{
43
+ export declare const SystemHealthSchema: z.ZodPipe<z.ZodObject<{
44
44
  ready: z.ZodOptional<z.ZodBoolean>;
45
45
  phase: z.ZodOptional<z.ZodString>;
46
- }, z.core.$loose>;
46
+ workspace_root: z.ZodOptional<z.ZodString>;
47
+ workspaceRoot: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$loose>, z.ZodTransform<Public.SystemHealth, {
49
+ [x: string]: unknown;
50
+ ready?: boolean | undefined;
51
+ phase?: string | undefined;
52
+ workspace_root?: string | undefined;
53
+ workspaceRoot?: string | undefined;
54
+ }>>;
47
55
  export declare const SessionRecordSchema: z.ZodPipe<z.ZodObject<{
48
56
  id: z.ZodString;
49
57
  title: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/normalize/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,qBAAa,qBAAsB,SAAQ,KAAK;aAE5B,QAAQ,EAAE,MAAM;aAChB,MAAM,EAAE,MAAM;aACd,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;aACpB,UAAU,EAAE,MAAM;gBAHlB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,EACpB,UAAU,EAAE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;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKrB,CAAC;AAEjB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;GAqBlC,CAAC;AAEJ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;iBAKvB,CAAC;AAIjB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;GAoB1B,CAAC;AAGL,wBAAgB,aAAa,CAAC,CAAC,EAC7B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAC9B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,CAAC,CAOH"}
@@ -16,6 +16,57 @@ export interface TandemClientOptions {
16
16
  export interface SystemHealth {
17
17
  ready?: boolean;
18
18
  phase?: string;
19
+ workspaceRoot?: string;
20
+ workspace_root?: string;
21
+ [key: string]: unknown;
22
+ }
23
+ export interface BrowserBlockingIssue {
24
+ code?: string;
25
+ message?: string;
26
+ [key: string]: unknown;
27
+ }
28
+ export interface BrowserBinaryStatus {
29
+ found?: boolean;
30
+ path?: string | null;
31
+ version?: string | null;
32
+ channel?: string | null;
33
+ [key: string]: unknown;
34
+ }
35
+ export interface BrowserStatusResponse {
36
+ enabled?: boolean;
37
+ runnable?: boolean;
38
+ headless_default?: boolean;
39
+ sidecar?: BrowserBinaryStatus;
40
+ browser?: BrowserBinaryStatus;
41
+ blocking_issues?: BrowserBlockingIssue[];
42
+ recommendations?: string[];
43
+ install_hints?: string[];
44
+ last_error?: string | null;
45
+ [key: string]: unknown;
46
+ }
47
+ export interface BrowserInstallResponse {
48
+ ok?: boolean;
49
+ code?: string;
50
+ error?: string;
51
+ version?: string;
52
+ asset_name?: string;
53
+ installed_path?: string;
54
+ downloaded_bytes?: number;
55
+ status?: BrowserStatusResponse;
56
+ [key: string]: unknown;
57
+ }
58
+ export interface BrowserSmokeTestResponse {
59
+ ok?: boolean;
60
+ code?: string;
61
+ error?: string;
62
+ status?: BrowserStatusResponse;
63
+ url?: string;
64
+ final_url?: string;
65
+ title?: string;
66
+ load_state?: string;
67
+ element_count?: number;
68
+ excerpt?: string | null;
69
+ closed?: boolean;
19
70
  [key: string]: unknown;
20
71
  }
21
72
  export interface CreateSessionOptions {
@@ -148,6 +199,9 @@ export interface ProviderEntry {
148
199
  id: string;
149
200
  name?: string;
150
201
  models?: Record<string, ProviderModelEntry>;
202
+ catalog_source?: string;
203
+ catalog_status?: string;
204
+ catalog_message?: string;
151
205
  }
152
206
  export interface ProviderCatalog {
153
207
  all: ProviderEntry[];
@@ -320,7 +374,7 @@ export interface MemoryAuditResponse {
320
374
  entries: MemoryAuditEntry[];
321
375
  count: number;
322
376
  }
323
- export type SkillLocation = "user" | "workspace" | "builtin";
377
+ export type SkillLocation = "project" | "global";
324
378
  export interface SkillRecord {
325
379
  name: string;
326
380
  location?: SkillLocation;
@@ -337,7 +391,7 @@ export interface SkillImportOptions {
337
391
  fileOrPath?: string;
338
392
  location: SkillLocation;
339
393
  namespace?: string;
340
- conflictPolicy?: "skip" | "overwrite" | "error";
394
+ conflictPolicy?: "skip" | "overwrite" | "rename";
341
395
  }
342
396
  export interface SkillImportResponse {
343
397
  ok: boolean;
@@ -353,6 +407,107 @@ export interface SkillTemplatesResponse {
353
407
  templates: SkillTemplate[];
354
408
  count: number;
355
409
  }
410
+ export interface SkillCatalogRecord {
411
+ info: SkillRecord;
412
+ sections?: string[];
413
+ missing_sections?: string[];
414
+ missingSections?: string[];
415
+ schedule_compatibility?: string[];
416
+ scheduleCompatibility?: string[];
417
+ has_manifest?: boolean;
418
+ hasManifest?: boolean;
419
+ has_workflow?: boolean;
420
+ hasWorkflow?: boolean;
421
+ }
422
+ export interface SkillValidationIssue {
423
+ code: string;
424
+ level: "error" | "warning" | string;
425
+ message: string;
426
+ }
427
+ export interface SkillValidationItem {
428
+ source: string;
429
+ valid: boolean;
430
+ name?: string;
431
+ issues?: SkillValidationIssue[];
432
+ sections?: string[];
433
+ missing_sections?: string[];
434
+ missingSections?: string[];
435
+ schedule_compatibility?: string[];
436
+ scheduleCompatibility?: string[];
437
+ has_manifest?: boolean;
438
+ hasManifest?: boolean;
439
+ has_workflow?: boolean;
440
+ hasWorkflow?: boolean;
441
+ }
442
+ export interface SkillValidationResponse {
443
+ items: SkillValidationItem[];
444
+ total: number;
445
+ valid: number;
446
+ invalid: number;
447
+ }
448
+ export interface SkillRouterMatch {
449
+ skill_name?: string;
450
+ skillName?: string;
451
+ confidence: number;
452
+ reason: string;
453
+ }
454
+ export interface SkillRouterMatchResponse {
455
+ decision: "match" | "no_match" | string;
456
+ skill_name?: string;
457
+ skillName?: string;
458
+ confidence: number;
459
+ reason: string;
460
+ top_matches?: SkillRouterMatch[];
461
+ topMatches?: SkillRouterMatch[];
462
+ }
463
+ export interface SkillsEvalCaseInput {
464
+ prompt: string;
465
+ expectedSkill?: string;
466
+ expected_skill?: string;
467
+ }
468
+ export interface SkillsBenchmarkEvalResponse {
469
+ status: string;
470
+ total: number;
471
+ passed: number;
472
+ failed: number;
473
+ accuracy: number;
474
+ threshold: number;
475
+ cases: Array<Record<string, unknown>>;
476
+ }
477
+ export interface SkillsTriggerEvalResponse {
478
+ status: string;
479
+ skillName?: string;
480
+ skill_name?: string;
481
+ threshold: number;
482
+ total: number;
483
+ truePositive?: number;
484
+ true_positive?: number;
485
+ falseNegative?: number;
486
+ false_negative?: number;
487
+ recall: number;
488
+ cases: Array<Record<string, unknown>>;
489
+ }
490
+ export interface SkillCompileResponse {
491
+ status: string;
492
+ skillName?: string;
493
+ skill_name?: string;
494
+ workflowKind?: string;
495
+ workflow_kind?: string;
496
+ validation?: Record<string, unknown>;
497
+ executionPlan?: Record<string, unknown>;
498
+ execution_plan?: Record<string, unknown>;
499
+ }
500
+ export interface SkillGenerateResponse {
501
+ status: string;
502
+ prompt: string;
503
+ router?: Record<string, unknown>;
504
+ artifacts?: Record<string, string>;
505
+ }
506
+ export interface SkillGenerateInstallResponse {
507
+ status: string;
508
+ skill?: SkillRecord;
509
+ validation?: Record<string, unknown>;
510
+ }
356
511
  export interface ResourceRecord {
357
512
  key: string;
358
513
  value: unknown;
@@ -377,6 +532,150 @@ export interface ResourceWriteResponse {
377
532
  rev?: number;
378
533
  [key: string]: unknown;
379
534
  }
535
+ export interface WorkflowRecord {
536
+ id?: string;
537
+ workflowId?: string;
538
+ workflow_id?: string;
539
+ name?: string;
540
+ description?: string;
541
+ enabled?: boolean;
542
+ [key: string]: unknown;
543
+ }
544
+ export interface WorkflowListResponse {
545
+ workflows: WorkflowRecord[];
546
+ count: number;
547
+ }
548
+ export interface WorkflowRunRecord {
549
+ id?: string;
550
+ runId?: string;
551
+ run_id?: string;
552
+ workflowId?: string;
553
+ workflow_id?: string;
554
+ status?: string;
555
+ createdAtMs?: number;
556
+ created_at_ms?: number;
557
+ updatedAtMs?: number;
558
+ updated_at_ms?: number;
559
+ [key: string]: unknown;
560
+ }
561
+ export interface WorkflowRunListResponse {
562
+ runs: WorkflowRunRecord[];
563
+ count: number;
564
+ }
565
+ export interface WorkflowHookRecord {
566
+ id?: string;
567
+ workflowId?: string;
568
+ workflow_id?: string;
569
+ eventType?: string;
570
+ event_type?: string;
571
+ enabled?: boolean;
572
+ [key: string]: unknown;
573
+ }
574
+ export interface WorkflowHookListResponse {
575
+ hooks: WorkflowHookRecord[];
576
+ count: number;
577
+ }
578
+ export interface BugMonitorConfigRow {
579
+ enabled?: boolean;
580
+ paused?: boolean;
581
+ workspace_root?: string | null;
582
+ repo?: string | null;
583
+ mcp_server?: string | null;
584
+ provider_preference?: string | null;
585
+ model_policy?: JsonObject | null;
586
+ auto_create_new_issues?: boolean;
587
+ require_approval_for_new_issues?: boolean;
588
+ auto_comment_on_matched_open_issues?: boolean;
589
+ label_mode?: string | null;
590
+ [key: string]: unknown;
591
+ }
592
+ export interface BugMonitorConfigResponse {
593
+ bug_monitor: BugMonitorConfigRow;
594
+ }
595
+ export interface BugMonitorStatusRow {
596
+ config?: BugMonitorConfigRow;
597
+ readiness?: Record<string, boolean>;
598
+ runtime?: JsonObject;
599
+ required_capabilities?: Record<string, boolean>;
600
+ missing_required_capabilities?: string[];
601
+ resolved_capabilities?: JsonObject[];
602
+ discovered_mcp_tools?: string[];
603
+ selected_server_binding_candidates?: JsonObject[];
604
+ binding_source_version?: string | null;
605
+ bindings_last_merged_at_ms?: number | null;
606
+ selected_model?: JsonObject | null;
607
+ pending_drafts?: number;
608
+ pending_posts?: number;
609
+ last_activity_at_ms?: number | null;
610
+ last_error?: string | null;
611
+ [key: string]: unknown;
612
+ }
613
+ export interface BugMonitorStatusResponse {
614
+ status: BugMonitorStatusRow;
615
+ }
616
+ export interface BugMonitorIncidentRecord {
617
+ incident_id: string;
618
+ fingerprint?: string;
619
+ event_type?: string;
620
+ status?: string;
621
+ repo?: string;
622
+ workspace_root?: string;
623
+ title?: string;
624
+ detail?: string | null;
625
+ excerpt?: string[];
626
+ occurrence_count?: number;
627
+ created_at_ms?: number;
628
+ updated_at_ms?: number;
629
+ draft_id?: string | null;
630
+ triage_run_id?: string | null;
631
+ last_error?: string | null;
632
+ [key: string]: unknown;
633
+ }
634
+ export interface BugMonitorIncidentListResponse {
635
+ incidents: BugMonitorIncidentRecord[];
636
+ count: number;
637
+ }
638
+ export interface BugMonitorDraftRecord {
639
+ draft_id: string;
640
+ fingerprint?: string;
641
+ repo?: string;
642
+ status?: string;
643
+ created_at_ms?: number;
644
+ triage_run_id?: string | null;
645
+ issue_number?: number | null;
646
+ title?: string | null;
647
+ detail?: string | null;
648
+ github_status?: string | null;
649
+ github_issue_url?: string | null;
650
+ github_comment_url?: string | null;
651
+ github_posted_at_ms?: number | null;
652
+ matched_issue_number?: number | null;
653
+ matched_issue_state?: string | null;
654
+ evidence_digest?: string | null;
655
+ last_post_error?: string | null;
656
+ [key: string]: unknown;
657
+ }
658
+ export interface BugMonitorDraftListResponse {
659
+ drafts: BugMonitorDraftRecord[];
660
+ count: number;
661
+ }
662
+ export interface BugMonitorPostRecord {
663
+ post_id: string;
664
+ draft_id?: string;
665
+ repo?: string;
666
+ operation?: string;
667
+ status?: string;
668
+ issue_number?: number | null;
669
+ issue_url?: string | null;
670
+ comment_url?: string | null;
671
+ error?: string | null;
672
+ updated_at_ms?: number | null;
673
+ [key: string]: unknown;
674
+ }
675
+ export interface BugMonitorPostListResponse {
676
+ posts: BugMonitorPostRecord[];
677
+ count: number;
678
+ }
380
679
  export interface PackInstallRecord {
381
680
  pack_id: string;
382
681
  name: string;
@@ -595,6 +894,12 @@ export interface RunRecord {
595
894
  status?: RunStatus | string;
596
895
  startedAtMs?: number;
597
896
  finishedAtMs?: number;
897
+ activeSessionIds?: string[];
898
+ active_session_ids?: string[];
899
+ latestSessionId?: string | null;
900
+ latest_session_id?: string | null;
901
+ attachEventStream?: string | null;
902
+ attach_event_stream?: string | null;
598
903
  [key: string]: unknown;
599
904
  }
600
905
  export interface ArtifactRecord {
@@ -620,6 +925,96 @@ export interface RoutineHistoryResponse {
620
925
  history: RoutineHistoryEntry[];
621
926
  count: number;
622
927
  }
928
+ export interface CoderRepoBinding {
929
+ projectId?: string;
930
+ project_id?: string;
931
+ workspaceId?: string;
932
+ workspace_id?: string;
933
+ workspaceRoot?: string;
934
+ workspace_root?: string;
935
+ repoSlug: string;
936
+ repo_slug?: string;
937
+ defaultBranch?: string | null;
938
+ default_branch?: string | null;
939
+ }
940
+ export interface CoderGithubRef {
941
+ kind: "issue" | "pull_request" | string;
942
+ number: number;
943
+ url?: string | null;
944
+ }
945
+ export interface CoderRunRecord {
946
+ coderRunId?: string;
947
+ coder_run_id?: string;
948
+ workflowMode?: string;
949
+ workflow_mode?: string;
950
+ linkedContextRunId?: string;
951
+ linked_context_run_id?: string;
952
+ repoBinding?: CoderRepoBinding;
953
+ repo_binding?: CoderRepoBinding;
954
+ githubRef?: CoderGithubRef | null;
955
+ github_ref?: CoderGithubRef | null;
956
+ sourceClient?: string | null;
957
+ source_client?: string | null;
958
+ status?: string;
959
+ phase?: string;
960
+ createdAtMs?: number;
961
+ created_at_ms?: number;
962
+ updatedAtMs?: number;
963
+ updated_at_ms?: number;
964
+ [key: string]: unknown;
965
+ }
966
+ export interface CoderRunsListResponse {
967
+ runs: CoderRunRecord[];
968
+ count?: number;
969
+ }
970
+ export interface CoderRunGetResponse {
971
+ coderRun?: CoderRunRecord;
972
+ coder_run?: CoderRunRecord;
973
+ run?: JsonObject;
974
+ [key: string]: unknown;
975
+ }
976
+ export interface CoderArtifactRecord {
977
+ id: string;
978
+ tsMs?: number;
979
+ ts_ms?: number;
980
+ path: string;
981
+ artifactType?: string;
982
+ artifact_type?: string;
983
+ stepId?: string | null;
984
+ step_id?: string | null;
985
+ sourceEventId?: string | null;
986
+ source_event_id?: string | null;
987
+ [key: string]: unknown;
988
+ }
989
+ export interface CoderArtifactsResponse {
990
+ artifacts: CoderArtifactRecord[];
991
+ count?: number;
992
+ [key: string]: unknown;
993
+ }
994
+ export interface CoderMemoryHitRecord {
995
+ [key: string]: unknown;
996
+ }
997
+ export interface CoderMemoryHitsResponse {
998
+ hits: CoderMemoryHitRecord[];
999
+ count?: number;
1000
+ [key: string]: unknown;
1001
+ }
1002
+ export interface CoderMemoryCandidateRecord {
1003
+ candidateId?: string;
1004
+ candidate_id?: string;
1005
+ kind?: string;
1006
+ summary?: string | null;
1007
+ payload?: JsonObject;
1008
+ artifact?: CoderArtifactRecord | null;
1009
+ createdAtMs?: number;
1010
+ created_at_ms?: number;
1011
+ [key: string]: unknown;
1012
+ }
1013
+ export interface CoderMemoryCandidatesResponse {
1014
+ candidates: CoderMemoryCandidateRecord[];
1015
+ count?: number;
1016
+ [key: string]: unknown;
1017
+ }
623
1018
  export interface AgentTeamSpawnInput {
624
1019
  missionId?: string;
625
1020
  parentInstanceId?: string;
@@ -642,6 +1037,11 @@ export interface AgentTeamSpawnResponse {
642
1037
  export interface AgentTeamTemplate {
643
1038
  id: string;
644
1039
  name?: string;
1040
+ templateID?: string;
1041
+ displayName?: string;
1042
+ avatarUrl?: string;
1043
+ defaultModel?: JsonObject;
1044
+ systemPrompt?: string;
645
1045
  role?: string;
646
1046
  [key: string]: unknown;
647
1047
  }
@@ -653,12 +1053,26 @@ export interface AgentTeamTemplateCreateInput {
653
1053
  template: JsonObject;
654
1054
  }
655
1055
  export interface AgentTeamTemplatePatchInput {
1056
+ displayName?: string;
1057
+ avatarUrl?: string;
656
1058
  role?: string;
657
1059
  systemPrompt?: string;
1060
+ defaultModel?: JsonObject;
658
1061
  skills?: JsonObject[];
659
1062
  defaultBudget?: JsonObject;
660
1063
  capabilities?: JsonObject;
661
1064
  }
1065
+ export interface AgentStandupComposeInput {
1066
+ name: string;
1067
+ workspaceRoot: string;
1068
+ schedule: JsonObject;
1069
+ participantTemplateIds: string[];
1070
+ reportPathTemplate?: string;
1071
+ }
1072
+ export interface AgentStandupComposeResponse {
1073
+ ok?: boolean;
1074
+ automation?: JsonObject;
1075
+ }
662
1076
  export interface AgentTeamInstance {
663
1077
  instanceId?: string;
664
1078
  missionId?: string;
@@ -717,6 +1131,17 @@ export interface AutomationV2FlowNode {
717
1131
  agentId: string;
718
1132
  objective: string;
719
1133
  dependsOn?: string[];
1134
+ inputRefs?: Array<{
1135
+ fromStepId?: string;
1136
+ from_step_id?: string;
1137
+ alias: string;
1138
+ }>;
1139
+ outputContract?: {
1140
+ kind: string;
1141
+ };
1142
+ output_contract?: {
1143
+ kind: string;
1144
+ };
720
1145
  retryPolicy?: JsonObject;
721
1146
  timeoutMs?: number;
722
1147
  }
@@ -737,6 +1162,107 @@ export interface AutomationV2Spec {
737
1162
  };
738
1163
  outputTargets?: string[];
739
1164
  creatorId?: string;
1165
+ workspaceRoot?: string;
1166
+ workspace_root?: string;
1167
+ metadata?: JsonObject;
1168
+ [key: string]: unknown;
1169
+ }
1170
+ export interface WorkflowPlanStep {
1171
+ stepId?: string;
1172
+ step_id?: string;
1173
+ kind: string;
1174
+ objective: string;
1175
+ dependsOn?: string[];
1176
+ depends_on?: string[];
1177
+ agentRole?: string;
1178
+ agent_role?: string;
1179
+ inputRefs?: Array<{
1180
+ fromStepId?: string;
1181
+ from_step_id?: string;
1182
+ alias: string;
1183
+ }>;
1184
+ input_refs?: Array<{
1185
+ fromStepId?: string;
1186
+ from_step_id?: string;
1187
+ alias: string;
1188
+ }>;
1189
+ outputContract?: {
1190
+ kind: string;
1191
+ };
1192
+ output_contract?: {
1193
+ kind: string;
1194
+ };
1195
+ }
1196
+ export interface WorkflowPlan {
1197
+ planId?: string;
1198
+ plan_id?: string;
1199
+ plannerVersion?: string;
1200
+ planner_version?: string;
1201
+ planSource?: string;
1202
+ plan_source?: string;
1203
+ originalPrompt?: string;
1204
+ original_prompt?: string;
1205
+ normalizedPrompt?: string;
1206
+ normalized_prompt?: string;
1207
+ confidence?: string;
1208
+ title: string;
1209
+ description?: string;
1210
+ schedule: AutomationV2Schedule;
1211
+ executionTarget?: string;
1212
+ execution_target?: string;
1213
+ workspaceRoot?: string;
1214
+ workspace_root?: string;
1215
+ steps: WorkflowPlanStep[];
1216
+ allowedMcpServers?: string[];
1217
+ allowed_mcp_servers?: string[];
1218
+ operatorPreferences?: JsonObject;
1219
+ operator_preferences?: JsonObject;
1220
+ metadata?: JsonObject;
1221
+ [key: string]: unknown;
1222
+ }
1223
+ export interface WorkflowPlanPackBuilderExportRequest {
1224
+ enabled?: boolean;
1225
+ sessionId?: string;
1226
+ session_id?: string;
1227
+ threadKey?: string;
1228
+ thread_key?: string;
1229
+ autoApply?: boolean;
1230
+ auto_apply?: boolean;
1231
+ }
1232
+ export interface WorkflowPlanPackBuilderExportResult {
1233
+ status?: string;
1234
+ error?: string;
1235
+ httpStatus?: number;
1236
+ http_status?: number;
1237
+ planId?: string;
1238
+ plan_id?: string;
1239
+ sessionId?: string;
1240
+ session_id?: string;
1241
+ threadKey?: string;
1242
+ thread_key?: string;
1243
+ autoApplyRequested?: boolean;
1244
+ auto_apply_requested?: boolean;
1245
+ autoApplyReady?: boolean;
1246
+ auto_apply_ready?: boolean;
1247
+ [key: string]: unknown;
1248
+ }
1249
+ export interface WorkflowPlanChatMessage {
1250
+ role: string;
1251
+ text: string;
1252
+ createdAtMs?: number;
1253
+ created_at_ms?: number;
1254
+ [key: string]: unknown;
1255
+ }
1256
+ export interface WorkflowPlanConversation {
1257
+ conversationId?: string;
1258
+ conversation_id?: string;
1259
+ planId?: string;
1260
+ plan_id?: string;
1261
+ createdAtMs?: number;
1262
+ created_at_ms?: number;
1263
+ updatedAtMs?: number;
1264
+ updated_at_ms?: number;
1265
+ messages: WorkflowPlanChatMessage[];
740
1266
  [key: string]: unknown;
741
1267
  }
742
1268
  export interface AutomationV2RunRecord {