@bubblelab/shared-schemas 0.1.11 → 0.1.12
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/agent-memory.d.ts +4 -4
- package/dist/bubble-definition-schema.d.ts +38 -38
- package/dist/bubble-definition-schema.d.ts.map +1 -1
- package/dist/bubble-definition-schema.js +2 -0
- package/dist/bubble-definition-schema.js.map +1 -1
- package/dist/bubbleflow-execution-schema.d.ts +102 -66
- package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
- package/dist/bubbleflow-execution-schema.js +10 -4
- package/dist/bubbleflow-execution-schema.js.map +1 -1
- package/dist/bubbleflow-generation-prompts.d.ts +3 -20
- package/dist/bubbleflow-generation-prompts.d.ts.map +1 -1
- package/dist/bubbleflow-generation-prompts.js +3 -412
- package/dist/bubbleflow-generation-prompts.js.map +1 -1
- package/dist/bubbleflow-schema.d.ts +162 -162
- package/dist/coffee.d.ts +145 -145
- package/dist/coffee.d.ts.map +1 -1
- package/dist/coffee.js +3 -4
- package/dist/coffee.js.map +1 -1
- package/dist/credential-schema.d.ts +169 -14
- package/dist/credential-schema.d.ts.map +1 -1
- package/dist/credential-schema.js +372 -1
- package/dist/credential-schema.js.map +1 -1
- package/dist/generate-bubbleflow-schema.d.ts +127 -127
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/milk-tea.d.ts +12 -12
- package/dist/oauth-schema.d.ts +4 -4
- package/dist/pearl.d.ts +32 -32
- package/dist/rice.d.ts +100 -0
- package/dist/rice.d.ts.map +1 -0
- package/dist/rice.js +65 -0
- package/dist/rice.js.map +1 -0
- package/dist/streaming-events.d.ts +9 -1
- package/dist/streaming-events.d.ts.map +1 -1
- package/dist/types.d.ts +4 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/coffee.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { CredentialType } from './types.js';
|
|
3
3
|
export declare const COFFEE_MAX_ITERATIONS = 30;
|
|
4
|
-
export declare const COFFEE_MAX_QUESTIONS =
|
|
4
|
+
export declare const COFFEE_MAX_QUESTIONS = 5;
|
|
5
5
|
export declare const COFFEE_DEFAULT_MODEL: "google/gemini-3-pro-preview";
|
|
6
6
|
/** A single choice option for a clarification question */
|
|
7
7
|
export declare const ClarificationChoiceSchema: z.ZodObject<{
|
|
@@ -169,10 +169,10 @@ export declare const CoffeeContextAnswerSchema: z.ZodObject<{
|
|
|
169
169
|
flowCode: string;
|
|
170
170
|
}>>;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
status: "
|
|
172
|
+
status: "success" | "error" | "rejected";
|
|
173
173
|
flowId: string;
|
|
174
|
-
error?: string | undefined;
|
|
175
174
|
result?: unknown;
|
|
175
|
+
error?: string | undefined;
|
|
176
176
|
originalRequest?: {
|
|
177
177
|
description: string;
|
|
178
178
|
flowId: string;
|
|
@@ -180,10 +180,10 @@ export declare const CoffeeContextAnswerSchema: z.ZodObject<{
|
|
|
180
180
|
flowCode: string;
|
|
181
181
|
} | undefined;
|
|
182
182
|
}, {
|
|
183
|
-
status: "
|
|
183
|
+
status: "success" | "error" | "rejected";
|
|
184
184
|
flowId: string;
|
|
185
|
-
error?: string | undefined;
|
|
186
185
|
result?: unknown;
|
|
186
|
+
error?: string | undefined;
|
|
187
187
|
originalRequest?: {
|
|
188
188
|
description: string;
|
|
189
189
|
flowId: string;
|
|
@@ -274,15 +274,15 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
274
274
|
type: z.ZodLiteral<"user">;
|
|
275
275
|
content: z.ZodString;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
content: string;
|
|
278
277
|
type: "user";
|
|
279
|
-
|
|
278
|
+
content: string;
|
|
280
279
|
id: string;
|
|
280
|
+
timestamp: string;
|
|
281
281
|
}, {
|
|
282
|
-
content: string;
|
|
283
282
|
type: "user";
|
|
284
|
-
|
|
283
|
+
content: string;
|
|
285
284
|
id: string;
|
|
285
|
+
timestamp: string;
|
|
286
286
|
}>;
|
|
287
287
|
/** Regular assistant text message */
|
|
288
288
|
export declare const AssistantMessageSchema: z.ZodObject<{
|
|
@@ -295,18 +295,18 @@ export declare const AssistantMessageSchema: z.ZodObject<{
|
|
|
295
295
|
resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>;
|
|
296
296
|
bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
297
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
-
content: string;
|
|
299
298
|
type: "assistant";
|
|
300
|
-
|
|
299
|
+
content: string;
|
|
301
300
|
id: string;
|
|
301
|
+
timestamp: string;
|
|
302
302
|
code?: string | undefined;
|
|
303
303
|
bubbleParameters?: Record<string, unknown> | undefined;
|
|
304
304
|
resultType?: "code" | "question" | "answer" | "reject" | undefined;
|
|
305
305
|
}, {
|
|
306
|
-
content: string;
|
|
307
306
|
type: "assistant";
|
|
308
|
-
|
|
307
|
+
content: string;
|
|
309
308
|
id: string;
|
|
309
|
+
timestamp: string;
|
|
310
310
|
code?: string | undefined;
|
|
311
311
|
bubbleParameters?: Record<string, unknown> | undefined;
|
|
312
312
|
resultType?: "code" | "question" | "answer" | "reject" | undefined;
|
|
@@ -358,8 +358,8 @@ export declare const ClarificationRequestMessageSchema: z.ZodObject<{
|
|
|
358
358
|
}>, "many">;
|
|
359
359
|
}, "strip", z.ZodTypeAny, {
|
|
360
360
|
type: "clarification_request";
|
|
361
|
-
timestamp: string;
|
|
362
361
|
id: string;
|
|
362
|
+
timestamp: string;
|
|
363
363
|
questions: {
|
|
364
364
|
id: string;
|
|
365
365
|
question: string;
|
|
@@ -373,8 +373,8 @@ export declare const ClarificationRequestMessageSchema: z.ZodObject<{
|
|
|
373
373
|
}[];
|
|
374
374
|
}, {
|
|
375
375
|
type: "clarification_request";
|
|
376
|
-
timestamp: string;
|
|
377
376
|
id: string;
|
|
377
|
+
timestamp: string;
|
|
378
378
|
questions: {
|
|
379
379
|
id: string;
|
|
380
380
|
question: string;
|
|
@@ -435,8 +435,8 @@ export declare const ClarificationResponseMessageSchema: z.ZodObject<{
|
|
|
435
435
|
}>, "many">>;
|
|
436
436
|
}, "strip", z.ZodTypeAny, {
|
|
437
437
|
type: "clarification_response";
|
|
438
|
-
timestamp: string;
|
|
439
438
|
id: string;
|
|
439
|
+
timestamp: string;
|
|
440
440
|
answers: Record<string, string[]>;
|
|
441
441
|
originalQuestions?: {
|
|
442
442
|
id: string;
|
|
@@ -451,8 +451,8 @@ export declare const ClarificationResponseMessageSchema: z.ZodObject<{
|
|
|
451
451
|
}[] | undefined;
|
|
452
452
|
}, {
|
|
453
453
|
type: "clarification_response";
|
|
454
|
-
timestamp: string;
|
|
455
454
|
id: string;
|
|
455
|
+
timestamp: string;
|
|
456
456
|
answers: Record<string, string[]>;
|
|
457
457
|
originalQuestions?: {
|
|
458
458
|
id: string;
|
|
@@ -490,8 +490,8 @@ export declare const ContextRequestMessageSchema: z.ZodObject<{
|
|
|
490
490
|
}>;
|
|
491
491
|
}, "strip", z.ZodTypeAny, {
|
|
492
492
|
type: "context_request";
|
|
493
|
-
timestamp: string;
|
|
494
493
|
id: string;
|
|
494
|
+
timestamp: string;
|
|
495
495
|
request: {
|
|
496
496
|
description: string;
|
|
497
497
|
flowId: string;
|
|
@@ -500,8 +500,8 @@ export declare const ContextRequestMessageSchema: z.ZodObject<{
|
|
|
500
500
|
};
|
|
501
501
|
}, {
|
|
502
502
|
type: "context_request";
|
|
503
|
-
timestamp: string;
|
|
504
503
|
id: string;
|
|
504
|
+
timestamp: string;
|
|
505
505
|
request: {
|
|
506
506
|
description: string;
|
|
507
507
|
flowId: string;
|
|
@@ -537,10 +537,10 @@ export declare const ContextResponseMessageSchema: z.ZodObject<{
|
|
|
537
537
|
flowCode: string;
|
|
538
538
|
}>>;
|
|
539
539
|
}, "strip", z.ZodTypeAny, {
|
|
540
|
-
status: "
|
|
540
|
+
status: "success" | "error" | "rejected";
|
|
541
541
|
flowId: string;
|
|
542
|
-
error?: string | undefined;
|
|
543
542
|
result?: unknown;
|
|
543
|
+
error?: string | undefined;
|
|
544
544
|
originalRequest?: {
|
|
545
545
|
description: string;
|
|
546
546
|
flowId: string;
|
|
@@ -548,10 +548,10 @@ export declare const ContextResponseMessageSchema: z.ZodObject<{
|
|
|
548
548
|
flowCode: string;
|
|
549
549
|
} | undefined;
|
|
550
550
|
}, {
|
|
551
|
-
status: "
|
|
551
|
+
status: "success" | "error" | "rejected";
|
|
552
552
|
flowId: string;
|
|
553
|
-
error?: string | undefined;
|
|
554
553
|
result?: unknown;
|
|
554
|
+
error?: string | undefined;
|
|
555
555
|
originalRequest?: {
|
|
556
556
|
description: string;
|
|
557
557
|
flowId: string;
|
|
@@ -562,13 +562,13 @@ export declare const ContextResponseMessageSchema: z.ZodObject<{
|
|
|
562
562
|
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
563
563
|
}, "strip", z.ZodTypeAny, {
|
|
564
564
|
type: "context_response";
|
|
565
|
-
timestamp: string;
|
|
566
565
|
id: string;
|
|
566
|
+
timestamp: string;
|
|
567
567
|
answer: {
|
|
568
|
-
status: "
|
|
568
|
+
status: "success" | "error" | "rejected";
|
|
569
569
|
flowId: string;
|
|
570
|
-
error?: string | undefined;
|
|
571
570
|
result?: unknown;
|
|
571
|
+
error?: string | undefined;
|
|
572
572
|
originalRequest?: {
|
|
573
573
|
description: string;
|
|
574
574
|
flowId: string;
|
|
@@ -579,13 +579,13 @@ export declare const ContextResponseMessageSchema: z.ZodObject<{
|
|
|
579
579
|
credentialTypes?: string[] | undefined;
|
|
580
580
|
}, {
|
|
581
581
|
type: "context_response";
|
|
582
|
-
timestamp: string;
|
|
583
582
|
id: string;
|
|
583
|
+
timestamp: string;
|
|
584
584
|
answer: {
|
|
585
|
-
status: "
|
|
585
|
+
status: "success" | "error" | "rejected";
|
|
586
586
|
flowId: string;
|
|
587
|
-
error?: string | undefined;
|
|
588
587
|
result?: unknown;
|
|
588
|
+
error?: string | undefined;
|
|
589
589
|
originalRequest?: {
|
|
590
590
|
description: string;
|
|
591
591
|
flowId: string;
|
|
@@ -636,8 +636,8 @@ export declare const PlanMessageSchema: z.ZodObject<{
|
|
|
636
636
|
}>;
|
|
637
637
|
}, "strip", z.ZodTypeAny, {
|
|
638
638
|
type: "plan";
|
|
639
|
-
timestamp: string;
|
|
640
639
|
id: string;
|
|
640
|
+
timestamp: string;
|
|
641
641
|
plan: {
|
|
642
642
|
summary: string;
|
|
643
643
|
steps: {
|
|
@@ -649,8 +649,8 @@ export declare const PlanMessageSchema: z.ZodObject<{
|
|
|
649
649
|
};
|
|
650
650
|
}, {
|
|
651
651
|
type: "plan";
|
|
652
|
-
timestamp: string;
|
|
653
652
|
id: string;
|
|
653
|
+
timestamp: string;
|
|
654
654
|
plan: {
|
|
655
655
|
summary: string;
|
|
656
656
|
steps: {
|
|
@@ -671,14 +671,14 @@ export declare const PlanApprovalMessageSchema: z.ZodObject<{
|
|
|
671
671
|
comment: z.ZodOptional<z.ZodString>;
|
|
672
672
|
}, "strip", z.ZodTypeAny, {
|
|
673
673
|
type: "plan_approval";
|
|
674
|
-
timestamp: string;
|
|
675
674
|
id: string;
|
|
675
|
+
timestamp: string;
|
|
676
676
|
approved: boolean;
|
|
677
677
|
comment?: string | undefined;
|
|
678
678
|
}, {
|
|
679
679
|
type: "plan_approval";
|
|
680
|
-
timestamp: string;
|
|
681
680
|
id: string;
|
|
681
|
+
timestamp: string;
|
|
682
682
|
approved: boolean;
|
|
683
683
|
comment?: string | undefined;
|
|
684
684
|
}>;
|
|
@@ -690,15 +690,15 @@ export declare const SystemMessageSchema: z.ZodObject<{
|
|
|
690
690
|
type: z.ZodLiteral<"system">;
|
|
691
691
|
content: z.ZodString;
|
|
692
692
|
}, "strip", z.ZodTypeAny, {
|
|
693
|
-
content: string;
|
|
694
693
|
type: "system";
|
|
695
|
-
|
|
694
|
+
content: string;
|
|
696
695
|
id: string;
|
|
696
|
+
timestamp: string;
|
|
697
697
|
}, {
|
|
698
|
-
content: string;
|
|
699
698
|
type: "system";
|
|
700
|
-
|
|
699
|
+
content: string;
|
|
701
700
|
id: string;
|
|
701
|
+
timestamp: string;
|
|
702
702
|
}>;
|
|
703
703
|
/** Tool result message - persists successful tool call results */
|
|
704
704
|
export declare const ToolResultMessageSchema: z.ZodObject<{
|
|
@@ -713,21 +713,21 @@ export declare const ToolResultMessageSchema: z.ZodObject<{
|
|
|
713
713
|
duration: z.ZodNumber;
|
|
714
714
|
success: z.ZodBoolean;
|
|
715
715
|
}, "strip", z.ZodTypeAny, {
|
|
716
|
-
toolCallId: string;
|
|
717
716
|
type: "tool_result";
|
|
718
|
-
timestamp: string;
|
|
719
717
|
duration: number;
|
|
720
718
|
id: string;
|
|
719
|
+
toolCallId: string;
|
|
720
|
+
timestamp: string;
|
|
721
721
|
success: boolean;
|
|
722
722
|
toolName: string;
|
|
723
723
|
input?: unknown;
|
|
724
724
|
output?: unknown;
|
|
725
725
|
}, {
|
|
726
|
-
toolCallId: string;
|
|
727
726
|
type: "tool_result";
|
|
728
|
-
timestamp: string;
|
|
729
727
|
duration: number;
|
|
730
728
|
id: string;
|
|
729
|
+
toolCallId: string;
|
|
730
|
+
timestamp: string;
|
|
731
731
|
success: boolean;
|
|
732
732
|
toolName: string;
|
|
733
733
|
input?: unknown;
|
|
@@ -741,15 +741,15 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
741
741
|
type: z.ZodLiteral<"user">;
|
|
742
742
|
content: z.ZodString;
|
|
743
743
|
}, "strip", z.ZodTypeAny, {
|
|
744
|
-
content: string;
|
|
745
744
|
type: "user";
|
|
746
|
-
|
|
745
|
+
content: string;
|
|
747
746
|
id: string;
|
|
747
|
+
timestamp: string;
|
|
748
748
|
}, {
|
|
749
|
-
content: string;
|
|
750
749
|
type: "user";
|
|
751
|
-
|
|
750
|
+
content: string;
|
|
752
751
|
id: string;
|
|
752
|
+
timestamp: string;
|
|
753
753
|
}>, z.ZodObject<{
|
|
754
754
|
id: z.ZodString;
|
|
755
755
|
timestamp: z.ZodString;
|
|
@@ -760,18 +760,18 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
760
760
|
resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>;
|
|
761
761
|
bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
762
762
|
}, "strip", z.ZodTypeAny, {
|
|
763
|
-
content: string;
|
|
764
763
|
type: "assistant";
|
|
765
|
-
|
|
764
|
+
content: string;
|
|
766
765
|
id: string;
|
|
766
|
+
timestamp: string;
|
|
767
767
|
code?: string | undefined;
|
|
768
768
|
bubbleParameters?: Record<string, unknown> | undefined;
|
|
769
769
|
resultType?: "code" | "question" | "answer" | "reject" | undefined;
|
|
770
770
|
}, {
|
|
771
|
-
content: string;
|
|
772
771
|
type: "assistant";
|
|
773
|
-
|
|
772
|
+
content: string;
|
|
774
773
|
id: string;
|
|
774
|
+
timestamp: string;
|
|
775
775
|
code?: string | undefined;
|
|
776
776
|
bubbleParameters?: Record<string, unknown> | undefined;
|
|
777
777
|
resultType?: "code" | "question" | "answer" | "reject" | undefined;
|
|
@@ -821,8 +821,8 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
821
821
|
}>, "many">;
|
|
822
822
|
}, "strip", z.ZodTypeAny, {
|
|
823
823
|
type: "clarification_request";
|
|
824
|
-
timestamp: string;
|
|
825
824
|
id: string;
|
|
825
|
+
timestamp: string;
|
|
826
826
|
questions: {
|
|
827
827
|
id: string;
|
|
828
828
|
question: string;
|
|
@@ -836,8 +836,8 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
836
836
|
}[];
|
|
837
837
|
}, {
|
|
838
838
|
type: "clarification_request";
|
|
839
|
-
timestamp: string;
|
|
840
839
|
id: string;
|
|
840
|
+
timestamp: string;
|
|
841
841
|
questions: {
|
|
842
842
|
id: string;
|
|
843
843
|
question: string;
|
|
@@ -896,8 +896,8 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
896
896
|
}>, "many">>;
|
|
897
897
|
}, "strip", z.ZodTypeAny, {
|
|
898
898
|
type: "clarification_response";
|
|
899
|
-
timestamp: string;
|
|
900
899
|
id: string;
|
|
900
|
+
timestamp: string;
|
|
901
901
|
answers: Record<string, string[]>;
|
|
902
902
|
originalQuestions?: {
|
|
903
903
|
id: string;
|
|
@@ -912,8 +912,8 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
912
912
|
}[] | undefined;
|
|
913
913
|
}, {
|
|
914
914
|
type: "clarification_response";
|
|
915
|
-
timestamp: string;
|
|
916
915
|
id: string;
|
|
916
|
+
timestamp: string;
|
|
917
917
|
answers: Record<string, string[]>;
|
|
918
918
|
originalQuestions?: {
|
|
919
919
|
id: string;
|
|
@@ -949,8 +949,8 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
949
949
|
}>;
|
|
950
950
|
}, "strip", z.ZodTypeAny, {
|
|
951
951
|
type: "context_request";
|
|
952
|
-
timestamp: string;
|
|
953
952
|
id: string;
|
|
953
|
+
timestamp: string;
|
|
954
954
|
request: {
|
|
955
955
|
description: string;
|
|
956
956
|
flowId: string;
|
|
@@ -959,8 +959,8 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
959
959
|
};
|
|
960
960
|
}, {
|
|
961
961
|
type: "context_request";
|
|
962
|
-
timestamp: string;
|
|
963
962
|
id: string;
|
|
963
|
+
timestamp: string;
|
|
964
964
|
request: {
|
|
965
965
|
description: string;
|
|
966
966
|
flowId: string;
|
|
@@ -994,10 +994,10 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
994
994
|
flowCode: string;
|
|
995
995
|
}>>;
|
|
996
996
|
}, "strip", z.ZodTypeAny, {
|
|
997
|
-
status: "
|
|
997
|
+
status: "success" | "error" | "rejected";
|
|
998
998
|
flowId: string;
|
|
999
|
-
error?: string | undefined;
|
|
1000
999
|
result?: unknown;
|
|
1000
|
+
error?: string | undefined;
|
|
1001
1001
|
originalRequest?: {
|
|
1002
1002
|
description: string;
|
|
1003
1003
|
flowId: string;
|
|
@@ -1005,10 +1005,10 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1005
1005
|
flowCode: string;
|
|
1006
1006
|
} | undefined;
|
|
1007
1007
|
}, {
|
|
1008
|
-
status: "
|
|
1008
|
+
status: "success" | "error" | "rejected";
|
|
1009
1009
|
flowId: string;
|
|
1010
|
-
error?: string | undefined;
|
|
1011
1010
|
result?: unknown;
|
|
1011
|
+
error?: string | undefined;
|
|
1012
1012
|
originalRequest?: {
|
|
1013
1013
|
description: string;
|
|
1014
1014
|
flowId: string;
|
|
@@ -1019,13 +1019,13 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1019
1019
|
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1020
1020
|
}, "strip", z.ZodTypeAny, {
|
|
1021
1021
|
type: "context_response";
|
|
1022
|
-
timestamp: string;
|
|
1023
1022
|
id: string;
|
|
1023
|
+
timestamp: string;
|
|
1024
1024
|
answer: {
|
|
1025
|
-
status: "
|
|
1025
|
+
status: "success" | "error" | "rejected";
|
|
1026
1026
|
flowId: string;
|
|
1027
|
-
error?: string | undefined;
|
|
1028
1027
|
result?: unknown;
|
|
1028
|
+
error?: string | undefined;
|
|
1029
1029
|
originalRequest?: {
|
|
1030
1030
|
description: string;
|
|
1031
1031
|
flowId: string;
|
|
@@ -1036,13 +1036,13 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1036
1036
|
credentialTypes?: string[] | undefined;
|
|
1037
1037
|
}, {
|
|
1038
1038
|
type: "context_response";
|
|
1039
|
-
timestamp: string;
|
|
1040
1039
|
id: string;
|
|
1040
|
+
timestamp: string;
|
|
1041
1041
|
answer: {
|
|
1042
|
-
status: "
|
|
1042
|
+
status: "success" | "error" | "rejected";
|
|
1043
1043
|
flowId: string;
|
|
1044
|
-
error?: string | undefined;
|
|
1045
1044
|
result?: unknown;
|
|
1045
|
+
error?: string | undefined;
|
|
1046
1046
|
originalRequest?: {
|
|
1047
1047
|
description: string;
|
|
1048
1048
|
flowId: string;
|
|
@@ -1091,8 +1091,8 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1091
1091
|
}>;
|
|
1092
1092
|
}, "strip", z.ZodTypeAny, {
|
|
1093
1093
|
type: "plan";
|
|
1094
|
-
timestamp: string;
|
|
1095
1094
|
id: string;
|
|
1095
|
+
timestamp: string;
|
|
1096
1096
|
plan: {
|
|
1097
1097
|
summary: string;
|
|
1098
1098
|
steps: {
|
|
@@ -1104,8 +1104,8 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1104
1104
|
};
|
|
1105
1105
|
}, {
|
|
1106
1106
|
type: "plan";
|
|
1107
|
-
timestamp: string;
|
|
1108
1107
|
id: string;
|
|
1108
|
+
timestamp: string;
|
|
1109
1109
|
plan: {
|
|
1110
1110
|
summary: string;
|
|
1111
1111
|
steps: {
|
|
@@ -1124,14 +1124,14 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1124
1124
|
comment: z.ZodOptional<z.ZodString>;
|
|
1125
1125
|
}, "strip", z.ZodTypeAny, {
|
|
1126
1126
|
type: "plan_approval";
|
|
1127
|
-
timestamp: string;
|
|
1128
1127
|
id: string;
|
|
1128
|
+
timestamp: string;
|
|
1129
1129
|
approved: boolean;
|
|
1130
1130
|
comment?: string | undefined;
|
|
1131
1131
|
}, {
|
|
1132
1132
|
type: "plan_approval";
|
|
1133
|
-
timestamp: string;
|
|
1134
1133
|
id: string;
|
|
1134
|
+
timestamp: string;
|
|
1135
1135
|
approved: boolean;
|
|
1136
1136
|
comment?: string | undefined;
|
|
1137
1137
|
}>, z.ZodObject<{
|
|
@@ -1141,15 +1141,15 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1141
1141
|
type: z.ZodLiteral<"system">;
|
|
1142
1142
|
content: z.ZodString;
|
|
1143
1143
|
}, "strip", z.ZodTypeAny, {
|
|
1144
|
-
content: string;
|
|
1145
1144
|
type: "system";
|
|
1146
|
-
|
|
1145
|
+
content: string;
|
|
1147
1146
|
id: string;
|
|
1147
|
+
timestamp: string;
|
|
1148
1148
|
}, {
|
|
1149
|
-
content: string;
|
|
1150
1149
|
type: "system";
|
|
1151
|
-
|
|
1150
|
+
content: string;
|
|
1152
1151
|
id: string;
|
|
1152
|
+
timestamp: string;
|
|
1153
1153
|
}>, z.ZodObject<{
|
|
1154
1154
|
id: z.ZodString;
|
|
1155
1155
|
timestamp: z.ZodString;
|
|
@@ -1162,21 +1162,21 @@ export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
1162
1162
|
duration: z.ZodNumber;
|
|
1163
1163
|
success: z.ZodBoolean;
|
|
1164
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1165
|
-
toolCallId: string;
|
|
1166
1165
|
type: "tool_result";
|
|
1167
|
-
timestamp: string;
|
|
1168
1166
|
duration: number;
|
|
1169
1167
|
id: string;
|
|
1168
|
+
toolCallId: string;
|
|
1169
|
+
timestamp: string;
|
|
1170
1170
|
success: boolean;
|
|
1171
1171
|
toolName: string;
|
|
1172
1172
|
input?: unknown;
|
|
1173
1173
|
output?: unknown;
|
|
1174
1174
|
}, {
|
|
1175
|
-
toolCallId: string;
|
|
1176
1175
|
type: "tool_result";
|
|
1177
|
-
timestamp: string;
|
|
1178
1176
|
duration: number;
|
|
1179
1177
|
id: string;
|
|
1178
|
+
toolCallId: string;
|
|
1179
|
+
timestamp: string;
|
|
1180
1180
|
success: boolean;
|
|
1181
1181
|
toolName: string;
|
|
1182
1182
|
input?: unknown;
|
|
@@ -1193,15 +1193,15 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1193
1193
|
type: z.ZodLiteral<"user">;
|
|
1194
1194
|
content: z.ZodString;
|
|
1195
1195
|
}, "strip", z.ZodTypeAny, {
|
|
1196
|
-
content: string;
|
|
1197
1196
|
type: "user";
|
|
1198
|
-
|
|
1197
|
+
content: string;
|
|
1199
1198
|
id: string;
|
|
1199
|
+
timestamp: string;
|
|
1200
1200
|
}, {
|
|
1201
|
-
content: string;
|
|
1202
1201
|
type: "user";
|
|
1203
|
-
|
|
1202
|
+
content: string;
|
|
1204
1203
|
id: string;
|
|
1204
|
+
timestamp: string;
|
|
1205
1205
|
}>, z.ZodObject<{
|
|
1206
1206
|
id: z.ZodString;
|
|
1207
1207
|
timestamp: z.ZodString;
|
|
@@ -1212,18 +1212,18 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1212
1212
|
resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>;
|
|
1213
1213
|
bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1214
1214
|
}, "strip", z.ZodTypeAny, {
|
|
1215
|
-
content: string;
|
|
1216
1215
|
type: "assistant";
|
|
1217
|
-
|
|
1216
|
+
content: string;
|
|
1218
1217
|
id: string;
|
|
1218
|
+
timestamp: string;
|
|
1219
1219
|
code?: string | undefined;
|
|
1220
1220
|
bubbleParameters?: Record<string, unknown> | undefined;
|
|
1221
1221
|
resultType?: "code" | "question" | "answer" | "reject" | undefined;
|
|
1222
1222
|
}, {
|
|
1223
|
-
content: string;
|
|
1224
1223
|
type: "assistant";
|
|
1225
|
-
|
|
1224
|
+
content: string;
|
|
1226
1225
|
id: string;
|
|
1226
|
+
timestamp: string;
|
|
1227
1227
|
code?: string | undefined;
|
|
1228
1228
|
bubbleParameters?: Record<string, unknown> | undefined;
|
|
1229
1229
|
resultType?: "code" | "question" | "answer" | "reject" | undefined;
|
|
@@ -1273,8 +1273,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1273
1273
|
}>, "many">;
|
|
1274
1274
|
}, "strip", z.ZodTypeAny, {
|
|
1275
1275
|
type: "clarification_request";
|
|
1276
|
-
timestamp: string;
|
|
1277
1276
|
id: string;
|
|
1277
|
+
timestamp: string;
|
|
1278
1278
|
questions: {
|
|
1279
1279
|
id: string;
|
|
1280
1280
|
question: string;
|
|
@@ -1288,8 +1288,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1288
1288
|
}[];
|
|
1289
1289
|
}, {
|
|
1290
1290
|
type: "clarification_request";
|
|
1291
|
-
timestamp: string;
|
|
1292
1291
|
id: string;
|
|
1292
|
+
timestamp: string;
|
|
1293
1293
|
questions: {
|
|
1294
1294
|
id: string;
|
|
1295
1295
|
question: string;
|
|
@@ -1348,8 +1348,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1348
1348
|
}>, "many">>;
|
|
1349
1349
|
}, "strip", z.ZodTypeAny, {
|
|
1350
1350
|
type: "clarification_response";
|
|
1351
|
-
timestamp: string;
|
|
1352
1351
|
id: string;
|
|
1352
|
+
timestamp: string;
|
|
1353
1353
|
answers: Record<string, string[]>;
|
|
1354
1354
|
originalQuestions?: {
|
|
1355
1355
|
id: string;
|
|
@@ -1364,8 +1364,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1364
1364
|
}[] | undefined;
|
|
1365
1365
|
}, {
|
|
1366
1366
|
type: "clarification_response";
|
|
1367
|
-
timestamp: string;
|
|
1368
1367
|
id: string;
|
|
1368
|
+
timestamp: string;
|
|
1369
1369
|
answers: Record<string, string[]>;
|
|
1370
1370
|
originalQuestions?: {
|
|
1371
1371
|
id: string;
|
|
@@ -1401,8 +1401,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1401
1401
|
}>;
|
|
1402
1402
|
}, "strip", z.ZodTypeAny, {
|
|
1403
1403
|
type: "context_request";
|
|
1404
|
-
timestamp: string;
|
|
1405
1404
|
id: string;
|
|
1405
|
+
timestamp: string;
|
|
1406
1406
|
request: {
|
|
1407
1407
|
description: string;
|
|
1408
1408
|
flowId: string;
|
|
@@ -1411,8 +1411,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1411
1411
|
};
|
|
1412
1412
|
}, {
|
|
1413
1413
|
type: "context_request";
|
|
1414
|
-
timestamp: string;
|
|
1415
1414
|
id: string;
|
|
1415
|
+
timestamp: string;
|
|
1416
1416
|
request: {
|
|
1417
1417
|
description: string;
|
|
1418
1418
|
flowId: string;
|
|
@@ -1446,10 +1446,10 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1446
1446
|
flowCode: string;
|
|
1447
1447
|
}>>;
|
|
1448
1448
|
}, "strip", z.ZodTypeAny, {
|
|
1449
|
-
status: "
|
|
1449
|
+
status: "success" | "error" | "rejected";
|
|
1450
1450
|
flowId: string;
|
|
1451
|
-
error?: string | undefined;
|
|
1452
1451
|
result?: unknown;
|
|
1452
|
+
error?: string | undefined;
|
|
1453
1453
|
originalRequest?: {
|
|
1454
1454
|
description: string;
|
|
1455
1455
|
flowId: string;
|
|
@@ -1457,10 +1457,10 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1457
1457
|
flowCode: string;
|
|
1458
1458
|
} | undefined;
|
|
1459
1459
|
}, {
|
|
1460
|
-
status: "
|
|
1460
|
+
status: "success" | "error" | "rejected";
|
|
1461
1461
|
flowId: string;
|
|
1462
|
-
error?: string | undefined;
|
|
1463
1462
|
result?: unknown;
|
|
1463
|
+
error?: string | undefined;
|
|
1464
1464
|
originalRequest?: {
|
|
1465
1465
|
description: string;
|
|
1466
1466
|
flowId: string;
|
|
@@ -1471,13 +1471,13 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1471
1471
|
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1472
1472
|
}, "strip", z.ZodTypeAny, {
|
|
1473
1473
|
type: "context_response";
|
|
1474
|
-
timestamp: string;
|
|
1475
1474
|
id: string;
|
|
1475
|
+
timestamp: string;
|
|
1476
1476
|
answer: {
|
|
1477
|
-
status: "
|
|
1477
|
+
status: "success" | "error" | "rejected";
|
|
1478
1478
|
flowId: string;
|
|
1479
|
-
error?: string | undefined;
|
|
1480
1479
|
result?: unknown;
|
|
1480
|
+
error?: string | undefined;
|
|
1481
1481
|
originalRequest?: {
|
|
1482
1482
|
description: string;
|
|
1483
1483
|
flowId: string;
|
|
@@ -1488,13 +1488,13 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1488
1488
|
credentialTypes?: string[] | undefined;
|
|
1489
1489
|
}, {
|
|
1490
1490
|
type: "context_response";
|
|
1491
|
-
timestamp: string;
|
|
1492
1491
|
id: string;
|
|
1492
|
+
timestamp: string;
|
|
1493
1493
|
answer: {
|
|
1494
|
-
status: "
|
|
1494
|
+
status: "success" | "error" | "rejected";
|
|
1495
1495
|
flowId: string;
|
|
1496
|
-
error?: string | undefined;
|
|
1497
1496
|
result?: unknown;
|
|
1497
|
+
error?: string | undefined;
|
|
1498
1498
|
originalRequest?: {
|
|
1499
1499
|
description: string;
|
|
1500
1500
|
flowId: string;
|
|
@@ -1543,8 +1543,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1543
1543
|
}>;
|
|
1544
1544
|
}, "strip", z.ZodTypeAny, {
|
|
1545
1545
|
type: "plan";
|
|
1546
|
-
timestamp: string;
|
|
1547
1546
|
id: string;
|
|
1547
|
+
timestamp: string;
|
|
1548
1548
|
plan: {
|
|
1549
1549
|
summary: string;
|
|
1550
1550
|
steps: {
|
|
@@ -1556,8 +1556,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1556
1556
|
};
|
|
1557
1557
|
}, {
|
|
1558
1558
|
type: "plan";
|
|
1559
|
-
timestamp: string;
|
|
1560
1559
|
id: string;
|
|
1560
|
+
timestamp: string;
|
|
1561
1561
|
plan: {
|
|
1562
1562
|
summary: string;
|
|
1563
1563
|
steps: {
|
|
@@ -1576,14 +1576,14 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1576
1576
|
comment: z.ZodOptional<z.ZodString>;
|
|
1577
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1578
1578
|
type: "plan_approval";
|
|
1579
|
-
timestamp: string;
|
|
1580
1579
|
id: string;
|
|
1580
|
+
timestamp: string;
|
|
1581
1581
|
approved: boolean;
|
|
1582
1582
|
comment?: string | undefined;
|
|
1583
1583
|
}, {
|
|
1584
1584
|
type: "plan_approval";
|
|
1585
|
-
timestamp: string;
|
|
1586
1585
|
id: string;
|
|
1586
|
+
timestamp: string;
|
|
1587
1587
|
approved: boolean;
|
|
1588
1588
|
comment?: string | undefined;
|
|
1589
1589
|
}>, z.ZodObject<{
|
|
@@ -1593,15 +1593,15 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1593
1593
|
type: z.ZodLiteral<"system">;
|
|
1594
1594
|
content: z.ZodString;
|
|
1595
1595
|
}, "strip", z.ZodTypeAny, {
|
|
1596
|
-
content: string;
|
|
1597
1596
|
type: "system";
|
|
1598
|
-
|
|
1597
|
+
content: string;
|
|
1599
1598
|
id: string;
|
|
1599
|
+
timestamp: string;
|
|
1600
1600
|
}, {
|
|
1601
|
-
content: string;
|
|
1602
1601
|
type: "system";
|
|
1603
|
-
|
|
1602
|
+
content: string;
|
|
1604
1603
|
id: string;
|
|
1604
|
+
timestamp: string;
|
|
1605
1605
|
}>, z.ZodObject<{
|
|
1606
1606
|
id: z.ZodString;
|
|
1607
1607
|
timestamp: z.ZodString;
|
|
@@ -1614,21 +1614,21 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1614
1614
|
duration: z.ZodNumber;
|
|
1615
1615
|
success: z.ZodBoolean;
|
|
1616
1616
|
}, "strip", z.ZodTypeAny, {
|
|
1617
|
-
toolCallId: string;
|
|
1618
1617
|
type: "tool_result";
|
|
1619
|
-
timestamp: string;
|
|
1620
1618
|
duration: number;
|
|
1621
1619
|
id: string;
|
|
1620
|
+
toolCallId: string;
|
|
1621
|
+
timestamp: string;
|
|
1622
1622
|
success: boolean;
|
|
1623
1623
|
toolName: string;
|
|
1624
1624
|
input?: unknown;
|
|
1625
1625
|
output?: unknown;
|
|
1626
1626
|
}, {
|
|
1627
|
-
toolCallId: string;
|
|
1628
1627
|
type: "tool_result";
|
|
1629
|
-
timestamp: string;
|
|
1630
1628
|
duration: number;
|
|
1631
1629
|
id: string;
|
|
1630
|
+
toolCallId: string;
|
|
1631
|
+
timestamp: string;
|
|
1632
1632
|
success: boolean;
|
|
1633
1633
|
toolName: string;
|
|
1634
1634
|
input?: unknown;
|
|
@@ -1638,22 +1638,22 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1638
1638
|
prompt: string;
|
|
1639
1639
|
flowId?: number | undefined;
|
|
1640
1640
|
messages?: ({
|
|
1641
|
-
content: string;
|
|
1642
1641
|
type: "user";
|
|
1643
|
-
|
|
1642
|
+
content: string;
|
|
1644
1643
|
id: string;
|
|
1644
|
+
timestamp: string;
|
|
1645
1645
|
} | {
|
|
1646
|
-
content: string;
|
|
1647
1646
|
type: "assistant";
|
|
1648
|
-
|
|
1647
|
+
content: string;
|
|
1649
1648
|
id: string;
|
|
1649
|
+
timestamp: string;
|
|
1650
1650
|
code?: string | undefined;
|
|
1651
1651
|
bubbleParameters?: Record<string, unknown> | undefined;
|
|
1652
1652
|
resultType?: "code" | "question" | "answer" | "reject" | undefined;
|
|
1653
1653
|
} | {
|
|
1654
1654
|
type: "clarification_request";
|
|
1655
|
-
timestamp: string;
|
|
1656
1655
|
id: string;
|
|
1656
|
+
timestamp: string;
|
|
1657
1657
|
questions: {
|
|
1658
1658
|
id: string;
|
|
1659
1659
|
question: string;
|
|
@@ -1667,8 +1667,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1667
1667
|
}[];
|
|
1668
1668
|
} | {
|
|
1669
1669
|
type: "clarification_response";
|
|
1670
|
-
timestamp: string;
|
|
1671
1670
|
id: string;
|
|
1671
|
+
timestamp: string;
|
|
1672
1672
|
answers: Record<string, string[]>;
|
|
1673
1673
|
originalQuestions?: {
|
|
1674
1674
|
id: string;
|
|
@@ -1683,8 +1683,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1683
1683
|
}[] | undefined;
|
|
1684
1684
|
} | {
|
|
1685
1685
|
type: "context_request";
|
|
1686
|
-
timestamp: string;
|
|
1687
1686
|
id: string;
|
|
1687
|
+
timestamp: string;
|
|
1688
1688
|
request: {
|
|
1689
1689
|
description: string;
|
|
1690
1690
|
flowId: string;
|
|
@@ -1693,13 +1693,13 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1693
1693
|
};
|
|
1694
1694
|
} | {
|
|
1695
1695
|
type: "context_response";
|
|
1696
|
-
timestamp: string;
|
|
1697
1696
|
id: string;
|
|
1697
|
+
timestamp: string;
|
|
1698
1698
|
answer: {
|
|
1699
|
-
status: "
|
|
1699
|
+
status: "success" | "error" | "rejected";
|
|
1700
1700
|
flowId: string;
|
|
1701
|
-
error?: string | undefined;
|
|
1702
1701
|
result?: unknown;
|
|
1702
|
+
error?: string | undefined;
|
|
1703
1703
|
originalRequest?: {
|
|
1704
1704
|
description: string;
|
|
1705
1705
|
flowId: string;
|
|
@@ -1710,8 +1710,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1710
1710
|
credentialTypes?: string[] | undefined;
|
|
1711
1711
|
} | {
|
|
1712
1712
|
type: "plan";
|
|
1713
|
-
timestamp: string;
|
|
1714
1713
|
id: string;
|
|
1714
|
+
timestamp: string;
|
|
1715
1715
|
plan: {
|
|
1716
1716
|
summary: string;
|
|
1717
1717
|
steps: {
|
|
@@ -1723,21 +1723,21 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1723
1723
|
};
|
|
1724
1724
|
} | {
|
|
1725
1725
|
type: "plan_approval";
|
|
1726
|
-
timestamp: string;
|
|
1727
1726
|
id: string;
|
|
1727
|
+
timestamp: string;
|
|
1728
1728
|
approved: boolean;
|
|
1729
1729
|
comment?: string | undefined;
|
|
1730
1730
|
} | {
|
|
1731
|
-
content: string;
|
|
1732
1731
|
type: "system";
|
|
1733
|
-
|
|
1732
|
+
content: string;
|
|
1734
1733
|
id: string;
|
|
1734
|
+
timestamp: string;
|
|
1735
1735
|
} | {
|
|
1736
|
-
toolCallId: string;
|
|
1737
1736
|
type: "tool_result";
|
|
1738
|
-
timestamp: string;
|
|
1739
1737
|
duration: number;
|
|
1740
1738
|
id: string;
|
|
1739
|
+
toolCallId: string;
|
|
1740
|
+
timestamp: string;
|
|
1741
1741
|
success: boolean;
|
|
1742
1742
|
toolName: string;
|
|
1743
1743
|
input?: unknown;
|
|
@@ -1747,22 +1747,22 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1747
1747
|
prompt: string;
|
|
1748
1748
|
flowId?: number | undefined;
|
|
1749
1749
|
messages?: ({
|
|
1750
|
-
content: string;
|
|
1751
1750
|
type: "user";
|
|
1752
|
-
|
|
1751
|
+
content: string;
|
|
1753
1752
|
id: string;
|
|
1753
|
+
timestamp: string;
|
|
1754
1754
|
} | {
|
|
1755
|
-
content: string;
|
|
1756
1755
|
type: "assistant";
|
|
1757
|
-
|
|
1756
|
+
content: string;
|
|
1758
1757
|
id: string;
|
|
1758
|
+
timestamp: string;
|
|
1759
1759
|
code?: string | undefined;
|
|
1760
1760
|
bubbleParameters?: Record<string, unknown> | undefined;
|
|
1761
1761
|
resultType?: "code" | "question" | "answer" | "reject" | undefined;
|
|
1762
1762
|
} | {
|
|
1763
1763
|
type: "clarification_request";
|
|
1764
|
-
timestamp: string;
|
|
1765
1764
|
id: string;
|
|
1765
|
+
timestamp: string;
|
|
1766
1766
|
questions: {
|
|
1767
1767
|
id: string;
|
|
1768
1768
|
question: string;
|
|
@@ -1776,8 +1776,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1776
1776
|
}[];
|
|
1777
1777
|
} | {
|
|
1778
1778
|
type: "clarification_response";
|
|
1779
|
-
timestamp: string;
|
|
1780
1779
|
id: string;
|
|
1780
|
+
timestamp: string;
|
|
1781
1781
|
answers: Record<string, string[]>;
|
|
1782
1782
|
originalQuestions?: {
|
|
1783
1783
|
id: string;
|
|
@@ -1792,8 +1792,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1792
1792
|
}[] | undefined;
|
|
1793
1793
|
} | {
|
|
1794
1794
|
type: "context_request";
|
|
1795
|
-
timestamp: string;
|
|
1796
1795
|
id: string;
|
|
1796
|
+
timestamp: string;
|
|
1797
1797
|
request: {
|
|
1798
1798
|
description: string;
|
|
1799
1799
|
flowId: string;
|
|
@@ -1802,13 +1802,13 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1802
1802
|
};
|
|
1803
1803
|
} | {
|
|
1804
1804
|
type: "context_response";
|
|
1805
|
-
timestamp: string;
|
|
1806
1805
|
id: string;
|
|
1806
|
+
timestamp: string;
|
|
1807
1807
|
answer: {
|
|
1808
|
-
status: "
|
|
1808
|
+
status: "success" | "error" | "rejected";
|
|
1809
1809
|
flowId: string;
|
|
1810
|
-
error?: string | undefined;
|
|
1811
1810
|
result?: unknown;
|
|
1811
|
+
error?: string | undefined;
|
|
1812
1812
|
originalRequest?: {
|
|
1813
1813
|
description: string;
|
|
1814
1814
|
flowId: string;
|
|
@@ -1819,8 +1819,8 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1819
1819
|
credentialTypes?: string[] | undefined;
|
|
1820
1820
|
} | {
|
|
1821
1821
|
type: "plan";
|
|
1822
|
-
timestamp: string;
|
|
1823
1822
|
id: string;
|
|
1823
|
+
timestamp: string;
|
|
1824
1824
|
plan: {
|
|
1825
1825
|
summary: string;
|
|
1826
1826
|
steps: {
|
|
@@ -1832,21 +1832,21 @@ export declare const CoffeeRequestSchema: z.ZodObject<{
|
|
|
1832
1832
|
};
|
|
1833
1833
|
} | {
|
|
1834
1834
|
type: "plan_approval";
|
|
1835
|
-
timestamp: string;
|
|
1836
1835
|
id: string;
|
|
1836
|
+
timestamp: string;
|
|
1837
1837
|
approved: boolean;
|
|
1838
1838
|
comment?: string | undefined;
|
|
1839
1839
|
} | {
|
|
1840
|
-
content: string;
|
|
1841
1840
|
type: "system";
|
|
1842
|
-
|
|
1841
|
+
content: string;
|
|
1843
1842
|
id: string;
|
|
1843
|
+
timestamp: string;
|
|
1844
1844
|
} | {
|
|
1845
|
-
toolCallId: string;
|
|
1846
1845
|
type: "tool_result";
|
|
1847
|
-
timestamp: string;
|
|
1848
1846
|
duration: number;
|
|
1849
1847
|
id: string;
|
|
1848
|
+
toolCallId: string;
|
|
1849
|
+
timestamp: string;
|
|
1850
1850
|
success: boolean;
|
|
1851
1851
|
toolName: string;
|
|
1852
1852
|
input?: unknown;
|