vapi_server_sdk 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +83 -12
- data/lib/vapi_server_sdk/analytics/client.rb +41 -26
- data/lib/vapi_server_sdk/assistants/client.rb +84 -84
- data/lib/vapi_server_sdk/assistants/types/update_assistant_dto_server_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/blocks/client.rb +0 -70
- data/lib/vapi_server_sdk/calls/client.rb +110 -76
- data/lib/vapi_server_sdk/files/client.rb +0 -70
- data/lib/vapi_server_sdk/knowledge_bases/client.rb +0 -70
- data/lib/vapi_server_sdk/logs/client.rb +15 -46
- data/lib/vapi_server_sdk/logs/types/logging_controller_logs_delete_query_request_type.rb +12 -0
- data/lib/vapi_server_sdk/phone_numbers/client.rb +0 -70
- data/lib/vapi_server_sdk/squads/client.rb +136 -78
- data/lib/vapi_server_sdk/test_suite_runs/client.rb +328 -0
- data/lib/vapi_server_sdk/test_suite_runs/types/test_suite_run_controller_find_all_paginated_request_sort_order.rb +10 -0
- data/lib/vapi_server_sdk/test_suite_tests/client.rb +331 -0
- data/lib/vapi_server_sdk/test_suite_tests/types/test_suite_test_controller_create_request.rb +81 -0
- data/lib/vapi_server_sdk/test_suite_tests/types/test_suite_test_controller_find_all_paginated_request_sort_order.rb +10 -0
- data/lib/vapi_server_sdk/test_suite_tests/types/test_suite_test_controller_remove_response.rb +82 -0
- data/lib/vapi_server_sdk/test_suite_tests/types/test_suite_test_controller_update_request.rb +81 -0
- data/lib/vapi_server_sdk/test_suites/client.rb +338 -0
- data/lib/vapi_server_sdk/test_suites/types/test_suite_controller_find_all_paginated_request_sort_order.rb +10 -0
- data/lib/vapi_server_sdk/tools/client.rb +0 -70
- data/lib/vapi_server_sdk/types/ai_edge_condition.rb +55 -0
- data/lib/vapi_server_sdk/types/analytics_operation_column.rb +1 -0
- data/lib/vapi_server_sdk/types/analytics_operation_operation.rb +1 -0
- data/lib/vapi_server_sdk/types/analytics_query.rb +4 -3
- data/lib/vapi_server_sdk/types/analytics_query_table.rb +9 -0
- data/lib/vapi_server_sdk/types/api_request.rb +165 -0
- data/lib/vapi_server_sdk/types/api_request_method.rb +8 -0
- data/lib/vapi_server_sdk/types/api_request_mode.rb +10 -0
- data/lib/vapi_server_sdk/types/artifact.rb +12 -2
- data/lib/vapi_server_sdk/types/artifact_plan.rb +56 -8
- data/lib/vapi_server_sdk/types/assistant.rb +27 -13
- data/lib/vapi_server_sdk/types/assistant_hook_action_base.rb +47 -0
- data/lib/vapi_server_sdk/types/assistant_hook_filter.rb +72 -0
- data/lib/vapi_server_sdk/types/assistant_hooks.rb +82 -0
- data/lib/vapi_server_sdk/types/assistant_overrides.rb +28 -14
- data/lib/vapi_server_sdk/types/assistant_overrides_server_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/types/assistant_server_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/types/azure_credential_region.rb +4 -2
- data/lib/vapi_server_sdk/types/azure_open_ai_credential_models_item.rb +1 -0
- data/lib/vapi_server_sdk/types/azure_open_ai_credential_region.rb +4 -2
- data/lib/vapi_server_sdk/types/backoff_plan.rb +80 -0
- data/lib/vapi_server_sdk/types/bash_tool_with_tool_call.rb +175 -0
- data/lib/vapi_server_sdk/types/bash_tool_with_tool_call_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/byo_phone_number.rb +10 -1
- data/lib/vapi_server_sdk/types/byo_phone_number_status.rb +10 -0
- data/lib/vapi_server_sdk/types/call_ended_reason.rb +10 -1
- data/lib/vapi_server_sdk/types/cartesia_experimental_controls.rb +69 -0
- data/lib/vapi_server_sdk/types/cartesia_experimental_controls_emotion.rb +26 -0
- data/lib/vapi_server_sdk/types/cartesia_experimental_controls_speed.rb +11 -0
- data/lib/vapi_server_sdk/types/cartesia_voice.rb +24 -10
- data/lib/vapi_server_sdk/types/chat_completion_message.rb +80 -0
- data/lib/vapi_server_sdk/types/chat_completion_message_metadata.rb +94 -0
- data/lib/vapi_server_sdk/types/chat_completions_dto.rb +84 -0
- data/lib/vapi_server_sdk/types/client_inbound_message_end_call.rb +47 -0
- data/lib/vapi_server_sdk/types/client_inbound_message_message.rb +13 -0
- data/lib/vapi_server_sdk/types/client_inbound_message_transfer.rb +13 -3
- data/lib/vapi_server_sdk/types/client_message_conversation_update.rb +15 -2
- data/lib/vapi_server_sdk/types/client_message_hang.rb +22 -4
- data/lib/vapi_server_sdk/types/client_message_language_change_detected.rb +15 -3
- data/lib/vapi_server_sdk/types/client_message_message.rb +165 -181
- data/lib/vapi_server_sdk/types/client_message_metadata.rb +15 -3
- data/lib/vapi_server_sdk/types/client_message_model_output.rb +15 -3
- data/lib/vapi_server_sdk/types/client_message_speech_update.rb +11 -2
- data/lib/vapi_server_sdk/types/client_message_tool_calls.rb +15 -2
- data/lib/vapi_server_sdk/types/client_message_tool_calls_result.rb +15 -3
- data/lib/vapi_server_sdk/types/client_message_tool_calls_tool_with_tool_call_list_item.rb +116 -77
- data/lib/vapi_server_sdk/types/client_message_transcript.rb +12 -2
- data/lib/vapi_server_sdk/types/client_message_transcript_type.rb +10 -0
- data/lib/vapi_server_sdk/types/client_message_transfer_update.rb +11 -1
- data/lib/vapi_server_sdk/types/client_message_user_interrupted.rb +14 -4
- data/lib/vapi_server_sdk/types/client_message_voice_input.rb +15 -3
- data/lib/vapi_server_sdk/types/client_message_workflow_node_started.rb +67 -0
- data/lib/vapi_server_sdk/types/compliance_plan.rb +77 -0
- data/lib/vapi_server_sdk/types/computer_tool_with_tool_call.rb +199 -0
- data/lib/vapi_server_sdk/types/computer_tool_with_tool_call_messages_item.rb +120 -0
- data/lib/vapi_server_sdk/types/create_assistant_dto.rb +28 -14
- data/lib/vapi_server_sdk/types/create_assistant_dto_server_messages_item.rb +1 -0
- data/lib/vapi_server_sdk/types/create_azure_credential_dto_region.rb +4 -2
- data/lib/vapi_server_sdk/types/create_azure_open_ai_credential_dto_models_item.rb +1 -0
- data/lib/vapi_server_sdk/types/create_azure_open_ai_credential_dto_region.rb +4 -2
- data/lib/vapi_server_sdk/types/create_custom_knowledge_base_dto.rb +2 -4
- data/lib/vapi_server_sdk/types/create_test_suite_test_voice_dto.rb +90 -0
- data/lib/vapi_server_sdk/types/create_trieve_knowledge_base_dto.rb +34 -47
- data/lib/vapi_server_sdk/types/create_trieve_knowledge_base_dto_create_plan.rb +97 -0
- data/lib/vapi_server_sdk/types/create_vapi_phone_number_dto.rb +12 -4
- data/lib/vapi_server_sdk/types/create_workflow_dto.rb +80 -0
- data/lib/vapi_server_sdk/types/create_workflow_dto_nodes_item.rb +133 -0
- data/lib/vapi_server_sdk/types/custom_knowledge_base.rb +2 -4
- data/lib/vapi_server_sdk/types/deep_seek_model.rb +4 -3
- data/lib/vapi_server_sdk/types/deep_seek_model_model.rb +9 -0
- data/lib/vapi_server_sdk/types/deepgram_transcriber.rb +28 -2
- data/lib/vapi_server_sdk/types/deepgram_voice.rb +22 -2
- data/lib/vapi_server_sdk/types/edge.rb +87 -0
- data/lib/vapi_server_sdk/types/edge_condition.rb +107 -0
- data/lib/vapi_server_sdk/types/failed_edge_condition.rb +47 -0
- data/lib/vapi_server_sdk/types/fallback_cartesia_voice.rb +24 -9
- data/lib/vapi_server_sdk/types/fallback_deepgram_voice.rb +17 -2
- data/lib/vapi_server_sdk/types/fallback_play_ht_voice_model.rb +1 -0
- data/lib/vapi_server_sdk/types/fallback_rime_ai_voice_id_enum.rb +22 -20
- data/lib/vapi_server_sdk/types/fallback_rime_ai_voice_model.rb +1 -0
- data/lib/vapi_server_sdk/types/format_plan.rb +22 -2
- data/lib/vapi_server_sdk/types/format_plan_formatters_enabled_item.rb +22 -0
- data/lib/vapi_server_sdk/types/function_tool_with_tool_call.rb +1 -10
- data/lib/vapi_server_sdk/types/gather.rb +143 -0
- data/lib/vapi_server_sdk/types/ghl_tool_with_tool_call.rb +1 -9
- data/lib/vapi_server_sdk/types/google_model_model.rb +4 -0
- data/lib/vapi_server_sdk/types/groq_model_model.rb +1 -0
- data/lib/vapi_server_sdk/types/hangup.rb +67 -0
- data/lib/vapi_server_sdk/types/hook.rb +70 -0
- data/lib/vapi_server_sdk/types/hook_on.rb +9 -0
- data/lib/vapi_server_sdk/types/invite_user_dto.rb +11 -2
- data/lib/vapi_server_sdk/types/json_schema.rb +37 -2
- data/lib/vapi_server_sdk/types/log.rb +18 -18
- data/lib/vapi_server_sdk/types/logic_edge_condition.rb +55 -0
- data/lib/vapi_server_sdk/types/make_tool_with_tool_call.rb +1 -9
- data/lib/vapi_server_sdk/types/message_plan.rb +12 -2
- data/lib/vapi_server_sdk/types/open_ai_model.rb +1 -9
- data/lib/vapi_server_sdk/types/open_ai_model_fallback_models_item.rb +2 -0
- data/lib/vapi_server_sdk/types/open_ai_model_model.rb +2 -0
- data/lib/vapi_server_sdk/types/play_ht_voice_model.rb +1 -0
- data/lib/vapi_server_sdk/types/rime_ai_voice_id_enum.rb +22 -20
- data/lib/vapi_server_sdk/types/rime_ai_voice_model.rb +1 -0
- data/lib/vapi_server_sdk/types/say.rb +81 -0
- data/lib/vapi_server_sdk/types/say_hook.rb +81 -0
- data/lib/vapi_server_sdk/types/server.rb +17 -2
- data/lib/vapi_server_sdk/types/server_message_assistant_request.rb +12 -2
- data/lib/vapi_server_sdk/types/server_message_conversation_update.rb +12 -2
- data/lib/vapi_server_sdk/types/server_message_end_of_call_report.rb +11 -1
- data/lib/vapi_server_sdk/types/server_message_end_of_call_report_ended_reason.rb +10 -1
- data/lib/vapi_server_sdk/types/server_message_hang.rb +20 -2
- data/lib/vapi_server_sdk/types/server_message_knowledge_base_request.rb +14 -2
- data/lib/vapi_server_sdk/types/server_message_language_change_detected.rb +11 -1
- data/lib/vapi_server_sdk/types/server_message_message.rb +212 -237
- data/lib/vapi_server_sdk/types/server_message_model_output.rb +11 -1
- data/lib/vapi_server_sdk/types/server_message_phone_call_control.rb +18 -2
- data/lib/vapi_server_sdk/types/server_message_speech_update.rb +11 -1
- data/lib/vapi_server_sdk/types/server_message_status_update.rb +12 -2
- data/lib/vapi_server_sdk/types/server_message_status_update_ended_reason.rb +10 -1
- data/lib/vapi_server_sdk/types/server_message_tool_calls.rb +10 -2
- data/lib/vapi_server_sdk/types/server_message_tool_calls_tool_with_tool_call_list_item.rb +116 -77
- data/lib/vapi_server_sdk/types/server_message_transcript.rb +13 -2
- data/lib/vapi_server_sdk/types/server_message_transcript_type.rb +10 -0
- data/lib/vapi_server_sdk/types/server_message_transfer_destination_request.rb +12 -2
- data/lib/vapi_server_sdk/types/server_message_transfer_update.rb +11 -1
- data/lib/vapi_server_sdk/types/server_message_user_interrupted.rb +12 -2
- data/lib/vapi_server_sdk/types/server_message_voice_input.rb +11 -1
- data/lib/vapi_server_sdk/types/server_message_voice_request.rb +50 -2
- data/lib/vapi_server_sdk/types/stop_speaking_plan.rb +27 -2
- data/lib/vapi_server_sdk/types/subscription.rb +44 -14
- data/lib/vapi_server_sdk/types/sync_voice_library_dto_providers_item.rb +1 -0
- data/lib/vapi_server_sdk/types/test_suite.rb +104 -0
- data/lib/vapi_server_sdk/types/test_suite_run.rb +127 -0
- data/lib/vapi_server_sdk/types/test_suite_run_scorer_ai.rb +80 -0
- data/lib/vapi_server_sdk/types/test_suite_run_scorer_ai_result.rb +9 -0
- data/lib/vapi_server_sdk/types/test_suite_run_status.rb +10 -0
- data/lib/vapi_server_sdk/types/test_suite_run_test_attempt.rb +75 -0
- data/lib/vapi_server_sdk/types/{analytics_query_dto.rb → test_suite_run_test_attempt_call.rb} +19 -17
- data/lib/vapi_server_sdk/types/test_suite_run_test_result.rb +75 -0
- data/lib/vapi_server_sdk/types/test_suite_runs_paginated_response.rb +75 -0
- data/lib/vapi_server_sdk/types/test_suite_test_scorer_ai.rb +65 -0
- data/lib/vapi_server_sdk/types/test_suite_test_voice.rb +132 -0
- data/lib/vapi_server_sdk/types/test_suite_tests_paginated_response.rb +75 -0
- data/lib/vapi_server_sdk/types/test_suites_paginated_response.rb +75 -0
- data/lib/vapi_server_sdk/types/text_editor_tool_with_tool_call.rb +175 -0
- data/lib/vapi_server_sdk/types/text_editor_tool_with_tool_call_messages_item.rb +121 -0
- data/lib/vapi_server_sdk/types/time_range_step.rb +1 -0
- data/lib/vapi_server_sdk/types/tool_message_start.rb +18 -2
- data/lib/vapi_server_sdk/types/transfer.rb +74 -0
- data/lib/vapi_server_sdk/types/transfer_assistant_hook_action.rb +75 -0
- data/lib/vapi_server_sdk/types/{buy_phone_number_dto_fallback_destination.rb → transfer_assistant_hook_action_destination.rb} +9 -12
- data/lib/vapi_server_sdk/types/transfer_destination_assistant.rb +46 -0
- data/lib/vapi_server_sdk/types/transfer_plan.rb +37 -1
- data/lib/vapi_server_sdk/types/transfer_plan_mode.rb +4 -0
- data/lib/vapi_server_sdk/types/trieve_knowledge_base.rb +35 -44
- data/lib/vapi_server_sdk/types/{trieve_knowledge_base_vector_store_create_plan.rb → trieve_knowledge_base_chunk_plan.rb} +17 -11
- data/lib/vapi_server_sdk/types/trieve_knowledge_base_create.rb +59 -0
- data/lib/vapi_server_sdk/types/trieve_knowledge_base_create_plan.rb +96 -0
- data/lib/vapi_server_sdk/types/trieve_knowledge_base_import.rb +55 -0
- data/lib/vapi_server_sdk/types/{trieve_knowledge_base_vector_store_search_plan.rb → trieve_knowledge_base_search_plan.rb} +21 -12
- data/lib/vapi_server_sdk/types/{trieve_knowledge_base_vector_store_search_plan_search_type.rb → trieve_knowledge_base_search_plan_search_type.rb} +1 -1
- data/lib/vapi_server_sdk/types/twilio_phone_number.rb +11 -2
- data/lib/vapi_server_sdk/types/twilio_phone_number_status.rb +10 -0
- data/lib/vapi_server_sdk/types/update_azure_credential_dto_region.rb +4 -2
- data/lib/vapi_server_sdk/types/update_azure_open_ai_credential_dto_models_item.rb +1 -0
- data/lib/vapi_server_sdk/types/update_azure_open_ai_credential_dto_region.rb +4 -2
- data/lib/vapi_server_sdk/types/update_custom_knowledge_base_dto.rb +2 -4
- data/lib/vapi_server_sdk/types/update_test_suite_test_voice_dto.rb +90 -0
- data/lib/vapi_server_sdk/types/update_trieve_knowledge_base_dto.rb +34 -47
- data/lib/vapi_server_sdk/types/update_trieve_knowledge_base_dto_create_plan.rb +97 -0
- data/lib/vapi_server_sdk/types/vapi_model.rb +27 -1
- data/lib/vapi_server_sdk/types/vapi_phone_number.rb +29 -4
- data/lib/vapi_server_sdk/types/vapi_phone_number_status.rb +10 -0
- data/lib/vapi_server_sdk/types/vonage_phone_number.rb +11 -2
- data/lib/vapi_server_sdk/types/vonage_phone_number_status.rb +10 -0
- data/lib/vapi_server_sdk/types/workflow.rb +117 -0
- data/lib/vapi_server_sdk/types/workflow_nodes_item.rb +133 -0
- data/lib/vapi_server_sdk/types/xai_model.rb +4 -3
- data/lib/vapi_server_sdk/types/xai_model_model.rb +10 -0
- data/lib/vapi_server_sdk.rb +21 -0
- metadata +85 -11
- data/lib/vapi_server_sdk/types/buy_phone_number_dto.rb +0 -147
- data/lib/vapi_server_sdk/types/org_with_org_user.rb +0 -262
- data/lib/vapi_server_sdk/types/org_with_org_user_channel.rb +0 -10
- data/lib/vapi_server_sdk/types/org_with_org_user_role.rb +0 -9
@@ -15,6 +15,7 @@ require_relative "types/update_assistant_dto_background_sound"
|
|
15
15
|
require_relative "../types/transport_configuration_twilio"
|
16
16
|
require_relative "types/update_assistant_dto_credentials_item"
|
17
17
|
require_relative "../types/twilio_voicemail_detection"
|
18
|
+
require_relative "../types/compliance_plan"
|
18
19
|
require_relative "../types/analysis_plan"
|
19
20
|
require_relative "../types/artifact_plan"
|
20
21
|
require_relative "../types/message_plan"
|
@@ -22,6 +23,7 @@ require_relative "../types/start_speaking_plan"
|
|
22
23
|
require_relative "../types/stop_speaking_plan"
|
23
24
|
require_relative "../types/monitor_plan"
|
24
25
|
require_relative "../types/server"
|
26
|
+
require_relative "../types/assistant_hooks"
|
25
27
|
require "async"
|
26
28
|
|
27
29
|
module Vapi
|
@@ -50,13 +52,6 @@ module Vapi
|
|
50
52
|
# specified value.
|
51
53
|
# @param request_options [Vapi::RequestOptions]
|
52
54
|
# @return [Array<Vapi::Assistant>]
|
53
|
-
# @example
|
54
|
-
# api = Vapi::Client.new(
|
55
|
-
# base_url: "https://api.example.com",
|
56
|
-
# environment: Vapi::Environment::DEFAULT,
|
57
|
-
# token: "YOUR_AUTH_TOKEN"
|
58
|
-
# )
|
59
|
-
# api.assistants.list
|
60
55
|
def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil, created_at_le: nil,
|
61
56
|
updated_at_gt: nil, updated_at_lt: nil, updated_at_ge: nil, updated_at_le: nil, request_options: nil)
|
62
57
|
response = @request_client.conn.get do |req|
|
@@ -97,7 +92,6 @@ module Vapi
|
|
97
92
|
# * :voice (Hash)
|
98
93
|
# * :first_message (String)
|
99
94
|
# * :first_message_mode (Vapi::CreateAssistantDtoFirstMessageMode)
|
100
|
-
# * :hipaa_enabled (Boolean)
|
101
95
|
# * :client_messages (Array<Vapi::CreateAssistantDtoClientMessagesItem>)
|
102
96
|
# * :server_messages (Array<Vapi::CreateAssistantDtoServerMessagesItem>)
|
103
97
|
# * :silence_timeout_seconds (Float)
|
@@ -119,6 +113,9 @@ module Vapi
|
|
119
113
|
# * :voicemail_message (String)
|
120
114
|
# * :end_call_message (String)
|
121
115
|
# * :end_call_phrases (Array<String>)
|
116
|
+
# * :compliance_plan (Hash)
|
117
|
+
# * :hipaa_enabled (Boolean)
|
118
|
+
# * :pci_enabled (Boolean)
|
122
119
|
# * :metadata (Hash{String => Object})
|
123
120
|
# * :analysis_plan (Hash)
|
124
121
|
# * :summary_plan (Hash)
|
@@ -134,6 +131,10 @@ module Vapi
|
|
134
131
|
# * :properties (Hash{String => Object})
|
135
132
|
# * :description (String)
|
136
133
|
# * :required (Array<String>)
|
134
|
+
# * :regex (String)
|
135
|
+
# * :value (String)
|
136
|
+
# * :target (String)
|
137
|
+
# * :enum (Array<String>)
|
137
138
|
# * :timeout_seconds (Float)
|
138
139
|
# * :success_evaluation_plan (Hash)
|
139
140
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -143,6 +144,8 @@ module Vapi
|
|
143
144
|
# * :artifact_plan (Hash)
|
144
145
|
# * :recording_enabled (Boolean)
|
145
146
|
# * :video_recording_enabled (Boolean)
|
147
|
+
# * :pcap_enabled (Boolean)
|
148
|
+
# * :pcap_s_3_path_prefix (String)
|
146
149
|
# * :transcript_plan (Hash)
|
147
150
|
# * :enabled (Boolean)
|
148
151
|
# * :assistant_name (String)
|
@@ -152,6 +155,7 @@ module Vapi
|
|
152
155
|
# * :idle_messages (Array<String>)
|
153
156
|
# * :idle_message_max_spoken_count (Float)
|
154
157
|
# * :idle_timeout_seconds (Float)
|
158
|
+
# * :silence_timeout_message (String)
|
155
159
|
# * :start_speaking_plan (Hash)
|
156
160
|
# * :wait_seconds (Float)
|
157
161
|
# * :smart_endpointing_enabled (Boolean)
|
@@ -164,6 +168,8 @@ module Vapi
|
|
164
168
|
# * :num_words (Float)
|
165
169
|
# * :voice_seconds (Float)
|
166
170
|
# * :backoff_seconds (Float)
|
171
|
+
# * :acknowledgement_phrases (Array<String>)
|
172
|
+
# * :interruption_phrases (Array<String>)
|
167
173
|
# * :monitor_plan (Hash)
|
168
174
|
# * :listen_enabled (Boolean)
|
169
175
|
# * :control_enabled (Boolean)
|
@@ -173,15 +179,13 @@ module Vapi
|
|
173
179
|
# * :url (String)
|
174
180
|
# * :secret (String)
|
175
181
|
# * :headers (Hash{String => Object})
|
182
|
+
# * :backoff_plan (Hash)
|
183
|
+
# * :max_retries (Float)
|
184
|
+
# * :type (Hash{String => Object})
|
185
|
+
# * :base_delay_seconds (Float)
|
186
|
+
# * :hooks (Array<Vapi::AssistantHooks>)
|
176
187
|
# @param request_options [Vapi::RequestOptions]
|
177
188
|
# @return [Vapi::Assistant]
|
178
|
-
# @example
|
179
|
-
# api = Vapi::Client.new(
|
180
|
-
# base_url: "https://api.example.com",
|
181
|
-
# environment: Vapi::Environment::DEFAULT,
|
182
|
-
# token: "YOUR_AUTH_TOKEN"
|
183
|
-
# )
|
184
|
-
# api.assistants.create(request: { })
|
185
189
|
def create(request:, request_options: nil)
|
186
190
|
response = @request_client.conn.post do |req|
|
187
191
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -203,13 +207,6 @@ module Vapi
|
|
203
207
|
# @param id [String]
|
204
208
|
# @param request_options [Vapi::RequestOptions]
|
205
209
|
# @return [Vapi::Assistant]
|
206
|
-
# @example
|
207
|
-
# api = Vapi::Client.new(
|
208
|
-
# base_url: "https://api.example.com",
|
209
|
-
# environment: Vapi::Environment::DEFAULT,
|
210
|
-
# token: "YOUR_AUTH_TOKEN"
|
211
|
-
# )
|
212
|
-
# api.assistants.get(id: "id")
|
213
210
|
def get(id:, request_options: nil)
|
214
211
|
response = @request_client.conn.get do |req|
|
215
212
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -233,13 +230,6 @@ module Vapi
|
|
233
230
|
# @param id [String]
|
234
231
|
# @param request_options [Vapi::RequestOptions]
|
235
232
|
# @return [Vapi::Assistant]
|
236
|
-
# @example
|
237
|
-
# api = Vapi::Client.new(
|
238
|
-
# base_url: "https://api.example.com",
|
239
|
-
# environment: Vapi::Environment::DEFAULT,
|
240
|
-
# token: "YOUR_AUTH_TOKEN"
|
241
|
-
# )
|
242
|
-
# api.assistants.delete(id: "id")
|
243
233
|
def delete(id:, request_options: nil)
|
244
234
|
response = @request_client.conn.delete do |req|
|
245
235
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -278,9 +268,6 @@ module Vapi
|
|
278
268
|
# state. (`assistant.model.messages` at call start, `call.messages` at squad
|
279
269
|
# transfer points).
|
280
270
|
# @default 'assistant-speaks-first'
|
281
|
-
# @param hipaa_enabled [Boolean] When this is enabled, no logs, recordings, or transcriptions will be stored. At
|
282
|
-
# the end of the call, you will still receive an end-of-call-report message to
|
283
|
-
# store on your server. Defaults to false.
|
284
271
|
# @param client_messages [Array<Vapi::Assistants::UpdateAssistantDtoClientMessagesItem>] These are the messages that will be sent to your Client SDKs. Default is
|
285
272
|
# tatus-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input.
|
286
273
|
# You can check the shape of the messages in ClientMessage schema.
|
@@ -336,6 +323,9 @@ module Vapi
|
|
336
323
|
# If unspecified, it will hang up without saying anything.
|
337
324
|
# @param end_call_phrases [Array<String>] This list contains phrases that, if spoken by the assistant, will trigger the
|
338
325
|
# call to be hung up. Case insensitive.
|
326
|
+
# @param compliance_plan [Hash] Request of type Vapi::CompliancePlan, as a Hash
|
327
|
+
# * :hipaa_enabled (Boolean)
|
328
|
+
# * :pci_enabled (Boolean)
|
339
329
|
# @param metadata [Hash{String => Object}] This is for metadata you want to store on the assistant.
|
340
330
|
# @param analysis_plan [Hash] This is the plan for analysis of assistant's calls. Stored in `call.analysis`.Request of type Vapi::AnalysisPlan, as a Hash
|
341
331
|
# * :summary_plan (Hash)
|
@@ -351,6 +341,10 @@ module Vapi
|
|
351
341
|
# * :properties (Hash{String => Object})
|
352
342
|
# * :description (String)
|
353
343
|
# * :required (Array<String>)
|
344
|
+
# * :regex (String)
|
345
|
+
# * :value (String)
|
346
|
+
# * :target (String)
|
347
|
+
# * :enum (Array<String>)
|
354
348
|
# * :timeout_seconds (Float)
|
355
349
|
# * :success_evaluation_plan (Hash)
|
356
350
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -363,6 +357,8 @@ module Vapi
|
|
363
357
|
# `artifactPlan` in the future, but will remain backwards compatible.Request of type Vapi::ArtifactPlan, as a Hash
|
364
358
|
# * :recording_enabled (Boolean)
|
365
359
|
# * :video_recording_enabled (Boolean)
|
360
|
+
# * :pcap_enabled (Boolean)
|
361
|
+
# * :pcap_s_3_path_prefix (String)
|
366
362
|
# * :transcript_plan (Hash)
|
367
363
|
# * :enabled (Boolean)
|
368
364
|
# * :assistant_name (String)
|
@@ -376,6 +372,7 @@ module Vapi
|
|
376
372
|
# * :idle_messages (Array<String>)
|
377
373
|
# * :idle_message_max_spoken_count (Float)
|
378
374
|
# * :idle_timeout_seconds (Float)
|
375
|
+
# * :silence_timeout_message (String)
|
379
376
|
# @param start_speaking_plan [Hash] This is the plan for when the assistant should start talking.
|
380
377
|
# You should configure this if you're running into these issues:
|
381
378
|
# - The assistant is too slow to start talking after the customer is done
|
@@ -402,6 +399,8 @@ module Vapi
|
|
402
399
|
# * :num_words (Float)
|
403
400
|
# * :voice_seconds (Float)
|
404
401
|
# * :backoff_seconds (Float)
|
402
|
+
# * :acknowledgement_phrases (Array<String>)
|
403
|
+
# * :interruption_phrases (Array<String>)
|
405
404
|
# @param monitor_plan [Hash] This is the plan for real-time monitoring of the assistant's calls.
|
406
405
|
# Usage:
|
407
406
|
# - To enable live listening of the assistant's calls, set
|
@@ -426,17 +425,18 @@ module Vapi
|
|
426
425
|
# * :url (String)
|
427
426
|
# * :secret (String)
|
428
427
|
# * :headers (Hash{String => Object})
|
428
|
+
# * :backoff_plan (Hash)
|
429
|
+
# * :max_retries (Float)
|
430
|
+
# * :type (Hash{String => Object})
|
431
|
+
# * :base_delay_seconds (Float)
|
432
|
+
# @param hooks [Array<Hash>] This is a set of actions that will be performed on certain events.Request of type Array<Vapi::AssistantHooks>, as a Hash
|
433
|
+
# * :on (String)
|
434
|
+
# * :filters (Array<Vapi::AssistantHookFilter>)
|
435
|
+
# * :do_ (Array<Vapi::AssistantHookActionBase>)
|
429
436
|
# @param request_options [Vapi::RequestOptions]
|
430
437
|
# @return [Vapi::Assistant]
|
431
|
-
# @example
|
432
|
-
# api = Vapi::Client.new(
|
433
|
-
# base_url: "https://api.example.com",
|
434
|
-
# environment: Vapi::Environment::DEFAULT,
|
435
|
-
# token: "YOUR_AUTH_TOKEN"
|
436
|
-
# )
|
437
|
-
# api.assistants.update(id: "id")
|
438
438
|
def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, first_message_mode: nil,
|
439
|
-
|
439
|
+
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, compliance_plan: 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, hooks: nil, request_options: nil)
|
440
440
|
response = @request_client.conn.patch do |req|
|
441
441
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
442
442
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -455,7 +455,6 @@ module Vapi
|
|
455
455
|
voice: voice,
|
456
456
|
firstMessage: first_message,
|
457
457
|
firstMessageMode: first_message_mode,
|
458
|
-
hipaaEnabled: hipaa_enabled,
|
459
458
|
clientMessages: client_messages,
|
460
459
|
serverMessages: server_messages,
|
461
460
|
silenceTimeoutSeconds: silence_timeout_seconds,
|
@@ -470,6 +469,7 @@ module Vapi
|
|
470
469
|
voicemailMessage: voicemail_message,
|
471
470
|
endCallMessage: end_call_message,
|
472
471
|
endCallPhrases: end_call_phrases,
|
472
|
+
compliancePlan: compliance_plan,
|
473
473
|
metadata: metadata,
|
474
474
|
analysisPlan: analysis_plan,
|
475
475
|
artifactPlan: artifact_plan,
|
@@ -478,7 +478,8 @@ module Vapi
|
|
478
478
|
stopSpeakingPlan: stop_speaking_plan,
|
479
479
|
monitorPlan: monitor_plan,
|
480
480
|
credentialIds: credential_ids,
|
481
|
-
server: server
|
481
|
+
server: server,
|
482
|
+
hooks: hooks
|
482
483
|
}.compact
|
483
484
|
req.url "#{@request_client.get_url(request_options: request_options)}/assistant/#{id}"
|
484
485
|
end
|
@@ -511,13 +512,6 @@ module Vapi
|
|
511
512
|
# specified value.
|
512
513
|
# @param request_options [Vapi::RequestOptions]
|
513
514
|
# @return [Array<Vapi::Assistant>]
|
514
|
-
# @example
|
515
|
-
# api = Vapi::Client.new(
|
516
|
-
# base_url: "https://api.example.com",
|
517
|
-
# environment: Vapi::Environment::DEFAULT,
|
518
|
-
# token: "YOUR_AUTH_TOKEN"
|
519
|
-
# )
|
520
|
-
# api.assistants.list
|
521
515
|
def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil, created_at_le: nil,
|
522
516
|
updated_at_gt: nil, updated_at_lt: nil, updated_at_ge: nil, updated_at_le: nil, request_options: nil)
|
523
517
|
Async do
|
@@ -560,7 +554,6 @@ module Vapi
|
|
560
554
|
# * :voice (Hash)
|
561
555
|
# * :first_message (String)
|
562
556
|
# * :first_message_mode (Vapi::CreateAssistantDtoFirstMessageMode)
|
563
|
-
# * :hipaa_enabled (Boolean)
|
564
557
|
# * :client_messages (Array<Vapi::CreateAssistantDtoClientMessagesItem>)
|
565
558
|
# * :server_messages (Array<Vapi::CreateAssistantDtoServerMessagesItem>)
|
566
559
|
# * :silence_timeout_seconds (Float)
|
@@ -582,6 +575,9 @@ module Vapi
|
|
582
575
|
# * :voicemail_message (String)
|
583
576
|
# * :end_call_message (String)
|
584
577
|
# * :end_call_phrases (Array<String>)
|
578
|
+
# * :compliance_plan (Hash)
|
579
|
+
# * :hipaa_enabled (Boolean)
|
580
|
+
# * :pci_enabled (Boolean)
|
585
581
|
# * :metadata (Hash{String => Object})
|
586
582
|
# * :analysis_plan (Hash)
|
587
583
|
# * :summary_plan (Hash)
|
@@ -597,6 +593,10 @@ module Vapi
|
|
597
593
|
# * :properties (Hash{String => Object})
|
598
594
|
# * :description (String)
|
599
595
|
# * :required (Array<String>)
|
596
|
+
# * :regex (String)
|
597
|
+
# * :value (String)
|
598
|
+
# * :target (String)
|
599
|
+
# * :enum (Array<String>)
|
600
600
|
# * :timeout_seconds (Float)
|
601
601
|
# * :success_evaluation_plan (Hash)
|
602
602
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -606,6 +606,8 @@ module Vapi
|
|
606
606
|
# * :artifact_plan (Hash)
|
607
607
|
# * :recording_enabled (Boolean)
|
608
608
|
# * :video_recording_enabled (Boolean)
|
609
|
+
# * :pcap_enabled (Boolean)
|
610
|
+
# * :pcap_s_3_path_prefix (String)
|
609
611
|
# * :transcript_plan (Hash)
|
610
612
|
# * :enabled (Boolean)
|
611
613
|
# * :assistant_name (String)
|
@@ -615,6 +617,7 @@ module Vapi
|
|
615
617
|
# * :idle_messages (Array<String>)
|
616
618
|
# * :idle_message_max_spoken_count (Float)
|
617
619
|
# * :idle_timeout_seconds (Float)
|
620
|
+
# * :silence_timeout_message (String)
|
618
621
|
# * :start_speaking_plan (Hash)
|
619
622
|
# * :wait_seconds (Float)
|
620
623
|
# * :smart_endpointing_enabled (Boolean)
|
@@ -627,6 +630,8 @@ module Vapi
|
|
627
630
|
# * :num_words (Float)
|
628
631
|
# * :voice_seconds (Float)
|
629
632
|
# * :backoff_seconds (Float)
|
633
|
+
# * :acknowledgement_phrases (Array<String>)
|
634
|
+
# * :interruption_phrases (Array<String>)
|
630
635
|
# * :monitor_plan (Hash)
|
631
636
|
# * :listen_enabled (Boolean)
|
632
637
|
# * :control_enabled (Boolean)
|
@@ -636,15 +641,13 @@ module Vapi
|
|
636
641
|
# * :url (String)
|
637
642
|
# * :secret (String)
|
638
643
|
# * :headers (Hash{String => Object})
|
644
|
+
# * :backoff_plan (Hash)
|
645
|
+
# * :max_retries (Float)
|
646
|
+
# * :type (Hash{String => Object})
|
647
|
+
# * :base_delay_seconds (Float)
|
648
|
+
# * :hooks (Array<Vapi::AssistantHooks>)
|
639
649
|
# @param request_options [Vapi::RequestOptions]
|
640
650
|
# @return [Vapi::Assistant]
|
641
|
-
# @example
|
642
|
-
# api = Vapi::Client.new(
|
643
|
-
# base_url: "https://api.example.com",
|
644
|
-
# environment: Vapi::Environment::DEFAULT,
|
645
|
-
# token: "YOUR_AUTH_TOKEN"
|
646
|
-
# )
|
647
|
-
# api.assistants.create(request: { })
|
648
651
|
def create(request:, request_options: nil)
|
649
652
|
Async do
|
650
653
|
response = @request_client.conn.post do |req|
|
@@ -668,13 +671,6 @@ module Vapi
|
|
668
671
|
# @param id [String]
|
669
672
|
# @param request_options [Vapi::RequestOptions]
|
670
673
|
# @return [Vapi::Assistant]
|
671
|
-
# @example
|
672
|
-
# api = Vapi::Client.new(
|
673
|
-
# base_url: "https://api.example.com",
|
674
|
-
# environment: Vapi::Environment::DEFAULT,
|
675
|
-
# token: "YOUR_AUTH_TOKEN"
|
676
|
-
# )
|
677
|
-
# api.assistants.get(id: "id")
|
678
674
|
def get(id:, request_options: nil)
|
679
675
|
Async do
|
680
676
|
response = @request_client.conn.get do |req|
|
@@ -700,13 +696,6 @@ module Vapi
|
|
700
696
|
# @param id [String]
|
701
697
|
# @param request_options [Vapi::RequestOptions]
|
702
698
|
# @return [Vapi::Assistant]
|
703
|
-
# @example
|
704
|
-
# api = Vapi::Client.new(
|
705
|
-
# base_url: "https://api.example.com",
|
706
|
-
# environment: Vapi::Environment::DEFAULT,
|
707
|
-
# token: "YOUR_AUTH_TOKEN"
|
708
|
-
# )
|
709
|
-
# api.assistants.delete(id: "id")
|
710
699
|
def delete(id:, request_options: nil)
|
711
700
|
Async do
|
712
701
|
response = @request_client.conn.delete do |req|
|
@@ -747,9 +736,6 @@ module Vapi
|
|
747
736
|
# state. (`assistant.model.messages` at call start, `call.messages` at squad
|
748
737
|
# transfer points).
|
749
738
|
# @default 'assistant-speaks-first'
|
750
|
-
# @param hipaa_enabled [Boolean] When this is enabled, no logs, recordings, or transcriptions will be stored. At
|
751
|
-
# the end of the call, you will still receive an end-of-call-report message to
|
752
|
-
# store on your server. Defaults to false.
|
753
739
|
# @param client_messages [Array<Vapi::Assistants::UpdateAssistantDtoClientMessagesItem>] These are the messages that will be sent to your Client SDKs. Default is
|
754
740
|
# tatus-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input.
|
755
741
|
# You can check the shape of the messages in ClientMessage schema.
|
@@ -805,6 +791,9 @@ module Vapi
|
|
805
791
|
# If unspecified, it will hang up without saying anything.
|
806
792
|
# @param end_call_phrases [Array<String>] This list contains phrases that, if spoken by the assistant, will trigger the
|
807
793
|
# call to be hung up. Case insensitive.
|
794
|
+
# @param compliance_plan [Hash] Request of type Vapi::CompliancePlan, as a Hash
|
795
|
+
# * :hipaa_enabled (Boolean)
|
796
|
+
# * :pci_enabled (Boolean)
|
808
797
|
# @param metadata [Hash{String => Object}] This is for metadata you want to store on the assistant.
|
809
798
|
# @param analysis_plan [Hash] This is the plan for analysis of assistant's calls. Stored in `call.analysis`.Request of type Vapi::AnalysisPlan, as a Hash
|
810
799
|
# * :summary_plan (Hash)
|
@@ -820,6 +809,10 @@ module Vapi
|
|
820
809
|
# * :properties (Hash{String => Object})
|
821
810
|
# * :description (String)
|
822
811
|
# * :required (Array<String>)
|
812
|
+
# * :regex (String)
|
813
|
+
# * :value (String)
|
814
|
+
# * :target (String)
|
815
|
+
# * :enum (Array<String>)
|
823
816
|
# * :timeout_seconds (Float)
|
824
817
|
# * :success_evaluation_plan (Hash)
|
825
818
|
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
|
@@ -832,6 +825,8 @@ module Vapi
|
|
832
825
|
# `artifactPlan` in the future, but will remain backwards compatible.Request of type Vapi::ArtifactPlan, as a Hash
|
833
826
|
# * :recording_enabled (Boolean)
|
834
827
|
# * :video_recording_enabled (Boolean)
|
828
|
+
# * :pcap_enabled (Boolean)
|
829
|
+
# * :pcap_s_3_path_prefix (String)
|
835
830
|
# * :transcript_plan (Hash)
|
836
831
|
# * :enabled (Boolean)
|
837
832
|
# * :assistant_name (String)
|
@@ -845,6 +840,7 @@ module Vapi
|
|
845
840
|
# * :idle_messages (Array<String>)
|
846
841
|
# * :idle_message_max_spoken_count (Float)
|
847
842
|
# * :idle_timeout_seconds (Float)
|
843
|
+
# * :silence_timeout_message (String)
|
848
844
|
# @param start_speaking_plan [Hash] This is the plan for when the assistant should start talking.
|
849
845
|
# You should configure this if you're running into these issues:
|
850
846
|
# - The assistant is too slow to start talking after the customer is done
|
@@ -871,6 +867,8 @@ module Vapi
|
|
871
867
|
# * :num_words (Float)
|
872
868
|
# * :voice_seconds (Float)
|
873
869
|
# * :backoff_seconds (Float)
|
870
|
+
# * :acknowledgement_phrases (Array<String>)
|
871
|
+
# * :interruption_phrases (Array<String>)
|
874
872
|
# @param monitor_plan [Hash] This is the plan for real-time monitoring of the assistant's calls.
|
875
873
|
# Usage:
|
876
874
|
# - To enable live listening of the assistant's calls, set
|
@@ -895,17 +893,18 @@ module Vapi
|
|
895
893
|
# * :url (String)
|
896
894
|
# * :secret (String)
|
897
895
|
# * :headers (Hash{String => Object})
|
896
|
+
# * :backoff_plan (Hash)
|
897
|
+
# * :max_retries (Float)
|
898
|
+
# * :type (Hash{String => Object})
|
899
|
+
# * :base_delay_seconds (Float)
|
900
|
+
# @param hooks [Array<Hash>] This is a set of actions that will be performed on certain events.Request of type Array<Vapi::AssistantHooks>, as a Hash
|
901
|
+
# * :on (String)
|
902
|
+
# * :filters (Array<Vapi::AssistantHookFilter>)
|
903
|
+
# * :do_ (Array<Vapi::AssistantHookActionBase>)
|
898
904
|
# @param request_options [Vapi::RequestOptions]
|
899
905
|
# @return [Vapi::Assistant]
|
900
|
-
# @example
|
901
|
-
# api = Vapi::Client.new(
|
902
|
-
# base_url: "https://api.example.com",
|
903
|
-
# environment: Vapi::Environment::DEFAULT,
|
904
|
-
# token: "YOUR_AUTH_TOKEN"
|
905
|
-
# )
|
906
|
-
# api.assistants.update(id: "id")
|
907
906
|
def update(id:, transcriber: nil, model: nil, voice: nil, first_message: nil, first_message_mode: nil,
|
908
|
-
|
907
|
+
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, compliance_plan: 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, hooks: nil, request_options: nil)
|
909
908
|
Async do
|
910
909
|
response = @request_client.conn.patch do |req|
|
911
910
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -925,7 +924,6 @@ module Vapi
|
|
925
924
|
voice: voice,
|
926
925
|
firstMessage: first_message,
|
927
926
|
firstMessageMode: first_message_mode,
|
928
|
-
hipaaEnabled: hipaa_enabled,
|
929
927
|
clientMessages: client_messages,
|
930
928
|
serverMessages: server_messages,
|
931
929
|
silenceTimeoutSeconds: silence_timeout_seconds,
|
@@ -940,6 +938,7 @@ module Vapi
|
|
940
938
|
voicemailMessage: voicemail_message,
|
941
939
|
endCallMessage: end_call_message,
|
942
940
|
endCallPhrases: end_call_phrases,
|
941
|
+
compliancePlan: compliance_plan,
|
943
942
|
metadata: metadata,
|
944
943
|
analysisPlan: analysis_plan,
|
945
944
|
artifactPlan: artifact_plan,
|
@@ -948,7 +947,8 @@ module Vapi
|
|
948
947
|
stopSpeakingPlan: stop_speaking_plan,
|
949
948
|
monitorPlan: monitor_plan,
|
950
949
|
credentialIds: credential_ids,
|
951
|
-
server: server
|
950
|
+
server: server,
|
951
|
+
hooks: hooks
|
952
952
|
}.compact
|
953
953
|
req.url "#{@request_client.get_url(request_options: request_options)}/assistant/#{id}"
|
954
954
|
end
|
@@ -14,6 +14,7 @@ module Vapi
|
|
14
14
|
SPEECH_UPDATE = "speech-update"
|
15
15
|
STATUS_UPDATE = "status-update"
|
16
16
|
TRANSCRIPT = "transcript"
|
17
|
+
TRANSCRIPT_TRANSCRIPT_TYPE_FINAL = "transcript[transcriptType='final']"
|
17
18
|
TOOL_CALLS = "tool-calls"
|
18
19
|
TRANSFER_DESTINATION_REQUEST = "transfer-destination-request"
|
19
20
|
TRANSFER_UPDATE = "transfer-update"
|
@@ -38,13 +38,6 @@ module Vapi
|
|
38
38
|
# specified value.
|
39
39
|
# @param request_options [Vapi::RequestOptions]
|
40
40
|
# @return [Array<Vapi::Blocks::BlocksListResponseItem>]
|
41
|
-
# @example
|
42
|
-
# api = Vapi::Client.new(
|
43
|
-
# base_url: "https://api.example.com",
|
44
|
-
# environment: Vapi::Environment::DEFAULT,
|
45
|
-
# token: "YOUR_AUTH_TOKEN"
|
46
|
-
# )
|
47
|
-
# api.blocks.list
|
48
41
|
def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil, created_at_le: nil,
|
49
42
|
updated_at_gt: nil, updated_at_lt: nil, updated_at_ge: nil, updated_at_le: nil, request_options: nil)
|
50
43
|
response = @request_client.conn.get do |req|
|
@@ -82,13 +75,6 @@ module Vapi
|
|
82
75
|
# @param request [Vapi::Blocks::BlocksCreateRequest]
|
83
76
|
# @param request_options [Vapi::RequestOptions]
|
84
77
|
# @return [Vapi::Blocks::BlocksCreateResponse]
|
85
|
-
# @example
|
86
|
-
# api = Vapi::Client.new(
|
87
|
-
# base_url: "https://api.example.com",
|
88
|
-
# environment: Vapi::Environment::DEFAULT,
|
89
|
-
# token: "YOUR_AUTH_TOKEN"
|
90
|
-
# )
|
91
|
-
# api.blocks.create
|
92
78
|
def create(request:, request_options: nil)
|
93
79
|
response = @request_client.conn.post do |req|
|
94
80
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -110,13 +96,6 @@ module Vapi
|
|
110
96
|
# @param id [String]
|
111
97
|
# @param request_options [Vapi::RequestOptions]
|
112
98
|
# @return [Vapi::Blocks::BlocksGetResponse]
|
113
|
-
# @example
|
114
|
-
# api = Vapi::Client.new(
|
115
|
-
# base_url: "https://api.example.com",
|
116
|
-
# environment: Vapi::Environment::DEFAULT,
|
117
|
-
# token: "YOUR_AUTH_TOKEN"
|
118
|
-
# )
|
119
|
-
# api.blocks.get(id: "id")
|
120
99
|
def get(id:, request_options: nil)
|
121
100
|
response = @request_client.conn.get do |req|
|
122
101
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -140,13 +119,6 @@ module Vapi
|
|
140
119
|
# @param id [String]
|
141
120
|
# @param request_options [Vapi::RequestOptions]
|
142
121
|
# @return [Vapi::Blocks::BlocksDeleteResponse]
|
143
|
-
# @example
|
144
|
-
# api = Vapi::Client.new(
|
145
|
-
# base_url: "https://api.example.com",
|
146
|
-
# environment: Vapi::Environment::DEFAULT,
|
147
|
-
# token: "YOUR_AUTH_TOKEN"
|
148
|
-
# )
|
149
|
-
# api.blocks.delete(id: "id")
|
150
122
|
def delete(id:, request_options: nil)
|
151
123
|
response = @request_client.conn.delete do |req|
|
152
124
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -171,13 +143,6 @@ module Vapi
|
|
171
143
|
# @param request [Vapi::Blocks::BlocksUpdateRequest]
|
172
144
|
# @param request_options [Vapi::RequestOptions]
|
173
145
|
# @return [Vapi::Blocks::BlocksUpdateResponse]
|
174
|
-
# @example
|
175
|
-
# api = Vapi::Client.new(
|
176
|
-
# base_url: "https://api.example.com",
|
177
|
-
# environment: Vapi::Environment::DEFAULT,
|
178
|
-
# token: "YOUR_AUTH_TOKEN"
|
179
|
-
# )
|
180
|
-
# api.blocks.update(id: "id")
|
181
146
|
def update(id:, request:, request_options: nil)
|
182
147
|
response = @request_client.conn.patch do |req|
|
183
148
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -222,13 +187,6 @@ module Vapi
|
|
222
187
|
# specified value.
|
223
188
|
# @param request_options [Vapi::RequestOptions]
|
224
189
|
# @return [Array<Vapi::Blocks::BlocksListResponseItem>]
|
225
|
-
# @example
|
226
|
-
# api = Vapi::Client.new(
|
227
|
-
# base_url: "https://api.example.com",
|
228
|
-
# environment: Vapi::Environment::DEFAULT,
|
229
|
-
# token: "YOUR_AUTH_TOKEN"
|
230
|
-
# )
|
231
|
-
# api.blocks.list
|
232
190
|
def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil, created_at_le: nil,
|
233
191
|
updated_at_gt: nil, updated_at_lt: nil, updated_at_ge: nil, updated_at_le: nil, request_options: nil)
|
234
192
|
Async do
|
@@ -268,13 +226,6 @@ module Vapi
|
|
268
226
|
# @param request [Vapi::Blocks::BlocksCreateRequest]
|
269
227
|
# @param request_options [Vapi::RequestOptions]
|
270
228
|
# @return [Vapi::Blocks::BlocksCreateResponse]
|
271
|
-
# @example
|
272
|
-
# api = Vapi::Client.new(
|
273
|
-
# base_url: "https://api.example.com",
|
274
|
-
# environment: Vapi::Environment::DEFAULT,
|
275
|
-
# token: "YOUR_AUTH_TOKEN"
|
276
|
-
# )
|
277
|
-
# api.blocks.create
|
278
229
|
def create(request:, request_options: nil)
|
279
230
|
Async do
|
280
231
|
response = @request_client.conn.post do |req|
|
@@ -298,13 +249,6 @@ module Vapi
|
|
298
249
|
# @param id [String]
|
299
250
|
# @param request_options [Vapi::RequestOptions]
|
300
251
|
# @return [Vapi::Blocks::BlocksGetResponse]
|
301
|
-
# @example
|
302
|
-
# api = Vapi::Client.new(
|
303
|
-
# base_url: "https://api.example.com",
|
304
|
-
# environment: Vapi::Environment::DEFAULT,
|
305
|
-
# token: "YOUR_AUTH_TOKEN"
|
306
|
-
# )
|
307
|
-
# api.blocks.get(id: "id")
|
308
252
|
def get(id:, request_options: nil)
|
309
253
|
Async do
|
310
254
|
response = @request_client.conn.get do |req|
|
@@ -330,13 +274,6 @@ module Vapi
|
|
330
274
|
# @param id [String]
|
331
275
|
# @param request_options [Vapi::RequestOptions]
|
332
276
|
# @return [Vapi::Blocks::BlocksDeleteResponse]
|
333
|
-
# @example
|
334
|
-
# api = Vapi::Client.new(
|
335
|
-
# base_url: "https://api.example.com",
|
336
|
-
# environment: Vapi::Environment::DEFAULT,
|
337
|
-
# token: "YOUR_AUTH_TOKEN"
|
338
|
-
# )
|
339
|
-
# api.blocks.delete(id: "id")
|
340
277
|
def delete(id:, request_options: nil)
|
341
278
|
Async do
|
342
279
|
response = @request_client.conn.delete do |req|
|
@@ -363,13 +300,6 @@ module Vapi
|
|
363
300
|
# @param request [Vapi::Blocks::BlocksUpdateRequest]
|
364
301
|
# @param request_options [Vapi::RequestOptions]
|
365
302
|
# @return [Vapi::Blocks::BlocksUpdateResponse]
|
366
|
-
# @example
|
367
|
-
# api = Vapi::Client.new(
|
368
|
-
# base_url: "https://api.example.com",
|
369
|
-
# environment: Vapi::Environment::DEFAULT,
|
370
|
-
# token: "YOUR_AUTH_TOKEN"
|
371
|
-
# )
|
372
|
-
# api.blocks.update(id: "id")
|
373
303
|
def update(id:, request:, request_options: nil)
|
374
304
|
Async do
|
375
305
|
response = @request_client.conn.patch do |req|
|