@@ -50,13 +50,6 @@ def initialize(request_client:)
50
50
# specified value.
51
51
# @param request_options [Vapi::RequestOptions]
52
52
# @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
53
def list ( limit : nil , created_at_gt : nil , created_at_lt : nil , created_at_ge : nil , created_at_le : nil ,
61
54
updated_at_gt : nil , updated_at_lt : nil , updated_at_ge : nil , updated_at_le : nil , request_options : nil )
62
55
response = @request_client . conn . get do |req |
@@ -134,6 +127,7 @@ def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil,
134
127
# * :properties (Hash{String => Object})
135
128
# * :description (String)
136
129
# * :required (Array<String>)
130
+ # * :enum (Array<String>)
137
131
# * :timeout_seconds (Float)
138
132
# * :success_evaluation_plan (Hash)
139
133
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
@@ -175,13 +169,6 @@ def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil,
175
169
# * :headers (Hash{String => Object})
176
170
# @param request_options [Vapi::RequestOptions]
177
171
# @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
172
def create ( request :, request_options : nil )
186
173
response = @request_client . conn . post do |req |
187
174
req . options . timeout = request_options . timeout_in_seconds unless request_options &.timeout_in_seconds . nil?
@@ -203,13 +190,6 @@ def create(request:, request_options: nil)
203
190
# @param id [String]
204
191
# @param request_options [Vapi::RequestOptions]
205
192
# @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
193
def get ( id :, request_options : nil )
214
194
response = @request_client . conn . get do |req |
215
195
req . options . timeout = request_options . timeout_in_seconds unless request_options &.timeout_in_seconds . nil?
@@ -233,13 +213,6 @@ def get(id:, request_options: nil)
233
213
# @param id [String]
234
214
# @param request_options [Vapi::RequestOptions]
235
215
# @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
216
def delete ( id :, request_options : nil )
244
217
response = @request_client . conn . delete do |req |
245
218
req . options . timeout = request_options . timeout_in_seconds unless request_options &.timeout_in_seconds . nil?
@@ -351,6 +324,7 @@ def delete(id:, request_options: nil)
351
324
# * :properties (Hash{String => Object})
352
325
# * :description (String)
353
326
# * :required (Array<String>)
327
+ # * :enum (Array<String>)
354
328
# * :timeout_seconds (Float)
355
329
# * :success_evaluation_plan (Hash)
356
330
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
@@ -428,13 +402,6 @@ def delete(id:, request_options: nil)
428
402
# * :headers (Hash{String => Object})
429
403
# @param request_options [Vapi::RequestOptions]
430
404
# @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
405
def update ( id :, transcriber : nil , model : nil , voice : nil , first_message : nil , first_message_mode : nil ,
439
406
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 )
440
407
response = @request_client . conn . patch do |req |
@@ -511,13 +478,6 @@ def initialize(request_client:)
511
478
# specified value.
512
479
# @param request_options [Vapi::RequestOptions]
513
480
# @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
481
def list ( limit : nil , created_at_gt : nil , created_at_lt : nil , created_at_ge : nil , created_at_le : nil ,
522
482
updated_at_gt : nil , updated_at_lt : nil , updated_at_ge : nil , updated_at_le : nil , request_options : nil )
523
483
Async do
@@ -597,6 +557,7 @@ def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil,
597
557
# * :properties (Hash{String => Object})
598
558
# * :description (String)
599
559
# * :required (Array<String>)
560
+ # * :enum (Array<String>)
600
561
# * :timeout_seconds (Float)
601
562
# * :success_evaluation_plan (Hash)
602
563
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
@@ -638,13 +599,6 @@ def list(limit: nil, created_at_gt: nil, created_at_lt: nil, created_at_ge: nil,
638
599
# * :headers (Hash{String => Object})
639
600
# @param request_options [Vapi::RequestOptions]
640
601
# @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
602
def create ( request :, request_options : nil )
649
603
Async do
650
604
response = @request_client . conn . post do |req |
@@ -668,13 +622,6 @@ def create(request:, request_options: nil)
668
622
# @param id [String]
669
623
# @param request_options [Vapi::RequestOptions]
670
624
# @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
625
def get ( id :, request_options : nil )
679
626
Async do
680
627
response = @request_client . conn . get do |req |
@@ -700,13 +647,6 @@ def get(id:, request_options: nil)
700
647
# @param id [String]
701
648
# @param request_options [Vapi::RequestOptions]
702
649
# @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
650
def delete ( id :, request_options : nil )
711
651
Async do
712
652
response = @request_client . conn . delete do |req |
@@ -820,6 +760,7 @@ def delete(id:, request_options: nil)
820
760
# * :properties (Hash{String => Object})
821
761
# * :description (String)
822
762
# * :required (Array<String>)
763
+ # * :enum (Array<String>)
823
764
# * :timeout_seconds (Float)
824
765
# * :success_evaluation_plan (Hash)
825
766
# * :rubric (Vapi::SuccessEvaluationPlanRubric)
@@ -897,13 +838,6 @@ def delete(id:, request_options: nil)
897
838
# * :headers (Hash{String => Object})
898
839
# @param request_options [Vapi::RequestOptions]
899
840
# @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
841
def update ( id :, transcriber : nil , model : nil , voice : nil , first_message : nil , first_message_mode : nil ,
908
842
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 )
909
843
Async do
0 commit comments