@bubblelab/shared-schemas 0.1.12 → 0.1.13

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.
Files changed (113) hide show
  1. package/dist/index.d.ts +10076 -29
  2. package/dist/index.js +3328 -30
  3. package/dist/index.js.map +1 -1
  4. package/package.json +3 -2
  5. package/dist/agent-memory.d.ts +0 -21
  6. package/dist/agent-memory.d.ts.map +0 -1
  7. package/dist/agent-memory.js +0 -11
  8. package/dist/agent-memory.js.map +0 -1
  9. package/dist/ai-models.d.ts +0 -4
  10. package/dist/ai-models.d.ts.map +0 -1
  11. package/dist/ai-models.js +0 -31
  12. package/dist/ai-models.js.map +0 -1
  13. package/dist/api-schema.d.ts +0 -38
  14. package/dist/api-schema.d.ts.map +0 -1
  15. package/dist/api-schema.js +0 -26
  16. package/dist/api-schema.js.map +0 -1
  17. package/dist/bubble-definition-schema.d.ts +0 -840
  18. package/dist/bubble-definition-schema.d.ts.map +0 -1
  19. package/dist/bubble-definition-schema.js +0 -299
  20. package/dist/bubble-definition-schema.js.map +0 -1
  21. package/dist/bubbleflow-execution-schema.d.ts +0 -1297
  22. package/dist/bubbleflow-execution-schema.d.ts.map +0 -1
  23. package/dist/bubbleflow-execution-schema.js +0 -360
  24. package/dist/bubbleflow-execution-schema.js.map +0 -1
  25. package/dist/bubbleflow-generation-prompts.d.ts +0 -8
  26. package/dist/bubbleflow-generation-prompts.d.ts.map +0 -1
  27. package/dist/bubbleflow-generation-prompts.js +0 -17
  28. package/dist/bubbleflow-generation-prompts.js.map +0 -1
  29. package/dist/bubbleflow-schema.d.ts +0 -2071
  30. package/dist/bubbleflow-schema.d.ts.map +0 -1
  31. package/dist/bubbleflow-schema.js +0 -336
  32. package/dist/bubbleflow-schema.js.map +0 -1
  33. package/dist/coffee.d.ts +0 -2201
  34. package/dist/coffee.d.ts.map +0 -1
  35. package/dist/coffee.js +0 -257
  36. package/dist/coffee.js.map +0 -1
  37. package/dist/credential-schema.d.ts +0 -574
  38. package/dist/credential-schema.d.ts.map +0 -1
  39. package/dist/credential-schema.js +0 -829
  40. package/dist/credential-schema.js.map +0 -1
  41. package/dist/cron-utils.d.ts +0 -47
  42. package/dist/cron-utils.d.ts.map +0 -1
  43. package/dist/cron-utils.js +0 -228
  44. package/dist/cron-utils.js.map +0 -1
  45. package/dist/database-definition-schema.d.ts +0 -97
  46. package/dist/database-definition-schema.d.ts.map +0 -1
  47. package/dist/database-definition-schema.js +0 -36
  48. package/dist/database-definition-schema.js.map +0 -1
  49. package/dist/error-enhancer.d.ts +0 -6
  50. package/dist/error-enhancer.d.ts.map +0 -1
  51. package/dist/error-enhancer.js +0 -88
  52. package/dist/error-enhancer.js.map +0 -1
  53. package/dist/generate-bubbleflow-schema.d.ts +0 -1525
  54. package/dist/generate-bubbleflow-schema.d.ts.map +0 -1
  55. package/dist/generate-bubbleflow-schema.js +0 -304
  56. package/dist/generate-bubbleflow-schema.js.map +0 -1
  57. package/dist/hash-utils.d.ts +0 -26
  58. package/dist/hash-utils.d.ts.map +0 -1
  59. package/dist/hash-utils.js +0 -37
  60. package/dist/hash-utils.js.map +0 -1
  61. package/dist/index.d.ts.map +0 -1
  62. package/dist/milk-tea.d.ts +0 -106
  63. package/dist/milk-tea.d.ts.map +0 -1
  64. package/dist/milk-tea.js +0 -71
  65. package/dist/milk-tea.js.map +0 -1
  66. package/dist/mock-data-generator.d.ts +0 -51
  67. package/dist/mock-data-generator.d.ts.map +0 -1
  68. package/dist/mock-data-generator.js +0 -335
  69. package/dist/mock-data-generator.js.map +0 -1
  70. package/dist/oauth-schema.d.ts +0 -61
  71. package/dist/oauth-schema.d.ts.map +0 -1
  72. package/dist/oauth-schema.js +0 -75
  73. package/dist/oauth-schema.js.map +0 -1
  74. package/dist/param-utils.d.ts +0 -10
  75. package/dist/param-utils.d.ts.map +0 -1
  76. package/dist/param-utils.js +0 -13
  77. package/dist/param-utils.js.map +0 -1
  78. package/dist/pearl.d.ts +0 -346
  79. package/dist/pearl.d.ts.map +0 -1
  80. package/dist/pearl.js +0 -90
  81. package/dist/pearl.js.map +0 -1
  82. package/dist/rice.d.ts +0 -100
  83. package/dist/rice.d.ts.map +0 -1
  84. package/dist/rice.js +0 -65
  85. package/dist/rice.js.map +0 -1
  86. package/dist/storage-utils.d.ts +0 -19
  87. package/dist/storage-utils.d.ts.map +0 -1
  88. package/dist/storage-utils.js +0 -54
  89. package/dist/storage-utils.js.map +0 -1
  90. package/dist/streaming-events.d.ts +0 -140
  91. package/dist/streaming-events.d.ts.map +0 -1
  92. package/dist/streaming-events.js +0 -5
  93. package/dist/streaming-events.js.map +0 -1
  94. package/dist/subscription-status-schema.d.ts +0 -250
  95. package/dist/subscription-status-schema.d.ts.map +0 -1
  96. package/dist/subscription-status-schema.js +0 -144
  97. package/dist/subscription-status-schema.js.map +0 -1
  98. package/dist/trigger.d.ts +0 -113
  99. package/dist/trigger.d.ts.map +0 -1
  100. package/dist/trigger.js +0 -12
  101. package/dist/trigger.js.map +0 -1
  102. package/dist/types.d.ts +0 -31
  103. package/dist/types.d.ts.map +0 -1
  104. package/dist/types.js +0 -47
  105. package/dist/types.js.map +0 -1
  106. package/dist/waitlist-schema.d.ts +0 -30
  107. package/dist/waitlist-schema.d.ts.map +0 -1
  108. package/dist/waitlist-schema.js +0 -39
  109. package/dist/waitlist-schema.js.map +0 -1
  110. package/dist/webhook-schema.d.ts +0 -95
  111. package/dist/webhook-schema.d.ts.map +0 -1
  112. package/dist/webhook-schema.js +0 -50
  113. package/dist/webhook-schema.js.map +0 -1
package/dist/coffee.d.ts DELETED
@@ -1,2201 +0,0 @@
1
- import { z } from 'zod';
2
- import { CredentialType } from './types.js';
3
- export declare const COFFEE_MAX_ITERATIONS = 30;
4
- export declare const COFFEE_MAX_QUESTIONS = 5;
5
- export declare const COFFEE_DEFAULT_MODEL: "google/gemini-3-pro-preview";
6
- /** A single choice option for a clarification question */
7
- export declare const ClarificationChoiceSchema: z.ZodObject<{
8
- id: z.ZodString;
9
- label: z.ZodString;
10
- description: z.ZodOptional<z.ZodString>;
11
- }, "strip", z.ZodTypeAny, {
12
- id: string;
13
- label: string;
14
- description?: string | undefined;
15
- }, {
16
- id: string;
17
- label: string;
18
- description?: string | undefined;
19
- }>;
20
- /** A clarification question with multiple choices */
21
- export declare const ClarificationQuestionSchema: z.ZodObject<{
22
- id: z.ZodString;
23
- question: z.ZodString;
24
- choices: z.ZodArray<z.ZodObject<{
25
- id: z.ZodString;
26
- label: z.ZodString;
27
- description: z.ZodOptional<z.ZodString>;
28
- }, "strip", z.ZodTypeAny, {
29
- id: string;
30
- label: string;
31
- description?: string | undefined;
32
- }, {
33
- id: string;
34
- label: string;
35
- description?: string | undefined;
36
- }>, "many">;
37
- context: z.ZodOptional<z.ZodString>;
38
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
39
- }, "strip", z.ZodTypeAny, {
40
- id: string;
41
- question: string;
42
- choices: {
43
- id: string;
44
- label: string;
45
- description?: string | undefined;
46
- }[];
47
- allowMultiple: boolean;
48
- context?: string | undefined;
49
- }, {
50
- id: string;
51
- question: string;
52
- choices: {
53
- id: string;
54
- label: string;
55
- description?: string | undefined;
56
- }[];
57
- context?: string | undefined;
58
- allowMultiple?: boolean | undefined;
59
- }>;
60
- /** Event sent to frontend containing clarification questions */
61
- export declare const CoffeeClarificationEventSchema: z.ZodObject<{
62
- questions: z.ZodArray<z.ZodObject<{
63
- id: z.ZodString;
64
- question: z.ZodString;
65
- choices: z.ZodArray<z.ZodObject<{
66
- id: z.ZodString;
67
- label: z.ZodString;
68
- description: z.ZodOptional<z.ZodString>;
69
- }, "strip", z.ZodTypeAny, {
70
- id: string;
71
- label: string;
72
- description?: string | undefined;
73
- }, {
74
- id: string;
75
- label: string;
76
- description?: string | undefined;
77
- }>, "many">;
78
- context: z.ZodOptional<z.ZodString>;
79
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
80
- }, "strip", z.ZodTypeAny, {
81
- id: string;
82
- question: string;
83
- choices: {
84
- id: string;
85
- label: string;
86
- description?: string | undefined;
87
- }[];
88
- allowMultiple: boolean;
89
- context?: string | undefined;
90
- }, {
91
- id: string;
92
- question: string;
93
- choices: {
94
- id: string;
95
- label: string;
96
- description?: string | undefined;
97
- }[];
98
- context?: string | undefined;
99
- allowMultiple?: boolean | undefined;
100
- }>, "many">;
101
- }, "strip", z.ZodTypeAny, {
102
- questions: {
103
- id: string;
104
- question: string;
105
- choices: {
106
- id: string;
107
- label: string;
108
- description?: string | undefined;
109
- }[];
110
- allowMultiple: boolean;
111
- context?: string | undefined;
112
- }[];
113
- }, {
114
- questions: {
115
- id: string;
116
- question: string;
117
- choices: {
118
- id: string;
119
- label: string;
120
- description?: string | undefined;
121
- }[];
122
- context?: string | undefined;
123
- allowMultiple?: boolean | undefined;
124
- }[];
125
- }>;
126
- /**
127
- * Event sent when Coffee requests external context via running a BubbleFlow.
128
- * This pauses the planning process until the user provides credentials and approves execution.
129
- */
130
- export declare const CoffeeRequestExternalContextEventSchema: z.ZodObject<{
131
- flowId: z.ZodString;
132
- flowCode: z.ZodString;
133
- requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
134
- description: z.ZodString;
135
- }, "strip", z.ZodTypeAny, {
136
- description: string;
137
- flowId: string;
138
- requiredCredentials: CredentialType[];
139
- flowCode: string;
140
- }, {
141
- description: string;
142
- flowId: string;
143
- requiredCredentials: CredentialType[];
144
- flowCode: string;
145
- }>;
146
- /**
147
- * Answer sent back to Coffee after user provides credentials and flow executes.
148
- * This is used to resume the planning process with enriched context.
149
- */
150
- export declare const CoffeeContextAnswerSchema: z.ZodObject<{
151
- flowId: z.ZodString;
152
- status: z.ZodEnum<["success", "rejected", "error"]>;
153
- result: z.ZodOptional<z.ZodUnknown>;
154
- error: z.ZodOptional<z.ZodString>;
155
- originalRequest: z.ZodOptional<z.ZodObject<{
156
- flowId: z.ZodString;
157
- flowCode: z.ZodString;
158
- requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
159
- description: z.ZodString;
160
- }, "strip", z.ZodTypeAny, {
161
- description: string;
162
- flowId: string;
163
- requiredCredentials: CredentialType[];
164
- flowCode: string;
165
- }, {
166
- description: string;
167
- flowId: string;
168
- requiredCredentials: CredentialType[];
169
- flowCode: string;
170
- }>>;
171
- }, "strip", z.ZodTypeAny, {
172
- status: "success" | "error" | "rejected";
173
- flowId: string;
174
- result?: unknown;
175
- error?: string | undefined;
176
- originalRequest?: {
177
- description: string;
178
- flowId: string;
179
- requiredCredentials: CredentialType[];
180
- flowCode: string;
181
- } | undefined;
182
- }, {
183
- status: "success" | "error" | "rejected";
184
- flowId: string;
185
- result?: unknown;
186
- error?: string | undefined;
187
- originalRequest?: {
188
- description: string;
189
- flowId: string;
190
- requiredCredentials: CredentialType[];
191
- flowCode: string;
192
- } | undefined;
193
- }>;
194
- /**
195
- * Context request info that the agent generates when it wants to run a flow.
196
- */
197
- export declare const CoffeeContextRequestInfoSchema: z.ZodObject<{
198
- purpose: z.ZodString;
199
- flowDescription: z.ZodString;
200
- }, "strip", z.ZodTypeAny, {
201
- purpose: string;
202
- flowDescription: string;
203
- }, {
204
- purpose: string;
205
- flowDescription: string;
206
- }>;
207
- /** Legacy context gathering status (used in streaming events) */
208
- export declare const CoffeeContextEventSchema: z.ZodObject<{
209
- status: z.ZodEnum<["gathering", "complete"]>;
210
- miniFlowDescription: z.ZodOptional<z.ZodString>;
211
- result: z.ZodOptional<z.ZodString>;
212
- }, "strip", z.ZodTypeAny, {
213
- status: "gathering" | "complete";
214
- result?: string | undefined;
215
- miniFlowDescription?: string | undefined;
216
- }, {
217
- status: "gathering" | "complete";
218
- result?: string | undefined;
219
- miniFlowDescription?: string | undefined;
220
- }>;
221
- /** A single step in the implementation plan */
222
- export declare const PlanStepSchema: z.ZodObject<{
223
- title: z.ZodString;
224
- description: z.ZodString;
225
- bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
226
- }, "strip", z.ZodTypeAny, {
227
- description: string;
228
- title: string;
229
- bubblesUsed?: string[] | undefined;
230
- }, {
231
- description: string;
232
- title: string;
233
- bubblesUsed?: string[] | undefined;
234
- }>;
235
- /** The complete implementation plan generated by Coffee */
236
- export declare const CoffeePlanEventSchema: z.ZodObject<{
237
- summary: z.ZodString;
238
- steps: z.ZodArray<z.ZodObject<{
239
- title: z.ZodString;
240
- description: z.ZodString;
241
- bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
242
- }, "strip", z.ZodTypeAny, {
243
- description: string;
244
- title: string;
245
- bubblesUsed?: string[] | undefined;
246
- }, {
247
- description: string;
248
- title: string;
249
- bubblesUsed?: string[] | undefined;
250
- }>, "many">;
251
- estimatedBubbles: z.ZodArray<z.ZodString, "many">;
252
- }, "strip", z.ZodTypeAny, {
253
- summary: string;
254
- steps: {
255
- description: string;
256
- title: string;
257
- bubblesUsed?: string[] | undefined;
258
- }[];
259
- estimatedBubbles: string[];
260
- }, {
261
- summary: string;
262
- steps: {
263
- description: string;
264
- title: string;
265
- bubblesUsed?: string[] | undefined;
266
- }[];
267
- estimatedBubbles: string[];
268
- }>;
269
- /** Regular user text message */
270
- export declare const UserMessageSchema: z.ZodObject<{
271
- id: z.ZodString;
272
- timestamp: z.ZodString;
273
- } & {
274
- type: z.ZodLiteral<"user">;
275
- content: z.ZodString;
276
- }, "strip", z.ZodTypeAny, {
277
- type: "user";
278
- content: string;
279
- id: string;
280
- timestamp: string;
281
- }, {
282
- type: "user";
283
- content: string;
284
- id: string;
285
- timestamp: string;
286
- }>;
287
- /** Regular assistant text message */
288
- export declare const AssistantMessageSchema: z.ZodObject<{
289
- id: z.ZodString;
290
- timestamp: z.ZodString;
291
- } & {
292
- type: z.ZodLiteral<"assistant">;
293
- content: z.ZodString;
294
- code: z.ZodOptional<z.ZodString>;
295
- resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>;
296
- bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
297
- }, "strip", z.ZodTypeAny, {
298
- type: "assistant";
299
- content: string;
300
- id: string;
301
- timestamp: string;
302
- code?: string | undefined;
303
- bubbleParameters?: Record<string, unknown> | undefined;
304
- resultType?: "code" | "question" | "answer" | "reject" | undefined;
305
- }, {
306
- type: "assistant";
307
- content: string;
308
- id: string;
309
- timestamp: string;
310
- code?: string | undefined;
311
- bubbleParameters?: Record<string, unknown> | undefined;
312
- resultType?: "code" | "question" | "answer" | "reject" | undefined;
313
- }>;
314
- /** Coffee asking clarification questions */
315
- export declare const ClarificationRequestMessageSchema: z.ZodObject<{
316
- id: z.ZodString;
317
- timestamp: z.ZodString;
318
- } & {
319
- type: z.ZodLiteral<"clarification_request">;
320
- questions: z.ZodArray<z.ZodObject<{
321
- id: z.ZodString;
322
- question: z.ZodString;
323
- choices: z.ZodArray<z.ZodObject<{
324
- id: z.ZodString;
325
- label: z.ZodString;
326
- description: z.ZodOptional<z.ZodString>;
327
- }, "strip", z.ZodTypeAny, {
328
- id: string;
329
- label: string;
330
- description?: string | undefined;
331
- }, {
332
- id: string;
333
- label: string;
334
- description?: string | undefined;
335
- }>, "many">;
336
- context: z.ZodOptional<z.ZodString>;
337
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
338
- }, "strip", z.ZodTypeAny, {
339
- id: string;
340
- question: string;
341
- choices: {
342
- id: string;
343
- label: string;
344
- description?: string | undefined;
345
- }[];
346
- allowMultiple: boolean;
347
- context?: string | undefined;
348
- }, {
349
- id: string;
350
- question: string;
351
- choices: {
352
- id: string;
353
- label: string;
354
- description?: string | undefined;
355
- }[];
356
- context?: string | undefined;
357
- allowMultiple?: boolean | undefined;
358
- }>, "many">;
359
- }, "strip", z.ZodTypeAny, {
360
- type: "clarification_request";
361
- id: string;
362
- timestamp: string;
363
- questions: {
364
- id: string;
365
- question: string;
366
- choices: {
367
- id: string;
368
- label: string;
369
- description?: string | undefined;
370
- }[];
371
- allowMultiple: boolean;
372
- context?: string | undefined;
373
- }[];
374
- }, {
375
- type: "clarification_request";
376
- id: string;
377
- timestamp: string;
378
- questions: {
379
- id: string;
380
- question: string;
381
- choices: {
382
- id: string;
383
- label: string;
384
- description?: string | undefined;
385
- }[];
386
- context?: string | undefined;
387
- allowMultiple?: boolean | undefined;
388
- }[];
389
- }>;
390
- /** User's answers to clarification questions */
391
- export declare const ClarificationResponseMessageSchema: z.ZodObject<{
392
- id: z.ZodString;
393
- timestamp: z.ZodString;
394
- } & {
395
- type: z.ZodLiteral<"clarification_response">;
396
- answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
397
- originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
398
- id: z.ZodString;
399
- question: z.ZodString;
400
- choices: z.ZodArray<z.ZodObject<{
401
- id: z.ZodString;
402
- label: z.ZodString;
403
- description: z.ZodOptional<z.ZodString>;
404
- }, "strip", z.ZodTypeAny, {
405
- id: string;
406
- label: string;
407
- description?: string | undefined;
408
- }, {
409
- id: string;
410
- label: string;
411
- description?: string | undefined;
412
- }>, "many">;
413
- context: z.ZodOptional<z.ZodString>;
414
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
415
- }, "strip", z.ZodTypeAny, {
416
- id: string;
417
- question: string;
418
- choices: {
419
- id: string;
420
- label: string;
421
- description?: string | undefined;
422
- }[];
423
- allowMultiple: boolean;
424
- context?: string | undefined;
425
- }, {
426
- id: string;
427
- question: string;
428
- choices: {
429
- id: string;
430
- label: string;
431
- description?: string | undefined;
432
- }[];
433
- context?: string | undefined;
434
- allowMultiple?: boolean | undefined;
435
- }>, "many">>;
436
- }, "strip", z.ZodTypeAny, {
437
- type: "clarification_response";
438
- id: string;
439
- timestamp: string;
440
- answers: Record<string, string[]>;
441
- originalQuestions?: {
442
- id: string;
443
- question: string;
444
- choices: {
445
- id: string;
446
- label: string;
447
- description?: string | undefined;
448
- }[];
449
- allowMultiple: boolean;
450
- context?: string | undefined;
451
- }[] | undefined;
452
- }, {
453
- type: "clarification_response";
454
- id: string;
455
- timestamp: string;
456
- answers: Record<string, string[]>;
457
- originalQuestions?: {
458
- id: string;
459
- question: string;
460
- choices: {
461
- id: string;
462
- label: string;
463
- description?: string | undefined;
464
- }[];
465
- context?: string | undefined;
466
- allowMultiple?: boolean | undefined;
467
- }[] | undefined;
468
- }>;
469
- /** Coffee requesting external context */
470
- export declare const ContextRequestMessageSchema: z.ZodObject<{
471
- id: z.ZodString;
472
- timestamp: z.ZodString;
473
- } & {
474
- type: z.ZodLiteral<"context_request">;
475
- request: z.ZodObject<{
476
- flowId: z.ZodString;
477
- flowCode: z.ZodString;
478
- requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
479
- description: z.ZodString;
480
- }, "strip", z.ZodTypeAny, {
481
- description: string;
482
- flowId: string;
483
- requiredCredentials: CredentialType[];
484
- flowCode: string;
485
- }, {
486
- description: string;
487
- flowId: string;
488
- requiredCredentials: CredentialType[];
489
- flowCode: string;
490
- }>;
491
- }, "strip", z.ZodTypeAny, {
492
- type: "context_request";
493
- id: string;
494
- timestamp: string;
495
- request: {
496
- description: string;
497
- flowId: string;
498
- requiredCredentials: CredentialType[];
499
- flowCode: string;
500
- };
501
- }, {
502
- type: "context_request";
503
- id: string;
504
- timestamp: string;
505
- request: {
506
- description: string;
507
- flowId: string;
508
- requiredCredentials: CredentialType[];
509
- flowCode: string;
510
- };
511
- }>;
512
- /** User's response to context request */
513
- export declare const ContextResponseMessageSchema: z.ZodObject<{
514
- id: z.ZodString;
515
- timestamp: z.ZodString;
516
- } & {
517
- type: z.ZodLiteral<"context_response">;
518
- answer: z.ZodObject<{
519
- flowId: z.ZodString;
520
- status: z.ZodEnum<["success", "rejected", "error"]>;
521
- result: z.ZodOptional<z.ZodUnknown>;
522
- error: z.ZodOptional<z.ZodString>;
523
- originalRequest: z.ZodOptional<z.ZodObject<{
524
- flowId: z.ZodString;
525
- flowCode: z.ZodString;
526
- requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
527
- description: z.ZodString;
528
- }, "strip", z.ZodTypeAny, {
529
- description: string;
530
- flowId: string;
531
- requiredCredentials: CredentialType[];
532
- flowCode: string;
533
- }, {
534
- description: string;
535
- flowId: string;
536
- requiredCredentials: CredentialType[];
537
- flowCode: string;
538
- }>>;
539
- }, "strip", z.ZodTypeAny, {
540
- status: "success" | "error" | "rejected";
541
- flowId: string;
542
- result?: unknown;
543
- error?: string | undefined;
544
- originalRequest?: {
545
- description: string;
546
- flowId: string;
547
- requiredCredentials: CredentialType[];
548
- flowCode: string;
549
- } | undefined;
550
- }, {
551
- status: "success" | "error" | "rejected";
552
- flowId: string;
553
- result?: unknown;
554
- error?: string | undefined;
555
- originalRequest?: {
556
- description: string;
557
- flowId: string;
558
- requiredCredentials: CredentialType[];
559
- flowCode: string;
560
- } | undefined;
561
- }>;
562
- credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
563
- }, "strip", z.ZodTypeAny, {
564
- type: "context_response";
565
- id: string;
566
- timestamp: string;
567
- answer: {
568
- status: "success" | "error" | "rejected";
569
- flowId: string;
570
- result?: unknown;
571
- error?: string | undefined;
572
- originalRequest?: {
573
- description: string;
574
- flowId: string;
575
- requiredCredentials: CredentialType[];
576
- flowCode: string;
577
- } | undefined;
578
- };
579
- credentialTypes?: string[] | undefined;
580
- }, {
581
- type: "context_response";
582
- id: string;
583
- timestamp: string;
584
- answer: {
585
- status: "success" | "error" | "rejected";
586
- flowId: string;
587
- result?: unknown;
588
- error?: string | undefined;
589
- originalRequest?: {
590
- description: string;
591
- flowId: string;
592
- requiredCredentials: CredentialType[];
593
- flowCode: string;
594
- } | undefined;
595
- };
596
- credentialTypes?: string[] | undefined;
597
- }>;
598
- /** Coffee's generated plan */
599
- export declare const PlanMessageSchema: z.ZodObject<{
600
- id: z.ZodString;
601
- timestamp: z.ZodString;
602
- } & {
603
- type: z.ZodLiteral<"plan">;
604
- plan: z.ZodObject<{
605
- summary: z.ZodString;
606
- steps: z.ZodArray<z.ZodObject<{
607
- title: z.ZodString;
608
- description: z.ZodString;
609
- bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
610
- }, "strip", z.ZodTypeAny, {
611
- description: string;
612
- title: string;
613
- bubblesUsed?: string[] | undefined;
614
- }, {
615
- description: string;
616
- title: string;
617
- bubblesUsed?: string[] | undefined;
618
- }>, "many">;
619
- estimatedBubbles: z.ZodArray<z.ZodString, "many">;
620
- }, "strip", z.ZodTypeAny, {
621
- summary: string;
622
- steps: {
623
- description: string;
624
- title: string;
625
- bubblesUsed?: string[] | undefined;
626
- }[];
627
- estimatedBubbles: string[];
628
- }, {
629
- summary: string;
630
- steps: {
631
- description: string;
632
- title: string;
633
- bubblesUsed?: string[] | undefined;
634
- }[];
635
- estimatedBubbles: string[];
636
- }>;
637
- }, "strip", z.ZodTypeAny, {
638
- type: "plan";
639
- id: string;
640
- timestamp: string;
641
- plan: {
642
- summary: string;
643
- steps: {
644
- description: string;
645
- title: string;
646
- bubblesUsed?: string[] | undefined;
647
- }[];
648
- estimatedBubbles: string[];
649
- };
650
- }, {
651
- type: "plan";
652
- id: string;
653
- timestamp: string;
654
- plan: {
655
- summary: string;
656
- steps: {
657
- description: string;
658
- title: string;
659
- bubblesUsed?: string[] | undefined;
660
- }[];
661
- estimatedBubbles: string[];
662
- };
663
- }>;
664
- /** User's plan approval with optional comment */
665
- export declare const PlanApprovalMessageSchema: z.ZodObject<{
666
- id: z.ZodString;
667
- timestamp: z.ZodString;
668
- } & {
669
- type: z.ZodLiteral<"plan_approval">;
670
- approved: z.ZodBoolean;
671
- comment: z.ZodOptional<z.ZodString>;
672
- }, "strip", z.ZodTypeAny, {
673
- type: "plan_approval";
674
- id: string;
675
- timestamp: string;
676
- approved: boolean;
677
- comment?: string | undefined;
678
- }, {
679
- type: "plan_approval";
680
- id: string;
681
- timestamp: string;
682
- approved: boolean;
683
- comment?: string | undefined;
684
- }>;
685
- /** System message (for retries, errors, etc.) */
686
- export declare const SystemMessageSchema: z.ZodObject<{
687
- id: z.ZodString;
688
- timestamp: z.ZodString;
689
- } & {
690
- type: z.ZodLiteral<"system">;
691
- content: z.ZodString;
692
- }, "strip", z.ZodTypeAny, {
693
- type: "system";
694
- content: string;
695
- id: string;
696
- timestamp: string;
697
- }, {
698
- type: "system";
699
- content: string;
700
- id: string;
701
- timestamp: string;
702
- }>;
703
- /** Tool result message - persists successful tool call results */
704
- export declare const ToolResultMessageSchema: z.ZodObject<{
705
- id: z.ZodString;
706
- timestamp: z.ZodString;
707
- } & {
708
- type: z.ZodLiteral<"tool_result">;
709
- toolName: z.ZodString;
710
- toolCallId: z.ZodString;
711
- input: z.ZodUnknown;
712
- output: z.ZodUnknown;
713
- duration: z.ZodNumber;
714
- success: z.ZodBoolean;
715
- }, "strip", z.ZodTypeAny, {
716
- type: "tool_result";
717
- duration: number;
718
- id: string;
719
- toolCallId: string;
720
- timestamp: string;
721
- success: boolean;
722
- toolName: string;
723
- input?: unknown;
724
- output?: unknown;
725
- }, {
726
- type: "tool_result";
727
- duration: number;
728
- id: string;
729
- toolCallId: string;
730
- timestamp: string;
731
- success: boolean;
732
- toolName: string;
733
- input?: unknown;
734
- output?: unknown;
735
- }>;
736
- /** Union of all Coffee message types */
737
- export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
738
- id: z.ZodString;
739
- timestamp: z.ZodString;
740
- } & {
741
- type: z.ZodLiteral<"user">;
742
- content: z.ZodString;
743
- }, "strip", z.ZodTypeAny, {
744
- type: "user";
745
- content: string;
746
- id: string;
747
- timestamp: string;
748
- }, {
749
- type: "user";
750
- content: string;
751
- id: string;
752
- timestamp: string;
753
- }>, z.ZodObject<{
754
- id: z.ZodString;
755
- timestamp: z.ZodString;
756
- } & {
757
- type: z.ZodLiteral<"assistant">;
758
- content: z.ZodString;
759
- code: z.ZodOptional<z.ZodString>;
760
- resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>;
761
- bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
762
- }, "strip", z.ZodTypeAny, {
763
- type: "assistant";
764
- content: string;
765
- id: string;
766
- timestamp: string;
767
- code?: string | undefined;
768
- bubbleParameters?: Record<string, unknown> | undefined;
769
- resultType?: "code" | "question" | "answer" | "reject" | undefined;
770
- }, {
771
- type: "assistant";
772
- content: string;
773
- id: string;
774
- timestamp: string;
775
- code?: string | undefined;
776
- bubbleParameters?: Record<string, unknown> | undefined;
777
- resultType?: "code" | "question" | "answer" | "reject" | undefined;
778
- }>, z.ZodObject<{
779
- id: z.ZodString;
780
- timestamp: z.ZodString;
781
- } & {
782
- type: z.ZodLiteral<"clarification_request">;
783
- questions: z.ZodArray<z.ZodObject<{
784
- id: z.ZodString;
785
- question: z.ZodString;
786
- choices: z.ZodArray<z.ZodObject<{
787
- id: z.ZodString;
788
- label: z.ZodString;
789
- description: z.ZodOptional<z.ZodString>;
790
- }, "strip", z.ZodTypeAny, {
791
- id: string;
792
- label: string;
793
- description?: string | undefined;
794
- }, {
795
- id: string;
796
- label: string;
797
- description?: string | undefined;
798
- }>, "many">;
799
- context: z.ZodOptional<z.ZodString>;
800
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
801
- }, "strip", z.ZodTypeAny, {
802
- id: string;
803
- question: string;
804
- choices: {
805
- id: string;
806
- label: string;
807
- description?: string | undefined;
808
- }[];
809
- allowMultiple: boolean;
810
- context?: string | undefined;
811
- }, {
812
- id: string;
813
- question: string;
814
- choices: {
815
- id: string;
816
- label: string;
817
- description?: string | undefined;
818
- }[];
819
- context?: string | undefined;
820
- allowMultiple?: boolean | undefined;
821
- }>, "many">;
822
- }, "strip", z.ZodTypeAny, {
823
- type: "clarification_request";
824
- id: string;
825
- timestamp: string;
826
- questions: {
827
- id: string;
828
- question: string;
829
- choices: {
830
- id: string;
831
- label: string;
832
- description?: string | undefined;
833
- }[];
834
- allowMultiple: boolean;
835
- context?: string | undefined;
836
- }[];
837
- }, {
838
- type: "clarification_request";
839
- id: string;
840
- timestamp: string;
841
- questions: {
842
- id: string;
843
- question: string;
844
- choices: {
845
- id: string;
846
- label: string;
847
- description?: string | undefined;
848
- }[];
849
- context?: string | undefined;
850
- allowMultiple?: boolean | undefined;
851
- }[];
852
- }>, z.ZodObject<{
853
- id: z.ZodString;
854
- timestamp: z.ZodString;
855
- } & {
856
- type: z.ZodLiteral<"clarification_response">;
857
- answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
858
- originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
859
- id: z.ZodString;
860
- question: z.ZodString;
861
- choices: z.ZodArray<z.ZodObject<{
862
- id: z.ZodString;
863
- label: z.ZodString;
864
- description: z.ZodOptional<z.ZodString>;
865
- }, "strip", z.ZodTypeAny, {
866
- id: string;
867
- label: string;
868
- description?: string | undefined;
869
- }, {
870
- id: string;
871
- label: string;
872
- description?: string | undefined;
873
- }>, "many">;
874
- context: z.ZodOptional<z.ZodString>;
875
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
876
- }, "strip", z.ZodTypeAny, {
877
- id: string;
878
- question: string;
879
- choices: {
880
- id: string;
881
- label: string;
882
- description?: string | undefined;
883
- }[];
884
- allowMultiple: boolean;
885
- context?: string | undefined;
886
- }, {
887
- id: string;
888
- question: string;
889
- choices: {
890
- id: string;
891
- label: string;
892
- description?: string | undefined;
893
- }[];
894
- context?: string | undefined;
895
- allowMultiple?: boolean | undefined;
896
- }>, "many">>;
897
- }, "strip", z.ZodTypeAny, {
898
- type: "clarification_response";
899
- id: string;
900
- timestamp: string;
901
- answers: Record<string, string[]>;
902
- originalQuestions?: {
903
- id: string;
904
- question: string;
905
- choices: {
906
- id: string;
907
- label: string;
908
- description?: string | undefined;
909
- }[];
910
- allowMultiple: boolean;
911
- context?: string | undefined;
912
- }[] | undefined;
913
- }, {
914
- type: "clarification_response";
915
- id: string;
916
- timestamp: string;
917
- answers: Record<string, string[]>;
918
- originalQuestions?: {
919
- id: string;
920
- question: string;
921
- choices: {
922
- id: string;
923
- label: string;
924
- description?: string | undefined;
925
- }[];
926
- context?: string | undefined;
927
- allowMultiple?: boolean | undefined;
928
- }[] | undefined;
929
- }>, z.ZodObject<{
930
- id: z.ZodString;
931
- timestamp: z.ZodString;
932
- } & {
933
- type: z.ZodLiteral<"context_request">;
934
- request: z.ZodObject<{
935
- flowId: z.ZodString;
936
- flowCode: z.ZodString;
937
- requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
938
- description: z.ZodString;
939
- }, "strip", z.ZodTypeAny, {
940
- description: string;
941
- flowId: string;
942
- requiredCredentials: CredentialType[];
943
- flowCode: string;
944
- }, {
945
- description: string;
946
- flowId: string;
947
- requiredCredentials: CredentialType[];
948
- flowCode: string;
949
- }>;
950
- }, "strip", z.ZodTypeAny, {
951
- type: "context_request";
952
- id: string;
953
- timestamp: string;
954
- request: {
955
- description: string;
956
- flowId: string;
957
- requiredCredentials: CredentialType[];
958
- flowCode: string;
959
- };
960
- }, {
961
- type: "context_request";
962
- id: string;
963
- timestamp: string;
964
- request: {
965
- description: string;
966
- flowId: string;
967
- requiredCredentials: CredentialType[];
968
- flowCode: string;
969
- };
970
- }>, z.ZodObject<{
971
- id: z.ZodString;
972
- timestamp: z.ZodString;
973
- } & {
974
- type: z.ZodLiteral<"context_response">;
975
- answer: z.ZodObject<{
976
- flowId: z.ZodString;
977
- status: z.ZodEnum<["success", "rejected", "error"]>;
978
- result: z.ZodOptional<z.ZodUnknown>;
979
- error: z.ZodOptional<z.ZodString>;
980
- originalRequest: z.ZodOptional<z.ZodObject<{
981
- flowId: z.ZodString;
982
- flowCode: z.ZodString;
983
- requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
984
- description: z.ZodString;
985
- }, "strip", z.ZodTypeAny, {
986
- description: string;
987
- flowId: string;
988
- requiredCredentials: CredentialType[];
989
- flowCode: string;
990
- }, {
991
- description: string;
992
- flowId: string;
993
- requiredCredentials: CredentialType[];
994
- flowCode: string;
995
- }>>;
996
- }, "strip", z.ZodTypeAny, {
997
- status: "success" | "error" | "rejected";
998
- flowId: string;
999
- result?: unknown;
1000
- error?: string | undefined;
1001
- originalRequest?: {
1002
- description: string;
1003
- flowId: string;
1004
- requiredCredentials: CredentialType[];
1005
- flowCode: string;
1006
- } | undefined;
1007
- }, {
1008
- status: "success" | "error" | "rejected";
1009
- flowId: string;
1010
- result?: unknown;
1011
- error?: string | undefined;
1012
- originalRequest?: {
1013
- description: string;
1014
- flowId: string;
1015
- requiredCredentials: CredentialType[];
1016
- flowCode: string;
1017
- } | undefined;
1018
- }>;
1019
- credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1020
- }, "strip", z.ZodTypeAny, {
1021
- type: "context_response";
1022
- id: string;
1023
- timestamp: string;
1024
- answer: {
1025
- status: "success" | "error" | "rejected";
1026
- flowId: string;
1027
- result?: unknown;
1028
- error?: string | undefined;
1029
- originalRequest?: {
1030
- description: string;
1031
- flowId: string;
1032
- requiredCredentials: CredentialType[];
1033
- flowCode: string;
1034
- } | undefined;
1035
- };
1036
- credentialTypes?: string[] | undefined;
1037
- }, {
1038
- type: "context_response";
1039
- id: string;
1040
- timestamp: string;
1041
- answer: {
1042
- status: "success" | "error" | "rejected";
1043
- flowId: string;
1044
- result?: unknown;
1045
- error?: string | undefined;
1046
- originalRequest?: {
1047
- description: string;
1048
- flowId: string;
1049
- requiredCredentials: CredentialType[];
1050
- flowCode: string;
1051
- } | undefined;
1052
- };
1053
- credentialTypes?: string[] | undefined;
1054
- }>, z.ZodObject<{
1055
- id: z.ZodString;
1056
- timestamp: z.ZodString;
1057
- } & {
1058
- type: z.ZodLiteral<"plan">;
1059
- plan: z.ZodObject<{
1060
- summary: z.ZodString;
1061
- steps: z.ZodArray<z.ZodObject<{
1062
- title: z.ZodString;
1063
- description: z.ZodString;
1064
- bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1065
- }, "strip", z.ZodTypeAny, {
1066
- description: string;
1067
- title: string;
1068
- bubblesUsed?: string[] | undefined;
1069
- }, {
1070
- description: string;
1071
- title: string;
1072
- bubblesUsed?: string[] | undefined;
1073
- }>, "many">;
1074
- estimatedBubbles: z.ZodArray<z.ZodString, "many">;
1075
- }, "strip", z.ZodTypeAny, {
1076
- summary: string;
1077
- steps: {
1078
- description: string;
1079
- title: string;
1080
- bubblesUsed?: string[] | undefined;
1081
- }[];
1082
- estimatedBubbles: string[];
1083
- }, {
1084
- summary: string;
1085
- steps: {
1086
- description: string;
1087
- title: string;
1088
- bubblesUsed?: string[] | undefined;
1089
- }[];
1090
- estimatedBubbles: string[];
1091
- }>;
1092
- }, "strip", z.ZodTypeAny, {
1093
- type: "plan";
1094
- id: string;
1095
- timestamp: string;
1096
- plan: {
1097
- summary: string;
1098
- steps: {
1099
- description: string;
1100
- title: string;
1101
- bubblesUsed?: string[] | undefined;
1102
- }[];
1103
- estimatedBubbles: string[];
1104
- };
1105
- }, {
1106
- type: "plan";
1107
- id: string;
1108
- timestamp: string;
1109
- plan: {
1110
- summary: string;
1111
- steps: {
1112
- description: string;
1113
- title: string;
1114
- bubblesUsed?: string[] | undefined;
1115
- }[];
1116
- estimatedBubbles: string[];
1117
- };
1118
- }>, z.ZodObject<{
1119
- id: z.ZodString;
1120
- timestamp: z.ZodString;
1121
- } & {
1122
- type: z.ZodLiteral<"plan_approval">;
1123
- approved: z.ZodBoolean;
1124
- comment: z.ZodOptional<z.ZodString>;
1125
- }, "strip", z.ZodTypeAny, {
1126
- type: "plan_approval";
1127
- id: string;
1128
- timestamp: string;
1129
- approved: boolean;
1130
- comment?: string | undefined;
1131
- }, {
1132
- type: "plan_approval";
1133
- id: string;
1134
- timestamp: string;
1135
- approved: boolean;
1136
- comment?: string | undefined;
1137
- }>, z.ZodObject<{
1138
- id: z.ZodString;
1139
- timestamp: z.ZodString;
1140
- } & {
1141
- type: z.ZodLiteral<"system">;
1142
- content: z.ZodString;
1143
- }, "strip", z.ZodTypeAny, {
1144
- type: "system";
1145
- content: string;
1146
- id: string;
1147
- timestamp: string;
1148
- }, {
1149
- type: "system";
1150
- content: string;
1151
- id: string;
1152
- timestamp: string;
1153
- }>, z.ZodObject<{
1154
- id: z.ZodString;
1155
- timestamp: z.ZodString;
1156
- } & {
1157
- type: z.ZodLiteral<"tool_result">;
1158
- toolName: z.ZodString;
1159
- toolCallId: z.ZodString;
1160
- input: z.ZodUnknown;
1161
- output: z.ZodUnknown;
1162
- duration: z.ZodNumber;
1163
- success: z.ZodBoolean;
1164
- }, "strip", z.ZodTypeAny, {
1165
- type: "tool_result";
1166
- duration: number;
1167
- id: string;
1168
- toolCallId: string;
1169
- timestamp: string;
1170
- success: boolean;
1171
- toolName: string;
1172
- input?: unknown;
1173
- output?: unknown;
1174
- }, {
1175
- type: "tool_result";
1176
- duration: number;
1177
- id: string;
1178
- toolCallId: string;
1179
- timestamp: string;
1180
- success: boolean;
1181
- toolName: string;
1182
- input?: unknown;
1183
- output?: unknown;
1184
- }>]>;
1185
- /** Request to the Generate BubbleFlow */
1186
- export declare const CoffeeRequestSchema: z.ZodObject<{
1187
- prompt: z.ZodString;
1188
- flowId: z.ZodOptional<z.ZodNumber>;
1189
- messages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1190
- id: z.ZodString;
1191
- timestamp: z.ZodString;
1192
- } & {
1193
- type: z.ZodLiteral<"user">;
1194
- content: z.ZodString;
1195
- }, "strip", z.ZodTypeAny, {
1196
- type: "user";
1197
- content: string;
1198
- id: string;
1199
- timestamp: string;
1200
- }, {
1201
- type: "user";
1202
- content: string;
1203
- id: string;
1204
- timestamp: string;
1205
- }>, z.ZodObject<{
1206
- id: z.ZodString;
1207
- timestamp: z.ZodString;
1208
- } & {
1209
- type: z.ZodLiteral<"assistant">;
1210
- content: z.ZodString;
1211
- code: z.ZodOptional<z.ZodString>;
1212
- resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>;
1213
- bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1214
- }, "strip", z.ZodTypeAny, {
1215
- type: "assistant";
1216
- content: string;
1217
- id: string;
1218
- timestamp: string;
1219
- code?: string | undefined;
1220
- bubbleParameters?: Record<string, unknown> | undefined;
1221
- resultType?: "code" | "question" | "answer" | "reject" | undefined;
1222
- }, {
1223
- type: "assistant";
1224
- content: string;
1225
- id: string;
1226
- timestamp: string;
1227
- code?: string | undefined;
1228
- bubbleParameters?: Record<string, unknown> | undefined;
1229
- resultType?: "code" | "question" | "answer" | "reject" | undefined;
1230
- }>, z.ZodObject<{
1231
- id: z.ZodString;
1232
- timestamp: z.ZodString;
1233
- } & {
1234
- type: z.ZodLiteral<"clarification_request">;
1235
- questions: z.ZodArray<z.ZodObject<{
1236
- id: z.ZodString;
1237
- question: z.ZodString;
1238
- choices: z.ZodArray<z.ZodObject<{
1239
- id: z.ZodString;
1240
- label: z.ZodString;
1241
- description: z.ZodOptional<z.ZodString>;
1242
- }, "strip", z.ZodTypeAny, {
1243
- id: string;
1244
- label: string;
1245
- description?: string | undefined;
1246
- }, {
1247
- id: string;
1248
- label: string;
1249
- description?: string | undefined;
1250
- }>, "many">;
1251
- context: z.ZodOptional<z.ZodString>;
1252
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1253
- }, "strip", z.ZodTypeAny, {
1254
- id: string;
1255
- question: string;
1256
- choices: {
1257
- id: string;
1258
- label: string;
1259
- description?: string | undefined;
1260
- }[];
1261
- allowMultiple: boolean;
1262
- context?: string | undefined;
1263
- }, {
1264
- id: string;
1265
- question: string;
1266
- choices: {
1267
- id: string;
1268
- label: string;
1269
- description?: string | undefined;
1270
- }[];
1271
- context?: string | undefined;
1272
- allowMultiple?: boolean | undefined;
1273
- }>, "many">;
1274
- }, "strip", z.ZodTypeAny, {
1275
- type: "clarification_request";
1276
- id: string;
1277
- timestamp: string;
1278
- questions: {
1279
- id: string;
1280
- question: string;
1281
- choices: {
1282
- id: string;
1283
- label: string;
1284
- description?: string | undefined;
1285
- }[];
1286
- allowMultiple: boolean;
1287
- context?: string | undefined;
1288
- }[];
1289
- }, {
1290
- type: "clarification_request";
1291
- id: string;
1292
- timestamp: string;
1293
- questions: {
1294
- id: string;
1295
- question: string;
1296
- choices: {
1297
- id: string;
1298
- label: string;
1299
- description?: string | undefined;
1300
- }[];
1301
- context?: string | undefined;
1302
- allowMultiple?: boolean | undefined;
1303
- }[];
1304
- }>, z.ZodObject<{
1305
- id: z.ZodString;
1306
- timestamp: z.ZodString;
1307
- } & {
1308
- type: z.ZodLiteral<"clarification_response">;
1309
- answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1310
- originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1311
- id: z.ZodString;
1312
- question: z.ZodString;
1313
- choices: z.ZodArray<z.ZodObject<{
1314
- id: z.ZodString;
1315
- label: z.ZodString;
1316
- description: z.ZodOptional<z.ZodString>;
1317
- }, "strip", z.ZodTypeAny, {
1318
- id: string;
1319
- label: string;
1320
- description?: string | undefined;
1321
- }, {
1322
- id: string;
1323
- label: string;
1324
- description?: string | undefined;
1325
- }>, "many">;
1326
- context: z.ZodOptional<z.ZodString>;
1327
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1328
- }, "strip", z.ZodTypeAny, {
1329
- id: string;
1330
- question: string;
1331
- choices: {
1332
- id: string;
1333
- label: string;
1334
- description?: string | undefined;
1335
- }[];
1336
- allowMultiple: boolean;
1337
- context?: string | undefined;
1338
- }, {
1339
- id: string;
1340
- question: string;
1341
- choices: {
1342
- id: string;
1343
- label: string;
1344
- description?: string | undefined;
1345
- }[];
1346
- context?: string | undefined;
1347
- allowMultiple?: boolean | undefined;
1348
- }>, "many">>;
1349
- }, "strip", z.ZodTypeAny, {
1350
- type: "clarification_response";
1351
- id: string;
1352
- timestamp: string;
1353
- answers: Record<string, string[]>;
1354
- originalQuestions?: {
1355
- id: string;
1356
- question: string;
1357
- choices: {
1358
- id: string;
1359
- label: string;
1360
- description?: string | undefined;
1361
- }[];
1362
- allowMultiple: boolean;
1363
- context?: string | undefined;
1364
- }[] | undefined;
1365
- }, {
1366
- type: "clarification_response";
1367
- id: string;
1368
- timestamp: string;
1369
- answers: Record<string, string[]>;
1370
- originalQuestions?: {
1371
- id: string;
1372
- question: string;
1373
- choices: {
1374
- id: string;
1375
- label: string;
1376
- description?: string | undefined;
1377
- }[];
1378
- context?: string | undefined;
1379
- allowMultiple?: boolean | undefined;
1380
- }[] | undefined;
1381
- }>, z.ZodObject<{
1382
- id: z.ZodString;
1383
- timestamp: z.ZodString;
1384
- } & {
1385
- type: z.ZodLiteral<"context_request">;
1386
- request: z.ZodObject<{
1387
- flowId: z.ZodString;
1388
- flowCode: z.ZodString;
1389
- requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
1390
- description: z.ZodString;
1391
- }, "strip", z.ZodTypeAny, {
1392
- description: string;
1393
- flowId: string;
1394
- requiredCredentials: CredentialType[];
1395
- flowCode: string;
1396
- }, {
1397
- description: string;
1398
- flowId: string;
1399
- requiredCredentials: CredentialType[];
1400
- flowCode: string;
1401
- }>;
1402
- }, "strip", z.ZodTypeAny, {
1403
- type: "context_request";
1404
- id: string;
1405
- timestamp: string;
1406
- request: {
1407
- description: string;
1408
- flowId: string;
1409
- requiredCredentials: CredentialType[];
1410
- flowCode: string;
1411
- };
1412
- }, {
1413
- type: "context_request";
1414
- id: string;
1415
- timestamp: string;
1416
- request: {
1417
- description: string;
1418
- flowId: string;
1419
- requiredCredentials: CredentialType[];
1420
- flowCode: string;
1421
- };
1422
- }>, z.ZodObject<{
1423
- id: z.ZodString;
1424
- timestamp: z.ZodString;
1425
- } & {
1426
- type: z.ZodLiteral<"context_response">;
1427
- answer: z.ZodObject<{
1428
- flowId: z.ZodString;
1429
- status: z.ZodEnum<["success", "rejected", "error"]>;
1430
- result: z.ZodOptional<z.ZodUnknown>;
1431
- error: z.ZodOptional<z.ZodString>;
1432
- originalRequest: z.ZodOptional<z.ZodObject<{
1433
- flowId: z.ZodString;
1434
- flowCode: z.ZodString;
1435
- requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
1436
- description: z.ZodString;
1437
- }, "strip", z.ZodTypeAny, {
1438
- description: string;
1439
- flowId: string;
1440
- requiredCredentials: CredentialType[];
1441
- flowCode: string;
1442
- }, {
1443
- description: string;
1444
- flowId: string;
1445
- requiredCredentials: CredentialType[];
1446
- flowCode: string;
1447
- }>>;
1448
- }, "strip", z.ZodTypeAny, {
1449
- status: "success" | "error" | "rejected";
1450
- flowId: string;
1451
- result?: unknown;
1452
- error?: string | undefined;
1453
- originalRequest?: {
1454
- description: string;
1455
- flowId: string;
1456
- requiredCredentials: CredentialType[];
1457
- flowCode: string;
1458
- } | undefined;
1459
- }, {
1460
- status: "success" | "error" | "rejected";
1461
- flowId: string;
1462
- result?: unknown;
1463
- error?: string | undefined;
1464
- originalRequest?: {
1465
- description: string;
1466
- flowId: string;
1467
- requiredCredentials: CredentialType[];
1468
- flowCode: string;
1469
- } | undefined;
1470
- }>;
1471
- credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1472
- }, "strip", z.ZodTypeAny, {
1473
- type: "context_response";
1474
- id: string;
1475
- timestamp: string;
1476
- answer: {
1477
- status: "success" | "error" | "rejected";
1478
- flowId: string;
1479
- result?: unknown;
1480
- error?: string | undefined;
1481
- originalRequest?: {
1482
- description: string;
1483
- flowId: string;
1484
- requiredCredentials: CredentialType[];
1485
- flowCode: string;
1486
- } | undefined;
1487
- };
1488
- credentialTypes?: string[] | undefined;
1489
- }, {
1490
- type: "context_response";
1491
- id: string;
1492
- timestamp: string;
1493
- answer: {
1494
- status: "success" | "error" | "rejected";
1495
- flowId: string;
1496
- result?: unknown;
1497
- error?: string | undefined;
1498
- originalRequest?: {
1499
- description: string;
1500
- flowId: string;
1501
- requiredCredentials: CredentialType[];
1502
- flowCode: string;
1503
- } | undefined;
1504
- };
1505
- credentialTypes?: string[] | undefined;
1506
- }>, z.ZodObject<{
1507
- id: z.ZodString;
1508
- timestamp: z.ZodString;
1509
- } & {
1510
- type: z.ZodLiteral<"plan">;
1511
- plan: z.ZodObject<{
1512
- summary: z.ZodString;
1513
- steps: z.ZodArray<z.ZodObject<{
1514
- title: z.ZodString;
1515
- description: z.ZodString;
1516
- bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1517
- }, "strip", z.ZodTypeAny, {
1518
- description: string;
1519
- title: string;
1520
- bubblesUsed?: string[] | undefined;
1521
- }, {
1522
- description: string;
1523
- title: string;
1524
- bubblesUsed?: string[] | undefined;
1525
- }>, "many">;
1526
- estimatedBubbles: z.ZodArray<z.ZodString, "many">;
1527
- }, "strip", z.ZodTypeAny, {
1528
- summary: string;
1529
- steps: {
1530
- description: string;
1531
- title: string;
1532
- bubblesUsed?: string[] | undefined;
1533
- }[];
1534
- estimatedBubbles: string[];
1535
- }, {
1536
- summary: string;
1537
- steps: {
1538
- description: string;
1539
- title: string;
1540
- bubblesUsed?: string[] | undefined;
1541
- }[];
1542
- estimatedBubbles: string[];
1543
- }>;
1544
- }, "strip", z.ZodTypeAny, {
1545
- type: "plan";
1546
- id: string;
1547
- timestamp: string;
1548
- plan: {
1549
- summary: string;
1550
- steps: {
1551
- description: string;
1552
- title: string;
1553
- bubblesUsed?: string[] | undefined;
1554
- }[];
1555
- estimatedBubbles: string[];
1556
- };
1557
- }, {
1558
- type: "plan";
1559
- id: string;
1560
- timestamp: string;
1561
- plan: {
1562
- summary: string;
1563
- steps: {
1564
- description: string;
1565
- title: string;
1566
- bubblesUsed?: string[] | undefined;
1567
- }[];
1568
- estimatedBubbles: string[];
1569
- };
1570
- }>, z.ZodObject<{
1571
- id: z.ZodString;
1572
- timestamp: z.ZodString;
1573
- } & {
1574
- type: z.ZodLiteral<"plan_approval">;
1575
- approved: z.ZodBoolean;
1576
- comment: z.ZodOptional<z.ZodString>;
1577
- }, "strip", z.ZodTypeAny, {
1578
- type: "plan_approval";
1579
- id: string;
1580
- timestamp: string;
1581
- approved: boolean;
1582
- comment?: string | undefined;
1583
- }, {
1584
- type: "plan_approval";
1585
- id: string;
1586
- timestamp: string;
1587
- approved: boolean;
1588
- comment?: string | undefined;
1589
- }>, z.ZodObject<{
1590
- id: z.ZodString;
1591
- timestamp: z.ZodString;
1592
- } & {
1593
- type: z.ZodLiteral<"system">;
1594
- content: z.ZodString;
1595
- }, "strip", z.ZodTypeAny, {
1596
- type: "system";
1597
- content: string;
1598
- id: string;
1599
- timestamp: string;
1600
- }, {
1601
- type: "system";
1602
- content: string;
1603
- id: string;
1604
- timestamp: string;
1605
- }>, z.ZodObject<{
1606
- id: z.ZodString;
1607
- timestamp: z.ZodString;
1608
- } & {
1609
- type: z.ZodLiteral<"tool_result">;
1610
- toolName: z.ZodString;
1611
- toolCallId: z.ZodString;
1612
- input: z.ZodUnknown;
1613
- output: z.ZodUnknown;
1614
- duration: z.ZodNumber;
1615
- success: z.ZodBoolean;
1616
- }, "strip", z.ZodTypeAny, {
1617
- type: "tool_result";
1618
- duration: number;
1619
- id: string;
1620
- toolCallId: string;
1621
- timestamp: string;
1622
- success: boolean;
1623
- toolName: string;
1624
- input?: unknown;
1625
- output?: unknown;
1626
- }, {
1627
- type: "tool_result";
1628
- duration: number;
1629
- id: string;
1630
- toolCallId: string;
1631
- timestamp: string;
1632
- success: boolean;
1633
- toolName: string;
1634
- input?: unknown;
1635
- output?: unknown;
1636
- }>]>, "many">>;
1637
- }, "strip", z.ZodTypeAny, {
1638
- prompt: string;
1639
- flowId?: number | undefined;
1640
- messages?: ({
1641
- type: "user";
1642
- content: string;
1643
- id: string;
1644
- timestamp: string;
1645
- } | {
1646
- type: "assistant";
1647
- content: string;
1648
- id: string;
1649
- timestamp: string;
1650
- code?: string | undefined;
1651
- bubbleParameters?: Record<string, unknown> | undefined;
1652
- resultType?: "code" | "question" | "answer" | "reject" | undefined;
1653
- } | {
1654
- type: "clarification_request";
1655
- id: string;
1656
- timestamp: string;
1657
- questions: {
1658
- id: string;
1659
- question: string;
1660
- choices: {
1661
- id: string;
1662
- label: string;
1663
- description?: string | undefined;
1664
- }[];
1665
- allowMultiple: boolean;
1666
- context?: string | undefined;
1667
- }[];
1668
- } | {
1669
- type: "clarification_response";
1670
- id: string;
1671
- timestamp: string;
1672
- answers: Record<string, string[]>;
1673
- originalQuestions?: {
1674
- id: string;
1675
- question: string;
1676
- choices: {
1677
- id: string;
1678
- label: string;
1679
- description?: string | undefined;
1680
- }[];
1681
- allowMultiple: boolean;
1682
- context?: string | undefined;
1683
- }[] | undefined;
1684
- } | {
1685
- type: "context_request";
1686
- id: string;
1687
- timestamp: string;
1688
- request: {
1689
- description: string;
1690
- flowId: string;
1691
- requiredCredentials: CredentialType[];
1692
- flowCode: string;
1693
- };
1694
- } | {
1695
- type: "context_response";
1696
- id: string;
1697
- timestamp: string;
1698
- answer: {
1699
- status: "success" | "error" | "rejected";
1700
- flowId: string;
1701
- result?: unknown;
1702
- error?: string | undefined;
1703
- originalRequest?: {
1704
- description: string;
1705
- flowId: string;
1706
- requiredCredentials: CredentialType[];
1707
- flowCode: string;
1708
- } | undefined;
1709
- };
1710
- credentialTypes?: string[] | undefined;
1711
- } | {
1712
- type: "plan";
1713
- id: string;
1714
- timestamp: string;
1715
- plan: {
1716
- summary: string;
1717
- steps: {
1718
- description: string;
1719
- title: string;
1720
- bubblesUsed?: string[] | undefined;
1721
- }[];
1722
- estimatedBubbles: string[];
1723
- };
1724
- } | {
1725
- type: "plan_approval";
1726
- id: string;
1727
- timestamp: string;
1728
- approved: boolean;
1729
- comment?: string | undefined;
1730
- } | {
1731
- type: "system";
1732
- content: string;
1733
- id: string;
1734
- timestamp: string;
1735
- } | {
1736
- type: "tool_result";
1737
- duration: number;
1738
- id: string;
1739
- toolCallId: string;
1740
- timestamp: string;
1741
- success: boolean;
1742
- toolName: string;
1743
- input?: unknown;
1744
- output?: unknown;
1745
- })[] | undefined;
1746
- }, {
1747
- prompt: string;
1748
- flowId?: number | undefined;
1749
- messages?: ({
1750
- type: "user";
1751
- content: string;
1752
- id: string;
1753
- timestamp: string;
1754
- } | {
1755
- type: "assistant";
1756
- content: string;
1757
- id: string;
1758
- timestamp: string;
1759
- code?: string | undefined;
1760
- bubbleParameters?: Record<string, unknown> | undefined;
1761
- resultType?: "code" | "question" | "answer" | "reject" | undefined;
1762
- } | {
1763
- type: "clarification_request";
1764
- id: string;
1765
- timestamp: string;
1766
- questions: {
1767
- id: string;
1768
- question: string;
1769
- choices: {
1770
- id: string;
1771
- label: string;
1772
- description?: string | undefined;
1773
- }[];
1774
- context?: string | undefined;
1775
- allowMultiple?: boolean | undefined;
1776
- }[];
1777
- } | {
1778
- type: "clarification_response";
1779
- id: string;
1780
- timestamp: string;
1781
- answers: Record<string, string[]>;
1782
- originalQuestions?: {
1783
- id: string;
1784
- question: string;
1785
- choices: {
1786
- id: string;
1787
- label: string;
1788
- description?: string | undefined;
1789
- }[];
1790
- context?: string | undefined;
1791
- allowMultiple?: boolean | undefined;
1792
- }[] | undefined;
1793
- } | {
1794
- type: "context_request";
1795
- id: string;
1796
- timestamp: string;
1797
- request: {
1798
- description: string;
1799
- flowId: string;
1800
- requiredCredentials: CredentialType[];
1801
- flowCode: string;
1802
- };
1803
- } | {
1804
- type: "context_response";
1805
- id: string;
1806
- timestamp: string;
1807
- answer: {
1808
- status: "success" | "error" | "rejected";
1809
- flowId: string;
1810
- result?: unknown;
1811
- error?: string | undefined;
1812
- originalRequest?: {
1813
- description: string;
1814
- flowId: string;
1815
- requiredCredentials: CredentialType[];
1816
- flowCode: string;
1817
- } | undefined;
1818
- };
1819
- credentialTypes?: string[] | undefined;
1820
- } | {
1821
- type: "plan";
1822
- id: string;
1823
- timestamp: string;
1824
- plan: {
1825
- summary: string;
1826
- steps: {
1827
- description: string;
1828
- title: string;
1829
- bubblesUsed?: string[] | undefined;
1830
- }[];
1831
- estimatedBubbles: string[];
1832
- };
1833
- } | {
1834
- type: "plan_approval";
1835
- id: string;
1836
- timestamp: string;
1837
- approved: boolean;
1838
- comment?: string | undefined;
1839
- } | {
1840
- type: "system";
1841
- content: string;
1842
- id: string;
1843
- timestamp: string;
1844
- } | {
1845
- type: "tool_result";
1846
- duration: number;
1847
- id: string;
1848
- toolCallId: string;
1849
- timestamp: string;
1850
- success: boolean;
1851
- toolName: string;
1852
- input?: unknown;
1853
- output?: unknown;
1854
- })[] | undefined;
1855
- }>;
1856
- /** Response from the Coffee agent */
1857
- export declare const CoffeeResponseSchema: z.ZodObject<{
1858
- type: z.ZodEnum<["clarification", "plan", "context_request", "error"]>;
1859
- clarification: z.ZodOptional<z.ZodObject<{
1860
- questions: z.ZodArray<z.ZodObject<{
1861
- id: z.ZodString;
1862
- question: z.ZodString;
1863
- choices: z.ZodArray<z.ZodObject<{
1864
- id: z.ZodString;
1865
- label: z.ZodString;
1866
- description: z.ZodOptional<z.ZodString>;
1867
- }, "strip", z.ZodTypeAny, {
1868
- id: string;
1869
- label: string;
1870
- description?: string | undefined;
1871
- }, {
1872
- id: string;
1873
- label: string;
1874
- description?: string | undefined;
1875
- }>, "many">;
1876
- context: z.ZodOptional<z.ZodString>;
1877
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1878
- }, "strip", z.ZodTypeAny, {
1879
- id: string;
1880
- question: string;
1881
- choices: {
1882
- id: string;
1883
- label: string;
1884
- description?: string | undefined;
1885
- }[];
1886
- allowMultiple: boolean;
1887
- context?: string | undefined;
1888
- }, {
1889
- id: string;
1890
- question: string;
1891
- choices: {
1892
- id: string;
1893
- label: string;
1894
- description?: string | undefined;
1895
- }[];
1896
- context?: string | undefined;
1897
- allowMultiple?: boolean | undefined;
1898
- }>, "many">;
1899
- }, "strip", z.ZodTypeAny, {
1900
- questions: {
1901
- id: string;
1902
- question: string;
1903
- choices: {
1904
- id: string;
1905
- label: string;
1906
- description?: string | undefined;
1907
- }[];
1908
- allowMultiple: boolean;
1909
- context?: string | undefined;
1910
- }[];
1911
- }, {
1912
- questions: {
1913
- id: string;
1914
- question: string;
1915
- choices: {
1916
- id: string;
1917
- label: string;
1918
- description?: string | undefined;
1919
- }[];
1920
- context?: string | undefined;
1921
- allowMultiple?: boolean | undefined;
1922
- }[];
1923
- }>>;
1924
- plan: z.ZodOptional<z.ZodObject<{
1925
- summary: z.ZodString;
1926
- steps: z.ZodArray<z.ZodObject<{
1927
- title: z.ZodString;
1928
- description: z.ZodString;
1929
- bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1930
- }, "strip", z.ZodTypeAny, {
1931
- description: string;
1932
- title: string;
1933
- bubblesUsed?: string[] | undefined;
1934
- }, {
1935
- description: string;
1936
- title: string;
1937
- bubblesUsed?: string[] | undefined;
1938
- }>, "many">;
1939
- estimatedBubbles: z.ZodArray<z.ZodString, "many">;
1940
- }, "strip", z.ZodTypeAny, {
1941
- summary: string;
1942
- steps: {
1943
- description: string;
1944
- title: string;
1945
- bubblesUsed?: string[] | undefined;
1946
- }[];
1947
- estimatedBubbles: string[];
1948
- }, {
1949
- summary: string;
1950
- steps: {
1951
- description: string;
1952
- title: string;
1953
- bubblesUsed?: string[] | undefined;
1954
- }[];
1955
- estimatedBubbles: string[];
1956
- }>>;
1957
- contextRequest: z.ZodOptional<z.ZodObject<{
1958
- flowId: z.ZodString;
1959
- flowCode: z.ZodString;
1960
- requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">;
1961
- description: z.ZodString;
1962
- }, "strip", z.ZodTypeAny, {
1963
- description: string;
1964
- flowId: string;
1965
- requiredCredentials: CredentialType[];
1966
- flowCode: string;
1967
- }, {
1968
- description: string;
1969
- flowId: string;
1970
- requiredCredentials: CredentialType[];
1971
- flowCode: string;
1972
- }>>;
1973
- error: z.ZodOptional<z.ZodString>;
1974
- success: z.ZodBoolean;
1975
- }, "strip", z.ZodTypeAny, {
1976
- type: "error" | "context_request" | "plan" | "clarification";
1977
- success: boolean;
1978
- error?: string | undefined;
1979
- plan?: {
1980
- summary: string;
1981
- steps: {
1982
- description: string;
1983
- title: string;
1984
- bubblesUsed?: string[] | undefined;
1985
- }[];
1986
- estimatedBubbles: string[];
1987
- } | undefined;
1988
- clarification?: {
1989
- questions: {
1990
- id: string;
1991
- question: string;
1992
- choices: {
1993
- id: string;
1994
- label: string;
1995
- description?: string | undefined;
1996
- }[];
1997
- allowMultiple: boolean;
1998
- context?: string | undefined;
1999
- }[];
2000
- } | undefined;
2001
- contextRequest?: {
2002
- description: string;
2003
- flowId: string;
2004
- requiredCredentials: CredentialType[];
2005
- flowCode: string;
2006
- } | undefined;
2007
- }, {
2008
- type: "error" | "context_request" | "plan" | "clarification";
2009
- success: boolean;
2010
- error?: string | undefined;
2011
- plan?: {
2012
- summary: string;
2013
- steps: {
2014
- description: string;
2015
- title: string;
2016
- bubblesUsed?: string[] | undefined;
2017
- }[];
2018
- estimatedBubbles: string[];
2019
- } | undefined;
2020
- clarification?: {
2021
- questions: {
2022
- id: string;
2023
- question: string;
2024
- choices: {
2025
- id: string;
2026
- label: string;
2027
- description?: string | undefined;
2028
- }[];
2029
- context?: string | undefined;
2030
- allowMultiple?: boolean | undefined;
2031
- }[];
2032
- } | undefined;
2033
- contextRequest?: {
2034
- description: string;
2035
- flowId: string;
2036
- requiredCredentials: CredentialType[];
2037
- flowCode: string;
2038
- } | undefined;
2039
- }>;
2040
- /** Internal output format from the Coffee AI agent */
2041
- export declare const CoffeeAgentOutputSchema: z.ZodObject<{
2042
- action: z.ZodEnum<["askClarification", "generatePlan", "requestContext"]>;
2043
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2044
- id: z.ZodString;
2045
- question: z.ZodString;
2046
- choices: z.ZodArray<z.ZodObject<{
2047
- id: z.ZodString;
2048
- label: z.ZodString;
2049
- description: z.ZodOptional<z.ZodString>;
2050
- }, "strip", z.ZodTypeAny, {
2051
- id: string;
2052
- label: string;
2053
- description?: string | undefined;
2054
- }, {
2055
- id: string;
2056
- label: string;
2057
- description?: string | undefined;
2058
- }>, "many">;
2059
- context: z.ZodOptional<z.ZodString>;
2060
- allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2061
- }, "strip", z.ZodTypeAny, {
2062
- id: string;
2063
- question: string;
2064
- choices: {
2065
- id: string;
2066
- label: string;
2067
- description?: string | undefined;
2068
- }[];
2069
- allowMultiple: boolean;
2070
- context?: string | undefined;
2071
- }, {
2072
- id: string;
2073
- question: string;
2074
- choices: {
2075
- id: string;
2076
- label: string;
2077
- description?: string | undefined;
2078
- }[];
2079
- context?: string | undefined;
2080
- allowMultiple?: boolean | undefined;
2081
- }>, "many">>;
2082
- plan: z.ZodOptional<z.ZodObject<{
2083
- summary: z.ZodString;
2084
- steps: z.ZodArray<z.ZodObject<{
2085
- title: z.ZodString;
2086
- description: z.ZodString;
2087
- bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2088
- }, "strip", z.ZodTypeAny, {
2089
- description: string;
2090
- title: string;
2091
- bubblesUsed?: string[] | undefined;
2092
- }, {
2093
- description: string;
2094
- title: string;
2095
- bubblesUsed?: string[] | undefined;
2096
- }>, "many">;
2097
- estimatedBubbles: z.ZodArray<z.ZodString, "many">;
2098
- }, "strip", z.ZodTypeAny, {
2099
- summary: string;
2100
- steps: {
2101
- description: string;
2102
- title: string;
2103
- bubblesUsed?: string[] | undefined;
2104
- }[];
2105
- estimatedBubbles: string[];
2106
- }, {
2107
- summary: string;
2108
- steps: {
2109
- description: string;
2110
- title: string;
2111
- bubblesUsed?: string[] | undefined;
2112
- }[];
2113
- estimatedBubbles: string[];
2114
- }>>;
2115
- contextRequest: z.ZodOptional<z.ZodObject<{
2116
- purpose: z.ZodString;
2117
- flowDescription: z.ZodString;
2118
- }, "strip", z.ZodTypeAny, {
2119
- purpose: string;
2120
- flowDescription: string;
2121
- }, {
2122
- purpose: string;
2123
- flowDescription: string;
2124
- }>>;
2125
- }, "strip", z.ZodTypeAny, {
2126
- action: "askClarification" | "generatePlan" | "requestContext";
2127
- questions?: {
2128
- id: string;
2129
- question: string;
2130
- choices: {
2131
- id: string;
2132
- label: string;
2133
- description?: string | undefined;
2134
- }[];
2135
- allowMultiple: boolean;
2136
- context?: string | undefined;
2137
- }[] | undefined;
2138
- plan?: {
2139
- summary: string;
2140
- steps: {
2141
- description: string;
2142
- title: string;
2143
- bubblesUsed?: string[] | undefined;
2144
- }[];
2145
- estimatedBubbles: string[];
2146
- } | undefined;
2147
- contextRequest?: {
2148
- purpose: string;
2149
- flowDescription: string;
2150
- } | undefined;
2151
- }, {
2152
- action: "askClarification" | "generatePlan" | "requestContext";
2153
- questions?: {
2154
- id: string;
2155
- question: string;
2156
- choices: {
2157
- id: string;
2158
- label: string;
2159
- description?: string | undefined;
2160
- }[];
2161
- context?: string | undefined;
2162
- allowMultiple?: boolean | undefined;
2163
- }[] | undefined;
2164
- plan?: {
2165
- summary: string;
2166
- steps: {
2167
- description: string;
2168
- title: string;
2169
- bubblesUsed?: string[] | undefined;
2170
- }[];
2171
- estimatedBubbles: string[];
2172
- } | undefined;
2173
- contextRequest?: {
2174
- purpose: string;
2175
- flowDescription: string;
2176
- } | undefined;
2177
- }>;
2178
- export type ClarificationChoice = z.infer<typeof ClarificationChoiceSchema>;
2179
- export type ClarificationQuestion = z.infer<typeof ClarificationQuestionSchema>;
2180
- export type CoffeeClarificationEvent = z.infer<typeof CoffeeClarificationEventSchema>;
2181
- export type CoffeeRequestExternalContextEvent = z.infer<typeof CoffeeRequestExternalContextEventSchema>;
2182
- export type CoffeeContextAnswer = z.infer<typeof CoffeeContextAnswerSchema>;
2183
- export type CoffeeContextEvent = z.infer<typeof CoffeeContextEventSchema>;
2184
- export type CoffeeContextRequestInfo = z.infer<typeof CoffeeContextRequestInfoSchema>;
2185
- export type PlanStep = z.infer<typeof PlanStepSchema>;
2186
- export type CoffeePlanEvent = z.infer<typeof CoffeePlanEventSchema>;
2187
- export type CoffeeRequest = z.infer<typeof CoffeeRequestSchema>;
2188
- export type CoffeeResponse = z.infer<typeof CoffeeResponseSchema>;
2189
- export type CoffeeAgentOutput = z.infer<typeof CoffeeAgentOutputSchema>;
2190
- export type UserMessage = z.infer<typeof UserMessageSchema>;
2191
- export type AssistantMessage = z.infer<typeof AssistantMessageSchema>;
2192
- export type ClarificationRequestMessage = z.infer<typeof ClarificationRequestMessageSchema>;
2193
- export type ClarificationResponseMessage = z.infer<typeof ClarificationResponseMessageSchema>;
2194
- export type ContextRequestMessage = z.infer<typeof ContextRequestMessageSchema>;
2195
- export type ContextResponseMessage = z.infer<typeof ContextResponseMessageSchema>;
2196
- export type PlanMessage = z.infer<typeof PlanMessageSchema>;
2197
- export type PlanApprovalMessage = z.infer<typeof PlanApprovalMessageSchema>;
2198
- export type SystemMessage = z.infer<typeof SystemMessageSchema>;
2199
- export type ToolResultMessage = z.infer<typeof ToolResultMessageSchema>;
2200
- export type CoffeeMessage = z.infer<typeof CoffeeMessageSchema>;
2201
- //# sourceMappingURL=coffee.d.ts.map