import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
  apiKey: 'My API Key',
});
const voiceV1Deployment = await client.workers.deployments.voicev1.create('workerId', {
  allowedTransferNumbers: ['string'],
  config: {},
  endSentence: 'endSentence',
  extractions: { foo: { description: 'description', required: true, type: 'string' } },
  flowId: 'flowId',
  functions: 'functions',
  language: 'language',
  model: 'model',
  name: 'name',
  objective: 'objective',
  phoneNumber: 'phoneNumber',
  resourceKeys: ['string'],
  startSentence: 'startSentence',
  voiceId: 'voiceId',
  wsBaseUrl: 'wsBaseUrl',
});
console.log(voiceV1Deployment.id);