@bubblelab/shared-schemas 0.1.66 → 0.1.67

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.
@@ -1,4 +1,4 @@
1
1
  import { z } from 'zod';
2
- export declare const AvailableModels: 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/openai/gpt-oss-120b"]>;
2
+ export declare const AvailableModels: 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/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>;
3
3
  export type AvailableModel = z.infer<typeof AvailableModels>;
4
4
  //# sourceMappingURL=ai-models.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-models.d.ts","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe,0mBAyB1B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"ai-models.d.ts","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe,2rBA2B1B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -246,6 +246,7 @@ export declare const bubbleFlowExecutionSchema: z.ZodObject<{
246
246
  webhook_url: z.ZodString;
247
247
  completedAt: z.ZodOptional<z.ZodString>;
248
248
  code: z.ZodOptional<z.ZodString>;
249
+ totalCost: z.ZodOptional<z.ZodNumber>;
249
250
  }, "strip", z.ZodTypeAny, {
250
251
  status: "error" | "running" | "success";
251
252
  id: number;
@@ -254,6 +255,7 @@ export declare const bubbleFlowExecutionSchema: z.ZodObject<{
254
255
  webhook_url: string;
255
256
  code?: string | undefined;
256
257
  error?: string | undefined;
258
+ totalCost?: number | undefined;
257
259
  result?: any;
258
260
  completedAt?: string | undefined;
259
261
  }, {
@@ -264,6 +266,7 @@ export declare const bubbleFlowExecutionSchema: z.ZodObject<{
264
266
  webhook_url: string;
265
267
  code?: string | undefined;
266
268
  error?: string | undefined;
269
+ totalCost?: number | undefined;
267
270
  result?: any;
268
271
  completedAt?: string | undefined;
269
272
  }>;
@@ -278,6 +281,7 @@ export declare const listBubbleFlowExecutionsResponseSchema: z.ZodObject<{
278
281
  webhook_url: z.ZodString;
279
282
  completedAt: z.ZodOptional<z.ZodString>;
280
283
  code: z.ZodOptional<z.ZodString>;
284
+ totalCost: z.ZodOptional<z.ZodNumber>;
281
285
  }, "strip", z.ZodTypeAny, {
282
286
  status: "error" | "running" | "success";
283
287
  id: number;
@@ -286,6 +290,7 @@ export declare const listBubbleFlowExecutionsResponseSchema: z.ZodObject<{
286
290
  webhook_url: string;
287
291
  code?: string | undefined;
288
292
  error?: string | undefined;
293
+ totalCost?: number | undefined;
289
294
  result?: any;
290
295
  completedAt?: string | undefined;
291
296
  }, {
@@ -296,6 +301,7 @@ export declare const listBubbleFlowExecutionsResponseSchema: z.ZodObject<{
296
301
  webhook_url: string;
297
302
  code?: string | undefined;
298
303
  error?: string | undefined;
304
+ totalCost?: number | undefined;
299
305
  result?: any;
300
306
  completedAt?: string | undefined;
301
307
  }>, "many">;
@@ -309,6 +315,7 @@ export declare const listBubbleFlowExecutionsResponseSchema: z.ZodObject<{
309
315
  webhook_url: string;
310
316
  code?: string | undefined;
311
317
  error?: string | undefined;
318
+ totalCost?: number | undefined;
312
319
  result?: any;
313
320
  completedAt?: string | undefined;
314
321
  }[];
@@ -322,6 +329,7 @@ export declare const listBubbleFlowExecutionsResponseSchema: z.ZodObject<{
322
329
  webhook_url: string;
323
330
  code?: string | undefined;
324
331
  error?: string | undefined;
332
+ totalCost?: number | undefined;
325
333
  result?: any;
326
334
  completedAt?: string | undefined;
327
335
  }[];
@@ -338,6 +346,7 @@ export declare const bubbleFlowExecutionDetailSchema: z.ZodObject<{
338
346
  webhook_url: z.ZodString;
339
347
  completedAt: z.ZodOptional<z.ZodString>;
340
348
  code: z.ZodOptional<z.ZodString>;
349
+ totalCost: z.ZodOptional<z.ZodNumber>;
341
350
  } & {
342
351
  executionLogs: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
343
352
  }, "strip", z.ZodTypeAny, {
@@ -348,6 +357,7 @@ export declare const bubbleFlowExecutionDetailSchema: z.ZodObject<{
348
357
  webhook_url: string;
349
358
  code?: string | undefined;
350
359
  error?: string | undefined;
360
+ totalCost?: number | undefined;
351
361
  result?: any;
352
362
  completedAt?: string | undefined;
353
363
  executionLogs?: any[] | undefined;
@@ -359,6 +369,7 @@ export declare const bubbleFlowExecutionDetailSchema: z.ZodObject<{
359
369
  webhook_url: string;
360
370
  code?: string | undefined;
361
371
  error?: string | undefined;
372
+ totalCost?: number | undefined;
362
373
  result?: any;
363
374
  completedAt?: string | undefined;
364
375
  executionLogs?: any[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"bubbleflow-execution-schema.d.ts","sourceRoot":"","sources":["../src/bubbleflow-execution-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;EA2BL,CAAC;AAE3B,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4IL,CAAC;AAE/B,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGtE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBpC,CAAC;AAGH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUL,CAAC;AAE/C,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAGF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM3C,CAAC;AAEF,MAAM,MAAM,yB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4E/C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,oCAAoC,CAC5C,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
package/dist/index.js CHANGED
@@ -2762,6 +2762,9 @@ var bubbleFlowExecutionSchema = z9.object({
2762
2762
  completedAt: z9.string().optional().openapi({ description: "Execution completion timestamp" }),
2763
2763
  code: z9.string().optional().openapi({
2764
2764
  description: "The code that was executed (snapshot of the code at execution time)"
2765
+ }),
2766
+ totalCost: z9.number().optional().openapi({
2767
+ description: "Total cost of the execution in credits"
2765
2768
  })
2766
2769
  });
2767
2770
  var listBubbleFlowExecutionsResponseSchema = z9.object({
@@ -3773,7 +3776,9 @@ var AvailableModels = z15.enum([
3773
3776
  "openrouter/anthropic/claude-sonnet-4.5",
3774
3777
  "openrouter/google/gemini-3-pro-preview",
3775
3778
  "openrouter/morph/morph-v3-large",
3776
- "openrouter/openai/gpt-oss-120b"
3779
+ "openrouter/openai/gpt-oss-120b",
3780
+ "openrouter/openai/o3-deep-research",
3781
+ "openrouter/openai/o4-mini-deep-research"
3777
3782
  ]);
3778
3783
 
3779
3784
  // src/agent-memory.ts