donobu 5.29.0 → 5.30.0

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 (39) hide show
  1. package/dist/esm/lib/test/testExtension.d.ts +31 -1
  2. package/dist/esm/lib/test/testExtension.js +273 -0
  3. package/dist/esm/managers/DonobuStack.js +1 -1
  4. package/dist/esm/managers/TestsManager.d.ts +2 -2
  5. package/dist/esm/managers/TestsManager.js +10 -0
  6. package/dist/esm/models/PaginatedResult.d.ts +15 -0
  7. package/dist/esm/models/PaginatedResult.js +13 -2
  8. package/dist/esm/models/TestMetadata.d.ts +630 -0
  9. package/dist/esm/models/TestMetadata.js +10 -1
  10. package/dist/esm/persistence/tests/TestsPersistence.d.ts +2 -2
  11. package/dist/esm/persistence/tests/TestsPersistenceDonobuApi.d.ts +3 -3
  12. package/dist/esm/persistence/tests/TestsPersistenceDonobuApi.js +18 -2
  13. package/dist/esm/persistence/tests/TestsPersistenceRegistry.d.ts +9 -1
  14. package/dist/esm/persistence/tests/TestsPersistenceRegistry.js +9 -2
  15. package/dist/esm/persistence/tests/TestsPersistenceSqlite.d.ts +2 -1
  16. package/dist/esm/persistence/tests/TestsPersistenceSqlite.js +65 -6
  17. package/dist/esm/persistence/tests/TestsPersistenceVolatile.d.ts +22 -3
  18. package/dist/esm/persistence/tests/TestsPersistenceVolatile.js +69 -4
  19. package/dist/esm/reporter/renderMarkdown.js +1 -1
  20. package/dist/lib/test/testExtension.d.ts +31 -1
  21. package/dist/lib/test/testExtension.js +273 -0
  22. package/dist/managers/DonobuStack.js +1 -1
  23. package/dist/managers/TestsManager.d.ts +2 -2
  24. package/dist/managers/TestsManager.js +10 -0
  25. package/dist/models/PaginatedResult.d.ts +15 -0
  26. package/dist/models/PaginatedResult.js +13 -2
  27. package/dist/models/TestMetadata.d.ts +630 -0
  28. package/dist/models/TestMetadata.js +10 -1
  29. package/dist/persistence/tests/TestsPersistence.d.ts +2 -2
  30. package/dist/persistence/tests/TestsPersistenceDonobuApi.d.ts +3 -3
  31. package/dist/persistence/tests/TestsPersistenceDonobuApi.js +18 -2
  32. package/dist/persistence/tests/TestsPersistenceRegistry.d.ts +9 -1
  33. package/dist/persistence/tests/TestsPersistenceRegistry.js +9 -2
  34. package/dist/persistence/tests/TestsPersistenceSqlite.d.ts +2 -1
  35. package/dist/persistence/tests/TestsPersistenceSqlite.js +65 -6
  36. package/dist/persistence/tests/TestsPersistenceVolatile.d.ts +22 -3
  37. package/dist/persistence/tests/TestsPersistenceVolatile.js +69 -4
  38. package/dist/reporter/renderMarkdown.js +1 -1
  39. package/package.json +1 -1
@@ -157,6 +157,8 @@ export declare const TestsQuerySchema: z.ZodObject<{
157
157
  created_at: "created_at";
158
158
  suite_id: "suite_id";
159
159
  next_run_mode: "next_run_mode";
160
+ flow_count: "flow_count";
161
+ latest_flow_created_at: "latest_flow_created_at";
160
162
  }>>;
161
163
  sortOrder: z.ZodOptional<z.ZodEnum<{
162
164
  asc: "asc";
@@ -166,4 +168,632 @@ export declare const TestsQuerySchema: z.ZodObject<{
166
168
  pageToken: z.ZodOptional<z.ZodString>;
167
169
  }, z.core.$strip>;
168
170
  export type TestsQuery = z.infer<typeof TestsQuerySchema>;
171
+ export declare const TestListItemSchema: z.ZodObject<{
172
+ target: z.ZodString;
173
+ web: z.ZodOptional<z.ZodObject<{
174
+ browser: z.ZodObject<{
175
+ initialState: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
176
+ type: z.ZodLiteral<"id">;
177
+ value: z.ZodString;
178
+ }, z.core.$strip>, z.ZodObject<{
179
+ type: z.ZodLiteral<"name">;
180
+ value: z.ZodString;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ type: z.ZodLiteral<"testId">;
183
+ value: z.ZodString;
184
+ }, z.core.$strip>, z.ZodObject<{
185
+ type: z.ZodLiteral<"json">;
186
+ value: z.ZodObject<{
187
+ cookies: z.ZodArray<z.ZodType<{
188
+ name: string;
189
+ value: string;
190
+ domain: string;
191
+ path: string;
192
+ expires: number;
193
+ httpOnly: boolean;
194
+ secure: boolean;
195
+ sameSite: "Strict" | "Lax" | "None";
196
+ }, unknown, z.core.$ZodTypeInternals<{
197
+ name: string;
198
+ value: string;
199
+ domain: string;
200
+ path: string;
201
+ expires: number;
202
+ httpOnly: boolean;
203
+ secure: boolean;
204
+ sameSite: "Strict" | "Lax" | "None";
205
+ }, unknown>>>;
206
+ origins: z.ZodArray<z.ZodType<{
207
+ origin: string;
208
+ localStorage: Array<{
209
+ name: string;
210
+ value: string;
211
+ }>;
212
+ } & {
213
+ sessionStorage?: Array<{
214
+ name: string;
215
+ value: string;
216
+ }>;
217
+ }, unknown, z.core.$ZodTypeInternals<{
218
+ origin: string;
219
+ localStorage: Array<{
220
+ name: string;
221
+ value: string;
222
+ }>;
223
+ } & {
224
+ sessionStorage?: Array<{
225
+ name: string;
226
+ value: string;
227
+ }>;
228
+ }, unknown>>>;
229
+ }, z.core.$strip>;
230
+ }, z.core.$strip>], "type">>;
231
+ persistState: z.ZodOptional<z.ZodBoolean>;
232
+ using: z.ZodDiscriminatedUnion<[z.ZodObject<{
233
+ type: z.ZodLiteral<"device">;
234
+ deviceName: z.ZodOptional<z.ZodString>;
235
+ headless: z.ZodOptional<z.ZodBoolean>;
236
+ proxy: z.ZodOptional<z.ZodObject<{
237
+ server: z.ZodString;
238
+ bypass: z.ZodOptional<z.ZodString>;
239
+ username: z.ZodOptional<z.ZodString>;
240
+ password: z.ZodOptional<z.ZodString>;
241
+ }, z.core.$strip>>;
242
+ }, z.core.$strip>, z.ZodObject<{
243
+ type: z.ZodLiteral<"remoteInstance">;
244
+ url: z.ZodString;
245
+ }, z.core.$strip>, z.ZodObject<{
246
+ type: z.ZodLiteral<"browserBase">;
247
+ sessionArgs: z.ZodObject<{
248
+ projectId: z.ZodString;
249
+ extensionId: z.ZodOptional<z.ZodString>;
250
+ browserSettings: z.ZodOptional<z.ZodObject<{
251
+ context: z.ZodOptional<z.ZodObject<{
252
+ id: z.ZodString;
253
+ }, z.core.$strip>>;
254
+ extensionId: z.ZodOptional<z.ZodString>;
255
+ viewport: z.ZodOptional<z.ZodObject<{
256
+ width: z.ZodNumber;
257
+ height: z.ZodNumber;
258
+ }, z.core.$strip>>;
259
+ blockAds: z.ZodOptional<z.ZodBoolean>;
260
+ solveCaptchas: z.ZodOptional<z.ZodBoolean>;
261
+ advancedStealth: z.ZodOptional<z.ZodBoolean>;
262
+ }, z.core.$strip>>;
263
+ timeout: z.ZodOptional<z.ZodNumber>;
264
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
265
+ proxies: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
266
+ type: z.ZodLiteral<"browserbase">;
267
+ geolocation: z.ZodOptional<z.ZodObject<{
268
+ country: z.ZodString;
269
+ state: z.ZodOptional<z.ZodString>;
270
+ city: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strip>>;
272
+ domainPattern: z.ZodOptional<z.ZodString>;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ type: z.ZodLiteral<"external">;
275
+ server: z.ZodString;
276
+ username: z.ZodOptional<z.ZodString>;
277
+ password: z.ZodOptional<z.ZodString>;
278
+ domainPattern: z.ZodOptional<z.ZodString>;
279
+ }, z.core.$strip>], "type">>]>;
280
+ region: z.ZodOptional<z.ZodString>;
281
+ userMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
282
+ }, z.core.$strip>;
283
+ }, z.core.$strip>], "type">;
284
+ }, z.core.$strip>;
285
+ targetWebsite: z.ZodString;
286
+ }, z.core.$strip>>;
287
+ envVars: z.ZodNullable<z.ZodArray<z.ZodString>>;
288
+ customTools: z.ZodNullable<z.ZodArray<z.ZodObject<{
289
+ name: z.ZodString;
290
+ description: z.ZodString;
291
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
292
+ javascript: z.ZodString;
293
+ }, z.core.$strip>>>;
294
+ overallObjective: z.ZodNullable<z.ZodString>;
295
+ allowedTools: z.ZodArray<z.ZodString>;
296
+ resultJsonSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
297
+ callbackUrl: z.ZodNullable<z.ZodString>;
298
+ maxToolCalls: z.ZodNullable<z.ZodNumber>;
299
+ videoDisabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
300
+ id: z.ZodString;
301
+ metadataVersion: z.ZodOptional<z.ZodNumber>;
302
+ name: z.ZodNullable<z.ZodString>;
303
+ createdWithDonobuVersion: z.ZodOptional<z.ZodString>;
304
+ suiteId: z.ZodNullable<z.ZodString>;
305
+ nextRunMode: z.ZodEnum<{
306
+ AUTONOMOUS: "AUTONOMOUS";
307
+ INSTRUCT: "INSTRUCT";
308
+ DETERMINISTIC: "DETERMINISTIC";
309
+ }>;
310
+ flowCount: z.ZodNumber;
311
+ latestFlow: z.ZodNullable<z.ZodObject<{
312
+ target: z.ZodString;
313
+ web: z.ZodOptional<z.ZodObject<{
314
+ browser: z.ZodObject<{
315
+ initialState: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
316
+ type: z.ZodLiteral<"id">;
317
+ value: z.ZodString;
318
+ }, z.core.$strip>, z.ZodObject<{
319
+ type: z.ZodLiteral<"name">;
320
+ value: z.ZodString;
321
+ }, z.core.$strip>, z.ZodObject<{
322
+ type: z.ZodLiteral<"testId">;
323
+ value: z.ZodString;
324
+ }, z.core.$strip>, z.ZodObject<{
325
+ type: z.ZodLiteral<"json">;
326
+ value: z.ZodObject<{
327
+ cookies: z.ZodArray<z.ZodType<{
328
+ name: string;
329
+ value: string;
330
+ domain: string;
331
+ path: string;
332
+ expires: number;
333
+ httpOnly: boolean;
334
+ secure: boolean;
335
+ sameSite: "Strict" | "Lax" | "None";
336
+ }, unknown, z.core.$ZodTypeInternals<{
337
+ name: string;
338
+ value: string;
339
+ domain: string;
340
+ path: string;
341
+ expires: number;
342
+ httpOnly: boolean;
343
+ secure: boolean;
344
+ sameSite: "Strict" | "Lax" | "None";
345
+ }, unknown>>>;
346
+ origins: z.ZodArray<z.ZodType<{
347
+ origin: string;
348
+ localStorage: Array<{
349
+ name: string;
350
+ value: string;
351
+ }>;
352
+ } & {
353
+ sessionStorage?: Array<{
354
+ name: string;
355
+ value: string;
356
+ }>;
357
+ }, unknown, z.core.$ZodTypeInternals<{
358
+ origin: string;
359
+ localStorage: Array<{
360
+ name: string;
361
+ value: string;
362
+ }>;
363
+ } & {
364
+ sessionStorage?: Array<{
365
+ name: string;
366
+ value: string;
367
+ }>;
368
+ }, unknown>>>;
369
+ }, z.core.$strip>;
370
+ }, z.core.$strip>], "type">>;
371
+ persistState: z.ZodOptional<z.ZodBoolean>;
372
+ using: z.ZodDiscriminatedUnion<[z.ZodObject<{
373
+ type: z.ZodLiteral<"device">;
374
+ deviceName: z.ZodOptional<z.ZodString>;
375
+ headless: z.ZodOptional<z.ZodBoolean>;
376
+ proxy: z.ZodOptional<z.ZodObject<{
377
+ server: z.ZodString;
378
+ bypass: z.ZodOptional<z.ZodString>;
379
+ username: z.ZodOptional<z.ZodString>;
380
+ password: z.ZodOptional<z.ZodString>;
381
+ }, z.core.$strip>>;
382
+ }, z.core.$strip>, z.ZodObject<{
383
+ type: z.ZodLiteral<"remoteInstance">;
384
+ url: z.ZodString;
385
+ }, z.core.$strip>, z.ZodObject<{
386
+ type: z.ZodLiteral<"browserBase">;
387
+ sessionArgs: z.ZodObject<{
388
+ projectId: z.ZodString;
389
+ extensionId: z.ZodOptional<z.ZodString>;
390
+ browserSettings: z.ZodOptional<z.ZodObject<{
391
+ context: z.ZodOptional<z.ZodObject<{
392
+ id: z.ZodString;
393
+ }, z.core.$strip>>;
394
+ extensionId: z.ZodOptional<z.ZodString>;
395
+ viewport: z.ZodOptional<z.ZodObject<{
396
+ width: z.ZodNumber;
397
+ height: z.ZodNumber;
398
+ }, z.core.$strip>>;
399
+ blockAds: z.ZodOptional<z.ZodBoolean>;
400
+ solveCaptchas: z.ZodOptional<z.ZodBoolean>;
401
+ advancedStealth: z.ZodOptional<z.ZodBoolean>;
402
+ }, z.core.$strip>>;
403
+ timeout: z.ZodOptional<z.ZodNumber>;
404
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
405
+ proxies: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
406
+ type: z.ZodLiteral<"browserbase">;
407
+ geolocation: z.ZodOptional<z.ZodObject<{
408
+ country: z.ZodString;
409
+ state: z.ZodOptional<z.ZodString>;
410
+ city: z.ZodOptional<z.ZodString>;
411
+ }, z.core.$strip>>;
412
+ domainPattern: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strip>, z.ZodObject<{
414
+ type: z.ZodLiteral<"external">;
415
+ server: z.ZodString;
416
+ username: z.ZodOptional<z.ZodString>;
417
+ password: z.ZodOptional<z.ZodString>;
418
+ domainPattern: z.ZodOptional<z.ZodString>;
419
+ }, z.core.$strip>], "type">>]>;
420
+ region: z.ZodOptional<z.ZodString>;
421
+ userMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
422
+ }, z.core.$strip>;
423
+ }, z.core.$strip>], "type">;
424
+ }, z.core.$strip>;
425
+ targetWebsite: z.ZodString;
426
+ }, z.core.$strip>>;
427
+ envVars: z.ZodNullable<z.ZodArray<z.ZodString>>;
428
+ customTools: z.ZodNullable<z.ZodArray<z.ZodObject<{
429
+ name: z.ZodString;
430
+ description: z.ZodString;
431
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
432
+ javascript: z.ZodString;
433
+ }, z.core.$strip>>>;
434
+ overallObjective: z.ZodNullable<z.ZodString>;
435
+ allowedTools: z.ZodArray<z.ZodString>;
436
+ resultJsonSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
437
+ callbackUrl: z.ZodNullable<z.ZodString>;
438
+ maxToolCalls: z.ZodNullable<z.ZodNumber>;
439
+ videoDisabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
440
+ id: z.ZodString;
441
+ metadataVersion: z.ZodOptional<z.ZodNumber>;
442
+ name: z.ZodNullable<z.ZodString>;
443
+ createdWithDonobuVersion: z.ZodString;
444
+ testId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
445
+ gptConfigName: z.ZodNullable<z.ZodString>;
446
+ hasGptConfigNameOverride: z.ZodBoolean;
447
+ defaultMessageDuration: z.ZodNullable<z.ZodNumber>;
448
+ runMode: z.ZodEnum<{
449
+ AUTONOMOUS: "AUTONOMOUS";
450
+ INSTRUCT: "INSTRUCT";
451
+ DETERMINISTIC: "DETERMINISTIC";
452
+ }>;
453
+ isControlPanelEnabled: z.ZodBoolean;
454
+ result: z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
455
+ inputTokensUsed: z.ZodNumber;
456
+ completionTokensUsed: z.ZodNumber;
457
+ startedAt: z.ZodNullable<z.ZodNumber>;
458
+ completedAt: z.ZodNullable<z.ZodNumber>;
459
+ state: z.ZodEnum<{
460
+ UNSTARTED: "UNSTARTED";
461
+ INITIALIZING: "INITIALIZING";
462
+ QUERYING_LLM_FOR_NEXT_ACTION: "QUERYING_LLM_FOR_NEXT_ACTION";
463
+ WAITING_ON_USER_FOR_NEXT_ACTION: "WAITING_ON_USER_FOR_NEXT_ACTION";
464
+ PAUSED: "PAUSED";
465
+ RESUMING: "RESUMING";
466
+ RUNNING_ACTION: "RUNNING_ACTION";
467
+ FAILED: "FAILED";
468
+ SUCCESS: "SUCCESS";
469
+ }>;
470
+ nextState: z.ZodNullable<z.ZodEnum<{
471
+ UNSTARTED: "UNSTARTED";
472
+ INITIALIZING: "INITIALIZING";
473
+ QUERYING_LLM_FOR_NEXT_ACTION: "QUERYING_LLM_FOR_NEXT_ACTION";
474
+ WAITING_ON_USER_FOR_NEXT_ACTION: "WAITING_ON_USER_FOR_NEXT_ACTION";
475
+ PAUSED: "PAUSED";
476
+ RESUMING: "RESUMING";
477
+ RUNNING_ACTION: "RUNNING_ACTION";
478
+ FAILED: "FAILED";
479
+ SUCCESS: "SUCCESS";
480
+ }>>;
481
+ }, z.core.$loose>>;
482
+ }, z.core.$loose>;
483
+ export type TestListItem = z.infer<typeof TestListItemSchema>;
484
+ export declare const TestListItemPaginatedResultSchema: z.ZodObject<{
485
+ items: z.ZodArray<z.ZodObject<{
486
+ target: z.ZodString;
487
+ web: z.ZodOptional<z.ZodObject<{
488
+ browser: z.ZodObject<{
489
+ initialState: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
490
+ type: z.ZodLiteral<"id">;
491
+ value: z.ZodString;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ type: z.ZodLiteral<"name">;
494
+ value: z.ZodString;
495
+ }, z.core.$strip>, z.ZodObject<{
496
+ type: z.ZodLiteral<"testId">;
497
+ value: z.ZodString;
498
+ }, z.core.$strip>, z.ZodObject<{
499
+ type: z.ZodLiteral<"json">;
500
+ value: z.ZodObject<{
501
+ cookies: z.ZodArray<z.ZodType<{
502
+ name: string;
503
+ value: string;
504
+ domain: string;
505
+ path: string;
506
+ expires: number;
507
+ httpOnly: boolean;
508
+ secure: boolean;
509
+ sameSite: "Strict" | "Lax" | "None";
510
+ }, unknown, z.core.$ZodTypeInternals<{
511
+ name: string;
512
+ value: string;
513
+ domain: string;
514
+ path: string;
515
+ expires: number;
516
+ httpOnly: boolean;
517
+ secure: boolean;
518
+ sameSite: "Strict" | "Lax" | "None";
519
+ }, unknown>>>;
520
+ origins: z.ZodArray<z.ZodType<{
521
+ origin: string;
522
+ localStorage: Array<{
523
+ name: string;
524
+ value: string;
525
+ }>;
526
+ } & {
527
+ sessionStorage?: Array<{
528
+ name: string;
529
+ value: string;
530
+ }>;
531
+ }, unknown, z.core.$ZodTypeInternals<{
532
+ origin: string;
533
+ localStorage: Array<{
534
+ name: string;
535
+ value: string;
536
+ }>;
537
+ } & {
538
+ sessionStorage?: Array<{
539
+ name: string;
540
+ value: string;
541
+ }>;
542
+ }, unknown>>>;
543
+ }, z.core.$strip>;
544
+ }, z.core.$strip>], "type">>;
545
+ persistState: z.ZodOptional<z.ZodBoolean>;
546
+ using: z.ZodDiscriminatedUnion<[z.ZodObject<{
547
+ type: z.ZodLiteral<"device">;
548
+ deviceName: z.ZodOptional<z.ZodString>;
549
+ headless: z.ZodOptional<z.ZodBoolean>;
550
+ proxy: z.ZodOptional<z.ZodObject<{
551
+ server: z.ZodString;
552
+ bypass: z.ZodOptional<z.ZodString>;
553
+ username: z.ZodOptional<z.ZodString>;
554
+ password: z.ZodOptional<z.ZodString>;
555
+ }, z.core.$strip>>;
556
+ }, z.core.$strip>, z.ZodObject<{
557
+ type: z.ZodLiteral<"remoteInstance">;
558
+ url: z.ZodString;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ type: z.ZodLiteral<"browserBase">;
561
+ sessionArgs: z.ZodObject<{
562
+ projectId: z.ZodString;
563
+ extensionId: z.ZodOptional<z.ZodString>;
564
+ browserSettings: z.ZodOptional<z.ZodObject<{
565
+ context: z.ZodOptional<z.ZodObject<{
566
+ id: z.ZodString;
567
+ }, z.core.$strip>>;
568
+ extensionId: z.ZodOptional<z.ZodString>;
569
+ viewport: z.ZodOptional<z.ZodObject<{
570
+ width: z.ZodNumber;
571
+ height: z.ZodNumber;
572
+ }, z.core.$strip>>;
573
+ blockAds: z.ZodOptional<z.ZodBoolean>;
574
+ solveCaptchas: z.ZodOptional<z.ZodBoolean>;
575
+ advancedStealth: z.ZodOptional<z.ZodBoolean>;
576
+ }, z.core.$strip>>;
577
+ timeout: z.ZodOptional<z.ZodNumber>;
578
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
579
+ proxies: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
580
+ type: z.ZodLiteral<"browserbase">;
581
+ geolocation: z.ZodOptional<z.ZodObject<{
582
+ country: z.ZodString;
583
+ state: z.ZodOptional<z.ZodString>;
584
+ city: z.ZodOptional<z.ZodString>;
585
+ }, z.core.$strip>>;
586
+ domainPattern: z.ZodOptional<z.ZodString>;
587
+ }, z.core.$strip>, z.ZodObject<{
588
+ type: z.ZodLiteral<"external">;
589
+ server: z.ZodString;
590
+ username: z.ZodOptional<z.ZodString>;
591
+ password: z.ZodOptional<z.ZodString>;
592
+ domainPattern: z.ZodOptional<z.ZodString>;
593
+ }, z.core.$strip>], "type">>]>;
594
+ region: z.ZodOptional<z.ZodString>;
595
+ userMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
596
+ }, z.core.$strip>;
597
+ }, z.core.$strip>], "type">;
598
+ }, z.core.$strip>;
599
+ targetWebsite: z.ZodString;
600
+ }, z.core.$strip>>;
601
+ envVars: z.ZodNullable<z.ZodArray<z.ZodString>>;
602
+ customTools: z.ZodNullable<z.ZodArray<z.ZodObject<{
603
+ name: z.ZodString;
604
+ description: z.ZodString;
605
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
606
+ javascript: z.ZodString;
607
+ }, z.core.$strip>>>;
608
+ overallObjective: z.ZodNullable<z.ZodString>;
609
+ allowedTools: z.ZodArray<z.ZodString>;
610
+ resultJsonSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
611
+ callbackUrl: z.ZodNullable<z.ZodString>;
612
+ maxToolCalls: z.ZodNullable<z.ZodNumber>;
613
+ videoDisabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
614
+ id: z.ZodString;
615
+ metadataVersion: z.ZodOptional<z.ZodNumber>;
616
+ name: z.ZodNullable<z.ZodString>;
617
+ createdWithDonobuVersion: z.ZodOptional<z.ZodString>;
618
+ suiteId: z.ZodNullable<z.ZodString>;
619
+ nextRunMode: z.ZodEnum<{
620
+ AUTONOMOUS: "AUTONOMOUS";
621
+ INSTRUCT: "INSTRUCT";
622
+ DETERMINISTIC: "DETERMINISTIC";
623
+ }>;
624
+ flowCount: z.ZodNumber;
625
+ latestFlow: z.ZodNullable<z.ZodObject<{
626
+ target: z.ZodString;
627
+ web: z.ZodOptional<z.ZodObject<{
628
+ browser: z.ZodObject<{
629
+ initialState: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
630
+ type: z.ZodLiteral<"id">;
631
+ value: z.ZodString;
632
+ }, z.core.$strip>, z.ZodObject<{
633
+ type: z.ZodLiteral<"name">;
634
+ value: z.ZodString;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ type: z.ZodLiteral<"testId">;
637
+ value: z.ZodString;
638
+ }, z.core.$strip>, z.ZodObject<{
639
+ type: z.ZodLiteral<"json">;
640
+ value: z.ZodObject<{
641
+ cookies: z.ZodArray<z.ZodType<{
642
+ name: string;
643
+ value: string;
644
+ domain: string;
645
+ path: string;
646
+ expires: number;
647
+ httpOnly: boolean;
648
+ secure: boolean;
649
+ sameSite: "Strict" | "Lax" | "None";
650
+ }, unknown, z.core.$ZodTypeInternals<{
651
+ name: string;
652
+ value: string;
653
+ domain: string;
654
+ path: string;
655
+ expires: number;
656
+ httpOnly: boolean;
657
+ secure: boolean;
658
+ sameSite: "Strict" | "Lax" | "None";
659
+ }, unknown>>>;
660
+ origins: z.ZodArray<z.ZodType<{
661
+ origin: string;
662
+ localStorage: Array<{
663
+ name: string;
664
+ value: string;
665
+ }>;
666
+ } & {
667
+ sessionStorage?: Array<{
668
+ name: string;
669
+ value: string;
670
+ }>;
671
+ }, unknown, z.core.$ZodTypeInternals<{
672
+ origin: string;
673
+ localStorage: Array<{
674
+ name: string;
675
+ value: string;
676
+ }>;
677
+ } & {
678
+ sessionStorage?: Array<{
679
+ name: string;
680
+ value: string;
681
+ }>;
682
+ }, unknown>>>;
683
+ }, z.core.$strip>;
684
+ }, z.core.$strip>], "type">>;
685
+ persistState: z.ZodOptional<z.ZodBoolean>;
686
+ using: z.ZodDiscriminatedUnion<[z.ZodObject<{
687
+ type: z.ZodLiteral<"device">;
688
+ deviceName: z.ZodOptional<z.ZodString>;
689
+ headless: z.ZodOptional<z.ZodBoolean>;
690
+ proxy: z.ZodOptional<z.ZodObject<{
691
+ server: z.ZodString;
692
+ bypass: z.ZodOptional<z.ZodString>;
693
+ username: z.ZodOptional<z.ZodString>;
694
+ password: z.ZodOptional<z.ZodString>;
695
+ }, z.core.$strip>>;
696
+ }, z.core.$strip>, z.ZodObject<{
697
+ type: z.ZodLiteral<"remoteInstance">;
698
+ url: z.ZodString;
699
+ }, z.core.$strip>, z.ZodObject<{
700
+ type: z.ZodLiteral<"browserBase">;
701
+ sessionArgs: z.ZodObject<{
702
+ projectId: z.ZodString;
703
+ extensionId: z.ZodOptional<z.ZodString>;
704
+ browserSettings: z.ZodOptional<z.ZodObject<{
705
+ context: z.ZodOptional<z.ZodObject<{
706
+ id: z.ZodString;
707
+ }, z.core.$strip>>;
708
+ extensionId: z.ZodOptional<z.ZodString>;
709
+ viewport: z.ZodOptional<z.ZodObject<{
710
+ width: z.ZodNumber;
711
+ height: z.ZodNumber;
712
+ }, z.core.$strip>>;
713
+ blockAds: z.ZodOptional<z.ZodBoolean>;
714
+ solveCaptchas: z.ZodOptional<z.ZodBoolean>;
715
+ advancedStealth: z.ZodOptional<z.ZodBoolean>;
716
+ }, z.core.$strip>>;
717
+ timeout: z.ZodOptional<z.ZodNumber>;
718
+ keepAlive: z.ZodOptional<z.ZodBoolean>;
719
+ proxies: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
720
+ type: z.ZodLiteral<"browserbase">;
721
+ geolocation: z.ZodOptional<z.ZodObject<{
722
+ country: z.ZodString;
723
+ state: z.ZodOptional<z.ZodString>;
724
+ city: z.ZodOptional<z.ZodString>;
725
+ }, z.core.$strip>>;
726
+ domainPattern: z.ZodOptional<z.ZodString>;
727
+ }, z.core.$strip>, z.ZodObject<{
728
+ type: z.ZodLiteral<"external">;
729
+ server: z.ZodString;
730
+ username: z.ZodOptional<z.ZodString>;
731
+ password: z.ZodOptional<z.ZodString>;
732
+ domainPattern: z.ZodOptional<z.ZodString>;
733
+ }, z.core.$strip>], "type">>]>;
734
+ region: z.ZodOptional<z.ZodString>;
735
+ userMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
736
+ }, z.core.$strip>;
737
+ }, z.core.$strip>], "type">;
738
+ }, z.core.$strip>;
739
+ targetWebsite: z.ZodString;
740
+ }, z.core.$strip>>;
741
+ envVars: z.ZodNullable<z.ZodArray<z.ZodString>>;
742
+ customTools: z.ZodNullable<z.ZodArray<z.ZodObject<{
743
+ name: z.ZodString;
744
+ description: z.ZodString;
745
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
746
+ javascript: z.ZodString;
747
+ }, z.core.$strip>>>;
748
+ overallObjective: z.ZodNullable<z.ZodString>;
749
+ allowedTools: z.ZodArray<z.ZodString>;
750
+ resultJsonSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
751
+ callbackUrl: z.ZodNullable<z.ZodString>;
752
+ maxToolCalls: z.ZodNullable<z.ZodNumber>;
753
+ videoDisabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
754
+ id: z.ZodString;
755
+ metadataVersion: z.ZodOptional<z.ZodNumber>;
756
+ name: z.ZodNullable<z.ZodString>;
757
+ createdWithDonobuVersion: z.ZodString;
758
+ testId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
759
+ gptConfigName: z.ZodNullable<z.ZodString>;
760
+ hasGptConfigNameOverride: z.ZodBoolean;
761
+ defaultMessageDuration: z.ZodNullable<z.ZodNumber>;
762
+ runMode: z.ZodEnum<{
763
+ AUTONOMOUS: "AUTONOMOUS";
764
+ INSTRUCT: "INSTRUCT";
765
+ DETERMINISTIC: "DETERMINISTIC";
766
+ }>;
767
+ isControlPanelEnabled: z.ZodBoolean;
768
+ result: z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
769
+ inputTokensUsed: z.ZodNumber;
770
+ completionTokensUsed: z.ZodNumber;
771
+ startedAt: z.ZodNullable<z.ZodNumber>;
772
+ completedAt: z.ZodNullable<z.ZodNumber>;
773
+ state: z.ZodEnum<{
774
+ UNSTARTED: "UNSTARTED";
775
+ INITIALIZING: "INITIALIZING";
776
+ QUERYING_LLM_FOR_NEXT_ACTION: "QUERYING_LLM_FOR_NEXT_ACTION";
777
+ WAITING_ON_USER_FOR_NEXT_ACTION: "WAITING_ON_USER_FOR_NEXT_ACTION";
778
+ PAUSED: "PAUSED";
779
+ RESUMING: "RESUMING";
780
+ RUNNING_ACTION: "RUNNING_ACTION";
781
+ FAILED: "FAILED";
782
+ SUCCESS: "SUCCESS";
783
+ }>;
784
+ nextState: z.ZodNullable<z.ZodEnum<{
785
+ UNSTARTED: "UNSTARTED";
786
+ INITIALIZING: "INITIALIZING";
787
+ QUERYING_LLM_FOR_NEXT_ACTION: "QUERYING_LLM_FOR_NEXT_ACTION";
788
+ WAITING_ON_USER_FOR_NEXT_ACTION: "WAITING_ON_USER_FOR_NEXT_ACTION";
789
+ PAUSED: "PAUSED";
790
+ RESUMING: "RESUMING";
791
+ RUNNING_ACTION: "RUNNING_ACTION";
792
+ FAILED: "FAILED";
793
+ SUCCESS: "SUCCESS";
794
+ }>>;
795
+ }, z.core.$loose>>;
796
+ }, z.core.$loose>>;
797
+ nextPageToken: z.ZodOptional<z.ZodString>;
798
+ }, z.core.$strip>;
169
799
  //# sourceMappingURL=TestMetadata.d.ts.map
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TestsQuerySchema = exports.TestMetadataSchema = void 0;
3
+ exports.TestListItemPaginatedResultSchema = exports.TestListItemSchema = exports.TestsQuerySchema = exports.TestMetadataSchema = void 0;
4
4
  const v4_1 = require("zod/v4");
5
+ const FlowMetadata_1 = require("./FlowMetadata");
6
+ const PaginatedResult_1 = require("./PaginatedResult");
5
7
  const RunConfig_1 = require("./RunConfig");
6
8
  const RunMode_1 = require("./RunMode");
7
9
  const SortOrder_1 = require("./SortOrder");
@@ -32,6 +34,8 @@ const TestSortBySchema = v4_1.z.enum([
32
34
  'name',
33
35
  'suite_id',
34
36
  'next_run_mode',
37
+ 'flow_count',
38
+ 'latest_flow_created_at',
35
39
  ]);
36
40
  /**
37
41
  * Query parameters for filtering and paginating test results.
@@ -52,4 +56,9 @@ exports.TestsQuerySchema = v4_1.z.object({
52
56
  /** Opaque pagination token for fetching the next page. */
53
57
  pageToken: v4_1.z.string().optional(),
54
58
  });
59
+ exports.TestListItemSchema = exports.TestMetadataSchema.extend({
60
+ flowCount: v4_1.z.number().describe('The number of flows created from this test.'),
61
+ latestFlow: FlowMetadata_1.FlowMetadataSchema.nullable().describe('Most recently-created flow belonging to this test'),
62
+ });
63
+ exports.TestListItemPaginatedResultSchema = (0, PaginatedResult_1.createPaginatedResultSchema)(exports.TestListItemSchema);
55
64
  //# sourceMappingURL=TestMetadata.js.map