@sixb/server 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +525 -61
- package/dist/index.js.map +19 -18
- package/dist/registerRoutes.d.ts +1 -0
- package/dist/registerRoutes.d.ts.map +1 -1
- package/dist/routes/agent-approvals.d.ts +22 -0
- package/dist/routes/agent-approvals.d.ts.map +1 -1
- package/dist/routes/agent-computers.d.ts +36 -0
- package/dist/routes/agent-computers.d.ts.map +1 -1
- package/dist/routes/agent-thread-reads.d.ts +82 -0
- package/dist/routes/agent-thread-reads.d.ts.map +1 -0
- package/dist/routes/agents.d.ts +783 -1
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/model-generations.d.ts +6 -0
- package/dist/routes/model-generations.d.ts.map +1 -1
- package/dist/routes/observed-agent-threads.d.ts +22 -0
- package/dist/routes/observed-agent-threads.d.ts.map +1 -1
- package/dist/routes/status.d.ts +4 -1
- package/dist/routes/status.d.ts.map +1 -1
- package/dist/routes/syncs.d.ts +175 -12
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +6 -6
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/schemas/activity.d.ts +4 -4
- package/dist/schemas/agents.d.ts +2602 -6
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +3 -0
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/models.d.ts +46 -0
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/syncs.d.ts +724 -25
- package/dist/schemas/syncs.d.ts.map +1 -1
- package/dist/schemas/workflows.d.ts +22 -22
- package/dist/server.d.ts +16 -1
- package/dist/server.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +6 -1
- package/src/registerRoutes.ts +4 -1
- package/src/routes/agent-computers.ts +7 -6
- package/src/routes/agent-thread-reads.ts +67 -0
- package/src/routes/agents.ts +129 -16
- package/src/routes/ai-accounting.ts +1 -0
- package/src/routes/model-generations.ts +1 -1
- package/src/routes/observed-agent-threads.ts +3 -4
- package/src/routes/status.ts +18 -1
- package/src/routes/syncs.ts +135 -8
- package/src/routes/ws/agents.ts +43 -3
- package/src/schemas/agents.ts +80 -10
- package/src/schemas/ai-accounting.ts +12 -0
- package/src/schemas/common.ts +15 -9
- package/src/schemas/models.ts +10 -0
- package/src/schemas/syncs.ts +63 -1
- package/src/server.ts +205 -13
package/dist/schemas/agents.d.ts
CHANGED
|
@@ -512,6 +512,119 @@ export declare const AgentThreadParticipantSchema: z.ZodObject<{
|
|
|
512
512
|
type: "user" | "serviceAccount" | "system";
|
|
513
513
|
};
|
|
514
514
|
}>;
|
|
515
|
+
export declare const AgentRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
516
|
+
export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "awaiting_approval", "awaiting_answer", "error", "other", "unknown"]>;
|
|
517
|
+
/** Your place in a conversation: how far your reading reached, and what is new. */
|
|
518
|
+
export declare const AgentThreadReadSchema: z.ZodObject<{
|
|
519
|
+
threadId: z.ZodString;
|
|
520
|
+
/** The seq of the last message your reading reached; 0 when it reached none. */
|
|
521
|
+
throughSeq: z.ZodNumber;
|
|
522
|
+
/** The thread's newest message seq. */
|
|
523
|
+
headSeq: z.ZodNumber;
|
|
524
|
+
/** Messages past your place that someone else wrote: not yours, nor approval outcomes alone. */
|
|
525
|
+
unread: z.ZodNumber;
|
|
526
|
+
/** When you last marked it read. */
|
|
527
|
+
readAt: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, "strip", z.ZodTypeAny, {
|
|
529
|
+
threadId: string;
|
|
530
|
+
throughSeq: number;
|
|
531
|
+
headSeq: number;
|
|
532
|
+
unread: number;
|
|
533
|
+
readAt?: string | undefined;
|
|
534
|
+
}, {
|
|
535
|
+
threadId: string;
|
|
536
|
+
throughSeq: number;
|
|
537
|
+
headSeq: number;
|
|
538
|
+
unread: number;
|
|
539
|
+
readAt?: string | undefined;
|
|
540
|
+
}>;
|
|
541
|
+
/** The newest run of a thread, enough to offer Continue or Retry without reading it. */
|
|
542
|
+
export declare const AgentThreadLastRunSchema: z.ZodObject<{
|
|
543
|
+
id: z.ZodString;
|
|
544
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
545
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "awaiting_approval", "awaiting_answer", "error", "other", "unknown"]>>;
|
|
546
|
+
errorCode: z.ZodOptional<z.ZodEnum<["internal.unexpected", "runtime.cancelled", "agent.context_limit_exceeded", "agent.execution_failed", "agent.step_limit_reached", "ai.usage_limit_exceeded", "ai.usage_limit_unavailable"]>>;
|
|
547
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
548
|
+
/** Who asked for it, when it ended short: only they can run it again. */
|
|
549
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
550
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
551
|
+
id: z.ZodString;
|
|
552
|
+
}, "strip", z.ZodTypeAny, {
|
|
553
|
+
id: string;
|
|
554
|
+
type: "user" | "serviceAccount";
|
|
555
|
+
}, {
|
|
556
|
+
id: string;
|
|
557
|
+
type: "user" | "serviceAccount";
|
|
558
|
+
}>>;
|
|
559
|
+
}, "strip", z.ZodTypeAny, {
|
|
560
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
561
|
+
id: string;
|
|
562
|
+
requestedBy?: {
|
|
563
|
+
id: string;
|
|
564
|
+
type: "user" | "serviceAccount";
|
|
565
|
+
} | undefined;
|
|
566
|
+
completedAt?: string | undefined;
|
|
567
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
568
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
569
|
+
}, {
|
|
570
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
571
|
+
id: string;
|
|
572
|
+
requestedBy?: {
|
|
573
|
+
id: string;
|
|
574
|
+
type: "user" | "serviceAccount";
|
|
575
|
+
} | undefined;
|
|
576
|
+
completedAt?: string | undefined;
|
|
577
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
578
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
579
|
+
}>;
|
|
580
|
+
export declare const MarkAgentThreadReadBodySchema: z.ZodObject<{
|
|
581
|
+
throughMessageId: z.ZodOptional<z.ZodString>;
|
|
582
|
+
}, "strict", z.ZodTypeAny, {
|
|
583
|
+
throughMessageId?: string | undefined;
|
|
584
|
+
}, {
|
|
585
|
+
throughMessageId?: string | undefined;
|
|
586
|
+
}>;
|
|
587
|
+
export declare const MarkAgentThreadReadResponseSchema: z.ZodObject<{
|
|
588
|
+
read: z.ZodObject<{
|
|
589
|
+
threadId: z.ZodString;
|
|
590
|
+
/** The seq of the last message your reading reached; 0 when it reached none. */
|
|
591
|
+
throughSeq: z.ZodNumber;
|
|
592
|
+
/** The thread's newest message seq. */
|
|
593
|
+
headSeq: z.ZodNumber;
|
|
594
|
+
/** Messages past your place that someone else wrote: not yours, nor approval outcomes alone. */
|
|
595
|
+
unread: z.ZodNumber;
|
|
596
|
+
/** When you last marked it read. */
|
|
597
|
+
readAt: z.ZodOptional<z.ZodString>;
|
|
598
|
+
}, "strip", z.ZodTypeAny, {
|
|
599
|
+
threadId: string;
|
|
600
|
+
throughSeq: number;
|
|
601
|
+
headSeq: number;
|
|
602
|
+
unread: number;
|
|
603
|
+
readAt?: string | undefined;
|
|
604
|
+
}, {
|
|
605
|
+
threadId: string;
|
|
606
|
+
throughSeq: number;
|
|
607
|
+
headSeq: number;
|
|
608
|
+
unread: number;
|
|
609
|
+
readAt?: string | undefined;
|
|
610
|
+
}>;
|
|
611
|
+
}, "strip", z.ZodTypeAny, {
|
|
612
|
+
read: {
|
|
613
|
+
threadId: string;
|
|
614
|
+
throughSeq: number;
|
|
615
|
+
headSeq: number;
|
|
616
|
+
unread: number;
|
|
617
|
+
readAt?: string | undefined;
|
|
618
|
+
};
|
|
619
|
+
}, {
|
|
620
|
+
read: {
|
|
621
|
+
threadId: string;
|
|
622
|
+
throughSeq: number;
|
|
623
|
+
headSeq: number;
|
|
624
|
+
unread: number;
|
|
625
|
+
readAt?: string | undefined;
|
|
626
|
+
};
|
|
627
|
+
}>;
|
|
515
628
|
export declare const AgentThreadSchema: z.ZodObject<{
|
|
516
629
|
sandboxState: z.ZodOptional<z.ZodObject<{
|
|
517
630
|
name: z.ZodString;
|
|
@@ -688,6 +801,69 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
688
801
|
messageCount: z.ZodNumber;
|
|
689
802
|
createdAt: z.ZodString;
|
|
690
803
|
updatedAt: z.ZodString;
|
|
804
|
+
/** Your place in it: absent for an observer, and for code that is not a person. */
|
|
805
|
+
read: z.ZodOptional<z.ZodObject<{
|
|
806
|
+
threadId: z.ZodString;
|
|
807
|
+
/** The seq of the last message your reading reached; 0 when it reached none. */
|
|
808
|
+
throughSeq: z.ZodNumber;
|
|
809
|
+
/** The thread's newest message seq. */
|
|
810
|
+
headSeq: z.ZodNumber;
|
|
811
|
+
/** Messages past your place that someone else wrote: not yours, nor approval outcomes alone. */
|
|
812
|
+
unread: z.ZodNumber;
|
|
813
|
+
/** When you last marked it read. */
|
|
814
|
+
readAt: z.ZodOptional<z.ZodString>;
|
|
815
|
+
}, "strip", z.ZodTypeAny, {
|
|
816
|
+
threadId: string;
|
|
817
|
+
throughSeq: number;
|
|
818
|
+
headSeq: number;
|
|
819
|
+
unread: number;
|
|
820
|
+
readAt?: string | undefined;
|
|
821
|
+
}, {
|
|
822
|
+
threadId: string;
|
|
823
|
+
throughSeq: number;
|
|
824
|
+
headSeq: number;
|
|
825
|
+
unread: number;
|
|
826
|
+
readAt?: string | undefined;
|
|
827
|
+
}>>;
|
|
828
|
+
/** Its newest run, so a client can offer Continue or Retry without reading it. */
|
|
829
|
+
lastRun: z.ZodOptional<z.ZodObject<{
|
|
830
|
+
id: z.ZodString;
|
|
831
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
832
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "awaiting_approval", "awaiting_answer", "error", "other", "unknown"]>>;
|
|
833
|
+
errorCode: z.ZodOptional<z.ZodEnum<["internal.unexpected", "runtime.cancelled", "agent.context_limit_exceeded", "agent.execution_failed", "agent.step_limit_reached", "ai.usage_limit_exceeded", "ai.usage_limit_unavailable"]>>;
|
|
834
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
835
|
+
/** Who asked for it, when it ended short: only they can run it again. */
|
|
836
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
837
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
838
|
+
id: z.ZodString;
|
|
839
|
+
}, "strip", z.ZodTypeAny, {
|
|
840
|
+
id: string;
|
|
841
|
+
type: "user" | "serviceAccount";
|
|
842
|
+
}, {
|
|
843
|
+
id: string;
|
|
844
|
+
type: "user" | "serviceAccount";
|
|
845
|
+
}>>;
|
|
846
|
+
}, "strip", z.ZodTypeAny, {
|
|
847
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
848
|
+
id: string;
|
|
849
|
+
requestedBy?: {
|
|
850
|
+
id: string;
|
|
851
|
+
type: "user" | "serviceAccount";
|
|
852
|
+
} | undefined;
|
|
853
|
+
completedAt?: string | undefined;
|
|
854
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
855
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
856
|
+
}, {
|
|
857
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
858
|
+
id: string;
|
|
859
|
+
requestedBy?: {
|
|
860
|
+
id: string;
|
|
861
|
+
type: "user" | "serviceAccount";
|
|
862
|
+
} | undefined;
|
|
863
|
+
completedAt?: string | undefined;
|
|
864
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
865
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
866
|
+
}>>;
|
|
691
867
|
/** Your mode in this thread, when the thread is read alone. */
|
|
692
868
|
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
693
869
|
/**
|
|
@@ -725,6 +901,13 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
725
901
|
activeRunId: string | null;
|
|
726
902
|
messageCount: number;
|
|
727
903
|
updatedAt: string;
|
|
904
|
+
read?: {
|
|
905
|
+
threadId: string;
|
|
906
|
+
throughSeq: number;
|
|
907
|
+
headSeq: number;
|
|
908
|
+
unread: number;
|
|
909
|
+
readAt?: string | undefined;
|
|
910
|
+
} | undefined;
|
|
728
911
|
title?: string | undefined;
|
|
729
912
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
730
913
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -758,6 +941,17 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
758
941
|
}[] | undefined;
|
|
759
942
|
movedAt?: string | undefined;
|
|
760
943
|
lastMessageAt?: string | undefined;
|
|
944
|
+
lastRun?: {
|
|
945
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
946
|
+
id: string;
|
|
947
|
+
requestedBy?: {
|
|
948
|
+
id: string;
|
|
949
|
+
type: "user" | "serviceAccount";
|
|
950
|
+
} | undefined;
|
|
951
|
+
completedAt?: string | undefined;
|
|
952
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
953
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
954
|
+
} | undefined;
|
|
761
955
|
}, {
|
|
762
956
|
status: "active" | "archived";
|
|
763
957
|
projectId: string;
|
|
@@ -788,6 +982,13 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
788
982
|
activeRunId: string | null;
|
|
789
983
|
messageCount: number;
|
|
790
984
|
updatedAt: string;
|
|
985
|
+
read?: {
|
|
986
|
+
threadId: string;
|
|
987
|
+
throughSeq: number;
|
|
988
|
+
headSeq: number;
|
|
989
|
+
unread: number;
|
|
990
|
+
readAt?: string | undefined;
|
|
991
|
+
} | undefined;
|
|
791
992
|
title?: string | undefined;
|
|
792
993
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
793
994
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -821,6 +1022,17 @@ export declare const AgentThreadSchema: z.ZodObject<{
|
|
|
821
1022
|
}[] | undefined;
|
|
822
1023
|
movedAt?: string | undefined;
|
|
823
1024
|
lastMessageAt?: string | undefined;
|
|
1025
|
+
lastRun?: {
|
|
1026
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1027
|
+
id: string;
|
|
1028
|
+
requestedBy?: {
|
|
1029
|
+
id: string;
|
|
1030
|
+
type: "user" | "serviceAccount";
|
|
1031
|
+
} | undefined;
|
|
1032
|
+
completedAt?: string | undefined;
|
|
1033
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1034
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1035
|
+
} | undefined;
|
|
824
1036
|
}>;
|
|
825
1037
|
export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
826
1038
|
threads: z.ZodArray<z.ZodObject<{
|
|
@@ -999,6 +1211,69 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
999
1211
|
messageCount: z.ZodNumber;
|
|
1000
1212
|
createdAt: z.ZodString;
|
|
1001
1213
|
updatedAt: z.ZodString;
|
|
1214
|
+
/** Your place in it: absent for an observer, and for code that is not a person. */
|
|
1215
|
+
read: z.ZodOptional<z.ZodObject<{
|
|
1216
|
+
threadId: z.ZodString;
|
|
1217
|
+
/** The seq of the last message your reading reached; 0 when it reached none. */
|
|
1218
|
+
throughSeq: z.ZodNumber;
|
|
1219
|
+
/** The thread's newest message seq. */
|
|
1220
|
+
headSeq: z.ZodNumber;
|
|
1221
|
+
/** Messages past your place that someone else wrote: not yours, nor approval outcomes alone. */
|
|
1222
|
+
unread: z.ZodNumber;
|
|
1223
|
+
/** When you last marked it read. */
|
|
1224
|
+
readAt: z.ZodOptional<z.ZodString>;
|
|
1225
|
+
}, "strip", z.ZodTypeAny, {
|
|
1226
|
+
threadId: string;
|
|
1227
|
+
throughSeq: number;
|
|
1228
|
+
headSeq: number;
|
|
1229
|
+
unread: number;
|
|
1230
|
+
readAt?: string | undefined;
|
|
1231
|
+
}, {
|
|
1232
|
+
threadId: string;
|
|
1233
|
+
throughSeq: number;
|
|
1234
|
+
headSeq: number;
|
|
1235
|
+
unread: number;
|
|
1236
|
+
readAt?: string | undefined;
|
|
1237
|
+
}>>;
|
|
1238
|
+
/** Its newest run, so a client can offer Continue or Retry without reading it. */
|
|
1239
|
+
lastRun: z.ZodOptional<z.ZodObject<{
|
|
1240
|
+
id: z.ZodString;
|
|
1241
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
1242
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "awaiting_approval", "awaiting_answer", "error", "other", "unknown"]>>;
|
|
1243
|
+
errorCode: z.ZodOptional<z.ZodEnum<["internal.unexpected", "runtime.cancelled", "agent.context_limit_exceeded", "agent.execution_failed", "agent.step_limit_reached", "ai.usage_limit_exceeded", "ai.usage_limit_unavailable"]>>;
|
|
1244
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
/** Who asked for it, when it ended short: only they can run it again. */
|
|
1246
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
1247
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
1248
|
+
id: z.ZodString;
|
|
1249
|
+
}, "strip", z.ZodTypeAny, {
|
|
1250
|
+
id: string;
|
|
1251
|
+
type: "user" | "serviceAccount";
|
|
1252
|
+
}, {
|
|
1253
|
+
id: string;
|
|
1254
|
+
type: "user" | "serviceAccount";
|
|
1255
|
+
}>>;
|
|
1256
|
+
}, "strip", z.ZodTypeAny, {
|
|
1257
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1258
|
+
id: string;
|
|
1259
|
+
requestedBy?: {
|
|
1260
|
+
id: string;
|
|
1261
|
+
type: "user" | "serviceAccount";
|
|
1262
|
+
} | undefined;
|
|
1263
|
+
completedAt?: string | undefined;
|
|
1264
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1265
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1266
|
+
}, {
|
|
1267
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1268
|
+
id: string;
|
|
1269
|
+
requestedBy?: {
|
|
1270
|
+
id: string;
|
|
1271
|
+
type: "user" | "serviceAccount";
|
|
1272
|
+
} | undefined;
|
|
1273
|
+
completedAt?: string | undefined;
|
|
1274
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1275
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1276
|
+
}>>;
|
|
1002
1277
|
/** Your mode in this thread, when the thread is read alone. */
|
|
1003
1278
|
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
1004
1279
|
/**
|
|
@@ -1036,6 +1311,13 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
1036
1311
|
activeRunId: string | null;
|
|
1037
1312
|
messageCount: number;
|
|
1038
1313
|
updatedAt: string;
|
|
1314
|
+
read?: {
|
|
1315
|
+
threadId: string;
|
|
1316
|
+
throughSeq: number;
|
|
1317
|
+
headSeq: number;
|
|
1318
|
+
unread: number;
|
|
1319
|
+
readAt?: string | undefined;
|
|
1320
|
+
} | undefined;
|
|
1039
1321
|
title?: string | undefined;
|
|
1040
1322
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
1041
1323
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -1069,6 +1351,17 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
1069
1351
|
}[] | undefined;
|
|
1070
1352
|
movedAt?: string | undefined;
|
|
1071
1353
|
lastMessageAt?: string | undefined;
|
|
1354
|
+
lastRun?: {
|
|
1355
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1356
|
+
id: string;
|
|
1357
|
+
requestedBy?: {
|
|
1358
|
+
id: string;
|
|
1359
|
+
type: "user" | "serviceAccount";
|
|
1360
|
+
} | undefined;
|
|
1361
|
+
completedAt?: string | undefined;
|
|
1362
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1363
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1364
|
+
} | undefined;
|
|
1072
1365
|
}, {
|
|
1073
1366
|
status: "active" | "archived";
|
|
1074
1367
|
projectId: string;
|
|
@@ -1099,6 +1392,13 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
1099
1392
|
activeRunId: string | null;
|
|
1100
1393
|
messageCount: number;
|
|
1101
1394
|
updatedAt: string;
|
|
1395
|
+
read?: {
|
|
1396
|
+
threadId: string;
|
|
1397
|
+
throughSeq: number;
|
|
1398
|
+
headSeq: number;
|
|
1399
|
+
unread: number;
|
|
1400
|
+
readAt?: string | undefined;
|
|
1401
|
+
} | undefined;
|
|
1102
1402
|
title?: string | undefined;
|
|
1103
1403
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
1104
1404
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -1132,6 +1432,17 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
1132
1432
|
}[] | undefined;
|
|
1133
1433
|
movedAt?: string | undefined;
|
|
1134
1434
|
lastMessageAt?: string | undefined;
|
|
1435
|
+
lastRun?: {
|
|
1436
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1437
|
+
id: string;
|
|
1438
|
+
requestedBy?: {
|
|
1439
|
+
id: string;
|
|
1440
|
+
type: "user" | "serviceAccount";
|
|
1441
|
+
} | undefined;
|
|
1442
|
+
completedAt?: string | undefined;
|
|
1443
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1444
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1445
|
+
} | undefined;
|
|
1135
1446
|
}>, "many">;
|
|
1136
1447
|
hasMore: z.ZodBoolean;
|
|
1137
1448
|
total: z.ZodNumber;
|
|
@@ -1168,6 +1479,13 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
1168
1479
|
activeRunId: string | null;
|
|
1169
1480
|
messageCount: number;
|
|
1170
1481
|
updatedAt: string;
|
|
1482
|
+
read?: {
|
|
1483
|
+
threadId: string;
|
|
1484
|
+
throughSeq: number;
|
|
1485
|
+
headSeq: number;
|
|
1486
|
+
unread: number;
|
|
1487
|
+
readAt?: string | undefined;
|
|
1488
|
+
} | undefined;
|
|
1171
1489
|
title?: string | undefined;
|
|
1172
1490
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
1173
1491
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -1201,6 +1519,17 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
1201
1519
|
}[] | undefined;
|
|
1202
1520
|
movedAt?: string | undefined;
|
|
1203
1521
|
lastMessageAt?: string | undefined;
|
|
1522
|
+
lastRun?: {
|
|
1523
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1524
|
+
id: string;
|
|
1525
|
+
requestedBy?: {
|
|
1526
|
+
id: string;
|
|
1527
|
+
type: "user" | "serviceAccount";
|
|
1528
|
+
} | undefined;
|
|
1529
|
+
completedAt?: string | undefined;
|
|
1530
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1531
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1532
|
+
} | undefined;
|
|
1204
1533
|
}[];
|
|
1205
1534
|
}, {
|
|
1206
1535
|
hasMore: boolean;
|
|
@@ -1235,6 +1564,13 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
1235
1564
|
activeRunId: string | null;
|
|
1236
1565
|
messageCount: number;
|
|
1237
1566
|
updatedAt: string;
|
|
1567
|
+
read?: {
|
|
1568
|
+
threadId: string;
|
|
1569
|
+
throughSeq: number;
|
|
1570
|
+
headSeq: number;
|
|
1571
|
+
unread: number;
|
|
1572
|
+
readAt?: string | undefined;
|
|
1573
|
+
} | undefined;
|
|
1238
1574
|
title?: string | undefined;
|
|
1239
1575
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
1240
1576
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -1268,6 +1604,17 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
|
|
|
1268
1604
|
}[] | undefined;
|
|
1269
1605
|
movedAt?: string | undefined;
|
|
1270
1606
|
lastMessageAt?: string | undefined;
|
|
1607
|
+
lastRun?: {
|
|
1608
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1609
|
+
id: string;
|
|
1610
|
+
requestedBy?: {
|
|
1611
|
+
id: string;
|
|
1612
|
+
type: "user" | "serviceAccount";
|
|
1613
|
+
} | undefined;
|
|
1614
|
+
completedAt?: string | undefined;
|
|
1615
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1616
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1617
|
+
} | undefined;
|
|
1271
1618
|
}[];
|
|
1272
1619
|
}>;
|
|
1273
1620
|
export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
@@ -1447,6 +1794,69 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
1447
1794
|
messageCount: z.ZodNumber;
|
|
1448
1795
|
createdAt: z.ZodString;
|
|
1449
1796
|
updatedAt: z.ZodString;
|
|
1797
|
+
/** Your place in it: absent for an observer, and for code that is not a person. */
|
|
1798
|
+
read: z.ZodOptional<z.ZodObject<{
|
|
1799
|
+
threadId: z.ZodString;
|
|
1800
|
+
/** The seq of the last message your reading reached; 0 when it reached none. */
|
|
1801
|
+
throughSeq: z.ZodNumber;
|
|
1802
|
+
/** The thread's newest message seq. */
|
|
1803
|
+
headSeq: z.ZodNumber;
|
|
1804
|
+
/** Messages past your place that someone else wrote: not yours, nor approval outcomes alone. */
|
|
1805
|
+
unread: z.ZodNumber;
|
|
1806
|
+
/** When you last marked it read. */
|
|
1807
|
+
readAt: z.ZodOptional<z.ZodString>;
|
|
1808
|
+
}, "strip", z.ZodTypeAny, {
|
|
1809
|
+
threadId: string;
|
|
1810
|
+
throughSeq: number;
|
|
1811
|
+
headSeq: number;
|
|
1812
|
+
unread: number;
|
|
1813
|
+
readAt?: string | undefined;
|
|
1814
|
+
}, {
|
|
1815
|
+
threadId: string;
|
|
1816
|
+
throughSeq: number;
|
|
1817
|
+
headSeq: number;
|
|
1818
|
+
unread: number;
|
|
1819
|
+
readAt?: string | undefined;
|
|
1820
|
+
}>>;
|
|
1821
|
+
/** Its newest run, so a client can offer Continue or Retry without reading it. */
|
|
1822
|
+
lastRun: z.ZodOptional<z.ZodObject<{
|
|
1823
|
+
id: z.ZodString;
|
|
1824
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
1825
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "awaiting_approval", "awaiting_answer", "error", "other", "unknown"]>>;
|
|
1826
|
+
errorCode: z.ZodOptional<z.ZodEnum<["internal.unexpected", "runtime.cancelled", "agent.context_limit_exceeded", "agent.execution_failed", "agent.step_limit_reached", "ai.usage_limit_exceeded", "ai.usage_limit_unavailable"]>>;
|
|
1827
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
1828
|
+
/** Who asked for it, when it ended short: only they can run it again. */
|
|
1829
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
1830
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
1831
|
+
id: z.ZodString;
|
|
1832
|
+
}, "strip", z.ZodTypeAny, {
|
|
1833
|
+
id: string;
|
|
1834
|
+
type: "user" | "serviceAccount";
|
|
1835
|
+
}, {
|
|
1836
|
+
id: string;
|
|
1837
|
+
type: "user" | "serviceAccount";
|
|
1838
|
+
}>>;
|
|
1839
|
+
}, "strip", z.ZodTypeAny, {
|
|
1840
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1841
|
+
id: string;
|
|
1842
|
+
requestedBy?: {
|
|
1843
|
+
id: string;
|
|
1844
|
+
type: "user" | "serviceAccount";
|
|
1845
|
+
} | undefined;
|
|
1846
|
+
completedAt?: string | undefined;
|
|
1847
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1848
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1849
|
+
}, {
|
|
1850
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1851
|
+
id: string;
|
|
1852
|
+
requestedBy?: {
|
|
1853
|
+
id: string;
|
|
1854
|
+
type: "user" | "serviceAccount";
|
|
1855
|
+
} | undefined;
|
|
1856
|
+
completedAt?: string | undefined;
|
|
1857
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1858
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1859
|
+
}>>;
|
|
1450
1860
|
/** Your mode in this thread, when the thread is read alone. */
|
|
1451
1861
|
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
1452
1862
|
/**
|
|
@@ -1484,6 +1894,13 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
1484
1894
|
activeRunId: string | null;
|
|
1485
1895
|
messageCount: number;
|
|
1486
1896
|
updatedAt: string;
|
|
1897
|
+
read?: {
|
|
1898
|
+
threadId: string;
|
|
1899
|
+
throughSeq: number;
|
|
1900
|
+
headSeq: number;
|
|
1901
|
+
unread: number;
|
|
1902
|
+
readAt?: string | undefined;
|
|
1903
|
+
} | undefined;
|
|
1487
1904
|
title?: string | undefined;
|
|
1488
1905
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
1489
1906
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -1517,6 +1934,17 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
1517
1934
|
}[] | undefined;
|
|
1518
1935
|
movedAt?: string | undefined;
|
|
1519
1936
|
lastMessageAt?: string | undefined;
|
|
1937
|
+
lastRun?: {
|
|
1938
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
1939
|
+
id: string;
|
|
1940
|
+
requestedBy?: {
|
|
1941
|
+
id: string;
|
|
1942
|
+
type: "user" | "serviceAccount";
|
|
1943
|
+
} | undefined;
|
|
1944
|
+
completedAt?: string | undefined;
|
|
1945
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
1946
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
1947
|
+
} | undefined;
|
|
1520
1948
|
}, {
|
|
1521
1949
|
status: "active" | "archived";
|
|
1522
1950
|
projectId: string;
|
|
@@ -1547,6 +1975,13 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
1547
1975
|
activeRunId: string | null;
|
|
1548
1976
|
messageCount: number;
|
|
1549
1977
|
updatedAt: string;
|
|
1978
|
+
read?: {
|
|
1979
|
+
threadId: string;
|
|
1980
|
+
throughSeq: number;
|
|
1981
|
+
headSeq: number;
|
|
1982
|
+
unread: number;
|
|
1983
|
+
readAt?: string | undefined;
|
|
1984
|
+
} | undefined;
|
|
1550
1985
|
title?: string | undefined;
|
|
1551
1986
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
1552
1987
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -1580,6 +2015,17 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
1580
2015
|
}[] | undefined;
|
|
1581
2016
|
movedAt?: string | undefined;
|
|
1582
2017
|
lastMessageAt?: string | undefined;
|
|
2018
|
+
lastRun?: {
|
|
2019
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
2020
|
+
id: string;
|
|
2021
|
+
requestedBy?: {
|
|
2022
|
+
id: string;
|
|
2023
|
+
type: "user" | "serviceAccount";
|
|
2024
|
+
} | undefined;
|
|
2025
|
+
completedAt?: string | undefined;
|
|
2026
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
2027
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
2028
|
+
} | undefined;
|
|
1583
2029
|
}>;
|
|
1584
2030
|
}, "strip", z.ZodTypeAny, {
|
|
1585
2031
|
thread: {
|
|
@@ -1612,6 +2058,13 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
1612
2058
|
activeRunId: string | null;
|
|
1613
2059
|
messageCount: number;
|
|
1614
2060
|
updatedAt: string;
|
|
2061
|
+
read?: {
|
|
2062
|
+
threadId: string;
|
|
2063
|
+
throughSeq: number;
|
|
2064
|
+
headSeq: number;
|
|
2065
|
+
unread: number;
|
|
2066
|
+
readAt?: string | undefined;
|
|
2067
|
+
} | undefined;
|
|
1615
2068
|
title?: string | undefined;
|
|
1616
2069
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
1617
2070
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -1645,6 +2098,17 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
1645
2098
|
}[] | undefined;
|
|
1646
2099
|
movedAt?: string | undefined;
|
|
1647
2100
|
lastMessageAt?: string | undefined;
|
|
2101
|
+
lastRun?: {
|
|
2102
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
2103
|
+
id: string;
|
|
2104
|
+
requestedBy?: {
|
|
2105
|
+
id: string;
|
|
2106
|
+
type: "user" | "serviceAccount";
|
|
2107
|
+
} | undefined;
|
|
2108
|
+
completedAt?: string | undefined;
|
|
2109
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
2110
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
2111
|
+
} | undefined;
|
|
1648
2112
|
};
|
|
1649
2113
|
}, {
|
|
1650
2114
|
thread: {
|
|
@@ -1677,6 +2141,13 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
1677
2141
|
activeRunId: string | null;
|
|
1678
2142
|
messageCount: number;
|
|
1679
2143
|
updatedAt: string;
|
|
2144
|
+
read?: {
|
|
2145
|
+
threadId: string;
|
|
2146
|
+
throughSeq: number;
|
|
2147
|
+
headSeq: number;
|
|
2148
|
+
unread: number;
|
|
2149
|
+
readAt?: string | undefined;
|
|
2150
|
+
} | undefined;
|
|
1680
2151
|
title?: string | undefined;
|
|
1681
2152
|
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
1682
2153
|
approvalModeSource?: "default" | "thread" | "fallback" | "run" | undefined;
|
|
@@ -1710,8 +2181,20 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
|
|
|
1710
2181
|
}[] | undefined;
|
|
1711
2182
|
movedAt?: string | undefined;
|
|
1712
2183
|
lastMessageAt?: string | undefined;
|
|
2184
|
+
lastRun?: {
|
|
2185
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
2186
|
+
id: string;
|
|
2187
|
+
requestedBy?: {
|
|
2188
|
+
id: string;
|
|
2189
|
+
type: "user" | "serviceAccount";
|
|
2190
|
+
} | undefined;
|
|
2191
|
+
completedAt?: string | undefined;
|
|
2192
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
2193
|
+
errorCode?: "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled" | undefined;
|
|
2194
|
+
} | undefined;
|
|
1713
2195
|
};
|
|
1714
2196
|
}>;
|
|
2197
|
+
/** The computer and folder a thread moves to, whether it runs in the cloud or elsewhere. */
|
|
1715
2198
|
export declare const MoveAgentThreadToComputerBodySchema: z.ZodObject<{
|
|
1716
2199
|
computer: z.ZodObject<{
|
|
1717
2200
|
/** The id `sixb` keeps for the computer, beside its sign-in. */
|
|
@@ -4948,11 +5431,218 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
|
|
|
4948
5431
|
displayName?: string | undefined;
|
|
4949
5432
|
}[];
|
|
4950
5433
|
}>;
|
|
4951
|
-
export declare const
|
|
4952
|
-
/** Required unless `
|
|
5434
|
+
export declare const EditAgentMessageBodySchema: z.ZodObject<{
|
|
5435
|
+
/** Required unless `attachments` are the whole message. */
|
|
4953
5436
|
text: z.ZodOptional<z.ZodString>;
|
|
4954
|
-
|
|
4955
|
-
|
|
5437
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
5438
|
+
provider: z.ZodString;
|
|
5439
|
+
modelId: z.ZodString;
|
|
5440
|
+
}, "strip", z.ZodTypeAny, {
|
|
5441
|
+
modelId: string;
|
|
5442
|
+
provider: string;
|
|
5443
|
+
}, {
|
|
5444
|
+
modelId: string;
|
|
5445
|
+
provider: string;
|
|
5446
|
+
}>>;
|
|
5447
|
+
reasoning: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
|
|
5448
|
+
budgetTokens: z.ZodNumber;
|
|
5449
|
+
}, "strict", z.ZodTypeAny, {
|
|
5450
|
+
budgetTokens: number;
|
|
5451
|
+
}, {
|
|
5452
|
+
budgetTokens: number;
|
|
5453
|
+
}>]>>;
|
|
5454
|
+
/** IANA time zone of the person asking. The Agent presents dates and times in it. */
|
|
5455
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
5456
|
+
/** BCP 47 language of the person asking. */
|
|
5457
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
5458
|
+
/** What this turn may change without asking you. Omitted: your choice in the thread. */
|
|
5459
|
+
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
5460
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5461
|
+
blobId: z.ZodString;
|
|
5462
|
+
digest: z.ZodString;
|
|
5463
|
+
sizeBytes: z.ZodNumber;
|
|
5464
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
5465
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
5466
|
+
logicalPath: z.ZodOptional<z.ZodString>;
|
|
5467
|
+
}, "strip", z.ZodTypeAny, {
|
|
5468
|
+
blobId: string;
|
|
5469
|
+
digest: string;
|
|
5470
|
+
sizeBytes: number;
|
|
5471
|
+
fileName?: string | undefined;
|
|
5472
|
+
mediaType?: string | undefined;
|
|
5473
|
+
logicalPath?: string | undefined;
|
|
5474
|
+
}, {
|
|
5475
|
+
blobId: string;
|
|
5476
|
+
digest: string;
|
|
5477
|
+
sizeBytes: number;
|
|
5478
|
+
fileName?: string | undefined;
|
|
5479
|
+
mediaType?: string | undefined;
|
|
5480
|
+
logicalPath?: string | undefined;
|
|
5481
|
+
}>, "many">>;
|
|
5482
|
+
context: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5483
|
+
context: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
5484
|
+
kind: z.ZodLiteral<"object">;
|
|
5485
|
+
ref: z.ZodObject<{
|
|
5486
|
+
objectTypeId: z.ZodString;
|
|
5487
|
+
primaryId: z.ZodString;
|
|
5488
|
+
}, "strip", z.ZodTypeAny, {
|
|
5489
|
+
objectTypeId: string;
|
|
5490
|
+
primaryId: string;
|
|
5491
|
+
}, {
|
|
5492
|
+
objectTypeId: string;
|
|
5493
|
+
primaryId: string;
|
|
5494
|
+
}>;
|
|
5495
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5496
|
+
}, "strip", z.ZodTypeAny, {
|
|
5497
|
+
kind: "object";
|
|
5498
|
+
ref: {
|
|
5499
|
+
objectTypeId: string;
|
|
5500
|
+
primaryId: string;
|
|
5501
|
+
};
|
|
5502
|
+
label?: string | undefined;
|
|
5503
|
+
}, {
|
|
5504
|
+
kind: "object";
|
|
5505
|
+
ref: {
|
|
5506
|
+
objectTypeId: string;
|
|
5507
|
+
primaryId: string;
|
|
5508
|
+
};
|
|
5509
|
+
label?: string | undefined;
|
|
5510
|
+
}>, z.ZodObject<{
|
|
5511
|
+
kind: z.ZodLiteral<"app-state">;
|
|
5512
|
+
id: z.ZodString;
|
|
5513
|
+
label: z.ZodString;
|
|
5514
|
+
description: z.ZodString;
|
|
5515
|
+
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
5516
|
+
}, "strip", z.ZodTypeAny, {
|
|
5517
|
+
id: string;
|
|
5518
|
+
kind: "app-state";
|
|
5519
|
+
value: import("./common").JsonValue;
|
|
5520
|
+
description: string;
|
|
5521
|
+
label: string;
|
|
5522
|
+
}, {
|
|
5523
|
+
id: string;
|
|
5524
|
+
kind: "app-state";
|
|
5525
|
+
value: import("./common").JsonValue;
|
|
5526
|
+
description: string;
|
|
5527
|
+
label: string;
|
|
5528
|
+
}>]>;
|
|
5529
|
+
origin: z.ZodEnum<["ambient", "explicit"]>;
|
|
5530
|
+
}, "strip", z.ZodTypeAny, {
|
|
5531
|
+
origin: "ambient" | "explicit";
|
|
5532
|
+
context: {
|
|
5533
|
+
kind: "object";
|
|
5534
|
+
ref: {
|
|
5535
|
+
objectTypeId: string;
|
|
5536
|
+
primaryId: string;
|
|
5537
|
+
};
|
|
5538
|
+
label?: string | undefined;
|
|
5539
|
+
} | {
|
|
5540
|
+
id: string;
|
|
5541
|
+
kind: "app-state";
|
|
5542
|
+
value: import("./common").JsonValue;
|
|
5543
|
+
description: string;
|
|
5544
|
+
label: string;
|
|
5545
|
+
};
|
|
5546
|
+
}, {
|
|
5547
|
+
origin: "ambient" | "explicit";
|
|
5548
|
+
context: {
|
|
5549
|
+
kind: "object";
|
|
5550
|
+
ref: {
|
|
5551
|
+
objectTypeId: string;
|
|
5552
|
+
primaryId: string;
|
|
5553
|
+
};
|
|
5554
|
+
label?: string | undefined;
|
|
5555
|
+
} | {
|
|
5556
|
+
id: string;
|
|
5557
|
+
kind: "app-state";
|
|
5558
|
+
value: import("./common").JsonValue;
|
|
5559
|
+
description: string;
|
|
5560
|
+
label: string;
|
|
5561
|
+
};
|
|
5562
|
+
}>, "many">>;
|
|
5563
|
+
nextMessageId: z.ZodOptional<z.ZodString>;
|
|
5564
|
+
}, "strict", z.ZodTypeAny, {
|
|
5565
|
+
model?: {
|
|
5566
|
+
modelId: string;
|
|
5567
|
+
provider: string;
|
|
5568
|
+
} | undefined;
|
|
5569
|
+
locale?: string | undefined;
|
|
5570
|
+
timeZone?: string | undefined;
|
|
5571
|
+
context?: {
|
|
5572
|
+
origin: "ambient" | "explicit";
|
|
5573
|
+
context: {
|
|
5574
|
+
kind: "object";
|
|
5575
|
+
ref: {
|
|
5576
|
+
objectTypeId: string;
|
|
5577
|
+
primaryId: string;
|
|
5578
|
+
};
|
|
5579
|
+
label?: string | undefined;
|
|
5580
|
+
} | {
|
|
5581
|
+
id: string;
|
|
5582
|
+
kind: "app-state";
|
|
5583
|
+
value: import("./common").JsonValue;
|
|
5584
|
+
description: string;
|
|
5585
|
+
label: string;
|
|
5586
|
+
};
|
|
5587
|
+
}[] | undefined;
|
|
5588
|
+
text?: string | undefined;
|
|
5589
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
5590
|
+
attachments?: {
|
|
5591
|
+
blobId: string;
|
|
5592
|
+
digest: string;
|
|
5593
|
+
sizeBytes: number;
|
|
5594
|
+
fileName?: string | undefined;
|
|
5595
|
+
mediaType?: string | undefined;
|
|
5596
|
+
logicalPath?: string | undefined;
|
|
5597
|
+
}[] | undefined;
|
|
5598
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
5599
|
+
budgetTokens: number;
|
|
5600
|
+
} | undefined;
|
|
5601
|
+
nextMessageId?: string | undefined;
|
|
5602
|
+
}, {
|
|
5603
|
+
model?: {
|
|
5604
|
+
modelId: string;
|
|
5605
|
+
provider: string;
|
|
5606
|
+
} | undefined;
|
|
5607
|
+
locale?: string | undefined;
|
|
5608
|
+
timeZone?: string | undefined;
|
|
5609
|
+
context?: {
|
|
5610
|
+
origin: "ambient" | "explicit";
|
|
5611
|
+
context: {
|
|
5612
|
+
kind: "object";
|
|
5613
|
+
ref: {
|
|
5614
|
+
objectTypeId: string;
|
|
5615
|
+
primaryId: string;
|
|
5616
|
+
};
|
|
5617
|
+
label?: string | undefined;
|
|
5618
|
+
} | {
|
|
5619
|
+
id: string;
|
|
5620
|
+
kind: "app-state";
|
|
5621
|
+
value: import("./common").JsonValue;
|
|
5622
|
+
description: string;
|
|
5623
|
+
label: string;
|
|
5624
|
+
};
|
|
5625
|
+
}[] | undefined;
|
|
5626
|
+
text?: string | undefined;
|
|
5627
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
5628
|
+
attachments?: {
|
|
5629
|
+
blobId: string;
|
|
5630
|
+
digest: string;
|
|
5631
|
+
sizeBytes: number;
|
|
5632
|
+
fileName?: string | undefined;
|
|
5633
|
+
mediaType?: string | undefined;
|
|
5634
|
+
logicalPath?: string | undefined;
|
|
5635
|
+
}[] | undefined;
|
|
5636
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
5637
|
+
budgetTokens: number;
|
|
5638
|
+
} | undefined;
|
|
5639
|
+
nextMessageId?: string | undefined;
|
|
5640
|
+
}>;
|
|
5641
|
+
export declare const PostAgentMessageBodySchema: z.ZodObject<{
|
|
5642
|
+
/** Required unless `continue` is set or `attachments` are the whole message. */
|
|
5643
|
+
text: z.ZodOptional<z.ZodString>;
|
|
5644
|
+
/** Continue the previous answer after it reached the turn limit, without text of its own. */
|
|
5645
|
+
continue: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4956
5646
|
model: z.ZodOptional<z.ZodObject<{
|
|
4957
5647
|
provider: z.ZodString;
|
|
4958
5648
|
modelId: z.ZodString;
|
|
@@ -5185,8 +5875,6 @@ export declare const CancelAgentRunBodySchema: z.ZodObject<{
|
|
|
5185
5875
|
}, {
|
|
5186
5876
|
runId: string;
|
|
5187
5877
|
}>;
|
|
5188
|
-
export declare const AgentRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
5189
|
-
export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "awaiting_approval", "awaiting_answer", "error", "other", "unknown"]>;
|
|
5190
5878
|
export declare const AgentRunSchema: z.ZodObject<{
|
|
5191
5879
|
id: z.ZodString;
|
|
5192
5880
|
projectId: z.ZodString;
|
|
@@ -5230,6 +5918,21 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
5230
5918
|
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
5231
5919
|
/** Its owner's computer claims it; absent, the cloud runs it. */
|
|
5232
5920
|
runsOn: z.ZodOptional<z.ZodLiteral<"computer">>;
|
|
5921
|
+
/**
|
|
5922
|
+
* The computer and folder it runs in, in the list of a thread's runs its owner reads: shown to
|
|
5923
|
+
* them alone, as the thread's `computer` is. A turn in another place than the one before it no
|
|
5924
|
+
* longer has the files that turn worked on.
|
|
5925
|
+
*/
|
|
5926
|
+
computer: z.ZodOptional<z.ZodObject<{
|
|
5927
|
+
id: z.ZodString;
|
|
5928
|
+
folder: z.ZodString;
|
|
5929
|
+
}, "strip", z.ZodTypeAny, {
|
|
5930
|
+
id: string;
|
|
5931
|
+
folder: string;
|
|
5932
|
+
}, {
|
|
5933
|
+
id: string;
|
|
5934
|
+
folder: string;
|
|
5935
|
+
}>>;
|
|
5233
5936
|
modelId: z.ZodOptional<z.ZodString>;
|
|
5234
5937
|
/**
|
|
5235
5938
|
* `awaiting_approval`: the turn succeeded and paused on calls waiting for its requester. It stays
|
|
@@ -5390,6 +6093,10 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
5390
6093
|
} | undefined;
|
|
5391
6094
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
5392
6095
|
parentRunId?: string | undefined;
|
|
6096
|
+
computer?: {
|
|
6097
|
+
id: string;
|
|
6098
|
+
folder: string;
|
|
6099
|
+
} | undefined;
|
|
5393
6100
|
runsOn?: "computer" | undefined;
|
|
5394
6101
|
diagnostics?: {
|
|
5395
6102
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -5451,6 +6158,10 @@ export declare const AgentRunSchema: z.ZodObject<{
|
|
|
5451
6158
|
} | undefined;
|
|
5452
6159
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
5453
6160
|
parentRunId?: string | undefined;
|
|
6161
|
+
computer?: {
|
|
6162
|
+
id: string;
|
|
6163
|
+
folder: string;
|
|
6164
|
+
} | undefined;
|
|
5454
6165
|
runsOn?: "computer" | undefined;
|
|
5455
6166
|
diagnostics?: {
|
|
5456
6167
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -6102,6 +6813,8 @@ export declare const AgentInboxItemSchema: z.ZodObject<{
|
|
|
6102
6813
|
locale: z.ZodOptional<z.ZodString>;
|
|
6103
6814
|
/** Sent now: it starts even when the turn it waited for ended without answering. */
|
|
6104
6815
|
immediate: z.ZodOptional<z.ZodBoolean>;
|
|
6816
|
+
/** An edit waiting for the turn it stopped: the message it replaces once that turn ends. */
|
|
6817
|
+
replacesMessageId: z.ZodOptional<z.ZodString>;
|
|
6105
6818
|
createdAt: z.ZodString;
|
|
6106
6819
|
updatedAt: z.ZodString;
|
|
6107
6820
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6259,6 +6972,7 @@ export declare const AgentInboxItemSchema: z.ZodObject<{
|
|
|
6259
6972
|
} | undefined;
|
|
6260
6973
|
} | undefined;
|
|
6261
6974
|
immediate?: boolean | undefined;
|
|
6975
|
+
replacesMessageId?: string | undefined;
|
|
6262
6976
|
}, {
|
|
6263
6977
|
projectId: string;
|
|
6264
6978
|
id: string;
|
|
@@ -6414,6 +7128,7 @@ export declare const AgentInboxItemSchema: z.ZodObject<{
|
|
|
6414
7128
|
} | undefined;
|
|
6415
7129
|
} | undefined;
|
|
6416
7130
|
immediate?: boolean | undefined;
|
|
7131
|
+
replacesMessageId?: string | undefined;
|
|
6417
7132
|
}>;
|
|
6418
7133
|
export declare const AgentInboxListResponseSchema: z.ZodObject<{
|
|
6419
7134
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -7058,6 +7773,8 @@ export declare const AgentInboxListResponseSchema: z.ZodObject<{
|
|
|
7058
7773
|
locale: z.ZodOptional<z.ZodString>;
|
|
7059
7774
|
/** Sent now: it starts even when the turn it waited for ended without answering. */
|
|
7060
7775
|
immediate: z.ZodOptional<z.ZodBoolean>;
|
|
7776
|
+
/** An edit waiting for the turn it stopped: the message it replaces once that turn ends. */
|
|
7777
|
+
replacesMessageId: z.ZodOptional<z.ZodString>;
|
|
7061
7778
|
createdAt: z.ZodString;
|
|
7062
7779
|
updatedAt: z.ZodString;
|
|
7063
7780
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7215,6 +7932,7 @@ export declare const AgentInboxListResponseSchema: z.ZodObject<{
|
|
|
7215
7932
|
} | undefined;
|
|
7216
7933
|
} | undefined;
|
|
7217
7934
|
immediate?: boolean | undefined;
|
|
7935
|
+
replacesMessageId?: string | undefined;
|
|
7218
7936
|
}, {
|
|
7219
7937
|
projectId: string;
|
|
7220
7938
|
id: string;
|
|
@@ -7370,6 +8088,7 @@ export declare const AgentInboxListResponseSchema: z.ZodObject<{
|
|
|
7370
8088
|
} | undefined;
|
|
7371
8089
|
} | undefined;
|
|
7372
8090
|
immediate?: boolean | undefined;
|
|
8091
|
+
replacesMessageId?: string | undefined;
|
|
7373
8092
|
}>, "many">;
|
|
7374
8093
|
}, "strip", z.ZodTypeAny, {
|
|
7375
8094
|
items: {
|
|
@@ -7527,6 +8246,7 @@ export declare const AgentInboxListResponseSchema: z.ZodObject<{
|
|
|
7527
8246
|
} | undefined;
|
|
7528
8247
|
} | undefined;
|
|
7529
8248
|
immediate?: boolean | undefined;
|
|
8249
|
+
replacesMessageId?: string | undefined;
|
|
7530
8250
|
}[];
|
|
7531
8251
|
}, {
|
|
7532
8252
|
items: {
|
|
@@ -7684,6 +8404,7 @@ export declare const AgentInboxListResponseSchema: z.ZodObject<{
|
|
|
7684
8404
|
} | undefined;
|
|
7685
8405
|
} | undefined;
|
|
7686
8406
|
immediate?: boolean | undefined;
|
|
8407
|
+
replacesMessageId?: string | undefined;
|
|
7687
8408
|
}[];
|
|
7688
8409
|
}>;
|
|
7689
8410
|
export declare const AgentThreadInboxParamsSchema: z.ZodObject<{
|
|
@@ -8390,6 +9111,8 @@ export declare const UpdateAgentInboxItemResponseSchema: z.ZodObject<{
|
|
|
8390
9111
|
locale: z.ZodOptional<z.ZodString>;
|
|
8391
9112
|
/** Sent now: it starts even when the turn it waited for ended without answering. */
|
|
8392
9113
|
immediate: z.ZodOptional<z.ZodBoolean>;
|
|
9114
|
+
/** An edit waiting for the turn it stopped: the message it replaces once that turn ends. */
|
|
9115
|
+
replacesMessageId: z.ZodOptional<z.ZodString>;
|
|
8393
9116
|
createdAt: z.ZodString;
|
|
8394
9117
|
updatedAt: z.ZodString;
|
|
8395
9118
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8547,6 +9270,7 @@ export declare const UpdateAgentInboxItemResponseSchema: z.ZodObject<{
|
|
|
8547
9270
|
} | undefined;
|
|
8548
9271
|
} | undefined;
|
|
8549
9272
|
immediate?: boolean | undefined;
|
|
9273
|
+
replacesMessageId?: string | undefined;
|
|
8550
9274
|
}, {
|
|
8551
9275
|
projectId: string;
|
|
8552
9276
|
id: string;
|
|
@@ -8702,6 +9426,7 @@ export declare const UpdateAgentInboxItemResponseSchema: z.ZodObject<{
|
|
|
8702
9426
|
} | undefined;
|
|
8703
9427
|
} | undefined;
|
|
8704
9428
|
immediate?: boolean | undefined;
|
|
9429
|
+
replacesMessageId?: string | undefined;
|
|
8705
9430
|
}>;
|
|
8706
9431
|
}, "strip", z.ZodTypeAny, {
|
|
8707
9432
|
item: {
|
|
@@ -8859,6 +9584,7 @@ export declare const UpdateAgentInboxItemResponseSchema: z.ZodObject<{
|
|
|
8859
9584
|
} | undefined;
|
|
8860
9585
|
} | undefined;
|
|
8861
9586
|
immediate?: boolean | undefined;
|
|
9587
|
+
replacesMessageId?: string | undefined;
|
|
8862
9588
|
};
|
|
8863
9589
|
}, {
|
|
8864
9590
|
item: {
|
|
@@ -9016,6 +9742,7 @@ export declare const UpdateAgentInboxItemResponseSchema: z.ZodObject<{
|
|
|
9016
9742
|
} | undefined;
|
|
9017
9743
|
} | undefined;
|
|
9018
9744
|
immediate?: boolean | undefined;
|
|
9745
|
+
replacesMessageId?: string | undefined;
|
|
9019
9746
|
};
|
|
9020
9747
|
}>;
|
|
9021
9748
|
/**
|
|
@@ -9066,6 +9793,21 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
9066
9793
|
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
9067
9794
|
/** Its owner's computer claims it; absent, the cloud runs it. */
|
|
9068
9795
|
runsOn: z.ZodOptional<z.ZodLiteral<"computer">>;
|
|
9796
|
+
/**
|
|
9797
|
+
* The computer and folder it runs in, in the list of a thread's runs its owner reads: shown to
|
|
9798
|
+
* them alone, as the thread's `computer` is. A turn in another place than the one before it no
|
|
9799
|
+
* longer has the files that turn worked on.
|
|
9800
|
+
*/
|
|
9801
|
+
computer: z.ZodOptional<z.ZodObject<{
|
|
9802
|
+
id: z.ZodString;
|
|
9803
|
+
folder: z.ZodString;
|
|
9804
|
+
}, "strip", z.ZodTypeAny, {
|
|
9805
|
+
id: string;
|
|
9806
|
+
folder: string;
|
|
9807
|
+
}, {
|
|
9808
|
+
id: string;
|
|
9809
|
+
folder: string;
|
|
9810
|
+
}>>;
|
|
9069
9811
|
modelId: z.ZodOptional<z.ZodString>;
|
|
9070
9812
|
/**
|
|
9071
9813
|
* `awaiting_approval`: the turn succeeded and paused on calls waiting for its requester. It stays
|
|
@@ -9226,6 +9968,10 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
9226
9968
|
} | undefined;
|
|
9227
9969
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
9228
9970
|
parentRunId?: string | undefined;
|
|
9971
|
+
computer?: {
|
|
9972
|
+
id: string;
|
|
9973
|
+
folder: string;
|
|
9974
|
+
} | undefined;
|
|
9229
9975
|
runsOn?: "computer" | undefined;
|
|
9230
9976
|
diagnostics?: {
|
|
9231
9977
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -9287,6 +10033,10 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
9287
10033
|
} | undefined;
|
|
9288
10034
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
9289
10035
|
parentRunId?: string | undefined;
|
|
10036
|
+
computer?: {
|
|
10037
|
+
id: string;
|
|
10038
|
+
folder: string;
|
|
10039
|
+
} | undefined;
|
|
9290
10040
|
runsOn?: "computer" | undefined;
|
|
9291
10041
|
diagnostics?: {
|
|
9292
10042
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -9937,6 +10687,8 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
9937
10687
|
locale: z.ZodOptional<z.ZodString>;
|
|
9938
10688
|
/** Sent now: it starts even when the turn it waited for ended without answering. */
|
|
9939
10689
|
immediate: z.ZodOptional<z.ZodBoolean>;
|
|
10690
|
+
/** An edit waiting for the turn it stopped: the message it replaces once that turn ends. */
|
|
10691
|
+
replacesMessageId: z.ZodOptional<z.ZodString>;
|
|
9940
10692
|
createdAt: z.ZodString;
|
|
9941
10693
|
updatedAt: z.ZodString;
|
|
9942
10694
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10094,6 +10846,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
10094
10846
|
} | undefined;
|
|
10095
10847
|
} | undefined;
|
|
10096
10848
|
immediate?: boolean | undefined;
|
|
10849
|
+
replacesMessageId?: string | undefined;
|
|
10097
10850
|
}, {
|
|
10098
10851
|
projectId: string;
|
|
10099
10852
|
id: string;
|
|
@@ -10249,6 +11002,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
10249
11002
|
} | undefined;
|
|
10250
11003
|
} | undefined;
|
|
10251
11004
|
immediate?: boolean | undefined;
|
|
11005
|
+
replacesMessageId?: string | undefined;
|
|
10252
11006
|
}>>;
|
|
10253
11007
|
}, "strip", z.ZodTypeAny, {
|
|
10254
11008
|
run?: {
|
|
@@ -10305,6 +11059,10 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
10305
11059
|
} | undefined;
|
|
10306
11060
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
10307
11061
|
parentRunId?: string | undefined;
|
|
11062
|
+
computer?: {
|
|
11063
|
+
id: string;
|
|
11064
|
+
folder: string;
|
|
11065
|
+
} | undefined;
|
|
10308
11066
|
runsOn?: "computer" | undefined;
|
|
10309
11067
|
diagnostics?: {
|
|
10310
11068
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -10468,6 +11226,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
10468
11226
|
} | undefined;
|
|
10469
11227
|
} | undefined;
|
|
10470
11228
|
immediate?: boolean | undefined;
|
|
11229
|
+
replacesMessageId?: string | undefined;
|
|
10471
11230
|
} | undefined;
|
|
10472
11231
|
}, {
|
|
10473
11232
|
run?: {
|
|
@@ -10524,6 +11283,10 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
10524
11283
|
} | undefined;
|
|
10525
11284
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
10526
11285
|
parentRunId?: string | undefined;
|
|
11286
|
+
computer?: {
|
|
11287
|
+
id: string;
|
|
11288
|
+
folder: string;
|
|
11289
|
+
} | undefined;
|
|
10527
11290
|
runsOn?: "computer" | undefined;
|
|
10528
11291
|
diagnostics?: {
|
|
10529
11292
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -10687,6 +11450,1715 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
|
|
|
10687
11450
|
} | undefined;
|
|
10688
11451
|
} | undefined;
|
|
10689
11452
|
immediate?: boolean | undefined;
|
|
11453
|
+
replacesMessageId?: string | undefined;
|
|
11454
|
+
} | undefined;
|
|
11455
|
+
}>;
|
|
11456
|
+
/**
|
|
11457
|
+
* `run` when the edit starts its turn now; `item` when it waits, sent now, for the running turn it
|
|
11458
|
+
* stopped to end.
|
|
11459
|
+
*/
|
|
11460
|
+
export declare const EditAgentMessageResponseSchema: z.ZodObject<{
|
|
11461
|
+
run: z.ZodOptional<z.ZodObject<{
|
|
11462
|
+
id: z.ZodString;
|
|
11463
|
+
projectId: z.ZodString;
|
|
11464
|
+
/** A conversation's turn, or a sub-agent's run in its own thread. */
|
|
11465
|
+
kind: z.ZodEnum<["conversation", "subagent"]>;
|
|
11466
|
+
threadId: z.ZodString;
|
|
11467
|
+
triggerMessageId: z.ZodString;
|
|
11468
|
+
/** A sub-agent's: the turn it works under, whose deadline, mode and stop it shares. */
|
|
11469
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
11470
|
+
requestedBy: z.ZodOptional<z.ZodObject<{
|
|
11471
|
+
type: z.ZodEnum<["user", "serviceAccount"]>;
|
|
11472
|
+
id: z.ZodString;
|
|
11473
|
+
}, "strip", z.ZodTypeAny, {
|
|
11474
|
+
id: string;
|
|
11475
|
+
type: "user" | "serviceAccount";
|
|
11476
|
+
}, {
|
|
11477
|
+
id: string;
|
|
11478
|
+
type: "user" | "serviceAccount";
|
|
11479
|
+
}>>;
|
|
11480
|
+
status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
|
|
11481
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
11482
|
+
provider: z.ZodString;
|
|
11483
|
+
modelId: z.ZodString;
|
|
11484
|
+
}, "strip", z.ZodTypeAny, {
|
|
11485
|
+
modelId: string;
|
|
11486
|
+
provider: string;
|
|
11487
|
+
}, {
|
|
11488
|
+
modelId: string;
|
|
11489
|
+
provider: string;
|
|
11490
|
+
}>>;
|
|
11491
|
+
/** With tiers, the tier of the model the turn runs on. */
|
|
11492
|
+
tier: z.ZodOptional<z.ZodEnum<["light", "standard", "heavy"]>>;
|
|
11493
|
+
reasoning: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
|
|
11494
|
+
budgetTokens: z.ZodNumber;
|
|
11495
|
+
}, "strict", z.ZodTypeAny, {
|
|
11496
|
+
budgetTokens: number;
|
|
11497
|
+
}, {
|
|
11498
|
+
budgetTokens: number;
|
|
11499
|
+
}>]>>;
|
|
11500
|
+
/** What the turn could change without asking. Absent on turns from before approval modes. */
|
|
11501
|
+
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
11502
|
+
/** Its owner's computer claims it; absent, the cloud runs it. */
|
|
11503
|
+
runsOn: z.ZodOptional<z.ZodLiteral<"computer">>;
|
|
11504
|
+
/**
|
|
11505
|
+
* The computer and folder it runs in, in the list of a thread's runs its owner reads: shown to
|
|
11506
|
+
* them alone, as the thread's `computer` is. A turn in another place than the one before it no
|
|
11507
|
+
* longer has the files that turn worked on.
|
|
11508
|
+
*/
|
|
11509
|
+
computer: z.ZodOptional<z.ZodObject<{
|
|
11510
|
+
id: z.ZodString;
|
|
11511
|
+
folder: z.ZodString;
|
|
11512
|
+
}, "strip", z.ZodTypeAny, {
|
|
11513
|
+
id: string;
|
|
11514
|
+
folder: string;
|
|
11515
|
+
}, {
|
|
11516
|
+
id: string;
|
|
11517
|
+
folder: string;
|
|
11518
|
+
}>>;
|
|
11519
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
11520
|
+
/**
|
|
11521
|
+
* `awaiting_approval`: the turn succeeded and paused on calls waiting for its requester. It stays
|
|
11522
|
+
* so: a later turn continues it once they decided on every call, unless a call was set aside or
|
|
11523
|
+
* the turn stopped. The thread's approvals say where they stand.
|
|
11524
|
+
*/
|
|
11525
|
+
finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "awaiting_approval", "awaiting_answer", "error", "other", "unknown"]>>;
|
|
11526
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
11527
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
11528
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
11529
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
11530
|
+
uncachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
11531
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
11532
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
11533
|
+
textOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
11534
|
+
reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
11535
|
+
audioDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
11536
|
+
imageOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
11537
|
+
audioOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
11538
|
+
outputImages: z.ZodOptional<z.ZodNumber>;
|
|
11539
|
+
inputCharacters: z.ZodOptional<z.ZodNumber>;
|
|
11540
|
+
reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
|
|
11541
|
+
}, "strip", z.ZodTypeAny, {
|
|
11542
|
+
reportingStatus: "partial" | "complete" | "unavailable";
|
|
11543
|
+
inputTokens?: number | undefined;
|
|
11544
|
+
outputTokens?: number | undefined;
|
|
11545
|
+
totalTokens?: number | undefined;
|
|
11546
|
+
uncachedInputTokens?: number | undefined;
|
|
11547
|
+
cacheReadInputTokens?: number | undefined;
|
|
11548
|
+
cacheWriteInputTokens?: number | undefined;
|
|
11549
|
+
textOutputTokens?: number | undefined;
|
|
11550
|
+
reasoningOutputTokens?: number | undefined;
|
|
11551
|
+
audioDurationMs?: number | undefined;
|
|
11552
|
+
imageOutputTokens?: number | undefined;
|
|
11553
|
+
audioOutputTokens?: number | undefined;
|
|
11554
|
+
outputImages?: number | undefined;
|
|
11555
|
+
inputCharacters?: number | undefined;
|
|
11556
|
+
}, {
|
|
11557
|
+
reportingStatus: "partial" | "complete" | "unavailable";
|
|
11558
|
+
inputTokens?: number | undefined;
|
|
11559
|
+
outputTokens?: number | undefined;
|
|
11560
|
+
totalTokens?: number | undefined;
|
|
11561
|
+
uncachedInputTokens?: number | undefined;
|
|
11562
|
+
cacheReadInputTokens?: number | undefined;
|
|
11563
|
+
cacheWriteInputTokens?: number | undefined;
|
|
11564
|
+
textOutputTokens?: number | undefined;
|
|
11565
|
+
reasoningOutputTokens?: number | undefined;
|
|
11566
|
+
audioDurationMs?: number | undefined;
|
|
11567
|
+
imageOutputTokens?: number | undefined;
|
|
11568
|
+
audioOutputTokens?: number | undefined;
|
|
11569
|
+
outputImages?: number | undefined;
|
|
11570
|
+
inputCharacters?: number | undefined;
|
|
11571
|
+
}>>;
|
|
11572
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
11573
|
+
amounts: z.ZodArray<z.ZodObject<{
|
|
11574
|
+
currency: z.ZodString;
|
|
11575
|
+
amountNanos: z.ZodString;
|
|
11576
|
+
}, "strip", z.ZodTypeAny, {
|
|
11577
|
+
currency: string;
|
|
11578
|
+
amountNanos: string;
|
|
11579
|
+
}, {
|
|
11580
|
+
currency: string;
|
|
11581
|
+
amountNanos: string;
|
|
11582
|
+
}>, "many">;
|
|
11583
|
+
ratedCallCount: z.ZodNumber;
|
|
11584
|
+
unpriceableCallCount: z.ZodNumber;
|
|
11585
|
+
unvaluedCallCount: z.ZodNumber;
|
|
11586
|
+
}, "strip", z.ZodTypeAny, {
|
|
11587
|
+
amounts: {
|
|
11588
|
+
currency: string;
|
|
11589
|
+
amountNanos: string;
|
|
11590
|
+
}[];
|
|
11591
|
+
ratedCallCount: number;
|
|
11592
|
+
unpriceableCallCount: number;
|
|
11593
|
+
unvaluedCallCount: number;
|
|
11594
|
+
}, {
|
|
11595
|
+
amounts: {
|
|
11596
|
+
currency: string;
|
|
11597
|
+
amountNanos: string;
|
|
11598
|
+
}[];
|
|
11599
|
+
ratedCallCount: number;
|
|
11600
|
+
unpriceableCallCount: number;
|
|
11601
|
+
unvaluedCallCount: number;
|
|
11602
|
+
}>>;
|
|
11603
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11604
|
+
code: z.ZodEnum<["step_limit_reached", "output_limit_reached"]>;
|
|
11605
|
+
severity: z.ZodEnum<["warning", "error"]>;
|
|
11606
|
+
scope: z.ZodEnum<["run"]>;
|
|
11607
|
+
message: z.ZodString;
|
|
11608
|
+
}, "strip", z.ZodTypeAny, {
|
|
11609
|
+
code: "step_limit_reached" | "output_limit_reached";
|
|
11610
|
+
message: string;
|
|
11611
|
+
severity: "error" | "warning";
|
|
11612
|
+
scope: "run";
|
|
11613
|
+
}, {
|
|
11614
|
+
code: "step_limit_reached" | "output_limit_reached";
|
|
11615
|
+
message: string;
|
|
11616
|
+
severity: "error" | "warning";
|
|
11617
|
+
scope: "run";
|
|
11618
|
+
}>, "many">>;
|
|
11619
|
+
error: z.ZodOptional<z.ZodType<SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
|
|
11620
|
+
attempt: z.ZodNumber;
|
|
11621
|
+
streamId: z.ZodString;
|
|
11622
|
+
createdAt: z.ZodString;
|
|
11623
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
11624
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
11625
|
+
}, "strip", z.ZodTypeAny, {
|
|
11626
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
11627
|
+
projectId: string;
|
|
11628
|
+
id: string;
|
|
11629
|
+
kind: "conversation" | "subagent";
|
|
11630
|
+
threadId: string;
|
|
11631
|
+
createdAt: string;
|
|
11632
|
+
attempt: number;
|
|
11633
|
+
triggerMessageId: string;
|
|
11634
|
+
streamId: string;
|
|
11635
|
+
error?: SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
11636
|
+
model?: {
|
|
11637
|
+
modelId: string;
|
|
11638
|
+
provider: string;
|
|
11639
|
+
} | undefined;
|
|
11640
|
+
requestedBy?: {
|
|
11641
|
+
id: string;
|
|
11642
|
+
type: "user" | "serviceAccount";
|
|
11643
|
+
} | undefined;
|
|
11644
|
+
modelId?: string | undefined;
|
|
11645
|
+
startedAt?: string | undefined;
|
|
11646
|
+
completedAt?: string | undefined;
|
|
11647
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
11648
|
+
tier?: "light" | "standard" | "heavy" | undefined;
|
|
11649
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
11650
|
+
budgetTokens: number;
|
|
11651
|
+
} | undefined;
|
|
11652
|
+
usage?: {
|
|
11653
|
+
reportingStatus: "partial" | "complete" | "unavailable";
|
|
11654
|
+
inputTokens?: number | undefined;
|
|
11655
|
+
outputTokens?: number | undefined;
|
|
11656
|
+
totalTokens?: number | undefined;
|
|
11657
|
+
uncachedInputTokens?: number | undefined;
|
|
11658
|
+
cacheReadInputTokens?: number | undefined;
|
|
11659
|
+
cacheWriteInputTokens?: number | undefined;
|
|
11660
|
+
textOutputTokens?: number | undefined;
|
|
11661
|
+
reasoningOutputTokens?: number | undefined;
|
|
11662
|
+
audioDurationMs?: number | undefined;
|
|
11663
|
+
imageOutputTokens?: number | undefined;
|
|
11664
|
+
audioOutputTokens?: number | undefined;
|
|
11665
|
+
outputImages?: number | undefined;
|
|
11666
|
+
inputCharacters?: number | undefined;
|
|
11667
|
+
} | undefined;
|
|
11668
|
+
cost?: {
|
|
11669
|
+
amounts: {
|
|
11670
|
+
currency: string;
|
|
11671
|
+
amountNanos: string;
|
|
11672
|
+
}[];
|
|
11673
|
+
ratedCallCount: number;
|
|
11674
|
+
unpriceableCallCount: number;
|
|
11675
|
+
unvaluedCallCount: number;
|
|
11676
|
+
} | undefined;
|
|
11677
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
11678
|
+
parentRunId?: string | undefined;
|
|
11679
|
+
computer?: {
|
|
11680
|
+
id: string;
|
|
11681
|
+
folder: string;
|
|
11682
|
+
} | undefined;
|
|
11683
|
+
runsOn?: "computer" | undefined;
|
|
11684
|
+
diagnostics?: {
|
|
11685
|
+
code: "step_limit_reached" | "output_limit_reached";
|
|
11686
|
+
message: string;
|
|
11687
|
+
severity: "error" | "warning";
|
|
11688
|
+
scope: "run";
|
|
11689
|
+
}[] | undefined;
|
|
11690
|
+
}, {
|
|
11691
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
11692
|
+
projectId: string;
|
|
11693
|
+
id: string;
|
|
11694
|
+
kind: "conversation" | "subagent";
|
|
11695
|
+
threadId: string;
|
|
11696
|
+
createdAt: string;
|
|
11697
|
+
attempt: number;
|
|
11698
|
+
triggerMessageId: string;
|
|
11699
|
+
streamId: string;
|
|
11700
|
+
error?: SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
11701
|
+
model?: {
|
|
11702
|
+
modelId: string;
|
|
11703
|
+
provider: string;
|
|
11704
|
+
} | undefined;
|
|
11705
|
+
requestedBy?: {
|
|
11706
|
+
id: string;
|
|
11707
|
+
type: "user" | "serviceAccount";
|
|
11708
|
+
} | undefined;
|
|
11709
|
+
modelId?: string | undefined;
|
|
11710
|
+
startedAt?: string | undefined;
|
|
11711
|
+
completedAt?: string | undefined;
|
|
11712
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
11713
|
+
tier?: "light" | "standard" | "heavy" | undefined;
|
|
11714
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
11715
|
+
budgetTokens: number;
|
|
11716
|
+
} | undefined;
|
|
11717
|
+
usage?: {
|
|
11718
|
+
reportingStatus: "partial" | "complete" | "unavailable";
|
|
11719
|
+
inputTokens?: number | undefined;
|
|
11720
|
+
outputTokens?: number | undefined;
|
|
11721
|
+
totalTokens?: number | undefined;
|
|
11722
|
+
uncachedInputTokens?: number | undefined;
|
|
11723
|
+
cacheReadInputTokens?: number | undefined;
|
|
11724
|
+
cacheWriteInputTokens?: number | undefined;
|
|
11725
|
+
textOutputTokens?: number | undefined;
|
|
11726
|
+
reasoningOutputTokens?: number | undefined;
|
|
11727
|
+
audioDurationMs?: number | undefined;
|
|
11728
|
+
imageOutputTokens?: number | undefined;
|
|
11729
|
+
audioOutputTokens?: number | undefined;
|
|
11730
|
+
outputImages?: number | undefined;
|
|
11731
|
+
inputCharacters?: number | undefined;
|
|
11732
|
+
} | undefined;
|
|
11733
|
+
cost?: {
|
|
11734
|
+
amounts: {
|
|
11735
|
+
currency: string;
|
|
11736
|
+
amountNanos: string;
|
|
11737
|
+
}[];
|
|
11738
|
+
ratedCallCount: number;
|
|
11739
|
+
unpriceableCallCount: number;
|
|
11740
|
+
unvaluedCallCount: number;
|
|
11741
|
+
} | undefined;
|
|
11742
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
11743
|
+
parentRunId?: string | undefined;
|
|
11744
|
+
computer?: {
|
|
11745
|
+
id: string;
|
|
11746
|
+
folder: string;
|
|
11747
|
+
} | undefined;
|
|
11748
|
+
runsOn?: "computer" | undefined;
|
|
11749
|
+
diagnostics?: {
|
|
11750
|
+
code: "step_limit_reached" | "output_limit_reached";
|
|
11751
|
+
message: string;
|
|
11752
|
+
severity: "error" | "warning";
|
|
11753
|
+
scope: "run";
|
|
11754
|
+
}[] | undefined;
|
|
11755
|
+
}>>;
|
|
11756
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
11757
|
+
id: z.ZodString;
|
|
11758
|
+
projectId: z.ZodString;
|
|
11759
|
+
threadId: z.ZodString;
|
|
11760
|
+
/** The id its message takes once a turn writes it. */
|
|
11761
|
+
messageId: z.ZodString;
|
|
11762
|
+
seq: z.ZodNumber;
|
|
11763
|
+
authorPrincipal: z.ZodObject<{
|
|
11764
|
+
type: z.ZodEnum<["user", "serviceAccount", "system"]>;
|
|
11765
|
+
id: z.ZodString;
|
|
11766
|
+
}, "strip", z.ZodTypeAny, {
|
|
11767
|
+
id: string;
|
|
11768
|
+
type: "user" | "serviceAccount" | "system";
|
|
11769
|
+
}, {
|
|
11770
|
+
id: string;
|
|
11771
|
+
type: "user" | "serviceAccount" | "system";
|
|
11772
|
+
}>;
|
|
11773
|
+
mode: z.ZodEnum<["steer", "queue"]>;
|
|
11774
|
+
parts: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
11775
|
+
type: z.ZodLiteral<"text">;
|
|
11776
|
+
text: z.ZodString;
|
|
11777
|
+
providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
11778
|
+
}, "strip", z.ZodTypeAny, {
|
|
11779
|
+
type: "text";
|
|
11780
|
+
text: string;
|
|
11781
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
11782
|
+
}, {
|
|
11783
|
+
type: "text";
|
|
11784
|
+
text: string;
|
|
11785
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
11786
|
+
}>, z.ZodObject<{
|
|
11787
|
+
type: z.ZodLiteral<"continuation">;
|
|
11788
|
+
}, "strip", z.ZodTypeAny, {
|
|
11789
|
+
type: "continuation";
|
|
11790
|
+
}, {
|
|
11791
|
+
type: "continuation";
|
|
11792
|
+
}>, z.ZodObject<{
|
|
11793
|
+
type: z.ZodLiteral<"approval-outcome">;
|
|
11794
|
+
approvalId: z.ZodString;
|
|
11795
|
+
status: z.ZodEnum<["approved", "denied", "cancelled", "superseded", "expired"]>;
|
|
11796
|
+
call: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
11797
|
+
kind: z.ZodLiteral<"action">;
|
|
11798
|
+
actionId: z.ZodString;
|
|
11799
|
+
subject: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
11800
|
+
kind: z.ZodLiteral<"none">;
|
|
11801
|
+
}, "strip", z.ZodTypeAny, {
|
|
11802
|
+
kind: "none";
|
|
11803
|
+
}, {
|
|
11804
|
+
kind: "none";
|
|
11805
|
+
}>, z.ZodObject<{
|
|
11806
|
+
kind: z.ZodLiteral<"object">;
|
|
11807
|
+
objectTypeId: z.ZodString;
|
|
11808
|
+
primaryId: z.ZodString;
|
|
11809
|
+
}, "strip", z.ZodTypeAny, {
|
|
11810
|
+
kind: "object";
|
|
11811
|
+
objectTypeId: string;
|
|
11812
|
+
primaryId: string;
|
|
11813
|
+
}, {
|
|
11814
|
+
kind: "object";
|
|
11815
|
+
objectTypeId: string;
|
|
11816
|
+
primaryId: string;
|
|
11817
|
+
}>]>;
|
|
11818
|
+
}, "strip", z.ZodTypeAny, {
|
|
11819
|
+
kind: "action";
|
|
11820
|
+
actionId: string;
|
|
11821
|
+
subject: {
|
|
11822
|
+
kind: "none";
|
|
11823
|
+
} | {
|
|
11824
|
+
kind: "object";
|
|
11825
|
+
objectTypeId: string;
|
|
11826
|
+
primaryId: string;
|
|
11827
|
+
};
|
|
11828
|
+
}, {
|
|
11829
|
+
kind: "action";
|
|
11830
|
+
actionId: string;
|
|
11831
|
+
subject: {
|
|
11832
|
+
kind: "none";
|
|
11833
|
+
} | {
|
|
11834
|
+
kind: "object";
|
|
11835
|
+
objectTypeId: string;
|
|
11836
|
+
primaryId: string;
|
|
11837
|
+
};
|
|
11838
|
+
}>, z.ZodObject<{
|
|
11839
|
+
kind: z.ZodLiteral<"workflow">;
|
|
11840
|
+
workflowId: z.ZodString;
|
|
11841
|
+
}, "strip", z.ZodTypeAny, {
|
|
11842
|
+
kind: "workflow";
|
|
11843
|
+
workflowId: string;
|
|
11844
|
+
}, {
|
|
11845
|
+
kind: "workflow";
|
|
11846
|
+
workflowId: string;
|
|
11847
|
+
}>]>;
|
|
11848
|
+
outcome: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
11849
|
+
kind: z.ZodLiteral<"action-run">;
|
|
11850
|
+
runId: z.ZodString;
|
|
11851
|
+
status: z.ZodEnum<["succeeded", "failed"]>;
|
|
11852
|
+
error: z.ZodOptional<z.ZodType<import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">, z.ZodTypeDef, import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit">>>;
|
|
11853
|
+
}, "strip", z.ZodTypeAny, {
|
|
11854
|
+
status: "succeeded" | "failed";
|
|
11855
|
+
kind: "action-run";
|
|
11856
|
+
runId: string;
|
|
11857
|
+
error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
11858
|
+
}, {
|
|
11859
|
+
status: "succeeded" | "failed";
|
|
11860
|
+
kind: "action-run";
|
|
11861
|
+
runId: string;
|
|
11862
|
+
error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
11863
|
+
}>, z.ZodObject<{
|
|
11864
|
+
kind: z.ZodLiteral<"workflow-run">;
|
|
11865
|
+
runId: z.ZodString;
|
|
11866
|
+
queuedAt: z.ZodString;
|
|
11867
|
+
}, "strip", z.ZodTypeAny, {
|
|
11868
|
+
kind: "workflow-run";
|
|
11869
|
+
runId: string;
|
|
11870
|
+
queuedAt: string;
|
|
11871
|
+
}, {
|
|
11872
|
+
kind: "workflow-run";
|
|
11873
|
+
runId: string;
|
|
11874
|
+
queuedAt: string;
|
|
11875
|
+
}>, z.ZodObject<{
|
|
11876
|
+
kind: z.ZodLiteral<"error">;
|
|
11877
|
+
error: z.ZodObject<{
|
|
11878
|
+
code: z.ZodEnum<["action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed", ...("action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed")[]]>;
|
|
11879
|
+
message: z.ZodString;
|
|
11880
|
+
retryable: z.ZodBoolean;
|
|
11881
|
+
at: z.ZodString;
|
|
11882
|
+
details: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
11883
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
11884
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
11885
|
+
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
11886
|
+
}, "strip", z.ZodTypeAny, {
|
|
11887
|
+
at: string;
|
|
11888
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
11889
|
+
message: string;
|
|
11890
|
+
retryable: boolean;
|
|
11891
|
+
details?: import("./common").JsonValue | undefined;
|
|
11892
|
+
httpStatus?: number | undefined;
|
|
11893
|
+
redacted?: true | undefined;
|
|
11894
|
+
truncated?: true | undefined;
|
|
11895
|
+
}, {
|
|
11896
|
+
at: string;
|
|
11897
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
11898
|
+
message: string;
|
|
11899
|
+
retryable: boolean;
|
|
11900
|
+
details?: import("./common").JsonValue | undefined;
|
|
11901
|
+
httpStatus?: number | undefined;
|
|
11902
|
+
redacted?: true | undefined;
|
|
11903
|
+
truncated?: true | undefined;
|
|
11904
|
+
}>;
|
|
11905
|
+
}, "strip", z.ZodTypeAny, {
|
|
11906
|
+
error: {
|
|
11907
|
+
at: string;
|
|
11908
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
11909
|
+
message: string;
|
|
11910
|
+
retryable: boolean;
|
|
11911
|
+
details?: import("./common").JsonValue | undefined;
|
|
11912
|
+
httpStatus?: number | undefined;
|
|
11913
|
+
redacted?: true | undefined;
|
|
11914
|
+
truncated?: true | undefined;
|
|
11915
|
+
};
|
|
11916
|
+
kind: "error";
|
|
11917
|
+
}, {
|
|
11918
|
+
error: {
|
|
11919
|
+
at: string;
|
|
11920
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
11921
|
+
message: string;
|
|
11922
|
+
retryable: boolean;
|
|
11923
|
+
details?: import("./common").JsonValue | undefined;
|
|
11924
|
+
httpStatus?: number | undefined;
|
|
11925
|
+
redacted?: true | undefined;
|
|
11926
|
+
truncated?: true | undefined;
|
|
11927
|
+
};
|
|
11928
|
+
kind: "error";
|
|
11929
|
+
}>]>>;
|
|
11930
|
+
/** The turn's sub-agent that made the call, when the turn did not make it itself. */
|
|
11931
|
+
caller: z.ZodOptional<z.ZodObject<{
|
|
11932
|
+
runId: z.ZodString;
|
|
11933
|
+
key: z.ZodString;
|
|
11934
|
+
/** The message resumed the turn and the sub-agent, paused on its calls, went on. */
|
|
11935
|
+
continues: z.ZodOptional<z.ZodLiteral<true>>;
|
|
11936
|
+
}, "strip", z.ZodTypeAny, {
|
|
11937
|
+
runId: string;
|
|
11938
|
+
key: string;
|
|
11939
|
+
continues?: true | undefined;
|
|
11940
|
+
}, {
|
|
11941
|
+
runId: string;
|
|
11942
|
+
key: string;
|
|
11943
|
+
continues?: true | undefined;
|
|
11944
|
+
}>>;
|
|
11945
|
+
}, "strip", z.ZodTypeAny, {
|
|
11946
|
+
status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
|
|
11947
|
+
type: "approval-outcome";
|
|
11948
|
+
call: {
|
|
11949
|
+
kind: "action";
|
|
11950
|
+
actionId: string;
|
|
11951
|
+
subject: {
|
|
11952
|
+
kind: "none";
|
|
11953
|
+
} | {
|
|
11954
|
+
kind: "object";
|
|
11955
|
+
objectTypeId: string;
|
|
11956
|
+
primaryId: string;
|
|
11957
|
+
};
|
|
11958
|
+
} | {
|
|
11959
|
+
kind: "workflow";
|
|
11960
|
+
workflowId: string;
|
|
11961
|
+
};
|
|
11962
|
+
approvalId: string;
|
|
11963
|
+
caller?: {
|
|
11964
|
+
runId: string;
|
|
11965
|
+
key: string;
|
|
11966
|
+
continues?: true | undefined;
|
|
11967
|
+
} | undefined;
|
|
11968
|
+
outcome?: {
|
|
11969
|
+
status: "succeeded" | "failed";
|
|
11970
|
+
kind: "action-run";
|
|
11971
|
+
runId: string;
|
|
11972
|
+
error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
11973
|
+
} | {
|
|
11974
|
+
kind: "workflow-run";
|
|
11975
|
+
runId: string;
|
|
11976
|
+
queuedAt: string;
|
|
11977
|
+
} | {
|
|
11978
|
+
error: {
|
|
11979
|
+
at: string;
|
|
11980
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
11981
|
+
message: string;
|
|
11982
|
+
retryable: boolean;
|
|
11983
|
+
details?: import("./common").JsonValue | undefined;
|
|
11984
|
+
httpStatus?: number | undefined;
|
|
11985
|
+
redacted?: true | undefined;
|
|
11986
|
+
truncated?: true | undefined;
|
|
11987
|
+
};
|
|
11988
|
+
kind: "error";
|
|
11989
|
+
} | undefined;
|
|
11990
|
+
}, {
|
|
11991
|
+
status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
|
|
11992
|
+
type: "approval-outcome";
|
|
11993
|
+
call: {
|
|
11994
|
+
kind: "action";
|
|
11995
|
+
actionId: string;
|
|
11996
|
+
subject: {
|
|
11997
|
+
kind: "none";
|
|
11998
|
+
} | {
|
|
11999
|
+
kind: "object";
|
|
12000
|
+
objectTypeId: string;
|
|
12001
|
+
primaryId: string;
|
|
12002
|
+
};
|
|
12003
|
+
} | {
|
|
12004
|
+
kind: "workflow";
|
|
12005
|
+
workflowId: string;
|
|
12006
|
+
};
|
|
12007
|
+
approvalId: string;
|
|
12008
|
+
caller?: {
|
|
12009
|
+
runId: string;
|
|
12010
|
+
key: string;
|
|
12011
|
+
continues?: true | undefined;
|
|
12012
|
+
} | undefined;
|
|
12013
|
+
outcome?: {
|
|
12014
|
+
status: "succeeded" | "failed";
|
|
12015
|
+
kind: "action-run";
|
|
12016
|
+
runId: string;
|
|
12017
|
+
error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
12018
|
+
} | {
|
|
12019
|
+
kind: "workflow-run";
|
|
12020
|
+
runId: string;
|
|
12021
|
+
queuedAt: string;
|
|
12022
|
+
} | {
|
|
12023
|
+
error: {
|
|
12024
|
+
at: string;
|
|
12025
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
12026
|
+
message: string;
|
|
12027
|
+
retryable: boolean;
|
|
12028
|
+
details?: import("./common").JsonValue | undefined;
|
|
12029
|
+
httpStatus?: number | undefined;
|
|
12030
|
+
redacted?: true | undefined;
|
|
12031
|
+
truncated?: true | undefined;
|
|
12032
|
+
};
|
|
12033
|
+
kind: "error";
|
|
12034
|
+
} | undefined;
|
|
12035
|
+
}>, z.ZodObject<{
|
|
12036
|
+
type: z.ZodLiteral<"reasoning">;
|
|
12037
|
+
text: z.ZodString;
|
|
12038
|
+
providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
12039
|
+
}, "strip", z.ZodTypeAny, {
|
|
12040
|
+
type: "reasoning";
|
|
12041
|
+
text: string;
|
|
12042
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12043
|
+
}, {
|
|
12044
|
+
type: "reasoning";
|
|
12045
|
+
text: string;
|
|
12046
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12047
|
+
}>, z.ZodObject<{
|
|
12048
|
+
type: z.ZodLiteral<"step-start">;
|
|
12049
|
+
}, "strip", z.ZodTypeAny, {
|
|
12050
|
+
type: "step-start";
|
|
12051
|
+
}, {
|
|
12052
|
+
type: "step-start";
|
|
12053
|
+
}>, z.ZodObject<{
|
|
12054
|
+
type: z.ZodLiteral<"file">;
|
|
12055
|
+
fileRef: z.ZodObject<{
|
|
12056
|
+
blobId: z.ZodString;
|
|
12057
|
+
digest: z.ZodString;
|
|
12058
|
+
sizeBytes: z.ZodNumber;
|
|
12059
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
12060
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
12061
|
+
logicalPath: z.ZodOptional<z.ZodString>;
|
|
12062
|
+
}, "strip", z.ZodTypeAny, {
|
|
12063
|
+
blobId: string;
|
|
12064
|
+
digest: string;
|
|
12065
|
+
sizeBytes: number;
|
|
12066
|
+
fileName?: string | undefined;
|
|
12067
|
+
mediaType?: string | undefined;
|
|
12068
|
+
logicalPath?: string | undefined;
|
|
12069
|
+
}, {
|
|
12070
|
+
blobId: string;
|
|
12071
|
+
digest: string;
|
|
12072
|
+
sizeBytes: number;
|
|
12073
|
+
fileName?: string | undefined;
|
|
12074
|
+
mediaType?: string | undefined;
|
|
12075
|
+
logicalPath?: string | undefined;
|
|
12076
|
+
}>;
|
|
12077
|
+
providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
12078
|
+
}, "strip", z.ZodTypeAny, {
|
|
12079
|
+
type: "file";
|
|
12080
|
+
fileRef: {
|
|
12081
|
+
blobId: string;
|
|
12082
|
+
digest: string;
|
|
12083
|
+
sizeBytes: number;
|
|
12084
|
+
fileName?: string | undefined;
|
|
12085
|
+
mediaType?: string | undefined;
|
|
12086
|
+
logicalPath?: string | undefined;
|
|
12087
|
+
};
|
|
12088
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12089
|
+
}, {
|
|
12090
|
+
type: "file";
|
|
12091
|
+
fileRef: {
|
|
12092
|
+
blobId: string;
|
|
12093
|
+
digest: string;
|
|
12094
|
+
sizeBytes: number;
|
|
12095
|
+
fileName?: string | undefined;
|
|
12096
|
+
mediaType?: string | undefined;
|
|
12097
|
+
logicalPath?: string | undefined;
|
|
12098
|
+
};
|
|
12099
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12100
|
+
}>, z.ZodObject<{
|
|
12101
|
+
type: z.ZodLiteral<"provider-state">;
|
|
12102
|
+
providerId: z.ZodString;
|
|
12103
|
+
data: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
12104
|
+
}, "strip", z.ZodTypeAny, {
|
|
12105
|
+
type: "provider-state";
|
|
12106
|
+
providerId: string;
|
|
12107
|
+
data: import("./common").JsonValue;
|
|
12108
|
+
}, {
|
|
12109
|
+
type: "provider-state";
|
|
12110
|
+
providerId: string;
|
|
12111
|
+
data: import("./common").JsonValue;
|
|
12112
|
+
}>, z.ZodObject<{
|
|
12113
|
+
context: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
12114
|
+
kind: z.ZodLiteral<"object">;
|
|
12115
|
+
ref: z.ZodObject<{
|
|
12116
|
+
objectTypeId: z.ZodString;
|
|
12117
|
+
primaryId: z.ZodString;
|
|
12118
|
+
}, "strip", z.ZodTypeAny, {
|
|
12119
|
+
objectTypeId: string;
|
|
12120
|
+
primaryId: string;
|
|
12121
|
+
}, {
|
|
12122
|
+
objectTypeId: string;
|
|
12123
|
+
primaryId: string;
|
|
12124
|
+
}>;
|
|
12125
|
+
label: z.ZodOptional<z.ZodString>;
|
|
12126
|
+
}, "strip", z.ZodTypeAny, {
|
|
12127
|
+
kind: "object";
|
|
12128
|
+
ref: {
|
|
12129
|
+
objectTypeId: string;
|
|
12130
|
+
primaryId: string;
|
|
12131
|
+
};
|
|
12132
|
+
label?: string | undefined;
|
|
12133
|
+
}, {
|
|
12134
|
+
kind: "object";
|
|
12135
|
+
ref: {
|
|
12136
|
+
objectTypeId: string;
|
|
12137
|
+
primaryId: string;
|
|
12138
|
+
};
|
|
12139
|
+
label?: string | undefined;
|
|
12140
|
+
}>, z.ZodObject<{
|
|
12141
|
+
kind: z.ZodLiteral<"app-state">;
|
|
12142
|
+
id: z.ZodString;
|
|
12143
|
+
label: z.ZodString;
|
|
12144
|
+
description: z.ZodString;
|
|
12145
|
+
value: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
12146
|
+
}, "strip", z.ZodTypeAny, {
|
|
12147
|
+
id: string;
|
|
12148
|
+
kind: "app-state";
|
|
12149
|
+
value: import("./common").JsonValue;
|
|
12150
|
+
description: string;
|
|
12151
|
+
label: string;
|
|
12152
|
+
}, {
|
|
12153
|
+
id: string;
|
|
12154
|
+
kind: "app-state";
|
|
12155
|
+
value: import("./common").JsonValue;
|
|
12156
|
+
description: string;
|
|
12157
|
+
label: string;
|
|
12158
|
+
}>]>;
|
|
12159
|
+
origin: z.ZodEnum<["ambient", "explicit"]>;
|
|
12160
|
+
} & {
|
|
12161
|
+
type: z.ZodLiteral<"context">;
|
|
12162
|
+
}, "strip", z.ZodTypeAny, {
|
|
12163
|
+
origin: "ambient" | "explicit";
|
|
12164
|
+
context: {
|
|
12165
|
+
kind: "object";
|
|
12166
|
+
ref: {
|
|
12167
|
+
objectTypeId: string;
|
|
12168
|
+
primaryId: string;
|
|
12169
|
+
};
|
|
12170
|
+
label?: string | undefined;
|
|
12171
|
+
} | {
|
|
12172
|
+
id: string;
|
|
12173
|
+
kind: "app-state";
|
|
12174
|
+
value: import("./common").JsonValue;
|
|
12175
|
+
description: string;
|
|
12176
|
+
label: string;
|
|
12177
|
+
};
|
|
12178
|
+
type: "context";
|
|
12179
|
+
}, {
|
|
12180
|
+
origin: "ambient" | "explicit";
|
|
12181
|
+
context: {
|
|
12182
|
+
kind: "object";
|
|
12183
|
+
ref: {
|
|
12184
|
+
objectTypeId: string;
|
|
12185
|
+
primaryId: string;
|
|
12186
|
+
};
|
|
12187
|
+
label?: string | undefined;
|
|
12188
|
+
} | {
|
|
12189
|
+
id: string;
|
|
12190
|
+
kind: "app-state";
|
|
12191
|
+
value: import("./common").JsonValue;
|
|
12192
|
+
description: string;
|
|
12193
|
+
label: string;
|
|
12194
|
+
};
|
|
12195
|
+
type: "context";
|
|
12196
|
+
}>, z.ZodObject<{
|
|
12197
|
+
type: z.ZodLiteral<"tool-call">;
|
|
12198
|
+
toolCallId: z.ZodString;
|
|
12199
|
+
toolName: z.ZodString;
|
|
12200
|
+
dynamic: z.ZodOptional<z.ZodBoolean>;
|
|
12201
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
12202
|
+
input: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
12203
|
+
providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
12204
|
+
} & {
|
|
12205
|
+
state: z.ZodLiteral<"output-available">;
|
|
12206
|
+
output: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
12207
|
+
/**
|
|
12208
|
+
* The whole output, when it was too large for the model's context: `output` is then a bounded
|
|
12209
|
+
* copy. Its content is served at `/parts/<index>/outputFile/fileRef` of the message.
|
|
12210
|
+
*/
|
|
12211
|
+
outputFile: z.ZodOptional<z.ZodObject<{
|
|
12212
|
+
fileRef: z.ZodObject<{
|
|
12213
|
+
blobId: z.ZodString;
|
|
12214
|
+
digest: z.ZodString;
|
|
12215
|
+
sizeBytes: z.ZodNumber;
|
|
12216
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
12217
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
12218
|
+
logicalPath: z.ZodOptional<z.ZodString>;
|
|
12219
|
+
}, "strip", z.ZodTypeAny, {
|
|
12220
|
+
blobId: string;
|
|
12221
|
+
digest: string;
|
|
12222
|
+
sizeBytes: number;
|
|
12223
|
+
fileName?: string | undefined;
|
|
12224
|
+
mediaType?: string | undefined;
|
|
12225
|
+
logicalPath?: string | undefined;
|
|
12226
|
+
}, {
|
|
12227
|
+
blobId: string;
|
|
12228
|
+
digest: string;
|
|
12229
|
+
sizeBytes: number;
|
|
12230
|
+
fileName?: string | undefined;
|
|
12231
|
+
mediaType?: string | undefined;
|
|
12232
|
+
logicalPath?: string | undefined;
|
|
12233
|
+
}>;
|
|
12234
|
+
path: z.ZodString;
|
|
12235
|
+
}, "strip", z.ZodTypeAny, {
|
|
12236
|
+
path: string;
|
|
12237
|
+
fileRef: {
|
|
12238
|
+
blobId: string;
|
|
12239
|
+
digest: string;
|
|
12240
|
+
sizeBytes: number;
|
|
12241
|
+
fileName?: string | undefined;
|
|
12242
|
+
mediaType?: string | undefined;
|
|
12243
|
+
logicalPath?: string | undefined;
|
|
12244
|
+
};
|
|
12245
|
+
}, {
|
|
12246
|
+
path: string;
|
|
12247
|
+
fileRef: {
|
|
12248
|
+
blobId: string;
|
|
12249
|
+
digest: string;
|
|
12250
|
+
sizeBytes: number;
|
|
12251
|
+
fileName?: string | undefined;
|
|
12252
|
+
mediaType?: string | undefined;
|
|
12253
|
+
logicalPath?: string | undefined;
|
|
12254
|
+
};
|
|
12255
|
+
}>>;
|
|
12256
|
+
}, "strip", z.ZodTypeAny, {
|
|
12257
|
+
type: "tool-call";
|
|
12258
|
+
input: import("./common").JsonValue;
|
|
12259
|
+
output: import("./common").JsonValue;
|
|
12260
|
+
toolCallId: string;
|
|
12261
|
+
toolName: string;
|
|
12262
|
+
state: "output-available";
|
|
12263
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12264
|
+
dynamic?: boolean | undefined;
|
|
12265
|
+
providerExecuted?: boolean | undefined;
|
|
12266
|
+
outputFile?: {
|
|
12267
|
+
path: string;
|
|
12268
|
+
fileRef: {
|
|
12269
|
+
blobId: string;
|
|
12270
|
+
digest: string;
|
|
12271
|
+
sizeBytes: number;
|
|
12272
|
+
fileName?: string | undefined;
|
|
12273
|
+
mediaType?: string | undefined;
|
|
12274
|
+
logicalPath?: string | undefined;
|
|
12275
|
+
};
|
|
12276
|
+
} | undefined;
|
|
12277
|
+
}, {
|
|
12278
|
+
type: "tool-call";
|
|
12279
|
+
input: import("./common").JsonValue;
|
|
12280
|
+
output: import("./common").JsonValue;
|
|
12281
|
+
toolCallId: string;
|
|
12282
|
+
toolName: string;
|
|
12283
|
+
state: "output-available";
|
|
12284
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12285
|
+
dynamic?: boolean | undefined;
|
|
12286
|
+
providerExecuted?: boolean | undefined;
|
|
12287
|
+
outputFile?: {
|
|
12288
|
+
path: string;
|
|
12289
|
+
fileRef: {
|
|
12290
|
+
blobId: string;
|
|
12291
|
+
digest: string;
|
|
12292
|
+
sizeBytes: number;
|
|
12293
|
+
fileName?: string | undefined;
|
|
12294
|
+
mediaType?: string | undefined;
|
|
12295
|
+
logicalPath?: string | undefined;
|
|
12296
|
+
};
|
|
12297
|
+
} | undefined;
|
|
12298
|
+
}>, z.ZodObject<{
|
|
12299
|
+
type: z.ZodLiteral<"tool-call">;
|
|
12300
|
+
toolCallId: z.ZodString;
|
|
12301
|
+
toolName: z.ZodString;
|
|
12302
|
+
dynamic: z.ZodOptional<z.ZodBoolean>;
|
|
12303
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
12304
|
+
input: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
|
|
12305
|
+
providerMetadata: z.ZodOptional<z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>>;
|
|
12306
|
+
} & {
|
|
12307
|
+
state: z.ZodLiteral<"output-error">;
|
|
12308
|
+
errorText: z.ZodString;
|
|
12309
|
+
}, "strip", z.ZodTypeAny, {
|
|
12310
|
+
type: "tool-call";
|
|
12311
|
+
input: import("./common").JsonValue;
|
|
12312
|
+
toolCallId: string;
|
|
12313
|
+
toolName: string;
|
|
12314
|
+
state: "output-error";
|
|
12315
|
+
errorText: string;
|
|
12316
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12317
|
+
dynamic?: boolean | undefined;
|
|
12318
|
+
providerExecuted?: boolean | undefined;
|
|
12319
|
+
}, {
|
|
12320
|
+
type: "tool-call";
|
|
12321
|
+
input: import("./common").JsonValue;
|
|
12322
|
+
toolCallId: string;
|
|
12323
|
+
toolName: string;
|
|
12324
|
+
state: "output-error";
|
|
12325
|
+
errorText: string;
|
|
12326
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12327
|
+
dynamic?: boolean | undefined;
|
|
12328
|
+
providerExecuted?: boolean | undefined;
|
|
12329
|
+
}>, z.ZodObject<{
|
|
12330
|
+
type: z.ZodLiteral<"mail">;
|
|
12331
|
+
id: z.ZodString;
|
|
12332
|
+
from: z.ZodLiteral<"parent">;
|
|
12333
|
+
kind: z.ZodEnum<["message", "answer"]>;
|
|
12334
|
+
inReplyTo: z.ZodOptional<z.ZodString>;
|
|
12335
|
+
text: z.ZodString;
|
|
12336
|
+
/** It came as the sub-agent answered, so it wrote its result again. */
|
|
12337
|
+
afterAnswer: z.ZodOptional<z.ZodLiteral<true>>;
|
|
12338
|
+
}, "strip", z.ZodTypeAny, {
|
|
12339
|
+
id: string;
|
|
12340
|
+
kind: "message" | "answer";
|
|
12341
|
+
type: "mail";
|
|
12342
|
+
text: string;
|
|
12343
|
+
from: "parent";
|
|
12344
|
+
inReplyTo?: string | undefined;
|
|
12345
|
+
afterAnswer?: true | undefined;
|
|
12346
|
+
}, {
|
|
12347
|
+
id: string;
|
|
12348
|
+
kind: "message" | "answer";
|
|
12349
|
+
type: "mail";
|
|
12350
|
+
text: string;
|
|
12351
|
+
from: "parent";
|
|
12352
|
+
inReplyTo?: string | undefined;
|
|
12353
|
+
afterAnswer?: true | undefined;
|
|
12354
|
+
}>]>, "many">;
|
|
12355
|
+
spec: z.ZodOptional<z.ZodObject<{
|
|
12356
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
12357
|
+
provider: z.ZodString;
|
|
12358
|
+
modelId: z.ZodString;
|
|
12359
|
+
}, "strip", z.ZodTypeAny, {
|
|
12360
|
+
modelId: string;
|
|
12361
|
+
provider: string;
|
|
12362
|
+
}, {
|
|
12363
|
+
modelId: string;
|
|
12364
|
+
provider: string;
|
|
12365
|
+
}>>;
|
|
12366
|
+
reasoning: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
|
|
12367
|
+
budgetTokens: z.ZodNumber;
|
|
12368
|
+
}, "strict", z.ZodTypeAny, {
|
|
12369
|
+
budgetTokens: number;
|
|
12370
|
+
}, {
|
|
12371
|
+
budgetTokens: number;
|
|
12372
|
+
}>]>>;
|
|
12373
|
+
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
12374
|
+
}, "strip", z.ZodTypeAny, {
|
|
12375
|
+
model?: {
|
|
12376
|
+
modelId: string;
|
|
12377
|
+
provider: string;
|
|
12378
|
+
} | undefined;
|
|
12379
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
12380
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
12381
|
+
budgetTokens: number;
|
|
12382
|
+
} | undefined;
|
|
12383
|
+
}, {
|
|
12384
|
+
model?: {
|
|
12385
|
+
modelId: string;
|
|
12386
|
+
provider: string;
|
|
12387
|
+
} | undefined;
|
|
12388
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
12389
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
12390
|
+
budgetTokens: number;
|
|
12391
|
+
} | undefined;
|
|
12392
|
+
}>>;
|
|
12393
|
+
/** The time zone and locale its message was sent in, which its time renders in. */
|
|
12394
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
12395
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
12396
|
+
/** Sent now: it starts even when the turn it waited for ended without answering. */
|
|
12397
|
+
immediate: z.ZodOptional<z.ZodBoolean>;
|
|
12398
|
+
/** An edit waiting for the turn it stopped: the message it replaces once that turn ends. */
|
|
12399
|
+
replacesMessageId: z.ZodOptional<z.ZodString>;
|
|
12400
|
+
createdAt: z.ZodString;
|
|
12401
|
+
updatedAt: z.ZodString;
|
|
12402
|
+
}, "strip", z.ZodTypeAny, {
|
|
12403
|
+
projectId: string;
|
|
12404
|
+
id: string;
|
|
12405
|
+
mode: "steer" | "queue";
|
|
12406
|
+
threadId: string;
|
|
12407
|
+
createdAt: string;
|
|
12408
|
+
parts: ({
|
|
12409
|
+
origin: "ambient" | "explicit";
|
|
12410
|
+
context: {
|
|
12411
|
+
kind: "object";
|
|
12412
|
+
ref: {
|
|
12413
|
+
objectTypeId: string;
|
|
12414
|
+
primaryId: string;
|
|
12415
|
+
};
|
|
12416
|
+
label?: string | undefined;
|
|
12417
|
+
} | {
|
|
12418
|
+
id: string;
|
|
12419
|
+
kind: "app-state";
|
|
12420
|
+
value: import("./common").JsonValue;
|
|
12421
|
+
description: string;
|
|
12422
|
+
label: string;
|
|
12423
|
+
};
|
|
12424
|
+
type: "context";
|
|
12425
|
+
} | {
|
|
12426
|
+
type: "text";
|
|
12427
|
+
text: string;
|
|
12428
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12429
|
+
} | {
|
|
12430
|
+
type: "reasoning";
|
|
12431
|
+
text: string;
|
|
12432
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12433
|
+
} | {
|
|
12434
|
+
type: "step-start";
|
|
12435
|
+
} | {
|
|
12436
|
+
type: "file";
|
|
12437
|
+
fileRef: {
|
|
12438
|
+
blobId: string;
|
|
12439
|
+
digest: string;
|
|
12440
|
+
sizeBytes: number;
|
|
12441
|
+
fileName?: string | undefined;
|
|
12442
|
+
mediaType?: string | undefined;
|
|
12443
|
+
logicalPath?: string | undefined;
|
|
12444
|
+
};
|
|
12445
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12446
|
+
} | {
|
|
12447
|
+
type: "provider-state";
|
|
12448
|
+
providerId: string;
|
|
12449
|
+
data: import("./common").JsonValue;
|
|
12450
|
+
} | {
|
|
12451
|
+
type: "tool-call";
|
|
12452
|
+
input: import("./common").JsonValue;
|
|
12453
|
+
output: import("./common").JsonValue;
|
|
12454
|
+
toolCallId: string;
|
|
12455
|
+
toolName: string;
|
|
12456
|
+
state: "output-available";
|
|
12457
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12458
|
+
dynamic?: boolean | undefined;
|
|
12459
|
+
providerExecuted?: boolean | undefined;
|
|
12460
|
+
outputFile?: {
|
|
12461
|
+
path: string;
|
|
12462
|
+
fileRef: {
|
|
12463
|
+
blobId: string;
|
|
12464
|
+
digest: string;
|
|
12465
|
+
sizeBytes: number;
|
|
12466
|
+
fileName?: string | undefined;
|
|
12467
|
+
mediaType?: string | undefined;
|
|
12468
|
+
logicalPath?: string | undefined;
|
|
12469
|
+
};
|
|
12470
|
+
} | undefined;
|
|
12471
|
+
} | {
|
|
12472
|
+
type: "tool-call";
|
|
12473
|
+
input: import("./common").JsonValue;
|
|
12474
|
+
toolCallId: string;
|
|
12475
|
+
toolName: string;
|
|
12476
|
+
state: "output-error";
|
|
12477
|
+
errorText: string;
|
|
12478
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12479
|
+
dynamic?: boolean | undefined;
|
|
12480
|
+
providerExecuted?: boolean | undefined;
|
|
12481
|
+
} | {
|
|
12482
|
+
type: "continuation";
|
|
12483
|
+
} | {
|
|
12484
|
+
status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
|
|
12485
|
+
type: "approval-outcome";
|
|
12486
|
+
call: {
|
|
12487
|
+
kind: "action";
|
|
12488
|
+
actionId: string;
|
|
12489
|
+
subject: {
|
|
12490
|
+
kind: "none";
|
|
12491
|
+
} | {
|
|
12492
|
+
kind: "object";
|
|
12493
|
+
objectTypeId: string;
|
|
12494
|
+
primaryId: string;
|
|
12495
|
+
};
|
|
12496
|
+
} | {
|
|
12497
|
+
kind: "workflow";
|
|
12498
|
+
workflowId: string;
|
|
12499
|
+
};
|
|
12500
|
+
approvalId: string;
|
|
12501
|
+
caller?: {
|
|
12502
|
+
runId: string;
|
|
12503
|
+
key: string;
|
|
12504
|
+
continues?: true | undefined;
|
|
12505
|
+
} | undefined;
|
|
12506
|
+
outcome?: {
|
|
12507
|
+
status: "succeeded" | "failed";
|
|
12508
|
+
kind: "action-run";
|
|
12509
|
+
runId: string;
|
|
12510
|
+
error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
12511
|
+
} | {
|
|
12512
|
+
kind: "workflow-run";
|
|
12513
|
+
runId: string;
|
|
12514
|
+
queuedAt: string;
|
|
12515
|
+
} | {
|
|
12516
|
+
error: {
|
|
12517
|
+
at: string;
|
|
12518
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
12519
|
+
message: string;
|
|
12520
|
+
retryable: boolean;
|
|
12521
|
+
details?: import("./common").JsonValue | undefined;
|
|
12522
|
+
httpStatus?: number | undefined;
|
|
12523
|
+
redacted?: true | undefined;
|
|
12524
|
+
truncated?: true | undefined;
|
|
12525
|
+
};
|
|
12526
|
+
kind: "error";
|
|
12527
|
+
} | undefined;
|
|
12528
|
+
} | {
|
|
12529
|
+
id: string;
|
|
12530
|
+
kind: "message" | "answer";
|
|
12531
|
+
type: "mail";
|
|
12532
|
+
text: string;
|
|
12533
|
+
from: "parent";
|
|
12534
|
+
inReplyTo?: string | undefined;
|
|
12535
|
+
afterAnswer?: true | undefined;
|
|
12536
|
+
})[];
|
|
12537
|
+
messageId: string;
|
|
12538
|
+
updatedAt: string;
|
|
12539
|
+
authorPrincipal: {
|
|
12540
|
+
id: string;
|
|
12541
|
+
type: "user" | "serviceAccount" | "system";
|
|
12542
|
+
};
|
|
12543
|
+
seq: number;
|
|
12544
|
+
locale?: string | undefined;
|
|
12545
|
+
timeZone?: string | undefined;
|
|
12546
|
+
spec?: {
|
|
12547
|
+
model?: {
|
|
12548
|
+
modelId: string;
|
|
12549
|
+
provider: string;
|
|
12550
|
+
} | undefined;
|
|
12551
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
12552
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
12553
|
+
budgetTokens: number;
|
|
12554
|
+
} | undefined;
|
|
12555
|
+
} | undefined;
|
|
12556
|
+
immediate?: boolean | undefined;
|
|
12557
|
+
replacesMessageId?: string | undefined;
|
|
12558
|
+
}, {
|
|
12559
|
+
projectId: string;
|
|
12560
|
+
id: string;
|
|
12561
|
+
mode: "steer" | "queue";
|
|
12562
|
+
threadId: string;
|
|
12563
|
+
createdAt: string;
|
|
12564
|
+
parts: ({
|
|
12565
|
+
origin: "ambient" | "explicit";
|
|
12566
|
+
context: {
|
|
12567
|
+
kind: "object";
|
|
12568
|
+
ref: {
|
|
12569
|
+
objectTypeId: string;
|
|
12570
|
+
primaryId: string;
|
|
12571
|
+
};
|
|
12572
|
+
label?: string | undefined;
|
|
12573
|
+
} | {
|
|
12574
|
+
id: string;
|
|
12575
|
+
kind: "app-state";
|
|
12576
|
+
value: import("./common").JsonValue;
|
|
12577
|
+
description: string;
|
|
12578
|
+
label: string;
|
|
12579
|
+
};
|
|
12580
|
+
type: "context";
|
|
12581
|
+
} | {
|
|
12582
|
+
type: "text";
|
|
12583
|
+
text: string;
|
|
12584
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12585
|
+
} | {
|
|
12586
|
+
type: "reasoning";
|
|
12587
|
+
text: string;
|
|
12588
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12589
|
+
} | {
|
|
12590
|
+
type: "step-start";
|
|
12591
|
+
} | {
|
|
12592
|
+
type: "file";
|
|
12593
|
+
fileRef: {
|
|
12594
|
+
blobId: string;
|
|
12595
|
+
digest: string;
|
|
12596
|
+
sizeBytes: number;
|
|
12597
|
+
fileName?: string | undefined;
|
|
12598
|
+
mediaType?: string | undefined;
|
|
12599
|
+
logicalPath?: string | undefined;
|
|
12600
|
+
};
|
|
12601
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12602
|
+
} | {
|
|
12603
|
+
type: "provider-state";
|
|
12604
|
+
providerId: string;
|
|
12605
|
+
data: import("./common").JsonValue;
|
|
12606
|
+
} | {
|
|
12607
|
+
type: "tool-call";
|
|
12608
|
+
input: import("./common").JsonValue;
|
|
12609
|
+
output: import("./common").JsonValue;
|
|
12610
|
+
toolCallId: string;
|
|
12611
|
+
toolName: string;
|
|
12612
|
+
state: "output-available";
|
|
12613
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12614
|
+
dynamic?: boolean | undefined;
|
|
12615
|
+
providerExecuted?: boolean | undefined;
|
|
12616
|
+
outputFile?: {
|
|
12617
|
+
path: string;
|
|
12618
|
+
fileRef: {
|
|
12619
|
+
blobId: string;
|
|
12620
|
+
digest: string;
|
|
12621
|
+
sizeBytes: number;
|
|
12622
|
+
fileName?: string | undefined;
|
|
12623
|
+
mediaType?: string | undefined;
|
|
12624
|
+
logicalPath?: string | undefined;
|
|
12625
|
+
};
|
|
12626
|
+
} | undefined;
|
|
12627
|
+
} | {
|
|
12628
|
+
type: "tool-call";
|
|
12629
|
+
input: import("./common").JsonValue;
|
|
12630
|
+
toolCallId: string;
|
|
12631
|
+
toolName: string;
|
|
12632
|
+
state: "output-error";
|
|
12633
|
+
errorText: string;
|
|
12634
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12635
|
+
dynamic?: boolean | undefined;
|
|
12636
|
+
providerExecuted?: boolean | undefined;
|
|
12637
|
+
} | {
|
|
12638
|
+
type: "continuation";
|
|
12639
|
+
} | {
|
|
12640
|
+
status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
|
|
12641
|
+
type: "approval-outcome";
|
|
12642
|
+
call: {
|
|
12643
|
+
kind: "action";
|
|
12644
|
+
actionId: string;
|
|
12645
|
+
subject: {
|
|
12646
|
+
kind: "none";
|
|
12647
|
+
} | {
|
|
12648
|
+
kind: "object";
|
|
12649
|
+
objectTypeId: string;
|
|
12650
|
+
primaryId: string;
|
|
12651
|
+
};
|
|
12652
|
+
} | {
|
|
12653
|
+
kind: "workflow";
|
|
12654
|
+
workflowId: string;
|
|
12655
|
+
};
|
|
12656
|
+
approvalId: string;
|
|
12657
|
+
caller?: {
|
|
12658
|
+
runId: string;
|
|
12659
|
+
key: string;
|
|
12660
|
+
continues?: true | undefined;
|
|
12661
|
+
} | undefined;
|
|
12662
|
+
outcome?: {
|
|
12663
|
+
status: "succeeded" | "failed";
|
|
12664
|
+
kind: "action-run";
|
|
12665
|
+
runId: string;
|
|
12666
|
+
error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
12667
|
+
} | {
|
|
12668
|
+
kind: "workflow-run";
|
|
12669
|
+
runId: string;
|
|
12670
|
+
queuedAt: string;
|
|
12671
|
+
} | {
|
|
12672
|
+
error: {
|
|
12673
|
+
at: string;
|
|
12674
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
12675
|
+
message: string;
|
|
12676
|
+
retryable: boolean;
|
|
12677
|
+
details?: import("./common").JsonValue | undefined;
|
|
12678
|
+
httpStatus?: number | undefined;
|
|
12679
|
+
redacted?: true | undefined;
|
|
12680
|
+
truncated?: true | undefined;
|
|
12681
|
+
};
|
|
12682
|
+
kind: "error";
|
|
12683
|
+
} | undefined;
|
|
12684
|
+
} | {
|
|
12685
|
+
id: string;
|
|
12686
|
+
kind: "message" | "answer";
|
|
12687
|
+
type: "mail";
|
|
12688
|
+
text: string;
|
|
12689
|
+
from: "parent";
|
|
12690
|
+
inReplyTo?: string | undefined;
|
|
12691
|
+
afterAnswer?: true | undefined;
|
|
12692
|
+
})[];
|
|
12693
|
+
messageId: string;
|
|
12694
|
+
updatedAt: string;
|
|
12695
|
+
authorPrincipal: {
|
|
12696
|
+
id: string;
|
|
12697
|
+
type: "user" | "serviceAccount" | "system";
|
|
12698
|
+
};
|
|
12699
|
+
seq: number;
|
|
12700
|
+
locale?: string | undefined;
|
|
12701
|
+
timeZone?: string | undefined;
|
|
12702
|
+
spec?: {
|
|
12703
|
+
model?: {
|
|
12704
|
+
modelId: string;
|
|
12705
|
+
provider: string;
|
|
12706
|
+
} | undefined;
|
|
12707
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
12708
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
12709
|
+
budgetTokens: number;
|
|
12710
|
+
} | undefined;
|
|
12711
|
+
} | undefined;
|
|
12712
|
+
immediate?: boolean | undefined;
|
|
12713
|
+
replacesMessageId?: string | undefined;
|
|
12714
|
+
}>>;
|
|
12715
|
+
}, "strip", z.ZodTypeAny, {
|
|
12716
|
+
run?: {
|
|
12717
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
12718
|
+
projectId: string;
|
|
12719
|
+
id: string;
|
|
12720
|
+
kind: "conversation" | "subagent";
|
|
12721
|
+
threadId: string;
|
|
12722
|
+
createdAt: string;
|
|
12723
|
+
attempt: number;
|
|
12724
|
+
triggerMessageId: string;
|
|
12725
|
+
streamId: string;
|
|
12726
|
+
error?: SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
12727
|
+
model?: {
|
|
12728
|
+
modelId: string;
|
|
12729
|
+
provider: string;
|
|
12730
|
+
} | undefined;
|
|
12731
|
+
requestedBy?: {
|
|
12732
|
+
id: string;
|
|
12733
|
+
type: "user" | "serviceAccount";
|
|
12734
|
+
} | undefined;
|
|
12735
|
+
modelId?: string | undefined;
|
|
12736
|
+
startedAt?: string | undefined;
|
|
12737
|
+
completedAt?: string | undefined;
|
|
12738
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
12739
|
+
tier?: "light" | "standard" | "heavy" | undefined;
|
|
12740
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
12741
|
+
budgetTokens: number;
|
|
12742
|
+
} | undefined;
|
|
12743
|
+
usage?: {
|
|
12744
|
+
reportingStatus: "partial" | "complete" | "unavailable";
|
|
12745
|
+
inputTokens?: number | undefined;
|
|
12746
|
+
outputTokens?: number | undefined;
|
|
12747
|
+
totalTokens?: number | undefined;
|
|
12748
|
+
uncachedInputTokens?: number | undefined;
|
|
12749
|
+
cacheReadInputTokens?: number | undefined;
|
|
12750
|
+
cacheWriteInputTokens?: number | undefined;
|
|
12751
|
+
textOutputTokens?: number | undefined;
|
|
12752
|
+
reasoningOutputTokens?: number | undefined;
|
|
12753
|
+
audioDurationMs?: number | undefined;
|
|
12754
|
+
imageOutputTokens?: number | undefined;
|
|
12755
|
+
audioOutputTokens?: number | undefined;
|
|
12756
|
+
outputImages?: number | undefined;
|
|
12757
|
+
inputCharacters?: number | undefined;
|
|
12758
|
+
} | undefined;
|
|
12759
|
+
cost?: {
|
|
12760
|
+
amounts: {
|
|
12761
|
+
currency: string;
|
|
12762
|
+
amountNanos: string;
|
|
12763
|
+
}[];
|
|
12764
|
+
ratedCallCount: number;
|
|
12765
|
+
unpriceableCallCount: number;
|
|
12766
|
+
unvaluedCallCount: number;
|
|
12767
|
+
} | undefined;
|
|
12768
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12769
|
+
parentRunId?: string | undefined;
|
|
12770
|
+
computer?: {
|
|
12771
|
+
id: string;
|
|
12772
|
+
folder: string;
|
|
12773
|
+
} | undefined;
|
|
12774
|
+
runsOn?: "computer" | undefined;
|
|
12775
|
+
diagnostics?: {
|
|
12776
|
+
code: "step_limit_reached" | "output_limit_reached";
|
|
12777
|
+
message: string;
|
|
12778
|
+
severity: "error" | "warning";
|
|
12779
|
+
scope: "run";
|
|
12780
|
+
}[] | undefined;
|
|
12781
|
+
} | undefined;
|
|
12782
|
+
item?: {
|
|
12783
|
+
projectId: string;
|
|
12784
|
+
id: string;
|
|
12785
|
+
mode: "steer" | "queue";
|
|
12786
|
+
threadId: string;
|
|
12787
|
+
createdAt: string;
|
|
12788
|
+
parts: ({
|
|
12789
|
+
origin: "ambient" | "explicit";
|
|
12790
|
+
context: {
|
|
12791
|
+
kind: "object";
|
|
12792
|
+
ref: {
|
|
12793
|
+
objectTypeId: string;
|
|
12794
|
+
primaryId: string;
|
|
12795
|
+
};
|
|
12796
|
+
label?: string | undefined;
|
|
12797
|
+
} | {
|
|
12798
|
+
id: string;
|
|
12799
|
+
kind: "app-state";
|
|
12800
|
+
value: import("./common").JsonValue;
|
|
12801
|
+
description: string;
|
|
12802
|
+
label: string;
|
|
12803
|
+
};
|
|
12804
|
+
type: "context";
|
|
12805
|
+
} | {
|
|
12806
|
+
type: "text";
|
|
12807
|
+
text: string;
|
|
12808
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12809
|
+
} | {
|
|
12810
|
+
type: "reasoning";
|
|
12811
|
+
text: string;
|
|
12812
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12813
|
+
} | {
|
|
12814
|
+
type: "step-start";
|
|
12815
|
+
} | {
|
|
12816
|
+
type: "file";
|
|
12817
|
+
fileRef: {
|
|
12818
|
+
blobId: string;
|
|
12819
|
+
digest: string;
|
|
12820
|
+
sizeBytes: number;
|
|
12821
|
+
fileName?: string | undefined;
|
|
12822
|
+
mediaType?: string | undefined;
|
|
12823
|
+
logicalPath?: string | undefined;
|
|
12824
|
+
};
|
|
12825
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12826
|
+
} | {
|
|
12827
|
+
type: "provider-state";
|
|
12828
|
+
providerId: string;
|
|
12829
|
+
data: import("./common").JsonValue;
|
|
12830
|
+
} | {
|
|
12831
|
+
type: "tool-call";
|
|
12832
|
+
input: import("./common").JsonValue;
|
|
12833
|
+
output: import("./common").JsonValue;
|
|
12834
|
+
toolCallId: string;
|
|
12835
|
+
toolName: string;
|
|
12836
|
+
state: "output-available";
|
|
12837
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12838
|
+
dynamic?: boolean | undefined;
|
|
12839
|
+
providerExecuted?: boolean | undefined;
|
|
12840
|
+
outputFile?: {
|
|
12841
|
+
path: string;
|
|
12842
|
+
fileRef: {
|
|
12843
|
+
blobId: string;
|
|
12844
|
+
digest: string;
|
|
12845
|
+
sizeBytes: number;
|
|
12846
|
+
fileName?: string | undefined;
|
|
12847
|
+
mediaType?: string | undefined;
|
|
12848
|
+
logicalPath?: string | undefined;
|
|
12849
|
+
};
|
|
12850
|
+
} | undefined;
|
|
12851
|
+
} | {
|
|
12852
|
+
type: "tool-call";
|
|
12853
|
+
input: import("./common").JsonValue;
|
|
12854
|
+
toolCallId: string;
|
|
12855
|
+
toolName: string;
|
|
12856
|
+
state: "output-error";
|
|
12857
|
+
errorText: string;
|
|
12858
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
12859
|
+
dynamic?: boolean | undefined;
|
|
12860
|
+
providerExecuted?: boolean | undefined;
|
|
12861
|
+
} | {
|
|
12862
|
+
type: "continuation";
|
|
12863
|
+
} | {
|
|
12864
|
+
status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
|
|
12865
|
+
type: "approval-outcome";
|
|
12866
|
+
call: {
|
|
12867
|
+
kind: "action";
|
|
12868
|
+
actionId: string;
|
|
12869
|
+
subject: {
|
|
12870
|
+
kind: "none";
|
|
12871
|
+
} | {
|
|
12872
|
+
kind: "object";
|
|
12873
|
+
objectTypeId: string;
|
|
12874
|
+
primaryId: string;
|
|
12875
|
+
};
|
|
12876
|
+
} | {
|
|
12877
|
+
kind: "workflow";
|
|
12878
|
+
workflowId: string;
|
|
12879
|
+
};
|
|
12880
|
+
approvalId: string;
|
|
12881
|
+
caller?: {
|
|
12882
|
+
runId: string;
|
|
12883
|
+
key: string;
|
|
12884
|
+
continues?: true | undefined;
|
|
12885
|
+
} | undefined;
|
|
12886
|
+
outcome?: {
|
|
12887
|
+
status: "succeeded" | "failed";
|
|
12888
|
+
kind: "action-run";
|
|
12889
|
+
runId: string;
|
|
12890
|
+
error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
12891
|
+
} | {
|
|
12892
|
+
kind: "workflow-run";
|
|
12893
|
+
runId: string;
|
|
12894
|
+
queuedAt: string;
|
|
12895
|
+
} | {
|
|
12896
|
+
error: {
|
|
12897
|
+
at: string;
|
|
12898
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
12899
|
+
message: string;
|
|
12900
|
+
retryable: boolean;
|
|
12901
|
+
details?: import("./common").JsonValue | undefined;
|
|
12902
|
+
httpStatus?: number | undefined;
|
|
12903
|
+
redacted?: true | undefined;
|
|
12904
|
+
truncated?: true | undefined;
|
|
12905
|
+
};
|
|
12906
|
+
kind: "error";
|
|
12907
|
+
} | undefined;
|
|
12908
|
+
} | {
|
|
12909
|
+
id: string;
|
|
12910
|
+
kind: "message" | "answer";
|
|
12911
|
+
type: "mail";
|
|
12912
|
+
text: string;
|
|
12913
|
+
from: "parent";
|
|
12914
|
+
inReplyTo?: string | undefined;
|
|
12915
|
+
afterAnswer?: true | undefined;
|
|
12916
|
+
})[];
|
|
12917
|
+
messageId: string;
|
|
12918
|
+
updatedAt: string;
|
|
12919
|
+
authorPrincipal: {
|
|
12920
|
+
id: string;
|
|
12921
|
+
type: "user" | "serviceAccount" | "system";
|
|
12922
|
+
};
|
|
12923
|
+
seq: number;
|
|
12924
|
+
locale?: string | undefined;
|
|
12925
|
+
timeZone?: string | undefined;
|
|
12926
|
+
spec?: {
|
|
12927
|
+
model?: {
|
|
12928
|
+
modelId: string;
|
|
12929
|
+
provider: string;
|
|
12930
|
+
} | undefined;
|
|
12931
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
12932
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
12933
|
+
budgetTokens: number;
|
|
12934
|
+
} | undefined;
|
|
12935
|
+
} | undefined;
|
|
12936
|
+
immediate?: boolean | undefined;
|
|
12937
|
+
replacesMessageId?: string | undefined;
|
|
12938
|
+
} | undefined;
|
|
12939
|
+
}, {
|
|
12940
|
+
run?: {
|
|
12941
|
+
status: "succeeded" | "failed" | "cancelled" | "running" | "queued";
|
|
12942
|
+
projectId: string;
|
|
12943
|
+
id: string;
|
|
12944
|
+
kind: "conversation" | "subagent";
|
|
12945
|
+
threadId: string;
|
|
12946
|
+
createdAt: string;
|
|
12947
|
+
attempt: number;
|
|
12948
|
+
triggerMessageId: string;
|
|
12949
|
+
streamId: string;
|
|
12950
|
+
error?: SixbFailure<"agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
12951
|
+
model?: {
|
|
12952
|
+
modelId: string;
|
|
12953
|
+
provider: string;
|
|
12954
|
+
} | undefined;
|
|
12955
|
+
requestedBy?: {
|
|
12956
|
+
id: string;
|
|
12957
|
+
type: "user" | "serviceAccount";
|
|
12958
|
+
} | undefined;
|
|
12959
|
+
modelId?: string | undefined;
|
|
12960
|
+
startedAt?: string | undefined;
|
|
12961
|
+
completedAt?: string | undefined;
|
|
12962
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
12963
|
+
tier?: "light" | "standard" | "heavy" | undefined;
|
|
12964
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
12965
|
+
budgetTokens: number;
|
|
12966
|
+
} | undefined;
|
|
12967
|
+
usage?: {
|
|
12968
|
+
reportingStatus: "partial" | "complete" | "unavailable";
|
|
12969
|
+
inputTokens?: number | undefined;
|
|
12970
|
+
outputTokens?: number | undefined;
|
|
12971
|
+
totalTokens?: number | undefined;
|
|
12972
|
+
uncachedInputTokens?: number | undefined;
|
|
12973
|
+
cacheReadInputTokens?: number | undefined;
|
|
12974
|
+
cacheWriteInputTokens?: number | undefined;
|
|
12975
|
+
textOutputTokens?: number | undefined;
|
|
12976
|
+
reasoningOutputTokens?: number | undefined;
|
|
12977
|
+
audioDurationMs?: number | undefined;
|
|
12978
|
+
imageOutputTokens?: number | undefined;
|
|
12979
|
+
audioOutputTokens?: number | undefined;
|
|
12980
|
+
outputImages?: number | undefined;
|
|
12981
|
+
inputCharacters?: number | undefined;
|
|
12982
|
+
} | undefined;
|
|
12983
|
+
cost?: {
|
|
12984
|
+
amounts: {
|
|
12985
|
+
currency: string;
|
|
12986
|
+
amountNanos: string;
|
|
12987
|
+
}[];
|
|
12988
|
+
ratedCallCount: number;
|
|
12989
|
+
unpriceableCallCount: number;
|
|
12990
|
+
unvaluedCallCount: number;
|
|
12991
|
+
} | undefined;
|
|
12992
|
+
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12993
|
+
parentRunId?: string | undefined;
|
|
12994
|
+
computer?: {
|
|
12995
|
+
id: string;
|
|
12996
|
+
folder: string;
|
|
12997
|
+
} | undefined;
|
|
12998
|
+
runsOn?: "computer" | undefined;
|
|
12999
|
+
diagnostics?: {
|
|
13000
|
+
code: "step_limit_reached" | "output_limit_reached";
|
|
13001
|
+
message: string;
|
|
13002
|
+
severity: "error" | "warning";
|
|
13003
|
+
scope: "run";
|
|
13004
|
+
}[] | undefined;
|
|
13005
|
+
} | undefined;
|
|
13006
|
+
item?: {
|
|
13007
|
+
projectId: string;
|
|
13008
|
+
id: string;
|
|
13009
|
+
mode: "steer" | "queue";
|
|
13010
|
+
threadId: string;
|
|
13011
|
+
createdAt: string;
|
|
13012
|
+
parts: ({
|
|
13013
|
+
origin: "ambient" | "explicit";
|
|
13014
|
+
context: {
|
|
13015
|
+
kind: "object";
|
|
13016
|
+
ref: {
|
|
13017
|
+
objectTypeId: string;
|
|
13018
|
+
primaryId: string;
|
|
13019
|
+
};
|
|
13020
|
+
label?: string | undefined;
|
|
13021
|
+
} | {
|
|
13022
|
+
id: string;
|
|
13023
|
+
kind: "app-state";
|
|
13024
|
+
value: import("./common").JsonValue;
|
|
13025
|
+
description: string;
|
|
13026
|
+
label: string;
|
|
13027
|
+
};
|
|
13028
|
+
type: "context";
|
|
13029
|
+
} | {
|
|
13030
|
+
type: "text";
|
|
13031
|
+
text: string;
|
|
13032
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
13033
|
+
} | {
|
|
13034
|
+
type: "reasoning";
|
|
13035
|
+
text: string;
|
|
13036
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
13037
|
+
} | {
|
|
13038
|
+
type: "step-start";
|
|
13039
|
+
} | {
|
|
13040
|
+
type: "file";
|
|
13041
|
+
fileRef: {
|
|
13042
|
+
blobId: string;
|
|
13043
|
+
digest: string;
|
|
13044
|
+
sizeBytes: number;
|
|
13045
|
+
fileName?: string | undefined;
|
|
13046
|
+
mediaType?: string | undefined;
|
|
13047
|
+
logicalPath?: string | undefined;
|
|
13048
|
+
};
|
|
13049
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
13050
|
+
} | {
|
|
13051
|
+
type: "provider-state";
|
|
13052
|
+
providerId: string;
|
|
13053
|
+
data: import("./common").JsonValue;
|
|
13054
|
+
} | {
|
|
13055
|
+
type: "tool-call";
|
|
13056
|
+
input: import("./common").JsonValue;
|
|
13057
|
+
output: import("./common").JsonValue;
|
|
13058
|
+
toolCallId: string;
|
|
13059
|
+
toolName: string;
|
|
13060
|
+
state: "output-available";
|
|
13061
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
13062
|
+
dynamic?: boolean | undefined;
|
|
13063
|
+
providerExecuted?: boolean | undefined;
|
|
13064
|
+
outputFile?: {
|
|
13065
|
+
path: string;
|
|
13066
|
+
fileRef: {
|
|
13067
|
+
blobId: string;
|
|
13068
|
+
digest: string;
|
|
13069
|
+
sizeBytes: number;
|
|
13070
|
+
fileName?: string | undefined;
|
|
13071
|
+
mediaType?: string | undefined;
|
|
13072
|
+
logicalPath?: string | undefined;
|
|
13073
|
+
};
|
|
13074
|
+
} | undefined;
|
|
13075
|
+
} | {
|
|
13076
|
+
type: "tool-call";
|
|
13077
|
+
input: import("./common").JsonValue;
|
|
13078
|
+
toolCallId: string;
|
|
13079
|
+
toolName: string;
|
|
13080
|
+
state: "output-error";
|
|
13081
|
+
errorText: string;
|
|
13082
|
+
providerMetadata?: import("./common").JsonValue | undefined;
|
|
13083
|
+
dynamic?: boolean | undefined;
|
|
13084
|
+
providerExecuted?: boolean | undefined;
|
|
13085
|
+
} | {
|
|
13086
|
+
type: "continuation";
|
|
13087
|
+
} | {
|
|
13088
|
+
status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
|
|
13089
|
+
type: "approval-outcome";
|
|
13090
|
+
call: {
|
|
13091
|
+
kind: "action";
|
|
13092
|
+
actionId: string;
|
|
13093
|
+
subject: {
|
|
13094
|
+
kind: "none";
|
|
13095
|
+
} | {
|
|
13096
|
+
kind: "object";
|
|
13097
|
+
objectTypeId: string;
|
|
13098
|
+
primaryId: string;
|
|
13099
|
+
};
|
|
13100
|
+
} | {
|
|
13101
|
+
kind: "workflow";
|
|
13102
|
+
workflowId: string;
|
|
13103
|
+
};
|
|
13104
|
+
approvalId: string;
|
|
13105
|
+
caller?: {
|
|
13106
|
+
runId: string;
|
|
13107
|
+
key: string;
|
|
13108
|
+
continues?: true | undefined;
|
|
13109
|
+
} | undefined;
|
|
13110
|
+
outcome?: {
|
|
13111
|
+
status: "succeeded" | "failed";
|
|
13112
|
+
kind: "action-run";
|
|
13113
|
+
runId: string;
|
|
13114
|
+
error?: import("@sixb/core").ActionRunFailure<"validation" | "writeback" | "edits" | "effects" | "commit"> | undefined;
|
|
13115
|
+
} | {
|
|
13116
|
+
kind: "workflow-run";
|
|
13117
|
+
runId: string;
|
|
13118
|
+
queuedAt: string;
|
|
13119
|
+
} | {
|
|
13120
|
+
error: {
|
|
13121
|
+
at: string;
|
|
13122
|
+
code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
|
|
13123
|
+
message: string;
|
|
13124
|
+
retryable: boolean;
|
|
13125
|
+
details?: import("./common").JsonValue | undefined;
|
|
13126
|
+
httpStatus?: number | undefined;
|
|
13127
|
+
redacted?: true | undefined;
|
|
13128
|
+
truncated?: true | undefined;
|
|
13129
|
+
};
|
|
13130
|
+
kind: "error";
|
|
13131
|
+
} | undefined;
|
|
13132
|
+
} | {
|
|
13133
|
+
id: string;
|
|
13134
|
+
kind: "message" | "answer";
|
|
13135
|
+
type: "mail";
|
|
13136
|
+
text: string;
|
|
13137
|
+
from: "parent";
|
|
13138
|
+
inReplyTo?: string | undefined;
|
|
13139
|
+
afterAnswer?: true | undefined;
|
|
13140
|
+
})[];
|
|
13141
|
+
messageId: string;
|
|
13142
|
+
updatedAt: string;
|
|
13143
|
+
authorPrincipal: {
|
|
13144
|
+
id: string;
|
|
13145
|
+
type: "user" | "serviceAccount" | "system";
|
|
13146
|
+
};
|
|
13147
|
+
seq: number;
|
|
13148
|
+
locale?: string | undefined;
|
|
13149
|
+
timeZone?: string | undefined;
|
|
13150
|
+
spec?: {
|
|
13151
|
+
model?: {
|
|
13152
|
+
modelId: string;
|
|
13153
|
+
provider: string;
|
|
13154
|
+
} | undefined;
|
|
13155
|
+
approvalMode?: "manual" | "accept-edits" | "auto" | undefined;
|
|
13156
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
13157
|
+
budgetTokens: number;
|
|
13158
|
+
} | undefined;
|
|
13159
|
+
} | undefined;
|
|
13160
|
+
immediate?: boolean | undefined;
|
|
13161
|
+
replacesMessageId?: string | undefined;
|
|
10690
13162
|
} | undefined;
|
|
10691
13163
|
}>;
|
|
10692
13164
|
export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
@@ -10733,6 +13205,21 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
10733
13205
|
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
10734
13206
|
/** Its owner's computer claims it; absent, the cloud runs it. */
|
|
10735
13207
|
runsOn: z.ZodOptional<z.ZodLiteral<"computer">>;
|
|
13208
|
+
/**
|
|
13209
|
+
* The computer and folder it runs in, in the list of a thread's runs its owner reads: shown to
|
|
13210
|
+
* them alone, as the thread's `computer` is. A turn in another place than the one before it no
|
|
13211
|
+
* longer has the files that turn worked on.
|
|
13212
|
+
*/
|
|
13213
|
+
computer: z.ZodOptional<z.ZodObject<{
|
|
13214
|
+
id: z.ZodString;
|
|
13215
|
+
folder: z.ZodString;
|
|
13216
|
+
}, "strip", z.ZodTypeAny, {
|
|
13217
|
+
id: string;
|
|
13218
|
+
folder: string;
|
|
13219
|
+
}, {
|
|
13220
|
+
id: string;
|
|
13221
|
+
folder: string;
|
|
13222
|
+
}>>;
|
|
10736
13223
|
modelId: z.ZodOptional<z.ZodString>;
|
|
10737
13224
|
/**
|
|
10738
13225
|
* `awaiting_approval`: the turn succeeded and paused on calls waiting for its requester. It stays
|
|
@@ -10893,6 +13380,10 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
10893
13380
|
} | undefined;
|
|
10894
13381
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
10895
13382
|
parentRunId?: string | undefined;
|
|
13383
|
+
computer?: {
|
|
13384
|
+
id: string;
|
|
13385
|
+
folder: string;
|
|
13386
|
+
} | undefined;
|
|
10896
13387
|
runsOn?: "computer" | undefined;
|
|
10897
13388
|
diagnostics?: {
|
|
10898
13389
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -10954,6 +13445,10 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
10954
13445
|
} | undefined;
|
|
10955
13446
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
10956
13447
|
parentRunId?: string | undefined;
|
|
13448
|
+
computer?: {
|
|
13449
|
+
id: string;
|
|
13450
|
+
folder: string;
|
|
13451
|
+
} | undefined;
|
|
10957
13452
|
runsOn?: "computer" | undefined;
|
|
10958
13453
|
diagnostics?: {
|
|
10959
13454
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -11017,6 +13512,10 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
11017
13512
|
} | undefined;
|
|
11018
13513
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
11019
13514
|
parentRunId?: string | undefined;
|
|
13515
|
+
computer?: {
|
|
13516
|
+
id: string;
|
|
13517
|
+
folder: string;
|
|
13518
|
+
} | undefined;
|
|
11020
13519
|
runsOn?: "computer" | undefined;
|
|
11021
13520
|
diagnostics?: {
|
|
11022
13521
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -11080,6 +13579,10 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
|
|
|
11080
13579
|
} | undefined;
|
|
11081
13580
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
11082
13581
|
parentRunId?: string | undefined;
|
|
13582
|
+
computer?: {
|
|
13583
|
+
id: string;
|
|
13584
|
+
folder: string;
|
|
13585
|
+
} | undefined;
|
|
11083
13586
|
runsOn?: "computer" | undefined;
|
|
11084
13587
|
diagnostics?: {
|
|
11085
13588
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -11453,6 +13956,21 @@ export declare const DecideAgentApprovalResponseSchema: z.ZodObject<{
|
|
|
11453
13956
|
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
11454
13957
|
/** Its owner's computer claims it; absent, the cloud runs it. */
|
|
11455
13958
|
runsOn: z.ZodOptional<z.ZodLiteral<"computer">>;
|
|
13959
|
+
/**
|
|
13960
|
+
* The computer and folder it runs in, in the list of a thread's runs its owner reads: shown to
|
|
13961
|
+
* them alone, as the thread's `computer` is. A turn in another place than the one before it no
|
|
13962
|
+
* longer has the files that turn worked on.
|
|
13963
|
+
*/
|
|
13964
|
+
computer: z.ZodOptional<z.ZodObject<{
|
|
13965
|
+
id: z.ZodString;
|
|
13966
|
+
folder: z.ZodString;
|
|
13967
|
+
}, "strip", z.ZodTypeAny, {
|
|
13968
|
+
id: string;
|
|
13969
|
+
folder: string;
|
|
13970
|
+
}, {
|
|
13971
|
+
id: string;
|
|
13972
|
+
folder: string;
|
|
13973
|
+
}>>;
|
|
11456
13974
|
modelId: z.ZodOptional<z.ZodString>;
|
|
11457
13975
|
/**
|
|
11458
13976
|
* `awaiting_approval`: the turn succeeded and paused on calls waiting for its requester. It stays
|
|
@@ -11613,6 +14131,10 @@ export declare const DecideAgentApprovalResponseSchema: z.ZodObject<{
|
|
|
11613
14131
|
} | undefined;
|
|
11614
14132
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
11615
14133
|
parentRunId?: string | undefined;
|
|
14134
|
+
computer?: {
|
|
14135
|
+
id: string;
|
|
14136
|
+
folder: string;
|
|
14137
|
+
} | undefined;
|
|
11616
14138
|
runsOn?: "computer" | undefined;
|
|
11617
14139
|
diagnostics?: {
|
|
11618
14140
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -11674,6 +14196,10 @@ export declare const DecideAgentApprovalResponseSchema: z.ZodObject<{
|
|
|
11674
14196
|
} | undefined;
|
|
11675
14197
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
11676
14198
|
parentRunId?: string | undefined;
|
|
14199
|
+
computer?: {
|
|
14200
|
+
id: string;
|
|
14201
|
+
folder: string;
|
|
14202
|
+
} | undefined;
|
|
11677
14203
|
runsOn?: "computer" | undefined;
|
|
11678
14204
|
diagnostics?: {
|
|
11679
14205
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -11822,6 +14348,10 @@ export declare const DecideAgentApprovalResponseSchema: z.ZodObject<{
|
|
|
11822
14348
|
} | undefined;
|
|
11823
14349
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
11824
14350
|
parentRunId?: string | undefined;
|
|
14351
|
+
computer?: {
|
|
14352
|
+
id: string;
|
|
14353
|
+
folder: string;
|
|
14354
|
+
} | undefined;
|
|
11825
14355
|
runsOn?: "computer" | undefined;
|
|
11826
14356
|
diagnostics?: {
|
|
11827
14357
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -11956,6 +14486,10 @@ export declare const DecideAgentApprovalResponseSchema: z.ZodObject<{
|
|
|
11956
14486
|
} | undefined;
|
|
11957
14487
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
11958
14488
|
parentRunId?: string | undefined;
|
|
14489
|
+
computer?: {
|
|
14490
|
+
id: string;
|
|
14491
|
+
folder: string;
|
|
14492
|
+
} | undefined;
|
|
11959
14493
|
runsOn?: "computer" | undefined;
|
|
11960
14494
|
diagnostics?: {
|
|
11961
14495
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -12015,6 +14549,21 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
12015
14549
|
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
12016
14550
|
/** Its owner's computer claims it; absent, the cloud runs it. */
|
|
12017
14551
|
runsOn: z.ZodOptional<z.ZodLiteral<"computer">>;
|
|
14552
|
+
/**
|
|
14553
|
+
* The computer and folder it runs in, in the list of a thread's runs its owner reads: shown to
|
|
14554
|
+
* them alone, as the thread's `computer` is. A turn in another place than the one before it no
|
|
14555
|
+
* longer has the files that turn worked on.
|
|
14556
|
+
*/
|
|
14557
|
+
computer: z.ZodOptional<z.ZodObject<{
|
|
14558
|
+
id: z.ZodString;
|
|
14559
|
+
folder: z.ZodString;
|
|
14560
|
+
}, "strip", z.ZodTypeAny, {
|
|
14561
|
+
id: string;
|
|
14562
|
+
folder: string;
|
|
14563
|
+
}, {
|
|
14564
|
+
id: string;
|
|
14565
|
+
folder: string;
|
|
14566
|
+
}>>;
|
|
12018
14567
|
modelId: z.ZodOptional<z.ZodString>;
|
|
12019
14568
|
/**
|
|
12020
14569
|
* `awaiting_approval`: the turn succeeded and paused on calls waiting for its requester. It stays
|
|
@@ -12175,6 +14724,10 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
12175
14724
|
} | undefined;
|
|
12176
14725
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12177
14726
|
parentRunId?: string | undefined;
|
|
14727
|
+
computer?: {
|
|
14728
|
+
id: string;
|
|
14729
|
+
folder: string;
|
|
14730
|
+
} | undefined;
|
|
12178
14731
|
runsOn?: "computer" | undefined;
|
|
12179
14732
|
diagnostics?: {
|
|
12180
14733
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -12236,6 +14789,10 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
12236
14789
|
} | undefined;
|
|
12237
14790
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12238
14791
|
parentRunId?: string | undefined;
|
|
14792
|
+
computer?: {
|
|
14793
|
+
id: string;
|
|
14794
|
+
folder: string;
|
|
14795
|
+
} | undefined;
|
|
12239
14796
|
runsOn?: "computer" | undefined;
|
|
12240
14797
|
diagnostics?: {
|
|
12241
14798
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -12299,6 +14856,10 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
12299
14856
|
} | undefined;
|
|
12300
14857
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12301
14858
|
parentRunId?: string | undefined;
|
|
14859
|
+
computer?: {
|
|
14860
|
+
id: string;
|
|
14861
|
+
folder: string;
|
|
14862
|
+
} | undefined;
|
|
12302
14863
|
runsOn?: "computer" | undefined;
|
|
12303
14864
|
diagnostics?: {
|
|
12304
14865
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -12362,6 +14923,10 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
|
|
|
12362
14923
|
} | undefined;
|
|
12363
14924
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12364
14925
|
parentRunId?: string | undefined;
|
|
14926
|
+
computer?: {
|
|
14927
|
+
id: string;
|
|
14928
|
+
folder: string;
|
|
14929
|
+
} | undefined;
|
|
12365
14930
|
runsOn?: "computer" | undefined;
|
|
12366
14931
|
diagnostics?: {
|
|
12367
14932
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -12555,6 +15120,21 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
12555
15120
|
approvalMode: z.ZodOptional<z.ZodEnum<["manual", "accept-edits", "auto"]>>;
|
|
12556
15121
|
/** Its owner's computer claims it; absent, the cloud runs it. */
|
|
12557
15122
|
runsOn: z.ZodOptional<z.ZodLiteral<"computer">>;
|
|
15123
|
+
/**
|
|
15124
|
+
* The computer and folder it runs in, in the list of a thread's runs its owner reads: shown to
|
|
15125
|
+
* them alone, as the thread's `computer` is. A turn in another place than the one before it no
|
|
15126
|
+
* longer has the files that turn worked on.
|
|
15127
|
+
*/
|
|
15128
|
+
computer: z.ZodOptional<z.ZodObject<{
|
|
15129
|
+
id: z.ZodString;
|
|
15130
|
+
folder: z.ZodString;
|
|
15131
|
+
}, "strip", z.ZodTypeAny, {
|
|
15132
|
+
id: string;
|
|
15133
|
+
folder: string;
|
|
15134
|
+
}, {
|
|
15135
|
+
id: string;
|
|
15136
|
+
folder: string;
|
|
15137
|
+
}>>;
|
|
12558
15138
|
modelId: z.ZodOptional<z.ZodString>;
|
|
12559
15139
|
/**
|
|
12560
15140
|
* `awaiting_approval`: the turn succeeded and paused on calls waiting for its requester. It stays
|
|
@@ -12715,6 +15295,10 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
12715
15295
|
} | undefined;
|
|
12716
15296
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12717
15297
|
parentRunId?: string | undefined;
|
|
15298
|
+
computer?: {
|
|
15299
|
+
id: string;
|
|
15300
|
+
folder: string;
|
|
15301
|
+
} | undefined;
|
|
12718
15302
|
runsOn?: "computer" | undefined;
|
|
12719
15303
|
diagnostics?: {
|
|
12720
15304
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -12776,6 +15360,10 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
12776
15360
|
} | undefined;
|
|
12777
15361
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12778
15362
|
parentRunId?: string | undefined;
|
|
15363
|
+
computer?: {
|
|
15364
|
+
id: string;
|
|
15365
|
+
folder: string;
|
|
15366
|
+
} | undefined;
|
|
12779
15367
|
runsOn?: "computer" | undefined;
|
|
12780
15368
|
diagnostics?: {
|
|
12781
15369
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -12841,6 +15429,10 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
12841
15429
|
} | undefined;
|
|
12842
15430
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12843
15431
|
parentRunId?: string | undefined;
|
|
15432
|
+
computer?: {
|
|
15433
|
+
id: string;
|
|
15434
|
+
folder: string;
|
|
15435
|
+
} | undefined;
|
|
12844
15436
|
runsOn?: "computer" | undefined;
|
|
12845
15437
|
diagnostics?: {
|
|
12846
15438
|
code: "step_limit_reached" | "output_limit_reached";
|
|
@@ -12906,6 +15498,10 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
|
|
|
12906
15498
|
} | undefined;
|
|
12907
15499
|
finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "other" | undefined;
|
|
12908
15500
|
parentRunId?: string | undefined;
|
|
15501
|
+
computer?: {
|
|
15502
|
+
id: string;
|
|
15503
|
+
folder: string;
|
|
15504
|
+
} | undefined;
|
|
12909
15505
|
runsOn?: "computer" | undefined;
|
|
12910
15506
|
diagnostics?: {
|
|
12911
15507
|
code: "step_limit_reached" | "output_limit_reached";
|