@bubblelab/shared-schemas 0.1.12 → 0.1.14

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 (74) hide show
  1. package/dist/agent-memory.d.ts +4 -4
  2. package/dist/bubble-definition-schema.d.ts +38 -38
  3. package/dist/bubbleflow-execution-schema.d.ts +70 -70
  4. package/dist/bubbleflow-schema.d.ts +162 -162
  5. package/dist/coffee.d.ts +144 -144
  6. package/dist/credential-schema.d.ts +50 -50
  7. package/dist/credential-schema.d.ts.map +1 -1
  8. package/dist/database-definition-schema.d.ts +8 -8
  9. package/dist/generate-bubbleflow-schema.d.ts +129 -129
  10. package/dist/index.js +3553 -30
  11. package/dist/index.js.map +1 -1
  12. package/dist/milk-tea.d.ts +12 -12
  13. package/dist/oauth-schema.d.ts +2 -2
  14. package/dist/pearl.d.ts +32 -32
  15. package/dist/rice.d.ts +17 -17
  16. package/dist/trigger.d.ts +59 -0
  17. package/dist/trigger.d.ts.map +1 -1
  18. package/dist/types.d.ts +1 -1
  19. package/dist/types.d.ts.map +1 -1
  20. package/package.json +3 -2
  21. package/dist/agent-memory.js +0 -11
  22. package/dist/agent-memory.js.map +0 -1
  23. package/dist/ai-models.js +0 -31
  24. package/dist/ai-models.js.map +0 -1
  25. package/dist/api-schema.js +0 -26
  26. package/dist/api-schema.js.map +0 -1
  27. package/dist/bubble-definition-schema.js +0 -299
  28. package/dist/bubble-definition-schema.js.map +0 -1
  29. package/dist/bubbleflow-execution-schema.js +0 -360
  30. package/dist/bubbleflow-execution-schema.js.map +0 -1
  31. package/dist/bubbleflow-generation-prompts.js +0 -17
  32. package/dist/bubbleflow-generation-prompts.js.map +0 -1
  33. package/dist/bubbleflow-schema.js +0 -336
  34. package/dist/bubbleflow-schema.js.map +0 -1
  35. package/dist/coffee.js +0 -257
  36. package/dist/coffee.js.map +0 -1
  37. package/dist/credential-schema.js +0 -829
  38. package/dist/credential-schema.js.map +0 -1
  39. package/dist/cron-utils.js +0 -228
  40. package/dist/cron-utils.js.map +0 -1
  41. package/dist/database-definition-schema.js +0 -36
  42. package/dist/database-definition-schema.js.map +0 -1
  43. package/dist/error-enhancer.js +0 -88
  44. package/dist/error-enhancer.js.map +0 -1
  45. package/dist/generate-bubbleflow-schema.js +0 -304
  46. package/dist/generate-bubbleflow-schema.js.map +0 -1
  47. package/dist/hash-utils.js +0 -37
  48. package/dist/hash-utils.js.map +0 -1
  49. package/dist/milk-tea.js +0 -71
  50. package/dist/milk-tea.js.map +0 -1
  51. package/dist/mock-data-generator.js +0 -335
  52. package/dist/mock-data-generator.js.map +0 -1
  53. package/dist/oauth-schema.js +0 -75
  54. package/dist/oauth-schema.js.map +0 -1
  55. package/dist/param-utils.js +0 -13
  56. package/dist/param-utils.js.map +0 -1
  57. package/dist/pearl.js +0 -90
  58. package/dist/pearl.js.map +0 -1
  59. package/dist/rice.js +0 -65
  60. package/dist/rice.js.map +0 -1
  61. package/dist/storage-utils.js +0 -54
  62. package/dist/storage-utils.js.map +0 -1
  63. package/dist/streaming-events.js +0 -5
  64. package/dist/streaming-events.js.map +0 -1
  65. package/dist/subscription-status-schema.js +0 -144
  66. package/dist/subscription-status-schema.js.map +0 -1
  67. package/dist/trigger.js +0 -12
  68. package/dist/trigger.js.map +0 -1
  69. package/dist/types.js +0 -47
  70. package/dist/types.js.map +0 -1
  71. package/dist/waitlist-schema.js +0 -39
  72. package/dist/waitlist-schema.js.map +0 -1
  73. package/dist/webhook-schema.js +0 -50
  74. package/dist/webhook-schema.js.map +0 -1
@@ -20,15 +20,15 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
20
20
  toolCallId: z.ZodOptional<z.ZodString>;
21
21
  name: z.ZodOptional<z.ZodString>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- content: string;
24
23
  role: "user" | "assistant" | "tool";
25
- name?: string | undefined;
24
+ content: string;
26
25
  toolCallId?: string | undefined;
26
+ name?: string | undefined;
27
27
  }, {
28
- content: string;
29
28
  role: "user" | "assistant" | "tool";
30
- name?: string | undefined;
29
+ content: string;
31
30
  toolCallId?: string | undefined;
31
+ name?: string | undefined;
32
32
  }>, "many">>>;
33
33
  model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>;
34
34
  }, "strip", z.ZodTypeAny, {
@@ -39,10 +39,10 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
39
39
  availableCredentials: string[];
40
40
  userName: string;
41
41
  conversationHistory: {
42
- content: string;
43
42
  role: "user" | "assistant" | "tool";
44
- name?: string | undefined;
43
+ content: string;
45
44
  toolCallId?: string | undefined;
45
+ name?: string | undefined;
46
46
  }[];
47
47
  currentCode?: string | undefined;
48
48
  insertLocation?: string | undefined;
@@ -56,10 +56,10 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
56
56
  availableCredentials?: string[] | undefined;
57
57
  insertLocation?: string | undefined;
58
58
  conversationHistory?: {
59
- content: string;
60
59
  role: "user" | "assistant" | "tool";
61
- name?: string | undefined;
60
+ content: string;
62
61
  toolCallId?: string | undefined;
62
+ name?: string | undefined;
63
63
  }[] | undefined;
64
64
  }>;
65
65
  /**
@@ -72,14 +72,14 @@ export declare const MilkTeaResponseSchema: z.ZodObject<{
72
72
  success: z.ZodBoolean;
73
73
  error: z.ZodOptional<z.ZodString>;
74
74
  }, "strip", z.ZodTypeAny, {
75
- type: "code" | "question" | "reject";
76
75
  message: string;
76
+ type: "code" | "question" | "reject";
77
77
  success: boolean;
78
78
  error?: string | undefined;
79
79
  snippet?: string | undefined;
80
80
  }, {
81
- type: "code" | "question" | "reject";
82
81
  message: string;
82
+ type: "code" | "question" | "reject";
83
83
  success: boolean;
84
84
  error?: string | undefined;
85
85
  snippet?: string | undefined;
@@ -92,12 +92,12 @@ export declare const MilkTeaAgentOutputSchema: z.ZodObject<{
92
92
  message: z.ZodString;
93
93
  snippet: z.ZodOptional<z.ZodString>;
94
94
  }, "strip", z.ZodTypeAny, {
95
- type: "code" | "question" | "reject";
96
95
  message: string;
96
+ type: "code" | "question" | "reject";
97
97
  snippet?: string | undefined;
98
98
  }, {
99
- type: "code" | "question" | "reject";
100
99
  message: string;
100
+ type: "code" | "question" | "reject";
101
101
  snippet?: string | undefined;
102
102
  }>;
103
103
  export type MilkTeaRequest = z.infer<typeof MilkTeaRequestSchema>;
@@ -29,13 +29,13 @@ export declare const oauthCallbackRequestSchema: z.ZodObject<{
29
29
  name: z.ZodString;
30
30
  description: z.ZodOptional<z.ZodString>;
31
31
  }, "strip", z.ZodTypeAny, {
32
- code: string;
33
32
  name: string;
33
+ code: string;
34
34
  state: string;
35
35
  description?: string | undefined;
36
36
  }, {
37
- code: string;
38
37
  name: string;
38
+ code: string;
39
39
  state: string;
40
40
  description?: string | undefined;
41
41
  }>;
package/dist/pearl.d.ts CHANGED
@@ -17,15 +17,15 @@ export declare const PearlRequestSchema: z.ZodObject<{
17
17
  toolCallId: z.ZodOptional<z.ZodString>;
18
18
  name: z.ZodOptional<z.ZodString>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- content: string;
21
20
  role: "user" | "assistant" | "tool";
22
- name?: string | undefined;
21
+ content: string;
23
22
  toolCallId?: string | undefined;
23
+ name?: string | undefined;
24
24
  }, {
25
- content: string;
26
25
  role: "user" | "assistant" | "tool";
27
- name?: string | undefined;
26
+ content: string;
28
27
  toolCallId?: string | undefined;
28
+ name?: string | undefined;
29
29
  }>, "many">>>;
30
30
  model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>;
31
31
  additionalContext: z.ZodOptional<z.ZodString>;
@@ -34,12 +34,12 @@ export declare const PearlRequestSchema: z.ZodObject<{
34
34
  content: z.ZodString;
35
35
  fileType: z.ZodEnum<["image", "text"]>;
36
36
  }, "strip", z.ZodTypeAny, {
37
- name: string;
38
37
  content: string;
38
+ name: string;
39
39
  fileType: "text" | "image";
40
40
  }, {
41
- name: string;
42
41
  content: string;
42
+ name: string;
43
43
  fileType: "text" | "image";
44
44
  }>, "many">>>;
45
45
  }, "strip", z.ZodTypeAny, {
@@ -47,15 +47,15 @@ export declare const PearlRequestSchema: z.ZodObject<{
47
47
  userRequest: string;
48
48
  userName: string;
49
49
  conversationHistory: {
50
- content: string;
51
50
  role: "user" | "assistant" | "tool";
52
- name?: string | undefined;
51
+ content: string;
53
52
  toolCallId?: string | undefined;
53
+ name?: string | undefined;
54
54
  }[];
55
55
  availableVariables: any[];
56
56
  uploadedFiles: {
57
- name: string;
58
57
  content: string;
58
+ name: string;
59
59
  fileType: "text" | "image";
60
60
  }[];
61
61
  currentCode?: string | undefined;
@@ -67,15 +67,15 @@ export declare const PearlRequestSchema: z.ZodObject<{
67
67
  model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1" | undefined;
68
68
  currentCode?: string | undefined;
69
69
  conversationHistory?: {
70
- content: string;
71
70
  role: "user" | "assistant" | "tool";
72
- name?: string | undefined;
71
+ content: string;
73
72
  toolCallId?: string | undefined;
73
+ name?: string | undefined;
74
74
  }[] | undefined;
75
75
  additionalContext?: string | undefined;
76
76
  uploadedFiles?: {
77
- name: string;
78
77
  content: string;
78
+ name: string;
79
79
  fileType: "text" | "image";
80
80
  }[] | undefined;
81
81
  }>;
@@ -113,9 +113,9 @@ export declare const PearlResponseSchema: z.ZodObject<{
113
113
  type: z.ZodNativeEnum<typeof import("./bubble-definition-schema.js").BubbleParameterType>;
114
114
  source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>;
115
115
  }, "strip", z.ZodTypeAny, {
116
- type: import("./bubble-definition-schema.js").BubbleParameterType;
117
- value: string | number | boolean | unknown[] | Record<string, unknown>;
118
116
  name: string;
117
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
118
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
119
119
  location?: {
120
120
  startLine: number;
121
121
  startCol: number;
@@ -125,9 +125,9 @@ export declare const PearlResponseSchema: z.ZodObject<{
125
125
  variableId?: number | undefined;
126
126
  source?: "object-property" | "first-arg" | "spread" | undefined;
127
127
  }, {
128
- type: import("./bubble-definition-schema.js").BubbleParameterType;
129
- value: string | number | boolean | unknown[] | Record<string, unknown>;
130
128
  name: string;
129
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
130
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
131
131
  location?: {
132
132
  startLine: number;
133
133
  startCol: number;
@@ -173,12 +173,12 @@ export declare const PearlResponseSchema: z.ZodObject<{
173
173
  };
174
174
  variableId: number;
175
175
  variableName: string;
176
- nodeType: "unknown" | "tool" | "service" | "workflow";
176
+ nodeType: "tool" | "unknown" | "service" | "workflow";
177
177
  className: string;
178
178
  parameters: {
179
- type: import("./bubble-definition-schema.js").BubbleParameterType;
180
- value: string | number | boolean | unknown[] | Record<string, unknown>;
181
179
  name: string;
180
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
181
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
182
182
  location?: {
183
183
  startLine: number;
184
184
  startCol: number;
@@ -207,12 +207,12 @@ export declare const PearlResponseSchema: z.ZodObject<{
207
207
  };
208
208
  variableId: number;
209
209
  variableName: string;
210
- nodeType: "unknown" | "tool" | "service" | "workflow";
210
+ nodeType: "tool" | "unknown" | "service" | "workflow";
211
211
  className: string;
212
212
  parameters: {
213
- type: import("./bubble-definition-schema.js").BubbleParameterType;
214
- value: string | number | boolean | unknown[] | Record<string, unknown>;
215
213
  name: string;
214
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
215
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
216
216
  location?: {
217
217
  startLine: number;
218
218
  startCol: number;
@@ -238,8 +238,8 @@ export declare const PearlResponseSchema: z.ZodObject<{
238
238
  success: z.ZodBoolean;
239
239
  error: z.ZodOptional<z.ZodString>;
240
240
  }, "strip", z.ZodTypeAny, {
241
- type: "code" | "question" | "answer" | "reject";
242
241
  message: string;
242
+ type: "code" | "question" | "answer" | "reject";
243
243
  success: boolean;
244
244
  error?: string | undefined;
245
245
  inputSchema?: Record<string, unknown> | undefined;
@@ -253,12 +253,12 @@ export declare const PearlResponseSchema: z.ZodObject<{
253
253
  };
254
254
  variableId: number;
255
255
  variableName: string;
256
- nodeType: "unknown" | "tool" | "service" | "workflow";
256
+ nodeType: "tool" | "unknown" | "service" | "workflow";
257
257
  className: string;
258
258
  parameters: {
259
- type: import("./bubble-definition-schema.js").BubbleParameterType;
260
- value: string | number | boolean | unknown[] | Record<string, unknown>;
261
259
  name: string;
260
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
261
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
262
262
  location?: {
263
263
  startLine: number;
264
264
  startCol: number;
@@ -281,8 +281,8 @@ export declare const PearlResponseSchema: z.ZodObject<{
281
281
  }> | undefined;
282
282
  snippet?: string | undefined;
283
283
  }, {
284
- type: "code" | "question" | "answer" | "reject";
285
284
  message: string;
285
+ type: "code" | "question" | "answer" | "reject";
286
286
  success: boolean;
287
287
  error?: string | undefined;
288
288
  inputSchema?: Record<string, unknown> | undefined;
@@ -296,12 +296,12 @@ export declare const PearlResponseSchema: z.ZodObject<{
296
296
  };
297
297
  variableId: number;
298
298
  variableName: string;
299
- nodeType: "unknown" | "tool" | "service" | "workflow";
299
+ nodeType: "tool" | "unknown" | "service" | "workflow";
300
300
  className: string;
301
301
  parameters: {
302
- type: import("./bubble-definition-schema.js").BubbleParameterType;
303
- value: string | number | boolean | unknown[] | Record<string, unknown>;
304
302
  name: string;
303
+ value: string | number | boolean | unknown[] | Record<string, unknown>;
304
+ type: import("./bubble-definition-schema.js").BubbleParameterType;
305
305
  location?: {
306
306
  startLine: number;
307
307
  startCol: number;
@@ -332,12 +332,12 @@ export declare const PearlAgentOutputSchema: z.ZodObject<{
332
332
  message: z.ZodString;
333
333
  snippet: z.ZodOptional<z.ZodString>;
334
334
  }, "strip", z.ZodTypeAny, {
335
- type: "code" | "text" | "question" | "answer" | "reject";
336
335
  message: string;
336
+ type: "code" | "question" | "answer" | "reject" | "text";
337
337
  snippet?: string | undefined;
338
338
  }, {
339
- type: "code" | "text" | "question" | "answer" | "reject";
340
339
  message: string;
340
+ type: "code" | "question" | "answer" | "reject" | "text";
341
341
  snippet?: string | undefined;
342
342
  }>;
343
343
  export type PearlRequest = z.infer<typeof PearlRequestSchema>;
package/dist/rice.d.ts CHANGED
@@ -20,14 +20,14 @@ export declare const RiceEvaluationResultSchema: z.ZodObject<{
20
20
  summary: z.ZodString;
21
21
  rating: z.ZodNumber;
22
22
  }, "strip", z.ZodTypeAny, {
23
- working: boolean;
24
- issueType: "setup" | "workflow" | "input" | null;
25
23
  summary: string;
24
+ working: boolean;
25
+ issueType: "workflow" | "input" | "setup" | null;
26
26
  rating: number;
27
27
  }, {
28
- working: boolean;
29
- issueType: "setup" | "workflow" | "input" | null;
30
28
  summary: string;
29
+ working: boolean;
30
+ issueType: "workflow" | "input" | "setup" | null;
31
31
  rating: number;
32
32
  }>;
33
33
  /**
@@ -42,14 +42,14 @@ export declare const RiceRequestSchema: z.ZodObject<{
42
42
  model: z.ZodDefault<z.ZodOptional<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>>;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  executionLogs: unknown[];
45
- workflowCode: string;
46
45
  executionId: number;
47
- bubbleFlowId: number;
48
46
  model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1";
47
+ workflowCode: string;
48
+ bubbleFlowId: number;
49
49
  }, {
50
50
  executionLogs: unknown[];
51
- workflowCode: string;
52
51
  executionId: number;
52
+ workflowCode: string;
53
53
  bubbleFlowId: number;
54
54
  model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1" | undefined;
55
55
  }>;
@@ -64,35 +64,35 @@ export declare const RiceResponseSchema: z.ZodObject<{
64
64
  summary: z.ZodString;
65
65
  rating: z.ZodNumber;
66
66
  }, "strip", z.ZodTypeAny, {
67
- working: boolean;
68
- issueType: "setup" | "workflow" | "input" | null;
69
67
  summary: string;
68
+ working: boolean;
69
+ issueType: "workflow" | "input" | "setup" | null;
70
70
  rating: number;
71
71
  }, {
72
- working: boolean;
73
- issueType: "setup" | "workflow" | "input" | null;
74
72
  summary: string;
73
+ working: boolean;
74
+ issueType: "workflow" | "input" | "setup" | null;
75
75
  rating: number;
76
76
  }>>;
77
77
  error: z.ZodOptional<z.ZodString>;
78
78
  }, "strip", z.ZodTypeAny, {
79
79
  success: boolean;
80
+ error?: string | undefined;
80
81
  evaluation?: {
81
- working: boolean;
82
- issueType: "setup" | "workflow" | "input" | null;
83
82
  summary: string;
83
+ working: boolean;
84
+ issueType: "workflow" | "input" | "setup" | null;
84
85
  rating: number;
85
86
  } | undefined;
86
- error?: string | undefined;
87
87
  }, {
88
88
  success: boolean;
89
+ error?: string | undefined;
89
90
  evaluation?: {
90
- working: boolean;
91
- issueType: "setup" | "workflow" | "input" | null;
92
91
  summary: string;
92
+ working: boolean;
93
+ issueType: "workflow" | "input" | "setup" | null;
93
94
  rating: number;
94
95
  } | undefined;
95
- error?: string | undefined;
96
96
  }>;
97
97
  export type RiceEvaluationResult = z.infer<typeof RiceEvaluationResultSchema>;
98
98
  export type RiceRequest = z.input<typeof RiceRequestSchema>;
package/dist/trigger.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  export interface BubbleTriggerEventRegistry {
2
2
  'slack/bot_mentioned': SlackMentionEvent;
3
+ 'slack/message_received': SlackMessageReceivedEvent;
3
4
  'schedule/cron': CronEvent;
4
5
  'webhook/http': WebhookEvent;
5
6
  }
6
7
  export declare const BUBBLE_TRIGGER_EVENTS: {
7
8
  readonly 'slack/bot_mentioned': true;
9
+ readonly 'slack/message_received': true;
8
10
  readonly 'schedule/cron': true;
9
11
  readonly 'webhook/http': true;
10
12
  };
@@ -110,4 +112,61 @@ export interface SlackMessageReceivedEvent extends BubbleTriggerEvent {
110
112
  channel_type: 'channel' | 'group' | 'im' | 'mpim';
111
113
  subtype?: string;
112
114
  }
115
+ /**
116
+ * JSON Schema type for payload validation
117
+ */
118
+ export interface JsonSchema {
119
+ type: string;
120
+ properties?: Record<string, JsonSchemaProperty>;
121
+ required?: string[];
122
+ additionalProperties?: boolean;
123
+ }
124
+ export interface JsonSchemaProperty {
125
+ type?: string;
126
+ description?: string;
127
+ [key: string]: unknown;
128
+ }
129
+ /**
130
+ * Configuration for a trigger event type
131
+ * Single source of truth for all trigger metadata
132
+ */
133
+ export interface TriggerEventConfig {
134
+ /** The bubble/service name (e.g., 'Slack') - used for logo lookup */
135
+ serviceName: string;
136
+ /** Human-friendly name (e.g., 'When Slack bot is mentioned') */
137
+ friendlyName: string;
138
+ /** Description of what this trigger does */
139
+ description: string;
140
+ /** Setup guide markdown for configuring this trigger */
141
+ setupGuide: string;
142
+ /** JSON Schema for the payload */
143
+ payloadSchema: JsonSchema;
144
+ }
145
+ /**
146
+ * Registry of all trigger event configurations
147
+ * Keys must match BubbleTriggerEventRegistry
148
+ */
149
+ export declare const TRIGGER_EVENT_CONFIGS: Record<keyof BubbleTriggerEventRegistry, TriggerEventConfig>;
150
+ /**
151
+ * Get configuration for a trigger event type
152
+ * @param eventType - The trigger event type key
153
+ * @returns The trigger configuration or undefined if not found
154
+ */
155
+ export declare function getTriggerEventConfig(eventType: keyof BubbleTriggerEventRegistry): TriggerEventConfig;
156
+ /**
157
+ * Check if an event type is a service trigger (not webhook/cron)
158
+ * Service triggers get special UI treatment with logos and friendly names
159
+ */
160
+ export declare function isServiceTrigger(eventType: keyof BubbleTriggerEventRegistry): boolean;
161
+ /**
162
+ * Mapping from trigger event interface names to their event type keys.
163
+ * Used by BubbleParser to identify when a payload interface extends a known trigger event.
164
+ */
165
+ export declare const TRIGGER_EVENT_INTERFACE_MAP: Record<string, keyof BubbleTriggerEventRegistry>;
166
+ /**
167
+ * Get the trigger event type key from an interface name.
168
+ * @param interfaceName - The name of the interface (e.g., 'SlackMentionEvent')
169
+ * @returns The trigger event type key or undefined if not a known trigger interface
170
+ */
171
+ export declare function getTriggerEventTypeFromInterfaceName(interfaceName: string): keyof BubbleTriggerEventRegistry | undefined;
113
172
  //# sourceMappingURL=trigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../src/trigger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,qBAAqB,EAAE,iBAAiB,CAAC;IACzC,eAAe,EAAE,SAAS,CAAC;IAC3B,cAAc,EAAE,YAAY,CAAC;CAC9B;AAID,eAAO,MAAM,qBAAqB;;;;CAIiC,CAAC;AAGpE,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,GAChB,SAAS,IAAI,MAAM,0BAA0B,CAE/C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,0BAA0B,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,0BAA0B,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE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BAAqB,CACnC,SAAS,EAAE,MAAM,0BAA0B,GAC1C,kBAAkB,CAEpB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,0BAA0B,GAC1C,OAAO,CAET;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC9C,MAAM,EACN,MAAM,0BAA0B,CAOjC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,oCAAoC,CAClD,aAAa,EAAE,MAAM,GACpB,MAAM,0BAA0B,GAAG,SAAS,CAE9C"}
package/dist/types.d.ts CHANGED
@@ -27,5 +27,5 @@ export declare enum CredentialType {
27
27
  CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY",
28
28
  AMAZON_CRED = "AMAZON_CRED"
29
29
  }
30
- export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool';
30
+ export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool';
31
31
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IAExB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IAEnC,iBAAiB,sBAAsB;IAEvC,aAAa,kBAAkB;IAE/B,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IAEzC,WAAW,gBAAgB;IAE3B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IAErD,UAAU,eAAe;IAGzB,kBAAkB,uBAAuB;IAGzC,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;IAC7C,QAAQ,aAAa;IACrB,kBAAkB,uBAAuB;IAGzC,YAAY,iBAAiB;IAG7B,WAAW,gBAAgB;IAG3B,aAAa,kBAAkB;IAG/B,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;IAGrC,eAAe,oBAAoB;IAGnC,WAAW,gBAAgB;CAC5B;AAGD,MAAM,MAAM,UAAU,GAClB,aAAa,GACb,UAAU,GACV,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,MAAM,GACN,uBAAuB,GACvB,mBAAmB,GACnB,gBAAgB,GAChB,yBAAyB,GACzB,mBAAmB,GACnB,gBAAgB,GAChB,eAAe,GACf,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,kBAAkB,GAClB,qBAAqB,GACrB,oBAAoB,GACpB,sBAAsB,GACtB,2BAA2B,GAC3B,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,GAClB,4BAA4B,GAC5B,yBAAyB,GACzB,4BAA4B,GAC5B,gBAAgB,GAChB,SAAS,GACT,cAAc,GACd,OAAO,GACP,eAAe,GACf,iBAAiB,GACjB,OAAO,GACP,gBAAgB,GAChB,eAAe,GACf,aAAa,GACb,cAAc,GACd,kBAAkB,GAClB,cAAc,GACd,QAAQ,GACR,aAAa,GACb,cAAc,GACd,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,WAAW,GACX,aAAa,GACb,aAAa,GACb,sBAAsB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IAExB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IAEnC,iBAAiB,sBAAsB;IAEvC,aAAa,kBAAkB;IAE/B,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IAEzC,WAAW,gBAAgB;IAE3B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IAErD,UAAU,eAAe;IAGzB,kBAAkB,uBAAuB;IAGzC,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;IAC7C,QAAQ,aAAa;IACrB,kBAAkB,uBAAuB;IAGzC,YAAY,iBAAiB;IAG7B,WAAW,gBAAgB;IAG3B,aAAa,kBAAkB;IAG/B,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;IAGrC,eAAe,oBAAoB;IAGnC,WAAW,gBAAgB;CAC5B;AAGD,MAAM,MAAM,UAAU,GAClB,aAAa,GACb,UAAU,GACV,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,MAAM,GACN,uBAAuB,GACvB,mBAAmB,GACnB,gBAAgB,GAChB,yBAAyB,GACzB,yBAAyB,GACzB,mBAAmB,GACnB,gBAAgB,GAChB,eAAe,GACf,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,kBAAkB,GAClB,qBAAqB,GACrB,oBAAoB,GACpB,sBAAsB,GACtB,2BAA2B,GAC3B,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,GAClB,4BAA4B,GAC5B,yBAAyB,GACzB,4BAA4B,GAC5B,gBAAgB,GAChB,SAAS,GACT,cAAc,GACd,OAAO,GACP,eAAe,GACf,iBAAiB,GACjB,OAAO,GACP,gBAAgB,GAChB,eAAe,GACf,aAAa,GACb,cAAc,GACd,kBAAkB,GAClB,cAAc,GACd,QAAQ,GACR,aAAa,GACb,cAAc,GACd,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,WAAW,GACX,aAAa,GACb,aAAa,GACb,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bubblelab/shared-schemas",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -29,11 +29,12 @@
29
29
  "@typescript-eslint/eslint-plugin": "^8.37.0",
30
30
  "@typescript-eslint/parser": "^8.37.0",
31
31
  "eslint": "^9.31.0",
32
+ "tsup": "^8.3.5",
32
33
  "typescript": "^5.8.3",
33
34
  "vitest": "^2.1.8"
34
35
  },
35
36
  "scripts": {
36
- "build": "tsc",
37
+ "build": "tsup && tsc --emitDeclarationOnly",
37
38
  "dev": "tsc --watch",
38
39
  "typecheck": "tsc --noEmit",
39
40
  "lint": "eslint src/**/*.ts",
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
- export const TOOL_CALL_TO_DISCARD = ['get-bubble-details-tool'];
3
- export const ConversationMessageSchema = z.object({
4
- role: z
5
- .enum(['user', 'assistant', 'tool'])
6
- .describe('The role of the message sender'),
7
- content: z.string().describe('The message content'),
8
- toolCallId: z.string().optional().describe('Tool call ID for tool messages'),
9
- name: z.string().optional().describe('Tool name for tool messages'),
10
- });
11
- //# sourceMappingURL=agent-memory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-memory.js","sourceRoot":"","sources":["../src/agent-memory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,MAAM,CAAC,MAAM,oBAAoB,GAAiB,CAAC,yBAAyB,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;SACnC,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACnD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAC5E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;CACpE,CAAC,CAAC"}
package/dist/ai-models.js DELETED
@@ -1,31 +0,0 @@
1
- import { z } from 'zod';
2
- // Define available models with provider/name combinations
3
- export const AvailableModels = z.enum([
4
- // OpenAI models
5
- 'openai/gpt-5',
6
- 'openai/gpt-5-mini',
7
- 'openai/gpt-5.1',
8
- 'openai/gpt-5.2',
9
- // Google Gemini models
10
- 'google/gemini-2.5-pro',
11
- 'google/gemini-2.5-flash',
12
- 'google/gemini-2.5-flash-lite',
13
- 'google/gemini-2.5-flash-image-preview',
14
- 'google/gemini-3-pro-preview',
15
- 'google/gemini-3-pro-image-preview',
16
- 'google/gemini-3-flash-preview',
17
- // Anthropic models
18
- 'anthropic/claude-sonnet-4-5',
19
- 'anthropic/claude-opus-4-5',
20
- 'anthropic/claude-haiku-4-5',
21
- // OpenRouter models
22
- 'openrouter/x-ai/grok-code-fast-1',
23
- 'openrouter/z-ai/glm-4.6',
24
- 'openrouter/anthropic/claude-sonnet-4.5',
25
- 'openrouter/google/gemini-3-pro-preview',
26
- 'openrouter/morph/morph-v3-large',
27
- 'openrouter/x-ai/grok-4.1-fast',
28
- 'openrouter/openai/gpt-oss-120b',
29
- 'openrouter/deepseek/deepseek-chat-v3.1',
30
- ]);
31
- //# sourceMappingURL=ai-models.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-models.js","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0DAA0D;AAC1D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,gBAAgB;IAChB,cAAc;IACd,mBAAmB;IACnB,gBAAgB;IAChB,gBAAgB;IAChB,uBAAuB;IACvB,uBAAuB;IACvB,yBAAyB;IACzB,8BAA8B;IAC9B,uCAAuC;IACvC,6BAA6B;IAC7B,mCAAmC;IACnC,+BAA+B;IAC/B,mBAAmB;IACnB,6BAA6B;IAC7B,2BAA2B;IAC3B,4BAA4B;IAC5B,oBAAoB;IACpB,kCAAkC;IAClC,yBAAyB;IACzB,wCAAwC;IACxC,wCAAwC;IACxC,iCAAiC;IACjC,+BAA+B;IAC/B,gCAAgC;IAChC,wCAAwC;CACzC,CAAC,CAAC"}
@@ -1,26 +0,0 @@
1
- import { z } from '@hono/zod-openapi';
2
- export const errorResponseSchema = z
3
- .object({
4
- error: z.string().openapi({
5
- description: 'Error message',
6
- example: 'Validation failed',
7
- }),
8
- details: z.string().optional().openapi({
9
- description: 'Additional error details',
10
- example: 'Invalid field: name is required',
11
- }),
12
- })
13
- .openapi('ErrorResponse');
14
- export const slackUrlVerificationSchema = z.object({
15
- token: z.string(),
16
- challenge: z.string(),
17
- type: z.literal('url_verification'),
18
- });
19
- export const slackUrlVerificationResponseSchema = z
20
- .object({
21
- challenge: z
22
- .string()
23
- .openapi({ description: 'Slack URL verification challenge' }),
24
- })
25
- .openapi('SlackUrlVerificationResponse');
26
- //# sourceMappingURL=api-schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-schema.js","sourceRoot":"","sources":["../src/api-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QACxB,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE,mBAAmB;KAC7B,CAAC;IACF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QACrC,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,iCAAiC;KAC3C,CAAC;CACH,CAAC;KACD,OAAO,CAAC,eAAe,CAAC,CAAC;AAS5B,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC;IACN,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,OAAO,CAAC,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;CAChE,CAAC;KACD,OAAO,CAAC,8BAA8B,CAAC,CAAC"}