Skip to content

Commit 04f7052

Browse files
committed
Release 0.3.0
1 parent 70aaca5 commit 04f7052

File tree

232 files changed

+12048
-3018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+12048
-3018
lines changed

lib/requests.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_url(request_options: nil)
4545

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

9191
# @return [Hash{String => String}]
9292
def get_headers
93-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "vapi_server_sdk", "X-Fern-SDK-Version": "0.2.0" }
93+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "vapi_server_sdk", "X-Fern-SDK-Version": "0.3.0" }
9494
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless @token.nil?
9595
headers
9696
end

lib/types_export.rb

Lines changed: 129 additions & 62 deletions
Large diffs are not rendered by default.

lib/vapi_server_sdk/assistants/client.rb

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
require_relative "types/update_assistant_dto_server_messages_item"
1414
require_relative "types/update_assistant_dto_background_sound"
1515
require_relative "../types/transport_configuration_twilio"
16+
require_relative "types/update_assistant_dto_credentials_item"
1617
require_relative "../types/twilio_voicemail_detection"
1718
require_relative "../types/analysis_plan"
1819
require_relative "../types/artifact_plan"
@@ -105,6 +106,7 @@ def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil,
105106
# * :background_denoising_enabled (Boolean)
106107
# * :model_output_in_messages_enabled (Boolean)
107108
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
109+
# * :credentials (Array<Vapi::CreateAssistantDtoCredentialsItem>)
108110
# * :name (String)
109111
# * :voicemail_detection (Hash)
110112
# * :provider (String)
@@ -307,6 +309,10 @@ def delete(id:, request_options: nil)
307309
# * :timeout (Float)
308310
# * :record (Boolean)
309311
# * :recording_channels (Vapi::TransportConfigurationTwilioRecordingChannels)
312+
# @param credentials [Array<Hash>] These are dynamic credentials that will be used for the assistant calls. By
313+
# default, all the credentials are available for use in the call but you can
314+
# supplement an additional credentials using this. Dynamic credentials override
315+
# existing credentials.Request of type Array<Vapi::Assistants::UpdateAssistantDtoCredentialsItem>, as a Hash
310316
# @param name [String] This is the name of the assistant.
311317
# This is required when you want to transfer between assistants in a call.
312318
# @param voicemail_detection [Hash] These are the settings to configure or disable voicemail detection.
@@ -430,7 +436,7 @@ def delete(id:, request_options: nil)
430436
# )
431437
# api.assistants.update(id: "id")
432438
def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, first_message_mode: nil,
433-
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)
439+
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)
434440
response = @request_client.conn.patch do |req|
435441
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
436442
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -458,6 +464,7 @@ def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, fi
458464
backgroundDenoisingEnabled: background_denoising_enabled,
459465
modelOutputInMessagesEnabled: model_output_in_messages_enabled,
460466
transportConfigurations: transport_configurations,
467+
credentials: credentials,
461468
name: name,
462469
voicemailDetection: voicemail_detection,
463470
voicemailMessage: voicemail_message,
@@ -562,6 +569,7 @@ def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil,
562569
# * :background_denoising_enabled (Boolean)
563570
# * :model_output_in_messages_enabled (Boolean)
564571
# * :transport_configurations (Array<Vapi::TransportConfigurationTwilio>)
572+
# * :credentials (Array<Vapi::CreateAssistantDtoCredentialsItem>)
565573
# * :name (String)
566574
# * :voicemail_detection (Hash)
567575
# * :provider (String)
@@ -770,6 +778,10 @@ def delete(id:, request_options: nil)
770778
# * :timeout (Float)
771779
# * :record (Boolean)
772780
# * :recording_channels (Vapi::TransportConfigurationTwilioRecordingChannels)
781+
# @param credentials [Array<Hash>] These are dynamic credentials that will be used for the assistant calls. By
782+
# default, all the credentials are available for use in the call but you can
783+
# supplement an additional credentials using this. Dynamic credentials override
784+
# existing credentials.Request of type Array<Vapi::Assistants::UpdateAssistantDtoCredentialsItem>, as a Hash
773785
# @param name [String] This is the name of the assistant.
774786
# This is required when you want to transfer between assistants in a call.
775787
# @param voicemail_detection [Hash] These are the settings to configure or disable voicemail detection.
@@ -893,7 +905,7 @@ def delete(id:, request_options: nil)
893905
# )
894906
# api.assistants.update(id: "id")
895907
def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, first_message_mode: nil,
896-
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)
908+
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)
897909
Async do
898910
response = @request_client.conn.patch do |req|
899911
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -922,6 +934,7 @@ def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, fi
922934
backgroundDenoisingEnabled: background_denoising_enabled,
923935
modelOutputInMessagesEnabled: model_output_in_messages_enabled,
924936
transportConfigurations: transport_configurations,
937+
credentials: credentials,
925938
name: name,
926939
voicemailDetection: voicemail_detection,
927940
voicemailMessage: voicemail_message,

0 commit comments

Comments
 (0)