import { Factory } from "fishery"; import { faker } from "@faker-js/faker"; import { CreateAudioBufferInput } from "../../../talkpilot"; export const audioBufferInputFactory = Factory.define( () => ({ callSid: "CA1234567890abcdef1234567890abcdef", clientId: faker.string.uuid(), bucketStartMs: faker.number.int({ min: 0, max: 1000000 }), bucketDurationMs: faker.helpers.arrayElement([500, 1000]), data: Buffer.from(faker.string.alphanumeric({ length: 100 })), ttlMs: faker.number.int({ min: 1000, max: 3600000 }), }), ); export function createAudioBufferInput( overrides?: Partial, ): CreateAudioBufferInput { return audioBufferInputFactory.build(overrides ?? {}); }