1515use GuzzleHttp \Exception \RequestException ;
1616use Psr \Http \Client \ClientExceptionInterface ;
1717use Vapi \Types \CreateEvalDto ;
18- use Vapi \Types \Eval ;
18+ use Vapi \Types \Eval_ ;
1919use Vapi \Eval \Requests \UpdateEvalDto ;
2020use Vapi \Types \EvalRun ;
2121use Vapi \Eval \Requests \EvalControllerGetRunsPaginatedRequest ;
@@ -160,11 +160,11 @@ public function evalControllerGetPaginated(EvalControllerGetPaginatedRequest $re
160160 * queryParameters?: array<string, mixed>,
161161 * bodyProperties?: array<string, mixed>,
162162 * } $options
163- * @return Eval
163+ * @return Eval_
164164 * @throws VapiException
165165 * @throws VapiApiException
166166 */
167- public function evalControllerCreate (CreateEvalDto $ request , ?array $ options = null ): Eval {
167+ public function evalControllerCreate (CreateEvalDto $ request , ?array $ options = null ): Eval_ {
168168 $ options = array_merge ($ this ->options , $ options ?? []);
169169 try {
170170 $ response = $ this ->client ->sendRequest (
@@ -179,7 +179,7 @@ public function evalControllerCreate(CreateEvalDto $request, ?array $options = n
179179 $ statusCode = $ response ->getStatusCode ();
180180 if ($ statusCode >= 200 && $ statusCode < 400 ) {
181181 $ json = $ response ->getBody ()->getContents ();
182- return Eval ::fromJson ($ json );
182+ return Eval_ ::fromJson ($ json );
183183 }
184184 } catch (JsonException $ e ) {
185185 throw new VapiException (message: "Failed to deserialize response: {$ e ->getMessage ()}" , previous: $ e );
@@ -213,11 +213,11 @@ public function evalControllerCreate(CreateEvalDto $request, ?array $options = n
213213 * queryParameters?: array<string, mixed>,
214214 * bodyProperties?: array<string, mixed>,
215215 * } $options
216- * @return Eval
216+ * @return Eval_
217217 * @throws VapiException
218218 * @throws VapiApiException
219219 */
220- public function evalControllerGet (string $ id , ?array $ options = null ): Eval {
220+ public function evalControllerGet (string $ id , ?array $ options = null ): Eval_ {
221221 $ options = array_merge ($ this ->options , $ options ?? []);
222222 try {
223223 $ response = $ this ->client ->sendRequest (
@@ -231,7 +231,7 @@ public function evalControllerGet(string $id, ?array $options = null): Eval {
231231 $ statusCode = $ response ->getStatusCode ();
232232 if ($ statusCode >= 200 && $ statusCode < 400 ) {
233233 $ json = $ response ->getBody ()->getContents ();
234- return Eval ::fromJson ($ json );
234+ return Eval_ ::fromJson ($ json );
235235 }
236236 } catch (JsonException $ e ) {
237237 throw new VapiException (message: "Failed to deserialize response: {$ e ->getMessage ()}" , previous: $ e );
@@ -265,11 +265,11 @@ public function evalControllerGet(string $id, ?array $options = null): Eval {
265265 * queryParameters?: array<string, mixed>,
266266 * bodyProperties?: array<string, mixed>,
267267 * } $options
268- * @return Eval
268+ * @return Eval_
269269 * @throws VapiException
270270 * @throws VapiApiException
271271 */
272- public function evalControllerRemove (string $ id , ?array $ options = null ): Eval {
272+ public function evalControllerRemove (string $ id , ?array $ options = null ): Eval_ {
273273 $ options = array_merge ($ this ->options , $ options ?? []);
274274 try {
275275 $ response = $ this ->client ->sendRequest (
@@ -283,7 +283,7 @@ public function evalControllerRemove(string $id, ?array $options = null): Eval {
283283 $ statusCode = $ response ->getStatusCode ();
284284 if ($ statusCode >= 200 && $ statusCode < 400 ) {
285285 $ json = $ response ->getBody ()->getContents ();
286- return Eval ::fromJson ($ json );
286+ return Eval_ ::fromJson ($ json );
287287 }
288288 } catch (JsonException $ e ) {
289289 throw new VapiException (message: "Failed to deserialize response: {$ e ->getMessage ()}" , previous: $ e );
@@ -318,11 +318,11 @@ public function evalControllerRemove(string $id, ?array $options = null): Eval {
318318 * queryParameters?: array<string, mixed>,
319319 * bodyProperties?: array<string, mixed>,
320320 * } $options
321- * @return Eval
321+ * @return Eval_
322322 * @throws VapiException
323323 * @throws VapiApiException
324324 */
325- public function evalControllerUpdate (string $ id , UpdateEvalDto $ request = new UpdateEvalDto (), ?array $ options = null ): Eval {
325+ public function evalControllerUpdate (string $ id , UpdateEvalDto $ request = new UpdateEvalDto (), ?array $ options = null ): Eval_ {
326326 $ options = array_merge ($ this ->options , $ options ?? []);
327327 try {
328328 $ response = $ this ->client ->sendRequest (
@@ -337,7 +337,7 @@ public function evalControllerUpdate(string $id, UpdateEvalDto $request = new Up
337337 $ statusCode = $ response ->getStatusCode ();
338338 if ($ statusCode >= 200 && $ statusCode < 400 ) {
339339 $ json = $ response ->getBody ()->getContents ();
340- return Eval ::fromJson ($ json );
340+ return Eval_ ::fromJson ($ json );
341341 }
342342 } catch (JsonException $ e ) {
343343 throw new VapiException (message: "Failed to deserialize response: {$ e ->getMessage ()}" , previous: $ e );
0 commit comments