@bubblelab/shared-schemas 0.1.18 → 0.1.20

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.
@@ -267,37 +267,66 @@ export declare const bubbleFlowExecutionSchema: z.ZodObject<{
267
267
  result?: any;
268
268
  completedAt?: string | undefined;
269
269
  }>;
270
- export declare const listBubbleFlowExecutionsResponseSchema: z.ZodArray<z.ZodObject<{
271
- id: z.ZodNumber;
272
- status: z.ZodEnum<["running", "success", "error"]>;
273
- payload: z.ZodRecord<z.ZodString, z.ZodAny>;
274
- result: z.ZodOptional<z.ZodAny>;
275
- error: z.ZodOptional<z.ZodString>;
276
- startedAt: z.ZodString;
277
- webhook_url: z.ZodString;
278
- completedAt: z.ZodOptional<z.ZodString>;
279
- code: z.ZodOptional<z.ZodString>;
270
+ export declare const listBubbleFlowExecutionsResponseSchema: z.ZodObject<{
271
+ items: z.ZodArray<z.ZodObject<{
272
+ id: z.ZodNumber;
273
+ status: z.ZodEnum<["running", "success", "error"]>;
274
+ payload: z.ZodRecord<z.ZodString, z.ZodAny>;
275
+ result: z.ZodOptional<z.ZodAny>;
276
+ error: z.ZodOptional<z.ZodString>;
277
+ startedAt: z.ZodString;
278
+ webhook_url: z.ZodString;
279
+ completedAt: z.ZodOptional<z.ZodString>;
280
+ code: z.ZodOptional<z.ZodString>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ status: "error" | "running" | "success";
283
+ id: number;
284
+ payload: Record<string, any>;
285
+ startedAt: string;
286
+ webhook_url: string;
287
+ code?: string | undefined;
288
+ error?: string | undefined;
289
+ result?: any;
290
+ completedAt?: string | undefined;
291
+ }, {
292
+ status: "error" | "running" | "success";
293
+ id: number;
294
+ payload: Record<string, any>;
295
+ startedAt: string;
296
+ webhook_url: string;
297
+ code?: string | undefined;
298
+ error?: string | undefined;
299
+ result?: any;
300
+ completedAt?: string | undefined;
301
+ }>, "many">;
302
+ total: z.ZodNumber;
280
303
  }, "strip", z.ZodTypeAny, {
281
- status: "error" | "running" | "success";
282
- id: number;
283
- payload: Record<string, any>;
284
- startedAt: string;
285
- webhook_url: string;
286
- code?: string | undefined;
287
- error?: string | undefined;
288
- result?: any;
289
- completedAt?: string | undefined;
304
+ items: {
305
+ status: "error" | "running" | "success";
306
+ id: number;
307
+ payload: Record<string, any>;
308
+ startedAt: string;
309
+ webhook_url: string;
310
+ code?: string | undefined;
311
+ error?: string | undefined;
312
+ result?: any;
313
+ completedAt?: string | undefined;
314
+ }[];
315
+ total: number;
290
316
  }, {
291
- status: "error" | "running" | "success";
292
- id: number;
293
- payload: Record<string, any>;
294
- startedAt: string;
295
- webhook_url: string;
296
- code?: string | undefined;
297
- error?: string | undefined;
298
- result?: any;
299
- completedAt?: string | undefined;
300
- }>, "many">;
317
+ items: {
318
+ status: "error" | "running" | "success";
319
+ id: number;
320
+ payload: Record<string, any>;
321
+ startedAt: string;
322
+ webhook_url: string;
323
+ code?: string | undefined;
324
+ error?: string | undefined;
325
+ result?: any;
326
+ completedAt?: string | undefined;
327
+ }[];
328
+ total: number;
329
+ }>;
301
330
  export type ListBubbleFlowExecutionsResponse = z.infer<typeof listBubbleFlowExecutionsResponseSchema>;
302
331
  export declare const bubbleFlowExecutionDetailSchema: z.ZodObject<{
303
332
  id: z.ZodNumber;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
package/dist/index.js CHANGED
@@ -1945,7 +1945,15 @@ var bubbleFlowExecutionSchema = z8.object({
1945
1945
  description: "The code that was executed (snapshot of the code at execution time)"
1946
1946
  })
1947
1947
  });
1948
- var listBubbleFlowExecutionsResponseSchema = z8.array(bubbleFlowExecutionSchema).openapi("ListBubbleFlowExecutionsResponse");
1948
+ var listBubbleFlowExecutionsResponseSchema = z8.object({
1949
+ items: z8.array(bubbleFlowExecutionSchema).openapi({
1950
+ description: "Array of execution records for the current page"
1951
+ }),
1952
+ total: z8.number().openapi({
1953
+ description: "Total number of executions for this flow",
1954
+ example: 42
1955
+ })
1956
+ }).openapi("ListBubbleFlowExecutionsResponse");
1949
1957
  var bubbleFlowExecutionDetailSchema = bubbleFlowExecutionSchema.extend(
1950
1958
  {
1951
1959
  executionLogs: z8.array(z8.any()).optional().openapi({