client.metricsMetricsGet() -> unknown
-
-
-
Endpoint that serves Prometheus metrics.
-
-
-
await client.metricsMetricsGet();
-
-
-
requestOptions:
VocodeClient.RequestOptions
-
-
client.numbers.listNumbers({ ...params }) -> Vocode.PhoneNumberPage
-
-
-
await client.numbers.listNumbers();
-
-
-
request:
Vocode.ListNumbersRequest
-
requestOptions:
Numbers.RequestOptions
-
-
client.numbers.getNumber({ ...params }) -> Vocode.PhoneNumber
-
-
-
await client.numbers.getNumber({ phoneNumber: "phone_number", });
-
-
-
request:
Vocode.GetNumberRequest
-
requestOptions:
Numbers.RequestOptions
-
-
client.numbers.buyNumber({ ...params }) -> Vocode.PhoneNumber
-
-
-
await client.numbers.buyNumber();
-
-
-
request:
Vocode.BuyPhoneNumberRequest
-
requestOptions:
Numbers.RequestOptions
-
-
client.numbers.updateNumber({ ...params }) -> Vocode.PhoneNumber
-
-
-
await client.numbers.updateNumber({ phoneNumber: "phone_number", });
-
-
-
request:
Vocode.UpdateNumberRequest
-
requestOptions:
Numbers.RequestOptions
-
-
client.numbers.cancelNumber({ ...params }) -> Vocode.PhoneNumber
-
-
-
await client.numbers.cancelNumber({ phoneNumber: "phone_number", });
-
-
-
request:
Vocode.CancelNumberRequest
-
requestOptions:
Numbers.RequestOptions
-
-
client.numbers.linkNumber({ ...params }) -> Vocode.PhoneNumber
-
-
-
await client.numbers.linkNumber({ phoneNumber: "phone_number", telephonyAccountConnection: "telephony_account_connection", });
-
-
-
request:
Vocode.LinkPhoneNumberRequest
-
requestOptions:
Numbers.RequestOptions
-
-
client.calls.listCalls({ ...params }) -> Vocode.CallPage
-
-
-
await client.calls.listCalls();
-
-
-
request:
Vocode.ListCallsRequest
-
requestOptions:
Calls.RequestOptions
-
-
client.calls.getCall({ ...params }) -> Vocode.Call
-
-
-
await client.calls.getCall({ id: "id", });
-
-
-
request:
Vocode.GetCallRequest
-
requestOptions:
Calls.RequestOptions
-
-
client.calls.endCall({ ...params }) -> Vocode.Call
-
-
-
await client.calls.endCall({ id: "id", });
-
-
-
request:
Vocode.EndCallRequest
-
requestOptions:
Calls.RequestOptions
-
-
client.calls.createCall({ ...params }) -> Vocode.Call
-
-
-
await client.calls.createCall({ fromNumber: "from_number", toNumber: "to_number", agent: "agent", });
-
-
-
request:
Vocode.CreateCallRequest
-
requestOptions:
Calls.RequestOptions
-
-
client.calls.getRecording({ ...params }) -> stream.Readable
-
-
-
await client.calls.getRecording({ id: "string", });
-
-
-
request:
Vocode.GetRecordingRequest
-
requestOptions:
Calls.RequestOptions
-
-
client.usage.getUsage() -> Vocode.Usage
-
-
-
await client.usage.getUsage();
-
-
-
requestOptions:
Usage.RequestOptions
-
-
client.actions.getAction({ ...params }) -> Vocode.ActionResponseModel
-
-
-
await client.actions.getAction({ id: "id", });
-
-
-
request:
Vocode.GetActionRequest
-
requestOptions:
Actions.RequestOptions
-
-
client.actions.listActions({ ...params }) -> Vocode.ActionPage
-
-
-
await client.actions.listActions();
-
-
-
request:
Vocode.ListActionsRequest
-
requestOptions:
Actions.RequestOptions
-
-
client.actions.createAction({ ...params }) -> Vocode.ActionResponseModel
-
-
-
await client.actions.createAction({ type: "action_add_to_conference", config: { phoneNumber: "phone_number", }, });
-
-
-
request:
Vocode.ActionParamsRequest
-
requestOptions:
Actions.RequestOptions
-
-
client.actions.updateAction({ ...params }) -> Vocode.ActionResponseModel
-
-
-
await client.actions.updateAction({ id: "id", body: { type: "action_add_to_conference", }, });
-
-
-
request:
Vocode.UpdateActionRequest
-
requestOptions:
Actions.RequestOptions
-
-
client.agents.getAgent({ ...params }) -> Vocode.Agent
-
-
-
await client.agents.getAgent({ id: "id", });
-
-
-
request:
Vocode.GetAgentRequest
-
requestOptions:
Agents.RequestOptions
-
-
client.agents.listAgents({ ...params }) -> Vocode.AgentPage
-
-
-
await client.agents.listAgents();
-
-
-
request:
Vocode.ListAgentsRequest
-
requestOptions:
Agents.RequestOptions
-
-
client.agents.createAgent({ ...params }) -> Vocode.Agent
-
-
-
await client.agents.createAgent({ prompt: "prompt", voice: "voice", });
-
-
-
request:
Vocode.AgentParams
-
requestOptions:
Agents.RequestOptions
-
-
client.agents.updateAgent({ ...params }) -> Vocode.Agent
-
-
-
await client.agents.updateAgent({ id: "id", body: {}, });
-
-
-
request:
Vocode.UpdateAgentRequest
-
requestOptions:
Agents.RequestOptions
-
-
client.voices.getVoice({ ...params }) -> Vocode.VoiceResponseModel
-
-
-
await client.voices.getVoice({ id: "id", });
-
-
-
request:
Vocode.GetVoiceRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.listVoices({ ...params }) -> Vocode.VoicePage
-
-
-
await client.voices.listVoices();
-
-
-
request:
Vocode.ListVoicesRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.createVoice({ ...params }) -> Vocode.VoiceResponseModel
-
-
-
await client.voices.createVoice({ type: "voice_azure", voiceName: "voice_name", });
-
-
-
request:
Vocode.VoiceParamsRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.voices.updateVoice({ ...params }) -> Vocode.VoiceResponseModel
-
-
-
await client.voices.updateVoice({ id: "id", body: { type: "voice_azure", }, });
-
-
-
request:
Vocode.UpdateVoiceRequest
-
requestOptions:
Voices.RequestOptions
-
-
client.webhooks.getWebhook({ ...params }) -> Vocode.Webhook
-
-
-
await client.webhooks.getWebhook({ id: "id", });
-
-
-
request:
Vocode.GetWebhookRequest
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.listWebhooks({ ...params }) -> Vocode.WebhookPage
-
-
-
await client.webhooks.listWebhooks();
-
-
-
request:
Vocode.ListWebhooksRequest
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.createWebhook({ ...params }) -> Vocode.Webhook
-
-
-
await client.webhooks.createWebhook({ subscriptions: [Vocode.EventType.EventMessage], url: "url", });
-
-
-
request:
Vocode.WebhookParams
-
requestOptions:
Webhooks.RequestOptions
-
-
client.webhooks.updateWebhook({ ...params }) -> Vocode.Webhook
-
-
-
await client.webhooks.updateWebhook({ id: "id", body: {}, });
-
-
-
request:
Vocode.UpdateWebhookRequest
-
requestOptions:
Webhooks.RequestOptions
-
-
client.prompts.getPrompt({ ...params }) -> Vocode.Prompt
-
-
-
await client.prompts.getPrompt({ id: "id", });
-
-
-
request:
Vocode.GetPromptRequest
-
requestOptions:
Prompts.RequestOptions
-
-
client.prompts.listPrompts({ ...params }) -> Vocode.PromptPage
-
-
-
await client.prompts.listPrompts();
-
-
-
request:
Vocode.ListPromptsRequest
-
requestOptions:
Prompts.RequestOptions
-
-
client.prompts.createPrompt({ ...params }) -> Vocode.Prompt
-
-
-
await client.prompts.createPrompt({});
-
-
-
request:
Vocode.PromptParams
-
requestOptions:
Prompts.RequestOptions
-
-
client.prompts.updatePrompt({ ...params }) -> Vocode.Prompt
-
-
-
await client.prompts.updatePrompt({ id: "id", body: {}, });
-
-
-
request:
Vocode.UpdatePromptRequest
-
requestOptions:
Prompts.RequestOptions
-
-
client.vectorDatabases.getVectorDatabase({ ...params }) -> Vocode.PineconeVectorDatabase
-
-
-
await client.vectorDatabases.getVectorDatabase({ id: "id", });
-
-
-
request:
Vocode.GetVectorDatabaseRequest
-
requestOptions:
VectorDatabases.RequestOptions
-
-
client.vectorDatabases.listVectorDatabases({ ...params }) -> Vocode.VectorDatabasePage
-
-
-
await client.vectorDatabases.listVectorDatabases();
-
-
-
request:
Vocode.ListVectorDatabasesRequest
-
requestOptions:
VectorDatabases.RequestOptions
-
-
client.vectorDatabases.createVectorDatabase({ ...params }) -> Vocode.PineconeVectorDatabase
-
-
-
await client.vectorDatabases.createVectorDatabase({ type: "vector_database_pinecone", index: "index", apiKey: "api_key", apiEnvironment: "api_environment", });
-
-
-
request:
Vocode.PineconeVectorDatabaseParams
-
requestOptions:
VectorDatabases.RequestOptions
-
-
client.vectorDatabases.updateVectorDatabase({ ...params }) -> Vocode.PineconeVectorDatabase
-
-
-
await client.vectorDatabases.updateVectorDatabase({ id: "id", body: { type: "vector_database_pinecone", }, });
-
-
-
request:
Vocode.UpdateVectorDatabaseRequest
-
requestOptions:
VectorDatabases.RequestOptions
-
-
client.accountConnections.getAccountConnection({ ...params }) -> Vocode.AccountConnectionResponseModel
-
-
-
await client.accountConnections.getAccountConnection({ id: "id", });
-
-
-
request:
Vocode.GetAccountConnectionRequest
-
requestOptions:
AccountConnections.RequestOptions
-
-
client.accountConnections.listAccountConnections({ ...params }) -> Vocode.AccountConnectionPage
-
-
-
await client.accountConnections.listAccountConnections();
-
-
-
request:
Vocode.ListAccountConnectionsRequest
-
requestOptions:
AccountConnections.RequestOptions
-
-
client.accountConnections.createAccountConnection({ ...params }) -> Vocode.AccountConnectionResponseModel
-
-
-
await client.accountConnections.createAccountConnection({ credentials: { openaiApiKey: "openai_api_key", }, type: "account_connection_openai", });
-
-
-
request:
Vocode.AccountConnectionParamsRequest
-
requestOptions:
AccountConnections.RequestOptions
-
-
client.accountConnections.updateAccountConnection({ ...params }) -> Vocode.AccountConnectionResponseModel
-
-
-
await client.accountConnections.updateAccountConnection({ id: "id", body: { type: "account_connection_openai", }, });
-
-
-
request:
Vocode.UpdateAccountConnectionRequest
-
requestOptions:
AccountConnections.RequestOptions
-
-
client.accountConnections.addToSteeringPool({ ...params }) -> unknown
-
-
-
await client.accountConnections.addToSteeringPool({ id: "id", body: undefined, });
-
-
-
request:
Vocode.AddToSteeringPoolRequest
-
requestOptions:
AccountConnections.RequestOptions
-
-
client.accountConnections.removeFromSteeringPool({ ...params }) -> unknown
-
-
-
await client.accountConnections.removeFromSteeringPool({ id: "id", phoneNumber: "phone_number", });
-
-
-
request:
Vocode.RemoveFromSteeringPoolRequest
-
requestOptions:
AccountConnections.RequestOptions
-
-