Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jan 14, 2025
1 parent 70aaca5 commit 04f7052
Show file tree
Hide file tree
Showing 232 changed files with 12,048 additions and 3,018 deletions.
4 changes: 2 additions & 2 deletions lib/requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_url(request_options: nil)

# @return [Hash{String => String}]
def get_headers
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "vapi_server_sdk", "X-Fern-SDK-Version": "0.2.0" }
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "vapi_server_sdk", "X-Fern-SDK-Version": "0.3.0" }
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless @token.nil?
headers
end
Expand Down Expand Up @@ -90,7 +90,7 @@ def get_url(request_options: nil)

# @return [Hash{String => String}]
def get_headers
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "vapi_server_sdk", "X-Fern-SDK-Version": "0.2.0" }
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "vapi_server_sdk", "X-Fern-SDK-Version": "0.3.0" }
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless @token.nil?
headers
end
Expand Down
191 changes: 129 additions & 62 deletions lib/types_export.rb

Large diffs are not rendered by default.

17 changes: 15 additions & 2 deletions lib/vapi_server_sdk/assistants/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
require_relative "types/update_assistant_dto_server_messages_item"
require_relative "types/update_assistant_dto_background_sound"
require_relative "../types/transport_configuration_twilio"
require_relative "types/update_assistant_dto_credentials_item"
require_relative "../types/twilio_voicemail_detection"
require_relative "../types/analysis_plan"
require_relative "../types/artifact_plan"
Expand Down Expand Up @@ -105,6 +106,7 @@ def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil,
# * :background_denoising_enabled (Boolean)
# * :model_output_in_messages_enabled (Boolean)
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
# * :credentials (Array<Vapi::CreateAssistantDtoCredentialsItem>)
# * :name (String)
# * :voicemail_detection (Hash)
# * :provider (String)
Expand Down Expand Up @@ -307,6 +309,10 @@ def delete(id:, request_options: nil)
# * :timeout (Float)
# * :record (Boolean)
# * :recording_channels (Vapi::TransportConfigurationTwilioRecordingChannels)
# @param credentials [Array<Hash>] These are dynamic credentials that will be used for the assistant calls. By
# default, all the credentials are available for use in the call but you can
# supplement an additional credentials using this. Dynamic credentials override
# existing credentials.Request of type Array<Vapi::Assistants::UpdateAssistantDtoCredentialsItem>, as a Hash
# @param name [String] This is the name of the assistant.
# This is required when you want to transfer between assistants in a call.
# @param voicemail_detection [Hash] These are the settings to configure or disable voicemail detection.
Expand Down Expand Up @@ -430,7 +436,7 @@ def delete(id:, request_options: nil)
# )
# api.assistants.update(id: "id")
def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, first_message_mode: nil,
hipaa_enabled: nil, client_messages: nil, server_messages: nil, silence_timeout_seconds: nil, max_duration_seconds: nil, background_sound: nil, background_denoising_enabled: nil, model_output_in_messages_enabled: nil, transport_configurations: nil, name: nil, voicemail_detection: nil, voicemail_message: nil, end_call_message: nil, end_call_phrases: nil, metadata: nil, analysis_plan: nil, artifact_plan: nil, message_plan: nil, start_speaking_plan: nil, stop_speaking_plan: nil, monitor_plan: nil, credential_ids: nil, server: nil, request_options: nil)
hipaa_enabled: nil, client_messages: nil, server_messages: nil, silence_timeout_seconds: nil, max_duration_seconds: nil, background_sound: nil, background_denoising_enabled: nil, model_output_in_messages_enabled: nil, transport_configurations: nil, credentials: nil, name: nil, voicemail_detection: nil, voicemail_message: nil, end_call_message: nil, end_call_phrases: nil, metadata: nil, analysis_plan: nil, artifact_plan: nil, message_plan: nil, start_speaking_plan: nil, stop_speaking_plan: nil, monitor_plan: nil, credential_ids: nil, server: nil, request_options: nil)
response = @request_client.conn.patch do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
Expand Down Expand Up @@ -458,6 +464,7 @@ def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, fi
backgroundDenoisingEnabled: background_denoising_enabled,
modelOutputInMessagesEnabled: model_output_in_messages_enabled,
transportConfigurations: transport_configurations,
credentials: credentials,
name: name,
voicemailDetection: voicemail_detection,
voicemailMessage: voicemail_message,
Expand Down Expand Up @@ -562,6 +569,7 @@ def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil,
# * :background_denoising_enabled (Boolean)
# * :model_output_in_messages_enabled (Boolean)
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
# * :credentials (Array<Vapi::CreateAssistantDtoCredentialsItem>)
# * :name (String)
# * :voicemail_detection (Hash)
# * :provider (String)
Expand Down Expand Up @@ -770,6 +778,10 @@ def delete(id:, request_options: nil)
# * :timeout (Float)
# * :record (Boolean)
# * :recording_channels (Vapi::TransportConfigurationTwilioRecordingChannels)
# @param credentials [Array<Hash>] These are dynamic credentials that will be used for the assistant calls. By
# default, all the credentials are available for use in the call but you can
# supplement an additional credentials using this. Dynamic credentials override
# existing credentials.Request of type Array<Vapi::Assistants::UpdateAssistantDtoCredentialsItem>, as a Hash
# @param name [String] This is the name of the assistant.
# This is required when you want to transfer between assistants in a call.
# @param voicemail_detection [Hash] These are the settings to configure or disable voicemail detection.
Expand Down Expand Up @@ -893,7 +905,7 @@ def delete(id:, request_options: nil)
# )
# api.assistants.update(id: "id")
def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, first_message_mode: nil,
hipaa_enabled: nil, client_messages: nil, server_messages: nil, silence_timeout_seconds: nil, max_duration_seconds: nil, background_sound: nil, background_denoising_enabled: nil, model_output_in_messages_enabled: nil, transport_configurations: nil, name: nil, voicemail_detection: nil, voicemail_message: nil, end_call_message: nil, end_call_phrases: nil, metadata: nil, analysis_plan: nil, artifact_plan: nil, message_plan: nil, start_speaking_plan: nil, stop_speaking_plan: nil, monitor_plan: nil, credential_ids: nil, server: nil, request_options: nil)
hipaa_enabled: nil, client_messages: nil, server_messages: nil, silence_timeout_seconds: nil, max_duration_seconds: nil, background_sound: nil, background_denoising_enabled: nil, model_output_in_messages_enabled: nil, transport_configurations: nil, credentials: nil, name: nil, voicemail_detection: nil, voicemail_message: nil, end_call_message: nil, end_call_phrases: nil, metadata: nil, analysis_plan: nil, artifact_plan: nil, message_plan: nil, start_speaking_plan: nil, stop_speaking_plan: nil, monitor_plan: nil, credential_ids: nil, server: nil, request_options: nil)
Async do
response = @request_client.conn.patch do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
Expand Down Expand Up @@ -922,6 +934,7 @@ def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, fi
backgroundDenoisingEnabled: background_denoising_enabled,
modelOutputInMessagesEnabled: model_output_in_messages_enabled,
transportConfigurations: transport_configurations,
credentials: credentials,
name: name,
voicemailDetection: voicemail_detection,
voicemailMessage: voicemail_message,
Expand Down
Loading

0 comments on commit 04f7052

Please sign in to comment.