donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
34 lines • 1.25 kB
JavaScript
;
// src/models/BrowserStateFlowReference.ts
Object.defineProperty(exports, "__esModule", { value: true });
exports.BrowserStateReferenceSchema = void 0;
const v4_1 = require("zod/v4");
const BrowserStorageState_1 = require("./BrowserStorageState");
exports.BrowserStateReferenceSchema = v4_1.z
.discriminatedUnion('type', [
v4_1.z.object({
type: v4_1.z.literal('id'),
value: v4_1.z
.string()
.describe('A specific flow ID to restore browser state from.'),
}),
v4_1.z.object({
type: v4_1.z.literal('name'),
value: v4_1.z
.string()
.describe('The name of a flow to restore browser state from.'),
}),
v4_1.z.object({
type: v4_1.z.literal('testId'),
value: v4_1.z
.string()
.describe('A test ID. The browser state will be restored from the most ' +
'recent successful flow belonging to this test.'),
}),
v4_1.z.object({
type: v4_1.z.literal('json'),
value: BrowserStorageState_1.BrowserStorageStateSchema,
}),
])
.describe('Specifies how to reference a flow from which to restore browser state.');
//# sourceMappingURL=BrowserStateFlowReference.js.map